/* ─────────────────────────────────────────────────────────────
   HOSHI / 星 — 九星気学LP
   ミニマル / 美術館の解説書 / 京都の旅館の挨拶状
   ───────────────────────────────────────────────────────────── */

:root {
  /* base palette */
  --paper: #FCFCFC;
  --paper-warm: #F8F6F1;
  --ink-100: #1A1A1A;
  --ink-80: #3A3A3A;
  --ink-60: #6A6A6A;
  --ink-40: #9A9A9A;
  --ink-20: #C8C8C8;
  --rule: #E8E8E8;
  --rule-soft: #EFEDE8;

  /* accent (driven by JS — defaults to 七赤金星 朱) */
  --accent: #A03B2C;
  --accent-soft: rgba(160, 59, 44, 0.08);
  --accent-line: rgba(160, 59, 44, 0.35);

  /* type */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  --latin: "EB Garamond", "Cormorant Garamond", "Times New Roman", serif;

  /* rhythm — driven by tweak (ゆったり / 標準) */
  --rhythm: 1;
  --section-py: calc(120px * var(--rhythm));
  --gap-lg: calc(48px * var(--rhythm));
  --gap-md: calc(28px * var(--rhythm));

  /* container */
  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-100);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

img, svg { display: block; max-width: 100%; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

::selection { background: var(--accent-soft); color: var(--ink-100); }

/* ─────────── layout primitives ─────────── */

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: none; }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  text-transform: none;
  margin-bottom: 32px;
}
.eyebrow .num {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.eyebrow .rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  align-self: center;
  max-width: 80px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink-100);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 26ch;
  margin-bottom: 20px;
}

.section-lede {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-80);
  max-width: 56ch;
  font-weight: 350;
}

p { margin: 0; }

/* ─────────── nav ─────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 252, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-mark {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--ink-100);
}
.brand-jp {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-80);
}
.brand-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  align-self: center;
  transition: background 600ms ease;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-80);
}
.nav-links a:hover { color: var(--accent); }

/* ─────────── hero ─────────── */

.hero {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 140px);
  text-align: center;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--latin);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-60);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}
.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  align-self: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0 auto;
  max-width: 18ch;
}
.hero h1 .accent {
  color: var(--accent);
  transition: color 600ms ease;
}
.hero-rule {
  width: 1px;
  height: 36px;
  background: var(--ink-100);
  margin: 28px auto;
}
.hero-sub {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-80);
  max-width: 42ch;
  margin: 0 auto;
  font-weight: 350;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 16px 32px;
  border: 1px solid var(--ink-100);
  background: var(--ink-100);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: all 200ms ease;
}
.hero-cta:hover { background: var(--accent); border-color: var(--accent); }
.hero-cta .arrow { font-family: var(--latin); }
.hero-cta-secondary {
  display: inline-block;
  margin-left: 24px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-80);
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 4px;
}
.hero-cta-secondary:hover { color: var(--accent); border-color: var(--accent); }

/* sample card under hero */
.sample-card {
  margin: 80px auto 0;
  max-width: 520px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 36px 40px 32px;
  text-align: left;
  position: relative;
}
.sample-card::before {
  content: "SAMPLE";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--latin);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--ink-40);
}
.sample-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
  font-size: 13px;
}
.sample-row:first-of-type { border-top: none; }
.sample-row .k {
  font-family: var(--sans);
  color: var(--ink-60);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}
.sample-row .v {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-100);
}
.sample-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.sample-date {
  font-family: var(--latin);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-60);
  letter-spacing: 0.04em;
}
.sample-star-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-100);
  letter-spacing: 0.06em;
}
.sample-star-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.14em;
  margin-top: 6px;
}
.sample-swatch {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transition: background 600ms ease;
}
.sample-fortune {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-100);
  letter-spacing: 0.04em;
}

/* ─────────── 4機能 ─────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: var(--gap-lg);
}
.feature {
  padding: 40px 28px 36px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature:first-child { border-left: none; }
.feature-num {
  font-family: var(--latin);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.feature-illus {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 8px;
}
.feature-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.feature-desc {
  font-size: 12.5px;
  color: var(--ink-60);
  line-height: 1.95;
  font-weight: 350;
}

/* ─────────── なぜ九星気学か ─────────── */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.why-aside {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-60);
  line-height: 2;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--ink-100);
  padding-top: 18px;
}
.why-body p {
  margin-bottom: 1.6em;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-80);
}
.why-body p:last-child { margin-bottom: 0; }
.why-body em {
  font-style: normal;
  color: var(--accent);
}

/* ─────────── 9星カタログ ─────────── */

.stars-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: var(--gap-md);
}
.star-cell {
  padding: 32px 12px 28px;
  border-left: 1px solid var(--rule);
  text-align: center;
  cursor: default;
  position: relative;
  transition: background 250ms ease;
}
.star-cell:first-child { border-left: none; }
.star-cell:hover { background: var(--paper-warm); }
.star-cell.is-active { background: var(--paper-warm); }
.star-swatch {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
}
.star-num-latin {
  font-family: var(--latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.star-name {
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ink-100);
}
.star-color-name {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-40);
  margin-top: 8px;
}

.star-detail {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  min-height: 180px;
}
.star-detail-head {
  border-top: 1px solid var(--ink-100);
  padding-top: 16px;
}
.star-detail-name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 6px;
}
.star-detail-color {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-60);
}
.star-detail-color .sw {
  width: 12px; height: 12px;
}
.star-detail-color .hex {
  font-family: var(--latin);
  font-style: italic;
}
.star-detail-body {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-80);
}
.star-detail-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-100);
}
.star-detail-traits span {
  padding: 2px 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.06em;
}

