/* ============================================================
   MYOURISCOPE Design System — "静かな観測所"
   Concept A: Observation, Intelligence, Stillness
   アイボリーの観測所 × 濃紺の儀式の間(タロット)
   ============================================================ */
:root {
  --bg: #F3EEE5;            /* ivory mist */
  --bg-2: #ECE6D9;
  --surface: #FFFFFF;
  --ink: #111318;           /* sumi black */
  --indigo: #1C2333;        /* midnight indigo */
  --muted: #5D6270;
  --faint: rgba(28, 35, 51, 0.045);
  --hairline: #D7CFC2;      /* stone beige */
  --gold: #A8844E;          /* aged gold */
  --gold-bright: #8F6C38;   /* 淡色背景で読める深めの金(強調テキスト用) */
  --gold-deep: #6F5227;
  --gold-wash: rgba(168, 132, 78, 0.10);
  --violet: #6D5FC9;
  --rose: #C05C82;
  --teal: #2E8C7E;
  --coral: #C56B4E;
  /* 儀式の間(タロット・オーバーレイ)専用の夜のパレット */
  --chamber: #0A1026;
  --chamber-2: #141B38;
  --chamber-ink: #EFE9DC;
  --chamber-muted: #9AA0B8;
  --chamber-gold: #B89A5A;
  --chamber-gold-bright: #D9C08A;
  --radius: 14px;
  --shadow-soft: 0 12px 32px rgba(28, 35, 51, 0.08);
  --shadow-lift: 0 18px 44px rgba(28, 35, 51, 0.13);
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --num: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", -apple-system, sans-serif;
  --num-display: "Cormorant Garamond", "Zen Old Mincho", serif; /* 大きな数字はセリフで格調高く */
  --latin: "Cormorant Garamond", "Zen Old Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-size: 16.5px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; color: inherit; }

html, body { overflow-x: hidden; overflow-x: clip; }

::selection { background: rgba(168, 132, 78, 0.25); }

/* ---------- 背景:アイボリーの静かな洗い ---------- */
.bg-wash {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 700px at 85% -15%, rgba(28, 35, 51, 0.045), transparent 62%),
    radial-gradient(900px 600px at -12% 35%, rgba(168, 132, 78, 0.06), transparent 60%),
    radial-gradient(800px 600px at 55% 115%, rgba(215, 207, 194, 0.5), transparent 60%),
    var(--bg);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 238, 229, 0.85);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.header-inner .nav { margin-left: auto; }
.mypage-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface);
  display: grid; place-items: center; padding: 0;
  color: var(--muted); flex: 0 0 40px;
  transition: color .25s ease, border-color .25s ease;
}
.mypage-btn::after { content: none; }
.mypage-btn:hover { color: var(--indigo); border-color: var(--gold); }
.mypage-btn.active { color: var(--gold-bright); border-color: var(--gold); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-btn {
  position: relative;
  border: none; background: transparent; color: var(--muted);
  padding: 8px 13px; font-size: 14.5px; font-weight: 500; letter-spacing: .04em;
  transition: color .25s ease;
}
.nav-btn::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active { color: var(--indigo); font-weight: 700; }
.nav-btn.active::after { transform: scaleX(1); }

/* ---------- レイアウト ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }
.view { display: none; animation: viewIn .5s ease; padding-top: 48px; }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-head { text-align: center; margin-bottom: 36px; }
.view-eyebrow, .section-eyebrow, .hero-eyebrow {
  font-family: var(--latin);
  font-size: 14px; font-weight: 600; letter-spacing: .42em;
  color: var(--gold); text-transform: uppercase;
}
.view-head h2, .section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 4vw, 38px); letter-spacing: .06em;
  margin-top: 10px; text-wrap: balance; color: var(--indigo);
}
.view-sub { color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 560px; margin-inline: auto; }

.section-head {
  display: flex; flex-direction: column; align-items: center;
  margin: 72px 0 36px; text-align: center;
}
.section-head .section-title::after,
.view-head h2::after {
  content: ""; display: block; width: 190px; height: 42px;
  background: url("../assets/site/divider.webp") center / contain no-repeat;
  margin: 14px auto 0; opacity: .85;
}

/* ---------- 招待状 ---------- */
.invite-card {
  margin: 20px auto 4px; max-width: 620px; text-align: center;
  border: 1px solid rgba(168, 132, 78, 0.5); border-radius: 12px;
  padding: 26px 24px;
  background: linear-gradient(155deg, rgba(168, 132, 78, 0.08), var(--surface));
  box-shadow: var(--shadow-soft);
  animation: viewIn .7s ease;
}
.invite-seal {
  font-family: var(--serif); font-size: 13px; letter-spacing: .34em;
  color: var(--gold); margin-bottom: 10px;
}
.invite-line { font-size: 15px; color: var(--muted); }
.invite-line strong { color: var(--gold-bright); }
.invite-title {
  font-family: var(--serif); font-size: clamp(21px, 4vw, 28px); font-weight: 700;
  color: var(--indigo); letter-spacing: .06em; margin: 6px 0;
}
.invite-card .btn { margin-top: 16px; }

.shogo-vs {
  font-family: var(--serif); font-size: 15.5px; color: var(--muted);
  margin-top: 10px; letter-spacing: .04em;
}
.shogo-vs span { color: var(--gold); margin: 0 6px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(62vh, 580px);
  display: grid; place-items: center;
  margin: 0 -24px;
  border-bottom: 1px solid var(--hairline);
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; text-align: center; padding: 72px 24px; }
.hero-eyebrow { margin-bottom: 18px; }
.hero-date {
  font-family: var(--serif); font-size: clamp(15px, 2.4vw, 18px);
  color: var(--indigo); letter-spacing: .14em; margin-bottom: 8px;
}
.btn-xl { padding: 19px 46px; font-size: 17.5px; letter-spacing: .14em; }
.btn-observe {
  position: relative;
  border: none; border-radius: 999px;
  background:
    radial-gradient(150% 220% at 15% 120%, rgba(184, 154, 90, 0.5), transparent 55%),
    radial-gradient(170% 240% at 90% -40%, rgba(109, 95, 201, 0.36), transparent 58%),
    linear-gradient(140deg, #1B2236, #27314F 55%, #182036);
  background-size: 220% 220%, 220% 220%, 100% 100%;
  color: #F6F1E6;
  font-family: var(--serif); font-size: clamp(16px, 4vw, 18px); font-weight: 700;
  letter-spacing: .18em; padding: 19px 46px 19px 42px;
  box-shadow: 0 12px 30px rgba(28, 35, 51, 0.24);
  transition: transform .2s ease, box-shadow .3s ease;
  animation: observeBreath 3.6s ease-in-out infinite, ctaDrift 8s ease-in-out infinite;
}
.btn-observe .bo-mark { color: var(--chamber-gold-bright); margin-right: 12px; font-size: 14px; vertical-align: 1px; }
.btn-observe::before {
  content: ""; position: absolute; inset: -8px; border-radius: 999px;
  border: 1px solid rgba(168, 132, 78, 0.5);
  transition: border-color .3s ease, inset .3s ease;
}
.btn-observe::after {
  content: ""; position: absolute; inset: -8px; border-radius: 999px;
  animation: haloPulse 3.6s ease-out infinite;
}
@keyframes haloPulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 154, 90, 0.32); }
  70% { box-shadow: 0 0 0 16px rgba(184, 154, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 154, 90, 0); }
}
.btn-observe:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(28, 35, 51, 0.3); }
.btn-observe:hover::before { border-color: rgba(168, 132, 78, 0.9); }
.btn-observe:active { transform: scale(.985); }
@keyframes observeBreath {
  0%, 100% { box-shadow: 0 12px 30px rgba(28, 35, 51, 0.24); }
  50% { box-shadow: 0 14px 38px rgba(168, 132, 78, 0.38); }
}
.hero-eyebrow::after {
  content: ""; display: block; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
}
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 7.4vw, 66px); line-height: 1.5;
  letter-spacing: .045em; text-wrap: balance; color: var(--indigo);
}
.hero-title em { font-style: normal; color: var(--gold-bright); }
.hero-sub {
  color: var(--muted); margin-top: 24px;
  font-size: clamp(14.5px, 1.9vw, 16.5px); letter-spacing: .05em; line-height: 2.1;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }

