/* shiro beauty salon 見本：てのひらWebのサイト（ポートフォリオ）の型をそのまま使い、色と書体だけサロンに合わせています */
/* 色・文字・余白：全体の調整はここから */
:root {
  --color-ink: #3c434e;          /* 紺グレー（文字） */
  --color-muted: #545a63;
  --color-accent: #0f5c5a;       /* 深い青緑（予約ボタン・印） */
  --color-accent-hover: #0a4644;
  --color-accent-soft: #e4eeed;
  --color-paper: #fff;
  --color-backdrop: #f4f2ec;     /* カードの外 */
  --color-soft: #e8e4d6;         /* 生成りベージュ（交互のセクション） */
  --color-line: #d2cdbd;
  --color-dot: #b3aa8f;          /* 見出しの点 */
  --font-body: "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-logo: "Cormorant Garamond", var(--font-serif);
  --text-body: 16px;
  --text-heading: 26px;
  --text-subheading: 19px;
  --text-hero: clamp(20px, 5.8vw, 25px);
  --text-brand: 23px;
  --text-large-brand: 34px;
  --line-height: 1.95;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 64px;
  --page-gutter: 24px;
  --card-width: 430px;
  --side-width: 236px;
  --header-height: 68px;
  --button-height: 54px;
  --cta-space: 94px;
  --radius: 6px;
}

/* 共通と中央のスマホ型の枠 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-backdrop); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-body); line-height: var(--line-height); word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-card { width: 100%; max-width: var(--card-width); margin: var(--space-md) auto; background: var(--color-paper); border-radius: 24px; overflow: clip; box-shadow: 0 0 0 1px #3c434e08, 0 18px 60px #3c434e0d; }
section[id], div[id] { scroll-margin-top: calc(var(--header-height) + var(--space-md)); }
.section { padding: var(--space-xl) var(--page-gutter); }
.soft { background: var(--color-soft); }
/* 見出し：明朝1種類の太さ。各行は span で改行 */
.section-title { font-family: var(--font-serif); font-size: var(--text-heading); font-weight: 500; letter-spacing: .02em; line-height: 1.6; margin-bottom: var(--space-lg); }
.section-title > span, .consult-text > span, h1 > span { display: block; }
/* 見出しの上の線と点3つ（てのひらWebの青線・オレンジ点を、青緑とベージュに） */
.section-title::before { content: ""; display: block; width: 62px; height: 6px; margin-bottom: var(--space-md); background: linear-gradient(var(--color-accent) 0 0) left center / 28px 2px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 36px center / 6px 6px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 46px center / 6px 6px no-repeat, radial-gradient(circle, var(--color-dot) 2.5px, transparent 3px) 56px center / 6px 6px no-repeat; }
/* 英字の小見出し（今のサイトの CONCEPT・WORRIES など） */
.kicker { margin-bottom: var(--space-xs); color: var(--color-muted); font-size: 16px; letter-spacing: .3em; line-height: 1.5; }
.section-intro { margin-top: calc(-1 * var(--space-sm)); margin-bottom: var(--space-lg); color: var(--color-muted); }
h3 { font-size: var(--text-subheading); font-weight: 700; line-height: 1.7; }
.paragraph-gap { margin-top: var(--space-sm); }

