/* FUJITO Gallery — 光の回廊（一日の光の中を、歩くように見る）
   医院の建築（弧を描くガラスの壁・格子・白い庇・間接照明）を画面の骨組みにする。主役は写真。
   健康ガイド（光庭）・インサイト（光の窓）と同じ家族の色と形。
   昼は白い壁。夕暮れ・夜の場面と、写真を大きく開いたときだけ照明が落ちる（body.is-night）。 */

:root {
  color-scheme: light;
  /* 文字と面（昼） */
  --ink: #17201b;
  --ink-soft: #55615a;
  --paper: #ffffff;
  --wash: #f4f7f5;
  /* 緑はやさしく使う: 医院の緑 #359267 はロゴと小さな印だけ。線・点はやわらかい緑、塗りは淡い緑、文字だけ少し濃い緑 */
  --brand: #359267;
  --brand-soft: #7dbc9c;
  --brand-dark: #277552;
  --tint: #e8f4ed;
  --tint-soft: #f4f9f6;
  --tint-line: #bcdccb;
  --line: #dce1dd;
  --line-strong: #b9c4bd;
  /* ガラス */
  --glass: rgb(255 255 255 / 0.8);
  --glass-strong: rgb(255 255 255 / 0.93);
  --glass-edge: rgb(23 32 27 / 0.1);
  --glass-rim: rgb(255 255 255 / 0.7);
  --mullion: rgb(23 32 27 / 0.16);
  --shadow: 0 22px 44px -28px rgb(23 32 27 / 0.28);
  --shadow-deep: 0 34px 60px -34px rgb(23 32 27 / 0.4);
  --photo-shadow: 0 30px 50px -30px rgb(23 32 27 / 0.45);
  /* 光: 壁に映る写真の色（JS が入れる）と、灯りの杏色（光としてだけ使う） */
  --amb: #dfeee6;
  --amb-strength: 46%;
  --lamp: #ffdfa8;
  /* 文字・寸法 */
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --gothic: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --measure: 720px;
  --header: 68px;
  --arc: clamp(22px, 3.6vw, 52px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fade: 0.9s;
}

/* 夕暮れ・夜の場面: 深い墨色の壁に、灯りの色 */
body.is-night {
  color-scheme: dark;
  --ink: #f3f0e9;
  --ink-soft: #bfbbb0;
  --paper: #14181a;
  --wash: #1b2022;
  --brand-dark: #a5d6bd;
  --tint: rgb(125 188 156 / 0.14);
  --tint-soft: rgb(125 188 156 / 0.08);
  --tint-line: rgb(125 188 156 / 0.42);
  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.3);
  --glass: rgb(24 29 31 / 0.72);
  --glass-strong: rgb(24 29 31 / 0.92);
  --glass-edge: rgb(255 255 255 / 0.12);
  --glass-rim: rgb(255 255 255 / 0.16);
  --mullion: rgb(255 255 255 / 0.18);
  --shadow: 0 22px 44px -28px rgb(0 0 0 / 0.7);
  --shadow-deep: 0 34px 60px -34px rgb(0 0 0 / 0.8);
  --photo-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
  --amb-strength: 30%;
}

@property --amb { syntax: "<color>"; inherits: true; initial-value: #dfeee6; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.45s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.7s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; filter: blur(10px); } }
  @keyframes vt-in { from { opacity: 0; filter: blur(14px) saturate(0.7); } }
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease), --amb 1.4s var(--ease);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand-dark); text-underline-offset: 4px; transition: color var(--fade) var(--ease); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #1d6b4a; color: #fff; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
main { position: relative; display: block; }

/* 壁に映る光: いま見ている写真の色が、白い壁にうっすら映る。動かさない（色だけがゆっくり変わる） */
.wall { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper); transition: background-color var(--fade) var(--ease); }
.wall i { position: absolute; border-radius: 50%; }
.wall-a { right: -22vmax; top: -34vmax; width: 86vmax; height: 86vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--amb) var(--amb-strength), transparent) 0%, transparent 72%); }
.wall-b { left: -30vmax; bottom: -40vmax; width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--amb) calc(var(--amb-strength) * 0.6), transparent) 0%, transparent 70%); }

