:root {
  --green: #204a42; /* 文字の緑。現行サイトのフッターの緑に統一（R32 G74 B66） */
  --fill: #204a42; /* ベタ塗りの緑。同上 */
  --gray: #707e73;
  --ink: #251e1c;
  --pale: #eef2f0;
  --white: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* デザインデータ（1280px 幅）の 1px。画面が狭いときは縮める（文字や部品の大きさ用） */
  --hu: min(1px, calc(100vw / 1280));
  /* 横位置用：デザインデータの x 座標を画面幅に比例させる */
  --vx: calc(100vw / 1280);
  /* 本文の左右余白（アートボード3の x=217 を画面幅に比例） */
  --side: calc(var(--vx) * 217);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* スクロールの止まる位置は main.js で制御（ホイール・トラックパッド） */
main > section[id]:not(#top) { position: relative; }
body {
  font-family: "Noto Serif JP", serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.is-opening { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sp-only { display: none; }

/* ---------- 線路（レール2本＋枕木） ----------
   ai の図形を1区間ずつ画像にして敷き詰める。色を文字色（currentColor）に合わせられるよう、図形をマスクとして使う。
   rail.svg：1区間 5.13×2.344（オープニング・ハンバーガー）
   rail-header.svg：同じ図形の110%・間隔 6.113（グローバルメニュー）
   rail-v.svg：rail.svg を縦向きにしたもの */
.rail {
  display: block; height: 2.344px;
  background: currentColor;
  -webkit-mask: url(../img/rail.svg) repeat-x left center / auto 100%;
          mask: url(../img/rail.svg) repeat-x left center / auto 100%;
}

/* ---------- 英語 → 日本語の切り替え（マウスオーバー／タップ） ---------- */
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; transition: opacity 0.35s var(--ease); }
/* メニューの英字は Noto Serif の Medium */
.swap__en { font-family: "Noto Serif", "Noto Serif JP", serif; font-weight: 500; }
.swap__ja { opacity: 0; font-size: 0.86em; letter-spacing: 0.06em; white-space: nowrap; align-self: center; }
@media (hover: hover) {
  .swap:hover .swap__en { opacity: 0; }
  .swap:hover .swap__ja { opacity: 1; }
}
.swap.is-ja .swap__en { opacity: 0; }
.swap.is-ja .swap__ja { opacity: 1; }

/* ---------- header（アートボード1：1280×850 の座標を基準に配置） ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--hu) * 130);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s var(--ease), color 0.5s;
}
.header.active { opacity: 1; pointer-events: auto; }
/* スクロール中は半透明にして、下の文字と同じ濃さで重ならないようにする。止まったら戻す */
.header.active.is-scrolling { opacity: 0.3; transition: opacity 0.25s ease, color 0.5s, background 0.4s; }
.header.active.is-scrolling:hover, body.drawer-open .header.active.is-scrolling { opacity: 1; }
/* 白背景のセクションではグレー（アートボード3） */
.header.is-dark { color: var(--gray); }
.header.is-dark .header__logo img,
.header.is-dark .header__sns img { filter: brightness(0) invert(50%) sepia(10%) hue-rotate(90deg); }
.header__logo img,
.header__sns img { transition: filter 0.5s; }

.header__logo {
  position: absolute; left: calc(var(--hu) * 32); top: calc(var(--hu) * 33);
  width: calc(var(--hu) * 96); z-index: 2;
}
.header__logo img { width: 100%; height: auto; }

.header__rail {
  position: absolute; left: 0; right: 0; top: calc(var(--hu) * 79.6); height: 2.579px;
  /* ロゴの円の中は線を切る */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--hu) * 32), transparent calc(var(--hu) * 32) calc(var(--hu) * 128), #000 calc(var(--hu) * 128));
          mask-image: linear-gradient(90deg, #000 calc(var(--hu) * 32), transparent calc(var(--hu) * 32) calc(var(--hu) * 128), #000 calc(var(--hu) * 128));
}
.header__rail::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url(../img/rail-header.svg) repeat-x left center / auto 100%;
          mask: url(../img/rail-header.svg) repeat-x left center / auto 100%;
}

/* メニュー項目の位置は画面幅に比例させる（1280px のときデザインデータと一致） */
.header__nav li {
  position: absolute; top: 0;
  left: calc(var(--vx) * (226.8 + 157.58 * var(--i)));
  transform: translateX(-50%);
}
.header__nav li:nth-child(1) { --i: 0; }
.header__nav li:nth-child(2) { --i: 1; }
.header__nav li:nth-child(3) { --i: 2; }
.header__nav li:nth-child(4) { --i: 3; }
.header__nav li:nth-child(5) { --i: 4; }
.header__nav li:nth-child(6) { --i: 5; }
.header__nav a {
  position: relative;
  height: calc(var(--hu) * 92);
  padding-top: calc(var(--hu) * 33);
  justify-items: center; align-content: start;
  font-size: max(12px, calc(var(--hu) * 14.5)); font-weight: 300; line-height: 1.4;
  letter-spacing: 0.02em; white-space: nowrap;
}
.header__nav .swap__ja { align-self: start; padding-top: 0.12em; }
/* 駅の点 */
.header__nav a::before,
.header__nav a::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--hu) * 81.9);
  border-radius: 50%; background: currentColor;
  transform: translate(-50%, -50%);
}
.header__nav a::after { width: 10px; height: 10px; }
.header__nav a::before {
  width: 20px; height: 20px; opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.header__nav a.is-current::before { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }

/* アイコンとハンバーガーは右端からの距離で置く（デザインデータの右余白を保つ） */
.header__sns {
  position: absolute; top: calc(var(--hu) * 35.5); right: calc(var(--hu) * 99.5);
  display: flex; align-items: center; gap: calc(var(--hu) * 20);
}
.header__sns a:first-child img { width: calc(var(--hu) * 24.1); height: auto; }
.header__sns a:last-child img { width: calc(var(--hu) * 19.7); height: auto; }

/* ハンバーガー：線路3本（アートボード1：x 1211.28–1246.85、y 33.8 / 43.9 / 54.0） */
.header__menu {
  position: absolute; right: calc(var(--hu) * 33.15); top: calc(var(--hu) * 33.8);
  width: calc(var(--hu) * 35.57); height: calc(var(--hu) * 22.54);
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  z-index: 3;
}
.header__menu span {
  position: absolute; left: 0; width: 100%; height: calc(var(--hu) * 2.344);
  background: currentColor;
  -webkit-mask: url(../img/rail.svg) repeat-x left center / auto 100%;
          mask: url(../img/rail.svg) repeat-x left center / auto 100%;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.header__menu span:nth-child(1) { top: 0; }
.header__menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__menu span:nth-child(3) { bottom: 0; }
.header__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(calc(var(--hu) * 10.1)) rotate(20deg); }
.header__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(calc(var(--hu) * -10.1)) rotate(-20deg); }
body.drawer-open .header { color: var(--white); }
body.drawer-open .header .header__logo img,
body.drawer-open .header .header__sns img { filter: none; }

