/* 占い ウラリン 紹介ページ。見た目はアプリの案C「灯りの窓」（app/src/ui/theme.ts、design/mockups/2026-11-12/C.css）に合わせる */

@font-face {
  font-family: 'Kaisei Opti LP';
  src: url('./fonts/KaiseiOpti-Medium-lp.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Maru Gothic LP';
  src: url('./fonts/ZenMaruGothic-Regular-lp.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0a111e;
  --surface: #101828;
  --glass: rgba(16, 24, 40, 0.62);
  --glass-line: rgba(244, 230, 200, 0.16);
  --text: #f4ecdc;
  --muted: #aaa293;
  --lamp: #f4e3bf;
  --on-lamp: #1f1a10;
  --gold: #e0b062;
  --gold-line: rgba(224, 176, 98, 0.8);
  --shade: rgba(10, 17, 30, 0.55);
  --gutter: 20px;
  --max: 480px;
  --heading: 'Kaisei Opti LP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --body: 'Zen Maru Gothic LP', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  /* 背景の絵（720×1521）の下と左右の端を地の色に溶かす（広い画面で絵の端が見えないように）。グラデーションは絵と同じ大きさに重ねる */
  background:
    linear-gradient(to bottom, rgba(10, 17, 30, 0) 55%, var(--bg) 100%) center top / 720px 1521px no-repeat,
    linear-gradient(to right, var(--bg) 0, rgba(10, 17, 30, 0) 24%, rgba(10, 17, 30, 0) 76%, var(--bg) 100%) center top / 720px 1521px no-repeat,
    url('./images/decor/C_glow_bg.webp') center top / 720px 1521px no-repeat,
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-synthesis: none;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
.opti { font-family: var(--heading); font-weight: 500; }
ruby rt { font-family: var(--body); font-size: 0.5em; color: var(--muted); letter-spacing: 0; }
a { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(to bottom, transparent 0, rgba(10, 17, 30, 0.35) 900px);
  box-shadow: 0 0 0 1px rgba(244, 230, 200, 0.04);
}

/* AI の印。占い師の名前の横に必ず付ける */
.ai {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px 2px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--body);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  vertical-align: 0.2em;
  white-space: nowrap;
}

/* ---------- 最初の画面 ---------- */
.hero { position: relative; height: min(122vw, 580px); min-height: 460px; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 17, 30, 0.5) 0%, rgba(10, 17, 30, 0) 22%); pointer-events: none; }
.brand { position: absolute; top: 22px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.logo { font-size: 15px; letter-spacing: 0.12em; }
.logo span { margin-left: 6px; font-size: 22px; letter-spacing: 0.16em; }
.supervised { font-size: 11px; color: var(--lamp); opacity: 0.85; letter-spacing: 0.1em; }
.host { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; }
.host-name { font-size: 13px; color: var(--lamp); }
.host-div { margin-left: 10px; color: var(--muted); }
.host-say { margin-top: 6px; font-size: 22px; line-height: 1.55; letter-spacing: 0.06em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75); }

