/* こよみ占い：夜空の藍色に金の細い線。読む部分は生成りの紙、占う部分は暗いパネル */
:root {
  --bg: #0B0A1F;
  --bg-2: #14113A;
  --bg-3: #1E1848;
  --plum: #2E1038;
  --gold: #D4AF5A;
  --gold-b: #EBD08A;
  --rose: #E08CA6;
  --paper: #FBF7EF;
  --paper-2: #F3ECDD;
  --ink: #2A2238;
  --ink-2: #5B5170;
  --text: #EFEAF8;
  --dim: #B9B2D2;
  --line: rgba(212, 175, 90, 0.32);
  --line-2: rgba(255, 255, 255, 0.1);
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "BIZ UDPMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  --r: 14px;
  --w: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.9; letter-spacing: 0.02em; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--gold-b); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.6rem, 5.2vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
small { font-size: 0.82em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-b); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gold); color: #1a1208; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* 夜空 */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 80% 0%, rgba(122, 78, 168, 0.34), transparent 70%),
    radial-gradient(50% 40% at 8% 18%, rgba(46, 72, 150, 0.3), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(224, 140, 166, 0.14), transparent 70%),
    linear-gradient(180deg, #0B0A1F 0%, #120F33 55%, #0B0A1F 100%);
}
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; background-repeat: repeat; }
.sky::before {
  background-image:
    radial-gradient(1.2px 1.2px at 22px 34px, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 142px 88px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 233px 190px, rgba(235, 208, 138, 0.9), transparent 60%),
    radial-gradient(1px 1px at 88px 246px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 300px 40px, rgba(255, 255, 255, 0.55), transparent 60%);
  background-size: 340px 300px;
}
.sky::after {
  background-image:
    radial-gradient(1.6px 1.6px at 60px 120px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 310px 260px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 420px 70px, rgba(235, 208, 138, 0.8), transparent 60%);
  background-size: 520px 420px; animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(11, 10, 31, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-b); text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 1.16rem; letter-spacing: 0.12em; white-space: nowrap; }
.logo-mark { color: var(--gold); flex: none; }
.nav-main { margin-left: auto; display: none; }
.nav-main ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-main a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 0.86rem; border-radius: 8px; white-space: nowrap; }
.nav-main a:hover { background: rgba(212, 175, 90, 0.16); color: var(--gold-b); }
.menu { margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i, .menu summary i::before, .menu summary i::after { display: block; width: 20px; height: 2px; background: var(--gold-b); border-radius: 2px; position: relative; }
.menu summary i::before, .menu summary i::after { content: ""; position: absolute; left: 0; }
.menu summary i::before { top: -6px; }
.menu summary i::after { top: 6px; }
.menu[open] summary i { background: transparent; }
.menu[open] summary i::before { top: 0; transform: rotate(45deg); }
.menu[open] summary i::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: #100E2C; border-bottom: 1px solid var(--line); max-height: calc(100vh - 60px); overflow: auto; padding: 8px 16px 20px; }
.menu nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--w); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.menu nav a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); font-size: 0.95rem; }
@media (min-width: 1000px) { .nav-main { display: block; } .menu { margin-left: 0; } .menu nav ul { grid-template-columns: repeat(4, 1fr); } }
.pr-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: 0.78rem; color: var(--dim); background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--line-2); }

