/* 月と家 Design System — docs/DESIGN_SYSTEM.md と対応 */
:root {
  --bg: #0B0914; --bg-2: #171126; --purple: #392552; --gold: #D4AF37; --champagne: #E8D6A7;
  --text: #F8F5EE; --text-2: #B8B0C6; --line: rgba(212, 175, 55, .28); --danger: #E58A8A;
  --radius: 14px; --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Shippori Mincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.85;
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(57, 37, 82, .55), transparent 70%),
    radial-gradient(2px 2px at 20% 30%, rgba(232, 214, 167, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(232, 214, 167, .45), transparent 60%),
    radial-gradient(1px 1px at 85% 60%, rgba(232, 214, 167, .4), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 75%, rgba(232, 214, 167, .35), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--champagne); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; line-height: 1.5; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 4.6vw, 1.8rem); text-align: center; }
h2::after { content: ""; display: block; width: 56px; height: 1px; margin: .6em auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
h3 { font-size: 1.1rem; color: var(--champagne); }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); font-size: .92rem; }
.small { font-size: .82rem; color: var(--text-2); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1040px; }
section { padding: 56px 0; }
.center { text-align: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(11, 9, 20, .78); border-bottom: 1px solid rgba(212, 175, 55, .12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); letter-spacing: .2em; }
.logo small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--gold); line-height: 1.2; font-family: var(--sans); }
.logo b i { font-style: normal; font-size: .72rem; letter-spacing: .1em; color: var(--champagne); margin-right: .35em; vertical-align: .12em; }
.logo b { font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.nav-cta { font-size: .85rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--champagne); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1.3 var(--sans); letter-spacing: .08em; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-gold { color: #1a1206; background: linear-gradient(135deg, #F1DC9C, var(--gold) 55%, #B8912A); box-shadow: 0 6px 24px rgba(212, 175, 55, .28); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(212, 175, 55, .42); }
.btn-ghost { color: var(--champagne); background: transparent; border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* hero */
.hero { padding: 40px 0 32px; text-align: center; }
.hero .moon { width: 132px; margin: 0 auto 18px; filter: drop-shadow(0 0 28px rgba(232, 214, 167, .35)); }
.hero .lead { color: var(--text-2); margin-bottom: 26px; }
.hero .badge { display: inline-block; font-size: .78rem; letter-spacing: .14em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }

/* panels */
.panel { background: linear-gradient(180deg, rgba(23, 17, 38, .92), rgba(23, 17, 38, .7)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 14px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.menu-card { display: block; text-decoration: none; color: var(--text); padding: 18px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(57, 37, 82, .25); text-align: center; }
.menu-card .ico { font-size: 1.5rem; display: block; color: var(--gold); }
.menu-card b { display: block; font-family: var(--serif); margin: 4px 0 2px; }
.menu-card span { font-size: .78rem; color: var(--text-2); }

/* compare table */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { border-bottom: 1px solid rgba(212, 175, 55, .16); padding: 10px 6px; text-align: left; vertical-align: top; }
th { color: var(--champagne); font-weight: 600; }
.price { font-family: var(--serif); color: var(--champagne); font-size: 1.25rem; }
.price small { font-size: .75rem; color: var(--text-2); }

/* forms */
label { display: block; font-size: .9rem; color: var(--champagne); margin: 14px 0 6px; }
input[type=text], textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(11, 9, 20, .7); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 92px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.chip[aria-pressed=true] { background: rgba(212, 175, 55, .16); border-color: var(--gold); color: var(--champagne); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid rgba(212, 175, 55, .16); border-radius: 10px; margin-bottom: 8px; color: var(--text); }
.check input { margin-top: 6px; accent-color: var(--gold); width: 18px; height: 18px; }

/* tarot table */
.stage { position: relative; min-height: 260px; }
.fan { position: relative; height: 230px; margin: 10px auto 0; max-width: 560px; touch-action: pan-y; }
.fan .slot { position: absolute; bottom: 0; left: 50%; width: 64px; height: 104px; margin-left: -32px; transform-origin: 50% 220%; border: 0; padding: 0; background: none; cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.fan .slot svg { width: 100%; height: 100%; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.fan .slot:hover, .fan .slot:focus-visible { z-index: 5; }
.fan .slot.lift { filter: drop-shadow(0 0 10px rgba(232, 214, 167, .6)); }
.fan .slot.taken { opacity: 0; pointer-events: none; }
.fan.shuffling .slot { animation: shuffle .6s ease-in-out 2; }
@keyframes shuffle { 50% { transform: rotate(0) translateY(-30px); } }
.picked { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pcard { width: 96px; text-align: center; font-size: .74rem; color: var(--text-2); }
.flip { width: 96px; height: 158px; perspective: 800px; margin-bottom: 6px; }
.flip .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.flip.on .inner { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 8px; overflow: hidden; }
.flip .front { transform: rotateY(180deg); }
.flip .face svg { width: 100%; height: 100%; }
.rev svg.cardface { transform: rotate(180deg); }
.empty-slot { width: 96px; height: 158px; border: 1px dashed var(--line); border-radius: 8px; margin-bottom: 6px; display: grid; place-items: center; color: var(--text-2); font-size: .7rem; }

/* result */
.result-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.result-card svg { width: 84px; height: 138px; border-radius: 7px; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); margin-right: 6px; }
.note { border-left: 3px solid var(--gold); padding: 10px 14px; background: rgba(212, 175, 55, .06); border-radius: 0 10px 10px 0; font-size: .9rem; }
.note.crisis { border-color: var(--danger); background: rgba(229, 138, 138, .08); }
.upsell { border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(212, 175, 55, .12) inset; }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding-left: 1.5em; position: relative; margin: 4px 0; }
.list-check li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .25em; }

/* faq */
details { border-bottom: 1px solid rgba(212, 175, 55, .16); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 24px; position: relative; }
summary::after { content: "+"; position: absolute; right: 4px; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* footer */
footer.site-footer { border-top: 1px solid rgba(212, 175, 55, .12); padding: 36px 0 48px; margin-top: 40px; font-size: .82rem; color: var(--text-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
footer a { color: var(--text-2); }

.fade-in { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.draft-banner { background: #3a2a10; color: var(--champagne); font-size: .82rem; padding: 10px 14px; border: 1px solid var(--gold); border-radius: 10px; margin-bottom: 18px; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, footer, .no-print, .upsell { display: none !important; } body { background: #fff; color: #111; } .panel { border-color: #ccc; background: #fff; } h1, h2, h3, .price { color: #222; } }
#confirm th { white-space: nowrap; width: 6.5em; font-size: .85rem; }

/* ---- 年運レポート ---- */
.sec { margin: 22px 0 10px; font-family: var(--serif); color: var(--champagne); }
.months { display: grid; gap: 8px; margin-bottom: 16px; }
.month { background: var(--panel, rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.month summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.month summary::-webkit-details-marker { display: none; }
.month .mm { font-family: var(--serif); color: var(--gold); width: 2.6em; flex: none; }
.month .mc { width: 34px; flex: none; }
.month .mc svg { width: 34px; height: 56px; border-radius: 4px; display: block; }
.month .mc.rev svg { transform: rotate(180deg); }
.month .mt { display: flex; flex-direction: column; line-height: 1.4; }
.month .mt small { color: var(--text-2); }
.month p { margin: 10px 0 4px; font-size: .92rem; }
.cal { list-style: none; padding: 0; margin: 0; }
.cal li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cal li b { font-family: var(--serif); color: var(--gold); margin-right: 8px; }
.cal .tag { margin-right: 8px; }
.plan30 h4 { margin: 14px 0 4px; color: var(--champagne); font-size: .95rem; }
.plan30 h4 small { color: var(--text-2); font-weight: normal; }
.plan30 ol { margin: 0; padding-left: 1.8em; font-size: .92rem; }

/* ---- 注文時の追加（オーダーバンプ） ---- */
.bump { display: flex; gap: 10px; align-items: flex-start; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.bump input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.bump span { display: flex; flex-direction: column; gap: 4px; }
.bump small { color: var(--text-2); line-height: 1.5; }
.line-item { display: flex; justify-content: space-between; gap: 12px; }
@media print { .month { break-inside: avoid; } }

/* ---- お部屋チェック・追加の質問 ---- */
.hp-h { margin: 14px 0 6px; font-weight: 600; color: var(--champagne); font-size: .92rem; }
.hp-room { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.followup input { width: 100%; margin: 4px 0 10px; }

input[type=email] { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(11, 9, 20, .7); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.orders { list-style: none; padding: 0; margin: 0; }
.orders li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.orders small { color: var(--text-2); }
.nav-me { color: var(--text-2); font-size: .82rem; margin-right: 10px; text-decoration: none; }
.legal th, table th { min-width: 6.5em; }
.auto-renew { border: 2px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: rgba(212, 175, 55, .08); }
.auto-renew b { color: var(--champagne); font-size: 1.05rem; }
.auto-renew p { margin: 6px 0 0; }
.sub-state { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: .8rem; }
.btn-text { background: none; border: 0; color: var(--text-2); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px; }
