/* =========================================================
   KYABEL — SITE 27 / Host Black Label
   センターメイン型・個店・暗（黒×白）／アクセント: エレクトリックブルー（少量）
   フォント: Syne（display）＋ Noto Sans JP
   ========================================================= */

/* ---- デザイントークン ---- */
:root {
  --black: #0d0d0f;
  --panel: #131317;
  --panel-2: #17171c;
  --white: #f4f4f2;
  --graphite: #3a3a40;
  --graphite-2: #6d6d76;   /* 罫線・補助面 */
  --muted: #b7b7bd;         /* 暗背景上の補助テキスト（4.5:1確保） */
  --accent: #2f6bff;        /* エレクトリックブルー（少量） */
  --accent-soft: rgba(47, 107, 255, 0.14);

  --main-width: 700px;
  --rail-width: 288px;
  --gutter: 40px;

  --ff-display: "Syne", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sae-b: env(safe-area-inset-bottom, 0px);
  --cta-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.is-locked { overflow: hidden; }

/* ---- スキップリンク ---- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black);
  padding: 10px 16px; font-weight: 700; border-radius: 2px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---- プレースホルダー画像 ---- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--black));
  aspect-ratio: 3 / 4;
}
.ph[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.ph[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="4x5"] { aspect-ratio: 4 / 5; }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.6s var(--ease), transform 6s var(--ease);
}
.ph__label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--ff-display); font-size: 13px; letter-spacing: 0.12em;
  color: var(--muted);
}
.ph--fallback img { display: none; }
/* 選択・強調時のみカラー（白黒→カラー切替） */
.is-colored .ph img,
.ph--live img { filter: none; }

/* =========================================================
   モバイルヘッダー（< 1280px で表示）
   ========================================================= */
.mhead {
  display: none;
  position: sticky; top: 0; z-index: 90;
  align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--graphite);
}
.mhead__brand { font-family: var(--ff-display); font-weight: 800; font-size: 18px; letter-spacing: 0.16em; }
.mhead__brand small { display: block; font-size: 11px; letter-spacing: 0.3em; color: var(--muted); font-weight: 600; }
.mhead__toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--graphite); border-radius: 2px;
}
.mhead__toggle span, .mhead__toggle span::before, .mhead__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--white); position: relative;
}
.mhead__toggle span::before { position: absolute; top: -6px; }
.mhead__toggle span::after { position: absolute; top: 6px; }

/* =========================================================
   センターメイン型シェル
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns:
    minmax(0, var(--rail-width))
    minmax(0, var(--main-width))
    minmax(0, var(--rail-width));
  justify-content: center;
  column-gap: var(--gutter);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100svh;
}

/* ---- レール共通 ---- */
.rail {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  padding: 40px 0;
  overflow: hidden;
}
.rail__inner { display: flex; flex-direction: column; gap: 26px; height: 100%; }

/* ---- 左レール ---- */
.rail--left .brand {
  font-family: var(--ff-display); font-weight: 800;
  font-size: 26px; letter-spacing: 0.14em; line-height: 1.1;
}
.rail--left .brand small {
  display: block; margin-top: 6px;
  font-size: 12px; letter-spacing: 0.34em; color: var(--accent); font-weight: 700;
}
.rail--left .brandcopy {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 19px; line-height: 1.6; color: var(--white);
  border-left: 2px solid var(--accent); padding-left: 16px;
}
.vnav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.vnav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; font-size: 16px; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(109, 109, 118, 0.28);
  transition: color 0.25s, padding 0.25s var(--ease);
}
.vnav a .en { font-family: var(--ff-display); font-weight: 700; letter-spacing: 0.1em; }
.vnav a .ja { font-size: 14px; color: var(--muted); }
.vnav a:hover, .vnav a:focus-visible { color: var(--accent); padding-left: 8px; }
.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.sns { display: flex; gap: 10px; }
.sns a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--graphite); border-radius: 2px;
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  transition: border-color 0.25s, color 0.25s;
}
.sns a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 右レール ---- */
/* §3.2: レール内の独立スクロールは禁止。100svh に収まる情報量へ整理し、
   収まらない分（FAQ本体）はドロワーへ逃がす。overflow-y は設定しない。 */
