@charset "utf-8";
/* =========================================================
   博多リゾートメンズエステ Orchid  共通スタイル
   - 色はすべて :root の変数で管理する
   - スマホ優先で書き、広い画面は min-width で上書きする
   ========================================================= */

/* ---------- 1. 色・書体(変数) ---------- */
:root {
  --bg: #fbf9f6;          /* 背景(生成り) */
  --surface: #ffffff;     /* カード・枠の中 */
  --ink: #2b2630;         /* 本文 */
  --muted: #6f6877;       /* 補足の文字 */
  --orchid: #8b4f9f;      /* 蘭の紫 */
  --gold: #9a7621;        /* 金:文字と罫線に使う */
  --gold-deco: #b8975a;   /* 金:ロゴに近い色。装飾(点・枠・帯)にだけ使う */
  --navy: #14283d;        /* 紺 */
  --frame: #14283d;       /* 料金表の太枠(ダークモードでは背景に溶けないよう明るめの紺) */
  --line: #e6dfd2;        /* 罫線 */
  --dot: #e6dfd2;         /* 背景の点柄 */
  --on-navy: #ffffff;     /* 紺の上の文字 */
  --on-navy-muted: #cfd8e2;
  --sand: #f1e6cf;

  --font-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --wrap: 1080px;
  --gutter: 16px;

  /* 固定ヘッダーの背景:不透明度はここ1か所で調整する */
  --header-bg-alpha: .72;     /* ヘッダーの帯(うしろが透ける) */
  --menu-bg-alpha: .96;       /* スマホのメニュー本体(文字を読みやすく濃いめに) */
  --header-rgb: 251, 249, 246; /* 生成り(--bg と同じ色) */
  --header-bg: rgba(var(--header-rgb), var(--header-bg-alpha));

  /* 固定ヘッダーの大きさ(一番上のとき / 下へスクロールしたとき)。PC の値は 8節で上書きする */
  --logo-ratio: 3.0284;          /* ロゴ画像の 横 ÷ 縦(1172 ÷ 387)。幅は 高さ × この値 */
  --logo-h: 72px;                /* スマホ:一番上のときのロゴの高さ */
  --logo-h-scrolled: 58px;       /* スマホ:縮んだとき(約80%) */
  --header-pad: 12px;            /* ロゴの段の上下の余白 */
  --header-pad-scrolled: 12px;   /* スマホは余白を詰めず、ロゴだけ縮める */
  --header-tel-size: 1.4rem;          /* PC:電話番号の文字の大きさ */
  --header-tel-size-scrolled: 1.25rem;

  /* ロゴの下のカタカナ「オーキッド」(文字。ロゴ画像は加工しない) */
  --kana-size: 1.15rem;          /* PC のヘッダー */
  --kana-size-sm: 1rem;          /* スマホのヘッダー */
  --kana-size-foot: 1.05rem;     /* フッター */
  --kana-spacing: .32em;         /* 文字間隔 */
  --kana-gap: 4px;               /* ロゴの流れる線との間 */
  --kana-color: #b8975a;         /* ロゴの金(ダークモードでは少し明るく) */
  --menu-bg: rgba(var(--header-rgb), var(--menu-bg-alpha));

  color-scheme: light;
}
/* 背景のぼかしが使えないブラウザでは、文字が読めるように濃くする */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --header-bg-alpha: .92; }
}

