/* ===========================================================
   地域ごとのプログラム紹介ページ。
   色・文字の大きさのトークンは styles.css の :root を使い、
   ここでは節の組み方だけを持つ。見出しは全節で中央揃え。
   =========================================================== */

/* === 扉 === */

.pg-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 640px;
  height: var(--screen-h, 100svh);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

/* 明るい写真でも文字が読めるよう、中央だけ軽く落とす */
.pg-hero-copy::before {
  position: absolute;
  inset: -16% -20%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(8, 11, 9, 0.34), rgba(8, 11, 9, 0.16) 46%, rgba(8, 11, 9, 0) 78%);
  content: "";
}

/* 写真の入れ替えはトップと同じ仕組み。覆いだけこのページ用に差し替える */
.pg-hero .hero-media::after {
  background:
    linear-gradient(0deg, rgba(8, 11, 9, 0.66), rgba(8, 11, 9, 0.14) 62%),
    linear-gradient(90deg, rgba(8, 11, 9, 0.34), rgba(8, 11, 9, 0.08) 50%, rgba(8, 11, 9, 0.34));
}

.pg-hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - clamp(40px, 8vw, 120px)));
  margin: 0 auto;
}

.pg-hero-title {
  margin: 0 0 30px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-wrap: balance;
}

.pg-hero-lead {
  margin: 0 0 46px;
  color: rgba(255, 253, 248, 0.8);
  font-size: var(--body-ja);
  letter-spacing: 0.12em;
  line-height: 2.3;
}

.pg-cta {
  display: inline-grid;
  place-items: center;
  min-width: min(280px, 90vw);
  padding: 9px 40px;
  border: 1px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  transition: border-color 600ms ease, color 600ms ease, background 600ms ease;
}

.pg-cta:hover {
  border-color: var(--umber);
  color: var(--umber);
}


/* === 節の共通部品 === */

.pg-about,
.pg-concept,
.pg-why,
.pg-days,
.pg-program,
.pg-masters,
.pg-wellness,
.pg-stay,
.pg-custom,
.pg-faq,
.pg-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 13vw, 190px) 0;
  text-align: center;
}

.pg-about,
.pg-why,
.pg-masters,
.pg-wellness,
.pg-custom,
.pg-contact {
  background: var(--charcoal);
  color: var(--white);
}

.pg-concept,
.pg-days,
.pg-program,
.pg-faq {
  background: var(--paper);
  color: var(--ink);
}

/* 帯の写真で節を終える */
.pg-concept {
  padding-bottom: 0;
}

.pg-stay {
  background: var(--charcoal);
  color: var(--white);
}

.pg-narrow {
  max-width: 820px;
}

.pg-head {
  max-width: 900px;
  margin: 0 auto clamp(28px, 3.5vw, 46px);
}

.pg-head h2 {
  margin: 0;
  font-size: var(--h2-ja);
  letter-spacing: 0.08em;
  line-height: 1.85;
  text-wrap: balance;
}

.pg-head h2.is-en {
  font-size: var(--h2-en);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pg-subtitle {
  margin: 18px 0 0;
  color: var(--umber);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: var(--body-ja);
  letter-spacing: 0.16em;
  line-height: 1.9;
}

.pg-head .section-lead {
  margin: 30px auto 0;
  max-width: 740px;
  text-wrap: pretty;
}

.pg-about .section-lead,
.pg-why .section-lead,
.pg-custom .section-lead {
  color: rgba(255, 253, 248, 0.7);
}

/* 写真の上に乗る節は、本文をもう少し明るくする */
.pg-stay .section-lead,
.pg-day .section-lead {
  color: rgba(255, 253, 248, 0.84);
}

.pg-body {
  margin: 0 auto;
  max-width: 740px;
}

.pg-body p {
  margin: 0 0 24px;
  font-size: var(--body-ja);
  line-height: 2.3;
  text-wrap: pretty;
}

.pg-body p:last-child {
  margin-bottom: 0;
}

.pg-about .pg-body p,
.pg-wellness .pg-body p {
  color: rgba(255, 253, 248, 0.78);
}

.pg-pull {
  margin: 46px 0 0 !important;
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.pg-note {
  margin: clamp(23px, 2.5vw, 35px) auto 0;
  max-width: 680px;
  color: rgba(255, 253, 248, 0.54);
  font-size: 12px;
  line-height: 2.1;
}

/* === 価値観の帯。画面幅いっぱいに4つ並べる === */

.pg-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: clamp(28px, 3.5vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.pg-band-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(62vh, 560px);
  overflow: hidden;
  color: var(--white);
}

.pg-band-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-band-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.7), rgba(8, 11, 9, 0.26) 62%, rgba(8, 11, 9, 0.2));
  content: "";
  transition: background 900ms ease;
}

