/* 写真館 まばたき（デモ）全ページ共通
   背景紙の白 #F6F5F2 ／ 黒 #141414 ／ フィルムの赤 #C0392B ／ 灰 #8A8782
   あしらいは、ベタ焼きの赤い丸印・フィルムの帯・黒い細枠の額・英字の名札 */
:root {
  --p: #F6F5F2;
  --k: #141414;
  --r: #C0392B;
  --g: #8A8782;
  --gt: #6B6863;               /* 小さな字（地の白で4.5:1を取るため、罫線の灰より少し濃く） */
  --line: #CFCCC6;             /* 灰の細い罫線 */
  --k6: color-mix(in srgb, #141414 6%, #F6F5F2);
  --g15: color-mix(in srgb, #8A8782 15%, #F6F5F2);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --bod: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --in: 1120px;
  --hd: 76px;
  --film: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect x='8' y='3' width='8' height='4' rx='1.2' fill='%23F6F5F2'/%3E%3Crect x='8' y='11' width='8' height='4' rx='1.2' fill='%23F6F5F2'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 20px); }
body {
  margin: 0; background: var(--p); color: var(--k);
  font-family: var(--serif); font-weight: 400;
  font-size: 16px; line-height: 1.9; letter-spacing: .03em;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.55; margin: 0; letter-spacing: .05em; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.n { font-family: var(--bod); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--r); outline-offset: 3px; }
.in { max-width: calc(var(--in) + 48px); margin: 0 auto; padding: 0 24px; }
.small { font-size: 14px; color: var(--gt); line-height: 1.8; }
.small + .small { margin-top: .4em; }

/* 赤い丸印（ベタ焼きに色鉛筆で付けた丸） */
.mk { position: relative; display: inline-block; }
.maru { position: absolute; left: -14%; top: -38%; width: 128%; height: 176%; overflow: visible; fill: none; stroke: var(--r); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.maru path { vector-effect: non-scaling-stroke; }

/* 英字の名札 */
.tag { font-family: var(--bod); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: .04em; color: var(--g); margin: 0 0 6px; line-height: 1.4; }
.dk .tag { color: rgba(246,245,242,.6); }
.h2 { font-size: clamp(24px, 1.2rem + 1.1vw, 34px); margin-bottom: 26px; }
.h3 { font-size: clamp(19px, 1rem + .45vw, 22px); margin-bottom: 12px; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; background: var(--p); border-bottom: 1px solid var(--line); }
.hd__in { max-width: 1320px; margin: 0 auto; height: var(--hd); padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo { width: 196px; height: auto; }
.logo .lj { font-family: var(--serif); font-weight: 600; }
.logo .le { font-family: var(--bod); }
.demo { font: 400 9.5px/1 var(--bod); letter-spacing: .14em; color: var(--gt); align-self: center; margin-top: 2px; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 30px); }
.gnav a { display: block; text-decoration: none; font-size: 14.5px; letter-spacing: .06em; padding: 8px 2px; white-space: nowrap; }
.gnav a:hover { color: var(--r); }
.gnav .maru { top: -30%; height: 160%; }
.hd .btn { margin-left: 14px; }
.menu { display: none; margin-left: auto; font: 600 13px/1 var(--serif); letter-spacing: .12em; color: var(--k); background: none; border: 1px solid var(--k); padding: 10px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }

/* ボタン（黒の四角。指を置くと字の左に赤い丸） */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; background: var(--k); color: var(--p); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .08em; border: 1px solid var(--k); border-radius: 0; white-space: nowrap; transition: padding .25s; }
.btn::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--r); border-radius: 50% 46% 52% 48%; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; transform: none; }
.btn:hover, .btn:focus-visible { padding-left: 36px; padding-right: 24px; }
.btn--s { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--s:hover, .btn--s:focus-visible { padding-left: 28px; padding-right: 12px; }
.btn--s::before { left: 10px; width: 8px; height: 8px; margin-top: -4px; }
.btn--w { background: transparent; border-color: var(--p); color: var(--p); }
.tl { display: inline-block; color: var(--k); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; padding: 10px 0; letter-spacing: .04em; }
.tl:hover { color: var(--r); }
.dk .tl { color: var(--p); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 32px; }

/* フィルムの帯 */
.film { height: 18px; background: var(--k) var(--film) repeat-x 0 0 / 24px 18px; }

/* 額（黒の細い枠と白いマット） */
.frame { margin: 0; background: #FFFFFF; border: 2px solid var(--k); padding: 6%; }
.frame img { width: 100%; height: auto; }

/* 区画 */
.sec { padding: clamp(72px, 8vw, 116px) 0; }
.sec--t { padding-top: 0; }
.dk { background: var(--k); color: var(--p); }
.lead { max-width: 40em; }

/* 最初の画面 */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.hero__g { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 46% 1fr; gap: 0 clamp(20px, 2.6vw, 40px); align-items: start; }
.hero__main { grid-column: 2; grid-row: 1; }
.hero__side { position: relative; grid-row: 1; align-self: stretch; min-height: 300px; }
.hero__side--l { grid-column: 1; }
.hero__side--r { grid-column: 3; }
.hf { position: absolute; padding: 5%; }
.hf--1 { width: 50%; left: 46%; top: 0; }
.hf--2 { width: 42%; left: 2%; top: 30%; }
.hf--3 { width: 48%; left: 44%; top: 52%; }
.hf--4 { width: 38%; left: 2%; top: 6%; }
.hf--5 { width: 52%; left: 46%; top: 24%; }
.hf--6 { width: 34%; left: 10%; top: 60%; }
.hero__tx { max-width: 1320px; margin: clamp(36px, 4vw, 56px) auto 0; padding: 0 24px; }
.hero__tx > div { max-width: 640px; margin-left: calc((100% - 46%) / 2 - 0px); }
.hero__h { font-size: clamp(25px, 1.1rem + 1.4vw, 36px); margin: 0 0 18px; line-height: 1.6; }
.motion .hero__main { animation: fadein 1s ease both; }
.motion .hf { animation: up6 .5s ease both; animation-delay: calc(.45s + var(--i) * .18s); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes up6 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* よく聞かれること */
.qa { margin: 0; border-top: 1px solid var(--line); }
.qa__r { display: grid; grid-template-columns: minmax(0, 18em) 1fr; gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 600; font-size: 18px; letter-spacing: .05em; }
.qa dd { margin: 0; }

/* 写真と文の2列 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.two--wide { grid-template-columns: 1.25fr 1fr; }
.two--rwide { grid-template-columns: 1fr 1.25fr; }
.two .ph img { width: 100%; height: auto; }
.two--top { align-items: start; }

/* 家族写真と記念写真（3つ・左だけ高い） */
.trio { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px clamp(20px, 3vw, 44px); align-items: start; margin-bottom: 36px; }
.trio a { text-decoration: none; display: block; }
.trio img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }
.trio li:nth-child(2) img, .trio li:nth-child(3) img { aspect-ratio: 4 / 3.6; }
.trio li:nth-child(2) { margin-top: 64px; }
.trio li:nth-child(3) { margin-top: 112px; }
.trio ul, ul.trio { list-style: none; padding: 0; }
.trio h3 { font-size: 20px; margin: 16px 0 6px; }
.trio a:hover h3 { color: var(--r); }
.trio p { font-size: 15.5px; }

/* 料金の3つの数字 */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 28px; border-top: 1px solid var(--k); border-bottom: 1px solid var(--k); }
.nums > div { padding: 26px 24px 22px; }
.nums > div + div { border-left: 1px solid var(--line); }
.nums .n { display: block; font-size: clamp(38px, 1.6rem + 2.2vw, 60px); line-height: 1.1; }
.nums .n small { font-family: var(--serif); font-size: 18px; margin-left: 3px; }
.nums p { margin: 10px 0 0; font-size: 15px; }
.sum { font-size: 18px; }
.sum .mk { margin: 0 .2em; }
.sum .n { font-size: 1.25em; }

/* 場所の表 */
.tb { width: 100%; border-collapse: collapse; }
.tb th, .tb td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.tb th { width: 9.5em; padding-right: 20px; color: var(--gt); font-size: 15px; white-space: nowrap; }
.tb tr:first-child th, .tb tr:first-child td { border-top: 1px solid var(--k); }
.tb--p td.p, .tb--p th.p { text-align: right; white-space: nowrap; width: 8em; }
.tb--p td.p { font-family: var(--bod); font-variant-numeric: lining-nums tabular-nums; font-size: 18px; }
.tb--p th { width: auto; white-space: normal; color: var(--k); font-size: 16px; }
.tb--p thead th { color: var(--gt); font-size: 14px; border-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--k); }
.tb--p tbody tr:first-child th, .tb--p tbody tr:first-child td { border-top: 0; }
.tb--p tr.tot th, .tb--p tr.tot td { border-bottom: 1px solid var(--k); }
.tb--p tr.tot td.p { font-size: 22px; }
.tbw { overflow-x: auto; }
.tb--sm th, .tb--sm td { font-size: 14.5px; padding: 12px 0; }

