/* =========================================================
   Jelmaリトリートマスターページ（/retreat/）専用スタイル
   ブランドトークン（--navy 等）は front-page.css で定義済み。
   トーン: 前向きな再発見。海・自然・参加者の笑顔の写真を主役に。
   ========================================================= */

.retreat-page {
  background: var(--pearl);
}

.retreat-narrow {
  width: min(100% - 48px, 780px);
}

/* 中央寄せeyebrow */
.retreat-eyebrow-center {
  text-align: center;
}

/* =========================================================
   1. ヒーロー（写真背景）
   ========================================================= */
.retreat-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
}

.retreat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.retreat-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* 文字可読性のためのオーバーレイ */
.retreat-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 92, 0.42) 0%,
    rgba(27, 58, 92, 0.22) 45%,
    rgba(27, 58, 92, 0.55) 100%
  );
  pointer-events: none;
}

.retreat-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
}

.retreat-hero-eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-en);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.retreat-hero h1 {
  margin: 0 auto;
  max-width: 940px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 16px rgba(20, 48, 76, 0.5);
}

.retreat-hero-h1-em {
  display: inline-block;
  margin-top: 8px;
}

.retreat-hero-sub {
  max-width: 720px;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 2;
  text-shadow: 0 1px 10px rgba(20, 48, 76, 0.5);
}

.retreat-hero-meta {
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.retreat-hero-cta {
  margin-top: 36px;
  justify-content: center;
}

.retreat-hero-cta .button-primary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.retreat-hero-cta .button-primary:hover {
  background: var(--white);
  color: var(--navy-deep);
}

.retreat-hero-cta .button-light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.retreat-hero-cta .button-light:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

/* =========================================================
   2. 共感リード
   ========================================================= */
.retreat-lead {
  background: var(--white);
}

.retreat-lead-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-deep);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.retreat-lead-title {
  margin: 0 0 32px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.retreat-lead p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
}

.retreat-lead-strong {
  margin-top: 30px !important;
  padding: 24px 28px;
  color: var(--navy) !important;
  background: var(--pearl);
  border-radius: 14px;
  font-weight: 700 !important;
  line-height: 2 !important;
}

/* リード直下フォトストリップ（横スクロール風） */
.retreat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100% - 48px, 1200px);
  margin: 56px auto 0;
}

.retreat-strip-item {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.retreat-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.retreat-strip-item:hover img {
  transform: scale(1.04);
}

/* =========================================================
   3. コンセプト
   ========================================================= */
.retreat-concept {
  background: var(--pearl);
}

.retreat-concept-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-deep);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.retreat-concept-title {
  margin: 0 0 36px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.retreat-concept-body p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
}

.retreat-concept-em {
  margin-top: 28px !important;
  padding: 22px 24px;
  color: var(--navy) !important;
  background: var(--white);
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  font-weight: 700 !important;
  line-height: 1.95 !important;
}

/* コンセプト直下の大判ビジュアル */
.retreat-feature-photo {
  position: relative;
  width: min(100% - 48px, 1200px);
  margin: 56px auto 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.retreat-feature-photo img,
.retreat-feature-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 動画版 featured-photo（autoplay/muted/loop/playsinline）。
   ポスター画像で初期表示し、metadataのみpreloadして帯域を抑える */
.retreat-feature-video video {
  background: var(--navy-deep);
}

@media (prefers-reduced-motion: reduce) {
  /* 動きを抑える設定時は、動画を停止して最初のフレームのみ表示 */
  .retreat-feature-video video {
    /* JSなしで完全停止はできないが、autoplayをユーザーエージェントが無視する想定 */
    animation: none;
  }
}

.retreat-feature-photo figcaption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  padding: 10px 18px;
  color: var(--white);
  background: rgba(27, 58, 92, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================================
   4. 3つの体験（写真付き縦並びカード）
   ========================================================= */
.retreat-experiences {
  background: var(--white);
}

.retreat-experiences .section-title {
  margin-bottom: 20px;
}

.retreat-exp-lead {
  max-width: 720px;
  margin: 0 auto 56px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.retreat-exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.retreat-exp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retreat-exp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.retreat-exp-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.retreat-exp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retreat-exp-body {
  position: relative;
  padding: 36px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.retreat-exp-num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: color-mix(in srgb, var(--cyan) 60%, white);
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.retreat-exp-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--navy);
  background: color-mix(in srgb, var(--cyan) 14%, white);
  border-radius: 999px;
}

.retreat-exp-icon svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.retreat-exp-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
}

.retreat-exp-card p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.95;
}

.retreat-exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.retreat-exp-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}

.retreat-exp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 999px;
}

/* =========================================================
   5. 1日の流れ
   ========================================================= */
.retreat-flow {
  background: var(--pearl);
}