.pg-band-item:hover img {
  transform: scale(1.06);
}

.pg-band-item:hover::after {
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.62), rgba(8, 11, 9, 0.14) 62%, rgba(8, 11, 9, 0.08));
}

.pg-band-copy {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 3vw, 48px);
  text-align: left;
}

.pg-band-no {
  margin: 0 0 18px;
  color: var(--umber);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.pg-band-copy h3 {
  margin: 0 0 16px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.pg-band-copy p {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 13px;
  line-height: 2.1;
}

/* === 土地の理由。3列 === */

.pg-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-reason-media {
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
}

.pg-reason-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-reasons li:hover .pg-reason-media img {
  transform: scale(1.04);
}

.pg-reason-name {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.16em;
}

.pg-reasons p:last-child {
  margin: 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 13px;
  line-height: 2.1;
}

/* === 3日間への入口。線でつないだ3つの点 === */

.pg-steps {
  --pg-node: 20px;
  --pg-step-top: clamp(10px, 1.4vw, 18px);

  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-rail {
  position: absolute;
  top: calc(var(--pg-step-top) + var(--pg-node) / 2);
  right: 16.666%;
  left: 16.666%;
  z-index: 0;
  height: 1px;
  overflow: hidden;
  background: rgba(23, 25, 21, 0.24);
}

/* 線の上を左から右へ流れる光 */
.pg-rail-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--umber), transparent);
  animation: pgRail 5200ms linear infinite;
}

@keyframes pgRail {
  from { transform: translateX(-100%); }
  to { transform: translateX(333%); }
}

.pg-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: var(--pg-step-top) 12px clamp(18px, 2vw, 28px);
  color: var(--ink);
  transition: color 500ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-step:hover {
  color: var(--umber);
  transform: translateY(-4px);
}

.pg-step-node {
  position: relative;
  width: var(--pg-node);
  height: var(--pg-node);
  margin-bottom: 8px;
  border: 1px solid var(--umber);
  border-radius: 50%;
  background: var(--paper);
}

/* 中の点。光が通るたびに灯る */
.pg-step-node::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--umber);
  content: "";
  opacity: 0.3;
  animation: pgNode 5200ms ease-in-out infinite;
}

/* 灯る瞬間に外へ広がる輪 */
.pg-step-node::before {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--umber);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: pgNodeRing 5200ms ease-out infinite;
}

.pg-steps .pg-step:nth-of-type(1) .pg-step-node::after,
.pg-steps .pg-step:nth-of-type(1) .pg-step-node::before { animation-delay: 700ms; }
.pg-steps .pg-step:nth-of-type(2) .pg-step-node::after,
.pg-steps .pg-step:nth-of-type(2) .pg-step-node::before { animation-delay: 1900ms; }
.pg-steps .pg-step:nth-of-type(3) .pg-step-node::after,
.pg-steps .pg-step:nth-of-type(3) .pg-step-node::before { animation-delay: 3100ms; }

@keyframes pgNode {
  0%, 100% { opacity: 0.3; }
  6% { opacity: 1; }
  26% { opacity: 0.3; }
}

@keyframes pgNodeRing {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  6% { opacity: 0.9; transform: scale(1); }
  30% { opacity: 0; transform: scale(1.5); }
}

.pg-step:hover .pg-step-node {
  background: var(--umber);
}

