@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;        /* 紺 */
  --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;

  color-scheme: light;
}

/* ダークモード: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;
    --line: #3a3344;
    --dot: #2a2431;
    --sand: #3a3426;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15121a;
  --surface: #1f1a26;
  --ink: #efe9f2;
  --muted: #a79fb0;
  --orchid: #c58ad8;
  --gold: #d4b46a;
  --gold-deco: #b8975a;
  --navy: #0c1826;
  --line: #3a3344;
  --dot: #2a2431;
  --sand: #3a3426;
  color-scheme: dark;
}

/* ---------- 2. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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: relative;
  z-index: 20;
  background: var(--surface);
  border-bottom: 3px double var(--gold);
}
.head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 60px;
}
.brand { display: block; width: min(220px, 100%); }
.brand img { display: block; width: 100%; }
.head-info { display: 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);
}
.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-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) {
  .head {
    justify-content: space-between;
    padding: 18px var(--gutter);
  }
  .brand { width: 260px; }
  .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: 1.4rem; color: var(--ink); text-decoration: none; }
  .burger { display: none; }

  .js .gnav, .gnav { display: block; border-top: 0; background: 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); }
}

/* =========================================================
   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: var(--orchid);
  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(--navy);
  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(--navy);
  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); }

/* 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; }
}