/* ダークモード:OS の設定に合わせる(data-theme="light" で明るい表示に固定できる) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15121a;
    --surface: #1f1a26;
    --ink: #efe9f2;
    --muted: #a79fb0;
    --orchid: #c58ad8;
    --gold: #d4b46a;
    --gold-deco: #b8975a;
    --navy: #0c1826;
    --frame: #2b4663;
    --kana-color: #cdb07a;
    --line: #3a3344;
    --dot: #2a2431;
    --sand: #3a3426;
    --header-rgb: 21, 18, 26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15121a;
  --surface: #1f1a26;
  --ink: #efe9f2;
  --muted: #a79fb0;
  --orchid: #c58ad8;
  --gold: #d4b46a;
  --gold-deco: #b8975a;
  --navy: #0c1826;
  --frame: #2b4663;
  --kana-color: #cdb07a;
  --line: #3a3344;
  --dot: #2a2431;
  --sand: #3a3426;
  --header-rgb: 21, 18, 26;
  color-scheme: dark;
}

/* ---------- 2. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* --header-h-compact は js/main.js が縮んだヘッダーの高さを測って入れる */
  scroll-padding-top: calc(var(--header-h-compact, 0px) + 12px);
  /* ヘッダーが縮んだときに、ブラウザがスクロール位置を自動補正して跳ねないようにする */
  overflow-anchor: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 20px 20px, var(--dot) 1.2px, transparent 1.6px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
a:hover { color: var(--orchid); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.en { font-family: var(--font-en); letter-spacing: .08em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 本文へスキップ(キーボード操作のときだけ見える) */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 8px 16px; text-decoration: none;
}
.skip:focus { top: 8px; color: var(--on-navy); }

/* ---------- 3. 見出し(英字 + 日本語の小見出し) ---------- */
.ttl {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}
.ttl .en {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold);
}
.ttl small {
  display: block;
  margin-top: 4px;
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--muted);
}
.ttl::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--gold);
}

/* 下層ページの先頭 */
.page-head { padding: 48px 0 8px; }
.page-head .ttl .en { font-size: 2.3rem; }

/* セクションの間隔 */
.section { padding: 48px 0 8px; }

/* ---------- 4. 小さな部品 ---------- */
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-ja);
  font-size: .7rem;
  letter-spacing: .1em;
  line-height: 1.7;
  vertical-align: middle;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.note { font-size: .82rem; color: var(--muted); }
.todo-note { color: var(--muted); font-size: .85rem; }

/* ---------- 5. ヘッダー(画面の上に固定。下へスクロールすると薄くなる) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 3px double var(--gold);
  transition: box-shadow .25s ease;
}
/* 下へスクロールしたとき(js/main.js が is-scrolled を付ける):細い金の線と、ごく薄い影 */
.site-header.is-scrolled {
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(20, 40, 61, .08);
}
.head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--header-pad) 60px;
  transition: padding .25s ease;
}
/* ロゴは画像を加工せず、幅だけを変える(高さは縦横比のまま) */
.brand {
  display: block;
  width: calc(var(--logo-h) * var(--logo-ratio));
  text-decoration: none;     /* カタカナにリンクの下線を付けない */
  max-width: 100%;
  transition: width .25s ease;
}
.brand img { display: block; width: 100%; }
.head-info { display: none; }

/* ロゴの下のカタカナ:縮んだとき(is-scrolled)は薄くなりながら高さも0にして、帯を厚くしない */
.brand-kana {
  display: block;
  max-height: 2em;
  margin-top: var(--kana-gap);
  /* 文字間隔は最後の文字の後ろにも付くので、同じ分を左にも足して中央に見せる */
  padding-left: var(--kana-spacing);
  overflow: hidden;
  color: var(--kana-color);
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: var(--kana-size-sm);
  letter-spacing: var(--kana-spacing);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease;
}
.brand:hover .brand-kana { color: var(--kana-color); }
.is-scrolled .brand-kana { max-height: 0; margin-top: 0; opacity: 0; }
/* 下へスクロールしたとき:ロゴと余白を、変数の「scrolled」の値にする */
.is-scrolled .head { padding-top: var(--header-pad-scrolled); padding-bottom: var(--header-pad-scrolled); }
.is-scrolled .brand { width: calc(var(--logo-h-scrolled) * var(--logo-ratio)); }

/* 動きを減らす設定のとき、高さを測るとき(.no-anim)は、アニメーションなしで切り替える */
@media (prefers-reduced-motion: reduce) {
  .site-header, .head, .brand, .head-tel a, .brand-kana { transition: none; }
}
.site-header.no-anim, .site-header.no-anim .head, .site-header.no-anim .brand,
.site-header.no-anim .head-tel a, .site-header.no-anim .brand-kana { transition: none; }