.pg-step-no {
  color: var(--umber);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.pg-step-name {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: 0.06em;
}

.pg-step-ja {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.pg-step:hover .pg-step-ja,
.pg-step.is-current .pg-step-ja {
  color: inherit;
}

/* 今、正面に出ている日 */
.pg-step.is-current {
  color: var(--umber);
}

.pg-step.is-current .pg-step-node {
  background: var(--umber);
}

/* === 1日ごとの節。3日分を同じ場所へ重ね、スクロールで切り替える === */

.pg-daystack {
  position: relative;
  height: calc(var(--screen-h, 100svh) * 3);
  background: var(--charcoal);
}

.pg-daystack-inner {
  position: sticky;
  top: 0;
  height: var(--screen-h, 100svh);
  overflow: hidden;
}

.pg-day {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
}

.pg-day.is-front {
  z-index: 1;
}

.pg-day-media,
.pg-day-media::after,
.pg-day-media img {
  position: absolute;
  inset: 0;
}

.pg-day-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-day-media::after {
  background:
    linear-gradient(0deg, rgba(13, 16, 13, 0.78), rgba(13, 16, 13, 0.4) 60%, rgba(13, 16, 13, 0.52));
  content: "";
}

.pg-day .section-inner {
  position: relative;
  z-index: 1;
}

.pg-day .section-inner::before {
  position: absolute;
  inset: -6% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(13, 16, 13, 0.42), rgba(13, 16, 13, 0.2) 48%, rgba(13, 16, 13, 0) 80%);
  content: "";
}

.pg-day .pg-body p {
  color: rgba(255, 253, 248, 0.82);
}

.pg-moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: clamp(26px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.pg-moments li {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 253, 248, 0.24);
}

.pg-moment-name {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.pg-moments p:last-child {
  margin: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 13px;
  line-height: 2;
}

.pg-day-quote {
  margin: clamp(24px, 3vw, 39px) auto 0;
  max-width: 820px;
  color: var(--umber);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(17px, 1.9vw, 23px);
  letter-spacing: 0.14em;
  line-height: 2;
}

/* 重ねられない時（背の低い画面・動きを抑える設定）は、普通に縦へ並べる */
@media (max-width: 600px), (max-height: 700px), (prefers-reduced-motion: reduce) {
  .pg-daystack {
    height: auto;
  }

  .pg-daystack-inner {
    position: static;
    height: auto;
  }

  .pg-day {
    position: relative;
    inset: auto;
    padding: clamp(90px, 11vw, 150px) 0;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === 並べて見せる項目（滞在・組み立て方） === */

.pg-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-values li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
  text-wrap: pretty;
}

.pg-values span {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.14em;
}

/* 項目の頭に置く、金色の細い線のしるし */
.pg-icon {
  display: block;
  width: 40px;
  margin: 0 auto 20px;
  color: var(--umber);
}

.pg-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.pg-custom .pg-values li,
.pg-stay .pg-values li {
  border-top-color: rgba(255, 253, 248, 0.24);
  color: rgba(255, 253, 248, 0.68);
}

.pg-custom .pg-values span,
.pg-stay .pg-values span {
  color: var(--white);
}

/* 触れている項目に合わせて入れ替わる背景 */
.pg-backdrop,
.pg-backdrop::after,
.pg-backdrop-image {
  position: absolute;
  inset: 0;
}

.pg-backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1400ms ease, transform 2600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-backdrop-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.pg-backdrop::after {
  background: linear-gradient(0deg, rgba(13, 16, 13, 0.8), rgba(13, 16, 13, 0.5) 58%, rgba(13, 16, 13, 0.64));
  content: "";
}

.pg-stay .section-inner {
  position: relative;
  z-index: 1;
}

.pg-stay .pg-values li {
  padding-bottom: 8px;
  cursor: default;
  transition: border-color 600ms ease, color 600ms ease;
}

.pg-stay .pg-values li.is-active {
  border-top-color: var(--umber);
  color: rgba(255, 253, 248, 0.86);
}

.pg-stay .pg-values li.is-active span {
  color: var(--umber);
}

/* === 締めと問い合わせ === */

.pg-contact {
  padding: clamp(130px, 15vw, 220px) 0;
}

.pg-contact-media,
.pg-contact-media::after,
.pg-contact-media img {
  position: absolute;
  inset: 0;
}

.pg-contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-contact-media::after {
  background: linear-gradient(0deg, rgba(13, 16, 13, 0.82), rgba(13, 16, 13, 0.52));
  content: "";
}

.pg-contact .section-inner {
  position: relative;
  z-index: 1;
}

.pg-contact h2 {
  margin: 0;
  font-size: var(--h2-en);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pg-contact-lead {
  margin: 36px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: var(--body-ja);
  line-height: 2.3;
  text-wrap: pretty;
}

.pg-contact-sub {
  margin: 22px 0 46px;
  color: rgba(255, 253, 248, 0.6);
  font-size: 13px;
  line-height: 2.1;
}

.pg-contact-back {
  margin: 30px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.pg-contact-back a {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.3);
  transition: color 600ms ease, border-color 600ms ease;
}

.pg-contact-back a:hover {
  border-color: var(--umber);
  color: var(--umber);
}

/* === 画面が狭いとき === */

@media (max-width: 980px) {
  .pg-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-band-item {
    min-height: min(46vh, 380px);
  }

  .pg-reasons,
  .pg-moments {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-step-name {
    font-size: 15px;
  }

  .pg-step-ja {
    display: none;
  }
}

@media (max-width: 600px) {
  .pg-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-band-item {
    min-height: 300px;
  }

  .pg-steps {
    --pg-node: 16px;
  }

  .pg-step {
    padding-right: 6px;
    padding-left: 6px;
  }

  .pg-step-no {
    font-size: 10px;
  }

  .pg-step-name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-rail-pulse,
  .pg-step-node::after,
  .pg-step-node::before {
    animation: none;
  }

  .pg-reason-media img,
  .pg-band-item img,
  .pg-backdrop-image {
    transition: none;
  }
}

/* === 右下のスクロールの合図 === */

.pg-scroll-hint {
  position: fixed;
  right: clamp(16px, 2.6vw, 40px);
  bottom: clamp(22px, 4vw, 52px);
  z-index: 40;
  display: grid;
  gap: 14px;
  justify-items: center;
  color: rgba(255, 253, 248, 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-scroll-hint.is-on {
  opacity: 1;
  transform: translateY(0);
}

.pg-scroll-label {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.pg-scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.24);
}

/* 線の上を下へ降りる点 */
.pg-scroll-line::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  background: var(--umber);
  content: "";
  animation: pgScrollDot 2200ms cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes pgScrollDot {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(300%); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-scroll-line::after {
    animation: none;
    transform: translateY(0);
  }
}

/* === 節ごとの入り。画面に入った順に、下から浮かび上がる === */

/* 隠す所までは動かさず、出る時だけ動かす（最初に見えてから消えるのを防ぐ） */
.pg-anim {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
}

.pg-anim.is-ready {
  transition:
    opacity 1150ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 1250ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    filter 1150ms ease var(--d, 0ms);
}

.pg-anim.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 写真は少し寄った状態から戻す */
.pg-anim-media {
  overflow: hidden;
}

.pg-anim-media img {
  transform: scale(1.12);
}

.pg-anim-media.is-ready img {
  transition: transform 2200ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.pg-anim-media.is-in img {
  transform: scale(1);
}

/* 帯と滞在の写真は、入りが終わってからホバーで動かす */
.pg-band-item.is-in img {
  transition:
    transform 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 扉は読み込み直後に、上から順に出す */
.pg-hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  animation: pgHeroIn 1600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pg-hero-copy > :nth-child(1) { animation-delay: 300ms; }
.pg-hero-copy > :nth-child(2) { animation-delay: 560ms; }
.pg-hero-copy > :nth-child(3) { animation-delay: 900ms; }
.pg-hero-copy > :nth-child(4) { animation-delay: 1240ms; }

@keyframes pgHeroIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-anim,
  .pg-anim-media img,
  .pg-hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* 画面全体に敷いている網目の層を、このページでは止める */
.grain {
  display: none;
}

/* === 旅程の一例。触れると横へ伸びる === */

.pg-itinerary {
  position: relative;
  padding: clamp(110px, 13vw, 190px) 0;
  color: var(--white);
  background: var(--charcoal);
  text-align: center;
}

.pg-itin {
  display: flex;
  width: 100%;
  height: min(60vh, 520px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-itin-item {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 253, 248, 0.14);
  cursor: default;
  transition: flex-grow 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-itin-item:last-child {
  border-right: 0;
}

.pg-itin-item:hover,
.pg-itin-item:focus-visible,
.pg-itin-item:focus-within {
  flex-grow: 2.6;
  outline: none;
}

.pg-itin-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-itin-item:hover img,
.pg-itin-item:focus-within img {
  transform: scale(1);
}

.pg-itin-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.78), rgba(8, 11, 9, 0.34) 62%, rgba(8, 11, 9, 0.28));
  content: "";
  transition: background 900ms ease;
}

.pg-itin-item:hover::after,
.pg-itin-item:focus-within::after {
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.84), rgba(8, 11, 9, 0.46) 62%, rgba(8, 11, 9, 0.38));
}

.pg-itin-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: clamp(24px, 3vw, 44px);
  text-align: left;
}

.pg-itin-no {
  margin: 0 0 6px;
  color: var(--umber);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.pg-itin-name {
  margin: 0 0 4px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.pg-itin-ja {
  margin: 0;
  color: rgba(255, 253, 248, 0.6);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* 中身は伸びた時だけ出す */
.pg-itin-detail {
  display: grid;
  gap: 14px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 900ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 600ms ease,
              margin 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-itin-item:hover .pg-itin-detail,
.pg-itin-item:focus-within .pg-itin-detail {
  max-height: 320px;
  margin-top: 26px;
  opacity: 1;
}

.pg-itin-detail > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.pg-itin-detail dt {
  color: var(--umber);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.pg-itin-detail dd {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 13px;
  line-height: 1.95;
}

.pg-itinerary .pg-note {
  margin-top: clamp(26px, 3vw, 40px);
}

/* 触れられない画面では、縦に並べて中身を出したままにする */
@media (hover: none), (max-width: 980px) {
  .pg-itin {
    flex-direction: column;
    height: auto;
  }

  .pg-itin-item {
    flex: none;
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  }

  .pg-itin-body {
    position: relative;
    inset: auto;
  }

  .pg-itin-detail {
    max-height: none;
    margin-top: 22px;
    opacity: 1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pg-itin-item,
  .pg-itin-item img,
  .pg-itin-detail {
    transition: none;
  }
}

/* === 3日間のプログラム。1日ごとに2枠、画像を左右交互に置く === */

/* この節だけ横幅を抑えて、写真と行の高さを低くする */
.pg-program .section-inner {
  max-width: 1280px;
}

.pg-prog-day {
  margin-top: clamp(28px, 3.2vw, 44px);
}

.pg-prog-day-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: center;
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.pg-prog-day-name span {
  color: var(--umber);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
}

/* 2枠で1画面に収まるよう、写真も文字も低めに抑える */
/* 左右を入れ替えても幅が変わらないよう、2列は必ず同じ幅にする */
.pg-prog-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-top: clamp(14px, 1.6vw, 22px);
  text-align: left;
}

.pg-prog-row:nth-of-type(odd) .pg-prog-media {
  order: 2;
}

/* 高さの上限を付けると幅が縮んで列からはみ出るので、比率だけで決める */
.pg-prog-media {
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.pg-prog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-prog-row:hover .pg-prog-media img {
  transform: scale(1.04);
}

.pg-prog-no {
  margin: 0 0 10px;
  color: var(--umber);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.pg-prog-body h4 {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.pg-prog-body p:not(.pg-prog-no) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  text-wrap: pretty;
}

/* === 宿の候補 === */

.pg-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

/* 候補が2つの地域（岐阜・葉山）。中央へ寄せて3列と同じ幅感にする */
.pg-places.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-inline: auto;
}

.pg-places li {
  padding-top: 0;
  border-top: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 13px;
  line-height: 2.1;
  text-wrap: pretty;
}

/* まだ決まっていない枠 */
.pg-place-media {
  overflow: hidden;
  margin-bottom: 8px;
  aspect-ratio: 16 / 10;
}

/* 生成した写真なので、どの枠かが分かる位置に注記を置く（2026-09-19 CEO指示） */
.pg-place-note {
  margin: 0 0 14px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.pg-place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* まだ決まっていない枠 */
.pg-places li.is-pending {
  opacity: 0.6;
}

.pg-places li.is-pending .pg-place-media {
  outline: 1px dashed rgba(255, 253, 248, 0.34);
  outline-offset: -1px;
}

.pg-place-name {
  margin: 0 0 12px;
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.pg-places + .pg-note {
  color: rgba(255, 253, 248, 0.5);
}

/* === よくある質問 === */


@media (max-width: 980px) {
  .pg-places,
  .pg-places.is-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-prog-media img,
  .pg-place-media img,
  .pg-wellness-strip img {
    transition: none;
  }
}

/* === ウェルネスの下に置く、横長の3枚 === */

.pg-wellness-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin: clamp(36px, 4.5vw, 62px) 0 0;
  padding: 0;
  list-style: none;
}

.pg-wellness-strip li {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.pg-wellness-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-wellness-strip li:hover img {
  transform: scale(1.05);
}

.pg-wellness-strip span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 18px 16px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.8), transparent);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.16em;
}

/* === よくある質問。1列のアコーディオン === */

.pg-faq-list {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  text-align: left;
}

.pg-faq-item {
  border-bottom: 1px solid var(--line);
}

.pg-faq-q {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px) 44px clamp(20px, 2.4vw, 28px) 0;
  cursor: pointer;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  list-style: none;
}

.pg-faq-q::-webkit-details-marker {
  display: none;
}

/* 右端の十字。開くと横棒だけになる */
.pg-faq-q::before,
.pg-faq-q::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 13px;
  height: 1px;
  background: var(--umber);
  content: "";
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-faq-q::after {
  transform: rotate(90deg);
}

.pg-faq-item[open] .pg-faq-q::after {
  transform: rotate(0deg);
}

.pg-faq-a {
  margin: 0;
  padding: 0 44px clamp(22px, 2.6vw, 30px) 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .pg-prog-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-prog-row:nth-of-type(odd) .pg-prog-media {
    order: 0;
  }

  .pg-prog-media {
    max-height: none;
  }

  .pg-wellness-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* === 中核体験を担う3名。人で興味を持ってもらう節 === */
.pg-masters-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

/* 担い手が2名の地域は、空き枠を作らず中央へ寄せる */
.pg-masters-list.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(860px, 100%);
  margin-inline: auto;
}

.pg-master {
  display: flex;
  flex-direction: column;
}

.pg-master-portrait {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

.pg-master-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真が届くまでの枠。空白ではなく、入る場所が分かる状態で見せる */
.pg-master-portrait.is-pending {
  display: grid;
  place-items: center;
  outline: 1px dashed rgba(255, 253, 248, 0.28);
  outline-offset: -1px;
  background: rgba(255, 253, 248, 0.03);
}

.pg-master-portrait.is-pending span {
  color: rgba(255, 253, 248, 0.34);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.pg-master-day {
  margin: 0 0 10px;
  color: var(--umber, rgba(255, 253, 248, 0.5));
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
}

.pg-master-name {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.pg-master-name span {
  color: rgba(255, 253, 248, 0.5);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.pg-master-lead {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
  color: rgba(255, 253, 248, 0.82);
  font-size: 14px;
  line-height: 2;
}

.pg-master-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-master-points li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 13px;
  line-height: 2;
}

.pg-master-points li + li { margin-top: 8px; }

.pg-master-points li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255, 253, 248, 0.34);
  content: "—";
}

.pg-masters .pg-note {
  margin: clamp(32px, 4vw, 56px) 0 0;
  color: rgba(255, 253, 248, 0.45);
}

@media (max-width: 820px) {
  .pg-head h2,
  .pg-head h2.is-en,
  .pg-contact h2 {
    line-height: 1.25;
  }

  .pg-masters-list {
    display: flex;
    gap: 18px;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pg-masters-list.is-two {
    width: 100%;
  }

  .pg-masters-list::-webkit-scrollbar {
    display: none;
  }

  .pg-master {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .pg-master-portrait {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}


/* === この旅で得られるもの。テーマの下に持ち帰るものを並べる === */
.pg-takeaway {
  width: min(760px, 100%);
  margin: clamp(48px, 5.5vw, 80px) auto 0;
  text-align: center;
}

.pg-takeaway-label {
  margin: 0 0 20px;
  color: rgba(23, 25, 21, 0.45);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-align: center;
}

.pg-takeaway ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(23, 25, 21, 0.14);
  list-style: none;
}

.pg-takeaway li {
  padding: 16px 8px;
  border-bottom: 1px solid rgba(23, 25, 21, 0.14);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.9;
}

@media (max-width: 820px) {
  .pg-takeaway li {
    padding: 14px 0;
    font-size: 14px;
  }
}


/* === 希望制の映像。武士道の枠に続けて置く === */
.pg-film {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
  margin-top: clamp(56px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  text-align: left;
}

.pg-film-media {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
}

.pg-film-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-film-body h3 {
  margin: 10px 0 18px;
  color: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.pg-film-body p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  line-height: 2;
}

.pg-film-body p.pg-film-note {
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 12px;
}

@media (max-width: 820px) {
  .pg-film {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* === 何が動いて何が動かないかを並べて示す === */
.pg-fixed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
  text-align: left;
}

.pg-fixed-label {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  color: rgba(255, 253, 248, 0.5);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
}

.pg-fixed-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-fixed-col li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 253, 248, 0.56);
  font-size: 14px;
  line-height: 2.1;
}

.pg-fixed-col li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255, 253, 248, 0.3);
  content: "—";
}

/* 旅の核として動かない側を強く見せる */
.pg-fixed-col.is-core .pg-fixed-label {
  border-bottom-color: rgba(255, 253, 248, 0.34);
  color: var(--white);
}

.pg-fixed-col.is-core li { color: rgba(255, 253, 248, 0.86); }

.pg-fixed-col.is-core li::before { color: rgba(255, 253, 248, 0.55); }

@media (max-width: 820px) {
  .pg-fixed {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
