.greeting-page {
  background: #e4e4e4;
  color: #1f1f1f;
}

.greeting-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.greeting-message {
  padding: clamp(88px, 9vw, 133px) 0 clamp(104px, 10vw, 160px);
  background: #e4e4e4;
}

.greeting-message__title {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.25em;
  text-align: center;
}

.greeting-message__layout {
  margin-top: clamp(56px, 7vw, 80px);
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.greeting-message__portrait {
  width: 400px;
  height: 560px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(62, 123, 86, 0.45), rgba(62, 123, 86, 0)),
    linear-gradient(20deg, rgba(234, 115, 57, 0.78), rgba(234, 115, 57, 0.22)),
    linear-gradient(180deg, #f3ede7, #e6ddd5);
}

.greeting-message__portrait img,
.greeting-message__portrait span {
  display: block;
  width: 100%;
  height: 100%;
}

.greeting-message__portrait img {
  object-fit: cover;
}

.greeting-message__body {
  display: grid;
  gap: 12px;
}

.greeting-message__name-block {
  display: grid;
  gap: 0;
}

.greeting-message__role,
.greeting-message__name {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  letter-spacing: 0.05em;
}

.greeting-message__role {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.greeting-message__name {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
}

.greeting-message__copy {
  display: grid;
  gap: 24px;
}

.greeting-message__copy p {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.greeting-profile {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(88px, 9vw, 120px) 0 clamp(184px, 20vw, 280px);
  background: #e4e4e4;
}

.greeting-profile::after {
  content: "";
  position: absolute;
  width: clamp(210px, 36vw, 680px);
  aspect-ratio: 594 / 427;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.greeting-profile::after {
  right: 0;
  bottom: 0;
  background-image: url("../../../images/decorations/section-divider-corner-leaves-right.png");
}

.greeting-profile__shell {
  position: relative;
  z-index: 1;
}

.greeting-profile__heading {
  width: min(741px, 100%);
  display: grid;
  gap: 26px;
}

.greeting-profile__kicker {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-latin-heading-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.4em;
}

.greeting-profile__title {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.2em;
}

.greeting-profile__timeline {
  margin-top: 57px;
}

.greeting-profile__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid #1f1f1f;
}

.greeting-profile__row:first-child {
  padding-top: 0;
}

.greeting-profile__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.greeting-profile__year {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.greeting-profile__details {
  display: grid;
  gap: 0;
}

.greeting-profile__details p {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.greeting-page .index-blog {
  padding-top: clamp(72px, 9vw, 123px);
}

.greeting-page .index-contact,
.greeting-page .index-contact__inner {
  min-height: 723px;
}

@media (max-width: 1023px) {
  .greeting-message__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .greeting-message__portrait {
    width: min(400px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .greeting-shell {
    width: min(100%, calc(100% - 32px));
  }

  .greeting-message {
    padding: 88px 0 96px;
  }

  .greeting-message__title {
    font-size: 34px;
    letter-spacing: 0.1em;
  }

  .greeting-message__layout {
    margin-top: 48px;
    gap: 32px;
  }

  .greeting-message__portrait {
    aspect-ratio: 400 / 560;
    height: auto;
  }

  .greeting-message__role {
    font-size: 18px;
  }

  .greeting-message__name {
    font-size: 30px;
  }

  .greeting-message__copy {
    gap: 18px;
  }

  .greeting-message__copy p {
    font-size: 18px;
    line-height: 1.9;
  }

  .greeting-profile {
    padding: 88px 0 220px;
  }

  .greeting-profile__kicker {
    font-size: 18px;
    letter-spacing: 0.24em;
  }

  .greeting-profile__title {
    font-size: 34px;
    letter-spacing: 0.1em;
  }

  .greeting-profile__timeline {
    margin-top: 48px;
  }

  .greeting-profile__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 24px 0;
  }

  .greeting-profile__year,
  .greeting-profile__details p {
    font-size: 18px;
    line-height: 1.75;
  }

  .greeting-page .index-contact,
  .greeting-page .index-contact__inner {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .greeting-shell {
    width: min(100%, calc(100% - 24px));
  }

  .greeting-message {
    padding: 64px 0 72px;
  }

  .greeting-message__title {
    font-size: 28px;
    letter-spacing: 0.06em;
    line-height: 1.6;
  }

  .greeting-message__layout {
    margin-top: 32px;
    gap: 24px;
  }

  .greeting-message__role {
    font-size: 16px;
  }

  .greeting-message__name {
    font-size: 26px;
  }

  .greeting-message__copy p {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }

  .greeting-profile {
    padding: 64px 0 170px;
  }

  .greeting-profile__heading {
    gap: 14px;
  }

  .greeting-profile__kicker {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .greeting-profile__title {
    font-size: 28px;
    letter-spacing: 0.06em;
  }

  .greeting-profile__timeline {
    margin-top: 32px;
  }

  .greeting-profile__row {
    gap: 6px;
    padding: 16px 0;
  }

  .greeting-profile__year,
  .greeting-profile__details p {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }

  .greeting-profile::after {
    width: clamp(210px, 50vw, 380px);
  }

  .greeting-page .index-contact,
  .greeting-page .index-contact__inner {
    min-height: 440px;
  }
}