/* ---------- ヘッダー（すりガラス） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
  padding: 10px var(--gutter);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--glass-edge);
  transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; width: 28px; height: 28px; fill: var(--brand); }
.brand-name { font-family: var(--mincho); font-weight: 500; font-size: clamp(17px, 1.7vw, 20px); letter-spacing: 0.14em; line-height: 1.4; white-space: nowrap; }
.nav-wide ul, .nav-narrow ul { display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.nav-wide a { position: relative; display: block; padding: 10px 0; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; }
.nav-wide a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--brand-soft); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-wide a:hover, .nav-wide a[aria-current="page"] { color: var(--brand-dark); }
.nav-wide a:hover::after, .nav-wide a[aria-current="page"]::after { transform: scaleX(1); }
.nav-narrow { display: none; position: relative; }
.nav-narrow summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--glass-strong); }
.nav-narrow summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-narrow[open] .bars { background: transparent; }
.nav-narrow[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-narrow[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-narrow nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-narrow ul { flex-direction: column; gap: 0; }
.nav-narrow a { display: block; padding: 13px 16px; color: var(--ink); font-size: 15px; letter-spacing: 0.08em; text-decoration: none; border-radius: 10px; }
.nav-narrow a:hover, .nav-narrow a[aria-current="page"] { background: var(--tint); color: var(--brand-dark); }

/* ---------- ボタン・札・見出し ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 26px; background: var(--tint); color: var(--brand-dark); border: 1px solid var(--tint-line); border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color var(--fade); }
.btn span { font-weight: 400; font-size: 13px; }
.btn:hover { border-color: var(--brand-soft); box-shadow: 0 10px 24px -16px rgb(39 117 82 / 0.5); }
.btn-quiet { background: transparent; font-weight: 400; border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--tint-soft); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: flex; align-items: baseline; gap: 8px; padding: 5px 16px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; color: var(--brand-dark); font-size: 13px; letter-spacing: 0.08em; text-decoration: none; transition: border-color 0.3s; }
.chips a span { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.chips a:hover, .chips a[aria-current="page"] { border-color: var(--brand-soft); }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--brand-dark); font-size: 13px; letter-spacing: 0.18em; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--brand-soft); }
.kicker i, .photo-meta i, .post-card-meta i { display: inline-block; width: 3px; height: 3px; margin: 0 2px; border-radius: 50%; background: var(--brand-soft); vertical-align: middle; }
.room-no { font-family: var(--mincho); font-variant-numeric: tabular-nums; margin-right: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; letter-spacing: 0.08em; }
.crumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--brand-dark); border-color: var(--brand-soft); }
.crumbs span { color: var(--ink-soft); }
.more { display: inline-flex; align-items: baseline; gap: 4px; padding-bottom: 3px; border-bottom: 1px solid var(--brand-soft); color: var(--brand-dark); font-size: 14px; letter-spacing: 0.08em; text-decoration: none; }
.more span { font-size: 12px; }
.more:hover { border-bottom-color: var(--brand-dark); }

.sec { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.page-top { padding-top: clamp(40px, 6vw, 80px); }
.sec-head { display: grid; gap: 16px; max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 64px); }
.sec-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.5; letter-spacing: 0.1em; text-wrap: balance; }
.sec-title span { display: inline-block; }
.sec-title-sub { font-size: 0.5em; margin-left: 0.6em; color: var(--ink-soft); }
.sec-lead { max-width: 40em; color: var(--ink-soft); }
.sec-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0; }
.sec-head .sec-foot { justify-content: flex-start; margin: 12px 0 0; }
.empty-note { max-width: var(--max); margin: 0 auto; padding: 40px; text-align: center; color: var(--ink-soft); background: var(--tint-soft); border: 1px solid var(--tint-line); border-radius: var(--radius); }

/* ---------- 写真（押すと大きく開く） ---------- */
.ph { display: block; color: inherit; text-decoration: none; }
.ph-img { position: relative; display: block; overflow: hidden; background: var(--wash); box-shadow: var(--photo-shadow); transition: box-shadow 0.6s var(--ease); }
.ph img, .cat-img img, .post-card-img img, .article-cover img, .mates img, .strip img, .stage-img { display: block; width: 100%; background: var(--c, var(--wash)); }
.ph img { transition: transform 1.4s var(--ease), opacity 1s var(--ease), filter 1.1s var(--ease); }
.ph:hover img, .ph:focus-visible img { transform: scale(1.025); }
.ph-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; }
.ph-title { font-family: var(--mincho); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; }
.ph-place { flex: none; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.1em; }
/* 画面に入ったら、乳白から澄んで現れる（JS があるときだけ。無ければ最初から見えている） */
.js .ph.will-reveal:not(.is-in) img { opacity: 0; filter: blur(16px) saturate(0.5); }