/* スマホのメニューを開いているとき:うしろのページを動かさず、半透明の幕をかける */
html.is-menu-open { overflow: hidden; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(20, 40, 61, .4);
  touch-action: none;
}

/* ハンバーガーボタン(スマホ) */
.burger {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .burger span { transition: none; }
}
/* JS が動かない環境ではボタンを出さず、メニューを常に表示する */
html:not(.js) .burger { display: none; }

/* メニュー(スマホ:ボタンで開閉。電話番号が最上部) */
.gnav ul { margin: 0; padding: 0; list-style: none; }
.gnav a { display: block; text-decoration: none; }
.gnav small { font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.js .gnav { display: none; }
.js .site-header.is-open .gnav { display: block; }
.gnav {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.js .gnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* 画面の高さ − ヘッダーの高さ(--header-h は js/main.js が入れる) */
  max-height: calc(100vh - var(--header-h, 72px));
  max-height: calc(100dvh - var(--header-h, 72px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--menu-bg);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 10px 24px rgba(20, 40, 61, .18);
}
.gnav-tel {
  padding: 14px var(--gutter);
  text-align: center;
  background: var(--navy);
  color: var(--on-navy);
}
.gnav-tel:hover { color: var(--on-navy); }
.gnav-tel .en { display: block; font-size: 1.35rem; }
.gnav-tel small { color: var(--on-navy-muted); }
.gnav li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px var(--gutter);
  border-top: 1px solid var(--line);
}
.gnav li:first-child a { border-top: 0; }
.gnav li .en { font-size: 1.1rem; }
.gnav a[aria-current="page"] { color: var(--orchid); }
.gnav a[aria-current="page"] small { color: var(--orchid); }

/* ---------- 6. お知らせの帯(横に流れる文字) ---------- */
.ticker {
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  font-size: .8rem;
  line-height: 1.6;
}
.ticker p { margin: 0; padding: 8px var(--gutter); text-align: center; }
/* JS が文章を2つ並べたときだけ流す(同じ文章が続けて流れ、途切れない) */
.ticker.is-flowing { white-space: nowrap; }
.ticker.is-flowing .ticker-track {
  display: inline-flex;
  animation: ticker var(--ticker-duration, 28s) linear infinite;
}
.ticker.is-flowing p { flex: none; padding: 8px 4em 8px var(--gutter); text-align: left; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-flowing { white-space: normal; }
  .ticker.is-flowing .ticker-track { display: block; animation: none; }
  .ticker.is-flowing p { padding: 8px var(--gutter); text-align: center; }
  .ticker.is-flowing p[aria-hidden] { display: none; }
}

/* ---------- 7. フッター ---------- */
.site-footer {
  margin-top: 72px;
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  border-top: 3px double var(--gold-deco);
  color: var(--on-navy-muted);
  font-size: .82rem;
  text-align: center;
}
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-deco); }
.foot-brand { display: inline-block; width: min(220px, 70%); margin-bottom: 16px; }
.foot-brand img { display: block; width: 100%; }
.foot-brand .brand-kana { font-size: var(--kana-size-foot); transition: none; }
.foot-info .en { font-size: 1.15rem; }
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.foot-nav a { display: inline-block; padding: 4px 0; }
.foot-nav a[aria-current="page"] { color: var(--gold-deco); }
.copy { margin: 0; }