/* 上に残るヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--page-gutter); background: #ffffffF5; border-bottom: 1px solid var(--color-line); }
.brand { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; line-height: 1.4; }
.brand-name { font-family: var(--font-logo); font-size: var(--text-brand); font-weight: 400; letter-spacing: .08em; white-space: nowrap; }
.icon-button { width: 44px; height: 44px; padding: 0; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--color-line); border-radius: 50%; color: var(--color-ink); font-size: 26px; line-height: 1; }
.icon-button:hover { background: var(--color-soft); }
.menu-toggle { border: 0; }
.hamburger, .hamburger::before, .hamburger::after { width: 22px; height: 2px; display: block; background: currentColor; }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* 最初の画面：写真の上に文字を重ねる。オーナーの顔は右上なので、文字は左側で顔に重ねない */
.hero { padding-top: 0; padding-bottom: var(--space-xl); }
.hero-copy { padding: 0 var(--page-gutter); }
.hero-visual { position: relative; display: flex; flex-direction: column; min-height: 470px; margin: 0 calc(var(--page-gutter) * -1); padding: var(--space-lg) var(--page-gutter) var(--space-md); background: linear-gradient(90deg, #fffffff7 0%, #ffffffe6 46%, #ffffff40 66%, #fff0 80%), url("images/hero-owner.webp") 68% 0 / cover no-repeat; }
.hero-visual > * { position: relative; max-width: 60%; }
h1 { font-family: var(--font-serif); font-size: var(--text-hero); font-weight: 500; line-height: 1.7; letter-spacing: .02em; }
h1 > span { white-space: nowrap; }
/* 実績3つ：写真の下側（オーナーの胸より下）に白い台で。顔にはかかりません */
.hero-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-sm); align-items: baseline; max-width: none; margin-top: auto; padding: var(--space-xs) var(--space-sm); border-radius: 12px; background: #ffffffe6; }
.hero-facts > div { display: contents; }
.hero-facts strong { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--color-accent); white-space: nowrap; }
.hero-facts span { font-size: 16px; line-height: 1.6; }
.hero-lead { margin-top: var(--space-md); }
.hero-actions { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.button { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: var(--button-height); padding: var(--space-sm); border: 1px solid transparent; border-radius: var(--radius); font-size: 16px; font-weight: 700; line-height: 1.6; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.button:active { transform: scale(.97); }
.button > span { margin-left: auto; }
.wrap-label { min-width: 0; }
.button > .wrap-label { margin-left: 0; }

/* 予約ボタン：てのひらWebの丸い申し込みボタンの形のまま、色を深い青緑の塗りに。左に予定表のマーク・右に白い丸の矢印。押すと沈む */
.button.primary, .button.consult-button { position: relative; overflow: hidden; gap: 8px; min-height: 60px; padding: 10px 10px 10px 12px; border: 0; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 5px 0 var(--color-accent-hover), 0 10px 18px #0f5c5a40; transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; }
.button.primary:hover { background: var(--color-accent-hover); }
.button.primary:active, .button.consult-button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--color-accent-hover), 0 4px 8px #0f5c5a33; }
.button.primary::before, .button.consult-button::before { content: ""; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5c5a' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / 20px no-repeat; }
.button.primary > span[aria-hidden="true"], .button.consult-button > span[aria-hidden="true"] { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--color-accent); font-size: 15px; font-weight: 900; }
.button.primary > .wrap-label, .button.consult-button > .wrap-label { flex: 1; text-align: left; white-space: normal; text-wrap: balance; line-height: 1.3; }
/* 予約の帯の中は白いボタン・青緑の文字 */
.button.consult-button { background: #fff; color: var(--color-accent); box-shadow: 0 5px 0 #c9ccd2, 0 10px 18px #0000002e; }
.button.consult-button:hover { background: var(--color-backdrop); }
.button.consult-button::before { background-color: var(--color-accent-soft); }
.button.consult-button > span[aria-hidden="true"] { background: var(--color-accent); color: #fff; }
/* LINEは控えめ（枠線だけ） */
.line-button { border-color: var(--color-ink); background: var(--color-paper); color: var(--color-ink); border-radius: 999px; }
.line-button:hover { background: var(--color-soft); }

/* 最初の画面の予約ボタン：3秒たっても押されていなければ、1回だけ光が流れます */
.hero-actions .button { position: relative; overflow: hidden; }
.hero-actions .button.is-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff55 50%, transparent 70%); transform: translateX(-100%); animation: dm-shine 1.6s ease-in-out forwards; pointer-events: none; }
@keyframes dm-shine { to { transform: translateX(100%); } }

/* 早見リンク（小さな丸いチップ）。16px・高さ44px・2列 */
.hero-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: var(--space-md) 0 0; }
.hero-jump a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; border: 1px solid var(--color-accent); border-radius: 999px; background: var(--color-paper); color: var(--color-accent); font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.hero-jump a:hover { background: var(--color-accent-soft); }
#menu .hero-jump { margin: 0 0 var(--space-lg); }

/* 写真の枠。読み込めた画像だけ表示 */
.image-frame { display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--space-md); background: var(--color-soft); border: 1px dashed var(--color-line); border-radius: var(--radius); }
.image-placeholder { padding: var(--space-md); color: var(--color-muted); font-size: 16px; text-align: center; }
.image-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.image-frame.has-image img { visibility: visible; }
.image-frame.has-image .image-placeholder { visibility: hidden; }
.image-frame.has-image { border-style: solid; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-square { aspect-ratio: 1; }
.photo-wide { aspect-ratio: 950 / 360; margin-bottom: 0; }

/* 下層へのリンク：押せると分かるボタンの形（外部リンクは下線だけ） */
.text-link { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); min-height: 48px; margin-top: var(--space-md); border-bottom: 1px solid var(--color-ink); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--color-accent); border-color: var(--color-accent); }
.text-link:not([href^="http"]) { gap: 12px; min-height: 56px; padding: 8px 8px 8px 20px; border: 2px solid var(--color-accent); border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); box-shadow: 0 3px 0 #c2d6d4; transition: transform .12s ease, box-shadow .12s ease; }
.text-link:not([href^="http"]) > span[aria-hidden="true"] { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 18px; font-weight: 900; }
.text-link:not([href^="http"]):active { transform: translateY(3px); box-shadow: 0 0 0 #c2d6d4; }
section > .text-link { margin-top: var(--space-lg); }

/* お悩み：✓つきのリスト（白い台） */
.list-tag { margin: var(--space-lg) 0 var(--space-xs); color: var(--color-accent); font-size: 16px; letter-spacing: .2em; }
.section-title + .list-tag { margin-top: 0; }
.worry-list, .check-list { margin: 0; padding: var(--space-md); list-style: none; background: var(--color-paper); border-radius: var(--radius); }
.worry-list li, .check-list li { position: relative; padding-left: 30px; }
.worry-list li + li, .check-list li + li { margin-top: var(--space-xs); }
.worry-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; }