/* 下層の頭 */
.ph-full { width: 100%; height: 50vh; min-height: 260px; max-height: 560px; object-fit: cover; object-position: 50% 45%; }
.pg { padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.pg h1 { font-size: clamp(30px, 1.4rem + 1.8vw, 46px); margin-bottom: 22px; }

/* 七五三の衣装（3つを縦に・写真の大きさを変える） */
.cos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--k); }
.cos li { display: grid; grid-template-columns: var(--pw, 300px) 1fr; gap: 24px clamp(28px, 4vw, 64px); padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cos li:nth-child(1) { --pw: 260px; }
.cos li:nth-child(2) { --pw: 300px; }
.cos li:nth-child(3) { --pw: 380px; }
.cos img, .cos svg { width: 100%; height: auto; }
.cos h3 { font-size: 22px; margin-bottom: 10px; }
.cos h3 .n { font-size: 1em; margin-right: .1em; }
.pr { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pr .n { font-size: 20px; margin-left: 6px; }

/* 文だけの区画（細い2列） */
.txt { display: grid; grid-template-columns: 15em 1fr; gap: 10px 56px; }
.txt__h .h2 { margin-bottom: 0; }
.rule-t { border-top: 1px solid var(--line); }

/* 図の共通 */
.fig { margin: 0; }
.fig__t { font-weight: 600; font-size: 17px; letter-spacing: .08em; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.fig__t::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.fig__n { font-size: 14px; color: var(--gt); margin-top: 18px; }
.dk .fig__n { color: rgba(246,245,242,.72); }

/* Z-1 撮影の日の流れ */
.z1__band { display: flex; align-items: stretch; }
.z1__seg { position: relative; flex: var(--m) 1 0; min-width: 0; }
.z1__room { font-weight: 600; font-size: 16px; letter-spacing: .06em; margin: 0 0 10px; padding-left: 2px; white-space: nowrap; }
.z1__bar { position: relative; height: 26px; border: 1.5px solid currentColor; border-right-width: 0; background: var(--g15); }
.z1__seg:last-child .z1__bar { border-right-width: 1.5px; }
.z1__seg--gap .z1__bar { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(138,135,130,.45) 5px 6px); }
.z1__seg--gap .z1__room { visibility: hidden; }
.z1__ev { list-style: none; margin: 14px 0 0; padding: 0 8px 0 2px; font-size: 14.5px; line-height: 1.55; }
.z1__ev li { margin-bottom: 10px; }
.z1__ev .n { display: block; font-size: 19px; line-height: 1.2; }
.z1__ev .end { text-align: right; padding-right: 0; }
.z1__seg--sel .maru { left: -7%; top: 12px; width: 114%; height: 134px; }
.z1__seg--sel .z1__ev { padding-right: 0; }
.dk .z1__bar { background: rgba(246,245,242,.12); }
.dk .z1__seg--gap .z1__bar { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(246,245,242,.35) 5px 6px); }
.z1--s .z1__ev { margin-top: 10px; }
.z1--s .z1__ev .n { font-size: 22px; }
.z1--s .z1__seg--sel .maru { display: none; }

/* Z-2 プランの比較表 */
.z2 { width: 100%; border-collapse: collapse; table-layout: fixed; }
.z2 th, .z2 td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.z2 thead th { font-weight: 600; font-size: 17px; border-bottom: 1.5px solid var(--k); vertical-align: bottom; }
.z2 tbody th { color: var(--gt); font-size: 15px; width: 18%; }
.z2 td .n { font-size: 18px; }
.z2 .none { color: var(--g); }
.z2 tr.tot th, .z2 tr.tot td { border-top: 1.5px solid var(--k); border-bottom: 1.5px solid var(--k); }
.z2 tr.tot .n { font-size: clamp(26px, 1.2rem + 1vw, 34px); }
.z2 tr.who td { font-size: 15px; }
.z2--s tbody th { width: 22%; }

/* Z-3 料金の足し算 */
.z3 { display: flex; align-items: stretch; gap: 0; }
.z3__b { flex: 1 1 0; min-width: 0; border: 1.5px solid var(--k); padding: 18px 18px 16px; background: #FBFAF8; }
.z3__b--big { flex: 1.5 1 0; }
.z3__b h4 { margin: 0 0 8px; font-weight: 400; font-size: 15px; line-height: 1.6; }
.z3__b .n { font-size: clamp(26px, 1.2rem + 1vw, 34px); line-height: 1.1; }
.z3__b ul { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--g); font-size: 13.5px; line-height: 1.7; color: var(--gt); }
.z3__b ul .n { font-size: 14px; }
.z3__op { flex: none; width: 44px; display: grid; place-items: center; font-size: 26px; font-family: var(--bod); }
.z3__eq { border: 0; background: none; display: grid; align-content: center; justify-items: start; padding-left: 10px; }
.z3__eq .n { font-size: clamp(34px, 1.6rem + 1.4vw, 46px); }

/* Z-4 スタジオの中 */
.z4w { display: grid; grid-template-columns: 1fr 280px; gap: 32px 48px; align-items: end; }
.z4 svg { width: 100%; height: auto; }
.z4 text { font-family: var(--serif); fill: var(--k); }
.z4 .tn { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.z4 .ts { font-size: 11.5px; fill: #4A4845; }

/* 撮った写真とデータ（2つを横に） */
.pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--k); border-bottom: 1px solid var(--k); margin: 28px 0; }
.pair > div { padding: 26px 28px 26px 0; }
.pair > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.pair ul { margin: 0; padding: 0; list-style: none; }
.pair li { padding: 8px 0 8px 1.2em; position: relative; border-bottom: 1px dotted var(--line); }
.pair li:last-child { border-bottom: 0; }
.pair li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 1px; background: var(--k); }