/* ─────────── 結果サンプル(縦書き) ─────────── */

.report-stage {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 64px 56px;
  position: relative;
  margin-top: var(--gap-md);
  overflow: hidden;
}
.report-stage::before {
  content: "SAMPLE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-family: var(--latin);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(26, 26, 26, 0.04);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
.report-stage > * { position: relative; z-index: 1; }

.report-vertical {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.4;
  letter-spacing: 0.18em;
  color: var(--ink-100);
  height: 460px;
  font-feature-settings: "palt";
  text-orientation: upright;
}
.report-vertical .h {
  font-size: 22px;
  letter-spacing: 0.24em;
  color: var(--accent);
  border-right: 1px solid var(--accent-line);
  padding-right: 16px;
  margin-left: 14px;
  height: 240px;
  display: inline-block;
}
.report-vertical .body {
  display: inline-block;
  height: 100%;
}
.report-vertical .pull {
  font-size: 18px;
  color: var(--ink-100);
  letter-spacing: 0.22em;
  border-right: 1px dashed var(--rule);
  padding-right: 14px;
  margin-left: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.report-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}
.report-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.report-meta-row:last-child { border-bottom: 1px solid var(--rule); }
.report-meta-row .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
}
.report-meta-row .v {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-100);
  letter-spacing: 0.06em;
}

/* ─────────── 月次プラン ─────────── */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: var(--gap-md);
}
.plan {
  border: 1px solid var(--rule);
  padding: 40px 36px 36px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.plan.is-feature {
  border: 1px solid var(--ink-100);
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.plan-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
}
.plan-tag {
  font-family: var(--latin);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.06em;
}
.plan-price {
  font-family: var(--latin);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink-100);
  letter-spacing: 0.02em;
  margin: 12px 0 4px;
}
.plan-price small {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-60);
  letter-spacing: 0.1em;
  margin-left: 6px;
}
.plan-sub {
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.plan-incl {
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-80);
  flex: 1;
}
.plan-incl li {
  list-style: none;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.plan-incl li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.plan-incl ul { margin: 0; padding: 0; }
.plan-cta {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--ink-100);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-align: center;
  background: var(--paper);
  transition: all 200ms ease;
}
.plan.is-feature .plan-cta {
  background: var(--ink-100);
  color: var(--paper);
}
.plan-cta:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* ─────────── FAQ ─────────── */

.faq {
  margin-top: var(--gap-md);
  border-top: 1px solid var(--ink-100);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  cursor: pointer;
  transition: background 200ms ease;
}
.faq-item:hover { background: var(--paper-warm); padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
.faq-num {
  font-family: var(--latin);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.faq-q {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-100);
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .ind {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-40);
  flex-shrink: 0;
  transition: transform 250ms ease;
}
.faq-item.is-open .faq-q .ind { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-80);
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, margin-top 320ms ease;
}
.faq-item.is-open .faq-a { max-height: 400px; margin-top: 14px; }

/* ─────────── 監修 ─────────── */

.steward {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-top: var(--gap-md);
  align-items: start;
}
.steward-card {
  border: 1px solid var(--rule);
  padding: 32px;
  background: var(--paper-warm);
}
.steward-portrait {
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.steward-portrait::after {
  content: "肖像写真は掲載しておりません";
  position: absolute;
  font-size: 11px;
  color: var(--ink-40);
  letter-spacing: 0.16em;
  font-family: var(--serif);
}
.steward-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.steward-title {
  font-size: 11.5px;
  color: var(--ink-60);
  letter-spacing: 0.16em;
}
.steward-body p {
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--ink-80);
  margin-bottom: 1.6em;
}
.steward-body p:last-child { margin-bottom: 0; }
.steward-body .lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  color: var(--ink-100);
  letter-spacing: 0.06em;
}

/* ─────────── 月次運気グラフ用 ─────────── */

.month-chart {
  width: 100%;
  height: 80px;
}

/* ─────────── footer ─────────── */

.footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 80px 0 40px;
  margin-top: var(--gap-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  font-size: 13px;
  color: var(--ink-80);
  letter-spacing: 0.04em;
  line-height: 2;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--latin);
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--ink-100);
  margin-bottom: 8px;
}
.footer-brand-jp {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink-80);
  margin-bottom: 18px;
}
.footer-tagline {
  font-size: 12.5px;
  color: var(--ink-60);
  line-height: 2;
  max-width: 28ch;
}

.disclaimer {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  font-size: 11.5px;
  color: var(--ink-60);
  line-height: 2;
  letter-spacing: 0.04em;
}
.disclaimer .kicker {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-80);
  margin-bottom: 10px;
}
.colophon {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-40);
  letter-spacing: 0.1em;
  font-family: var(--latin);
}

/* ─────────── responsive ─────────── */

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: none; border-top: 1px solid var(--rule); }
  .feature:nth-child(4) { border-top: 1px solid var(--rule); }
  .stars-strip { grid-template-columns: repeat(3, 1fr); }
  .star-cell:nth-child(3n+1) { border-left: none; }
  .star-cell:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .why-grid, .steward, .plans, .star-detail, .report-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .report-vertical { height: 360px; font-size: 14px; }
}

@media (max-width: 560px) {
  .stars-strip { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr; }
  .feature { border-left: none; border-top: 1px solid var(--rule); }
  .feature:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-secondary { display: block; margin: 16px 0 0; }
}
