/* ============================================================
   トップメッセージ（案1：写真1枚レイアウト）
   ============================================================ */

/* FV見出し：背景画像が淡色で視認性が足りないため、
   テキスト下部に暗幕グラデーションを敷いて対応（本ページのみ） */
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 20, 15, 0.35) 0%,
    rgba(10, 20, 15, 0.28) 10%,
    rgba(10, 20, 15, 0.2) 22%,
    rgba(10, 20, 15, 0.13) 34%,
    rgba(10, 20, 15, 0.07) 46%,
    rgba(10, 20, 15, 0.037) 58%,
    rgba(10, 20, 15, 0.016) 70%,
    rgba(10, 20, 15, 0.0065) 82%,
    rgba(10, 20, 15, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.fv__text {
  z-index: 2;
}

.msg {
  padding: 80px 0 40px;
  background: #fff;
}

.msg__inner {
  position: relative;
  z-index: 0;
  max-width: 860px;
  margin: 0 auto;
}

/* 装飾クォーテーションマーク */
.msg__quote {
  position: absolute;
  top: -40px;
  left: -8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 180px;
  line-height: 1;
  color: rgba(200, 0, 10, 0.12);
  pointer-events: none;
  z-index: -1;
}

.msg__text--closing {
  position: relative;
  padding-bottom: 24px;
}

.msg__quote--end {
  top: 100%;
  left: auto;
  right: -8px;
  bottom: auto;
  margin-top: -60px;
}

/* 写真 */
.msg__photo-wrap {
  position: relative;
  margin-top: 48px;
}

.msg__photo-wrap--small {
  width: 70%;
  /* 親 .msg__text-block の gap: 28px 分を差し引き、他の写真と同じ上下48pxの余白に揃える */
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.msg__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg-gray);
  overflow: hidden;
}

.msg__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真に重ねる署名キャプション */
.msg__photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(200, 0, 10, 0), var(--red));
  padding: 20px 28px 20px 80px;
  text-align: right;
}

.msg__photo-caption .msg__signature-company,
.msg__photo-caption .msg__signature-title {
  color: rgba(255, 255, 255, 0.85);
}

.msg__photo-caption .msg__signature-name {
  color: #fff;
}

/* リードコピー */
.msg__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.msg__title-en {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 48px;
}

/* 本文 */
.msg__text-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.msg__text {
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
}

.msg__signature-company {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.msg__signature-title {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.msg__signature-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sp-only {
  display: none !important;
}

/* ============================================================
   SP
   ============================================================ */
@media screen and (max-width: 767px) {
  .sp-only {
    display: inline !important;
  }

  .msg {
    padding: 48px 0 0;
  }

  .msg__quote {
    top: -20px;
    font-size: 100px;
  }

  .msg__quote--end {
    top: 100%;
    bottom: auto;
    margin-top: -30px;
  }

  .msg__photo-wrap {
    margin-top: 32px;
  }

  .msg__photo-wrap--small {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .msg__photo-caption {
    padding: 12px 16px 12px 44px;
  }

  .msg__title {
    font-size: 21px;
    margin-bottom: 10px;
  }

  .msg__title-en {
    font-size: 12px;
    margin-bottom: 32px;
  }

  .msg__text {
    font-size: 14px;
  }

  .msg__signature-company,
  .msg__signature-title {
    font-size: 12px;
  }

  .msg__signature-name {
    font-size: 16px;
  }
}
