/* =====================================================================
   isREAL public UI — cast detail (golden screen)
   tokens.css を前提とするコンポーネントCSS。値の直書きはtokensにない寸法のみ。
   ゴールデンスクリーン: /_p/ir-golden-cast-9c2d47ae/
   実装WOでは参照のみ・編集禁止(変更はデザインレビューを通す)。
   共通ヘッダ・下部ナビはINDEX/TOP実装時に共通CSSへ抽出予定。
   ===================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--ir-bg);
  color: var(--ir-ink);
  font-family: var(--ir-font-sans);
  font-weight: 400;
  line-height: var(--ir-leading-ui);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- global header(薄いオーバーレイ+オートハイド / 2026-08-18決定) ---- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) { .site-head { transition: none; } }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head.is-scrolled {
  background: color-mix(in srgb, var(--ir-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ir-line);
}
.site-head__inner {
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 6px 0 18px;
}
.site-logo {
  font-family: var(--ir-font-en);
  font-size: 15px; letter-spacing: 0.14em;
  color: var(--ir-ink); text-decoration: none;
}
.site-logo b { font-weight: 500; }
/* 写真上に重なるページ(キャスト詳細)の最上部状態 */
.site-head--photo:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(24, 22, 18, 0.34), rgba(24, 22, 18, 0));
}
.site-head--photo:not(.is-scrolled) .site-logo,
.site-head--photo:not(.is-scrolled) .menu-btn { color: #FFFDFC; }

/* ---- hamburger ---- */
.menu-btn {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--ir-ink);
}
.menu-btn span { display: block; width: 18px; height: 1px; background: currentColor; }

/* ---- drawer(副次ページメニュー) ---- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 62;
  background: rgba(37, 38, 34, 0.4); display: none;
}
.drawer-backdrop.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 63;
  width: min(78vw, 320px);
  background: var(--ir-bg); border-left: 1px solid var(--ir-line);
  transform: translateX(105%); transition: transform 0.25s ease;
  padding: 12px 26px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer.is-open { transform: none; }
.drawer__close {
  display: block; margin-left: auto; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--ir-muted);
}
.drawer__en {
  font-family: var(--ir-font-en); font-style: italic;
  font-size: 13px; letter-spacing: var(--ir-tracking-en);
  color: var(--ir-brass); text-transform: uppercase;
  margin: 4px 0 10px;
}
.drawer nav a {
  display: block; padding: 13px 0;
  border-bottom: 1px solid var(--ir-line); text-decoration: none;
  font-size: var(--ir-type-small); letter-spacing: 0.12em; color: var(--ir-ink-soft);
}

/* ---- page column ---- */
.cd-page { max-width: 430px; margin: 0 auto; padding-bottom: 96px; }
@media (min-width: 768px) {
  .cd-page { max-width: 560px; }
}

/* ---- hero ---- */
.cd-hero { position: relative; }
.cd-hero__img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
/* ---- 状態チップ(TOP・一覧・ランキング・詳細で共通 2026-10-16) ----
   写真上に置くのは RANK と NEW FACE の2種類まで。同一形状で横に並べ、1か所に集約する。
   受付状況などの状態はチップにせず文字で出す(写真上の要素を増やさない)。 */
.cast-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cast-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-family: var(--ir-font-sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; line-height: 1; white-space: nowrap;
}
/* ブラスを写真上の白文字で読める濃さに一段下げる(--ir-brass #9A8359 では白文字のコントラスト不足) */
.cast-chip--rank { background: #8C7550; color: #FFFFFF; padding-left: 9px; }
.cast-chip--rank svg { width: 13px; height: 13px; fill: currentColor; }
.cast-chip--rank b { font-family: var(--ir-font-meta); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin-left: 1px; }
.cast-chip--new { background: var(--ir-bg); color: var(--ir-forest); }
.cd-hero > .cast-chips { position: absolute; left: 12px; bottom: 12px; right: 12px; }
.cd-head { padding: 26px 22px 8px; }
.cd-head__en {
  font-family: var(--ir-font-en); font-style: italic;
  font-size: 13px; letter-spacing: var(--ir-tracking-en);
  color: var(--ir-brass); text-transform: uppercase;
  margin-bottom: 8px;
}
.cd-head__name {
  font-family: var(--ir-font-display); font-weight: 600;
  font-size: var(--ir-type-h1); letter-spacing: var(--ir-tracking-display);
  line-height: 1.3; color: var(--ir-ink);
}
.cd-head__catch {
  font-family: var(--ir-font-display); font-weight: 500;
  font-size: var(--ir-type-catch); letter-spacing: 0.08em;
  color: var(--ir-forest); margin-top: 10px; line-height: 1.7;
}
.cd-head__spec {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-small); letter-spacing: 0.08em;
  color: var(--ir-muted); margin-top: 12px;
}