.rail--right .rail__inner { gap: 18px; }
.railcard {
  border: 1px solid var(--graphite);
  background: var(--panel);
  padding: 20px 18px;
}
.railcard__k {
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent); margin-bottom: 10px;
}
.railcard__k .ja { display: block; font-family: var(--ff-body); font-size: 14px; letter-spacing: 0.08em; color: var(--muted); margin-top: 2px; }
.priceline { display: flex; align-items: baseline; gap: 8px; }
.priceline b { font-family: var(--ff-display); font-size: 30px; font-weight: 800; letter-spacing: 0.01em; }
.priceline .u { font-size: 14px; color: var(--muted); }
.railcard p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.railcard dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.railcard dt { color: var(--muted); }
.railcard dd { margin: 0; text-align: right; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; width: 100%;
  font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--white); border-radius: 2px;
  background: var(--white); color: var(--black);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--graphite-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* =========================================================
   中央メイン
   ========================================================= */
.main { padding: 0 0 120px; min-width: 0; }
.section { padding: 68px 0; border-top: 1px solid rgba(109, 109, 118, 0.25); }
.section:first-child { border-top: 0; }
.sec-head { margin-bottom: 30px; }
.sec-head .num {
  font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.28em;
  color: var(--accent); font-weight: 700;
}
.sec-head h2 {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(26px, 4vw, 36px); letter-spacing: 0.02em; line-height: 1.15;
  margin-top: 8px;
}
.sec-head .ja { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0.16em; margin-top: 6px; }
.lead { font-size: 16px; color: var(--muted); line-height: 1.85; max-width: 56ch; }

/* ---- ヒーロー ---- */
.hero { padding: 44px 0 62px; position: relative; }
.hero__logo {
  font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.34em; color: var(--muted); margin-bottom: 26px;
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.hero__figure { position: relative; }
.hero__figure .ph { aspect-ratio: 3 / 4; }
.hero__figure .ph img { filter: grayscale(1) contrast(1.08) brightness(0.8); object-position: 72% center; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,0.05) 30%, rgba(13,13,15,0.72) 78%, rgba(13,13,15,0.96));
  pointer-events: none;
}
.hero__copy {
  position: absolute; left: 26px; right: 26px; bottom: 120px; z-index: 2;
}
.hero__credit {
  font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.24em;
  color: var(--muted); margin-bottom: 14px;
}
.hero__credit b { color: var(--accent); font-weight: 700; }
.hero h1 {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(30px, 6.4vw, 52px); line-height: 1.16; letter-spacing: 0.01em;
}
.hero__sub { margin-top: 16px; font-size: 15px; color: var(--white); max-width: 40ch; line-height: 1.8; }
/* 初回料金を画面下部に明示 */
.hero__first {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 26px;
  background: rgba(13,13,15,0.86); backdrop-filter: blur(6px);
  border-top: 1px solid var(--accent);
}
.hero__first .k { font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; }
.hero__first .v { font-size: 15px; color: var(--white); }
.hero__first .v b { font-family: var(--ff-display); font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.hero__first .v small { font-size: 14px; color: var(--muted); }
.hero__actions { display: flex; gap: 12px; margin-top: 26px; }
.hero__actions .btn { width: auto; flex: 1; }

/* ---- FIRST GUIDE ---- */
.first { display: grid; gap: 26px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper button {
  padding: 10px 16px; min-height: 44px;
  font-family: var(--ff-display); font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid var(--graphite); border-radius: 2px; color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.stepper button[aria-selected="true"] { border-color: var(--accent); color: var(--white); background: var(--accent-soft); }
.steppanel {
  border: 1px solid var(--graphite); background: var(--panel); padding: 24px 22px;
}
.steppanel .step { font-family: var(--ff-display); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; }
.steppanel h3 { font-size: 20px; margin: 8px 0 10px; }
.steppanel p { font-size: 16px; color: var(--white); line-height: 1.85; }
.firstprice {
  border: 1px solid var(--accent); background: var(--accent-soft); padding: 20px 22px;
}
.firstprice .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.firstprice .lbl { font-family: var(--ff-display); font-size: 14px; letter-spacing: 0.14em; font-weight: 700; }
.firstprice .amt b { font-family: var(--ff-display); font-size: 34px; font-weight: 800; }
.firstprice .amt small { font-size: 14px; color: var(--muted); }
.firstprice ul { margin-top: 14px; display: grid; gap: 6px; }
.firstprice li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; line-height: 1.7; }
.firstprice li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--accent); }

