/* ==== 部品（全サイト共通）====
   色・書体・角・線は、デザインの style.css で変数を決める。
   ここは並び方と、見やすさの土台だけ。 */
:root {
  /* 形と書体（デザインの style.css で上書きする） */
  --radius: 8px; --radius-lg: 12px; --btn-radius: 8px; --btn-border: 0; --shadow: none;
  --font-body: sans-serif; --font-head: sans-serif; --font-en: sans-serif;
  --wrap: 1040px;
  --on-photo: #fff; --photo-shade: #0e0f10;
}
/* 色の土台（デザインの style.css が、4つの系統ごとに自分の色で上書きする。ここは上書きがないときの予備） */
:root {
  --bg: #f6f6f4; --surface: #fff; --soft: #e9e9e5; --soft-2: #dcdcd7; --rule: #d3d3ce;
  --ink: #262626; --muted: #555; --accent: #3a3a3a; --accent-ink: #fff; --sub-ink: #262626;
  --focus: #1a5fb4; --ribbon-bg: #262626; --ribbon-ink: #fff;
  --closed-bg: #3a3a3a; --closed-ink: #fff; --sun: #a3392e; --sat: #2f5c94;
  --ok: #2b6a3a; --few: #8a5200; --avail-line: #e0e0dc; --map-bg: #ececea;
  --footer-bg: #262626; --footer-ink: #f6f6f4; --header-bg: #fff;
  --ph-before: #e3e3df; --ph-after: #d6d6d1;
  --insta-ph-1: #e3e3df; --insta-ph-2: #d9d9d4; --insta-ph-3: #ecece8;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { --line: 1px solid var(--rule); --cal-line: 1px solid var(--rule); margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.85; color: var(--ink); background: var(--bg); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.45; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* 制作サンプルの帯 */
.sample-ribbon { margin: 0; padding: .5rem 1rem; text-align: center; font-size: 1rem; line-height: 1.5; background: var(--ribbon-bg); color: var(--ribbon-ink); }

/* 段の共通 */
.p-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.p-section { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.p-head { margin-bottom: 2rem; }
.p-eyebrow { margin: 0 0 .25rem; font-family: var(--font-en); font-size: 1rem; letter-spacing: .14em; color: var(--muted); }
.p-lead { margin-top: .75rem; }
.p-note, .p-small { font-size: 1rem; color: var(--muted); }
.p-note { margin-top: 1rem; }

/* ヘッダー */
.p-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .75rem 1.25rem; background: var(--header-bg); border-bottom: var(--line); }
.p-brand { display: flex; flex-direction: column; line-height: 1.3; text-decoration: none; }
.p-brand small { font-size: .875rem; color: var(--muted); }
.p-brand strong { font-family: var(--font-head); font-size: 1.25rem; }
.p-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.p-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .1rem; text-decoration: none; }
.p-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.p-nav .p-nav-reserve { padding: 0 1.1rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--btn-radius); border: var(--btn-border); }
.p-nav .p-nav-reserve:hover { text-decoration: none; }

/* ボタン */
.p-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: var(--btn-border); border-radius: var(--btn-radius); box-shadow: var(--shadow); transition: transform .25s ease; }
.p-btn:hover { transform: translateY(-2px); }
.p-btn-sub { background: transparent; color: var(--sub-ink); border: 2px solid currentColor; box-shadow: none; }

/* メニュー */
.p-menu-list { display: grid; gap: var(--menu-gap, 1rem); margin: 0; padding: 0; list-style: none; }
.p-menu-item { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; padding: 1.25rem 1.35rem; background: var(--surface); border: var(--line); border-radius: var(--radius); }
.p-menu-text p { margin: .25rem 0 0; color: var(--muted); }
.p-menu-price { margin: 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.p-menu-price span { font-size: 1rem; }
@media (min-width: 760px) { .p-menu-list { grid-template-columns: 1fr 1fr; } }

/* ビフォーアフター（写真をのせる場所） */
.p-ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 760px; }
.p-ph { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: 1rem; border: var(--line); border-radius: var(--radius); }
.p-ph b { font-family: var(--font-en); letter-spacing: .12em; }
.p-ph-before { background: var(--ph-before); }
.p-ph-after { background: var(--ph-after); }