/* 予約（黒の帯） */
.yy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.yy img { width: 100%; height: auto; }
.dk .small { color: rgba(246,245,242,.72); }

/* ページの下 */
.pgend { padding: 0 0 clamp(64px, 7vw, 100px); }
.pgend .acts { margin-top: 0; padding-top: 40px; border-top: 1px solid var(--line); }

/* 特定商取引法の表示 */
.law h2 { font-size: 18px; margin-bottom: 16px; }
.law .tb th, .law .tb td { font-size: 14.5px; padding: 11px 0; }
.law .tb th { width: 13em; }

/* フッター */
.ft { background: var(--k); color: var(--p); }
.ft__in { max-width: 1320px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px 64px; }
.ft .logo { width: 220px; }
.ft__info { font-size: 15px; line-height: 2; margin-top: 18px; }
.ft__info .n { font-size: 16px; }
.ft nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.ft nav a { text-decoration: none; font-size: 14.5px; display: inline-block; padding: 6px 0; }
.ft nav a:hover { color: #E8A39B; }
.ft__c { grid-column: 1 / -1; font-family: var(--bod); font-size: 13px; letter-spacing: .06em; color: rgba(246,245,242,.6); padding-top: 22px; border-top: 1px solid rgba(246,245,242,.18); margin: 0; }
.ft__c span { font-family: var(--serif); }

/* 見えたら出す（JSが html に motion を付けたときだけ隠す） */
.motion .rv { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.motion .rv.is-in { opacity: 1; transform: none; }
.motion .rv .maru { opacity: 0; transform: scale(.85); transition: opacity .4s ease .35s, transform .4s ease .35s; }
.motion .rv.is-in .maru { opacity: 1; transform: none; }
.motion .rv .z4 .pl { opacity: 0; transition: opacity .5s ease; transition-delay: calc(.2s + var(--d, 0) * .12s); }
.motion .rv.is-in .z4 .pl { opacity: 1; }

/* タブレット */
@media (max-width: 1100px) {
  .gnav a { font-size: 13.5px; }
  .logo { width: 172px; }
}
@media (max-width: 980px) {
  .menu { display: inline-flex; align-items: center; }
  .gnav { position: fixed; left: 0; right: 0; top: var(--hd); background: var(--p); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; display: none; margin: 0; }
  .nav-open .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 14px 4px; font-size: 16px; }
  .gnav .mk { display: inline-block; }
  .hd .btn { margin-left: 0; order: 3; }
  .menu { order: 4; margin-left: 8px; }
  .brand { margin-right: auto; }
}
@media (max-width: 899px) {
  .hero__g { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__main { grid-column: 1 / -1; }
  .hero__side { display: contents; }
  .hf { position: static; width: auto; align-self: start; grid-row: 2; }
  .hf--4, .hf--5, .hf--6 { display: none; }
  .hf--1 { grid-column: 1; margin-top: 10px; }
  .hf--2 { grid-column: 2; }
  .hf--3 { grid-column: 3; margin-top: 22px; }
  .hero__tx > div { margin-left: 0; }
  .two, .two--wide, .two--rwide, .yy { grid-template-columns: 1fr; }
  .two .ph--after { order: 2; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio li:nth-child(2) { margin-top: 48px; }
  .trio li:nth-child(3) { margin-top: 0; }
  .txt { grid-template-columns: 1fr; }
  .z4w { grid-template-columns: 1fr; }
  .z4w .ph { max-width: 340px; }
  .cos li:nth-child(n) { --pw: 220px; }
  .ft__in { grid-template-columns: 1fr; }
  .ft nav ul { justify-content: flex-start; }
}

/* スマホ */
@media (max-width: 640px) {
  :root { --hd: 64px; }
  .in, .hd__in, .hero__g, .hero__tx, .ft__in { padding-left: 20px; padding-right: 20px; }
  .hd__in { gap: 8px; }
  .logo { width: 150px; }
  .demo { font-size: 8.5px; letter-spacing: .1em; }
  .btn--s { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .menu { padding: 8px 10px; font-size: 12px; min-height: 40px; }
  .hero__g { gap: 10px; }
  .qa__r { grid-template-columns: 1fr; padding: 22px 0; }
  .trio { grid-template-columns: 1fr; }
  .trio li:nth-child(2), .trio li:nth-child(3) { margin-top: 0; }
  .trio img, .trio li:nth-child(n) img { aspect-ratio: 4 / 3; }
  .nums { grid-template-columns: 1fr; }
  .nums > div { padding: 18px 0; }
  .nums > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cos li { grid-template-columns: 1fr; }
  .cos li:nth-child(1) .ph { max-width: 220px; }
  .cos li:nth-child(2) .ph { max-width: 260px; }
  .tb th { width: 6.5em; }
  .tb--p th { width: auto; }
  .pair { grid-template-columns: 1fr; }
  .pair > div { padding: 22px 0; }
  .pair > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .law .tb, .law .tb tbody, .law .tb tr, .law .tb th, .law .tb td { display: block; width: auto; }
  .law .tb th { border-bottom: 0; padding-bottom: 0; }
  .law .tb tr:first-child td { border-top: 0; }

  /* Z-1 は縦に */
  .z1__band { flex-direction: column; }
  .z1__seg { flex: none; display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; }
  .z1__room { grid-column: 2; grid-row: 1; margin: 0 0 4px; }
  .z1__bar { grid-column: 1; grid-row: 1 / span 2; height: auto; min-height: calc(var(--m) * 2.4px); border-right-width: 1.5px; border-bottom-width: 0; }
  .z1__seg:last-child .z1__bar { border-bottom-width: 1.5px; }
  .z1__ev { grid-column: 2; grid-row: 2; margin: 0 0 14px; padding: 0; }
  .z1__ev .end { text-align: left; }
  .z1__seg--gap .z1__room { display: none; }
  .z1__seg--gap .z1__ev { grid-row: 1 / span 2; margin-top: 6px; }
  .z1__seg--sel .maru { left: 28px; top: 16px; width: min(250px, 82%); height: 96px; }
  .z1--s .z1__bar { min-height: calc(var(--m) * 1.1px); }
  .z1--s .z1__ev { margin-bottom: 8px; }

  /* Z-2 はプランごとに縦に */
  .z2, .z2 thead, .z2 tbody, .z2 tr, .z2 th, .z2 td { display: block; width: auto; }
  .z2 thead { display: none; }
  .z2 tbody tr { display: grid; grid-template-columns: 1fr; }
  .z2 tbody tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .z2 tbody th { padding: 4px 0 6px; border: 0; width: auto; }
  .z2 td { padding: 6px 0 6px 0; border: 0; display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; }
  .z2 td::before { content: attr(data-p); font-weight: 600; font-size: 14.5px; }
  .z2 tr.tot { border-top: 1.5px solid var(--k); border-bottom: 1.5px solid var(--k); }
  .z2 tr.tot th, .z2 tr.tot td { border: 0; }
  .z2--s tbody th { width: auto; }

  /* Z-3 は縦に */
  .z3 { flex-direction: column; }
  .z3__op { width: auto; height: 36px; }
  .z3__eq { padding-left: 0; justify-items: start; }
}
@media (max-width: 380px) {
  .logo { width: 136px; }
  .btn--s { padding: 0 10px; }
}

/* 動きを減らす設定のときは、完成形のまま */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 下層の頭（見出し → 写真 → 本文の順のとき） */
.pg--h { padding-bottom: 32px; }
.pg--h h1 { margin-bottom: 0; }
.pg--b { padding-top: 36px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 料金の表（4つ・2列） */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 5vw, 72px); align-items: start; }
.prices__w { grid-column: 1 / -1; }
.prices .h3 { padding-bottom: 6px; }
.tb--3 td.p { width: 9em; }
.tb--3 thead th.p { white-space: normal; }
.tb--q thead th { color: var(--gt); }
.tb--q td { padding-left: 16px; }
.tb--q th { width: 46%; }
.tb caption { caption-side: top; text-align: left; padding-bottom: 8px; }
.law .tb td { padding-left: 12px; }
@media (max-width: 899px) { .prices { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tb--3 td.p { width: auto; padding-left: 8px; font-size: 16px; }
  .tb--3 thead th.p { font-size: 12.5px; }
  .tb--q th { width: 50%; }
  .law .tb td { padding-left: 0; }
}
.z4w { align-items: start; }
.z4w .ph { margin-top: 48px; }
.z4w .ph img, .ph img, .ph svg { width: 100%; height: auto; }