/* ---------- drawer：現行サイトのハンバーガーメニューに合わせる（背景は緑の質感のまま、位置は画面の中央） ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: var(--fill) url(../img/bg-green.webp) center / cover;
  color: var(--white);
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.drawer.active { opacity: 1; visibility: visible; }
/* 各項目：丸と谷型のマーク → 英字（24px）→ 日本語（16px）。行の高さ 42px・間隔 16px（現行サイトと同じ） */
.drawer__nav li + li { margin-top: 16px; }
.drawer__nav a { display: flex; align-items: center; gap: 16px; line-height: 42px; letter-spacing: 0.05em; }
.drawer__nav a::before { content: ""; flex: none; width: 28px; height: 28px; background: url(../img/ico-menu-mark.svg?v=2) center / contain no-repeat; }
.drawer__en { font-family: "Noto Serif", "Noto Serif JP", serif; font-size: 24px; font-weight: 500; }
.drawer__ja { font-size: 16px; font-weight: 500; letter-spacing: 0.05em; }
.drawer__nav a:hover { opacity: 0.75; }
.drawer__sns { display: flex; align-items: center; gap: 24px; margin-top: 44px; padding-left: 44px; }
.drawer__sns img { display: block; height: auto; }
.drawer__sns a:hover { opacity: 0.75; }

/* ---------- Concept / KV ---------- */
.concept {
  position: relative;
  height: 200vh; /* 写真を固定したまま、1 回のスクロールで線画と文章をすべて表示する */
  background: #000;
}
.concept__sticky {
  /* stage：アートボード（1280×850）を画面いっぱいに cover で敷く。中の要素は --u で配置 */
  --w: max(100vw, calc(100svh * 1280 / 850));
  --u: calc(var(--w) / 1280);
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #000;
}
.concept.white .concept__sticky { background: #fff; }

.kv__photo-01 { position: absolute; inset: 0; z-index: 1; }
.kv__photo-01 img { width: 100%; height: 100%; object-fit: cover; transition: opacity 2s var(--ease); }
.kv-01.dark { opacity: 0.2; }
.kv-01.none { display: none; }

/* 横長の画面では上下がはみ出す。中央で切ると上部のイラストがメニューに重なるので、
   イラストの上端（y≈100）がメニューの線より下に来る位置まで下げる（下側を多めに切る） */
.stage {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: var(--w); height: calc(var(--u) * 850);
  transform: translate(-50%, min(0px, max(calc((100svh - var(--u) * 850) / 2), calc(var(--hu) * 104 - var(--u) * 100))));
}
.stage__media { position: absolute; inset: 0; opacity: 0; transition: opacity 4s var(--ease); }
.stage__media:has(.kv-02.active) { opacity: 1; }
.stage__photo {
  position: absolute; left: calc(var(--u) * -7); top: calc(var(--u) * -1.6);
  width: calc(var(--u) * 1287); max-width: none; height: calc(var(--u) * 965);
  object-fit: cover;
}
.stage__tint,
.stage__lift,
.stage__gray { position: absolute; inset: 0; pointer-events: none; }
.stage__tint { background: #d3e2db; mix-blend-mode: multiply; }
.stage__lift { background: #fff; opacity: 0; }
.stage__gray { background: #757a76; mix-blend-mode: multiply; opacity: 0; }
.stage__illust { position: absolute; inset: 0; }
.stage__illust svg { display: block; width: 100%; height: 100%; overflow: visible; }

.stage__labels { position: absolute; inset: 0; color: var(--white); }
.label {
  position: absolute;
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * (var(--y) - 2.25));
  display: flex; gap: calc(var(--u) * 7.2);
  font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 24.5);
  letter-spacing: 0.08em; font-weight: 400;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.label--15 { font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 26.3); }
.label p { margin: 0; white-space: nowrap; }
.label::before {
  content: ""; flex: none;
  width: calc(var(--u) * 20); height: calc(var(--u) * 20);
  margin-top: calc(var(--u) * 2.25);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 calc(var(--u) * 4.6), rgba(255, 255, 255, 0.45) calc(var(--u) * 5.2));
}
.caption {
  position: absolute;
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * (var(--y) + 9));
  font-size: calc(var(--u) * 13); letter-spacing: 0.08em;
  opacity: 0;
}