/* ---- HOST 一覧 ---- */
.hosttools { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hint { font-size: 14px; color: var(--muted); }
.hostgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hostcard {
  border: 1px solid var(--graphite); background: var(--panel);
  text-align: left; padding: 0; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.hostcard:hover { border-color: var(--graphite-2); }
.hostcard.is-colored { border-color: var(--accent); }
.hostcard__fig { position: relative; }
.hostcard__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  padding: 5px 9px; background: rgba(13,13,15,0.82); color: var(--white); border: 1px solid var(--graphite-2);
}
.hostcard.is-colored .hostcard__tag { border-color: var(--accent); color: var(--accent); }
.hostcard__body { padding: 16px 16px 18px; }
.hostcard__name { display: flex; align-items: baseline; gap: 10px; }
.hostcard__name b { font-family: var(--ff-display); font-size: 21px; font-weight: 800; letter-spacing: 0.04em; }
.hostcard__name span { font-size: 14px; color: var(--muted); }
.hostcard__on { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hostcard__on .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite-2); }
.hostcard__on.on .dot { background: var(--accent); }
.hostcard__on.on { color: var(--white); }
.hostcard__catch { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--white); }
.hostcard__hint { margin-top: 12px; font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }

/* ---- 出勤カード切替（HOST内の当日/週間） ---- */
.schedtabs { display: inline-flex; border: 1px solid var(--graphite); border-radius: 2px; overflow: hidden; }
.schedtabs button {
  padding: 9px 16px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.schedtabs button[aria-selected="true"] { background: var(--accent); color: var(--white); }

/* ---- EVENT / NEWS ---- */
.events { display: grid; gap: 18px; }
.eventcard {
  display: grid; grid-template-columns: 160px 1fr; gap: 18px;
  border: 1px solid var(--graphite); background: var(--panel); overflow: hidden;
}
.eventcard .ph { aspect-ratio: 16 / 9; height: 100%; }
.eventcard__body { padding: 16px 18px 16px 0; }
.eventcard__meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.eventcard__cat {
  font-family: var(--ff-display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); border: 1px solid var(--accent); padding: 2px 8px;
}
.eventcard h3 { font-size: 18px; margin: 8px 0; line-height: 1.4; }
.eventcard p { font-size: 14px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- RECRUIT 導線 ---- */
.recruit { border: 1px solid var(--graphite); background: linear-gradient(160deg, var(--panel-2), var(--black)); padding: 32px 28px; }
.recruit .lead { color: var(--white); }
.recruit__merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.merit { border-top: 1px solid var(--accent); padding-top: 14px; }
.merit b { font-family: var(--ff-display); font-size: 15px; letter-spacing: 0.04em; }
.merit p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.recruit__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.recruit__actions .btn { width: auto; }

/* ---- FAQ アコーディオン（ドロワー内） ---- */
.acc { border-top: 1px solid var(--graphite); }
.acc__item { border-bottom: 1px solid var(--graphite); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; text-align: left; font-size: 16px; font-weight: 700; min-height: 44px;
}
.acc__q .mk { font-family: var(--ff-display); color: var(--accent); font-size: 20px; transition: transform 0.25s; }
.acc__q[aria-expanded="true"] .mk { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.acc__a p { padding: 0 0 16px; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* ---- アクセス / フッター ---- */
.access dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.access dt { color: var(--accent); font-family: var(--ff-display); font-size: 14px; letter-spacing: 0.1em; }
.access dd { margin: 0; }
.access a { color: var(--white); border-bottom: 1px solid var(--graphite-2); }
.footer { border-top: 1px solid var(--graphite); padding: 36px 0 0; color: var(--muted); font-size: 14px; }
.footer__brand { font-family: var(--ff-display); font-weight: 800; font-size: 20px; letter-spacing: 0.16em; color: var(--white); }
.footer__demo { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer__cr { margin-top: 18px; font-size: 14px; letter-spacing: 0.08em; }

/* =========================================================
   ドロワー / モーダル
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(6, 6, 8, 0.72); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(420px, 88vw); height: 100dvh;
  background: var(--black); border-left: 1px solid var(--graphite);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  padding: 24px calc(24px + env(safe-area-inset-right, 0px)) calc(24px + var(--sae-b));
  overflow-y: auto;
}
.drawer[aria-hidden="false"] { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__title { font-family: var(--ff-display); font-weight: 800; font-size: 20px; letter-spacing: 0.1em; }
.drawer__close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--graphite); border-radius: 2px; font-size: 22px; }
.drawer .vnav a { font-size: 18px; }
.drawer .vnav a .ja { font-size: 14px; }

.modal {
  position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal__box {
  width: min(520px, 100%); max-height: 88dvh; overflow-y: auto;
  background: var(--black); border: 1px solid var(--graphite); padding: 28px;
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal__title { font-family: var(--ff-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.modal__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--graphite); border-radius: 2px; font-size: 22px; flex: none; }
.modal p.note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--white); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px;
  background: var(--panel); border: 1px solid var(--graphite); border-radius: 2px; color: var(--white);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.modal__done { text-align: center; padding: 20px 0; }
.modal__done .mk { font-size: 40px; color: var(--accent); font-family: var(--ff-display); }
.modal__done h3 { font-size: 20px; margin: 12px 0 8px; }
.modal__done p { font-size: 15px; color: var(--muted); }

/* =========================================================
   モバイル固定CTA / ページトップ
   ========================================================= */
.mcta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(13, 13, 15, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--graphite);
  padding-bottom: var(--sae-b);
}
.mcta a, .mcta button {
  min-height: var(--cta-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 14px; font-weight: 700; color: var(--white);
  border-right: 1px solid var(--graphite);
}
.mcta > *:last-child { border-right: 0; }
.mcta .en { font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.mcta .primary { background: var(--accent); }
.mcta .primary .en { color: rgba(255,255,255,0.8); }

.totop {
  position: fixed; right: 20px; bottom: calc(20px + var(--sae-b)); z-index: 80;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--white); color: var(--black); border-radius: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.totop.show { opacity: 1; visibility: visible; }

/* ---- スクロール演出 ---- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */

/* 1024–1279px: レール1本（右）のみ・左レール→フローティングメニュー（ヘッダー） */
@media (max-width: 1279px) {
  :root { --rail-width: 260px; --gutter: 32px; }
  .mhead { display: flex; }
  .shell {
    grid-template-columns: minmax(0, var(--main-width)) minmax(0, var(--rail-width));
    max-width: 1040px;
  }
  .rail--left { display: none; }
}

/* 768–1023px: レールなし・中央単独（最大760px）・機能はヘッダー/ボトム/セクションへ */
@media (max-width: 1023px) {
  .shell {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    padding: 0 22px;
  }
  .rail--right { display: none; }
  .mcta { display: grid; }
  .main { padding-bottom: calc(var(--cta-h) + 28px + var(--sae-b)); }
  .totop { bottom: calc(var(--cta-h) + 18px + var(--sae-b)); }
}

/* 767px以下: 完全1カラム・スマホ最優先 */
@media (max-width: 767px) {
  .shell { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 24px 0 44px; }
  .hero__copy { left: 18px; right: 18px; bottom: 108px; }
  .hero__first { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hostgrid { grid-template-columns: 1fr; gap: 16px; }
  .eventcard { grid-template-columns: 110px 1fr; gap: 14px; }
  .recruit__merits { grid-template-columns: 1fr; }
  .recruit { padding: 24px 18px; }
  .recruit__actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .hero__first .v b { font-size: 19px; }
  .mcta .en { font-size: 11px; }
}

/* =========================================================
   下層ページ・共通コンポーネント
   ========================================================= */
.main { padding-top: 34px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--graphite-2); }

.page-head { margin-bottom: 26px; }
.page-head .num { font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.28em; color: var(--accent); font-weight: 700; }
.page-head h1 {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(28px, 5vw, 40px); letter-spacing: 0.02em; line-height: 1.15; margin-top: 8px;
}
.page-head h1 span { font-size: 0.5em; color: var(--muted); font-weight: 600; }
.page-head .ja { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0.14em; margin-top: 6px; }

.main h2 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(20px, 3vw, 26px); letter-spacing: 0.02em; margin: 34px 0 16px; }
.note-sm { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
.lede-sm { font-size: 15px; color: var(--muted); line-height: 1.8; }
.bullets { display: grid; gap: 10px; margin: 8px 0; }
.bullets li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.8; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--accent); }

/* ---- キャスト一覧（cast.html） ---- */
.castfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.castfilter button {
  min-height: 44px; padding: 9px 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--graphite); border-radius: 2px; color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.castfilter button[aria-selected="true"] { border-color: var(--accent); color: var(--white); background: var(--accent-soft); }
.castgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hostcard--link { display: flex; flex-direction: column; }
.hostcard__fig--toggle { cursor: pointer; }
.hostcard__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--ff-display); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent);
  border-bottom: 1px solid transparent; align-self: flex-start;
}
.hostcard--link .hostcard__body { flex: 1; }
.hostcard__link:hover { border-color: var(--accent); }

/* ---- キャスト詳細（cast-detail.html） ---- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.detail__media { display: grid; gap: 12px; }
.detail__main { aspect-ratio: 3 / 4; }
.detail__subs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail__sub { aspect-ratio: 1 / 1; }
.detail__tag { font-family: var(--ff-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.detail__info h1 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); letter-spacing: 0.04em; margin: 8px 0 4px; }
.detail__info h1 span { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.detail__catch { font-size: 18px; color: var(--white); margin: 12px 0; line-height: 1.6; }
.detail__comment { font-size: 16px; color: var(--muted); line-height: 1.85; }
.detail__info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 20px 0; font-size: 16px; }
.detail__info dt { color: var(--accent); font-family: var(--ff-display); font-size: 14px; letter-spacing: 0.08em; }
.detail__info dd { margin: 0; }

/* ---- 前後ナビ ---- */
.pnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--graphite); flex-wrap: wrap; }
.pnav a, .pnav button { font-size: 15px; font-weight: 700; color: var(--white); min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.pnav a:hover, .pnav button:hover { color: var(--accent); }

/* ---- スケジュール ---- */
.scheddays { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.scheddays button {
  flex: none; min-height: 44px; padding: 9px 14px; font-size: 14px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--graphite); border-radius: 2px; color: var(--muted);
}
.scheddays button[aria-selected="true"] { border-color: var(--accent); color: var(--white); background: var(--accent-soft); }
.sched-list { border-top: 1px solid var(--graphite); }
.sched-row a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--graphite); min-height: 44px; }
.sched-name { font-family: var(--ff-display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.sched-name small { font-family: var(--ff-body); font-size: 14px; color: var(--muted); margin-left: 8px; }
.sched-time { font-size: 16px; color: var(--accent); font-weight: 700; }
.sched-row a:hover .sched-name { color: var(--accent); }
.sched-empty { font-size: 16px; color: var(--muted); padding: 24px 0; }

/* ---- 料金（system.html） ---- */
.systable { margin: 20px 0; }
.systable h3 { font-family: var(--ff-display); font-size: 18px; letter-spacing: 0.04em; margin-bottom: 10px; color: var(--white); }
.systable dl { border-top: 1px solid var(--graphite); }
.systable__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--graphite); }
.systable__row dt { color: var(--white); font-size: 16px; }
.systable__row dd { margin: 0; font-size: 16px; color: var(--white); font-weight: 700; text-align: right; }
.sysnotes { margin-top: 24px; border: 1px solid var(--graphite); background: var(--panel); padding: 20px; }
.sysnotes h3 { font-family: var(--ff-display); font-size: 16px; margin-bottom: 12px; }
.sysnotes ul { display: grid; gap: 8px; }
.sysnotes li { position: relative; padding-left: 16px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.sysnotes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); }