/* オーナー紹介 */
.owner-name { margin-bottom: var(--space-md); }
.owner-name span { display: block; color: var(--color-muted); font-family: var(--font-logo); font-size: 18px; letter-spacing: .08em; }
.owner-name strong { font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: .1em; }
.owner-message { margin-top: var(--space-md); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; vertical-align: top; padding: var(--space-sm) 4px; border-bottom: 1px solid var(--color-line); }
.company-table th { width: 22%; font-weight: 700; white-space: nowrap; }
.company-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); font-weight: 700; }
.contact-option { margin-top: var(--space-lg); }

/* お客様の声：白いカード */
.voice-list { display: grid; gap: var(--space-md); }
.voice-card { padding: var(--space-md); border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-paper); }
.voice-stars { color: var(--color-accent); letter-spacing: .15em; }
.voice-card h3 { margin-bottom: var(--space-xs); font-family: var(--font-serif); font-weight: 500; }
.voice-person { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px dashed var(--color-line); }
.voice-person strong, .voice-person span { display: block; }
.voice-person span { color: var(--color-muted); }
.source-note, .action-note { margin-top: var(--space-md); font-size: 16px; line-height: 1.8; color: var(--color-muted); }

/* 脱毛機：写真と名前 */
.machine { margin-bottom: var(--space-md); }
.machine figcaption { margin-top: var(--space-xs); color: var(--color-muted); font-size: 16px; text-align: center; }
.machine-name { margin-bottom: var(--space-sm); }
.machine-name span, .machine-name small { display: block; color: var(--color-muted); font-size: 16px; line-height: 1.5; }
.machine-name strong { display: block; font-family: var(--font-logo); font-size: 44px; font-weight: 400; line-height: 1.1; letter-spacing: .06em; }
/* 特徴4つ：てのひらWebの「選ばれる理由」の番号つきの形 */
.reason { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-line); }
.reason h3 { margin: var(--space-xs) 0 var(--space-sm); font-family: var(--font-serif); font-size: 21px; font-weight: 500; }
.reason-number { color: #0f5c5a2e; font-family: var(--font-logo); font-size: 64px; line-height: 1; }
.safety { margin-top: var(--space-lg); background: var(--color-soft); }
.safety strong { display: block; }

/* メニュー・料金：スマホで読みやすい縦の表 */
.menu-group + .menu-group { margin-top: var(--space-xl); }
.menu-group .image-frame { aspect-ratio: 3 / 2; }
.pricing-table { border-collapse: collapse; width: 100%; margin: 0; font-size: 16px; background: var(--color-paper); border-radius: var(--radius); }
.pricing-table th, .pricing-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); padding: var(--space-sm); }
.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table th { width: 62%; font-weight: 700; }
.pricing-table th small { display: block; color: var(--color-muted); font-size: 16px; font-weight: 400; line-height: 1.6; }
.pricing-table td { font-weight: 700; color: var(--color-accent); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

/* ご来店の流れ */
.flow-list { padding: 0; margin: 0; counter-reset: flow; list-style: none; }
.flow-list li { position: relative; padding: 0 0 var(--space-lg) 45px; counter-increment: flow; }
.flow-list li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: var(--text-subheading); color: var(--color-accent); font-weight: 700; }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; top: 38px; bottom: 8px; left: 12px; width: 1px; background: var(--color-line); }
.flow-list li:last-child { padding-bottom: 0; }
.flow-list h3 { margin-bottom: var(--space-xs); }

