:root {
  --indigo: #2b2350;
  --indigo-deep: #1d1738;
  --saffron: #e8862e;
  --saffron-light: #f5a94f;
  --gold: #c9a227;
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2a2438;
  --muted: #6b6478;
  --line: #e6e0d6;
  --accent-bg: #f3edfd;
  --good: #2e7d52;
  --warn: #a3541a;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(43, 35, 80, 0.08);
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}

a { color: var(--indigo); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: var(--indigo-deep);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.logo .om { color: var(--saffron-light); margin-right: 6px; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: #d8d2ea; text-decoration: none; font-size: 13.5px; }
.nav a:hover { color: #fff; }

/* hero */
.hero {
  background: linear-gradient(160deg, var(--indigo-deep) 0%, var(--indigo) 70%, #3b2f6b 100%);
  color: #fff;
  text-align: center;
  padding: 44px 16px 48px;
}
.hero h1 { font-size: 26px; line-height: 1.5; margin-bottom: 12px; }
.hero p { color: #cfc8e6; font-size: 14.5px; max-width: 640px; margin: 0 auto; }
.hero .badges { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f0ecff;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 14px;
}

/* cards & sections */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 24px 0;
}
.section-title {
  font-size: 20px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 5px solid var(--saffron);
  line-height: 1.5;
}
.sub-title { font-size: 16.5px; margin: 22px 0 10px; color: var(--indigo); }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
select, input[type="number"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}
.selects-row { display: flex; gap: 8px; }
.selects-row select { flex: 1; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.check-row input { width: 18px; height: 18px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, #d96f1a 100%);
  color: #fff;
  font-size: 18px;
  padding: 15px 20px;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(232, 134, 46, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: #fff;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  font-size: 14px;
  padding: 9px 18px;
}

details.advanced { margin-top: 14px; font-size: 14px; }
details.advanced summary { cursor: pointer; color: var(--muted); }
details.advanced .inner { padding: 12px 0 0; }

.hidden { display: none !important; }

/* result summary chips */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sum-chip {
  background: var(--accent-bg);
  border: 1px solid #ddd3f5;
  border-radius: 10px;
  padding: 12px 14px;
}
.sum-chip .k { font-size: 12px; color: var(--muted); }
.sum-chip .v { font-size: 16px; font-weight: 700; color: var(--indigo); line-height: 1.5; }
.sum-chip .v small { font-weight: 500; font-size: 12px; color: var(--muted); }

.notice {
  background: #fff7ec;
  border: 1px solid #f0d9b8;
  color: var(--warn);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* charts */
.chart-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-tab {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--muted);
}
.chart-tab.active { border-color: var(--saffron); color: var(--saffron); font-weight: 700; }
.chart-box { display: flex; justify-content: center; }
.chart-box svg { max-width: 420px; width: 100%; height: auto; }
.chart-caption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* planet table */
table.planets { width: 100%; border-collapse: collapse; font-size: 14px; }
table.planets th, table.planets td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.planets th { background: var(--accent-bg); color: var(--indigo); font-size: 13px; }
table.planets td .tag {
  display: inline-block; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 4px;
  background: #eee9f8; color: var(--indigo);
}
table.planets td .tag.retro { background: #fdeaea; color: #a33; }
table.planets td .tag.combust { background: #fff0e0; color: var(--warn); }
table.planets td .tag.exalted { background: #e5f5ec; color: var(--good); }
table.planets td .tag.debilitated { background: #f7e9e9; color: #a33; }
.table-scroll { overflow-x: auto; }

/* dasha */
.dasha-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dasha-list details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.dasha-list summary {
  cursor: pointer; padding: 11px 14px; font-size: 14.5px; font-weight: 600;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.dasha-list summary .period { color: var(--muted); font-weight: 500; font-size: 13px; }
.dasha-list details.current { border-color: var(--saffron); background: #fffaf3; }
.dasha-list details.current summary::before { content: "▶ 現在 "; color: var(--saffron); font-size: 12px; }
.antar-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; }
.antar-table td { padding: 6px 14px; border-top: 1px dashed var(--line); }
.antar-table tr.current td { background: #fff3e2; font-weight: 700; }

/* readings */
.reading-block { border-top: 1px solid var(--line); padding: 18px 0; }
.reading-block:first-of-type { border-top: none; }
.reading-block h4 { font-size: 16px; color: var(--indigo); margin-bottom: 8px; line-height: 1.6; }
.reading-block h4 .em { color: var(--saffron); }
.reading-block p { font-size: 14.5px; margin-bottom: 8px; }
.yoga-chip {
  display: inline-block; background: linear-gradient(135deg, #f7efe0, #f3e6c8);
  border: 1px solid var(--gold); color: #7a6114; border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; margin: 0 6px 6px 0; font-weight: 600;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--indigo); }
.faq-item h3::before { content: "Q. "; color: var(--saffron); }
.faq-item p { font-size: 14px; color: var(--text); }

/* accuracy table */
.acc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acc-table th, .acc-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.acc-table th { background: var(--accent-bg); }

.share-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.disclaimer { font-size: 12.5px; color: var(--muted); }

/* footer */
.site-footer {
  background: var(--indigo-deep); color: #cfc8e6; margin-top: 48px;
  padding: 28px 16px; text-align: center; font-size: 13px;
}
.footer-nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-nav a { color: #cfc8e6; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 560px) {
  .hero h1 { font-size: 21px; }
  .card { padding: 18px 14px; }
  body { font-size: 15px; }
}