.concept__text {
  position: absolute; z-index: 5;
  /* アートボード2の x=217 に合わせる（stage の左端 + 217） */
  left: calc(50vw - var(--u) * 423); bottom: calc(var(--hu) * 64);
  color: var(--white);
  pointer-events: none;
}
.concept__title {
  margin: 0;
  font-size: max(20px, calc(var(--hu) * 30)); font-weight: 500;
  line-height: 1.64; letter-spacing: 0.06em;
}
.concept__body {
  margin: calc(var(--hu) * 18) 0 0;
  font-size: max(13px, calc(var(--hu) * 15)); font-weight: 400;
  line-height: 1.74; letter-spacing: 0.08em;
}
.concept__title,
.concept__body { opacity: 0; }

/* ---------- opening（既存サイト TOP から移植） ---------- */
.kv__object {
  position: absolute; inset: 0; z-index: 9;
  color: var(--white);
  transition: opacity 2s var(--ease);
}
.kv__object.none { opacity: 0; visibility: hidden; transition: opacity 2s var(--ease), visibility 0s 2s; }

.mask {
  position: absolute; top: 50%;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.mask img { width: 100%; height: auto; }
.mask-copy1, .mask-copy2 { filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.8)); }
/* オープニングの線路は rail.svg を 110% で表示 */
.kv__object .rail { width: 100%; height: max(2.58px, calc(100vw * 2.344 * 1.1 / 1280)); }
.mask-line1 { left: 0; width: 31.64vw; transform: translateY(-50%); }
.mask-line2 { left: 69.53vw; width: 30.47vw; transform: translateY(-50%); }
.mask-copy1 { left: 31.64vw; width: 19.61vw; transform: translateY(-53.5%); }
.mask-copy2 { left: 50.16vw; width: 19.38vw; transform: translateY(-53.5%); }
.mask-logo  { left: 3.58vw;  width: 11.02vw; transform: translateY(-50%); }
.kv__object.logo-on .mask-line1 {
  -webkit-mask-image: linear-gradient(90deg, #000 0 3.58vw, transparent 3.58vw 14.6vw, #000 14.6vw);
          mask-image: linear-gradient(90deg, #000 0 3.58vw, transparent 3.58vw 14.6vw, #000 14.6vw);
}

/* ---------- セクション共通（アートボード3の見出し） ---------- */
.sec-eyebrow {
  margin: 0; font-size: max(13px, calc(var(--hu) * 15)); font-weight: 500; letter-spacing: 0.12em;
}
.sec-title {
  margin: 8px 0 0; font-size: max(22px, calc(var(--hu) * 30)); font-weight: 500;
  line-height: 1.5; letter-spacing: 0.06em;
}
.sec-lead {
  margin: 12px 0 0; font-size: max(13px, calc(var(--hu) * 15)); font-weight: 500;
  line-height: 1.8; letter-spacing: 0.1em;
}
.sec { color: var(--green); }
.sec__inner { padding: calc(var(--hu) * 131 + 60px) var(--side) 140px; }

.btn {
  display: inline-flex; align-items: center; gap: 20px;
  margin-top: 48px; padding: 16px 28px;
  font-size: 13px; letter-spacing: 0.1em;
  transition: opacity 0.3s;
}
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.btn:hover { opacity: 0.85; }
.btn--white { background: var(--white); color: var(--green); }
.btn--green { background: var(--fill); color: var(--white); }

/* ---------- Philosophy ---------- */
.philosophy {
  position: relative;
  color: var(--white);
  background: var(--fill) url(../img/bg-green.webp) center / cover no-repeat;
}
/* 閉じた状態でちょうど1画面（タイトル・文章・写真3枚・もう少し詳しく・ボタン）。開くとその分だけ下に伸びる */
.philosophy__inner {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--hu) * 131 + 28px) var(--side) 40px;
}
.philosophy__inner > * { width: 100%; }
.philosophy__inner > .btn { width: auto; margin-top: 28px; }
/* ブランドフィロソフィへのボタン：白 70% の半透明・0.5px の緑の線（線は 100%）・角丸 5px（中核施設のボタンとそろえる） */
.philosophy__inner > .btn--white {
  background: rgba(255, 255, 255, 0.7); border: 0.5px solid var(--fill); border-radius: 5px;
  transition: background-color 0.3s;
}
/* マウスオーバーで白が濃くなる（ほかのボタンのように薄くはしない） */
.philosophy__inner > .btn--white:hover { opacity: 1; background: rgba(255, 255, 255, 0.95); }
.philosophy__inner > .sec-title { margin-top: 0; }
.philosophy__inner > .sec-lead { margin-top: 16px; }
.philosophy__body {
  margin: 28px 0 0; max-width: 760px;
  font-size: 14px; line-height: 2; letter-spacing: 0.08em; opacity: 0.88;
}