/* ---- 記事（news-detail） ---- */
.article__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.article h1 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.3; margin-bottom: 18px; }
.article__photo { aspect-ratio: 16 / 9; margin-bottom: 22px; }
.article__body p { font-size: 16px; line-height: 1.9; color: var(--white); }

/* ---- ギャラリー ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.galcell { padding: 0; border: 1px solid var(--graphite); overflow: hidden; cursor: pointer; transition: border-color 0.25s; }
.galcell:hover { border-color: var(--accent); }
.galcell .ph { aspect-ratio: 16 / 9; }
.lightbox__box { width: min(760px, 100%); }
.lightbox__box .ph { aspect-ratio: 16 / 9; }

/* ---- アクセス地図 ---- */
.access-map { aspect-ratio: 16 / 9; margin-bottom: 26px; border: 1px solid var(--graphite); }
.steps-ol { display: grid; gap: 12px; counter-reset: s; padding-left: 0; }
.steps-ol li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.7; list-style: none; }
.steps-ol li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 14px; font-weight: 700;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 2px;
}

/* ---- お問い合わせフォーム ---- */
.formwrap { max-width: 560px; }
.contact-form .req { font-size: 14px; color: var(--accent); border: 1px solid var(--accent); padding: 1px 8px; margin-left: 8px; }
.formdone { border: 1px solid var(--accent); background: var(--accent-soft); padding: 32px 24px; }
.formdone h2 { margin-top: 12px; }

/* ---- プライバシー（prose） ---- */
.prose { max-width: 62ch; }
.prose h2 { font-size: 20px; }
.prose p { font-size: 16px; line-height: 1.9; color: var(--white); margin-bottom: 14px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--graphite-2); }
.demo-banner { border: 1px solid var(--accent); background: var(--accent-soft); padding: 16px 18px; font-size: 15px; line-height: 1.8; margin-bottom: 26px; }

/* ---- フッターナビ ---- */
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.footer__nav a { font-size: 14px; color: var(--muted); border-bottom: 1px solid transparent; }
.footer__nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- 下層レスポンシブ ---- */
@media (max-width: 767px) {
  .castgrid, .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .detail__media { max-width: 320px; }
  .systable__row { flex-direction: row; }
  .pnav { font-size: 14px; }
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