/* FVのカード扇(言葉を削いだぶん、カードが主役) */
.hero-fan { display: flex; justify-content: center; margin: 40px 0 6px; }
.hero-fan img {
  width: clamp(120px, 34vw, 168px); height: auto; aspect-ratio: 152 / 244;
  object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(168, 132, 78, 0.5);
  box-shadow: 0 16px 36px rgba(28, 35, 51, 0.28);
  margin: 0 -20px;
  transform: rotate(var(--r)) translateY(calc(var(--r) * 0.6));
  animation: fanFloat 5s ease-in-out infinite;
  animation-delay: var(--d);
}
.hero-fan img:nth-child(2) { z-index: 2; }
@keyframes fanFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* 会員向けパーソナルFV(間延びさせない) */
.hero.hero-member { min-height: min(46vh, 430px); }
.hero-member .hero-content { padding: 44px 24px; }
.hero-streak {
  margin-top: 18px; font-size: 13px; color: var(--muted); letter-spacing: .1em;
}
.nw { white-space: nowrap; }
.hero-title-member {
  font-size: clamp(27px, 4.6vw, 46px); line-height: 1.6; font-weight: 700;
}
.hero-score {
  display: flex; align-items: center; justify-content: center;
  gap: 10px 16px; flex-wrap: wrap; margin-top: 20px;
}
.hs-num {
  font-family: var(--num-display); font-size: 62px; font-weight: 600; line-height: 1;
  color: var(--gold-bright); letter-spacing: .01em;
  font-variant-numeric: lining-nums;
}
.hs-denom { color: var(--muted); font-size: 15px; margin-left: -8px; }
.hero-register-hint {
  margin-top: 22px; font-size: 14.5px; color: var(--muted); letter-spacing: .04em;
}
.hero-register-hint button {
  border: none; background: none; color: var(--gold-bright); font-size: 14.5px;
  text-decoration: underline; text-underline-offset: 3px; padding: 0;
}

.hero-action {
  margin-top: 14px; font-family: var(--serif); font-size: 15.5px;
  color: var(--muted); letter-spacing: .05em;
  text-wrap: balance; max-width: 34ch; margin-inline: auto;
}
.hero-action strong { color: var(--gold-bright); font-weight: 700; }
.milestone {
  margin-top: 12px; font-size: 15px; color: var(--gold-bright);
  letter-spacing: .06em; font-weight: 700;
}

/* ---------- ステータスバー(今日の暦) ---------- */
.status-bar { font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px 28px;
  flex-wrap: wrap;
  padding: 18px 12px; margin: 0 -24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px; color: var(--muted); letter-spacing: .06em;
  background: rgba(255, 255, 255, 0.4);
}
.status-item { display: flex; align-items: center; gap: 8px; }
.status-item .moon { font-size: 16px; }
.status-quote { font-family: var(--serif); color: var(--ink); }
.status-quote::before { content: "「"; color: var(--gold); }
.status-quote::after { content: "」"; color: var(--gold); }

/* ---------- ボタン ---------- */
.btn {
  border: 1px solid transparent; border-radius: 3px;
  padding: 11px 26px; font-size: 15px; font-weight: 700; letter-spacing: .1em;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  position: relative; overflow: hidden;
  border: 1px solid rgba(184, 154, 90, 0.45);
  border-radius: 999px;
  color: #F6F1E6;
  background:
    radial-gradient(150% 220% at 15% 120%, rgba(184, 154, 90, 0.5), transparent 55%),
    radial-gradient(170% 240% at 90% -40%, rgba(109, 95, 201, 0.36), transparent 58%),
    radial-gradient(130% 180% at 60% 130%, rgba(46, 140, 126, 0.2), transparent 60%),
    linear-gradient(140deg, #1B2236, #27314F 55%, #182036);
  background-size: 220% 220%, 220% 220%, 220% 220%, 100% 100%;
  box-shadow: 0 10px 26px rgba(28, 35, 51, 0.28);
  animation: ctaDrift 8s ease-in-out infinite;
}
.btn-primary::before { /* 星屑の瞬き */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 35%, rgba(239, 233, 220, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 68% 24%, rgba(217, 192, 138, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 64%, rgba(239, 233, 220, 0.7) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 40% 74%, rgba(217, 192, 138, 0.7) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 55% 48%, rgba(239, 233, 220, 0.55) 0 0.7px, transparent 1.2px);
  animation: ctaTwinkle 3.4s ease-in-out infinite;
}
.btn-primary::after { /* ときどき、すっと走る光 */
  content: ""; position: absolute; top: 0; bottom: 0; width: 42%; left: -62%;
  background: linear-gradient(100deg, transparent, rgba(239, 233, 220, 0.2), transparent);
  transform: skewX(-18deg);
  animation: ctaSweep 5.6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 192, 138, 0.85);
  box-shadow: 0 14px 36px rgba(184, 154, 90, 0.35);
}
@keyframes ctaDrift {
  0%, 100% { background-position: 0% 100%, 100% 0%, 50% 100%, 0 0; }
  50% { background-position: 70% 30%, 30% 60%, 20% 40%, 0 0; }
}
@keyframes ctaTwinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes ctaSweep {
  0%, 62% { left: -62%; }
  88%, 100% { left: 135%; }
}
.btn-ghost {
  background: transparent; color: var(--indigo); border-color: rgba(28, 35, 51, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-lg { padding: 16px 36px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- ベント―メニュー「六つの観測」 ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.bento-card {
  position: relative; overflow: hidden; text-align: left;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("../assets/site/card_texture.webp") center / cover;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 24px 20px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-soft);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  box-shadow: var(--shadow-lift);
}
.bento-card h3 {
  font-family: var(--serif); font-size: 19.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--indigo);
  position: relative; padding-bottom: 10px; margin-bottom: 2px;
}
.bento-card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 1px; background: var(--gold); opacity: .65;
  transition: width .3s ease;
}
.bento-card:hover h3::after { width: 48px; }
.bento-card p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }
.bento-icon {
  height: 54px; width: auto; align-self: flex-start;
  margin-bottom: 14px; opacity: .92;
  transition: transform .35s ease;
}
.bento-card:hover .bento-icon { transform: scale(1.06) rotate(-2deg); }
.bento-glyph {
  position: absolute; top: -14px; right: 2px;
  font-family: var(--serif); font-size: 96px; line-height: 1; font-weight: 500;
  color: color-mix(in srgb, var(--hue) 16%, transparent);
  transition: color .3s ease, transform .4s ease;
  pointer-events: none;
}
.bento-card:hover .bento-glyph {
  color: color-mix(in srgb, var(--hue) 30%, transparent);
  transform: rotate(-6deg) scale(1.05);
}
.bento-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--gold-bright);
  margin-top: auto; padding-top: 14px;
}
.bento-link::after { content: "→"; transition: transform .25s ease; }
.bento-card:hover .bento-link::after { transform: translateX(4px); }
.bento-main { grid-column: span 2; grid-row: span 2; padding: 34px 30px; }
.bento-main .bento-glyph { font-size: 180px; top: -22px; right: 10px; }
.bento-main h3 { font-size: 28px; }
.bento-main p { font-size: 14px; max-width: 40ch; }
.bento-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--chamber-gold-bright); border: 1px solid rgba(184, 154, 90, 0.55);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 10px;
}
.bento-wide { grid-column: 1 / -1; flex-direction: column; }
.bento-wide p { max-width: 46ch; }

/* タロット主役カード:観測所に開いた「夜の窓」(儀式の間の予告) */
.bento-art {
  min-height: 300px;
  background:
    linear-gradient(78deg, rgba(14, 19, 40, 0.97) 38%, rgba(14, 19, 40, 0.72) 64%, rgba(14, 19, 40, 0.18)),
    url("../images/tarot/tarot_10_wheel_of_fortune.webp") right 24% / cover no-repeat;
  border-color: rgba(28, 35, 51, 0.5);
}
.bento-art:hover {
  background:
    linear-gradient(78deg, rgba(10, 16, 38, 0.93) 30%, rgba(10, 16, 38, 0.5) 62%, rgba(10, 16, 38, 0.06)),
    url("../images/tarot/tarot_10_wheel_of_fortune.webp") right 22% / cover no-repeat;
}
.bento-main { justify-content: flex-end; }
.bento-art h3 { font-size: 28px; color: var(--chamber-ink); }
.bento-art h3::after { background: var(--chamber-gold); }
.bento-art p { max-width: 30ch; font-size: 14.5px; color: var(--chamber-muted); }
.bento-art .bento-link { color: var(--chamber-gold-bright); }

/* ---------- フィロソフィー ---------- */
.philosophy { text-align: center; margin: 96px auto 24px; max-width: 640px; }
.philosophy-line {
  font-family: var(--serif); font-size: clamp(16.5px, 4.4vw, 26px);
  letter-spacing: .1em; line-height: 2.1; color: var(--indigo);
}
.philosophy-line em { font-style: normal; color: var(--gold-bright); }
.philosophy-sub { color: var(--muted); font-size: 13.5px; margin-top: 20px; letter-spacing: .05em; }

/* ---------- パネル / フォーム ---------- */
.panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("../assets/site/card_texture.webp") center / cover;
  border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 30px;
  max-width: 720px; margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.form-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
form.form-quiet { opacity: .55; transition: opacity .3s ease; }
form.form-quiet:hover, form.form-quiet:focus-within { opacity: 1; }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.field-label em {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--gold-bright); border: 1px solid rgba(168, 132, 78, 0.5);
  border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.field { min-width: 0; }