/* 人・自然・くらしの写真：横長の帯。高さは「横幅の 1/2」と「画面の高さから他の要素を引いた分」の小さいほう */
.ph-photos {
  --ph-h: clamp(110px, calc(100svh - var(--hu) * 131 - 530px), calc((100vw - var(--side) * 2 - 32px) / 6));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 40px;
}
.ph-photos li { position: relative; height: var(--ph-h); overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.ph-photos img { width: 100%; height: 100%; object-fit: cover; }
.ph-photos li:nth-child(3) img { object-position: center 10%; } /* くらし：右の人の顔が切れないよう上寄せ */
/* 言葉が写真の明るい部分でも読めるよう、下側だけ少し暗く */
.ph-photos li::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.ph-photos__label { z-index: 1; }
.ph-photos__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: 0.15em; opacity: 0.5; }
.ph-photos__label {
  position: absolute; left: 16px; bottom: 12px; margin: 0;
  display: flex; align-items: baseline; gap: 10px;
  font-size: 10px; letter-spacing: 0.25em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.ph-photos__label span { font-size: clamp(22px, 1.9vw, 28px); font-weight: 300; letter-spacing: 0.04em; }

/* 高さの低い画面（〜760px）：余白と行間を詰めて1画面に収める */
@media (min-width: 800px) and (max-height: 760px) {
  .philosophy__inner { padding-top: calc(var(--hu) * 131 + 10px); padding-bottom: 22px; }
  .philosophy__body { margin-top: 12px; line-height: 1.8; }
  .ph-photos { --ph-h: clamp(90px, calc(100svh - var(--hu) * 131 - 430px), calc((100vw - var(--side) * 2 - 32px) / 6)); margin-top: 18px; }
  .more { margin-top: 16px; }
  .more summary { padding: 11px 40px 11px 0; }
  .philosophy__inner > .btn { margin-top: 16px; padding: 12px 24px; }
}

/* ミッション・ビジョン・バリュー（「もう少し詳しく」のいちばん上） */
.mvv {
  display: grid; grid-template-columns: 1fr 1.22fr 1fr;
  margin-bottom: 36px; padding-bottom: 32px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.mvv__col { padding: 8px 28px 8px 0; }
.mvv__col + .mvv__col { padding-left: 28px; border-left: 1px dashed rgba(255, 255, 255, 0.3); }
.mvv__label { margin: 0; font-size: 11px; letter-spacing: 0.25em; opacity: 0.7; }
.mvv__title { margin: 14px 0 0; font-size: 16px; font-weight: 500; line-height: 1.7; letter-spacing: 0.06em; }
.mvv__text { margin: 14px 0 0; font-size: 13px; line-height: 2; letter-spacing: 0.06em; opacity: 0.88; }
.mvv__list { margin-top: 14px; counter-reset: n; }
.mvv__list li {
  position: relative; padding-left: 1.9em;
  font-size: 13px; line-height: 2; letter-spacing: 0.06em; opacity: 0.88;
  counter-increment: n;
}
.mvv__list li::before {
  content: counter(n); position: absolute; left: 0; top: 0.55em;
  width: 1.3em; height: 1.3em; border: 1px solid currentColor; border-radius: 50%;
  font-size: 0.75em; line-height: 1.2em; text-align: center;
}

.more {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.more summary {
  position: relative; padding: 16px 40px 16px 0;
  font-size: 14px; letter-spacing: 0.1em; cursor: pointer; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before,
.more summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 14px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.more summary::after { transform: rotate(90deg); }
.more[open] summary::after { transform: rotate(0deg); }
.more__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px;
  padding: 12px 0 40px;
}
.more h4 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; }
.more__grid p { margin: 10px 0 0; font-size: 13px; line-height: 2; letter-spacing: 0.04em; opacity: 0.88; }
.more__quote { margin: 0 0 44px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.5); }
.more__quote p { margin: 0; font-size: 17px; letter-spacing: 0.08em; }
.more__quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; opacity: 0.7; }

/* ---------- History：年表の点を押すと、対応するビジュアルに切り替わる ---------- */
.history__body {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start;
  margin-top: 56px;
}
.history__kv { position: sticky; top: calc(var(--hu) * 130 + 24px); }
.slides { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pale); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slides::after {
  content: ""; position: absolute; inset: 55% 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.slides__caption {
  position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; margin: 0;
  color: var(--white); font-size: 13px; line-height: 1.7; letter-spacing: 0.08em;
}
.slides__caption span { display: block; margin-bottom: 2px; font-size: 28px; font-weight: 300; letter-spacing: 0.04em; }

/* 年表：縦の線路（rail-v.svg）に駅の点 */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2.344px;
  background: var(--gray);
  -webkit-mask: url(../img/rail-v.svg) repeat-y center top / 100% auto;
          mask: url(../img/rail-v.svg) repeat-y center top / 100% auto;
}
.timeline li { position: relative; padding: 0 0 22px; cursor: pointer; }
.timeline__dot {
  position: absolute; left: -38px; top: 1px;
  width: 19px; height: 19px; padding: 0; border: 0; background: none; cursor: pointer;
}
.timeline__dot::before {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 11px; height: 11px; border: 1px solid var(--gray); border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.timeline__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--fill); opacity: 0; transform: scale(0.5);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline li:hover .timeline__dot::before { transform: scale(1.2); border-color: var(--green); }
.timeline li.is-active .timeline__dot::before { background: var(--fill); border-color: var(--fill); }
.timeline li.is-active .timeline__dot::after { opacity: 0.2; transform: scale(1); }
.timeline time { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--gray); }
.timeline h4 { margin: 4px 0 0; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.6; transition: color 0.3s; }
.timeline li:not(.is-active) h4 { color: rgba(32, 74, 66, 0.75); }
.timeline p { margin: 6px 0 0; font-size: 13px; line-height: 1.9; color: var(--ink); opacity: 0.8; }

/* ---------- 案の切り替え：section の data-layout と一致する data-variant だけ表示 ---------- */
[data-layout="a"] > [data-variant="b"],
[data-layout="b"] > [data-variant="a"] { display: none; }

/* ---------- History 案A：アルバム（2026-11 ご指示のレイアウト。1280×850 を基準に、画面に収まる大きさで中央に置く） ----------
   --u：1280×850 が画面の幅にも高さにも収まる 1 単位。座標はレイアウト見本（2000px幅）÷1.5625。
   年月・文・写真・年号の帯は、年月の文字の下端（ベースライン）が「History」とそろうよう、見本から 8.5 下げている */