main > section { padding: 0 var(--gutter); }
main > section + section { margin-top: 72px; }
h2 { font-family: var(--heading); font-weight: 500; font-size: 21px; line-height: 1.5; letter-spacing: 0.08em; color: var(--lamp); }
h2 small { white-space: nowrap; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
h2 + p { margin-top: 12px; }
p + p { margin-top: 12px; }
.caption { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- はじめの説明と順番待ち ---------- */
.intro { margin-top: 8px; }
.intro h1 { font-size: 25px; line-height: 1.6; letter-spacing: 0.06em; }
.intro h1 + p { margin-top: 18px; }
.status { padding: 12px 14px; border-left: 2px solid var(--gold-line); background: var(--glass); border-radius: 0 12px 12px 0; font-size: 14.5px; }

.cta-wrap { position: relative; margin-top: 34px; }
.cta-wrap .bloom {
  position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -96px; height: 250px;
  background: url('./images/decor/C_bloom.webp') center / contain no-repeat;
  mix-blend-mode: screen; opacity: 0.55; pointer-events: none;
}
.cta {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 20px; border-radius: 999px;
  background: var(--lamp); color: var(--on-lamp); text-decoration: none;
  font-size: 18px; letter-spacing: 0.18em; text-align: center;
}
.cta:hover { background: #f8ecd2; }
.cta[aria-disabled='true'] { background: rgba(244, 227, 191, 0.18); color: var(--muted); border: 1px solid var(--glass-line); cursor: not-allowed; letter-spacing: 0.3em; }
.cta-wrap:has(.cta[aria-disabled='true']) .bloom { opacity: 0.18; }
.cta-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- 掛け合いの画面 ---------- */
.talk h2 { margin-bottom: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; height: 200px; margin: 0 calc(-1 * var(--gutter)); }
.duo figure { position: relative; overflow: hidden; }
.duo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.duo .quiet img { filter: brightness(0.5) saturate(0.8); }
.duo figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; line-height: 1.35; }
.duo figcaption .sk { display: block; font-size: 10.5px; color: var(--muted); }
.duo .speaking figcaption::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px rgba(224, 176, 98, 0.7); vertical-align: 2px;
}
.log { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.bub {
  max-width: 88%; padding: 8px 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-size: 14.5px; line-height: 1.65;
}
@supports (backdrop-filter: blur(8px)) { .bub { backdrop-filter: blur(8px); } }
.bub + .bub { margin-top: 0; }
.bub .who { display: block; margin-bottom: 2px; font-size: 11px; line-height: 1.4; color: var(--lamp); }
.bub .who .ai { font-size: 9px; padding: 2px 5px 1px; margin-left: 6px; }
.bub.left { align-self: flex-start; border-top-left-radius: 4px; }
.bub.right { align-self: flex-end; border-top-right-radius: 4px; }
.bub.you { align-self: flex-end; background: rgba(244, 227, 191, 0.1); border-color: rgba(244, 227, 191, 0.22); border-top-right-radius: 4px; }
.bub.you .who { color: var(--muted); }

/* ---------- 占い師たち ---------- */
.rail-wrap { margin: 20px calc(-1 * var(--gutter)) 0; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; list-style: none;
  padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.reader { flex: 0 0 46%; min-width: 0; scroll-snap-align: start; }
.reader img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.r-name { margin-top: -4px; position: relative; font-size: 16px; letter-spacing: 0.08em; }
.r-name .ai { font-size: 9.5px; }
.r-div { margin-top: 2px; font-size: 12.5px; color: var(--lamp); }
.r-line { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--text); }
.rail-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 var(--gutter); }
.rail-hint { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.round {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--shade); border: 1px solid var(--glass-line); color: var(--lamp);
}
.round:disabled { opacity: 0.35; cursor: default; }

/* ---------- 流れ ---------- */
.steps { list-style: none; counter-reset: step; margin-top: 18px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-size: 15px; color: var(--gold); line-height: 1;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 1px; background: var(--glass-line); }
.steps h3 { font-size: 17px; line-height: 32px; letter-spacing: 0.06em; }
.steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.75; color: var(--text); }

/* ---------- 無料で使えるもの ---------- */
.free-list { list-style: none; margin-top: 16px; border-top: 1px solid var(--glass-line); }
.free-list li { padding: 13px 2px; border-bottom: 1px solid var(--glass-line); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.free-list b { display: block; font-weight: 400; font-family: var(--heading); font-size: 16.5px; color: var(--text); letter-spacing: 0.06em; }

/* ---------- AI について ---------- */
.ai-note h2 + p { margin-top: 12px; }

/* ---------- よくある質問 ---------- */
.faq h2 { margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--glass-line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 15px 34px 15px 2px; font-size: 15px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--lamp); border-bottom: 1.5px solid var(--lamp); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq details p { padding: 0 2px 16px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* ---------- 最後の順番待ち ---------- */
.last { margin-top: 88px; text-align: center; }
.last-say { font-size: 21px; line-height: 1.7; letter-spacing: 0.08em; }

/* ---------- 下 ---------- */
.foot { margin-top: 72px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--glass-line); font-size: 12.5px; color: var(--muted); }
.foot-name { font-size: 15px; color: var(--text); letter-spacing: 0.12em; }
.foot dl { margin-top: 12px; }
.foot dl div { display: flex; gap: 12px; }
.foot dt { min-width: 7em; }
.foot-note { margin-top: 14px; }

@media (min-width: 520px) {
  .reader { flex-basis: 40%; }
}
@media (prefers-reduced-motion: no-preference) {
  .rail { scroll-behavior: smooth; }
}
.duo figcaption .ai { font-size: 9px; padding: 2px 5px 1px; margin-left: 6px; }
.why-sign { text-align: right; opacity: .8; font-size: .9em; margin-top: 12px; }
