/* ブランド仕様（2026-12-02改修）：LUNAA Marketing Design
   ネイビー #1E2540／ネイビー中間 #2C3659／ゴールド #B8955A／ゴールド明 #D4B07A
   アイボリー #F7F4EE／アイボリー深 #EFEAE0／インク #232838
   見出し Noto Serif JP／本文 Noto Sans JP／英字 Cormorant Garamond */
:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #232838;
  --muted: #6f7280;
  --border: #e3ddd0;
  --accent: #1e2540;
  --accent-mid: #2c3659;
  --gold: #b8955a;
  --gold-light: #d4b07a;
  --accent-soft: #efe9e0;
  --line-green: #06c755;
  --error: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 96px; }
.hero {
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 28px 20px 24px;
  border-bottom: 4px solid var(--gold);
}
.hero-spot {
  display: block;
  width: 112px; height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 0 auto 14px;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.lead { color: #d8d5cc; margin: 0; font-size: 15px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.field { display: block; margin-bottom: 16px; }
.field span, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 8px;
  background: #fff;
}
.field input:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
fieldset.field { border: none; padding: 0; margin: 0 0 16px; }
.turnstile { margin: 8px 0 16px; min-height: 65px; }
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-mid); }
.btn-primary:disabled { opacity: 0.5; }
.btn-secondary {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.btn-line {
  display: block;
  text-align: center;
  padding: 14px;
  margin-top: 16px;
  background: var(--line-green);
  color: #fff;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.authority-card { border-top: 4px solid var(--gold); }
.authority-title {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--accent);
}
.authority-credit { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.authority-basis-title { font-size: 15px; margin: 16px 0 6px; color: var(--accent); }
.authority-basis { list-style: none; margin: 0; padding: 0; }
.authority-basis li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.authority-basis li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 13px;
}
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.error { color: var(--error); font-size: 14px; }
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 8px auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#viewWaiting { text-align: center; }
#viewWaiting h2 { font-family: "Noto Serif JP", serif; }
.waiting-message { font-weight: 700; }
.waiting-elapsed { color: var(--muted); font-size: 14px; }
.result-heading {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  margin: 24px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.section-card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 17px;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}
.sources ul { margin: 0; padding-left: 18px; }
.sources a { color: var(--accent-mid); word-break: break-all; }
.message-card { background: var(--accent-soft); border-color: var(--gold-light); }
.message-card h3 { margin-top: 0; color: var(--accent); font-family: "Noto Serif JP", serif; }
.consult-card h3 { margin-top: 0; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.95);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn-line { margin-top: 0; }
p { margin: 0 0 10px; }