.album {
  --u: min(var(--vx), calc(100svh / 850));
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
}
.album__stage { position: relative; width: calc(var(--u) * 1280); height: calc(var(--u) * 850); margin: 0 auto; }
/* 英字見出し（アートボード4・5）。ai の指定は #CF4727 だが、ご指示により本文と同じ緑に */
.red-title {
  position: absolute; left: calc(var(--vx) * 165); top: calc(var(--vx) * 128);
  margin: 0;
  font-size: max(24px, calc(var(--hu) * 30)); font-weight: 500; line-height: 1.4;
  letter-spacing: 0.02em; color: var(--green);
}
.album .red-title { left: calc(var(--u) * 165); top: calc(var(--u) * 138); font-size: max(26px, calc(var(--u) * 36)); line-height: 1.2; }
.album__slides { position: absolute; inset: 0; }
.album__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease-in-out; pointer-events: none; }
.album__slide.is-active { opacity: 1; pointer-events: auto; }
.album__slide figcaption { position: absolute; left: calc(var(--u) * 349); top: calc(var(--u) * 153.5); right: calc(var(--u) * 60); color: var(--green); }
.album__date {
  margin: 0; font-size: max(15px, calc(var(--u) * 19)); font-weight: 600; line-height: 1.4; letter-spacing: 0.12em;
}
.album__date small { font-size: 1em; }
.album__text {
  margin: calc(var(--u) * 8) 0 0; font-size: max(12px, calc(var(--u) * 14.5)); line-height: 1.6; letter-spacing: 0.14em;
}
/* 写真：x350–1171・y226.5–751.5（比率 821:525） */
.album__photo {
  position: absolute; left: calc(var(--u) * 350); top: calc(var(--u) * 226.5);
  width: calc(var(--u) * 821); height: calc(var(--u) * 525); overflow: hidden; background: #fff;
}
.album__photo img { width: 100%; height: 100%; object-fit: cover; }
.album__slide.is-top img { object-position: center top; }
.album__slide.is-contain img { object-fit: contain; }
/* 写真が未定のもの：グレー地に番号 */
.album__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; background: #d6dbd8;
  font-size: max(11px, calc(var(--u) * 13)); letter-spacing: 0.2em; color: #6d7a74;
}
.album__ph span { font-size: max(36px, calc(var(--u) * 72)); font-weight: 300; line-height: 1; letter-spacing: 0.04em; }