/* ---------- 上の段「光のステージ」 ---------- */
.stage { position: relative; display: grid; height: calc(100svh - var(--header)); min-height: 560px; max-height: 1180px; overflow: clip; isolation: isolate; }
.stage-frame { grid-area: 1 / 1; position: relative; overflow: hidden; background: var(--wash); }
.stage-img, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-canvas { opacity: 0; transition: opacity 0.6s var(--ease); }
.stage.is-gl .stage-canvas { opacity: 1; }
.stage-pane {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(440px, 42vw);
  margin: 0 0 clamp(112px, 16vh, 160px) var(--gutter);
  padding: clamp(26px, 3vw, 42px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-rim);
  border-radius: 4px var(--arc) 4px 4px;
  box-shadow: var(--shadow-deep);
  transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease);
}
.stage-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.55; letter-spacing: 0.12em; }
.stage-title span { display: block; white-space: nowrap; }
.stage-lead { color: var(--ink-soft); font-size: 15px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.stage-foot { grid-area: 1 / 1; align-self: end; z-index: 2; display: flex; align-items: stretch; gap: 14px; margin: 0 var(--gutter) clamp(18px, 3vh, 30px); }
/* 一日の光の目盛り: 朝・昼・昼さがり・午後・夕暮れ・夜。格子の窓のように並ぶ */
.stage-ticks { flex: 1; display: flex; margin: 0; padding: 0; list-style: none; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--glass-rim); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.stage-ticks li { flex: 1; min-width: 0; }
.stage-ticks li + li { border-left: 1px solid var(--mullion); }
.stage-ticks a { position: relative; display: grid; gap: 2px; height: 100%; padding: 13px 16px 12px; color: var(--ink-soft); text-decoration: none; transition: color 0.4s, background 0.4s; }
.tick-light { font-family: var(--mincho); font-weight: 500; font-size: 16px; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap; }
.tick-title { font-size: 11.5px; letter-spacing: 0.06em; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-soft); transform: scaleX(var(--p, 0)); transform-origin: left; }
.stage-ticks a:hover { background: var(--glass-strong); }
.stage-ticks a[aria-current="true"] { background: var(--glass-strong); }
.stage-ticks a[aria-current="true"] .tick-light { color: var(--brand-dark); }
.stage-ctrl { display: none; flex: none; align-items: center; gap: 8px; }
.stage.is-gl .stage-ctrl { display: flex; }
.stage-ctrl button, .viewer-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-rim); border-radius: 50%; box-shadow: var(--shadow); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.stage-ctrl button:hover, .viewer-btn:hover { background: var(--glass-strong); border-color: var(--brand-soft); }
.stage-ctrl svg, .viewer-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stage-ctrl .i-play { display: none; fill: currentColor; stroke: none; }
.stage-ctrl [aria-pressed="true"] .i-play { display: block; }
.stage-ctrl [aria-pressed="true"] .i-pause { display: none; }