.cd-head__registered {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--ir-sage); border-radius: 3px;
  font-family: var(--ir-font-meta); font-size: 13px;
  color: var(--ir-forest); margin-top: 10px; letter-spacing: 0.04em;
}

/* ---- state card ---- */
.cd-state {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 22px 0; padding: 13px 14px;
  background: var(--ir-surface); border: 1px solid var(--ir-line);
}
.cd-state__time {
  font-family: var(--ir-font-meta);
  font-size: 13px; letter-spacing: 0.04em; color: var(--ir-ink-soft);
}
.cd-state__updated {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-micro); letter-spacing: 0.05em;
  color: var(--ir-subtle); margin-left: auto;
}

/* ---- status badges(状態表示専用) ---- */
.badge {
  font-family: var(--ir-font-sans);
  font-size: var(--ir-type-caption); letter-spacing: 0.12em;
  padding: 4px 9px; border-radius: 2px; white-space: nowrap;
}
.badge--available { color: var(--ir-available); background: var(--ir-available-bg); }
.badge--pending   { color: var(--ir-pending);   background: var(--ir-pending-bg); }
.badge--closed    { color: var(--ir-closed);    background: var(--ir-closed-bg); }
.badge--changed   { color: var(--ir-changed);   background: var(--ir-changed-bg); }

/* ---- PhotoLog (vol.0) ---- */
.cd-photolog { margin-top: 44px; background: var(--ir-paper); padding: 42px 0 48px; }
.pl-kicker { display: flex; align-items: baseline; gap: 10px; padding: 0 22px; }
.pl-kicker__vol {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-caption); letter-spacing: 0.18em; color: var(--ir-brass);
}
.pl-kicker__label {
  font-family: var(--ir-font-sans);
  font-size: var(--ir-type-caption); letter-spacing: 0.2em; color: var(--ir-muted);
}
.pl-title {
  font-family: var(--ir-font-display); font-weight: 600;
  font-size: var(--ir-type-title); letter-spacing: 0.07em;
  line-height: 1.5; padding: 14px 22px 0; color: var(--ir-ink);
}
.pl-prologue {
  font-family: var(--ir-font-display);
  font-size: var(--ir-type-body); line-height: var(--ir-leading-body);
  letter-spacing: 0.04em; color: var(--ir-ink-soft);
  padding: 18px 22px 30px;
}
.pl-photo { margin-bottom: 26px; }
.pl-photo img { width: 100%; }
.pl-cap { display: flex; align-items: baseline; gap: 8px; margin: 9px 22px 0; }
.pl-cap__idx {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-micro); letter-spacing: 0.15em; color: var(--ir-brass);
}
.pl-cap__text {
  font-family: var(--ir-font-display);
  font-size: 13px; letter-spacing: 0.08em; color: var(--ir-muted);
}
.pl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 26px; }
.pl-duo .pl-photo { margin-bottom: 0; }
.pl-duo .pl-cap { margin: 9px 10px 0; }
.pl-inset { padding: 0 22px; }
.pl-inset .pl-cap { margin: 9px 0 0; }
.pl-poem { padding: 44px 30px; text-align: center; }
.pl-poem__primary {
  font-family: var(--ir-font-display); font-weight: 500;
  font-size: 18px; line-height: 2.2; letter-spacing: 0.1em; color: var(--ir-ink);
}
.pl-poem__secondary {
  font-family: var(--ir-font-display);
  font-size: var(--ir-type-small); letter-spacing: 0.12em;
  color: var(--ir-muted); margin-top: 16px;
}
.pl-interview { margin: 34px 22px 0; border-top: 1px solid var(--ir-line); padding-top: 26px; }
.pl-interview__head {
  font-family: var(--ir-font-en); font-style: italic; font-weight: 500;
  font-size: 15px; letter-spacing: 0.18em; color: var(--ir-brass);
  margin-bottom: 14px;
}
.pl-interview__q {
  font-family: var(--ir-font-sans);
  font-size: 13px; letter-spacing: 0.06em; color: var(--ir-muted); margin-bottom: 6px;
}
.pl-interview__a {
  font-family: var(--ir-font-display);
  font-size: var(--ir-type-body); line-height: 2; letter-spacing: 0.03em;
  color: var(--ir-ink-soft);
}
.pl-meta {
  padding: 30px 22px 0; text-align: right;
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-micro); letter-spacing: 0.05em; color: var(--ir-subtle);
}