/* 年号の帯（年号の間隔 158、間に細い線は画面の右端まで）。表示中の項目の位置に丸ポチ */
.album__years { position: absolute; left: calc(var(--u) * 348); top: calc(var(--u) * 794.5); right: calc(var(--u) * -2000); }
.album__years ul { display: grid; grid-template-columns: repeat(5, calc(var(--u) * 158)) 1fr; margin: 0; padding: 0; list-style: none; }
.album__years li { display: flex; align-items: center; }
.album__years li::after {
  content: ""; flex: 1; height: 0.5px; margin: 0 calc(var(--u) * 11) 0 calc(var(--u) * 8);
  background: var(--green);
}
.album__years li:last-child::after { margin-right: 0; }
.album__years button {
  padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-size: max(11px, calc(var(--u) * 13)); line-height: 1.4; letter-spacing: 0.08em; color: var(--green);
}
.album__years button:disabled { cursor: default; }
.album__marks { position: absolute; left: 0; top: calc(var(--u) * -10); height: 0; }
/* 線の上の見えない押し場所（各項目の位置）。写真は押すと次の項目へ */
.album__hit {
  position: absolute; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.album__photo { cursor: pointer; }
.album__dot {
  position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: max(10px, calc(var(--u) * 11.5)); height: max(10px, calc(var(--u) * 11.5)); border-radius: 50%;
  background: var(--gray); transform: translate(-50%, -50%);
  transition: left 1s var(--ease);
}

/* ---------- Facility 案A：大きな写真（アートボード5） ----------
   写真は y190–画面下。幅は ai と同じ 1208 で、左右の余白をそろえて画面の中央に置く。
   ロゴと縦書きコピーは写真に対する位置（%）で重ね、ai と同じく画面の中央にそろえる */
.facility[data-layout="a"] { background: #fff; }
.stay { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.stay__lead {
  position: absolute; left: calc(var(--vx) * 348.7); top: calc(var(--vx) * 150); margin: 0;
  font-size: max(13px, calc(var(--hu) * 15)); line-height: 1.6; letter-spacing: 0.1em; color: var(--green);
}
.stay__photo {
  position: absolute; left: calc(var(--vx) * 36); right: calc(var(--vx) * 36); top: calc(var(--vx) * 190); bottom: 0;
  overflow: hidden;
}
/* スライダー：写真がゆっくり重なりながら切り替わる */
.stay__slides { position: absolute; inset: 0; }
.stay__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2s ease;
}
.stay__img.is-active { opacity: 1; }
.stay__logo { position: absolute; left: 42.06%; top: 36.67%; width: 15.89%; height: auto; }
/* 縦書きコピーと影（ai：影1 582.8,604.2 106.8×154.8／影2 594.5,615.5 85.2×133.9／文字 606,628 61×109） */
.stay__copy { position: absolute; left: 45.58%; top: 62.76%; width: 8.84%; aspect-ratio: 106.8 / 154.8; }
.stay__copy img { position: absolute; height: auto; }
.stay__shadow1 { left: 0; top: 0; width: 100%; mix-blend-mode: multiply; opacity: 0.5; }
.stay__shadow2 { left: 11%; top: 7.29%; width: 79.78%; mix-blend-mode: multiply; }
.stay__text { left: 21.72%; top: 15.37%; width: 57.12%; }

/* ---------- Facility ---------- */
.facility { background: var(--pale); }
.facility__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: stretch;
  margin-top: 56px;
}
/* 写真は Satologue の施設紹介の4枚（比率 3:2）。重なりながら切り替わり、左下に施設名 */
/* 高さは横幅から決める（行の高さに引き伸ばすと、幅が列からはみ出して文字に重なる） */
.facility__photo { position: relative; align-self: start; width: 100%; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pale); }
.facility__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.facility__slide.is-active { opacity: 1; }
.facility__slide img { width: 100%; height: 100%; object-fit: cover; }
.facility__slide figcaption {
  position: absolute; left: 0; bottom: 0; padding: 7px 14px;
  background: rgba(255, 255, 255, 0.88); font-size: 12px; letter-spacing: 0.1em; color: var(--green);
}
.placeholder-photo {
  display: flex; align-items: flex-end; padding: 16px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cfd9d4, #b9c8c1);
  color: rgba(32, 74, 66, 0.6); font-size: 11px; letter-spacing: 0.1em;
}
/* 文字部分は写真と同じ高さ：ロゴを写真の上端、ボタンを写真の下端にそろえる（DMO_web 0階層_satologue.ai） */
.facility__text { display: flex; flex-direction: column; align-items: flex-start; }
.facility__name { margin: 0; line-height: 0; }
.facility__name img { width: 192px; height: auto; margin-top: -4px; }
.facility__catch { margin: 6px 0 0; font-size: 14px; line-height: 1.8; letter-spacing: 0.1em; color: var(--green); }
.facility__desc { margin: 28px 0 32px; font-size: 15px; line-height: 1.75; letter-spacing: 0.1em; color: var(--green); }
/* 公式サイトへのボタン（ai：316×54・角丸5・文字14 ExtraLight）。右に 0.5px の線（長さ67）と、右端から左上へ片側だけの矢じり */
.facility__text .btn {
  position: relative; width: 316px; max-width: 100%; height: 54px; margin-top: auto; padding: 0 110px 0 27px;
  border-radius: 5px; font-size: 14px; font-weight: 200;
}
.facility__text .btn::before,
.facility__text .btn::after {
  content: ""; position: absolute; right: 25px; top: 29.5px; height: 0.5px; background: currentColor;
}
.facility__text .btn::after { width: 67px; }
.facility__text .btn::before { width: 13px; transform-origin: right center; transform: rotate(33.8deg); }
/* 2列のまま幅が狭いとき（800〜1199px）：文字が折り返さないよう、矢印の線を短くして余白を詰める */
@media (min-width: 800px) and (max-width: 1199px) {
  .facility__text .btn { padding: 0 72px 0 20px; white-space: nowrap; }
  .facility__text .btn::before, .facility__text .btn::after { right: 18px; }
  .facility__text .btn::after { width: 40px; }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 5px 12px; border: 1px solid rgba(32, 74, 66, 0.4); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Lines：区切りは線路 ---------- */
.lines__list {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4.5vw, 64px);
  margin-top: 56px;
}
.lines__list li {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 26px 30px;
}
.lines__list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.344px;
  background: rgba(112, 126, 115, 0.55);
  -webkit-mask: url(../img/rail.svg) repeat-x left center / auto 100%;
          mask: url(../img/rail.svg) repeat-x left center / auto 100%;
}
.lines__list li:nth-child(-n + 2)::before { content: none; }
.lines__list li > div::before,
.lines__link > div::before {
  content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border: 1px solid var(--gray); border-radius: 50%;
}
.lines__list li.is-run > div::before,
.lines__list li.is-run .lines__link > div::before { background: var(--fill); border-color: var(--fill); }
.lines__name { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: 0.08em; }
.lines__area { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.08em; color: var(--gray); }
/* 沿線ごとのテーマ（英字は Noto Serif の Medium。未定の沿線は Coming soon） */
.lines__theme { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.1em; color: var(--green); }
.lines__theme-en { margin-right: 0.8em; font-family: "Noto Serif", "Noto Serif JP", serif; font-weight: 500; letter-spacing: 0.04em; }
.lines__theme.is-soon { color: var(--gray); }
.status { flex-shrink: 0; margin-left: 12px; padding: 4px 12px; font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; } /* 幅が狭くても「運営中」を1行で */
.status--run { background: var(--fill); color: var(--white); }
.status--trial { border: 1px solid var(--green); }
.status--plan { border: 1px dashed var(--gray); color: var(--gray); }
/* 押せる沿線（青梅線・久留里線）：マウスを乗せると半透明の網掛け */
.lines__link { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; }
.lines__link::after {
  content: ""; position: absolute; inset: 0 -28px; z-index: -1;
  background: rgba(32, 74, 66, 0.08); opacity: 0; transition: opacity 0.3s;
}
.lines__list li.is-link { isolation: isolate; }
.lines__link:hover::after, .lines__link:focus-visible::after { opacity: 1; }
/* まだ押せない沿線：薄くして、カーソルも押せない形に */
.lines__list li.is-soon > * { opacity: 0.45; }
.lines__list li.is-soon { cursor: not-allowed; }