/* ---------- 8. 広い画面(PC) ---------- */
@media (min-width: 900px) {
  :root {
    --logo-h: 86px;              /* PC:一番上のときのロゴの高さ */
    --logo-h-scrolled: 70px;     /* PC:縮んだとき(約80%) */
    --header-pad: 18px;
    --header-pad-scrolled: 9px;  /* PC:縮んだときは上下の余白を詰める(帯の高さが約85%になる値) */
  }
  .head {
    justify-content: space-between;
    padding: var(--header-pad) var(--gutter);
  }
  .brand-kana { font-size: var(--kana-size); }
  .head-info {
    display: block;
    text-align: right;
    font-size: .8rem;
    line-height: 1.7;
    color: var(--muted);
  }
  .head-info p { margin: 0; }
  .head-tel a { font-size: var(--header-tel-size); color: var(--ink); text-decoration: none; transition: font-size .25s ease; }
  .burger { display: none; }

  .js .gnav, .gnav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .nav-backdrop { display: none; }
  .gnav .gnav-tel { display: none; }
  .gnav ul {
    display: flex;
    justify-content: center;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter) 8px;
  }
  .gnav li a {
    display: block;
    padding: 4px 14px 6px;
    border-top: 0;
    border-bottom: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
  }
  .gnav li .en { display: block; font-size: 1rem; }
  .gnav small { display: block; font-size: .62rem; }
  .gnav a[aria-current="page"] { border-bottom-color: var(--orchid); }

  /* 下へスクロールしたとき:電話番号・バッジ・営業時間は同じ配置のまま、電話番号の文字だけ少し小さく */
  .is-scrolled .head-tel a { font-size: var(--header-tel-size-scrolled); }
}

/* =========================================================
   9. JSON から描画する部品(js/render.js)
   ========================================================= */
.render-empty, .render-error {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  font-size: .9rem;
}
.render-error { color: var(--orchid); }
[aria-busy="true"] { min-height: 120px; }

/* 日付の札(本日の出勤) */
.datepill {
  display: table;
  position: relative;
  margin: 0 auto 28px;
  padding: 6px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7d6c47, var(--gold-deco));
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .1em;
}
.datepill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--gold-deco);
  border-bottom: 0;
}

/* セラピストのカード:スマホ2列 / PC4列 */
.th-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.th { text-align: center; font-size: .85rem; line-height: 1.6; }
.th p { margin: 0; }
.th-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-deco);
  outline-offset: 3px;
  margin: 4px 4px 14px;
  background: var(--surface);
}
.th-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.th-photo.is-placeholder {
  display: grid;
  place-content: center;
  gap: 2px;
  background: linear-gradient(170deg, #8fd6ea 0%, #cfeee9 45%, var(--sand) 100%);
  color: #3f5a6b;
}
.th-photo.is-placeholder .en { font-size: 1.1rem; letter-spacing: .2em; }
.th-photo.is-placeholder small { font-size: .7rem; }
.th-new {
  position: absolute;
  top: 8px;
  left: 0;
  padding: 0 10px;
  background: #8b4f9f; /* ダークモードでも白い文字が読める紫に固定 */
  color: #fff;
  font-size: .75rem;
  letter-spacing: .15em;
}
.th-name { font-weight: 600; }
.th-catch { display: block; font-weight: 400; font-size: .78rem; color: var(--orchid); }
.th-size, .th-time { color: var(--muted); }
.th-time { color: var(--ink); }

/* 出勤:日付のタブ(7日分) */
.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 28px;
}
.day-tab {
  padding: 8px 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
  cursor: pointer;
}
.day-tab span { display: block; }
.day-date { font-size: 1rem; }
.day-week { font-size: .7rem; color: var(--muted); }
.day-tab.is-sun .day-week { color: #b5485d; }
.day-tab.is-sat .day-week { color: #3a6ea5; }
.day-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}
.day-tab[aria-selected="true"] .day-week { color: var(--on-navy-muted); }
.day-panel:focus-visible { outline-offset: 8px; }

/* 新着情報 */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item p { margin: 0; }
.news-date { font-size: .85rem; color: var(--muted); }
.news-title { font-weight: 600; }
.news-title a { color: var(--orchid); }
.news-text { font-size: .9rem; }

/* ピックアップ */
.pickup-card { display: block; text-align: center; text-decoration: none; }
.pickup-card .th-photo { border-width: 3px; }
.pickup-card .th-name { margin: 0; }

/* 料金(紺の太い枠、上に三角の切り込み) */
.sys-box {
  position: relative;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 34px 16px 26px;
  border: 14px solid var(--frame);
  background: var(--surface);
  text-align: center;
}
.sys-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border: 18px solid transparent;
  border-top-color: var(--frame);
  border-bottom: 0;
}
.sys-ttl {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
}
.sys-list { margin: 0; }
.sys-row { display: flex; justify-content: center; gap: 1.2em; font-size: 1.3rem; line-height: 2.1; }
.sys-row dt { min-width: 4.8em; text-align: right; }
.sys-row dd { margin: 0; min-width: 7em; text-align: left; }
.sys-list.is-options .sys-row { font-size: 1rem; }
.sys-list.is-options dt { min-width: 0; }
.sys-notes { max-width: 760px; margin: 0 auto; padding-left: 1.2em; font-size: .85rem; color: var(--muted); }
/* メニュー表・オプションの画像(タップ・クリックで拡大) */
.zoom-link {
  position: relative;
  display: block;
  /* スマホ:画面の幅いっぱい(.wrap の左右の余白の外まで) */
  margin: 0 calc(-1 * var(--gutter));
  text-decoration: none;
  cursor: zoom-in;
}
.zoom-link img { display: block; width: 100%; height: auto; }
/* 画像の中の文字に重ならないよう、案内は画像の下に出す */
.zoom-link::after {
  content: "画像を押すと拡大します";
  display: block;
  padding: 6px var(--gutter) 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: right;
}
.zoom-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.menu-sheet [data-render="sys-notes"] { margin-top: 18px; }