/* ---- schedule ---- */
.cd-sched { padding: 46px 22px 0; }
.cd-sched__title {
  font-family: var(--ir-font-sans); font-weight: 500;
  font-size: 13px; letter-spacing: 0.26em; color: var(--ir-forest);
  margin-bottom: 4px;
}
.cd-sched__title:focus { outline: none; }
.cd-sched__en {
  font-family: var(--ir-font-en); font-style: italic;
  font-size: var(--ir-type-caption); letter-spacing: 0.2em;
  color: var(--ir-subtle); text-transform: uppercase; margin-bottom: 16px;
}
.sc-day { border-bottom: 1px solid var(--ir-line); }
.sc-day:first-of-type { border-top: 1px solid var(--ir-line); }
.sc-day__row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 2px;
  background: none; border: none; text-align: left; font: inherit;
  cursor: default; color: inherit;
}
.sc-day--open .sc-day__row { cursor: pointer; }
.sc-day__date {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-small); letter-spacing: 0.05em;
  color: var(--ir-ink-soft); width: 76px; flex-shrink: 0;
}
.sc-day__time {
  min-width: 0;
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-small); letter-spacing: 0.03em;
  color: var(--ir-ink-soft); flex: 1;
}
.sc-day__time--off { color: var(--ir-disabled); text-align: left; }
.sc-week[hidden] { display: none; }
.sc-slots { display: none; padding: 2px 2px 14px 88px; flex-wrap: wrap; gap: 8px; }
.sc-day.is-open .sc-slots { display: flex; }
.sc-slot {
  font-family: var(--ir-font-meta); font-size: var(--ir-type-small);
  letter-spacing: 0.03em; color: var(--ir-forest);
  background: var(--ir-surface); border: 1px solid var(--ir-line);
  padding: 8px 12px; border-radius: 2px; cursor: pointer;
}
.sc-slot[aria-pressed="true"] {
  background: var(--ir-forest); border-color: var(--ir-forest); color: var(--ir-on-forest);
}
/* 希望開始時刻の選択(2026-08-20改訂: チップ羅列・ネイティブピッカーとも不使用。シート式) */
.sc-time-field {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 12px 2px 0 88px; padding: 12px 14px;
  background: var(--ir-surface);
  border: 1px solid var(--ir-line); border-radius: 2px;
  font-family: var(--ir-font-meta);
  font-size: 14px; letter-spacing: 0.04em; color: var(--ir-ink);
  cursor: pointer; text-align: left;
}
.sc-time-field--empty { color: var(--ir-subtle); font-family: var(--ir-font-sans); font-size: 13.5px; letter-spacing: 0.08em; }
.sc-time-field__caret {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.sc-request {
  /* CTAだけは.sc-slotsの左インデントを打ち消し、行幅を使う */
  display: block; flex: 0 0 calc(100% + 86px);
  margin: 12px 2px 16px -88px; padding: 13px 16px;
  background: var(--ir-forest); color: var(--ir-on-forest);
  text-align: center; text-decoration: none;
  font-family: var(--ir-font-sans); font-weight: 500;
  font-size: 13px; letter-spacing: 0.1em; white-space: nowrap; border-radius: 2px;
}
.sc-request[hidden] { display: none; }

/* 時刻選択シート(チャネルシートと同じ操作文法。リストはシート内スクロール) */
.time-sheet__list {
  margin-top: 14px; max-height: 46vh; overflow-y: auto;
  border-top: 1px solid var(--ir-line);
}
.time-sheet__opt {
  display: block; width: 100%; padding: 13px;
  background: none; border: none; border-bottom: 1px solid var(--ir-line);
  font-family: var(--ir-font-meta);
  font-size: 15px; letter-spacing: 0.06em; color: var(--ir-ink-soft);
  cursor: pointer; text-align: center;
}
.time-sheet__opt[aria-selected="true"] {
  background: var(--ir-forest); color: var(--ir-on-forest);
}
.cd-sched__updated {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-micro); letter-spacing: 0.05em;
  color: var(--ir-subtle); margin-top: 10px; text-align: right;
}
.cd-sched__alt { margin-top: 22px; }
.cd-sched__alt a {
  display: inline-block; padding: 11px 18px;
  border: 1px solid var(--ir-line); border-radius: 2px;
  font-family: var(--ir-font-sans);
  font-size: var(--ir-type-small); letter-spacing: 0.1em;
  color: var(--ir-forest); text-decoration: none;
}

/* ---- info links / footer ---- */
.cd-info { margin: 46px 22px 0; border-top: 1px solid var(--ir-line); padding-top: 8px; }
.cd-info a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--ir-line);
  text-decoration: none;
  font-size: var(--ir-type-small); letter-spacing: 0.1em; color: var(--ir-ink-soft);
}
.cd-info a::after { content: "→"; color: var(--ir-stone); font-family: var(--ir-font-meta); font-size: 13px; }
.site-foot { margin-top: 44px; padding: 0 22px; text-align: center; }
.site-foot .site-logo { font-size: 15px; color: var(--ir-muted); }
.site-foot__note {
  font-family: var(--ir-font-meta);
  font-size: var(--ir-type-micro); color: var(--ir-subtle); margin-top: 6px;
}