.retreat-flow-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.retreat-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.retreat-flow-card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.retreat-flow-day {
  margin: 0 0 12px;
  color: var(--cyan-deep);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.retreat-flow-card h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.retreat-flow-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.retreat-flow-list li {
  position: relative;
  padding-left: 56px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

.retreat-flow-list li b {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  min-width: 46px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.retreat-flow-photo {
  margin: auto -32px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.retreat-flow-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retreat-flow-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
}

/* =========================================================
   6. ギャラリー
   ========================================================= */
.retreat-gallery {
  background: var(--white);
}

.retreat-gallery-lead {
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.retreat-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.retreat-gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retreat-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.retreat-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.retreat-gallery-item:hover img {
  transform: scale(1.05);
}

.retreat-gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 14px;
  background: linear-gradient(180deg, rgba(27, 58, 92, 0) 0%, rgba(27, 58, 92, 0.75) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* =========================================================
   7. プログラム・講師
   ========================================================= */
.retreat-program {
  background: var(--pearl);
}

.retreat-program p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.retreat-program-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 36px auto 0;
  max-width: 780px;
}

.retreat-program-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.retreat-program-meta-label {
  color: var(--cyan-deep);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.retreat-program-meta-value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.retreat-program-meta-value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================================================
   8. 参加者の声
   ========================================================= */
.retreat-voices {
  background: var(--white);
}

.retreat-voices-lead {
  max-width: 720px;
  margin: 0 auto 44px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.retreat-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.retreat-voice-card {
  position: relative;
  margin: 0;
  padding: 36px 26px 28px;
  background: var(--pearl);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.retreat-voice-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 18px;
  color: color-mix(in srgb, var(--navy) 22%, white);
  font-family: var(--font-en);
  font-size: 60px;
  line-height: 1;
}

.retreat-voice-card blockquote {
  margin: 0 0 18px;
  color: var(--text);
}

.retreat-voice-card blockquote p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.95;
  font-weight: 500;
}

.retreat-voice-card blockquote p:first-child {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.retreat-voice-card figcaption {
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 参加者の声直下のワーク写真（featured-photo の応用） */
.retreat-workshop-photo {
  position: relative;
  width: min(100%, 1080px);
  margin: 56px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.retreat-workshop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retreat-workshop-photo figcaption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  padding: 10px 18px;
  color: var(--white);
  background: rgba(27, 58, 92, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .retreat-workshop-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .retreat-workshop-photo figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* =========================================================
   9. こんな方へ
   ========================================================= */
.retreat-for-who {
  background: var(--pearl);
}

.retreat-for-who-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.retreat-for-who-list li {
  position: relative;
  padding: 18px 22px 18px 56px;
  background: var(--white);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
}

.retreat-for-who-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 18%, white);
  border: 2px solid var(--cyan);
}

.retreat-for-who-list li::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--cyan-deep);
  border-bottom: 2px solid var(--cyan-deep);
  transform: rotate(-45deg);
}

.retreat-for-who-note {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.95;
  text-align: center;
}

/* =========================================================
   10. リトリートとは
   ========================================================= */
.retreat-definition {
  background: var(--white);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.retreat-definition-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  text-align: center;
}

.retreat-definition p {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

.retreat-definition-quiet {
  color: var(--muted) !important;
  font-size: 13.5px;
  font-weight: 500 !important;
  line-height: 1.95 !important;
}

/* =========================================================
   11. 代表メッセージ（既存 message-section を継承）
   ========================================================= */
.retreat-message {
  background: var(--pearl);
}

/* =========================================================
   12. 最終CTA
   ========================================================= */
.retreat-final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #295a87 100%);
}

.retreat-cta-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.retreat-final-cta h2 {
  margin: 14px 0 0;
  max-width: 720px;
}

.retreat-cta-lead {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

.retreat-cta-buttons {
  margin-top: 8px;
  justify-content: center;
}

.retreat-final-cta .button-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.retreat-final-cta .button-primary:hover {
  background: var(--pearl);
  color: var(--navy-deep);
}

.retreat-cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.85;
  text-align: center;
}

/* =========================================================
   13. 関連ページ
   ========================================================= */
.retreat-related {
  background: var(--pearl);
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1160px) {
  .retreat-flow-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }
  .retreat-flow-list li {
    font-size: 14.5px;
  }
  .retreat-flow-list li b {
    font-size: 14px;
  }
}

@media (max-width: 1060px) {
  .retreat-exp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-inline: auto;
  }
  .retreat-exp-grid .retreat-exp-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
  .retreat-voice-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .retreat-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .retreat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .retreat-flow-grid {
    grid-template-columns: 1fr;
  }
  .retreat-feature-photo {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 820px) {
  .retreat-exp-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .retreat-exp-grid .retreat-exp-card:last-child:nth-child(odd) {
    max-width: 100%;
  }
  .retreat-program-meta {
    grid-template-columns: 1fr;
  }
  .retreat-hero h1 {
    line-height: 1.6;
  }
  .retreat-gallery-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .retreat-feature-photo {
    aspect-ratio: 4 / 3;
  }
  .retreat-flow-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .retreat-hero-inner {
    text-align: left;
  }
  .retreat-hero-sub,
  .retreat-hero-meta {
    text-align: left;
  }
  .retreat-hero-cta {
    justify-content: stretch;
  }
  .retreat-feature-photo figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}
