/* いつつぼし占い — 薄藤の夕空と五角形のモチーフ */
:root {
  color-scheme: dark;
  --bg: #12123a;        /* 夜空の紺 */
  --bg-deep: #0b0b2a;
  --paper: rgba(34, 31, 86, 0.72);
  --ink: #f2edff;
  --muted: #bdb5dc;
  --wisteria: #e2bd62;      /* 主要アクセント（金） */
  --wisteria-deep: #f0d58f; /* ラベル・リンク（明るい金） */
  --gold: #e2bd62;
  --gold-ink: #f0d58f;
  --line: rgba(226, 189, 98, 0.3);
  --wash: rgba(255, 255, 255, 0.07);
  --danger: #ff9fb4;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}
a { color: var(--wisteria-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.site-header, .site-footer, main { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.brand::before { content: "☆"; color: var(--gold); margin-right: 6px; }
.header-link { font-size: var(--step--1); color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero { padding: 8px 0 28px; }
.hero-emblem { display: flex; justify-content: center; margin: 0 -10px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin: 4px 0 14px;
}
.hero-lead { color: var(--muted); margin: 0; max-width: 34em; }

.emblem { display: block; max-width: 100%; height: auto; overflow: visible; }
.em-pent { fill: none; stroke: var(--line); stroke-width: 1.5; }
.em-star { fill: none; stroke: var(--wisteria); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out 0.2s forwards; }
.em-dot { fill: var(--gold); }
.em-core { fill: var(--wisteria); }
.em-label { font-family: var(--serif); font-size: 13px; fill: var(--ink); }
.em-soon { opacity: 0.4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.emblem.is-spinning .em-star { animation: draw 1.2s ease-in-out infinite alternate; }
.emblem.is-spinning { animation: turn 9s linear infinite; }
.emblem.is-spinning .em-label { display: none; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 var(--step-0) var(--sans);
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--wisteria); color: #fff; }
.btn-primary:hover { background: var(--wisteria-deep); }
.btn-outline { background: transparent; border-color: var(--wisteria); color: var(--wisteria-deep); }
.btn-text { background: none; color: var(--muted); padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.btn-big { width: 100%; min-height: 56px; font-size: var(--step-1); letter-spacing: 0.3em; margin-top: 8px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- おかえり ---------- */
.returning { border-left: 3px solid var(--gold); background: var(--paper); padding: 16px 18px; margin-bottom: 24px; border-radius: 0 12px 12px 0; }
.returning p { margin: 0 0 10px; }
.returning-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- フォーム ---------- */
.form { background: var(--paper); border-radius: 20px; padding: 24px 20px 20px; border: 1px solid var(--line); }
.form-title { font-family: var(--serif); font-weight: 600; font-size: var(--step-2); margin: 0 0 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { font-size: var(--step--1); font-weight: 400; color: var(--danger); margin-left: 8px; }
input[type="text"], select {
  width: 100%; min-height: 48px; padding: 8px 12px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
}
input[type="text"]:focus, select:focus { border-color: var(--wisteria); outline: none; box-shadow: 0 0 0 3px rgba(110, 98, 168, 0.25); }
input[aria-invalid="true"] { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-size: 0.9375rem; }
.seg-item input:checked + span { border-color: var(--wisteria); background: var(--wash); font-weight: 600; }
.seg-item input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.date-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
#time-row { grid-template-columns: 1fr 1fr; margin-top: 8px; }
#time-row[hidden] { display: none; }
.sel { display: flex; align-items: center; gap: 4px; }
.sel span { flex: none; color: var(--muted); }
.hint { font-size: var(--step--1); color: var(--muted); margin: 6px 0 0; line-height: 1.7; }
.err { color: var(--danger); font-size: var(--step--1); margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--wisteria); }
.optional { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 12px 0; margin: 4px 0 18px; }
.optional > summary { cursor: pointer; font-weight: 600; color: var(--wisteria-deep); min-height: 32px; }
.optional[open] > summary { margin-bottom: 4px; }
.optional .field { margin-top: 14px; margin-bottom: 4px; }
.warn { background: #fbf4e4; border-left: 3px solid var(--gold); padding: 10px 14px; font-size: var(--step--1); color: var(--gold-ink); border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.warn p { margin: 0; }
.privacy-note { font-size: var(--step--1); color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- 鑑定中 ---------- */
.loading { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.loading-text { font-family: var(--serif); font-size: var(--step-1); text-align: center; }

/* ---------- 結果 ---------- */
.result-head { padding: 12px 0 8px; }
.result-for { margin: 0; color: var(--muted); font-size: var(--step--1); }
.result-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.3; margin: 4px 0 0; letter-spacing: 0.04em; }
.warn-inline { font-size: var(--step--1); color: var(--gold-ink); margin: 8px 0 0; }
.block { margin-top: 40px; }
.block-title { font-family: var(--serif); font-weight: 600; font-size: var(--step-3); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.block-title::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.card-big { border-radius: 20px; padding: 22px 20px; border-color: var(--wisteria); border-width: 1.5px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-label { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--wisteria-deep); }
.card-title { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); line-height: 1.5; margin: 6px 0 6px; }
.card-big .card-title { font-size: var(--step-2); }
.card-body { margin: 0 0 10px; }
.card-action { margin: 0; font-size: 0.9375rem; padding: 8px 12px; background: var(--bg); border-radius: 8px; }
.action-key { display: block; font-size: var(--step--1); color: var(--gold-ink); font-weight: 600; }
.card-tags { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }

.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 1.125rem; line-height: 1; white-space: nowrap; }
.stars-on { color: var(--gold); letter-spacing: 1px; }
.stars-off { color: var(--line); letter-spacing: 1px; }
.stars-num { margin-left: 6px; font-weight: 700; font-size: 0.875rem; color: var(--ink); min-width: 0.7em; }
.stars-sm { font-size: 0.8125rem; }
.stars-sm .stars-num { font-size: 0.75rem; }

.nature-grid { display: grid; gap: 0; }
.nature-lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.9375rem; }
.nature-lines li { padding: 10px 0; border-top: 1px solid var(--line); }
.nl-sys { display: inline-block; font-size: var(--step--1); color: var(--wisteria-deep); font-weight: 600; margin-right: 8px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.flow-btn { width: 100%; font: inherit; color: inherit; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-btn.is-active { border-color: var(--wisteria); background: var(--wash); }
.flow-when { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.flow-when small { font-family: var(--sans); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.flow .stars { font-size: 0.875rem; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--wash); border-radius: 999px; padding: 4px; margin-bottom: 16px; position: sticky; top: 0; z-index: 2; }
.tab { font: 600 var(--step-0) var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; min-height: 44px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.panel-when { margin: 0 0 8px; color: var(--muted); font-size: var(--step--1); }
.switch-note { font-size: var(--step--1); color: var(--muted); margin: 4px 0 0; }

.dt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.dt > summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative; display: flex; flex-direction: column; }
.dt > summary::-webkit-details-marker { display: none; }
.dt > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--wisteria); }
.dt[open] > summary::after { content: "−"; }
.dt > summary > span:first-child { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); }
.dt-peek { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.dt-body { padding: 0 18px 16px; }
.dt-soon { opacity: 0.75; }
.dt-sub { font-size: 0.9375rem; margin: 16px 0 6px; }
.kv, .scores { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.kv th, .kv td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { width: 42%; color: var(--muted); font-weight: 400; padding-right: 10px; }
.scores th, .scores td { padding: 6px 2px; border-bottom: 1px solid var(--line); text-align: center; }
.scores tbody th { text-align: left; font-weight: 400; color: var(--muted); }
.daiun { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.daiun li { border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-align: center; font-size: 0.75rem; display: flex; flex-direction: column; position: relative; }
.daiun strong { font-family: var(--serif); font-size: 1rem; }
.daiun li.is-now { border-color: var(--gold); background: #fbf4e4; }
.daiun em { font-style: normal; color: var(--gold-ink); font-weight: 600; }
.notes { margin: 12px 0 0; padding-left: 1.2em; font-size: var(--step--1); color: var(--muted); }
.dt-link { margin: 12px 0 0; font-size: 0.875rem; }

.share-canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0 12px; display: block; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions #share-image { grid-column: 1 / -1; }

.outro { border-top: 1px solid var(--line); padding-top: 20px; }
.disclaimer { font-size: var(--step--1); color: var(--muted); }
.outro-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- フッター・静的ページ ---------- */
.site-footer { margin-top: 56px; padding-bottom: 40px; font-size: var(--step--1); color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); list-style: none; margin: 0; }
.footer-nav a { color: var(--muted); }
.footer-group { font-weight: 600; color: var(--ink); margin: 16px 0 0; }
.page { padding-bottom: 20px; }
.page h1 { font-family: var(--serif); font-weight: 600; font-size: var(--step-4); line-height: 1.3; margin: 20px 0 12px; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: var(--step-2); margin: 32px 0 8px; }
.page p, .page li { max-width: 36em; }
.page .lead { color: var(--muted); font-size: var(--step-1); }
.page table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; margin: 8px 0; }
.page th, .page td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; vertical-align: top; }
.page th { color: var(--muted); font-weight: 400; width: 34%; }
.page .cta { margin: 32px 0 0; }

@media (min-width: 720px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .nature-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .nature-grid .card { margin-bottom: 0; }
  .hero { display: grid; grid-template-columns: 1fr 260px; align-items: center; column-gap: 12px; }
  .hero-emblem { grid-column: 2; grid-row: 1 / span 2; }
  .hero-title { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-lead { grid-column: 1; grid-row: 2; align-self: start; }
  main, .site-header, .site-footer { max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-star { animation: none; stroke-dashoffset: 0; }
  .emblem.is-spinning, .emblem.is-spinning .em-star { animation: none; }
  html { scroll-behavior: auto; }
}


/* ===================== 占いサイトらしい夜空テーマ ===================== */
body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 32%, rgba(255,236,190,.9), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 78% 56%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2px 2px at 88% 24%, rgba(255,236,190,.95), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 54% 92%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 36% 50%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 94% 78%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 0%, #2c2470 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 100% 100%, #3a1f5e 0%, transparent 70%),
    linear-gradient(180deg, #17164a 0%, #0b0b2a 100%);
  background-size: 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--gold-ink); }
.brand { color: var(--gold-ink); }
.brand::before { content: "☾"; color: var(--gold); }

.hero-title {
  background: linear-gradient(180deg, #fff6dc 0%, #e2bd62 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(226, 189, 98, 0.25);
}
.hero-emblem { filter: drop-shadow(0 0 18px rgba(226, 189, 98, 0.35)); }
.em-pent { stroke: rgba(226, 189, 98, 0.35); }
.em-star { stroke: var(--gold); stroke-width: 1.8; }
.em-core { fill: #fff6dc; }
.em-label { fill: var(--ink); }

.btn-primary { background: linear-gradient(135deg, #f6dd9a 0%, #d3a446 100%); color: #1c1846; box-shadow: 0 4px 18px rgba(226, 189, 98, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #fbe7b3 0%, #dcae52 100%); }
.btn-outline { border-color: var(--gold); color: var(--gold-ink); }
.btn-text { color: var(--muted); }

.form, .card, .dt, .flow-btn, .returning {
  background: var(--paper);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form { border-color: var(--line); }
.form-title, .block-title, .result-title { color: #fff6dc; }
input[type="text"], select { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--ink); }
select option { background: #1c1a4a; color: var(--ink); }
input[type="text"]::placeholder { color: rgba(242, 237, 255, 0.45); }
input[type="text"]:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 189, 98, 0.25); }
.seg-item span { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.seg-item input:checked + span { background: rgba(226, 189, 98, 0.18); border-color: var(--gold); color: #fff6dc; }
.check input { accent-color: var(--gold); }
.optional { border-color: var(--line); }
.optional > summary { color: var(--gold-ink); }
.warn { background: rgba(226, 189, 98, 0.12); color: var(--gold-ink); }
.req { color: var(--danger); }

.card-big { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(226, 189, 98, 0.15), 0 8px 32px rgba(10, 8, 40, 0.5); }
.card-title { color: #fff6dc; }
.card-action { background: rgba(255, 255, 255, 0.06); border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; }
.tag { border-color: var(--line); color: var(--muted); }
.stars-on { text-shadow: 0 0 8px rgba(226, 189, 98, 0.55); }
.stars-off { color: rgba(255, 255, 255, 0.18); }
.nature-lines li { border-color: var(--line); }

.flow-btn { border-color: var(--line); }
.flow-btn.is-active { border-color: var(--gold); background: rgba(226, 189, 98, 0.14); }
.tabs { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tab { color: var(--muted); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, #f6dd9a 0%, #d3a446 100%); color: #1c1846; }

.dt > summary > span:first-child { color: #fff6dc; }
.dt > summary::after { color: var(--gold); }
.kv th, .kv td, .scores th, .scores td { border-color: var(--line); }
.daiun li { border-color: var(--line); }
.daiun li.is-now { background: rgba(226, 189, 98, 0.16); border-color: var(--gold); }
.share-canvas, .outro, .footer-nav { border-color: var(--line); }
.footer-group { color: var(--ink); }
.page h1, .page h2 { color: #fff6dc; }
.page th, .page td { border-color: var(--line); }

.scores { table-layout: fixed; }
.scores th { white-space: nowrap; font-size: 0.8125rem; }
.scores tbody th { width: 3.5em; }
.mini-score { font-weight: 700; color: var(--ink); }
.mini-score span { color: var(--gold); margin-right: 2px; }

/* 言語切り替え */
.site-header { gap: 12px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 2px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 0.8125rem; }
.lang-switch a, .lang-current { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-current { background: linear-gradient(135deg, #f6dd9a 0%, #d3a446 100%); color: #1c1846; font-weight: 600; }
:lang(en) .hero-title { letter-spacing: 0.01em; line-height: 1.2; }
:lang(en) .btn-big { letter-spacing: 0.04em; }
:lang(en) .card-title, :lang(en) .result-title { letter-spacing: 0; }
:lang(zh-CN) body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", var(--sans); }
:lang(zh-CN) .hero-title, :lang(zh-CN) .card-title, :lang(zh-CN) .block-title, :lang(zh-CN) .result-title, :lang(zh-CN) .form-title { font-family: "Songti SC", "STSong", "Noto Serif SC", var(--serif); }

:lang(en) .seg-item span { font-size: 0.875rem; line-height: 1.25; text-align: center; padding: 4px; }
:lang(en) .tab { font-size: 0.875rem; line-height: 1.2; }
:lang(en) .em-label { font-size: 12px; }
.block-title { line-height: 1.3; align-items: flex-start; }
.block-title::before { margin-top: 0.42em; }

/* カードの詳しい解説 */
.card-support { display: inline; }
.card-consensus { margin: 0 0 12px; font-size: 0.875rem; color: var(--gold-ink); padding-left: 22px; position: relative; line-height: 1.7; }
.card-consensus::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); opacity: 0.8; }
.card-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); }
.note-key { margin: 0 0 2px; font-size: var(--step--1); font-weight: 600; }
.note-text { margin: 0; font-size: 0.9375rem; line-height: 1.8; }
.note-advice .note-key, .note-strength .note-key { color: var(--gold-ink); }
.note-caution .note-key { color: #c9b8ff; }
.note-caution { background: rgba(160, 140, 255, 0.07); }

/* ===== 結果ページの分割・回遊 ===== */
.viewing { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: var(--step--1); color: var(--muted); padding: 8px 0 0; }
.viewing a { color: var(--gold-ink); }
.result-lead { color: var(--muted); margin: 8px 0 0; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.save-check { margin: 0 0 12px; font-size: 0.9375rem; }

.people { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.people-list { list-style: none; margin: 0; padding: 0; }
.person { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person-info { display: flex; flex-direction: column; line-height: 1.5; }
.person-info span { font-size: var(--step--1); color: var(--muted); }
.person-actions { display: flex; gap: 4px; align-items: center; }

.type-body { text-align: center; }
.type-intro { margin: 0; font-family: var(--serif); font-size: var(--step-1); color: var(--muted); }
.type-name { margin: 4px 0 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 7.5vw, 2.5rem); line-height: 1.3;
  background: linear-gradient(180deg, #fff6dc 0%, #e2bd62 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.type-keywords { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.type-keywords li { border: 1.5px solid var(--gold); color: #fff6dc; border-radius: 999px; padding: 2px 14px; font-size: 0.9375rem; }
.type-body .card-body { text-align: left; }

.share-portrait { max-width: 360px; margin-left: auto; margin-right: auto; }
.share-actions { grid-template-columns: 1fr 1fr; }

.next-nav { margin: 32px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.btn-next { letter-spacing: 0.04em; }
:lang(en) .btn-next { letter-spacing: 0; }
.page-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page-link { display: flex; flex-direction: column; gap: 4px; min-height: 64px; justify-content: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.page-link:hover { border-color: var(--gold); }
.page-link .stars { font-size: 0.75rem; }
.share-link { text-align: center; margin: 20px 0 0; }
.flow a.flow-btn { text-decoration: none; }
.flow-themes { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.flow-themes .stars { font-size: 0.75rem; }

.sys-periods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sys-period { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sys-period p { margin: 6px 0 0; }
.sys-period-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sys-period-head strong { font-family: var(--serif); font-size: var(--step-1); display: flex; flex-direction: column; line-height: 1.3; color: #fff6dc; }
.sys-period-head small { font-family: var(--sans); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.sys-themes { font-size: 0.875rem; color: var(--muted); }
.na { color: var(--muted); }

/* 広告枠：読み込み前から高さを確保して画面のずれを防ぐ。ボタンから離して誤タップを防ぐ */
.ad-slot { margin: 36px 0; min-height: 300px; text-align: center; }
.ad-slot.ad-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-label { margin: 0 0 6px; font-size: 0.6875rem; color: var(--muted); text-align: left; }
@media (min-width: 720px) { .ad-slot { min-height: 280px; } }
/* 広告が配信されなかった枠は閉じる */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.affiliate { margin: 24px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.affiliate-head { margin: 0 0 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pr { font-size: 0.6875rem; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; padding: 0 6px; }
.affiliate-item + .affiliate-item { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.affiliate-title { margin: 0; font-weight: 600; color: #fff6dc; }
.affiliate-text { margin: 4px 0 10px; font-size: 0.9375rem; color: var(--muted); }
.empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.empty p { color: var(--muted); max-width: 26em; }
.disclaimer { margin-top: 28px; }

@media (min-width: 720px) {
  .page-grid { grid-template-columns: repeat(3, 1fr); }
}

.share-actions #share-insta { grid-column: 1 / -1; }

/* ===== 相性占い ===== */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 16px; }
.mode-tab { font: 600 var(--step-0) var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; min-height: 48px; cursor: pointer; }
.mode-tab[aria-selected="true"] { background: linear-gradient(135deg, #f6dd9a 0%, #d3a446 100%); color: #1c1846; }
.form[hidden] { display: none; }
.person-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 6px; margin-bottom: 14px; }
.person-legend { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: #fff6dc; padding: 0 6px; }
.sub-label { display: block; font-weight: 600; font-size: 0.9375rem; margin: 8px 0 6px; }
.manual[hidden] { display: none; }
.compat-score { text-align: center; }
.compat-names { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); margin: 0 0 6px; color: #fff6dc; }
.compat-names span { color: var(--gold); margin: 0 6px; }
.stars-xl { font-size: 2rem; }
.stars-xl .stars-num { font-size: 1.25rem; }
.compat-score .card-body { text-align: left; }
.compat-types { display: grid; gap: 10px; }
.compat-types .card { text-align: center; margin: 0; }
.type-name-sm { font-size: var(--step-2) !important; margin: 4px 0 10px !important; }
.sys-link { color: inherit; text-decoration: none; display: block; }
.each-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 0; }
.compat-cta { text-align: center; margin: 16px 0 0; }
@media (min-width: 720px) { .compat-types { grid-template-columns: 1fr 1fr; } }
.person-block { padding: 12px 10px 4px; }
.person-block .date-row { gap: 6px; grid-template-columns: 1.35fr 1fr 1fr; }
.person-block .sel select { padding-left: 8px; padding-right: 2px; }
.person-block .sel { gap: 2px; }
.card-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--step--1); line-height: 1.8; color: var(--muted); }

/* ---------- トップ：やわらかな月明かりの導線 ---------- */
:root { --rose: #f4b9cb; --rose-deep: #e98fac; --lavender: #cbb8f2; }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20px 0 auto; height: 360px;
  background: radial-gradient(closest-side at 50% 45%, rgba(244, 185, 203, 0.18), rgba(203, 184, 242, 0.08) 60%, transparent);
  pointer-events: none;
}
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.hero-badges li {
  font-size: var(--step--1); color: #ffe3ec; padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(244, 185, 203, 0.45); background: rgba(244, 185, 203, 0.08);
}
.appeal { margin: 56px 0 0; }
.appeal-title {
  font-family: var(--serif); font-weight: 600; font-size: var(--step-3); line-height: 1.45;
  color: #fff6dc; margin: 0 0 20px; padding-bottom: 12px; position: relative;
}
.appeal-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--lavender));
}
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.moment {
  position: relative; padding: 18px 18px 16px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 185, 203, 0.10), rgba(34, 31, 86, 0.75) 55%);
  border: 1px solid rgba(244, 185, 203, 0.28);
}
.moment::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--rose), var(--lavender));
}
.moment-title { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: #fff; margin: 0 0 6px; line-height: 1.5; }
.moment-body { margin: 0 0 12px; color: var(--muted); font-size: 0.9375rem; line-height: 1.8; }
.moment-go {
  font: 600 var(--step--1) var(--sans); color: #ffe3ec; cursor: pointer;
  background: rgba(244, 185, 203, 0.12); border: 1px solid rgba(244, 185, 203, 0.5);
  border-radius: 999px; padding: 8px 18px; min-height: 40px;
}
.moment-go:hover { background: rgba(244, 185, 203, 0.22); }
.gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 440px) { .gets { grid-template-columns: 1fr 1fr; } }
.get { padding: 16px 16px 14px; border-radius: 14px; background: rgba(203, 184, 242, 0.08); border: 1px solid rgba(203, 184, 242, 0.22); }
.get-title { margin: 0 0 4px; font-weight: 700; color: var(--lavender); font-size: 0.9375rem; }
.get-body { margin: 0; color: var(--ink); font-size: var(--step--1); line-height: 1.8; }
.why { text-align: center; padding: 28px 22px 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.why .appeal-title { text-align: center; }
.why .appeal-title::after { left: 50%; transform: translateX(-50%); }
.why-emblem { display: flex; justify-content: center; margin: -4px 0 6px; opacity: 0.9; }
.why-body { margin: 0; text-align: left; color: var(--ink); line-height: 2; font-size: 0.9375rem; }
.closing { margin: 48px 0 0; text-align: center; }
.closing-line { font-family: var(--serif); font-size: var(--step-2); color: #fff6dc; margin: 0 0 18px; line-height: 1.6; }
.closing-actions { display: grid; gap: 10px; }
@media (min-width: 440px) { .closing-actions { grid-template-columns: 1fr 1fr; } }
.closing-actions .btn { min-height: 52px; width: 100%; }
.btn-rose { background: linear-gradient(135deg, #f9d3df 0%, #e98fac 100%); color: #3a1630; box-shadow: 0 4px 18px rgba(233, 143, 172, 0.28); }
.btn-rose:hover { background: linear-gradient(135deg, #fde0e9 0%, #ef9fb8 100%); }
.mode-tab#tab-compat[aria-selected="true"] { background: linear-gradient(135deg, #f9d3df 0%, #e98fac 100%); color: #3a1630; }
.appeal-title, .moment-title, .closing-line, .hero-title { text-wrap: balance; word-break: auto-phrase; }
@media (max-width: 439px) { .appeal-title { font-size: var(--step-2); } .closing-line { font-size: var(--step-1); } }
.why-more { margin: 18px 0 8px; text-align: left; font-size: var(--step--1); color: var(--muted); }
.why-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.why-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-ink); text-decoration: none; font-size: var(--step--1); }
.why-links a:hover { background: rgba(226, 189, 98, 0.1); }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-weight: 600; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.25rem; color: var(--rose); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 0.9375rem; line-height: 1.9; }