/* ---------- 回廊と一覧 ---------- */
.walk { position: relative; max-width: var(--max); margin: 0 auto; }
.view-switch { display: none; width: max-content; margin: 0 0 clamp(28px, 4vw, 48px); padding: 4px; background: var(--tint-soft); border: 1px solid var(--tint-line); border-radius: 999px; }
.has-gl .view-switch.is-ready { display: flex; }
.view-switch button { min-height: 40px; padding: 6px 20px; cursor: pointer; background: transparent; border: 0; border-radius: 999px; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.1em; transition: background 0.3s, color 0.3s; }
.view-switch button[aria-pressed="true"] { background: var(--paper); color: var(--brand-dark); box-shadow: 0 6px 14px -10px rgb(23 32 27 / 0.5); }
.walk-view { position: relative; }
.walk-canvas, .walk-scale, .walk-hint { display: none; }
.walk-track { display: grid; gap: clamp(64px, 9vw, 128px); }
.room { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; scroll-margin-top: 96px; }
.room-head { position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 12px; }
.room-light { color: var(--brand-dark); font-size: 13px; letter-spacing: 0.2em; }
.room-name { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.5; letter-spacing: 0.1em; }
.room-lead { color: var(--ink-soft); font-size: 15px; }
.room-more { margin-top: 6px; }
.room-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(18px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.room-photos li { grid-column: span 2; }
.room-photos li:first-child { grid-column: 1 / -1; }
.room-photos li:last-child:nth-child(3n + 2) { grid-column: 1 / -1; }
.room-photos li:last-child:nth-child(3n), .room-photos li:nth-last-child(2):nth-child(3n + 2) { grid-column: span 3; }
.room-chips { margin-top: 8px; }
.no-heads .room-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.no-heads .room { display: block; }
.no-heads.is-walk .room-head { position: absolute; width: 1px; padding: 0; border: 0; }

/* 回廊（WebGL が使えるとき、JS が .is-walk を付ける）: 弧を描く壁に写真が並び、スクロールで歩く */
.walk.is-walk { max-width: none; margin: clamp(-170px, -15vh, -70px) calc(var(--gutter) * -1) 0; }
.is-walk .view-switch { position: absolute; z-index: 6; right: var(--gutter); top: calc(var(--header) + 18px); margin: 0; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.is-walk .view-switch-holder { position: sticky; top: 0; height: 0; z-index: 6; }
.is-walk .walk-view { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.is-walk .walk-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.is-walk .walk-track { position: absolute; left: 0; top: var(--header); bottom: 92px; display: flex; align-items: center; gap: 0; width: max-content; padding: 0 30vw 0 max(7vw, 64px); will-change: transform; }
.is-walk .room { display: flex; flex: none; align-items: center; gap: clamp(56px, 6.5vw, 120px); padding-right: clamp(110px, 13vw, 240px); }
.is-walk .room-head { position: static; flex: none; width: clamp(260px, 25vw, 340px); gap: 14px; padding: clamp(24px, 2.6vw, 36px); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--glass-rim); border-radius: 4px var(--arc) 4px 4px; box-shadow: var(--shadow); transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.is-walk .room-photos { display: flex; align-items: center; gap: clamp(56px, 6.5vw, 120px); }
.is-walk .room-photos li, .is-walk .room-photos li:first-child, .is-walk .room-photos li:last-child:nth-child(n), .is-walk .room-photos li:nth-last-child(2):nth-child(n) { flex: none; grid-column: auto; }
.is-walk .room-photos li:nth-child(odd) { translate: 0 -3.5vh; }
.is-walk .room-photos li:nth-child(even) { translate: 0 4.5vh; }
.is-walk .ph { position: relative; transform-origin: 50% 50%; will-change: transform; }
.is-walk .ph-img { background: transparent; box-shadow: none; overflow: visible; }
.is-walk .ph img { width: auto; height: clamp(240px, 50vh, 600px); max-width: none; opacity: 0; transform: none; }
.is-walk .ph.is-fallback img { opacity: 1; }
.is-walk .ph-cap { position: absolute; left: 0; right: 0; top: 100%; opacity: 0; transition: opacity 0.6s var(--ease); }
.is-walk .ph.is-near .ph-cap, .is-walk .ph:hover .ph-cap, .is-walk .ph:focus-visible .ph-cap { opacity: 1; }
.is-walk .ph:focus-visible { outline-offset: 8px; }
.is-walk .walk-scale { display: block; position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 20px; }
.walk-scale ol { position: relative; display: flex; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.walk-scale ol::after { content: ""; position: absolute; top: -4px; left: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-soft) 30%, transparent); }
.walk-scale li { flex: var(--w, 1) 1 0; min-width: 0; }
.walk-scale a { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 12px 8px 4px 0; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; overflow: hidden; }
.walk-scale a::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 8px; background: var(--line-strong); }
.scale-light { font-family: var(--mincho); font-size: 14px; letter-spacing: 0.14em; color: var(--ink); padding-left: 10px; }
.scale-name { overflow: hidden; text-overflow: ellipsis; }
.walk-scale a[aria-current="true"] .scale-light, .walk-scale a:hover .scale-light { color: var(--brand-dark); }
.is-walk .walk-hint { display: flex; align-items: center; gap: 12px; position: absolute; z-index: 4; right: var(--gutter); bottom: 86px; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.16em; transition: opacity 0.8s; }
.walk-hint::after { content: ""; width: 44px; height: 1px; background: var(--brand-soft); }
.is-walk.has-moved .walk-hint { opacity: 0; }

/* ---------- 月々の写真（5つの窓。格子のガラス: 記事のある窓は透明、まだの窓は乳白） ---------- */
.cat-windows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; border: 1px solid var(--mullion); border-radius: 4px var(--arc) 4px 4px; overflow: hidden; background: var(--glass); box-shadow: var(--shadow); transition: border-color var(--fade), background-color var(--fade); }
.cat-win { min-width: 0; min-height: clamp(300px, 34vw, 440px); }
.cat-win + .cat-win { border-left: 1px solid var(--mullion); }
.cat-win a, .cat-wait { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.cat-img { display: block; overflow: hidden; min-height: 0; aspect-ratio: 4 / 5; }
.cat-img img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat-win a:hover .cat-img img { transform: scale(1.04); }
.cat-text, .cat-wait { padding: 18px 18px 20px; }
.cat-text { display: grid; gap: 4px; align-content: start; border-top: 1px solid var(--mullion); }
.cat-wait { position: relative; grid-template-rows: auto auto 1fr; gap: 8px; align-content: start; overflow: hidden; isolation: isolate; }
/* 乳白のガラス: うしろの写真は、ぼかして白く。記事が入ると、この窓は透明になる */
.cat-frost { position: absolute; inset: -24px; z-index: -1; width: calc(100% + 48px); max-width: none; height: calc(100% + 48px); object-fit: cover; filter: blur(14px) saturate(0.85); opacity: 0.42; }
.cat-wait::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(255 255 255 / 0.88) 0%, rgb(255 255 255 / 0.7) 46%, rgb(255 255 255 / 0.84) 100%); }
.cat-name { font-family: var(--mincho); font-weight: 500; font-size: clamp(16px, 1.5vw, 19px); letter-spacing: 0.1em; line-height: 1.6; }
.cat-month { color: var(--brand-dark); font-size: 12px; letter-spacing: 0.14em; }
.cat-title { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.cat-lead { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.cat-soon { align-self: end; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.16em; }

/* ---------- このサイトについて ---------- */
.about-teaser-in, .about-row { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 88px); align-items: center; max-width: var(--max); margin: 0 auto; }
.about-teaser-text, .about-text { display: grid; gap: 18px; }
.about-teaser-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.about-teaser-photo .ph-cap, .about-photo .ph-cap { justify-content: flex-start; }
.about-teaser-photo .ph-img, .about-photo .ph-img { border-radius: 4px var(--arc) 4px 4px; }
.about-row + .about-row { margin-top: clamp(56px, 8vw, 120px); }
.about-row.is-flip .about-photo { order: 2; }
.about-row.is-flip .about-photo .ph-img { border-radius: var(--arc) 4px 4px 4px; }
.about-text p { font-size: 16.5px; line-height: 2.1; }

/* ---------- 写真 1 枚のページ ---------- */
.photo-one { display: grid; gap: clamp(20px, 3vw, 36px); max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 110px); }
.photo-main { display: grid; gap: 18px; }
.ph-main { cursor: zoom-in; }
.ph-main .ph-img img { max-height: calc(100svh - 230px); object-fit: contain; background: transparent; }
.ph-main .ph-img { background: transparent; box-shadow: none; display: grid; place-items: center; }
.ph-main:hover img { transform: none; }
.photo-main figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.photo-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.1em; }
.photo-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.1em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--max); margin: clamp(32px, 5vw, 64px) auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo-one .pager { width: 100%; margin-top: 0; }
.pager a { display: grid; gap: 2px; padding: 18px 8px; color: var(--ink); font-family: var(--mincho); font-size: 16px; letter-spacing: 0.1em; text-decoration: none; transition: background 0.3s; }
.pager a span { color: var(--brand-dark); font-family: var(--gothic); font-size: 12px; letter-spacing: 0.16em; }
.pager a:hover { background: var(--tint-soft); }
.pager-next { text-align: right; border-left: 1px solid var(--line); padding-right: 16px; }
.pager-prev { padding-left: 16px; }
.mates-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: 0.1em; }
.mates-title a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brand-soft); }
.mates-title span { color: var(--ink-soft); font-family: var(--gothic); font-size: 12px; }
.mates, .strip ul { display: flex; gap: 8px; margin: 0; padding: 4px 2px 12px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.mates li, .strip li { flex: none; }
.mates a, .strip a { display: block; opacity: 0.72; transition: opacity 0.3s; }
.mates img, .strip img { width: auto; height: 78px; }
.mates a:hover, .strip a:hover, .mates .is-current a { opacity: 1; }
.mates .is-current a { outline: 2px solid var(--brand-soft); outline-offset: 2px; }

/* ---------- 月々の記事 ---------- */
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px); max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0; list-style: none; }
.post-card { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--photo-shadow); }
.post-card-img img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-text { display: grid; gap: 4px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 12px; letter-spacing: 0.14em; }
.post-card-title { font-family: var(--mincho); font-weight: 500; font-size: 18px; line-height: 1.6; letter-spacing: 0.08em; }
.post-card-sample, .sample-note { width: max-content; max-width: 100%; padding: 3px 12px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; color: var(--brand-dark); font-size: 12px; letter-spacing: 0.1em; }