/* 今月の休業日 */
.p-cal-box { max-width: 520px; }
.p-cal { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; background: var(--surface); }
.p-cal th, .p-cal td { padding: .5rem 0; border: var(--cal-line); }
.p-cal .is-sun { color: var(--sun); }
.p-cal .is-sat { color: var(--sat); }
.p-cal td.is-closed { background: var(--closed-bg); color: var(--closed-ink); font-weight: 700; }
.p-cal-legend { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.p-swatch { width: 1.1rem; height: 1.1rem; background: var(--closed-bg); border-radius: 3px; }

/* ご予約 */
.p-reserve-grid { display: grid; gap: 1.25rem; }
.p-reserve-card { min-width: 0; padding: clamp(1.1rem, 4vw, 2rem); background: var(--surface); border: var(--line); border-radius: var(--radius-lg); }
.p-reserve-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.p-reserve-num { margin: 0; font-family: var(--font-en); font-size: 1.25rem; color: var(--muted); }
.p-message { padding: 1rem 1.1rem; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 4px; }
@media (min-width: 880px) { .p-reserve-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* 空き状況のイメージ（予約ページの画面の見本） */
.p-avail { margin: 1.25rem 0; padding: .9rem .6rem .5rem; background: var(--bg); border: var(--line); border-radius: var(--radius); }
.p-avail-title { margin-bottom: .5rem; font-weight: 700; }
.p-avail-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; line-height: 1.25; }
.p-avail-table th, .p-avail-table td { padding: .45rem 0; border-bottom: 1px solid var(--avail-line); }
.p-avail-table thead th:first-child { width: 2.9em; }
.p-avail-table th[scope="row"] { text-align: left; font-weight: 700; padding-left: .2rem; }
.p-avail-table td { font-weight: 700; }
.p-avail .is-ok { color: var(--ok); }
.p-avail .is-few { color: var(--few); }
.p-avail .is-full, .p-avail .is-off { color: var(--muted); font-weight: 400; }
.p-avail-legend { margin: .6rem 0 0; }
.p-avail .p-note { margin: 0; }
/* スマホでは、カードの内側の余白を少し使って、1列を広くする（2026-11-29 追加） */
@media (max-width: 480px) {
  .p-avail { margin-inline: -.6rem; padding-inline: .35rem; }
  .p-avail-table thead th:first-child { width: 2.6em; }
}

/* Instagram（インスタ風の写真の並び） */
.p-insta-feed { max-width: 720px; background: var(--surface); border: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.p-insta-bar { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .75rem 1rem; font-weight: 700; border-bottom: var(--line); }
.p-insta-icon { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid currentColor; border-radius: 30%; }
.p-insta-icon::before { content: ""; position: absolute; inset: 26%; border: 2px solid currentColor; border-radius: 50%; }
.p-insta-icon::after { content: ""; position: absolute; top: 12%; right: 12%; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.p-insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.p-insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p-insta-action { margin: 1.5rem 0 0; }
.p-btn-insta { min-height: 60px; min-width: min(100%, 320px); padding-inline: 2rem; font-size: 1.15rem; }

/* アクセス */
.p-access-grid { display: grid; gap: 1.5rem; }
.p-access-name { margin: .5rem 0 .75rem; }
.p-map { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 1rem; text-align: center; background: var(--map-bg); border: var(--line); border-radius: var(--radius); }
@media (min-width: 880px) { .p-access-grid { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* フッター */
.p-footer { padding: 2.5rem 1.25rem; text-align: center; background: var(--footer-bg); color: var(--footer-ink); }
.p-footer p { margin: 0 0 .35rem; }
.p-footer .p-small { color: inherit; opacity: .85; }
.p-footer-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }

/* 動きが苦手な人の設定では、動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Instagram の升目：写真がまだないときの「写真：〇〇」の枠（2026-11-29 追加） */
.p-insta-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: .4rem; text-align: center; font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--insta-ph-1); }
.p-insta-ph:nth-child(3n+2) { background: var(--insta-ph-2); }
.p-insta-ph:nth-child(3n) { background: var(--insta-ph-3); }

/* 一番上の見せ方（?t=1〜3 のときだけ出る。2026-11-29 追加） */
.p-top { padding-block: clamp(2.5rem, 8vw, 4.5rem); background: var(--surface); border-bottom: var(--line); }
.p-top-big { font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.5; margin-bottom: 1rem; }
.p-top-text { max-width: 38em; }
.p-top-prices { display: grid; gap: 0; max-width: 560px; margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: var(--line); }
.p-top-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: var(--line); }
.p-top-prices strong { font-family: var(--font-head); font-size: 1.4rem; white-space: nowrap; }
.p-top-prices small { font-size: 1rem; }
.p-top-price .p-btn { margin-top: .5rem; }
.p-top-buttons { display: grid; gap: .75rem; max-width: 560px; margin-top: 1.25rem; }
.p-top-buttons .p-btn { min-height: 60px; font-size: 1.1rem; }
@media (min-width: 760px) { .p-top-buttons { grid-template-columns: 1fr 1fr; max-width: 760px; } }

/* ペットホテル：お泊まりのご案内・空室カレンダー（2026-11-29 追加） */
.p-hotel-times { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 560px; margin: 0 0 1.5rem; }
.p-hotel-times div { padding: 1rem; background: var(--surface); border: var(--line); border-radius: var(--radius); }
.p-hotel-times dt { color: var(--muted); }
.p-hotel-times dd { margin: 0; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.p-hotel-lists { display: grid; gap: 1rem; }
.p-hotel-box { padding: 1.1rem 1.25rem; background: var(--surface); border: var(--line); border-radius: var(--radius); }
.p-hotel-box h3 { margin-bottom: .4rem; }
.p-hotel-box ul { margin: 0; padding-left: 1.2rem; }
@media (min-width: 760px) { .p-hotel-lists { grid-template-columns: 1fr 1fr; } }
.p-vac td { padding: .35rem 0; vertical-align: top; line-height: 1.3; }
.p-vac-day, .p-vac-mark { display: block; }
.p-vac-mark { font-weight: 700; }
.p-vac .is-ok .p-vac-mark { color: var(--ok); }
.p-vac .is-few .p-vac-mark { color: var(--few); }
.p-vac .is-full, .p-vac .is-off { color: var(--muted); }
.p-vac .is-full .p-vac-mark, .p-vac .is-off .p-vac-mark { font-weight: 400; }

/* スクロールで出る動き（body に rv-auto があるデザインだけ。出方は各デザインの変数で変える。2026-11-29 追加） */
.rv-on .rv-item { opacity: 0; transform: var(--rv-from, translateY(24px)); transition: opacity var(--rv-dur, .8s) ease calc(var(--rv-i, 0) * var(--rv-step, 90ms)), transform var(--rv-dur, .8s) var(--rv-ease, cubic-bezier(.2, .7, .2, 1)) calc(var(--rv-i, 0) * var(--rv-step, 90ms)); }
.rv-on .rv-item.rv-in { opacity: 1; transform: none; }
/* 横から入ってくる動きで、画面の横がはみ出さないように（clip はスクロールの枠を作らないので、sticky もそのまま動く） */
.rv-on main > * { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv-item { opacity: 1; transform: none; transition: none; }
}

/* 動物取扱業の表示（サロンとホテル。2026-11-29 追加） */
.p-dealer { margin-top: 1.25rem; padding: 1rem 1.1rem; background: var(--surface); border: var(--line); border-radius: var(--radius); }
.p-dealer-title { margin: 0 0 .5rem; font-weight: 700; }
.p-dealer dl { margin: 0; }
.p-dealer dl div { display: grid; grid-template-columns: 8.5em 1fr; gap: .5rem; padding: .2rem 0; border-top: 1px solid var(--rule); }
.p-dealer dt { color: var(--muted); }
.p-dealer dd { margin: 0; }
.p-dealer .p-note { margin: .5rem 0 0; }
@media (max-width: 400px) { .p-dealer dl div { grid-template-columns: 1fr; gap: 0; } }

/* ==== デザイン：clinic-window ==== */
/* clinic-window：動物病院 × やさしい・ナチュラル「まるい窓」
   書体：BIZ UDPGothic（読みやすい）＋ 英字は Cormorant Garamond の斜体
   角：カードは四角（角なし）、写真とわくは真ん丸／線：細い実線1本
   技術：丸いわく（border-radius と二重の輪）／丸く切った写真の重ね／帯の背景が止まって見える（background-attachment: fixed、大きい画面だけ）
   色：下の「色」のところで、4つの系統ごとに決める（c なしは c=2） */
/* ==== 色（ここから） ==== */
/* 色は ?c= で4つの系統から（0 暖かい色／1 涼しい色／2 緑・自然の色／3 白黒・モノトーン）。このデザインだけの色。蛍光色は使わない */
/* c=0 暖かい色 */
:root[data-c="0"] .site-clinic-window {
  --bg: #f9f3ed;
  --surface: #fdfaf8;
  --soft: #eae3dd;
  --soft-2: #e0d9d3;
  --rule: #d3cbc5;
  --ink: #3a2c24;
  --muted: #675b53;
  --accent: #a36a4f;
  --accent-ink: #000000;
  --sub-ink: #875a44;
  --focus: #1a5fb4;
  --ribbon-bg: #3a2c24;
  --ribbon-ink: #f9f3ed;
  --closed-bg: #a36a4f;
  --closed-ink: #000000;
  --sun: #a3392e;
  --sat: #2f5c94;
  --ok: #2b6a3a;
  --few: #8a5200;
  --avail-line: #d3cbc5;
  --map-bg: #eae3dd;
  --footer-bg: #3a2c24;
  --footer-ink: #f9f3ed;
  --header-bg: #fdfaf8;
  --ph-before: #eae3dd;
  --ph-after: #e0d9d3;
  --insta-ph-1: #eae3dd;
  --insta-ph-2: #e0d9d3;
  --insta-ph-3: #f1ebe5;
  color-scheme: light;
}
/* c=1 涼しい色 */
:root[data-c="1"] .site-clinic-window {
  --bg: #f3f8f8;
  --surface: #fafcfc;
  --soft: #e2e8e8;
  --soft-2: #d7dfdf;
  --rule: #c9d1d1;
  --ink: #1f3436;
  --muted: #546567;
  --accent: #2a6569;
  --accent-ink: #ffffff;
  --sub-ink: #2a6569;
  --focus: #1a5fb4;
  --ribbon-bg: #1f3436;
  --ribbon-ink: #f3f8f8;
  --closed-bg: #2a6569;
  --closed-ink: #ffffff;
  --sun: #a3392e;
  --sat: #2f5c94;
  --ok: #2b6a3a;
  --few: #8a5200;
  --avail-line: #c9d1d1;
  --map-bg: #e2e8e8;
  --footer-bg: #1f3436;
  --footer-ink: #f3f8f8;
  --header-bg: #fafcfc;
  --ph-before: #e2e8e8;
  --ph-after: #d7dfdf;
  --insta-ph-1: #e2e8e8;
  --insta-ph-2: #d7dfdf;
  --insta-ph-3: #ebf0f0;
  color-scheme: light;
}
/* c=2 緑・自然の色（c なしのときもこの色） */
.site-clinic-window, :root[data-c="2"] .site-clinic-window {
  --bg: #f2f4ee;
  --surface: #fafbf8;
  --soft: #e2e5de;
  --soft-2: #d8dbd4;
  --rule: #cacec6;
  --ink: #2a3428;
  --muted: #596156;
  --accent: #4f6b4a;
  --accent-ink: #ffffff;
  --sub-ink: #4f6b4a;
  --focus: #1a5fb4;
  --ribbon-bg: #2a3428;
  --ribbon-ink: #f2f4ee;
  --closed-bg: #4f6b4a;
  --closed-ink: #ffffff;
  --sun: #a3392e;
  --sat: #2f5c94;
  --ok: #2b6a3a;
  --few: #8a5200;
  --avail-line: #cacec6;
  --map-bg: #e2e5de;
  --footer-bg: #2a3428;
  --footer-ink: #f2f4ee;
  --header-bg: #fafbf8;
  --ph-before: #e2e5de;
  --ph-after: #d8dbd4;
  --insta-ph-1: #e2e5de;
  --insta-ph-2: #d8dbd4;
  --insta-ph-3: #eaece6;
  color-scheme: light;
}
/* c=3 白黒・モノトーン */
:root[data-c="3"] .site-clinic-window {
  --bg: #f7f7f7;
  --surface: #fcfcfc;
  --soft: #e6e6e6;
  --soft-2: #dcdcdc;
  --rule: #cdcdcd;
  --ink: #262626;
  --muted: #616161;
  --accent: #444444;
  --accent-ink: #ffffff;
  --sub-ink: #444444;
  --focus: #1a5fb4;
  --ribbon-bg: #262626;
  --ribbon-ink: #f7f7f7;
  --closed-bg: #444444;
  --closed-ink: #ffffff;
  --sun: #a3392e;
  --sat: #2f5c94;
  --ok: #2b6a3a;
  --few: #8a5200;
  --avail-line: #cdcdcd;
  --map-bg: #e6e6e6;
  --footer-bg: #262626;
  --footer-ink: #f7f7f7;
  --header-bg: #fcfcfc;
  --ph-before: #e6e6e6;
  --ph-after: #dcdcdc;
  --insta-ph-1: #e6e6e6;
  --insta-ph-2: #dcdcdc;
  --insta-ph-3: #efefef;
  color-scheme: light;
}
/* ==== 色（ここまで） ==== */
.site-clinic-window {
  --radius: 0; --radius-lg: 0; --btn-radius: 999px;
  --font-body: "BIZ UDPGothic", sans-serif; --font-head: "BIZ UDPGothic", sans-serif; --font-en: "Cormorant Garamond", serif;
}
.site-clinic-window .p-eyebrow { font-style: italic; font-size: 1.3rem; letter-spacing: .06em; color: var(--sub-ink); }
.site-clinic-window .p-head { text-align: center; }
.site-clinic-window .p-head h2::after { content: ""; display: block; width: 56px; height: 1px; margin: .9rem auto 0; background: var(--accent); }
.site-clinic-window .p-menu, .site-clinic-window .p-reserve { background: var(--surface); border-block: var(--line); }
.site-clinic-window .p-menu-item { background: var(--bg); border-width: 0 0 1px; }
.site-clinic-window .p-menu-price { font-weight: 400; color: var(--sub-ink); }
.site-clinic-window .p-ba-grid, .site-clinic-window .p-cal-box, .site-clinic-window .p-insta-feed { margin-inline: auto; }
.site-clinic-window .p-ph { border-radius: 50%; aspect-ratio: 1; justify-content: center; align-items: center; gap: .25rem; text-align: center; }
.site-clinic-window .p-ba .p-note, .site-clinic-window .p-cal-section .p-note, .site-clinic-window .p-insta .p-note, .site-clinic-window .p-insta-action { text-align: center; }
.site-clinic-window .p-reserve-card { background: var(--bg); }
.site-clinic-window .p-insta-bar { justify-content: center; color: var(--sub-ink); }

/* 一番上：全面の写真＋まるい窓 */
.cw-hero { position: relative; display: grid; place-items: end center; min-height: clamp(560px, 92svh, 780px); padding: 2.5rem 1.25rem 2rem; overflow: hidden; }
.cw-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cw-window { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(74vw, 430px); aspect-ratio: 1; padding: 1.5rem; text-align: center; background: color-mix(in srgb, var(--surface) 90%, #0000); color: var(--ink); border-radius: 50%; animation: cw-open 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.cw-window::before, .cw-window::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cw-window::before { inset: -14px; border: 1px solid color-mix(in srgb, var(--surface) 85%, #0000); animation: cw-ring 2.2s cubic-bezier(.2, .7, .2, 1) .2s both; }
.cw-window::after { inset: 10px; border: 1px solid var(--rule); }
.cw-en { margin: 0 0 .3rem; font-family: var(--font-en); font-style: italic; font-size: 1.35rem; color: var(--sub-ink); }
.cw-window h1 { font-size: clamp(1.45rem, 6.4vw, 2.2rem); letter-spacing: .06em; line-height: 1.55; }
.cw-window-sub { margin: .8rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }
@keyframes cw-open { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes cw-ring { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }

/* 院内のルーム：丸く切った写真を2枚重ねる */
.cw-about-grid { display: grid; gap: 2.5rem; align-items: center; }
.cw-rounds { position: relative; width: min(100%, 460px); aspect-ratio: 1 / .86; margin-inline: auto; }
.cw-round { position: absolute; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.cw-round-a { top: 0; left: 0; width: 70%; }
.cw-round-b { right: 0; bottom: 0; width: 50%; border: 6px solid var(--bg); outline: 1px solid var(--rule); outline-offset: 6px; }
.cw-about-text h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 1rem; }
.cw-points { display: grid; gap: 0; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: var(--line); }
.cw-points li { padding: .9rem 0; border-bottom: var(--line); }
.cw-points h3 { font-size: 1.05rem; color: var(--sub-ink); }
.cw-points p { margin: .2rem 0 0; }

/* 流れの帯：写真の上に色をかぶせ、背景は止まって文字が流れて見える（大きい画面だけ） */
.cw-band { padding-block: clamp(3.5rem, 10vw, 6rem); color: var(--on-photo); background: linear-gradient(#0e0f10c7, #0e0f10c7), url("img/JhN5ynxuF_Q.jpg") center 40% / cover no-repeat; }
.cw-band .p-eyebrow { color: var(--on-photo); text-align: center; }
.cw-band h2 { text-align: center; margin-bottom: 2rem; }
.cw-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cw-steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid #ffffff59; }
.cw-step-num { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; font-family: var(--font-en); font-style: italic; font-size: 1.4rem; border: 1px solid #ffffffb3; border-radius: 50%; }
.cw-steps p { margin: .2rem 0 0; }
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cw-band { background-attachment: fixed; }
}

@media (min-width: 880px) {
  .cw-hero { place-items: center start; padding-left: clamp(2rem, 8vw, 8rem); }
  .cw-hero-img { object-position: 60% 35%; }
  .cw-about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .cw-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .cw-steps li { grid-template-columns: 1fr; row-gap: .6rem; }
  .cw-step-num { grid-row: auto; }
}

/* ==== 動き（2026-11-29 追加）：丸く、ふわっと広がる ==== */
.site-clinic-window { --rv-from: scale(.9); --rv-dur: 1s; --rv-step: 120ms; --rv-ease: cubic-bezier(.2, .8, .2, 1); }
.cw-orbit { position: absolute; z-index: 1; width: min(90vw, 520px); aspect-ratio: 1; border: 1px dashed #ffffffb3; border-radius: 50%; pointer-events: none; }
.cw-hero .cw-orbit { bottom: calc(2rem - (min(90vw, 520px) - min(74vw, 430px)) / 2); left: 50%; margin-left: calc(min(90vw, 520px) / -2); }
@media (min-width: 880px) {
  .cw-hero .cw-orbit { top: 50%; bottom: auto; left: clamp(2rem, 8vw, 8rem); margin-left: calc((min(74vw, 430px) - min(90vw, 520px)) / 2); margin-top: calc(min(90vw, 520px) / -2); }
}
@media (prefers-reduced-motion: no-preference) {
  .cw-hero-img { animation: cw-zoom 7s cubic-bezier(.2, .6, .2, 1) both; }
  .cw-orbit { animation: cw-spin 60s linear infinite; }
  .cw-window > * { animation: cw-text .7s ease both; }
  .cw-window > :nth-child(1) { animation-delay: .3s; }
  .cw-window > :nth-child(2) { animation-delay: .4s; }
  .cw-window > :nth-child(3) { animation-delay: .5s; }
  /* 丸い写真は、ずれて順に広がる */
  .rv-on .cw-round-b { --rv-from: scale(.6) translate(20px, 20px); }
  .rv-on .cw-steps .rv { --rv-from: translateY(24px); }
}
@keyframes cw-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes cw-spin { to { transform: rotate(360deg); } }
@keyframes cw-text { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