/* ---------- News ---------- */
.news { border-top: 1px solid #e6ebe8; }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; }
.news__head .sec-title { margin-top: 0; } /* 見出しはほかのセクションのタイトルと同じ大きさ */
.more-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.1em; }
.more-link::after { content: ""; width: 28px; height: 1px; background: currentColor; }
/* お知らせの行（TOP とお知らせ一覧 news.html で共通）：現行サイトと同じく サムネイル・日付・● カテゴリー・沿線名・タイトル・丸い矢印 */
.news__list { margin-top: 32px; }
.nl__list { margin-top: 20px; }
.nl__item a {
  display: grid; grid-template-columns: 168px 1fr 34px; gap: 32px; align-items: center;
  padding: 20px 0;
}
.nl__thumb { display: block; aspect-ratio: 800 / 580; overflow: hidden; background: #ccc; }
.nl__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.nl__item a:hover .nl__thumb img { transform: scale(1.04); }
.nl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; letter-spacing: 0.06em; }
.nl__cat { display: inline-flex; align-items: center; gap: 8px; }
.nl__cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
/* 沿線名：緑の角丸に白文字で小さく */
.nl__line {
  padding: 2px 9px; border-radius: 3px; background: var(--fill); color: var(--white);
  font-size: 11px; line-height: 1.5; letter-spacing: 0.08em;
}
.nl__line + .nl__line { margin-left: -10px; }
.nl__title { display: block; margin-top: 10px; font-size: 15px; line-height: 1.75; letter-spacing: 0.06em; }
.nl__arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M14.5 11 20.5 17l-6 6' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E") center / 100% no-repeat;
  opacity: 0.7; transition: opacity 0.3s;
}
.nl__item a:hover .nl__arrow { opacity: 1; }


/* ---------- Footer ---------- */
.footer {
  color: var(--white);
  background: var(--fill) url(../img/bg-green.webp) center bottom / cover no-repeat;
}
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 80px var(--side) 56px;
}
.footer__brand img { width: 96px; height: auto; }
.footer__address { margin: 24px 0 0; font-size: 12px; line-height: 2; letter-spacing: 0.06em; opacity: 0.9; }
.footer__label { margin: 0 0 18px; font-size: 11px; letter-spacing: 0.25em; opacity: 0.7; }
.footer__menu li + li { margin-top: 12px; }
.footer__menu a { font-size: 14px; letter-spacing: 0.04em; }
.footer__rail { margin: 0 var(--side); color: rgba(255, 255, 255, 0.5); }
.footer__copy { margin: 0; padding: 20px var(--side) 28px; font-size: 11px; letter-spacing: 0.06em; opacity: 0.7; }