.article { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 9vw, 120px); }
.article-head { display: grid; gap: 14px; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto clamp(28px, 4vw, 48px); padding: 0 var(--gutter); }
.article-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.5; letter-spacing: 0.1em; text-wrap: balance; }
.article-sub { color: var(--ink-soft); font-family: var(--mincho); font-size: clamp(15px, 1.5vw, 18px); letter-spacing: 0.1em; }
.article-cover { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cover { display: grid; gap: 10px; }
.article-cover .ph-img { border-radius: 4px var(--arc) 4px 4px; }
.article-cover figcaption { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.06em; }
.strip { max-width: 1180px; margin: clamp(18px, 2.4vw, 28px) auto clamp(36px, 5vw, 64px); padding: 0 var(--gutter); }
.strip-title { display: flex; align-items: baseline; gap: 12px; color: var(--brand-dark); font-size: 12px; letter-spacing: 0.16em; }
.strip-title span { color: var(--ink-soft); }
.strip img { height: 64px; }
.prose { display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [wide-start] minmax(0, 180px) [text-start] minmax(0, var(--measure)) [text-end] minmax(0, 180px) [wide-end] minmax(var(--gutter), 1fr) [full-end]; row-gap: 1.6em; font-size: 17px; line-height: 2.1; }
.prose > * { grid-column: text; min-width: 0; }
.prose > .shots { grid-column: wide; margin: 0.8em 0 1.2em; }
.prose h2 { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-family: var(--mincho); font-weight: 500; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.6; letter-spacing: 0.08em; }
.prose h3 { font-family: var(--mincho); font-weight: 500; font-size: 19px; letter-spacing: 0.08em; }
.prose strong { font-weight: 600; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--lamp) 50%, transparent) 62%); }
.prose ul { margin: 0; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose hr { width: 60px; margin: 1em auto; border: 0; border-top: 1px solid var(--brand-soft); }
.note-box { padding: clamp(20px, 3vw, 32px); background: var(--tint-soft); border: 1px solid var(--tint-line); border-radius: 4px var(--arc) 4px 4px; font-size: 15.5px; line-height: 1.95; }
.note-box ul { padding-left: 0; list-style: none; }
.note-box li { padding-left: 1.1em; text-indent: -1.1em; }
.note-box strong { margin-right: 0.6em; background: none; color: var(--brand-dark); font-family: var(--mincho); font-weight: 500; letter-spacing: 0.1em; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shots-odd .shot:first-child, .shots-1 .shot { grid-column: 1 / -1; }
.shot { display: grid; gap: 8px; }
.shot figcaption { color: var(--ink-soft); font-size: 13px; line-height: 1.7; letter-spacing: 0.06em; }
.shot .ph-img, .shot .ph { display: block; }
.shot .ph { overflow: hidden; box-shadow: var(--photo-shadow); }
.article-more { max-width: calc(var(--max) + var(--gutter) * 2); margin: clamp(56px, 8vw, 104px) auto 0; padding: 0 var(--gutter); }
.article-more-title { padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mincho); font-weight: 500; font-size: clamp(19px, 2vw, 24px); letter-spacing: 0.1em; }
.article-more .post-cards { margin-top: clamp(24px, 3vw, 36px); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(48px, 7vw, 88px); padding: 0 var(--gutter); }
.text-page .prose, .about .prose { display: block; max-width: var(--measure); margin: 0 auto; }
.text-page .prose > * + * { margin-top: 1.4em; }

/* ---------- ビューア（写真を大きく開く。照明が落ちる） ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; background: transparent; border: 0; color: #f3f0e9; }
.viewer::backdrop { background: transparent; }
.viewer-dim { position: absolute; inset: 0; background: #0e1112; opacity: 0; transition: opacity 0.7s var(--ease); }
.viewer.is-open .viewer-dim { opacity: 0.97; }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: zoom-in; }
.viewer.is-zoomed .viewer-canvas { cursor: grab; }
.viewer.is-dragging .viewer-canvas { cursor: grabbing; }
.viewer-ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease) 0.2s; }
.viewer.is-open .viewer-ui { opacity: 1; }
.viewer-ui > * { pointer-events: auto; }
.viewer-btn { position: absolute; color: #f3f0e9; background: rgb(24 29 31 / 0.6); border-color: rgb(255 255 255 / 0.2); box-shadow: none; }
.viewer-btn:hover { background: rgb(40 46 48 / 0.9); border-color: var(--brand-soft); }
.viewer-close { right: clamp(12px, 2vw, 28px); top: clamp(12px, 2vw, 24px); }
.viewer-prev { left: clamp(10px, 2vw, 28px); top: 50%; margin-top: -23px; }
.viewer-next { right: clamp(10px, 2vw, 28px); top: 50%; margin-top: -23px; }
.viewer-zoom { right: clamp(12px, 2vw, 28px); bottom: clamp(14px, 2.4vw, 28px); display: flex; gap: 8px; position: absolute; }
.viewer-zoom .viewer-btn { position: static; }
.viewer-cap { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(14px, 2.4vw, 28px); right: 140px; display: grid; gap: 2px; pointer-events: none; text-shadow: 0 1px 12px rgb(0 0 0 / 0.6); }
.viewer-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(16px, 1.7vw, 21px); letter-spacing: 0.12em; }
.viewer-meta { color: #bfbbb0; font-size: 12px; letter-spacing: 0.14em; }
.viewer-count { position: absolute; left: clamp(16px, 3vw, 40px); top: clamp(18px, 2.6vw, 30px); color: #bfbbb0; font-family: var(--mincho); font-size: 14px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.viewer-btn[disabled] { opacity: 0.3; cursor: default; }
.viewer-cap, .viewer-count { transition: opacity 0.4s var(--ease); }
.viewer.is-zoomed .viewer-cap, .viewer.is-zoomed .viewer-count { opacity: 0; }
body.viewer-open { overflow: hidden; }

/* ---------- フッター ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) var(--gutter) 36px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--wash) 70%, transparent); transition: border-color var(--fade), background-color var(--fade); }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; max-width: var(--max); margin: 0 auto; }
.footer-logo svg { display: block; width: 190px; height: auto; fill: var(--brand); }
.footer-addr { grid-column: 1; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.footer-nav { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; }
.footer-nav a { color: var(--ink-soft); font-size: 13.5px; letter-spacing: 0.08em; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-nav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand-soft); }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; letter-spacing: 0.16em; }

/* ---------- 画面の幅 ---------- */
@media (max-width: 899px) {
  .nav-wide { display: none; }
  .nav-narrow { display: block; }
  .room { grid-template-columns: 1fr; }
  .room-head { position: static; }
  .cat-windows { grid-template-columns: 1fr; border-radius: 4px 28px 4px 4px; }
  .cat-win { min-height: 0; }
  .cat-win + .cat-win { border-left: 0; border-top: 1px solid var(--mullion); }
  .cat-win a { grid-template-columns: 42% 1fr; grid-template-rows: auto; }
  .cat-img { aspect-ratio: 4 / 3; }
  .cat-text { border-top: 0; border-left: 1px solid var(--mullion); align-content: center; }
  .cat-wait { grid-template-rows: auto; grid-template-columns: 1fr auto; align-items: baseline; }
  .cat-wait .cat-lead { grid-column: 1 / -1; grid-row: 2; }
  .about-teaser-in, .about-row { grid-template-columns: 1fr; }
  .about-row.is-flip .about-photo { order: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
@media (max-width: 759px) {
  .stage { height: auto; max-height: none; min-height: 0; overflow: visible; }
  .stage-frame { grid-area: 1 / 1; height: min(70svh, 128vw); }
  .stage-foot { grid-area: 1 / 1; margin: 0 12px 12px; }
  .stage-pane { grid-area: 2 / 1; width: auto; margin: 0; padding: 28px var(--gutter) 8px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; box-shadow: none; }
  .stage-title { font-size: clamp(26px, 7.6vw, 34px); }
  .stage-ticks a { padding: 10px 4px 9px; justify-items: center; }
  .tick-light { font-size: 13px; letter-spacing: 0.04em; }
  .tick-title { display: none; }
  .stage-ctrl { display: none !important; }
  .room-photos { grid-template-columns: 1fr; }
  .room-photos li, .room-photos li:first-child, .room-photos li:last-child:nth-child(n), .room-photos li:nth-last-child(2):nth-child(n) { grid-column: auto; }
  .pager a { font-size: 14px; }
  .prose { font-size: 16px; line-height: 2; }
  .shots { grid-template-columns: 1fr; }
  .viewer-prev, .viewer-next { top: auto; bottom: 74px; margin-top: 0; }
  .viewer-cap { right: 16px; bottom: 134px; }
  .viewer-zoom { bottom: 74px; left: 50%; right: auto; transform: translateX(-50%); }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .ph.will-reveal:not(.is-in) img { opacity: 1; filter: none; }
}