.field input, .field select {
  width: 100%; min-width: 0;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 13px 14px; color: var(--ink);
  font-size: 16px; font-family: inherit; outline: none;
  transition: border-color .25s ease;
  color-scheme: light;
}
.field input:focus, .field select:focus { border-color: var(--gold); }

/* ---------- 結果エリア ---------- */
.result-area { max-width: 880px; margin: 32px auto 0; scroll-margin-top: 84px; }
.reveal-item { animation: viewIn .6s ease backwards; }

.result-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("../assets/site/card_texture.webp") center / cover;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 44px 40px; margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}
.result-hero::before {
  content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.result-symbol {
  position: absolute; top: 50%; right: -10px; transform: translateY(-50%);
  font-family: var(--serif); font-size: 190px; line-height: 1;
  color: rgba(168, 132, 78, 0.10); pointer-events: none;
  font-weight: 500;
}
.result-eyebrow {
  font-family: var(--latin);
  font-size: 13.5px; font-weight: 600; letter-spacing: .36em; color: var(--gold);
  margin-bottom: 12px; text-transform: uppercase;
}
.result-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .05em; text-wrap: balance;
  color: var(--indigo);
}
.result-keyword {
  font-family: var(--serif); color: var(--gold-bright); font-size: 16px;
  margin-top: 8px; letter-spacing: .14em;
}
.result-lead { color: var(--muted); font-size: 16.5px; max-width: 56ch; margin-top: 16px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  font-size: 14px; font-weight: 500; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--ink); letter-spacing: .05em;
  background: var(--bg);
}
.chip strong { color: var(--gold-bright); font-weight: 700; }

/* 結果カード:小見出しを罫線で仕切る帳面スタイル */
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.result-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
    url("../assets/site/card_texture.webp") center / cover;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-soft);
}