/* ---------- 固定バナー ---------- */
.float {
  position: fixed; right: 0; bottom: 24px; z-index: 80;
  display: flex; flex-direction: column; gap: 6px; width: 214px;
  opacity: 0; transform: translateX(16px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.float.active { opacity: 1; transform: none; pointer-events: auto; }
.float.active.is-away { opacity: 0; transform: translateX(16px); pointer-events: none; }
/* 枠線 0.5px・左側の角だけ 5px の角丸・背景は 80% の半透明 */
.float a {
  position: relative; display: block; padding: 10px 44px 10px 14px;
  background: rgba(255, 255, 255, 0.8); color: var(--green);
  border: 0.5px solid var(--fill); border-right: 0; border-radius: 5px 0 0 5px;
  font-size: 13px; letter-spacing: 0.06em; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.float a:first-child { background: rgba(32, 74, 66, 0.8); color: var(--white); }
.float a span { display: block; font-size: 9px; letter-spacing: 0.2em; opacity: 0.7; }
.float a::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 1px; background: currentColor;
}

/* ---------- SP ---------- */
@media (max-width: 799px) {
  :root { --side: 20px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }

  /* ヘッダー：現行サイトのモバイル版と同じく、左に丸いロゴ、右に YouTube・Instagram とハンバーガー（線路の線はなし） */
  .header { height: 84px; background: linear-gradient(rgba(12, 28, 25, 0.5), rgba(12, 28, 25, 0)); transition: opacity 2s var(--ease), color 0.5s, background 0.4s; }
  /* 明るいセクションの上では白く。本文の上に重なっても読めるように */
  .header.is-dark { background: linear-gradient(rgba(255, 255, 255, 0.96) 70%, rgba(255, 255, 255, 0)); }
  body.drawer-open .header { background: none; }
  .header__logo { left: 14px; top: 14px; width: 70px; }
  .header__rail, .header__nav { display: none; }
  .header__sns { top: 22px; right: 68px; gap: 14px; }
  .header__sns a:first-child img { width: 24px; }
  .header__sns a:last-child img { width: 20px; }
  /* SP はデザインデータの等倍（35.57×22.54）で表示 */
  .header__menu { right: 16px; top: 20px; width: 35.57px; height: 22.54px; }
  .header__menu span { height: 2.344px; }
  .header__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.1px) rotate(20deg); }
  .header__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.1px) rotate(-20deg); }

  /* SP：現行サイトのモバイル版と同じく、鉄道・道・建物のあたり（アートボードの x560〜950）を切り出し、
     ラベルは見える範囲に置き直す。駅・集落・モビリティ・レストラン棟のラベルは範囲外のため出さない */
  .stage { left: 0; transform: translate(calc(-1 * var(--u) * 560), 0); }
  .stage__labels li:nth-child(1), .stage__labels li:nth-child(3),
  .stage__labels li:nth-child(7), .stage__labels li:nth-child(9) { display: none; }
  .stage__labels li:nth-child(2) { --x: 575 !important; --y: 262 !important; }
  .stage__labels li:nth-child(4) { --x: 600 !important; --y: 196 !important; }
  .stage__labels li:nth-child(6) { --x: 770 !important; --y: 417 !important; }
  /* 宿泊棟：下の文章と重ならないよう、建物の下から屋根の左上へ移す */
  .stage__labels li:nth-child(8) { --x: 632 !important; --y: 414 !important; }
  .concept__text { left: 20px; right: 20px; bottom: 36px; }
  .concept__title { font-size: 18px; }
  .concept__body { margin-top: 12px; }

  /* オープニング：コピーを2行に積む */
  .mask-copy1 { left: 18vw; width: 64vw; transform: translateY(-105%); }
  .mask-copy2 { left: 15vw; width: 63.2vw; transform: translateY(5%); }
  .mask-line1 { width: 17.5vw; top: calc(50% - 7.3vw); }
  .mask-line2 { left: 79vw; width: 21vw; top: calc(50% + 7.3vw); }
  .mask-logo { display: none; }

  .sec-title { font-size: 21px; }
  .philosophy__inner, .sec__inner { padding: 120px 20px 100px; }
  .philosophy__inner { min-height: 0; }
  .philosophy__body { margin-top: 32px; font-size: 13px; line-height: 2.1; }
  /* 人・自然・くらし：横に3枚並べる（縦長） */
  .ph-photos { --ph-h: auto; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 32px; }
  .ph-photos li { aspect-ratio: 3 / 4; }
  .ph-photos__label { left: 8px; bottom: 8px; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 8px; letter-spacing: 0.2em; }
  .ph-photos__label span { font-size: 18px; }
  .mvv { grid-template-columns: 1fr; }
  .mvv__col, .mvv__col + .mvv__col { padding: 28px 0; border-left: 0; }
  .mvv__col + .mvv__col { border-top: 1px dashed rgba(255, 255, 255, 0.3); }
  .more__grid { grid-template-columns: 1fr; gap: 28px; }
  .history__kv { position: sticky; top: 70px; z-index: 2; }

  .album { height: auto; min-height: 0; padding: 100px 20px 72px; }
  .stay { height: auto; min-height: 0; padding: 100px 0 0; }
  .red-title, .stay__lead { position: relative; left: auto; top: auto; margin-left: 20px; margin-right: 20px; }
  .stay__lead { margin-top: 12px; }
  .stay__photo { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 70svh; margin-top: 24px; }
  .stay__logo { left: 25%; top: 30%; width: 50%; }
  .stay__copy { left: 41%; top: 55%; width: 20%; }
  /* スマホ：見出し → 年月と文 → 写真 → 年号の帯を縦に並べる */
  .album__stage { width: auto; height: auto; }
  .album .red-title { position: relative; left: auto; top: auto; margin: 0; font-size: 28px; }
  .album__slides { position: relative; inset: auto; display: grid; margin-top: 16px; }
  .album__slide { position: relative; inset: auto; grid-area: 1 / 1; }
  .album__slide figcaption { position: relative; left: auto; top: auto; right: auto; min-height: 96px; }
  .album__text { letter-spacing: 0.1em; }
  .album__photo { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 821 / 525; margin-top: 12px; }
  .album__years { position: relative; left: auto; top: auto; right: auto; margin-top: 40px; }
  .album__years ul { grid-template-columns: repeat(5, 1fr) auto; }
  .album__years li:last-child::after { content: none; }
  .album__years li::after { margin: 0 4px; }
  .album__marks { top: -12px; }
  .history__body, .facility__body { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  /* iPhone の Safari では、中身が絶対配置だけの枠に aspect-ratio が効かず高さ 0 になるので、余白で 3:2 の高さを確保する */
  .facility__photo { align-self: start; aspect-ratio: auto; height: auto; }
  .facility__photo::before { content: ""; display: block; padding-top: 66.667%; }
  .facility__name img { width: 150px; }
  .facility__text .btn { width: 100%; }

  /* 見出しの行：現行サイトのモバイル版と同じく「見出し ── 線路 ── ● More」 */
  .news__head { align-items: center; gap: 14px; }
  .news__head > div { flex: none; }
  .news__head .more-link { flex: 1; gap: 10px; }
  .news__head .more-link::before {
    content: ""; flex: 1; order: -2; height: 2.344px; background: rgba(112, 126, 115, 0.8);
    -webkit-mask: url(../img/rail.svg) repeat-x left center / auto 100%;
            mask: url(../img/rail.svg) repeat-x left center / auto 100%;
  }
  .news__head .more-link::after {
    width: 12px; height: 12px; border-radius: 50%; background: var(--fill);
    box-shadow: 0 0 0 4px rgba(32, 74, 66, 0.2); order: -1; margin: 0 6px 0 -4px;
  }
  .lines__list { grid-template-columns: 1fr; margin-top: 36px; }
  .drawer__nav li + li { margin-top: 8px; }
  .drawer__nav a { gap: 12px; }
  .drawer__nav a::before { width: 24px; height: 24px; }
  .drawer__en { font-size: 21px; }
  .drawer__ja { font-size: 13px; }
  .drawer__sns { margin-top: 32px; padding-left: 36px; }
  .nl__item a { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; padding: 16px 0; }
  .nl__arrow { display: none; }
  .nl__title { font-size: 13px; line-height: 1.7; margin-top: 6px; }
  .nl__meta { font-size: 12px; gap: 6px 12px; }

  .footer__inner { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .footer__brand { grid-column: 1 / -1; }

  .float { width: auto; left: 0; bottom: 0; flex-direction: row; gap: 0; transform: translateY(16px); }
  /* モバイル：3つを横に並べ、2行に改行して読みやすい大きさに。高さをそろえて文字は上下中央 */
  .float { padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, 0.8); }
  .float a {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 64px; padding: 9px 4px; border: 0; border-right: 0.5px solid rgba(32, 74, 66, 0.3); border-radius: 0;
    font-size: 13px; line-height: 1.45; letter-spacing: 0.04em; text-align: center; white-space: normal; box-shadow: none;
  }
  .float a:last-child { border-right: 0; }
  .float a span { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 1px; }
  .float a::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .label, .caption, .concept__title, .concept__body { opacity: 1; }
}