/* ---- fixed bottom: cast CTA + global nav ---- */
.cd-fixed {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: color-mix(in srgb, var(--ir-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ir-line);
}
/* 2状態CTA(2026-08-19改訂): 既定=アウトライン(道案内) / 相談=塗り+アイコン(行動)。
   切替時は1回だけの軽いパルスで気づきを作る(ループアニメーションは使わない) */
.cd-fixed__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 16px calc(10px + env(safe-area-inset-bottom)); padding: 13px;
  max-width: 398px;
  background: var(--ir-surface); border: 1px solid var(--ir-forest);
  color: var(--ir-forest);
  text-align: center; text-decoration: none;
  font-family: var(--ir-font-sans); font-weight: 500;
  font-size: var(--ir-type-ui); letter-spacing: var(--ir-tracking-cta);
}
@media (min-width: 430px) { .cd-fixed__cta { margin-left: auto; margin-right: auto; } }
.cd-fixed__cta--consult {
  background: var(--ir-forest); border-color: var(--ir-forest);
  color: var(--ir-on-forest);
}
.cd-fixed__cta--consult:active { background: var(--ir-forest-active); }
.cd-fixed__cta-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  display: none;
}
.cd-fixed__cta--consult .cd-fixed__cta-icon { display: block; }
@keyframes cd-cta-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.cd-fixed__cta.is-switched { animation: cd-cta-pulse 0.45s ease; }
@media (prefers-reduced-motion: reduce) { .cd-fixed__cta.is-switched { animation: none; } }
/* 下部常設ナビ: アイコン+ラベルのグラフィカル表現(2026-08-18決定)。
   キャスト詳細では表示しない(詳細の下部は画面固有CTAのみ) */
.site-nav {
  display: flex; max-width: 430px; margin: 0 auto;
  padding: 9px 0 calc(7px + env(safe-area-inset-bottom));
}
.site-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 3px 0; text-decoration: none;
  font-size: 11px; letter-spacing: 0.12em; color: var(--ir-muted);
}
.site-nav a svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.site-nav a[aria-current="page"] { color: var(--ir-forest); }
/* 未読ドット(お知らせ)。件数バッジは使わない(DECISIONS 4章 2026-08-19) */
.site-nav a { position: relative; }
.site-nav__dot {
  position: absolute; top: 2px; left: calc(50% + 10px);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ir-forest);
}
.site-nav__dot[hidden] { display: none; }

/* ---- reservation channel sheet(日時選択後に表示 / CORE Reservation Channels) ---- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(37, 38, 34, 0.4); display: none;
}
.sheet-backdrop.is-open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 430px; margin: 0 auto;
  background: var(--ir-bg);
  border: 1px solid var(--ir-line); border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 22px 22px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform 0.25s ease;
}
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.sheet.is-open { transform: none; }
.sheet__name {
  font-family: var(--ir-font-display); font-weight: 600;
  font-size: 15px; letter-spacing: 0.08em; color: var(--ir-ink);
}
.sheet__list { margin-top: 16px; display: grid; gap: 8px; }
.sheet__ch {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; text-align: left; text-decoration: none;
  font-family: var(--ir-font-sans);
  color: var(--ir-ink-soft);
  background: var(--ir-surface); border: 1px solid var(--ir-line); border-radius: 2px;
}
.sheet__ch-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ir-forest);
}
.sheet__ch-body { flex: 1; min-width: 0; }
.sheet__ch-t {
  display: block; font-weight: 500;
  font-size: var(--ir-type-ui); letter-spacing: 0.08em;
}
.sheet__ch-d {
  display: block; margin-top: 3px;
  font-size: 11.5px; letter-spacing: 0.04em; line-height: 1.6;
  color: var(--ir-subtle);
}
.sheet__ch--primary {
  background: var(--ir-forest); border-color: var(--ir-forest);
  color: var(--ir-on-forest);
}
.sheet__ch--primary .sheet__ch-d { color: rgba(255, 255, 255, 0.72); }
.sheet__note {
  margin-top: 12px;
  font-size: var(--ir-type-micro); letter-spacing: 0.06em;
  color: var(--ir-subtle); text-align: center;
}
.sheet__close {
  display: block; width: 100%; margin-top: 10px; padding: 12px;
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: var(--ir-type-small); letter-spacing: 0.12em; color: var(--ir-muted);
}