/* よくある質問：JavaScriptなしでも開閉 */
.faq details { border-top: 1px solid var(--color-line); }
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary { min-height: 44px; position: relative; cursor: pointer; list-style: none; padding: var(--space-md) 26px var(--space-md) 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: var(--space-md); right: 0; font-size: 22px; color: var(--color-accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--space-md); color: var(--color-muted); }

/* アクセス */
.shop-info p { padding: var(--space-sm) 4px; border-bottom: 1px solid var(--color-line); }
.shop-info p:first-child { border-top: 1px solid var(--color-line); }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: var(--space-lg); border: 0; border-radius: var(--radius); }

/* 予約の帯（てのひらWebの相談の帯を紺グレーに） */
.consult-band { padding: var(--space-xl) var(--page-gutter) 56px; background: var(--color-ink); color: var(--color-paper); }
.consult-band .kicker { color: #c9ccd2; }
.consult-text { margin-bottom: var(--space-lg); font-family: var(--font-serif); font-size: 24px; font-weight: 500; line-height: 1.7; }
.consult-band .line-button { margin-top: var(--space-md); border-color: #fff; background: transparent; color: #fff; }
.consult-band .line-button:hover { background: #ffffff1a; }
.consult-band .action-note { color: var(--color-paper); }
.consult-band a:focus-visible { outline-color: var(--color-paper); }

/* フッター：小さくまとめる */
.site-footer { padding: var(--space-lg) var(--page-gutter) calc(var(--cta-space) + var(--space-md) + env(safe-area-inset-bottom, 0px)); background: var(--color-backdrop); text-align: center; }
.footer-brand { justify-content: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin: var(--space-xs) 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); font-size: 16px; text-decoration: none; }
.footer-copy { color: var(--color-muted); font-size: 16px; line-height: 1.6; }

/* 画面下にふわっと出る予約ボタン。JSなしでは初めから表示 */
.fixed-cta { position: fixed; z-index: 15; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-xs); align-items: center; width: min(100%, var(--card-width)); padding: var(--space-sm) var(--page-gutter) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); background: #fffffff5; border-top: 1px solid var(--color-line); }
.fixed-cta .line-button { min-height: 60px; padding-inline: 4px; }
.js .fixed-cta { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.js .fixed-cta.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }

/* トップに戻るボタン：カードの右下、画面下の固定ボタンの上に */
.to-top { position: fixed; z-index: 16; right: max(12px, calc(50% - var(--card-width) / 2 + 12px)); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--color-accent); border: 2px solid var(--color-accent); box-shadow: 0 4px 12px #3c434e2e; text-decoration: none; line-height: 1; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.to-top span { font-size: 22px; font-weight: 900; }
.js .to-top { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.js .to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }

/* メニュー（枠の中で開く） */
dialog { border: 0; padding: 0; color: var(--color-ink); background: var(--color-paper); font: inherit; }
dialog::backdrop { background: #3c434e66; }
.menu-dialog { inset: 0; width: min(100%, var(--card-width)); max-width: none; height: 100dvh; max-height: none; margin: 0 auto; overscroll-behavior: contain; }
.menu-panel { padding: var(--space-sm) var(--page-gutter) var(--space-lg); }
.menu-close { margin: 0 0 var(--space-lg) auto; }
.section-links { display: grid; }
.section-links a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; min-height: 52px; border-bottom: 1px solid var(--color-line); font-size: 16px; font-weight: 500; text-decoration: none; }
.section-links a span { color: var(--color-muted); }
.section-links a:hover, .section-links a:hover span { color: var(--color-accent); }
.site-footer .footer-links { display: flex; }
.site-footer .footer-links a { border: 0; padding: 0; min-height: 44px; }
body.modal-open { position: fixed; top: var(--modal-scroll-top); left: 0; width: 100%; overflow: hidden; }

/* セクションの境目：次のセクションの色で、波とゆるい斜めを交互に */
.section:not(.soft) + .soft, .soft + .section:not(.soft), .consult-band { position: relative; }
.section:not(.soft) + .soft::before, .soft + .section:not(.soft)::before, .consult-band::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 29px; pointer-events: none; -webkit-mask: var(--edge-shape) center / 100% 100% no-repeat; mask: var(--edge-shape) center / 100% 100% no-repeat; }
.section:not(.soft) + .soft::before, .consult-band::before { --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V16C70 0 130 0 200 16S330 32 400 14V32Z'/%3E%3C/svg%3E"); }
.soft + .section:not(.soft)::before { --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V22L400 4V32Z'/%3E%3C/svg%3E"); }
.section:not(.soft) + .soft::before { background: var(--color-soft); }
.soft + .section:not(.soft)::before { background: var(--color-paper); }
.consult-band::before { background: var(--color-ink); }

/* うすい水玉と丸（お悩み） */
.dots { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='72'%3E%3Cg fill='%233c434e' fill-opacity='.12'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='30' cy='6' r='2.5'/%3E%3Ccircle cx='54' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='30' r='2.5'/%3E%3Ccircle cx='42' cy='30' r='2.5'/%3E%3Ccircle cx='66' cy='30' r='2.5'/%3E%3Ccircle cx='90' cy='30' r='2.5'/%3E%3Ccircle cx='54' cy='54' r='2.5'/%3E%3Ccircle cx='78' cy='54' r='2.5'/%3E%3Ccircle cx='102' cy='54' r='2.5'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(circle at 100% 0, #ffffff66 0 110px, transparent 111px); background-repeat: no-repeat; background-position: right 12px top 20px, 0 0; background-size: 120px 72px, auto; }

/* 最初の画面を順番に出すまでの目隠し */
.hero-wait .hero-copy :is(h1, .hero-facts, .hero-lead, .hero-jump) { opacity: 0; }

/* 1100px以上で左右に固定表示（左にロゴ・右にメニュー）。中央は同じ並びのまま */
.desktop-menu, .desktop-logo, .pc-bg { display: none; }
@media (min-width: 1100px) {
  .desktop-menu, .desktop-logo { display: block; position: fixed; top: 50%; width: var(--side-width); max-height: calc(100dvh - 64px); overflow-y: auto; transform: translateY(-50%); padding: 16px 8px; background: radial-gradient(closest-side, #ffffffcc 55%, #fff0 100%); }
  .desktop-logo { right: calc(50% + var(--card-width) / 2 + 48px); text-align: center; overflow: visible; }
  .desktop-menu { left: calc(50% + var(--card-width) / 2 + 48px); }
  .desktop-logo .brand { display: flex; justify-content: center; }
  .desktop-logo .brand-name { font-size: var(--text-large-brand); white-space: normal; line-height: 1.3; }
  /* 背景写真3枚：画面に固定し、白いもやで薄くします。is-active の1枚だけ見せ、ふわっと切り替えます */
  .pc-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .pc-bg span { position: absolute; inset: -12px; background: center / cover no-repeat; filter: blur(3px); opacity: 0; transition: opacity .7s ease; }
  .pc-bg span.is-active { opacity: 1; }
  .pc-bg span:nth-child(1) { background-image: url("images/pc-bg/bg-1.webp"); }
  .pc-bg span:nth-child(2) { background-image: url("images/pc-bg/bg-2.webp"); }
  .pc-bg span:nth-child(3) { background-image: url("images/pc-bg/bg-3.webp"); }
  .pc-bg::after { content: ""; position: absolute; inset: 0; background: #ffffffc2; }
}

/* スマホでは画面いっぱいに */
@media (max-width: 430px) {
  .site-card { margin: 0 auto; border-radius: 0; box-shadow: none; }
}
@media (max-width: 350px) {
  :root { --page-gutter: 18px; --text-hero: 19px; --text-brand: 20px; }
  .hero-visual > * { max-width: 66%; }
}

/* 動きを減らす端末設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fixed-cta, .to-top, .js .to-top, .button, .text-link { transition: none; }
  .button:active, .button.primary:active, .button.consult-button:active { transform: none; }
  .hero-actions .button.is-shine::after { display: none; }
  .pc-bg span { transition: none; }
}

/* 最初の画面：オーナーの顔に見出しがかからないよう、写真を少し大きくして右へ寄せる */
.hero-visual { background-size: auto, 128% auto; background-position: 0 0, 0 8%; }
.hero-visual h1 { font-size: 23px; }
.hero-visual { min-height: 430px; }

/* 読みやすさ：見出しは言葉のまとまりで改行する（対応ブラウザのみ） */
/* お客様の文章は区切り（<wbr>）が入っていないので、文の中でも自然に折り返す。句読点が行頭に来ないよう line-break: strict はそのまま */
p, li, dd, dt, td, th, blockquote { word-break: normal; }
h1, h2, h3 { word-break: auto-phrase; }
.section-title > span { display: block; }

/* 最初の画面の動画（今のサイトの施術動画を軽くしたもの）。写真は読み込み前と、動きを減らす設定の人向け */
.hero-visual { overflow: hidden; isolation: isolate; }
.hero-visual > .hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 8%; }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fffffff7 0%, #ffffffe6 46%, #ffffff40 66%, #fff0 80%); }
@media (prefers-reduced-motion: reduce) { .hero-visual > .hero-video { display: none; } }

/* 最初の画面：動画を上半分にしっかり見せ、文字は下の白いもやの中へ（動画に文字を重ねない） */
.hero-visual { min-height: 0; justify-content: flex-end; padding-top: min(56vw + 120px, 360px); }
.hero-visual > * { max-width: none; }
.hero-visual > .hero-video { height: min(56vw + 200px, 440px); bottom: auto; object-position: 50% 15%; }
.hero-visual::before { background: linear-gradient(180deg, #fff0 0, #fff0 min(56vw + 90px, 330px), #fffffff2 min(56vw + 150px, 390px), #fff min(56vw + 200px, 440px)); }

/* グラデーションをなだらかにし、見出しの1行目が白い地に乗るように少し下げる */
.hero-visual { padding-top: min(56vw + 150px, 390px); }
.hero-visual::before { background: linear-gradient(180deg, #fff0 0, #fff0 min(56vw + 10px, 220px), #ffffff33 min(56vw + 60px, 270px), #ffffff99 min(56vw + 100px, 310px), #ffffffe0 min(56vw + 130px, 340px), #fff min(56vw + 155px, 365px)); }

/* 最後の行に1〜2文字だけ残る改行を防ぐ（対応ブラウザ） */
p, li, td, dd, blockquote { text-wrap: pretty; }
/* 短い箇条書きは、言葉のまとまりで区切って行の長さをそろえる */
li { word-break: auto-phrase; text-wrap: balance; }

/* 同じ色の欄が続く所は、上下の余白が重なって空きすぎるので、次の欄の上を詰める */
.hero { padding-bottom: var(--space-lg); }
.section { padding-block: 48px; }
.hero + .section:not(.soft),
.section:not(.soft) + .section:not(.soft),
.soft + .soft { padding-top: 8px; }

/* 短い文（箇条書き・表・注記・クチコミの名前）は、<wbr> を入れた言葉の区切りでだけ改行する（どのブラウザでも同じ） */
li:not(:has(p)), td, th small, .voice-person span { word-break: keep-all; }
.nowrap { white-space: nowrap; }

/* 動画を縦に大きく見せる（縦長動画の8割以上が見える高さ）。見出しは動画の下の白い地から */
.hero-visual { --vh: min(150vw, 600px); padding-top: calc(var(--vh) - 24px); }
.hero-visual > .hero-video { height: var(--vh); object-position: 50% 45%; }
.hero-visual::before { background: linear-gradient(180deg, #fff0 0, #fff0 calc(var(--vh) - 150px), #ffffff33 calc(var(--vh) - 110px), #ffffff99 calc(var(--vh) - 70px), #ffffffe0 calc(var(--vh) - 40px), #fff calc(var(--vh) - 16px)); }

/* 座布団なし：動画を最初の画面いっぱいに敷き、白い文字を影だけで読ませる */
.hero-visual { min-height: var(--vh); padding-top: var(--space-lg); padding-bottom: var(--space-md); justify-content: flex-end; }
.hero-visual > .hero-video { height: 100%; }
.hero-visual::before { content: none; }
.hero-visual h1, .hero-visual .hero-facts, .hero-visual .hero-facts strong { color: #fff; text-shadow: 0 1px 2px #0009, 0 2px 14px #0008; }
.hero-visual .hero-facts { margin-top: var(--space-sm); padding: 0; background: none; box-shadow: none; }
.hero-visual h1, .hero-visual .hero-facts, .hero-visual .hero-facts strong { text-shadow: 0 0 2px #000b, 0 1px 3px #000a, 0 2px 18px #000a; }
/* 見出しを大きくして右側の空きを減らす（最長の「豊見城の脱毛サロン」9文字が1行に収まる大きさ） */
.hero-visual h1 { font-size: clamp(26px, 8.4vw, 34px); line-height: 1.5; }

/* 見出しの右の空きに、英字を縦に大きく薄く置く（BIO-STEAMの縦の英字の雰囲気） */
.section[data-en] { position: relative; isolation: isolate; }
.section[data-en]::after { content: attr(data-en); position: absolute; z-index: -1; top: 28px; right: 6px; writing-mode: vertical-rl; font-family: var(--font-logo, "Cormorant Garamond", serif); font-size: 64px; line-height: 1; letter-spacing: .08em; color: var(--color-accent); opacity: .09; pointer-events: none; }
/* 最初の見出し：場所と対象は小さく1行、伝えたい言葉を大きく2行 */
.hero-visual h1 .hero-sub { margin-bottom: 6px; font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.hero-visual h1 { font-size: clamp(30px, 9.6vw, 38px); line-height: 1.45; }

/* 実績は3つのバッジで横に並べる（上に項目名、下に数字） */
.hero-visual .hero-facts { display: flex; gap: 8px; margin-top: var(--space-md); }
.hero-visual .hero-facts > div { display: flex; flex: 1; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px; border: 1px solid #ffffffb3; border-radius: 10px; background: #00000026; text-align: center; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.hero-visual .hero-facts strong { font-size: 20px; line-height: 1.2; white-space: nowrap; }
.hero-visual .hero-facts span { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.hero-visual .hero-facts > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 360px) { .hero-visual .hero-facts { gap: 6px; } .hero-visual .hero-facts span { font-size: 11px; letter-spacing: 0; } .hero-visual .hero-facts strong { font-size: 18px; } }

/* ヘッダー：最初は隠し（動画を上まで見せる）、スクロールしたらふわっと出す */
.site-header { position: fixed; top: 0; left: 50%; width: min(100%, var(--card-width)); opacity: 0; visibility: hidden; transform: translate(-50%, -12px); transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
.site-header.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