/* パンくず・ページの頭 */
main { padding-bottom: 56px; }
.crumbs { margin: 14px 0 0; font-size: 0.8rem; color: var(--dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--gold); }
.crumbs a { color: var(--dim); }
.page-head { padding: 34px 0 22px; text-align: center; }
.page-head h1 { background: linear-gradient(180deg, #fff 10%, var(--gold-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.4em; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-family: var(--mincho); letter-spacing: 0.3em; font-size: 0.82rem; }
.eyebrow::before, .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 12px; opacity: 0.7; }
.lead { max-width: 42em; margin: 0 auto; color: var(--dim); font-size: 0.98rem; text-align: left; }
@media (min-width: 700px) { .lead { text-align: center; } }

/* 区切り・紙・パネル */
.sec { margin: 44px 0 0; }
.sec > h2 { position: relative; padding-bottom: 12px; margin-bottom: 18px; color: #fff; }
.sec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.sec-lead { color: var(--dim); margin-top: -6px; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 22px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); border: 1px solid #E6DAC0; }
.paper + .paper { margin-top: 16px; }
.paper h2, .paper h3 { color: #3A2350; }
.paper h3 { margin-top: 1.5em; padding-left: 12px; border-left: 3px solid var(--gold); }
.paper h3:first-child { margin-top: 0; }
.paper a { color: #7A4A12; }
.paper a:hover { color: #3A2350; }
.paper .note, .paper .form-note { color: var(--ink-2); }
.paper > :last-child { margin-bottom: 0; }
@media (min-width: 700px) { .paper { padding: 32px 36px; } }
.panel { background: linear-gradient(160deg, rgba(40, 32, 92, 0.92), rgba(24, 16, 54, 0.94)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.panel > :last-child { margin-bottom: 0; }
@media (min-width: 700px) { .panel { padding: 30px 34px; } }

/* 入口のカード・チップ */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 14px; text-decoration: none; color: var(--text); background: linear-gradient(160deg, rgba(40, 32, 92, 0.7), rgba(24, 16, 54, 0.8)); border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.cards a:hover { transform: translateY(-3px); border-color: var(--gold-b); background: linear-gradient(160deg, rgba(58, 44, 120, 0.85), rgba(34, 22, 72, 0.9)); }
.cards .ico { color: var(--gold-b); width: 28px; height: 28px; margin-bottom: 4px; }
.cards b { font-family: var(--mincho); font-size: 1.04rem; color: #fff; letter-spacing: 0.06em; }
.cards span { font-size: 0.8rem; color: var(--dim); line-height: 1.6; }
.cards-s a { padding: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.88rem; background: rgba(255, 255, 255, 0.04); }
.chips a:hover { border-color: var(--gold-b); color: var(--gold-b); }
.paper .chips a { color: var(--ink); border-color: #D9C9A3; background: #fff; }
.paper .chips a:hover { background: #3A2350; color: #fff; border-color: #3A2350; }

/* 表・事実の一覧・よくある質問 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl thead th { font-family: var(--mincho); color: var(--gold-b); border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.paper .tbl th, .paper .tbl td { border-bottom-color: #E6DAC0; }
.paper .tbl thead th { color: #7A4A12; border-bottom-color: #C9B27A; background: var(--paper-2); }
.tbl tr.is-now td { background: rgba(212, 175, 90, 0.16); }
.facts { margin: 0 0 1em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.facts > div { padding: 12px 14px; border: 1px solid #E6DAC0; border-radius: 10px; background: #fff; }
.facts dt { font-size: 0.76rem; color: var(--ink-2); letter-spacing: 0.08em; }
.facts dd { margin: 0; font-family: var(--mincho); font-weight: 700; font-size: 1.04rem; color: #3A2350; line-height: 1.6; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-b); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--dim); }

/* 入力とボタン */
.widget { margin: 0 0 8px; }
.form { background: linear-gradient(160deg, rgba(40, 32, 92, 0.92), rgba(24, 16, 54, 0.94)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; max-width: 640px; margin: 0 auto; }
.form label { font-size: 0.92rem; }
.birth { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.birth legend { padding: 0; margin-bottom: 6px; font-family: var(--mincho); color: var(--gold-b); letter-spacing: 0.1em; font-size: 0.95rem; }
.birth-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.birth-row label { flex: 1 1 0; min-width: 84px; }
.birth-row label:first-child { flex: 2 1 0; min-width: 150px; }
select, input[type="search"], input:not([type]), input[inputmode] {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(8, 6, 26, 0.7); border: 1px solid rgba(235, 208, 138, 0.45); border-radius: 10px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #EBD08A 50%), linear-gradient(135deg, #EBD08A 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select option { background: #15123a; color: #fff; }
input::placeholder { color: #8f88ad; }
.birth-row > input { flex: 1 1 180px; }
.birth-row > select { flex: 1 1 90px; width: auto; }
.birth-row > .btn { flex: 1 1 160px; }
.radio-row { display: flex; gap: 20px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--gold); }
.form-error { color: #FFB4B4; background: rgba(200, 40, 60, 0.18); border: 1px solid rgba(255, 140, 140, 0.4); border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.form-note { font-size: 0.78rem; color: var(--dim); margin: 10px 0 0; line-height: 1.7; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, filter 0.15s, background 0.15s; text-align: center; line-height: 1.5; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-gold { background: linear-gradient(180deg, #F2DDA0, #CDA550); color: #2A1A05; box-shadow: 0 6px 18px rgba(212, 175, 90, 0.3); }
.btn-gold:hover { color: #2A1A05; }
.btn-line { background: transparent; color: var(--gold-b); border-color: var(--gold); }
.btn-line:hover { background: rgba(212, 175, 90, 0.14); color: #fff; }
.paper .btn-line { color: #7A4A12; border-color: #B8923E; }
.paper .btn-line:hover { background: #3A2350; color: #fff; border-color: #3A2350; }
.btn-big { min-height: 58px; padding: 14px 38px; font-size: 1.08rem; }
.form > .btn { width: 100%; margin-top: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.more { margin: 14px 0 0; }

/* 結果 */
.result-wrap { scroll-margin-top: 70px; }
.result-wrap:not(:empty) { margin-top: 20px; }
.result { animation: rise 0.5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.result h3 { color: var(--gold-b); margin-top: 1.6em; }
.result-date { margin: 0 0 12px; font-family: var(--mincho); color: var(--gold-b); letter-spacing: 0.08em; }
.result-date span { display: inline-block; margin-left: 10px; color: var(--dim); font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.02em; }
.score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; margin: 6px auto 16px; padding: 20px 12px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 120% at 50% 0%, rgba(235, 208, 138, 0.2), rgba(235, 208, 138, 0.02) 70%); }
.score-level { font-family: var(--mincho); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; color: var(--gold-b); letter-spacing: 0.1em; }
.score-level small { font-size: 0.42em; margin-left: 2px; letter-spacing: 0; }
.score-num { font-family: var(--mincho); font-size: 1.3rem; color: #fff; }
.score-num small { font-size: 0.7em; }
.score-sub { color: var(--dim); font-size: 0.88rem; }
.score.lv-daikichi .score-level, .score.tier-high .score-level { color: #FFE9A8; text-shadow: 0 0 24px rgba(255, 220, 130, 0.55); }
.score.lv-chui .score-level, .score.tier-low .score-level { color: #C9C2E6; }
.result-you { text-align: center; font-size: 0.9rem; color: var(--dim); }
.result-you a { color: var(--gold-b); }
.overall { font-size: 1.04rem; line-height: 2; }
.theme { font-family: var(--mincho); font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: 0.06em; }
.calc { font-size: 0.88rem; color: var(--dim); }
.cats { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.cats li { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.cats p { margin: 4px 0 0; font-size: 0.94rem; }
.cat-name { font-family: var(--mincho); font-weight: 700; margin-right: 10px; color: #fff; }
.stars { color: var(--gold-b); letter-spacing: 2px; white-space: nowrap; }
.stars i, .stars .off { color: rgba(255, 255, 255, 0.22); font-style: normal; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.lucky { margin: 18px 0; display: grid; gap: 10px; }
.lucky > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 6, 26, 0.4); }
.lucky dt { font-size: 0.78rem; color: var(--gold-b); letter-spacing: 0.08em; }
.lucky dd { margin: 2px 0 0; }
@media (min-width: 700px) { .lucky { grid-template-columns: repeat(3, 1fr); } .omikuji .lucky, .lucky.two { grid-template-columns: repeat(2, 1fr); } }

/* 三つの占いの一致度・注意書き・答え合わせ・シェア */
.three { margin: 20px 0; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(212, 175, 90, 0.08); }
.three h3 { margin-top: 0; }
.three ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.three li { padding-left: 14px; border-left: 2px solid var(--gold); }
.three b { display: block; color: var(--gold-b); font-family: var(--mincho); }
.note { font-size: 0.82rem; color: var(--dim); line-height: 1.8; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.paper .note { background: var(--paper-2); }
.kotae { margin: 20px 0; padding: 16px; border-radius: var(--r); border: 1px dashed var(--gold); background: rgba(8, 6, 26, 0.45); }
.kotae h3 { margin: 0 0 6px; }
.kotae p { font-size: 0.92rem; }
.kotae-btns { display: grid; gap: 8px; margin-bottom: 10px; }
.kotae-link { margin: 0; font-size: 0.85rem; }
@media (min-width: 700px) { .kotae-btns { grid-template-columns: repeat(3, 1fr); } }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; font-size: 0.85rem; color: var(--dim); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 40px; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, 0.05); }
.share-btn:hover { border-color: var(--gold-b); }
.result-foot { margin: 14px 0 0; font-size: 0.78rem; color: var(--dim); }

/* 星座ランキング */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(40, 32, 92, 0.7), rgba(24, 16, 54, 0.8)); }
.rank-row.tier-high { border-color: var(--line); }
.rank-row.is-mine { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), 0 0 26px rgba(224, 140, 166, 0.25); }
.rank-no { flex: none; width: 52px; text-align: center; font-family: var(--mincho); font-weight: 700; font-size: 1.7rem; line-height: 1.3; color: var(--gold-b); }
.rank-no small { font-size: 0.45em; }
.tier-low .rank-no { color: #A9A2C8; }
.rank-body { flex: 1; min-width: 0; }
.rank-body p { margin: 6px 0 0; font-size: 0.92rem; color: var(--text); }
.rank-name { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: #fff; text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 1.1rem; }
.rank-name small { font-family: var(--sans); font-weight: 400; color: var(--dim); font-size: 0.74rem; }
.rank-name em { font-style: normal; font-family: var(--sans); font-size: 0.7rem; background: var(--rose); color: #2A0A18; padding: 1px 8px; border-radius: 999px; }
.rank-mark { color: var(--gold-b); font-size: 1.1em; }
.rank-cats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.78rem; color: var(--dim); margin-top: 2px; }
.rank-cats .stars { letter-spacing: 0; margin-left: 3px; font-size: 0.9em; }
.cats-inline { margin: 12px 0; }
.cats-inline .rank-cats { font-size: 0.9rem; gap: 4px 18px; }
@media (min-width: 900px) { .rank { grid-template-columns: repeat(2, 1fr); } .rank-3 .rank, [data-limit="3"] .rank { grid-template-columns: repeat(3, 1fr); } }

/* 月・今日の暦 */
.moon-panel { display: grid; gap: 16px; justify-items: center; }
.moon-panel > div { width: 100%; }
.moon-svg { width: 150px; height: 150px; filter: drop-shadow(0 0 22px rgba(243, 230, 189, 0.4)); }
.moon-name { font-family: var(--mincho); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.moon-name small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--dim); }
.moon-panel .lucky { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .moon-panel { grid-template-columns: 180px 1fr; align-items: center; } }
.koyomi { padding: 18px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.8), rgba(24, 16, 54, 0.9)); }
.koyomi-date { font-family: var(--mincho); font-weight: 700; font-size: 1.2rem; color: var(--gold-b); margin-bottom: 10px; }
.koyomi dl { margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.koyomi dl > div { padding: 8px 10px; border-radius: 10px; background: rgba(8, 6, 26, 0.45); }
.koyomi dt { font-size: 0.72rem; color: var(--dim); }
.koyomi dd { margin: 0; font-family: var(--mincho); font-weight: 700; line-height: 1.5; }
.koyomi dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.68rem; color: var(--dim); }
.koyomi-marks { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.koyomi-marks b { font-size: 0.8rem; color: var(--dim); margin-right: 4px; font-weight: 400; }
@media (min-width: 700px) { .koyomi dl { grid-template-columns: repeat(6, 1fr); } }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.78rem; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; line-height: 1.7; }
.tag-gold { background: linear-gradient(180deg, #F2DDA0, #CDA550); color: #2A1A05; border-color: transparent; font-weight: 700; }
.tag-dark { background: #3A1230; color: #FFC4D6; border-color: rgba(224, 140, 166, 0.5); }
.tag-rose { background: var(--rose); color: #2A0A18; border-color: transparent; font-weight: 700; }
.paper .tag { color: var(--ink-2); border-color: #D9C9A3; }
.paper .tag-gold { color: #2A1A05; }
.paper .tag-dark { color: #FFC4D6; }

/* 二人の星・相性の棒 */
.pair-stars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
.pair-stars > div { padding: 14px 10px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 6, 26, 0.45); }
.pair-stars small { display: block; color: var(--dim); font-size: 0.74rem; }
.pair-stars b { display: block; font-family: var(--mincho); font-size: 1.2rem; color: var(--gold-b); }
.pair-stars span { font-size: 0.78rem; color: var(--dim); }
.bar { margin: 16px 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bar-head b { font-family: var(--mincho); }
.bar-head span { color: var(--gold-b); font-family: var(--mincho); font-weight: 700; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 4px 0 8px; }
.bar-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), var(--gold-b)); animation: grow 0.9s ease both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-title { font-weight: 700; margin-bottom: 2px; color: #fff; }
.bar p:last-child { font-size: 0.92rem; color: var(--text); }

/* 引く占い（おみくじ・エンジェルナンバー） */
.draw { text-align: center; padding: 26px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.92), rgba(24, 16, 54, 0.94)); }
.omikuji .score { background: radial-gradient(120% 120% at 50% 0%, rgba(224, 140, 166, 0.22), rgba(235, 208, 138, 0.04) 70%); }
.omikuji.lv-daikichi .score-level { color: #FFE9A8; text-shadow: 0 0 24px rgba(255, 220, 130, 0.55); }
.omikuji.lv-kyo .score-level, .omikuji.lv-daikyo .score-level { color: #C9C2E6; }
.angel-form label { display: block; margin-bottom: 8px; font-family: var(--mincho); color: var(--gold-b); }
.angel-form input { font-family: var(--mincho); font-size: 1.3rem; letter-spacing: 0.2em; text-align: center; }

/* タロット */
.tarot { --card: linear-gradient(135deg, #2B1B5A 0%, #4A2A7A 50%, #2B1B5A 100%); }
.t-start { text-align: center; padding: 30px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.92), rgba(24, 16, 54, 0.94)); }
.t-pile { position: relative; width: 96px; height: 166px; margin: 0 auto 22px; }
.t-pile i, .t-back { background: var(--card); border: 1px solid var(--gold); border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(11, 10, 31, 0.7), inset 0 0 0 4px rgba(212, 175, 90, 0.6); }
.t-pile i { position: absolute; inset: 0; border-radius: 10px; }
.t-pile i::after, .t-back::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-b); font-size: 1.4rem; }
.t-pile i:nth-child(1) { transform: rotate(-7deg) translateX(-8px); }
.t-pile i:nth-child(2) { transform: rotate(5deg) translateX(8px); }
.is-shuffling .t-pile i:nth-child(1) { animation: cut-a 0.7s ease-in-out infinite; }
.is-shuffling .t-pile i:nth-child(2) { animation: cut-b 0.7s ease-in-out infinite; }
@keyframes cut-a { 50% { transform: rotate(-16deg) translateX(-62px); } }
@keyframes cut-b { 50% { transform: rotate(16deg) translateX(62px); } }
.t-guide { position: sticky; top: 62px; z-index: 5; margin: 0 0 12px; padding: 10px 14px; text-align: center; border-radius: 999px; background: rgba(11, 10, 31, 0.92); border: 1px solid var(--gold); color: var(--gold-b); font-weight: 700; font-size: 0.92rem; }
.t-table { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.t-back { position: relative; aspect-ratio: 300 / 520; width: 100%; padding: 0; cursor: pointer; color: #2A1A05; font: 700 1rem var(--mincho); animation: deal 0.4s ease both; transition: transform 0.15s; }
.t-back::after { font-size: 0.8rem; }
.t-back:hover { transform: translateY(-5px); }
.t-back.is-picked { background: linear-gradient(180deg, #F2DDA0, #CDA550); transform: translateY(-8px); cursor: default; }
.t-back.is-picked::after { content: none; }
@keyframes deal { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .t-table { grid-template-columns: repeat(13, 1fr); gap: 8px; } .t-back::after { font-size: 1.1rem; } }
.t-cards { display: grid; gap: 16px; margin: 0 0 18px; }
.t-card { padding: 18px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.92), rgba(24, 16, 54, 0.94)); text-align: left; }
.t-card h3 { margin: 12px 0 4px; text-align: center; color: #fff; font-size: 1.2rem; }
.t-card h3 small { display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 999px; font-family: var(--sans); font-size: 0.72rem; border: 1px solid var(--gold); color: var(--gold-b); vertical-align: middle; letter-spacing: 0.04em; }
.t-card.is-rev h3 small { border-color: var(--rose); color: var(--rose); }
.t-pos { margin: 0 0 10px; text-align: center; font-family: var(--mincho); color: var(--gold-b); letter-spacing: 0.14em; font-size: 0.9rem; }
.t-face { width: min(200px, 60%); margin: 0 auto; perspective: 800px; }
.t-img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--gold); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); animation: flip 0.8s ease both; background: #1a1430; }
.is-rev .t-img { animation-name: flip-rev; transform: rotate(180deg); }
@keyframes flip { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flip-rev { from { transform: rotate(180deg) rotateY(90deg); opacity: 0; } to { transform: rotate(180deg); opacity: 1; } }
.t-kw { text-align: center; color: var(--dim); font-size: 0.86rem; }
.t-advice h3 { margin-top: 0; color: var(--gold-b); }
@media (min-width: 800px) { .t-cards { grid-template-columns: repeat(3, 1fr); } .is-one .t-cards { grid-template-columns: minmax(0, 460px); justify-content: center; } }

/* 案内の箱・広告・姉妹メディア */
.cta, .sister, .ad { margin: 32px 0 0; padding: 22px 18px; border-radius: var(--r); }
.cta { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(74, 42, 122, 0.55), rgba(46, 16, 56, 0.75)); }
.cta h3 { color: #fff; font-size: 1.2rem; }
.cta p { color: var(--text); font-size: 0.95rem; }
.cta .btn-row { margin-bottom: 0; }
.cta-eyebrow { margin: 0 0 4px; color: var(--gold-b); font-size: 0.8rem; letter-spacing: 0.14em; }
.cta-today { background: linear-gradient(135deg, rgba(30, 50, 120, 0.5), rgba(24, 16, 54, 0.8)); }
.sister { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.sister p { margin-bottom: 4px; }
.sister a { font-family: var(--mincho); font-weight: 700; font-size: 1.05rem; }
.ad { position: relative; background: var(--paper); color: var(--ink); border: 1px solid #E6DAC0; }
.ad h3 { color: #3A2350; padding-right: 48px; }
.ad ul { margin: 0 0 12px; font-size: 0.93rem; }
.ad a { color: #7A4A12; }
.ad-mark { position: absolute; right: 14px; top: 14px; margin: 0; padding: 0 10px; border: 1px solid #B9AE95; border-radius: 4px; font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.1em; }
.ad-code { text-align: center; overflow: hidden; }
.ad-code img { max-width: 100%; height: auto; }
@media (min-width: 700px) { .cta, .sister, .ad { padding: 28px 32px; } }

/* フッター */
.site-foot { margin-top: 40px; padding: 36px 0 28px; border-top: 1px solid var(--line); background: rgba(6, 5, 20, 0.75); font-size: 0.88rem; color: var(--dim); }
.site-foot h2 { font-size: 0.95rem; color: var(--gold-b); margin: 0 0 8px; letter-spacing: 0.12em; }
.foot-grid { display: grid; gap: 26px; }
.foot-logo { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--mincho); font-weight: 700; font-size: 1.2rem; color: var(--gold-b); letter-spacing: 0.12em; }
.foot-tag { margin: 0 0 12px; }
.foot-list { list-style: none; margin: 0 0 16px; padding: 0; }
.foot-list.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.foot-list.sns { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-list a { display: inline-block; padding: 5px 0; color: var(--text); text-decoration: none; }
.foot-list a:hover { color: var(--gold-b); text-decoration: underline; }
.foot-note, .foot-pr { margin: 22px 0 0; font-size: 0.78rem; line-height: 1.8; }
.foot-pr { margin-top: 6px; }
.copy { margin: 14px 0 0; font-size: 0.76rem; text-align: center; letter-spacing: 0.1em; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.1fr 1.4fr 1fr; } }

/* トップページ */
.hero { position: relative; margin: 18px 0 0; padding: 30px 18px 26px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 10, 31, 0.35), rgba(11, 10, 31, 0.9)), var(--hero-img, none) center / cover no-repeat, linear-gradient(160deg, #2B1B5A, #120F33); display: grid; gap: 22px; }
.hero-copy { text-align: center; }
.hero-title { font-size: clamp(1.9rem, 7.4vw, 3.2rem); line-height: 1.4; margin: 0 0 12px; background: linear-gradient(180deg, #fff 20%, var(--gold-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text); margin: 0 auto 14px; max-width: 34em; font-size: 0.98rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-points li { padding: 3px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 10, 31, 0.6); font-size: 0.8rem; color: var(--gold-b); }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 46px 40px; } .hero-copy { text-align: left; } .hero-sub { margin-left: 0; } .hero-points { justify-content: flex-start; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 62px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mincho); font-weight: 700; color: #2A1A05; background: linear-gradient(180deg, #F2DDA0, #CDA550); }
.steps b { display: block; font-family: var(--mincho); color: #fff; font-size: 1.04rem; }
.steps span { font-size: 0.9rem; color: var(--dim); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.banner { display: block; position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--gold); padding: 26px 20px; text-decoration: none; color: #fff; background: linear-gradient(90deg, rgba(11, 10, 31, 0.9), rgba(46, 16, 56, 0.6)), var(--banner-img, none) center / cover no-repeat, linear-gradient(135deg, #4A2A7A, #2E1038); }
.banner b { display: block; font-family: var(--mincho); font-size: clamp(1.3rem, 5vw, 1.9rem); color: var(--gold-b); letter-spacing: 0.08em; }
.banner span { font-size: 0.92rem; color: var(--text); }
.banner:hover { color: #fff; border-color: var(--gold-b); }

/* 星座・星・数の入口 */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles a { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 14px 6px; text-align: center; text-decoration: none; color: var(--text); border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.7), rgba(24, 16, 54, 0.8)); transition: transform 0.2s, border-color 0.2s; height: 100%; }
.tiles a:hover { transform: translateY(-3px); border-color: var(--gold-b); }
.tile-mark { font-family: var(--mincho); font-size: 1.8rem; line-height: 1.3; color: var(--gold-b); }
.tiles b { font-family: var(--mincho); color: #fff; letter-spacing: 0.06em; }
.tiles small { color: var(--dim); font-size: 0.72rem; line-height: 1.5; }
.tiles-s { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tiles-s a { padding: 8px 2px; border-radius: 10px; font-size: 0.86rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles-s { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tiles-9 { grid-template-columns: repeat(3, 1fr); } .tiles-s { grid-template-columns: repeat(10, 1fr); } }

/* 読みもの */
.big { display: flex; flex-direction: column; align-items: center; margin: 0 auto 8px; text-align: center; }
.big b { font-family: var(--mincho); font-size: clamp(3rem, 14vw, 5rem); line-height: 1.2; color: var(--gold-b); text-shadow: 0 0 30px rgba(235, 208, 138, 0.4); letter-spacing: 0.06em; }
.big span { color: var(--dim); font-size: 0.86rem; }
.kw { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw li { padding: 1px 12px; border-radius: 999px; font-size: 0.82rem; background: #EFE3C8; color: #4A3512; }
.byline { margin: 18px 0 0; font-size: 0.78rem; color: var(--dim); text-align: right; }
.paper .byline { color: var(--ink-2); }
.pair { display: grid; gap: 12px; }
.pair > div { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #E6DAC0; }
.pair h4 { margin: 0 0 4px; font-family: var(--mincho); font-size: 1rem; color: #3A2350; }
.pair p { margin: 0; font-size: 0.94rem; }
.pair .is-rev { background: #F6EEF3; border-color: #E3CBD8; }
@media (min-width: 700px) { .pair { grid-template-columns: repeat(2, 1fr); } }

/* タロットのカード一覧とカードのページ */
.t-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.t-list a { display: block; text-align: center; text-decoration: none; color: var(--text); font-size: 0.8rem; line-height: 1.5; }
.t-list img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 4px; background: #1a1430; transition: transform 0.2s, border-color 0.2s; }
.t-list a:hover img { transform: translateY(-4px); border-color: var(--gold-b); }
@media (min-width: 600px) { .t-list { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .t-list { grid-template-columns: repeat(7, 1fr); } }
.t-detail { display: grid; gap: 20px; justify-items: center; margin: 0 0 8px; }
.t-detail img { width: min(240px, 66%); border-radius: 10px; border: 1px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); background: #1a1430; }
.t-detail > div { width: 100%; }
@media (min-width: 760px) { .t-detail { grid-template-columns: 260px 1fr; align-items: start; justify-items: start; } .t-detail img { width: 100%; } }
.credit { font-size: 0.74rem; color: var(--dim); }
.paper .credit { color: var(--ink-2); }

/* 前後の移動 */
.pn { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 0; }
.pn a { flex: 1 1 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 0.88rem; background: rgba(255, 255, 255, 0.04); }
.pn a:hover { border-color: var(--gold-b); color: var(--gold-b); }
.pn a:last-child { text-align: right; }
.pn span { flex: 1 1 0; }

/* カレンダー */
.cal td:first-child { white-space: nowrap; font-family: var(--mincho); font-weight: 700; }
.cal .w0 td:first-child { color: #C2413A; }
.cal .w6 td:first-child { color: #2F5FB0; }
.cal tr.is-best td { background: #FFF3CF; }
.cal .tag { margin: 1px 2px 1px 0; }
.legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.legend b { font-family: var(--mincho); margin-right: 6px; }
@media (min-width: 700px) { .legend { grid-template-columns: repeat(2, 1fr); gap: 8px 24px; } }

/* 夢占い */
.yume-group { margin: 0 0 22px; }
.yume-group h3 { color: var(--gold-b); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.yume-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.yume-list a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; font-size: 0.92rem; line-height: 1.5; height: 100%; }
.yume-list a:hover { border-color: var(--gold-b); color: var(--gold-b); }
.yume-list small { display: block; color: var(--dim); font-size: 0.74rem; }
@media (min-width: 700px) { .yume-list { grid-template-columns: repeat(4, 1fr); } }
.form input[type="search"] { margin-top: 6px; }
.scene { display: grid; gap: 10px; margin: 0 0 1em; }
.scene > div { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #E6DAC0; }
.scene dt { font-family: var(--mincho); font-weight: 700; color: #3A2350; }
.scene dd { margin: 2px 0 0; font-size: 0.94rem; }
.good-bad { display: inline-block; padding: 1px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: #EFE3C8; color: #4A3512; }
.good-bad.is-good { background: linear-gradient(180deg, #F2DDA0, #CDA550); color: #2A1A05; }
.good-bad.is-warn { background: #3A1230; color: #FFC4D6; }

/* コラム */
.art h2 { margin-top: 1.8em; padding-bottom: 8px; border-bottom: 1px solid #D9C9A3; font-size: 1.3rem; }
.art h2:first-child { margin-top: 0; }
.art ul, .art ol { padding-left: 1.4em; }
.art li { margin-bottom: 4px; }
.col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.col-list a { display: block; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40, 32, 92, 0.7), rgba(24, 16, 54, 0.8)); text-decoration: none; color: var(--text); height: 100%; }
.col-list a:hover { border-color: var(--gold-b); }
.col-list b { display: block; font-family: var(--mincho); color: #fff; font-size: 1.04rem; line-height: 1.6; margin-bottom: 4px; }
.col-list span { font-size: 0.84rem; color: var(--dim); }
@media (min-width: 800px) { .col-list { grid-template-columns: repeat(2, 1fr); } }

/* 動きを減らす設定・印刷 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-rev .t-img { transform: rotate(180deg); }
}
@media print {
  .sky, .site-head, .site-foot, .share, .cta, .ad, .menu, .pr-bar { display: none; }
  body { background: #fff; color: #000; }
  .panel, .paper { box-shadow: none; border: 1px solid #999; background: #fff; color: #000; }
}

/* ---- 追加分: 各ページの細かい部品 ---- */
.hero-form { margin-top: 22px; }
.hero-form .form { margin: 0 auto; }
@media (min-width: 960px) { .hero-form { margin-top: 0; } }
.chips span { display: block; padding: 7px 14px; border: 1px solid var(--gold); border-radius: 999px; color: #2A1A05; font-size: 0.88rem; background: linear-gradient(180deg, #F2DDA0, #CDA550); font-weight: 700; }
.chips-plain span { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line); font-weight: 400; }
.paper .chips-plain span { background: #fff; color: var(--ink); border-color: #D9C9A3; }
.chips-day { gap: 6px; }
.chips-day a, .chips-day span { min-width: 3.6em; text-align: center; padding: 6px 8px; }
.chips-num a, .chips-num span { min-width: 4.2em; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.tbl-years td:first-child, .tbl-years th:first-child { white-space: nowrap; }
.tbl-years { font-variant-numeric: tabular-nums; }
.tbl .good { color: #8A5A00; background: #FFF3CF; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.tbl .bad { color: #8C2A45; font-size: 0.9em; }
.tone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); border-left: 4px solid #B8923E; margin: 0 0 16px; }
.tone b { padding: 1px 12px; border-radius: 999px; background: #B8923E; color: #fff; font-size: 0.86rem; white-space: nowrap; }
.tone-good { border-left-color: #C9962B; background: #FFF6DC; }
.tone-good b { background: #C9962B; }
.tone-mixed { border-left-color: #7C6AA8; background: #F1EDF8; }
.tone-mixed b { background: #7C6AA8; }
.tone-caution { border-left-color: #B4506E; background: #FBEDF1; }
.tone-caution b { background: #B4506E; }
.big-word { font-family: var(--mincho); font-size: clamp(1.5rem, 6vw, 2.1rem); color: #3A2350; text-align: center; margin: 0 0 14px; letter-spacing: 0.08em; line-height: 1.5; }
.big-word::after { content: ""; display: block; width: 56px; height: 2px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ban-wrap { display: flex; justify-content: center; margin: 0 0 18px; }
.ban { border-collapse: separate; border-spacing: 4px; width: 100%; max-width: 360px; table-layout: fixed; }
.ban caption { caption-side: bottom; font-size: 0.8rem; color: var(--ink-2); padding-top: 8px; text-align: center; }
.ban td { aspect-ratio: 1 / 1; text-align: center; vertical-align: middle; background: #fff; border: 1px solid #D9C9A3; border-radius: 10px; padding: 6px 2px; color: var(--ink); }
.ban td small { display: block; font-size: 0.72rem; color: var(--ink-2); line-height: 1.4; }
.ban td b { display: block; font-family: var(--mincho); font-size: clamp(0.86rem, 3.6vw, 1.05rem); line-height: 1.4; color: #3A2350; }
.ban td.me { background: linear-gradient(160deg, #3A2350, #5A2A5E); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 90, 0.35); }
.ban td.me small { color: #E9DDF5; }
.ban td.me b { color: var(--gold-b); }
.list { margin: 0 0 1em; padding-left: 1.3em; }
.list li { margin: 0.35em 0; }
.list li::marker { color: #B8923E; }
.sec-related { margin-top: 52px; }
.nf { text-align: center; padding-top: 30px; }
.nf .eyebrow { font-size: 2.6rem; font-family: var(--mincho); color: var(--gold-b); letter-spacing: 0.2em; }
.nf-btn { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 8px; }
.col-list li a b { display: block; }

/* wide tables for the hayami pages (13 columns, scroll sideways) */
.tbl-wide { font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.tbl-wide th, .tbl-wide td { white-space: nowrap; padding: 8px 9px; }
.tbl-wide th:first-child, .tbl-wide td:first-child { position: sticky; left: 0; background: var(--paper); font-weight: 700; }
.paper .tbl-wide thead th:first-child { background: var(--paper-2); }
.tbl-wide small { display: block; color: var(--ink-2); font-size: 0.92em; font-weight: 400; }
.tbl tr.is-top td { background: rgba(212, 175, 90, 0.16); }
.tbl tr.is-care td { color: var(--ink-2); }
.tbl .we { color: #8C2A45; }