/* 拡大表示(js/main.js が作る <dialog>) */
html.is-zoom-open { overflow: hidden; }
.zoom-dlg {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.zoom-dlg::backdrop { background: rgba(10, 14, 22, .9); }
.zoom-body {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(64px + env(safe-area-inset-top)) 0 24px;
}
.zoom-body img { display: block; width: min(100%, 900px); height: auto; margin: 0 auto; cursor: zoom-in; }
.zoom-dlg.is-large .zoom-body img { width: 1600px; max-width: none; cursor: zoom-out; }
.zoom-bar {
  position: absolute;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  pointer-events: none;
}
.zoom-bar button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(20, 40, 61, .85);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  pointer-events: auto;
}
.zoom-bar button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* SNS */
.sns-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sns-card {
  display: block;
  height: 100%;
  padding: 20px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-deco);
  text-align: center;
  text-decoration: none;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
}
.sns-name { display: block; margin-bottom: 4px; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.sns-card.is-pending { opacity: .85; }
a.sns-card:hover { border-color: var(--gold); }

@media (min-width: 768px) {
  .th-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
  .sns-list { gap: 14px; }
  .sns-card { font-size: .8rem; }
  .sys-box { border-width: 20px; padding: 34px 20px 30px; }
  .sys-box::before { border-width: 24px; border-bottom: 0; }
  .sys-row { font-size: 1.45rem; }
  /* PC・タブレット:画像は中央に、幅 600px まで */
  .zoom-link { max-width: 600px; margin: 0 auto; }
}

/* =========================================================
   10. トップページ
   ========================================================= */
.more { margin: 14px 0 0; text-align: right; font-size: .85rem; }
.more a { color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.more a::after { content: " →"; }
.more a:hover { color: var(--orchid); }

/* 1. スライドバナー */
.hero { position: relative; }
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  min-height: clamp(240px, 62vw, 520px);
  scroll-snap-align: start;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-box {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px var(--gutter);
  color: #fff;
  text-decoration: none;
}
a.hero-box:hover { color: #fff; }
a.hero-box:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
/* 1枚目:写真(img.hero-bg)を cover で敷き、紺〜紫の薄いグラデーションを重ねる。
   写真が読み込まれるまでは、空と海の色を見せる */
.hero-s1 { background: #2d7fb8; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-s1::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20, 40, 61, .38), rgba(58, 36, 92, .32));
  pointer-events: none;
}
.hero-s1 .hero-box { position: relative; z-index: 1; gap: 18px; }
/* キャッチコピーの見た目は、ここの変数で1か所で調整する */
.hero-s1 {
  --hero-copy-size: clamp(1.25rem, 1rem + 1.9vw, 2.8rem);
  --hero-copy-weight: 500;
  --hero-copy-spacing: .2em;
  --hero-copy-leading: 1.45;
  --hero-copy-color: #f4ecdc;               /* 温かいシャンパン色 */
  --hero-copy-shadow: 0 2px 10px rgba(10, 20, 40, .7);
  --hero-copy-band: rgba(16, 26, 58, .4);   /* 文字の背後のぼかしの帯(中央の濃さ) */
  --hero-logo-max: min(440px, 60vw);
  --hero-kana-size: clamp(.95rem, .8rem + .9vw, 1.45rem);
  --hero-kana-color: #dcc08a;               /* ロゴの金を、写真の上で少し明るく */
  --hero-zoom: 1.08;                        /* ゆっくり寄るときの最大の倍率 */
  --hero-zoom-time: 20s;
}
/* ロゴの下の「オーキッド」(ヘッダーと同じ添え方) */
.hero-kana {
  display: block;
  margin-top: .35em;
  padding-left: .32em;   /* 最後の文字の後ろの文字間隔の分、左にも足して中央に見せる */
  color: var(--hero-kana-color);
  font-size: var(--hero-kana-size);
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(10, 20, 40, .8), 0 1px 6px rgba(10, 20, 40, .6);
  white-space: nowrap;
}
/* 写真が、ゆっくり少しだけ寄る(動きを減らす設定では止める) */
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(var(--hero-zoom)); } }
.hero-bg { animation: hero-zoom var(--hero-zoom-time) ease-in-out infinite alternate; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-s2 { background: linear-gradient(120deg, #1d6fa8, #4fb6dc); }
/* 文字の入った画像のスライド:画像は切らずに全体を見せ(contain)、
   左右・上下の余白には、同じ画像をぼかして敷く */
.hero-open { background: #f3e3d6; }
.hero-open::before {
  content: ""; position: absolute; inset: -24px;
  background: url("../assets/img/open-1000-39eb027c.webp") center / cover no-repeat;
  filter: blur(18px) saturate(.9);
  opacity: .85;
}
.hero-pic { position: relative; display: block; line-height: 0; }
.hero-pic img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero-pic:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
.hero-s3 { background: linear-gradient(120deg, #6d3a84, #c79a58); }
.hero-logo { margin: 0; width: min(440px, 72vw); line-height: 0; }
.hero-logo img { width: 100%; filter: drop-shadow(0 2px 6px rgba(10, 20, 40, .55)); }
/* 写真の上では、細い文字が雲・葉に埋もれないよう、ふちに近い影を足す */
.hero-s1 .hero-logo img { filter: drop-shadow(0 0 1.5px rgba(10, 20, 40, .9)) drop-shadow(0 1px 6px rgba(10, 20, 40, .6)); }
.hero-ttl { font-size: clamp(1.4rem, 5.6vw, 2.6rem); font-weight: 600; line-height: 1.4; text-shadow: 0 2px 12px rgba(10, 40, 70, .45); }
.hero-copy { font-size: clamp(.9rem, 3vw, 1.3rem); font-weight: 600; letter-spacing: .16em; text-shadow: 0 1px 8px rgba(10, 50, 80, .6); }
/* 1枚目は写真の上に載るので、白に近い色・細い明朝・軽い影 */
.hero-s1 .hero-logo { width: var(--hero-logo-max); }
.hero-s1 .hero-copy {
  max-width: 100%;
  padding: .3em 1.4em .3em calc(1.4em + var(--hero-copy-spacing));  /* 文字間隔の分、左にも足して中央に見せる */
  color: var(--hero-copy-color);
  font-size: var(--hero-copy-size);
  font-weight: var(--hero-copy-weight);
  letter-spacing: var(--hero-copy-spacing);
  line-height: var(--hero-copy-leading);
  text-shadow: var(--hero-copy-shadow);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  /* 左右・上下に消える、横長の楕円のぼかし */
  background: radial-gradient(closest-side, var(--hero-copy-band), transparent);
}
.hero-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 0 0; }
.hero-dots { display: flex; gap: 4px; }
.hero-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--gold-deco);
}
.hero-dots button[aria-current="true"]::before { background: var(--gold-deco); }
.hero-pause {
  width: 28px; height: 28px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted);
  display: grid; place-items: center;
}
/* 一時停止(‖)/ 再生(▶)の記号 */
.hero-pause span { width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-pause.is-paused span {
  width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor; margin-left: 3px;
}

/* 3. ボックスバナー:スマホは THERAPIST を上に横長、残りを 2×2 */
.tiles {
  /* 写真のどこを見せるか(0% = 左・上、100% = 右・下)。js/main.js が読む */
  --tiles-focus-x: 50%;
  --tiles-focus-y: 100%;   /* いちばん下:プールと水平線を優先 */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  overflow: hidden;
  text-decoration: none;
  transition: filter .2s;
}
.tile:hover { filter: brightness(1.06); }
/* 背景の写真:5つのボックスで1枚の写真をつなげて見せる。
   js/main.js が、ボックス全体に cover で広げたときの大きさと、各ボックスの位置を
   --tile-bg-size / --tile-bg-pos に入れる。写真が読み込まれるまでは、下のグラデーションが見える */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: var(--tile-bg-size, cover);
  background-position: var(--tile-bg-pos, 50% 50%);
  opacity: 0;
  transition: opacity .5s ease;
}
.tiles.is-photo .tile::before { background-image: url(../assets/img/tiles-pool.webp); opacity: 1; }
/* JS が動かないとき:各ボックスに同じ写真を cover・中央で表示する */
html:not(.js) .tile::before { background-image: url(../assets/img/tiles-pool.webp); opacity: 1; }
.tile-lab {
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  background: rgba(255, 255, 255, .85);
  border: 3px double #fff;
  color: #1f3347;
  text-align: center;
  line-height: 1.35;
}
.tile-lab .en { display: block; font-size: 1.1rem; }
.tile-lab small { display: block; font-size: .65rem; letter-spacing: .12em; }
.tile:hover .tile-lab { color: #1f3347; }
.tile-therapist { order: -1; grid-column: span 2; min-height: 160px; }
.tile-event { background: linear-gradient(160deg, #2f9fe0, #7fd0ee); }
.tile-recruit { background: linear-gradient(180deg, #58c2e0, #e8f5ec 78%); }
.tile-therapist { background: linear-gradient(180deg, #86d3ea, #4fa77f 70%, #f1e6cf); }
.tile-schedule { background: linear-gradient(200deg, #6fc0e0, #3c8f6a); }
.tile-contact { background: linear-gradient(180deg, #e9f4ee, #f1e6cf); }

/* 4・5. 新着情報とピックアップ */
.top-cols { display: grid; gap: 48px; }
.top-cols .pickup-card { max-width: 280px; margin: 0 auto; }

/* 6. インフォメーション */
.info-banners { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.info-banner {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 130px;
  padding: 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.info-banner:hover { color: #fff; filter: brightness(1.06); }
.info-banner strong { font-size: 1.2rem; font-weight: 600; }
.info-banner span { font-size: .8rem; }
.info-b1 { background: linear-gradient(120deg, #1d6fa8, #4fb6dc); }
.info-b2 { background: linear-gradient(120deg, #8b4f9f, #c27a9f); }

@media (prefers-reduced-motion: reduce) {
  .tile, .tile::before { transition: none; }
}

@media (min-width: 768px) {
  /* PC:THERAPIST を中央に縦長、左右に小さなタイル */
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 170px);
    gap: 14px;
  }
  .tile { min-height: 0; }
  .tile-event { grid-area: 1 / 1; }
  .tile-recruit { grid-area: 2 / 1; }
  .tile-therapist { order: 0; grid-column: 2; grid-row: 1 / span 2; min-height: 0; }
  .tile-schedule { grid-area: 1 / 3; }
  .tile-contact { grid-area: 2 / 3; }
  .tile-lab { padding: 8px 22px; }
  .tile-lab .en { font-size: 1.2rem; }

  .top-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .info-banner { min-height: 150px; }
}

/* =========================================================
   11. 下層ページ(SYSTEM / THERAPIST / SCHEDULE / NEWS など)
   ========================================================= */
.page-lead { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: .92rem; }
.page-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
.page-note a { color: var(--orchid); }

/* ご利用の流れ:番号つきの縦の列 */
.flow { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; counter-reset: flow; }
.flow li {
  position: relative;
  counter-increment: flow;
  padding: 14px 16px 14px 64px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flow li + li { margin-top: 18px; }
.flow li + li::after {
  /* 前の項目から続く小さな矢印 */
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--gold-deco);
  border-bottom: 0;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-en);
  font-size: 1.15rem;
  line-height: 34px;
  text-align: center;
}
.flow strong { display: block; color: var(--gold); }
.flow span { display: block; font-size: .88rem; }

/* ご利用にあたって */
.notice-list { max-width: 760px; margin: 0 auto; padding-left: 2.2em; font-size: .9rem; }
.notice-list li + li { margin-top: 6px; }

/* ご予約の案内 */
.page-cta { text-align: center; }
.page-cta p { margin: 0 0 6px; }
.cta-tel a {
  display: inline-block;
  margin: 10px 0 6px;
  padding: 10px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.cta-tel a:hover, .cta-tel a:focus-visible { background: var(--gold); color: var(--surface); }
.cta-sub { font-size: .8rem; color: var(--muted); }

/* 未記入の目印(公開前に必ず埋める) */
.todo { color: var(--orchid); font-size: .85em; }

/* 項目と中身の表(求人・アクセス・特商法など) */
.info-table { max-width: 760px; margin: 0 auto 20px; }
.info-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { font-weight: 600; color: var(--gold); font-size: .9rem; }
.info-row dd { margin: 4px 0 0; font-size: .92rem; }
.info-row dd a { color: var(--orchid); }
/* 求人:応募後の流れ(番号の代わりに、下向きの矢印でつなぐ) */
.apply-flow { margin: 0; padding: 0; list-style: none; }
.apply-flow li { position: relative; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }
.apply-flow li + li { margin-top: 26px; }
.apply-flow li + li::before {
  content: "↓"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
  color: var(--gold); font-size: .9rem; line-height: 22px;
}

/* イベント */
.event-card { max-width: 760px; margin: 0 auto; }
.event-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 14px;
  background: var(--orchid);
  color: #fff;
  letter-spacing: .15em;
}
.event-card .info-table { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
/* イベントの画像:カードの上に置き、カードとの間をあける */
.event-open .zoom-link { margin-bottom: 20px; }
@media (min-width: 768px) {
  .zoom-link.is-wide { max-width: 760px; }   /* 横長の画像は、カードと同じ幅まで */
}
.event-ttl { margin: 0 0 8px; font-size: 1.2rem; }

/* アクセス */
.access-card { max-width: 760px; margin: 0 auto 20px; text-align: center; }
.access-card p { margin: 0; }
.access-card .access-area { margin-bottom: 10px; font-size: 1.2rem; font-weight: 600; }
/* 営業エリアの地図(Googleマップの埋め込み) */
.access-map { max-width: 760px; margin: 0 auto 20px; }
.access-map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; height: auto;
  border: 1px solid var(--line, rgba(0, 0, 0, .12)); background: var(--surface);
}
.access-map figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.7; }
@media (min-width: 768px) { .access-map iframe { aspect-ratio: 16 / 9; } }
.access-area .en { display: block; color: var(--gold); font-size: 1.6rem; letter-spacing: .2em; font-weight: 500; }

/* お問い合わせ */
.contact-list { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.contact-item { text-align: center; }
.contact-item p { margin: 0 0 4px; font-size: .9rem; }
.contact-ttl { margin: 0 0 12px; font-weight: 400; }
.contact-ttl .en { display: block; color: var(--gold); font-size: 1.6rem; letter-spacing: .15em; }
.contact-ttl small { font-size: .75rem; color: var(--muted); }
.contact-item .contact-main { font-size: 1.05rem; }

@media (min-width: 768px) {
  .info-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; }
  .info-row dd { margin: 0; }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