/* 四柱の柱表示 */
.pillars { display: flex; gap: 12px; justify-content: space-around; margin: 6px 0 16px; }
.pillar { text-align: center; flex: 1; }
.pillar .p-label { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.pillar .p-kanji {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 700;
  letter-spacing: .1em; color: var(--indigo); line-height: 1.4;
  display: block; margin-top: 6px;
}
.pillar.is-day .p-kanji { color: var(--gold-bright); }
.pillar.is-day .p-label { color: var(--gold); }

/* スコアメーター */
.meter-list { display: flex; flex-direction: column; gap: 14px; }
.meter { display: grid; grid-template-columns: 66px 1fr 40px; gap: 12px; align-items: center; }
.meter-label { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.meter-track { height: 9px; border-radius: 99px; background: rgba(28, 35, 51, 0.09); overflow: hidden; }
.meter-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  width: 0; transition: width 1s cubic-bezier(.22, 1, .36, 1);
}
.meter-fill.lo { background: linear-gradient(90deg, #9aa0ad, #b8bcc6); }
.meter-fill.mid { background: linear-gradient(90deg, #b09a6e, #c9b489); }
.meter-fill.hi { box-shadow: 0 0 10px rgba(168, 132, 78, 0.5); }
.meter-value {
  font-family: var(--num); font-size: 17px; font-weight: 900;
  color: var(--gold-bright); text-align: right;
  font-variant-numeric: tabular-nums;
}
.meter-value.lo { color: var(--muted); }
.meter-value.mid { color: #a08c5e; }

.total-score { text-align: center; margin-bottom: 14px; }
.total-score .num {
  font-family: var(--num-display); font-size: 58px; font-weight: 600;
  color: var(--gold-bright); font-variant-numeric: lining-nums;
}
.total-score .denom { color: var(--muted); font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 4px; font-size: 15px; }
.stars .off { color: rgba(28, 35, 51, 0.16); }

/* ラッキー情報 */
.lucky-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.lucky-item { padding: 4px 16px; border-left: 1px solid var(--hairline); }
.lucky-item:first-child { border-left: none; padding-left: 0; }
.lucky-item .k { display: block; font-size: 11px; color: var(--muted); letter-spacing: .18em; }
.lucky-item .v {
  font-family: var(--serif); font-size: 17.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--indigo);
}

/* ---------- 回遊導線 ---------- */
.crosslinks {
  margin-top: 26px; padding: 22px 26px;
  border: 1px dashed rgba(168, 132, 78, 0.45); border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
}
.crosslinks-label {
  font-family: var(--serif); font-size: 16px; letter-spacing: .12em; color: var(--gold-bright);
}
.crosslinks button {
  border: 1px solid var(--hairline); background: var(--surface); border-radius: 999px;
  padding: 9px 20px; font-size: 15px; font-weight: 500; color: var(--ink);
  transition: border-color .25s ease, color .25s ease;
}
.crosslinks button:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- ホーム「今日のあなた」 ---------- */
.home-daily-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(168, 132, 78, 0.4);
  background: linear-gradient(120deg, rgba(168, 132, 78, 0.08), var(--surface) 65%);
  border-radius: var(--radius); padding: 20px 26px;
  max-width: 760px; margin: 40px auto 0;
}
.home-daily-left { display: flex; align-items: center; gap: 16px; }
.home-daily-symbol { font-family: var(--serif); font-size: 36px; color: var(--gold-bright); line-height: 1; }
.home-daily-title { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.home-daily-sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.home-daily-right { display: flex; align-items: center; gap: 18px; }
.home-daily-score {
  font-family: var(--num-display); font-size: 34px; font-weight: 600; color: var(--gold-bright);
  font-variant-numeric: lining-nums; line-height: 1;
}
.home-daily-score small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- タロット(共通部品) ---------- */
.tarot-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 32px;
}
.seg { display: flex; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.seg-btn {
  white-space: nowrap;
  border: none; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  transition: all .25s ease;
}
.seg-btn.active { background: var(--indigo); color: var(--bg); }

.tarot-board { display: block; min-height: 270px; }
.tarot-slot { text-align: center; }
.tarot-slot-label {
  font-size: 11px; font-weight: 700; letter-spacing: .26em;
  color: var(--gold); margin-bottom: 12px;
}

/* ---------- タロット: 場のスロットと絵札 ---------- */
.tarot-guide {
  text-align: center; font-family: var(--serif);
  color: var(--muted); font-size: 16.5px; letter-spacing: .06em;
  max-width: 560px; margin: -8px auto 30px; line-height: 2;
}
.tarot-slots { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tarot-slot-label small {
  display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  color: var(--muted); letter-spacing: .08em; margin-top: 2px;
}
.tarot-slot-empty {
  width: 152px; height: 244px; border-radius: 10px;
  border: 1px dashed rgba(168, 132, 78, 0.45);
  display: grid; place-items: center;
  color: rgba(168, 132, 78, 0.5); font-size: 20px;
}

/* 絵札そのものは常に「夜の物体」— 明るい頁の上でも札は札のまま */
.tarot-reveal {
  position: relative;
  width: 152px; height: 244px; border-radius: 10px;
  border: 1px solid rgba(184, 154, 90, 0.55);
  background: linear-gradient(172deg, #141833, #0e1226);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 10px; gap: 3px;
  box-shadow: 0 14px 34px rgba(28, 35, 51, 0.35);
  animation: cardReveal .8s cubic-bezier(.2, .8, .3, 1);
}
.tarot-reveal::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 192, 138, 0.5), transparent 62%);
  animation: glowBurst 1.1s ease-out forwards; pointer-events: none; z-index: -1;
}
.tarot-slot-body .tarot-reveal::before { content: none; } /* ページ内でははみ出しの原因になるため儀式の間のみ */
@keyframes glowBurst {
  0% { transform: scale(.3); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes cardReveal {
  0% { transform: perspective(900px) rotateY(95deg) scale(.85); opacity: 0; }
  55% { transform: perspective(900px) rotateY(-12deg) scale(1.04); opacity: 1; }
  100% { transform: rotateY(0) scale(1); }
}
.daily-note { border-color: rgba(168, 132, 78, 0.45); text-align: center; }
.daily-note p { font-family: var(--serif); letter-spacing: .04em; }

@keyframes fanPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(217, 192, 138, 0.12); }
  50% { box-shadow: 0 0 20px rgba(217, 192, 138, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card { animation: none; }
}

/* 結果カード:サムネ+見出しの段と、全幅の詳細の段 */
.tp-body { display: grid; grid-template-columns: 92px 1fr; gap: 14px 18px; align-items: center; }
.tp-thumb {
  width: 92px; height: 148px; object-fit: cover;
  border-radius: 7px; border: 1px solid rgba(168, 132, 78, 0.5);
  box-shadow: 0 6px 18px rgba(28, 35, 51, 0.28);
}
.tp-thumb.is-rev { transform: rotate(180deg); }
.tp-head { min-width: 0; }
.tp-name {
  font-family: var(--serif); font-size: clamp(19px, 4.6vw, 23px); font-weight: 700;
  letter-spacing: .04em; color: var(--indigo); line-height: 1.5;
}
.tp-ori-line { margin-top: 6px; }
.tp-detail { grid-column: 1 / -1; min-width: 0; }

/* 会員FVの今日の一枚チップ */
.chip-card { display: inline-flex; align-items: center; gap: 8px; }
.chip-card img {
  width: 24px; height: 38px; object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(168, 132, 78, 0.5);
}
.chip-card img.is-rev { transform: rotate(180deg); }
.chip-cta { border-color: rgba(168, 132, 78, 0.55); color: var(--gold-bright); cursor: pointer; }

/* ---------- タロット儀式フロー(共通) ---------- */
.ritual-step { text-align: center; animation: viewIn .5s ease; }
.ritual-eyebrow {
  font-family: var(--latin); font-size: 13px; font-weight: 600;
  letter-spacing: .38em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.ritual-title { font-family: var(--serif); font-size: clamp(19px, 3vw, 24px); font-weight: 700; letter-spacing: .05em; margin-bottom: 22px; color: var(--indigo); }
.ritual-inst { font-size: 16px; color: var(--muted); letter-spacing: .05em; margin-bottom: 20px; line-height: 2; }
.ritual-inst strong { color: var(--gold-bright); }
.ritual-hint { font-size: 13.5px; color: var(--muted); margin-top: 16px; letter-spacing: .06em; }

/* スプレッド選択:夜の窓 — 目的に響き合うアルカナが仄かに透ける */
.spread-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.spread-opt {
  position: relative; overflow: hidden;
  text-align: left; border: 1px solid rgba(28, 35, 51, 0.45); border-radius: 12px;
  background-color: var(--chamber);
  padding: 20px 18px 16px; min-height: 118px;
  display: flex; flex-direction: column; gap: 3px; justify-content: flex-end;
  transition: border-color .3s ease, box-shadow .3s ease, filter .3s ease;
}
.spread-opt[data-spread="daily"] {
  background-image:
    linear-gradient(80deg, rgba(10, 16, 38, 0.96) 40%, rgba(10, 16, 38, 0.78) 62%, rgba(10, 16, 38, 0.3)),
    url("../images/tarot/tarot_19_sun.webp");
  background-position: center, right 20%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.spread-opt[data-spread="three"] {
  background-image:
    linear-gradient(80deg, rgba(10, 16, 38, 0.96) 40%, rgba(10, 16, 38, 0.78) 62%, rgba(10, 16, 38, 0.3)),
    url("../images/tarot/tarot_10_wheel_of_fortune.webp");
  background-position: center, right 24%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.spread-opt[data-spread="celtic"] {
  background-image:
    linear-gradient(84deg, rgba(10, 16, 38, 0.97) 44%, rgba(10, 16, 38, 0.84) 68%, rgba(10, 16, 38, 0.32)),
    url("../images/tarot/tarot_18_moon.webp");
  background-position: center, right 18%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
/* 上端の細い金のヘアライン(窓の桟) */
.spread-opt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 192, 138, 0.55), transparent);
  opacity: .6; transition: opacity .3s ease;
}
/* タップで即はじまる合図の矢印 */
.spread-opt::after {
  content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--latin); font-size: 18px; color: var(--chamber-gold-bright);
  opacity: .75; transition: transform .25s ease, opacity .25s ease;
  text-shadow: 0 1px 8px rgba(10, 16, 38, 0.9);
}
.spread-opt:hover::after { transform: translate(4px, -50%); opacity: 1; }
.spread-opt:hover { border-color: rgba(184, 154, 90, 0.45); filter: brightness(1.06); }
.spread-opt.active {
  border-color: rgba(217, 192, 138, 0.75);
  box-shadow: inset 0 0 0 1px rgba(217, 192, 138, 0.35), 0 10px 28px rgba(10, 16, 38, 0.28);
  filter: brightness(1.08);
}
.spread-opt.active::before { opacity: 1; }
.so-purpose {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  letter-spacing: .04em; color: var(--chamber-ink); line-height: 1.7;
  text-shadow: 0 1px 10px rgba(10, 16, 38, 0.8);
}
.spread-opt.active .so-purpose { color: var(--chamber-gold-bright); }
.so-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.so-name { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--chamber-muted); }
.so-count { font-style: normal; font-family: var(--num); font-size: 11px; font-weight: 700; color: var(--chamber-gold-bright); }
.so-pips { display: inline-flex; gap: 2.5px; }
.so-pips i {
  width: 8px; height: 13px; border-radius: 2px;
  background: linear-gradient(165deg, #232a58, #141b3f);
  border: 1px solid rgba(217, 192, 138, 0.55);
}
.spread-opt.active .so-pips i {
  border-color: rgba(217, 192, 138, 0.9);
  box-shadow: 0 0 6px rgba(217, 192, 138, 0.55);
}
.so-desc {
  font-size: 12.5px; color: var(--chamber-muted); line-height: 1.75; margin-top: 7px;
  max-width: 52ch; text-shadow: 0 1px 8px rgba(10, 16, 38, 0.85);
}
.spread-opt.spread-deep { grid-column: 1 / -1; min-height: 150px; }
.so-tag {
  font-family: var(--latin); font-size: 10px; font-weight: 700; letter-spacing: .24em;
  color: var(--chamber-gold-bright); border: 1px solid rgba(217, 192, 138, 0.5);
  border-radius: 999px; padding: 1px 9px; margin-left: 10px; vertical-align: 2px;
  background: rgba(10, 16, 38, 0.55);
}
.genre-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.genre-label { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.ritual-question {
  width: 100%; background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 13px 14px; color: var(--ink); font-size: 16px;
  font-family: inherit; outline: none; transition: border-color .25s ease;
}
.ritual-question:focus { border-color: var(--gold); }

/* カード裏面(紺×金・画像があれば差し替え) */
.tback {
  width: 96px; height: 156px; border-radius: 9px;
  border: 1px solid rgba(184, 154, 90, 0.5);
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 192, 138, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 55%, rgba(217, 192, 138, 0.18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 62%, rgba(217, 192, 138, 0.18) 0 1.5px, transparent 2.5px),
    conic-gradient(from 45deg at 50% 50%, #12183a 0 25%, #1b2148 0 50%, #12183a 0 75%, #1b2148 0 100%);
  box-shadow: inset 0 0 0 4px rgba(184, 154, 90, 0.12);
  display: grid; place-items: center;
  color: rgba(217, 192, 138, 0.7); font-size: 16px;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.tarot-back-art .tback { background: url("../images/tarot/tarot_back.webp") center/cover no-repeat; }
.tarot-back-art .tback span { visibility: hidden; }

/* ============================================================
   儀式の間 — フルスクリーンの夜(タロット・オーバーレイ)
   明るい観測所から、扉一枚で深い紺の間へ。
   ============================================================ */
body.ritual-open { overflow: hidden; }
.ritual-overlay[hidden] { display: none; }
.ritual-overlay {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(184, 154, 90, 0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(28, 35, 51, 0.9), transparent 70%),
    linear-gradient(175deg, var(--chamber), var(--chamber-2) 60%, var(--chamber));
  color: var(--chamber-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column;
  animation: chamberIn .55s ease;
}
@keyframes chamberIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ritual-overlay::before { /* 静かな星粒 */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(217, 192, 138, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(239, 233, 220, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 74%, rgba(217, 192, 138, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 82%, rgba(239, 233, 220, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 58%, rgba(217, 192, 138, 0.3) 0 1px, transparent 2px);
  opacity: .8;
}
.ritual-close {
  position: fixed; top: 16px; right: 16px; z-index: 102;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(239, 233, 220, 0.3); background: rgba(10, 16, 38, 0.5);
  color: var(--chamber-muted); font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transition: color .25s ease, border-color .25s ease;
}
.ritual-close:hover { color: var(--chamber-ink); border-color: var(--chamber-gold); }
.ritual-screen {
  flex: 1; width: 100%;
  display: grid; place-items: center;
  grid-template-columns: 100%; /* トラックを画面幅に固定(コンテンツ幅で広がるのを防ぐ) */
  padding: 46px 12px 14px;
  overflow-x: clip;
}
.ritual-screen .ritual-step { width: 100%; max-width: 860px; justify-self: center; min-width: 0; }

/* 夜の間の中では文字は月色に */
.ritual-overlay .ritual-eyebrow { color: var(--chamber-gold-bright); }
.ritual-overlay .ritual-title { color: var(--chamber-ink); }
.ritual-overlay .ritual-inst { color: #CBD0E0; }
.ritual-overlay .ritual-inst strong { color: var(--chamber-gold-bright); }
.ritual-overlay .ritual-hint { color: var(--chamber-muted); }
.ritual-overlay .tarot-slot-label { color: var(--chamber-gold); }
.ritual-overlay .tarot-slot-label small { color: var(--chamber-muted); }
.ritual-overlay .tarot-slot-empty {
  border-color: rgba(184, 154, 90, 0.4);
  color: rgba(217, 192, 138, 0.5);
}

/* 浮かび上がる文字 */
.emerge {
  animation: textEmerge 1.1s cubic-bezier(.2, .7, .3, 1) backwards;
  animation-delay: var(--ed, 0s);
}
@keyframes textEmerge {
  0% { opacity: 0; transform: translateY(14px); filter: blur(7px); letter-spacing: .3em; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* シャッフル */
.shuffle-stack {
  position: relative; width: 150px; height: 240px; margin: 26px auto 8px;
  cursor: pointer; touch-action: none;
}
.shuffle-stack .tback.sc {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: shufSlow var(--shuf-dur, 3.8s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.5s);
}
.shuffle-stack.stopped .tback.sc { animation: none; transform: translate(calc(var(--i) * 0.6px), calc(var(--i) * -0.8px)); transition: transform .3s ease; }
@keyframes shufSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, -6px) rotate(-5deg); }
  50% { transform: translate(4px, 4px) rotate(2deg); }
  75% { transform: translate(30px, -5px) rotate(5deg); }
}

/* カット(3つの山) */
.cut-piles { display: flex; gap: 26px; justify-content: center; margin: 26px 0 10px; flex-wrap: wrap; }
.cut-pile {
  position: relative; width: 110px; height: 190px;
  border: none; background: none; padding: 0;
  transition: transform .25s ease, opacity .35s ease;
}
.cut-pile .tback.cp { position: absolute; left: 0; top: 0; width: 96px; height: 156px; }
.cut-pile .cp1 { transform: translate(0, 12px) rotate(-3deg); }
.cut-pile .cp2 { transform: translate(5px, 6px) rotate(1deg); }
.cut-pile .cp3 { transform: translate(10px, 0) rotate(4deg); }
.cut-pile:hover { transform: translateY(-8px); }
.cut-pile.chosen { transform: translateY(-14px) scale(1.06); }
.cut-pile.chosen .tback { box-shadow: 0 0 26px rgba(217, 192, 138, 0.55), inset 0 0 0 4px rgba(184, 154, 90, 0.28); }
.cut-pile.faded { opacity: .25; }
.cut-label {
  position: absolute; left: 0; right: 0; bottom: -4px;
  font-size: 12.5px; color: var(--chamber-muted); letter-spacing: .1em;
}

/* ドロー:カルーセル(この帯だけが横スクロールする) */
.draw-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 26px 24px 30px;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  transition: opacity .7s ease;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  max-width: 100%;
}
.draw-strip::-webkit-scrollbar { display: none; }
.draw-strip.fan-done { opacity: 0; pointer-events: none; }
.tback.draw-card {
  flex: 0 0 96px; width: 96px; height: 154px;
  scroll-snap-align: center;
  transition: transform .22s ease, opacity .4s ease, box-shadow .25s ease;
  animation: fanPulse 2.8s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * -0.4s);
  cursor: pointer;
}
.tback.draw-card:hover, .tback.draw-card:focus-visible {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(217, 192, 138, 0.5);
  z-index: 2;
}
.tback.draw-card.taken { opacity: .14; pointer-events: none; transform: translateY(-30px) scale(.7); }

/* ドロー進捗(多枚数スプレッドはスロットの代わりに小さなチップで) */
.draw-progress { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin: 0 0 4px; }
.draw-progress .dp {
  width: 26px; height: 40px; border-radius: 4px;
  border: 1px dashed rgba(184, 154, 90, 0.45);
  transition: all .3s ease;
}
.draw-progress .dp.done {
  border: 1px solid rgba(184, 154, 90, 0.7);
  background: linear-gradient(165deg, #12183a, #1b2148);
  box-shadow: 0 0 10px rgba(217, 192, 138, 0.4);
}

/* スロット上の裏向きカード+溜め */
.tback.slot-back { width: 152px; height: 244px; border-radius: 10px; margin: 0 auto; }
.tback.charging { animation: charge .8s ease-in-out forwards; }
@keyframes charge {
  0% { box-shadow: inset 0 0 0 4px rgba(184, 154, 90, 0.12); transform: scale(1); }
  60% { box-shadow: 0 0 34px rgba(217, 192, 138, 0.65), inset 0 0 0 5px rgba(184, 154, 90, 0.4); transform: scale(1.04); }
  100% { box-shadow: 0 0 46px rgba(217, 192, 138, 0.9); transform: scale(1.02); }
}

/* ---- リビール:一枚ずつ全画面でカードと向き合う ---- */
.rv-stage {
  min-height: calc(100dvh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; width: 100%;
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.rv-count {
  font-family: var(--latin); font-size: 13px; letter-spacing: .5em;
  color: var(--chamber-muted);
}
.rv-label {
  font-family: var(--latin); font-size: clamp(17px, 3vw, 22px); font-weight: 600;
  letter-spacing: .5em; color: var(--chamber-gold); text-transform: uppercase;
  padding-left: .5em; /* 字間の右余白ぶんを相殺して視覚中央に */
}
.rv-label-ja { font-family: var(--serif); font-size: 15px; color: var(--chamber-muted); letter-spacing: .18em; margin-top: -10px; }
.rv-card {
  position: relative;
  /* 高さから逆算して、ラベル+言葉ごと1画面に必ず収める */
  height: min(42dvh, 380px);
  max-width: 76vw;
  aspect-ratio: 152 / 244;
  margin: 8px 0 2px;
}
.rv-card .tback.slot-back,
.rv-card .tarot-reveal { width: 100%; height: 100%; }
.rv-card .tarot-reveal { box-shadow: 0 0 60px rgba(217, 192, 138, 0.3), 0 26px 60px rgba(0, 0, 0, 0.6); }
.rv-card .tface { display: none; } /* まずカードだけを見せる。言葉は後から浮かぶ */
.rv-card .tarot-reveal.no-art .tface { display: flex; } /* 画像なしの時だけ文字面 */
.rv-text { min-height: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rv-no { font-family: var(--latin); font-size: 14px; letter-spacing: .5em; color: var(--chamber-gold); padding-left: .5em; }
.rv-name {
  font-family: var(--serif); font-size: clamp(22px, 5vw, 32px); font-weight: 700;
  letter-spacing: .1em; color: var(--chamber-ink); line-height: 1.5;
}
.rv-en { font-family: var(--latin); font-size: 13px; letter-spacing: .34em; color: var(--chamber-muted); text-transform: uppercase; }
.rv-ori {
  margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  padding: 3px 16px; border-radius: 999px;
}
.rv-ori.up { border: 1px solid rgba(94, 234, 212, 0.45); color: #5eead4; }
.rv-ori.rev { border: 1px solid rgba(232, 121, 166, 0.45); color: #e879a6; }
.rv-hint {
  font-size: 13px; color: var(--chamber-muted); letter-spacing: .2em;
  animation: hintPulse 2.2s ease-in-out infinite;
}
.rv-skip {
  margin-top: 4px;
  border: 1px solid rgba(239, 233, 220, 0.22); border-radius: 999px;
  background: none;
  font-family: var(--latin); font-size: 11px; font-weight: 600;
  color: var(--chamber-muted); letter-spacing: .3em;
  padding: 6px 16px 6px 19px;
  transition: color .25s ease, border-color .25s ease;
}
.rv-skip:hover { color: var(--chamber-gold-bright); border-color: rgba(184, 154, 90, 0.6); }
/* フリップの瞬間:広がる光の環+舞う火花+間全体が一瞬明るむ */
.rv-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.rv-ring {
  position: absolute; left: 50%; top: 50%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  border: 2px solid rgba(217, 192, 138, 0.85);
  animation: rvRing 1.05s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes rvRing {
  0% { transform: scale(.3); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: scale(8); opacity: 0; border-width: 1px; }
}
.rv-spark {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #D9C08A; opacity: 0;
  transform: rotate(var(--sa)) translateY(-30px);
  animation: rvSpark 1.15s cubic-bezier(.15, .6, .4, 1) forwards;
  animation-delay: var(--sd, 0s);
}
@keyframes rvSpark {
  0% { transform: rotate(var(--sa)) translateY(-30px) scale(1); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: rotate(var(--sa)) translateY(calc(-1 * var(--sr))) scale(.15); opacity: 0; }
}
.ritual-overlay.flash::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(217, 192, 138, 0.4), rgba(217, 192, 138, 0.08) 45%, transparent 70%);
  animation: rvFlash .75s ease-out forwards;
}
@keyframes rvFlash {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hintPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* カード表面(画像があれば絵札、なければ文字デザイン) */
.tarot-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 9px;
}
.tarot-reveal.is-rev .tarot-art { transform: rotate(180deg); }
.tarot-reveal.no-art .tarot-art { display: none; }
.tface {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 44px 8px 12px;
  background: linear-gradient(transparent, rgba(10, 13, 29, 0.95) 58%);
  border-radius: 0 0 9px 9px;
  overflow: hidden; text-align: center;
}
.tarot-reveal.no-art .tface {
  position: static; background: none; padding: 16px 10px; gap: 3px;
  justify-content: center; height: 100%;
}
.tface .no { font-family: var(--latin); font-size: 13px; letter-spacing: .3em; color: var(--chamber-gold-bright); }
.tface .sym { display: none; font-size: 44px; margin: 8px 0 4px; }
.tarot-reveal.no-art .sym { display: block; }
.tface .nm { font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #efe9dc; line-height: 1.5; }
.tface .en { font-size: 9.5px; letter-spacing: .1em; color: #9aa0b8; text-transform: uppercase; }
.tface .ori { margin-top: 8px; font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 99px; letter-spacing: .1em; }
.tface .ori.up { border: 1px solid rgba(94, 234, 212, 0.4); color: #5eead4; background: rgba(10,13,29,.5); }
.tface .ori.rev { border: 1px solid rgba(232, 121, 166, 0.4); color: #e879a6; background: rgba(10,13,29,.5); }

/* タロット結果カード:正逆両方の意味とメタ情報 */
.tc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tc-chip {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-bright);
  border: 1px solid rgba(168, 132, 78, 0.4); border-radius: 999px; padding: 1px 10px;
  background: rgba(168, 132, 78, 0.05);
}
.tc-meanings { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.tc-meanings p { font-size: 15px; line-height: 1.85; }
.tc-meanings .tc-dim { opacity: .5; }
.tc-ori {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  border-radius: 3px; padding: 0 7px; margin-right: 8px; vertical-align: 1px;
}
.tc-ori.up { color: var(--teal); border: 1px solid rgba(46, 140, 126, 0.45); }
.tc-ori.rev { color: var(--rose); border: 1px solid rgba(192, 92, 130, 0.45); }
.tc-advice { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.tc-advice strong { color: var(--gold-bright); }
.combo-list { margin-top: 12px; border-top: 1px dashed var(--hairline); padding-top: 10px; }
.combo-list .combo { font-size: 15px; line-height: 1.9; margin-top: 6px; }

/* タロットの結論カード:「つまり、こうです」を言い切る */
.tarot-verdict {
  border-color: rgba(168, 132, 78, 0.55);
  background: linear-gradient(160deg, rgba(168, 132, 78, 0.08), var(--surface) 70%);
}
.tv-word {
  font-family: var(--serif); font-size: clamp(22px, 4.4vw, 30px); font-weight: 700;
  color: var(--indigo); letter-spacing: .06em; line-height: 1.7; text-wrap: balance;
}
.tv-reason { margin-top: 10px; }
.tv-action {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: rgba(168, 132, 78, 0.08); border: 1px dashed rgba(168, 132, 78, 0.45);
  font-size: 15.5px;
}
.tv-action strong { color: var(--gold-bright); }

/* 今日の占い:きょうのマインド(結論は最後に) */
.mind-card {
  border-color: rgba(168, 132, 78, 0.55);
  background:
    linear-gradient(160deg, rgba(168, 132, 78, 0.1), rgba(255, 255, 255, 0.94) 55%),
    url("../assets/site/card_texture.webp") center / cover;
}
.mind-word {
  font-family: var(--serif); font-size: clamp(24px, 5.4vw, 34px); font-weight: 700;
  color: var(--indigo); letter-spacing: .05em; line-height: 1.75; text-wrap: balance;
  text-align: center; margin: 6px 0 18px;
}
.mind-point { font-size: 15.5px; line-height: 1.95; padding: 10px 0; border-top: 1px solid var(--hairline); }
.mp-k {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--gold-bright); border: 1px solid rgba(168, 132, 78, 0.45);
  border-radius: 999px; padding: 1px 10px; margin-right: 10px; vertical-align: 2px;
}
.mind-sendoff {
  margin-top: 16px; text-align: center; font-family: var(--serif);
  color: var(--gold-bright); letter-spacing: .16em; font-size: 15px;
}
.draw-cta { text-align: center; border-style: dashed; border-color: rgba(168, 132, 78, 0.5); }

/* 結果 */
.tarot-q {
  font-family: var(--serif); font-size: 16.5px; color: var(--gold-bright);
  letter-spacing: .05em; margin-bottom: 10px;
}
.yn-card { text-align: center; border-color: rgba(168, 132, 78, 0.45); }
.yn-answer {
  font-family: var(--latin); font-size: 74px; font-weight: 700; line-height: 1.1;
  letter-spacing: .12em;
}
.yn-answer.yes { color: var(--teal); }
.yn-answer.no { color: var(--rose); }

/* 儀式中(ドロー時)はスロットをコンパクトに保ち、扇を画面内に収める */
@media (max-width: 720px) {
  .ritual-step .tarot-slots { gap: 12px; margin-bottom: 14px; }
  .ritual-step .tarot-slot-empty,
  .ritual-step .tback.slot-back { width: 88px; height: 142px; }
  .ritual-step .tarot-slot-label { font-size: 11px; }
  .ritual-step .tarot-slot-label small { font-size: 11px; }
}

@media (max-width: 720px) {
  .result-card { padding: 22px 18px 20px; }
  .result-hero { padding: 30px 20px; }
  /* 儀式完了ビューのカード一覧をコンパクトに */
  .ritual-step .tarot-reveal { width: 88px; height: 142px; padding: 8px 4px; }
  .ritual-step .tface { padding: 18px 3px 6px; }
  .ritual-step .tface .nm { font-size: 10px; letter-spacing: 0; }
  .ritual-step .tface .en { display: none; }
  .ritual-step .tface .no { font-size: 9px; letter-spacing: .15em; }
  .ritual-step .tface .ori { font-size: 8.5px; padding: 1px 7px; margin-top: 2px; }
  .ritual-step .tarot-slots { gap: 14px; }
}
@media (max-width: 520px) {
  .spread-picker { grid-template-columns: 1fr; }
  .cut-piles { gap: 12px; }
  .cut-pile { width: 96px; }
}

/* ---------- 生年月日セレクト ---------- */
.bd-select { display: flex; gap: 8px; }
.time-select { display: flex; gap: 8px; }
.time-select select { flex: 1; min-width: 0; }
.bd-select select { flex: 1; min-width: 0; }
.bd-select .bd-y { flex: 1.4; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; letter-spacing: .04em; }

/* ---------- マイページ ---------- */
.week-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.week-day {
  flex: 0 0 104px; text-align: center;
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 6px 10px; background: var(--bg);
  display: flex; flex-direction: column; gap: 3px;
}
.week-day.is-today { border-color: var(--gold); background: rgba(168, 132, 78, 0.08); }
.week-day.is-best { border-color: rgba(168, 132, 78, 0.7); }
.wd-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wd-date small { font-size: 10px; }
.wd-kanshi { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .1em; color: var(--indigo); }
.wd-star { font-size: 13.5px; color: var(--gold-bright); letter-spacing: .06em; }
.wd-badge {
  font-size: 10px; font-weight: 700; color: var(--bg);
  background: var(--gold); border-radius: 99px; padding: 1px 8px;
  align-self: center; margin-top: 3px;
}

.compass-wrap { display: flex; justify-content: center; }
.compass { width: 100%; max-width: 250px; }

.theme-dir {
  font-size: 15.5px; padding: 8px 0; border-top: 1px solid var(--hairline);
  display: flex; gap: 12px; align-items: baseline;
}
.theme-dir span:first-child {
  flex: 0 0 3em; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--gold);
}
.theme-dir strong { color: var(--gold-bright); font-family: var(--serif); }

.mypage-hero { margin-top: 12px; }
.nav-btn-my { color: var(--gold-bright); }

/* マイページ:占い結果と「記録」の区切り */
.mypage-divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 52px 4px 20px; text-align: center;
}
.mypage-divider::before, .mypage-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline));
}
.mypage-divider::after { background: linear-gradient(90deg, var(--hairline), transparent); }
.mypage-divider .md-en {
  font-family: var(--latin); font-size: 11px; font-weight: 600;
  letter-spacing: .34em; color: var(--gold); text-transform: uppercase;
}
.mypage-divider .md-ja { font-family: var(--serif); font-size: 13.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }

/* 記録カード:占い結果(白い鑑定カード)と区別した、平らな台帳スタイル */
.result-card.archive-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(215, 207, 194, 0.8);
  box-shadow: none;
}
.result-card.archive-card h4 { font-size: 12px; color: var(--muted); }
.result-card.archive-card h4 .h4-ja { font-size: 16px; color: var(--ink); }

/* ---------- 今日の結論 ---------- */
.verdict-card { border-color: rgba(168, 132, 78, 0.45); background: linear-gradient(160deg, rgba(168, 132, 78, 0.06), var(--surface)); }
.verdict-main { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.verdict-rank {
  flex: 0 0 auto;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 34px; font-weight: 900; letter-spacing: .04em;
  color: var(--gold-bright);
  border: 2px solid rgba(168, 132, 78, 0.6);
  box-shadow: 0 8px 22px rgba(168, 132, 78, 0.22), inset 0 0 20px rgba(168, 132, 78, 0.08);
  animation: rankIn .8s cubic-bezier(.2, .9, .3, 1.3) backwards;
}
@keyframes rankIn {
  from { transform: scale(.4) rotate(-12deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.verdict-word {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700;
  letter-spacing: .08em; color: var(--indigo);
}
.verdict-advice { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.9; }
.vf-list { border-top: 1px solid var(--hairline); }
.vf-row { display: flex; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.vf-vote { flex: 0 0 20px; text-align: center; font-size: 14px; }
.vf-vote.up { color: var(--gold-bright); }
.vf-vote.down { color: var(--rose); }
.vf-vote.flat { color: var(--muted); }
.vf-body { font-size: 15px; line-height: 1.85; }
.vf-method {
  display: inline-block; font-size: 11.5px; letter-spacing: .12em; color: var(--gold);
  margin-right: 10px; font-weight: 700;
}

/* ---------- ロジックの可視化 ---------- */
.logic-flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin: 6px 0 16px;
}
.lf-node {
  flex: 1 1 110px; max-width: 170px;
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 10px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  background: var(--bg);
}
.lf-node.lf-result {
  border-color: rgba(168, 132, 78, 0.55);
  background: rgba(168, 132, 78, 0.08);
}
.lf-tag { font-size: 12.5px; letter-spacing: .16em; color: var(--muted); }
.lf-main {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 30px); font-weight: 700;
  letter-spacing: .1em; line-height: 1.4; color: var(--indigo);
}
.lf-result .lf-main { color: var(--gold-bright); }
.lf-sub { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.lf-op {
  align-self: center; font-family: var(--latin);
  font-size: 22px; color: var(--gold); font-weight: 600;
}

.explain {
  margin-top: 14px; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg);
}
.explain summary {
  cursor: pointer; padding: 12px 16px;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.explain summary::before { content: "?"; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px;
  border: 1px solid var(--gold); color: var(--gold); font-size: 11px; }
.explain summary::-webkit-details-marker { display: none; }
.explain[open] summary { color: var(--gold-bright); }
.explain p { padding: 0 16px 15px; font-size: 15px; color: var(--muted); line-height: 1.9; }

.legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend .dot-good { background: var(--gold); }
.legend .dot-bad { background: #a25a4d; }
.legend .dot-flat { background: rgba(28, 35, 51, 0.25); }

/* ---------- 運命の称号 ---------- */
.shogo {
  margin: 18px 0 4px; padding: 20px 22px;
  border: 1px solid rgba(168, 132, 78, 0.5); border-radius: 10px;
  background: linear-gradient(150deg, rgba(168, 132, 78, 0.08), transparent 70%);
  position: relative;
}
.shogo::before {
  content: "◉"; position: absolute; top: -12px; left: 22px;
  background: var(--surface); padding: 0 8px; color: var(--gold); font-size: 14px;
}
.shogo-label { font-size: 12.5px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
.shogo-title {
  font-family: var(--serif); font-size: clamp(22px, 3.6vw, 30px); font-weight: 700;
  letter-spacing: .06em; color: var(--indigo); margin-top: 6px;
  text-wrap: balance;
}
.shogo-rarity { font-size: 13.5px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.shogo-rarity strong { color: var(--gold-bright); font-family: var(--num); font-size: 15px; font-weight: 900; }

/* ---------- シェアプレビュー ---------- */
.share-block { margin-top: 24px; text-align: center; }
.share-label {
  font-family: var(--serif); font-size: 14px; color: var(--muted);
  letter-spacing: .12em; margin-bottom: 12px;
}
.share-preview-slot { min-height: 0; }
.share-preview {
  width: 100%; max-width: 250px; border-radius: 12px;
  border: 1px solid rgba(168, 132, 78, 0.45);
  box-shadow: var(--shadow-lift);
  margin-bottom: 0;
  animation: viewIn .6s ease;
}

/* ---------- 称号図鑑 ---------- */
.col-count { font-size: 15.5px; color: var(--muted); }
.col-count strong { font-family: var(--num-display); font-size: 26px; font-weight: 600; color: var(--gold-bright); }
.col-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.col-item {
  border: 1px solid rgba(168, 132, 78, 0.35); border-radius: 8px;
  padding: 12px 14px; background: rgba(168, 132, 78, 0.05);
  display: flex; flex-direction: column; gap: 2px;
}
.col-title { font-family: var(--serif); font-size: 14.5px; font-weight: 700; color: var(--gold-bright); letter-spacing: .02em; }
.col-meta { font-size: 12px; color: var(--muted); }
.app-card { border-color: rgba(168, 132, 78, 0.35); }

/* ---------- 鑑定履歴 ---------- */
.history-item { margin-top: 10px; }
.history-item summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.history-item summary::before { content: none; }
.hi-date { font-family: var(--num); font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hi-kind {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold);
  border: 1px solid rgba(168, 132, 78, 0.4); border-radius: 999px; padding: 1px 10px;
}
.hi-title { color: var(--ink); font-weight: 500; }

/* ---------- 四柱推命:12ヶ月の流れ ---------- */
.mf-list { display: flex; flex-direction: column; }
.mf-row {
  display: grid; grid-template-columns: 44px 64px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 4px; border-bottom: 1px solid var(--hairline);
}
.mf-row:last-child { border-bottom: none; }
.mf-row.mf-now { background: rgba(168, 132, 78, 0.07); border-radius: 8px; }
.mf-m { font-family: var(--num); font-size: 17px; font-weight: 900; color: var(--indigo); text-align: right; }
.mf-m small { font-size: 10px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.mf-star { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--gold-bright); letter-spacing: .04em; }
.mf-track {
  height: 8px; border-radius: 99px; background: rgba(28, 35, 51, 0.08); overflow: hidden;
}
.mf-track i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.mf-badges { display: flex; gap: 4px; min-width: 0; }
.mf-badges em {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-bright); border: 1px solid rgba(168, 132, 78, 0.5);
  border-radius: 999px; padding: 1px 7px; white-space: nowrap;
}
.mf-badges em.mf-cur { color: var(--muted); border-color: var(--hairline); }
.mf-summary { margin-top: 14px; }

/* ---------- ホロスコープ:5年周期の流れ ---------- */
.flow-card { border-color: rgba(168, 132, 78, 0.5); background: linear-gradient(165deg, rgba(168, 132, 78, 0.07), var(--surface) 60%); }
.flow-line { display: flex; flex-direction: column; }
.flow-block {
  position: relative; padding: 4px 0 22px 26px;
  border-left: 1px solid rgba(168, 132, 78, 0.4);
  margin-left: 6px;
}
.flow-block::before {
  content: ""; position: absolute; left: -6px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.flow-block:last-child { padding-bottom: 4px; }
.flow-block.flow-now::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(168, 132, 78, 0.2); }
.fb-era { font-family: var(--latin); font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.flow-now .fb-era { color: var(--gold-bright); }
.fb-title {
  display: block; font-family: var(--serif); font-size: clamp(19px, 4vw, 23px); font-weight: 700;
  color: var(--indigo); letter-spacing: .06em; margin-top: 2px;
}
.fb-text { font-size: 15.5px; line-height: 1.95; margin-top: 6px; }
.fb-jup { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.8; }
.fb-jup::before { content: "♃ "; color: var(--gold); }
.fb-personal {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(150deg, rgba(28, 35, 51, 0.05), rgba(168, 132, 78, 0.07));
  border-left: 3px solid var(--gold);
  font-size: 15.5px; line-height: 1.95;
}
.fb-shift {
  margin-top: 8px; padding: 12px 16px; border-radius: 10px;
  background: rgba(168, 132, 78, 0.08); border: 1px dashed rgba(168, 132, 78, 0.45);
  font-size: 15px;
}
.fb-shift strong { color: var(--gold-bright); font-family: var(--num); font-size: 15.5px; font-weight: 900; }
.theme-lead { font-size: 16.5px; line-height: 2; }
.theme-point { font-size: 15.5px; line-height: 1.95; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.theme-point strong { color: var(--gold-bright); }

/* ---------- ホロスコープ(出生図) ---------- */
.horo-wheel { display: flex; justify-content: center; }
.horo-svg { width: 100%; max-width: 360px; }
.planet-list { display: flex; flex-direction: column; }
.planet-row {
  display: grid; grid-template-columns: 30px 128px 128px 1fr; gap: 8px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid var(--hairline);
}
.planet-row:last-child { border-bottom: none; }
.pr-glyph { font-size: 18px; color: var(--gold-bright); text-align: center; }
.pr-name { font-weight: 700; font-size: 15px; }
.pr-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.pr-sign { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--indigo); }
.pr-sign small { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.pr-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.aspect-row { padding: 10px 2px; border-bottom: 1px solid var(--hairline); }
.aspect-row:last-of-type { border-bottom: none; }
.ar-pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15.5px; }
.ar-type {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 1px 10px;
}
.ar-type.soft { color: var(--teal); border: 1px solid rgba(46, 140, 126, 0.45); }
.ar-type.hard { color: var(--rose); border: 1px solid rgba(192, 92, 130, 0.45); }
.ar-type.hard0 { color: var(--gold-bright); border: 1px solid rgba(168, 132, 78, 0.5); }
.ar-note { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.8; }
@media (max-width: 640px) {
  .planet-row { grid-template-columns: 26px 1fr 1fr; }
  .pr-note { grid-column: 2 / -1; }
}

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 44px 24px 36px; background: rgba(255, 255, 255, 0.4); }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.footer-logo { height: 14px; width: auto; display: block; }
.footer-tagline {
  font-family: var(--serif);
  font-size: 12.5px; color: var(--muted); font-weight: 400;
  margin-top: 8px; letter-spacing: .12em;
}
.footer-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.footer-nav button {
  border: none; background: transparent; color: var(--muted);
  font-size: 14.5px; letter-spacing: .06em; padding: 4px 0;
  transition: color .25s ease;
}
.footer-nav button:hover { color: var(--gold-bright); }
.footer-note {
  max-width: 1120px; margin: 32px auto 0;
  font-size: 12px; color: rgba(93, 98, 112, 0.85); letter-spacing: .05em;
}

/* ---------- 観測中オーバーレイ(結果までの溜め) ---------- */
.obs-overlay {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  background: rgba(243, 238, 229, 0.93);
  backdrop-filter: blur(10px);
  animation: chamberIn .35s ease;
  transition: opacity .45s ease;
}
.obs-overlay.obs-done { opacity: 0; pointer-events: none; }
.obs-core { text-align: center; padding: 24px; }
.obs-rings {
  position: relative; width: 150px; height: 150px; margin: 0 auto 30px;
}
.obs-rings i {
  position: absolute; border-radius: 50%; border: 1px solid transparent;
}
.obs-rings i:nth-child(1) {
  inset: 0;
  border-color: rgba(168, 132, 78, 0.55) transparent transparent transparent;
  animation: obsSpin 2.6s linear infinite;
}
.obs-rings i:nth-child(2) {
  inset: 20px;
  border-color: transparent transparent rgba(28, 35, 51, 0.4) transparent;
  animation: obsSpin 3.8s linear infinite reverse;
}
.obs-rings i:nth-child(3) {
  inset: 40px;
  border-color: rgba(168, 132, 78, 0.35) transparent transparent transparent;
  animation: obsSpin 1.9s linear infinite;
}
.obs-dot {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--gold);
  animation: obsPulse 1.6s ease-in-out infinite;
}
@keyframes obsSpin { to { transform: rotate(360deg); } }
@keyframes obsPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 132, 78, 0.4); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 14px rgba(168, 132, 78, 0); }
}
.obs-text {
  font-family: var(--serif); font-size: clamp(15.5px, 3.6vw, 18px);
  color: var(--indigo); letter-spacing: .14em; min-height: 1.8em;
}
.obs-text.obs-in { animation: textEmerge .7s cubic-bezier(.2, .7, .3, 1) backwards; }

/* ---------- フォーカス ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- レスポンシブ ---------- */
.pc-only { display: inline; }
@media (max-width: 880px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-main { grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .pc-only { display: none; }
  .brand-logo { height: 28px; }
  .mypage-btn { order: 1; margin-left: auto; width: 36px; height: 36px; flex-basis: 36px; }
  .header-inner .nav { order: 2; margin-left: 0; }
  .nav {
    width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 82%, transparent 98%);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 98%);
    padding-right: 24px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { white-space: nowrap; }
  .result-hero { padding: 32px 24px; }
  .result-symbol { font-size: 130px; opacity: .7; }
  .lucky-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lucky-item { border-left: none; padding: 0; }
  .hero { min-height: 66vh; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento-main, .bento-wide { grid-column: span 1; }
}

/* ===== 結論カード=夜(後勝ちで文字色を確実に) ===== */
/* 結論カード=夜:答えを言い切るカードだけ、儀式の間の色をまとって主役になる */
.card-night, .tarot-verdict, .mind-card, .verdict-card, .yn-card {
  background:
    radial-gradient(140% 160% at 85% -20%, rgba(109, 95, 201, 0.16), transparent 55%),
    radial-gradient(150% 180% at 10% 120%, rgba(184, 154, 90, 0.18), transparent 55%),
    linear-gradient(150deg, #161D3A, #0F152F) !important;
  border-color: rgba(184, 154, 90, 0.55) !important;
  color: var(--chamber-ink);
}
.tarot-verdict h4, .mind-card h4, .verdict-card h4, .yn-card h4 {
  color: var(--chamber-gold); border-bottom-color: rgba(239, 233, 220, 0.16);
}
.tarot-verdict h4 .h4-ja, .mind-card h4 .h4-ja, .verdict-card h4 .h4-ja, .yn-card h4 .h4-ja { color: var(--chamber-ink); }
.tarot-verdict .sub, .mind-card .sub, .verdict-card .sub, .yn-card .sub,
.verdict-card .verdict-advice, .mind-card .mind-point, .tarot-verdict .tv-reason { color: var(--chamber-muted); }
.tv-word, .mind-word { color: var(--chamber-ink); }
.tv-action, .mind-card .mind-point { border-color: rgba(184, 154, 90, 0.4); }
.tv-action { background: rgba(184, 154, 90, 0.12); color: var(--chamber-ink); }
.tv-action strong, .mind-card .mp-k, .mind-sendoff { color: var(--chamber-gold-bright); }
.mind-card .mp-k { border-color: rgba(184, 154, 90, 0.5); }
.verdict-card .vf-list, .verdict-card .vf-row { border-color: rgba(239, 233, 220, 0.14); }
.verdict-card .vf-body { color: var(--chamber-ink); }
.verdict-card .vf-method { color: var(--chamber-gold); }
.verdict-card .vf-vote.up { color: var(--chamber-gold-bright); }
.verdict-card .verdict-word { color: var(--chamber-ink); }
.verdict-card .verdict-rank {
  color: var(--chamber-gold-bright); border-color: rgba(184, 154, 90, 0.7);
  box-shadow: 0 0 26px rgba(184, 154, 90, 0.3), inset 0 0 18px rgba(184, 154, 90, 0.14);
}
.yn-card .yn-answer.yes { color: #5eead4; }
.yn-card .yn-answer.no { color: #e879a6; }
.yn-card p { color: var(--chamber-ink); }
.tarot-verdict .explain, .mind-card .explain, .verdict-card .explain {
  background: rgba(10, 16, 38, 0.4); border-color: rgba(239, 233, 220, 0.16);
}
.verdict-card .explain summary { color: var(--chamber-muted); }
.verdict-card .explain p { color: var(--chamber-muted); }
.result-card h4 {
  font-family: var(--latin);
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  color: var(--gold); text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 4px 12px; flex-wrap: wrap;
}
.result-card h4 .h4-ja { white-space: nowrap; }
.result-card h4 .h4-ja {
  font-family: var(--serif); font-size: 17.5px; color: var(--indigo);
  letter-spacing: .1em; font-weight: 600;
}
.result-card p { font-size: 16.5px; line-height: 1.95; }
.result-card .sub { color: var(--muted); font-size: 15px; line-height: 1.9; }
.span-all { grid-column: 1 / -1; }

.result-card.mind-card .mind-word, .result-card.tarot-verdict .tv-word { color: var(--chamber-ink); }
.result-card.mind-card .mind-point { color: var(--chamber-muted); border-top-color: rgba(239, 233, 220, 0.14); }
.result-card.mind-card .mind-point .mp-k { color: var(--chamber-gold-bright); border-color: rgba(184, 154, 90, 0.5); }
.result-card.tarot-verdict .tv-reason { color: var(--chamber-muted); }
.result-card.tarot-verdict .tv-action { background: rgba(184, 154, 90, 0.12); border-color: rgba(184, 154, 90, 0.4); color: var(--chamber-ink); }
.result-card.verdict-card .verdict-word { color: var(--chamber-ink); }
.result-card.verdict-card .verdict-advice { color: var(--chamber-muted); }
.result-card.verdict-card .vf-row { border-bottom-color: rgba(239, 233, 220, 0.14); }
.result-card.verdict-card .vf-list { border-top-color: rgba(239, 233, 220, 0.14); }
.result-card.verdict-card .vf-body { color: var(--chamber-ink); }
.result-card.verdict-card .vf-vote.flat { color: var(--chamber-muted); }
.result-card.mind-card h4 .h4-ja, .result-card.tarot-verdict h4 .h4-ja,
.result-card.verdict-card h4 .h4-ja, .result-card.yn-card h4 .h4-ja { color: var(--chamber-ink); }
.result-card.mind-card h4, .result-card.tarot-verdict h4,
.result-card.verdict-card h4, .result-card.yn-card h4 {
  color: var(--chamber-gold); border-bottom-color: rgba(239, 233, 220, 0.16);
}
