/* === tokens.css (scoped) === */
/* ============================================================
   占い師.com — Design Tokens
   per design_tokens.md (v1.0)
   ============================================================ */

:root {
  /* base — 紺黒の夜空 */
  --bg-base:        #070413;
  --bg-deep:        #000000;
  --bg-elevated:    #0d0a22;
  --bg-section:     #100a26;

  /* text — 月明かりの金 */
  --text-primary:   #f1e1b4;
  --text-heading:   #ccb173;
  --text-muted:     #8c7c5a;
  --text-on-gold:   #0a0820;

  /* accent — 金茶 */
  --gold-deep:      #a38636;
  --gold-bright:    #c8a96a;
  --gold-line:      rgba(241, 225, 180, 0.30);
  --gold-glow:      rgba(200, 169, 106, 0.20);

  /* status */
  --status-waiting: #6ec39b;
  --status-busy:    #c2545a;
  --status-queued:  #d4a04a;
  --status-offline: #6b6680;

  /* semantic */
  --danger:         #b8556a;
  --rating-star:    #e8c66a;

  /* fonts */
  --font-sans:    "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --font-serif:   "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Georgia", serif;
  --font-display: "Cormorant Garamond", "Cinzel", Georgia, serif;

  /* layout */
  --container:    1080px;
  --space-section: 96px;
  --space-section-sm: 64px;

  /* tweakables (overridden by tweaks panel) */
  --gold-intensity: 1;       /* 0.6 - 1.4 */
  --photo-mode: 1;           /* 1 = real placeholder, 0 = empty */
  --density: 1;              /* 0.85 - 1.15 */
}

/* ============================================================
   Reset
   ============================================================ */
#uranaishi-post *, #uranaishi-post *::before, #uranaishi-post *::after { box-sizing: border-box; }
#uranaishi-post { margin: 0; padding: 0; }
#uranaishi-post { scroll-behavior: smooth; }
#uranaishi-post {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}
#uranaishi-post img, #uranaishi-post svg { display: block; max-width: 100%; }
#uranaishi-post button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#uranaishi-post a { color: inherit; text-decoration: none; }
#uranaishi-post ul, #uranaishi-post ol { list-style: none; padding: 0; margin: 0; }
#uranaishi-post h1, #uranaishi-post h2, #uranaishi-post h3, #uranaishi-post h4, #uranaishi-post h5, #uranaishi-post p { margin: 0; }



/* scrollbar - dark themed */



::-webkit-scrollbar-thumb:hover { background: rgba(241, 225, 180, 0.22); }

/* === base.css (scoped) === */
/* ============================================================
   占い師.com — Base components (shared across all pages)
   ============================================================ */

/* ---------- container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ---------- typography helpers ---------- */
.serif { font-family: var(--font-serif); font-weight: 500; }
.display { font-family: var(--font-display); }
.muted { color: var(--text-muted); }
.gold  { color: var(--text-heading); }

/* ---------- chapter label "No. 04 ── EDITORIAL" ---------- */
.chapter {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}
.chapter::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold-line);
}

/* ---------- section heading ---------- */
.section-head { text-align: left; margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .chapter { justify-content: center; }
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--text-heading);
  letter-spacing: 0.04em;
  margin-top: 16px;
  line-height: 1.4;
}
.section-head .rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-bright);
  opacity: calc(0.85 * var(--gold-intensity));
  margin-top: 28px;
}
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* ---------- section spacing ---------- */
section { padding: var(--space-section) 0; position: relative; }
section.hero + section { padding-top: 40px; }
@media (max-width: 768px) {
  section { padding: var(--space-section-sm) 0; }
  section.hero + section { padding-top: 32px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 15px;
  border-radius: 4px;
  padding: 16px 32px;
  transition: background 240ms ease, border-color 240ms ease, transform 200ms ease, color 200ms ease;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--gold-deep);
  color: var(--text-on-gold);
}
.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--gold-line);
  padding: 15px 31px;
}
.btn--secondary:hover {
  border-color: var(--gold-bright);
  color: var(--text-heading);
  transform: translateY(-1px);
}
.btn--big {
  padding: 22px 56px;
  font-size: 16px;
}
.btn--block { display: flex; width: 100%; }

/* arrow */
.arrow { display: inline-block; }

/* ---------- text link ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color 200ms ease, color 200ms ease;
}
.text-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ---------- gold rule (small divider) ---------- */
.rule-sm {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-bright);
  opacity: calc(0.85 * var(--gold-intensity));
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------- ad disclosure ---------- */
.ad-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 4, 19, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--gold-line);
  transition: background 250ms ease;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 0.04em;
}
.brand__since {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav { display: flex; gap: 32px; }
.nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 200ms ease;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--text-heading); }
.nav a.is-active { color: var(--text-heading); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 6px; height: 1px;
  background: var(--gold-bright);
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header__inner { padding: 14px 24px; }
}

/* spacer for fixed header */
.header-spacer { height: 64px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold-line);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--text-heading); }
.footer-mission {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
}
.footer-bottom {
  border-top: 1px solid var(--gold-line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom small {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================================
   Generic Cards
   ============================================================= */
.card-rule {
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 32px 24px;
  transition: background 240ms ease, border-color 240ms ease, transform 200ms ease;
}
.card-rule:hover {
  background: var(--bg-section);
  border-top-color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  transform: translateY(-1px);
}

/* =============================================================
   Avatars (fortune teller portraits)
   ============================================================= */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-section);
  border: 1px solid var(--gold-line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar--120 { width: 120px; height: 120px; }
.avatar--160 { width: 160px; height: 160px; }
.avatar__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 169, 106, 0.18), transparent 55%),
    repeating-linear-gradient(135deg,
      rgba(241, 225, 180, 0.04) 0 6px,
      rgba(241, 225, 180, 0) 6px 12px),
    var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar__placeholder span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* portrait (large rectangle for teacher page FV) */
.portrait {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  position: relative;
  overflow: hidden;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(200, 169, 106, 0.18), transparent 60%),
    repeating-linear-gradient(135deg,
      rgba(241, 225, 180, 0.04) 0 8px,
      rgba(241, 225, 180, 0) 8px 16px);
  pointer-events: none;
}
.portrait__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(64px, 8vw, 96px);
  color: var(--text-heading);
  opacity: 0.62;
  letter-spacing: 0.06em;
}
.portrait__pr {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  padding: 4px 10px;
  border: 1px solid var(--gold-line);
  color: var(--text-muted);
  background: rgba(7, 4, 19, 0.6);
}
.portrait__label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* =============================================================
   Status badge
   ============================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-offline);
}
.status--waiting::before { background: var(--status-waiting); box-shadow: 0 0 0 3px rgba(110, 195, 155, 0.18); }
.status--busy::before    { background: var(--status-busy); }
.status--queued::before  { background: var(--status-queued); }

/* Overlay variant: badge sitting on top of an image / portrait */
.status--overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 4, 19, 0.78);
  border: 1px solid var(--gold-line);
  padding: 8px 14px 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.status__live {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-heading);
  margin-right: 8px;
  padding-right: 8px;
  border-right: 1px solid var(--gold-line);
}

/* Pulsing dot — LIVE feel. Color is per-status via --pulse-color. */
@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--pulse-color, 110, 195, 155), 0.65),
                0 0 0 0 rgba(var(--pulse-color, 110, 195, 155), 0.30);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(var(--pulse-color, 110, 195, 155), 0),
                0 0 0 12px rgba(var(--pulse-color, 110, 195, 155), 0);
    transform: scale(1.15);
  }
}
.status--pulse::before {
  animation: statusPulse 1.6s ease-out infinite;
}
.status--waiting { --pulse-color: 110, 195, 155; }
.status--busy    { --pulse-color: 220, 70, 80; }
.status--queued  { --pulse-color: 212, 160, 74; }

/* "Live now" emphasis variant — red dot, used over portraits. */
.status--live::before {
  background: #e2424f;
  --pulse-color: 220, 70, 80;
}
@media (prefers-reduced-motion: reduce) {
  .status--pulse::before { animation: none; }
}

/* =============================================================
   Star rating
   ============================================================= */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  color: var(--rating-star);
  letter-spacing: 0.08em;
}
.stars__score {
  font-size: 20px;
  font-weight: 600;
}
.stars__count {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.stars__glyph {
  letter-spacing: 0.05em;
  font-size: 15px;
}

/* =============================================================
   PR / disclosure
   ============================================================= */
.pr-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  padding: 3px 8px;
  border: 1px solid var(--gold-line);
  color: var(--text-muted);
}

/* =============================================================
   Fade-in animation (intersection observer)
   ============================================================= */
.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  #uranaishi-post { scroll-behavior: auto; }
}

/* =============================================================
   Tweaks panel
   ============================================================= */
.tweaks-toggle-hidden { display: none !important; }
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  z-index: 90;
  padding: 20px;
  font-size: 13px;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
}
.tweaks-panel h5 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--text-heading);
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tweak-row .segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--gold-line);
}
.tweak-row .segmented button {
  font-size: 12px;
  padding: 8px 4px;
  color: var(--text-primary);
  background: transparent;
  transition: background 200ms, color 200ms;
}
.tweak-row .segmented button.is-on {
  background: var(--gold-deep);
  color: var(--text-on-gold);
}
.tweaks-close {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--text-muted);
}
.tweaks-close:hover { color: var(--text-heading); }

/* =============================================================
   Cross-page utilities
   ============================================================= */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-heading);
}
.diamond { display: inline-block; transform: translateY(-1px); color: var(--text-heading); }

/* photo-mode tweak */
[data-photo-mode="off"] .avatar__placeholder,
[data-photo-mode="off"] .portrait::before {
  opacity: 0.35;
}

/* === pages.css (scoped) === */
/* ============================================================
   占い師.com — Page-specific styles
   ============================================================ */

/* ==========================================================
   INDEX / TOP PAGE
   ========================================================== */

/* ---------- Hero ---------- */
.hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 28px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle moon glow at top-center */
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(200, 169, 106, calc(0.12 * var(--gold-intensity))) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__chapter {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.hero__chapter::before, .hero__chapter::after {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold-line);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.55;
  color: var(--text-heading);
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  font-feature-settings: "palt";
}
.hero__title .ln {
  display: block;
}
.hero__rule {
  width: 56px; height: 1px;
  background: var(--gold-bright);
  margin: 0 auto 22px;
  opacity: calc(0.9 * var(--gold-intensity));
}
.hero__lede {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-primary);
  max-width: 580px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}
.hero__scroll { display: none; }
@media (max-width: 768px) {
  .hero { padding: 20px 0 0; }
  .hero__title { font-size: clamp(24px, 6.5vw, 32px); margin-bottom: 18px; }
  .hero__lede { font-size: 14px; }
}

/* ---------- Concept (2-col) ---------- */
.concept {
  background: var(--bg-section);
}
.concept-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 768px) {
  .concept-grid { grid-template-columns: 1fr; gap: 48px; }
}
.concept-grid h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.65;
  color: var(--text-heading);
  margin-top: 16px;
  letter-spacing: 0.04em;
}
.concept-body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2;
  color: var(--text-primary);
}
.concept-body p { margin-bottom: 28px; }

/* ---------- 3 ways to find ---------- */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .ways-grid { grid-template-columns: 1fr; }
}
.way-card {
  padding: 48px 36px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 240ms, border-color 240ms, transform 200ms;
}
.way-card:hover {
  background: var(--bg-section);
  border-top-color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  transform: translateY(-2px);
}
.way-card__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.way-card__eyebrow::before {
  content: "◇";
  color: var(--text-heading);
}
.way-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}
.way-card__rule {
  width: 40px; height: 1px;
  background: var(--gold-bright);
  opacity: calc(0.85 * var(--gold-intensity));
}
.way-card__body {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  color: var(--text-primary);
  flex-grow: 1;
}
.way-card__link {
  margin-top: 4px;
}

/* ---------- Editorial carousel ---------- */
.editorial-carousel-wrap {
  position: relative;
  margin: 0 -32px;
  padding: 0 32px;
}
.editorial-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 24px;
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
}
.editorial-carousel
.editorial-card {
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.editorial-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  position: relative;
  overflow: hidden;
}
.editorial-card__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(200,169,106,0.16), transparent 60%),
    repeating-linear-gradient(135deg,
      rgba(241,225,180,0.04) 0 8px,
      rgba(241,225,180,0) 8px 16px);
}
.editorial-card__img::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.editorial-card__meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.editorial-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-heading);
}
.editorial-card__meta-bottom {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-line);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.carousel-btn:hover { border-color: var(--gold-bright); color: var(--text-heading); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Featured fortune tellers ---------- */
.tellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 900px) {
  .tellers-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 540px) {
  .tellers-grid { grid-template-columns: 1fr; }
}
.teller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: var(--bg-elevated);
  position: relative;
  transition: background 240ms, border-color 240ms, transform 200ms;
}
.teller-card:hover {
  background: var(--bg-section);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.teller-card__fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: color 200ms, border-color 200ms, background 200ms;
}
.teller-card__fav:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.teller-card__fav.is-on { color: var(--gold-bright); border-color: var(--gold-bright); background: rgba(200, 169, 106, 0.08); }
.teller-card__status {
  margin-top: 18px;
  font-size: 12px;
}
.teller-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-heading);
  margin-top: 18px;
  letter-spacing: 0.05em;
}
.teller-card__kana {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  margin-top: 4px;
}
.teller-card__service {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 16px;
}
.teller-card__rating {
  margin-top: 14px;
}
.teller-card__link {
  margin-top: 22px;
}

/* ---------- Mini radar chart inside teller cards ---------- */
.teller-card__radar {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.teller-card__radar svg {
  width: 120px;
  height: 120px;
  display: block;
}
.teller-card__radar-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.teller-card__radar-label::before,
.teller-card__radar-label::after {
  content: "";
  width: 14px; height: 1px;
  background: var(--gold-line);
}
.teller-card__radar-trait {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.editor-quote {
  text-align: center;
  background: var(--bg-base);
  padding: var(--space-section) 0;
}
.editor-quote__body {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.85;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.editor-quote__body::before, .editor-quote__body::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--gold-bright);
  opacity: 0.8;
  margin: 36px auto;
}
.editor-quote__cite {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
}

/* ---------- Service comparison table ---------- */
.svc-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.svc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  min-width: 720px;
}
.svc-table th, .svc-table td {
  padding: 22px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gold-line);
  letter-spacing: 0.03em;
}
.svc-table thead th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-bright);
}
.svc-table tbody tr:nth-child(even) { background: var(--bg-section); }
.svc-table tbody tr:hover { background: var(--bg-elevated); }
.svc-table .svc-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-heading);
}
.svc-table .svc-num {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.svc-table .svc-rating {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--rating-star);
  letter-spacing: 0.06em;
}
.svc-table .svc-link {
  font-size: 12px;
  color: var(--text-heading);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: color 200ms, border-color 200ms;
}
.svc-table .svc-link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------- About editorial ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-art {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold-line);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.about-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(200,169,106,calc(0.28 * var(--gold-intensity))), transparent 55%),
    repeating-linear-gradient(135deg,
      rgba(241,225,180,0.04) 0 10px,
      rgba(241,225,180,0) 10px 20px);
}
.about-art__moon {
  position: absolute;
  top: 18%; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  background: radial-gradient(circle at 35% 35%, rgba(200,169,106,0.22), transparent 60%);
  box-shadow: 0 0 60px rgba(200, 169, 106, 0.12);
}
.about-art__label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-muted);
}
.about-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--text-heading);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin-top: 14px;
}
.about-body p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2;
  margin: 24px 0 28px;
}
.about-body .text-link { margin-top: 12px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 140px 0 120px;
  background: var(--bg-section);
}
.final-cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.85;
  color: var(--text-heading);
  letter-spacing: 0.06em;
}
.final-cta__rule {
  width: 60px; height: 1px;
  background: var(--gold-bright);
  margin: 56px auto;
}
.final-cta .btn { margin-top: 24px; }
.final-cta .ad-note { margin-top: 28px; }


/* ==========================================================
   TEACHER PAGE (occult-person individual)
   ========================================================== */

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 24px 0 0;
}
.breadcrumb a { color: var(--text-muted); transition: color 200ms; }
.breadcrumb a:hover { color: var(--text-heading); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb__updated { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--gold-line); }

/* ---------- Teacher FV ---------- */
.teacher-fv {
  padding-top: 56px;
  padding-bottom: 64px;
}
.teacher-fv__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .teacher-fv__grid { grid-template-columns: 1fr; gap: 32px; }
}
.teacher-fv__portrait {
  aspect-ratio: 3 / 4;
}
.teacher-fv__chapter { margin-bottom: 32px; }
.teacher-fv h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.1;
  color: var(--text-heading);
  letter-spacing: 0.08em;
}
.teacher-fv__kana {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--text-muted);
  margin-top: 12px;
  text-transform: uppercase;
}
.teacher-fv__h1sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.teacher-fv__rule {
  width: 60px; height: 1px;
  background: var(--gold-bright);
  margin: 28px 0;
}
.teacher-fv__service {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.teacher-fv__service strong { color: var(--text-primary); font-weight: 500; }
.teacher-fv__skills {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-heading);
  margin-top: 16px;
  letter-spacing: 0.06em;
}
.teacher-fv__rating-line {
  display: flex; align-items: baseline; gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.teacher-fv__sources {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.06em;
}
.teacher-fv__status { margin-top: 20px; }
.teacher-fv__cta {
  margin-top: 36px;
}
.teacher-fv__cta .btn { margin-bottom: 0; }
.cta-banner {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.teacher-fv__cta ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.teacher-fv__cta li::before {
  content: "✓ ";
  color: var(--gold-bright);
  margin-right: 6px;
}
.teacher-fv__cta .ad-note { margin-top: 14px; }

/* ---------- Concern list (Section 3) ---------- */
.concern-list {
  max-width: 720px;
}
.concern-list li {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line);
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.concern-list li:last-child { border-bottom: none; }
.concern-list li::before {
  content: "✦";
  color: var(--text-heading);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Radar chart section ---------- */
.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 768px) { .radar-grid { grid-template-columns: 1fr; gap: 36px; } }
.radar-chart-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
}
.radar-chart-wrap svg {
  width: 100%; height: 100%;
}
.radar-scores {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.radar-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
}
.radar-row__label { letter-spacing: 0.05em; color: var(--text-primary); }
.radar-row__bar {
  height: 4px;
  background: rgba(241, 225, 180, 0.08);
  position: relative;
  overflow: hidden;
}
.radar-row__bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 1200ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.radar-row__score {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--rating-star);
  text-align: right;
  letter-spacing: 0.04em;
}
.radar-meta {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.85;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
}
.radar-meta strong { color: var(--text-primary); font-weight: 500; }

/* ---------- Basic info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 15px;
}
.info-table th, .info-table td {
  padding: 22px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gold-line);
  line-height: 1.85;
}
.info-table th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  width: 200px;
  padding-right: 24px;
}
.info-table td { color: var(--text-primary); letter-spacing: 0.04em; }
.info-table td .price-main {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-heading);
  margin-right: 12px;
}
.info-table td .price-after {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Review section ---------- */
.review-summary {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2;
  color: var(--text-primary);
  max-width: 720px;
  margin-bottom: 48px;
}
.review-summary p { margin-bottom: 20px; }
.quotes { display: flex; flex-direction: column; gap: 24px; }
.quote {
  border-left: 1px solid var(--gold-bright);
  padding-left: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-primary);
}
.quote cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}
.quote cite::before { content: "— "; }

/* "not recommended" card */
.not-rec-card {
  margin-top: 56px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 36px 32px;
}
.not-rec-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 12px;
}
.not-rec-card h4::before { content: "✦"; color: var(--gold-bright); }
.not-rec-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.not-rec-card li {
  font-size: 14px; color: var(--text-primary);
  padding-left: 18px;
  position: relative;
}
.not-rec-card li::before { content: "・"; position: absolute; left: 0; color: var(--text-muted); }
.not-rec-card__alt {
  border-top: 1px solid var(--gold-line);
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Editor experience report ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) { .exp-grid { grid-template-columns: 1fr; gap: 32px; } }
.exp-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  position: relative;
  filter: grayscale(1);
  overflow: hidden;
}
.exp-image::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(200,169,106,0.16), transparent 55%),
    repeating-linear-gradient(135deg,
      rgba(241,225,180,0.04) 0 8px,
      rgba(241,225,180,0) 8px 16px);
}
.exp-image__label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}
.exp-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 18px;
  font-size: 13px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold-line);
}
.exp-meta dt {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.exp-meta dd { margin: 0; color: var(--text-primary); }
.exp-body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 24px;
}

/* ---------- Price simulator ---------- */
.sim-card {
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 768px) { .sim-card { grid-template-columns: 1fr; gap: 36px; padding: 36px 24px; } }
.sim-control h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sim-value {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--text-heading);
  letter-spacing: 0.04em;
}
.sim-value .unit { font-size: 18px; color: var(--text-muted); margin-left: 8px; letter-spacing: 0.2em; }
.sim-slider {
  margin-top: 28px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--gold-line);
  outline: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: var(--gold-bright);
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--gold-bright);
  transition: transform 200ms;
}
.sim-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sim-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--gold-bright);
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  cursor: pointer;
}
.sim-bounds {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 8px;
}
.sim-result {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sim-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--gold-line);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.sim-row__label { color: var(--text-muted); font-size: 13px; }
.sim-row__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.sim-row--highlight .sim-row__label { color: var(--text-heading); font-weight: 600; }
.sim-row--highlight .sim-row__value {
  color: var(--gold-bright);
  font-size: 30px;
}
.sim-note {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-heading);
  font-style: italic;
}

/* ---------- Similar teachers ---------- */
.sim-tellers {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
@media (max-width: 900px) { .sim-tellers { grid-template-columns: 1fr; } }
.sim-block h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sim-block .stack { display: flex; flex-direction: column; gap: 16px; }
.sim-block .stack--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .sim-block .stack--row { grid-template-columns: 1fr; } }
.sim-teller {
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: background 240ms, border-color 240ms, transform 200ms;
}
.sim-teller:hover {
  background: var(--bg-section);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.sim-teller .avatar { width: 64px; height: 64px; }
.sim-teller__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}
.sim-teller__svc { font-size: 11px; color: var(--text-muted); letter-spacing: 0.15em; }
.sim-teller__note { font-size: 12px; color: var(--text-primary); margin-top: 6px; line-height: 1.7; }
.sim-teller__arrow {
  margin-left: auto;
  color: var(--text-heading);
  font-size: 18px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--gold-line);
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--gold-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color 200ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-heading); }
.faq-item summary .faq-toggle {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-heading);
  font-weight: 300;
  margin-left: auto;
}
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-toggle { transition: transform 240ms ease; }
.faq-body {
  padding: 0 0 28px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
  max-width: 860px;
}

/* ---------- Summary CTA (teacher / category) ---------- */
.summary-body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2;
  max-width: 760px;
  margin-bottom: 56px;
}
.summary-body p { margin-bottom: 24px; }

/* ---------- Related links cluster ---------- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 64px 0;
  border-top: 1px solid var(--gold-line);
}
.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color 200ms, color 200ms, background 200ms;
  letter-spacing: 0.04em;
}
.related-links a:hover { border-color: var(--gold-bright); color: var(--text-heading); background: var(--bg-elevated); }


/* ==========================================================
   CATEGORY PAGE
   ========================================================== */

.cat-fv {
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cat-fv::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200, 169, 106, calc(0.10 * var(--gold-intensity))) 0%, transparent 55%);
  pointer-events: none;
}
.cat-fv > * { position: relative; }
.cat-fv__chapter {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.cat-fv__chapter::before, .cat-fv__chapter::after {
  content: ""; display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-line);
}
.cat-fv__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 120px);
  color: var(--text-heading);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
  line-height: 1;
}
.cat-fv__poem {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 2.1;
  color: var(--text-primary);
  margin: 36px 0;
  letter-spacing: 0.06em;
}
.cat-fv__data {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  margin: 36px auto 40px;
  max-width: 540px;
  letter-spacing: 0.04em;
}

/* ---------- Concern essay ---------- */
.essay-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .essay-grid { grid-template-columns: 1fr; gap: 48px; } }
.essay-body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--text-primary);
}
.essay-body p { margin-bottom: 28px; }
.essay-aside {
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 32px 28px;
  position: sticky;
  top: 96px;
}
.essay-aside h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 10px;
}
.essay-aside h4::before { content: "✦"; color: var(--gold-bright); }
.essay-aside ul { display: flex; flex-direction: column; gap: 12px; }
.essay-aside li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.essay-aside li::before {
  content: "・";
  position: absolute; left: 0;
  color: var(--text-muted);
}

/* ---------- TOP3 large ranking sections ---------- */
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--gold-line);
}
.rank-item:first-child { border-top: none; padding-top: 32px; }
.rank-item.is-reversed { direction: rtl; }
.rank-item.is-reversed > * { direction: ltr; }
@media (max-width: 900px) {
  .rank-item { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .rank-item.is-reversed { direction: ltr; }
}
.rank-portrait {
  aspect-ratio: 3 / 4;
}
.rank-body__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.rank-body__num .diamond { font-size: 12px; }
.rank-body__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text-heading);
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.rank-body__kana {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 10px;
}
.rank-body__rule {
  width: 60px; height: 1px;
  background: var(--gold-bright);
  margin: 24px 0;
}
.rank-body__svc {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.rank-scores {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.rank-score__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rank-score__value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-heading);
  letter-spacing: 0.06em;
}
.rank-score--main .rank-score__value {
  color: var(--gold-bright);
  font-size: 32px;
}
.rank-block {
  margin: 22px 0;
}
.rank-block h5 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.rank-block h5::before { content: "✦"; color: var(--gold-bright); }
.rank-block p, .rank-block ul {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
}
.rank-block ul { display: flex; gap: 14px; flex-wrap: wrap; }
.rank-block li { font-size: 14px; }
.rank-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- TOP 4-10 compact rows ---------- */
.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: background 240ms, border-color 240ms;
}
.rank-row:hover {
  background: var(--bg-section);
  border-color: var(--gold-bright);
}
@media (max-width: 768px) {
  .rank-row { grid-template-columns: 80px 1fr; gap: 16px; padding: 20px; }
  .rank-row .rank-row__actions { grid-column: 1 / -1; margin-top: 8px; }
}
.rank-row__num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  min-width: 72px;
}
.rank-row__num small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rank-row__main {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}
.rank-row__main .avatar { width: 80px; height: 80px; }
.rank-row__info {
  display: flex; flex-direction: column; gap: 4px;
}
.rank-row__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}
.rank-row__meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.rank-row__note {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 6px;
  line-height: 1.7;
}
.rank-row__actions {
  display: flex; gap: 8px;
  flex-shrink: 0;
}

/* ---------- Service compare cards (Section 6) ---------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: background 240ms, border-color 240ms, transform 200ms;
}
.svc-card:hover { background: var(--bg-section); border-color: var(--gold-bright); transform: translateY(-2px); }
.svc-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-heading);
  letter-spacing: 0.06em;
}
.svc-card__rule { width: 40px; height: 1px; background: var(--gold-bright); opacity: 0.85; }
.svc-card__highlight {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-heading);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.svc-card__stats {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.svc-card__stats div {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
}
.svc-card__stats div span:first-child { color: var(--text-muted); letter-spacing: 0.06em; }
.svc-card__stats div span:last-child {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-heading);
}

/* ---------- 5 how-to selection ---------- */
.howto-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 56px;
}
@media (max-width: 768px) { .howto-list { grid-template-columns: 1fr; } }
.howto-item {
  padding: 24px 0;
  border-top: 1px solid var(--gold-line);
}
.howto-item__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 14px;
}
.howto-item__num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-heading);
  letter-spacing: 0.04em;
}
.howto-item h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  flex-grow: 1;
}
.howto-item p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-primary);
}

/* ---------- Final CTA (category) ---------- */
.cat-final {
  background: var(--bg-section);
  text-align: center;
  padding: 120px 0;
}
.cat-final__head {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--text-heading);
  letter-spacing: 0.06em;
  margin: 48px 0;
}
.cat-final__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.cat-final .ad-note { margin-top: 24px; }

/* === cosmos.css (scoped) === */
/* ============================================================
   占い師.com — Cosmic background v3 (photographic)
   実写っぽいディープスペース。
   - 星雲は粒状感・色のにじみ・不規則性を演出
   - 星は密度を上げてランダム配置（手書きの12個ではなく
     SVGに数百のドットを焼き込んだタイルを使用）
   - SVGノイズフィルターでフィルム粒子感を重ねる
   - 動きなし
   ============================================================ */

#uranaishi-post { background-color: #02010a; }
#uranaishi-post { background-color: transparent; }

/* =========================================================
   Cosmos container
   ========================================================= */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* =========================================================
   Base + nebula — soft, diffuse, photo-like color clouds
   ========================================================= */
.cosmos__nebula {
  position: absolute;
  inset: -8%; /* overshoot so blurred edges aren't visible */
  background:
    /* deep magenta-violet cloud, upper-left */
    radial-gradient(ellipse 50% 40% at 18% 20%,
      rgba(122, 60, 168, 0.55) 0%,
      rgba(80, 40, 130, 0.30) 38%,
      transparent 65%),
    /* tighter purple hot-spot inside it */
    radial-gradient(ellipse 18% 14% at 22% 26%,
      rgba(180, 110, 220, 0.42) 0%,
      transparent 70%),
    /* deep blue cloud, lower-right */
    radial-gradient(ellipse 55% 45% at 84% 78%,
      rgba(40, 70, 180, 0.55) 0%,
      rgba(30, 55, 140, 0.30) 38%,
      transparent 65%),
    /* tighter cyan hot-spot inside it */
    radial-gradient(ellipse 14% 12% at 80% 82%,
      rgba(90, 160, 230, 0.32) 0%,
      transparent 70%),
    /* warm dust cloud, mid-bottom */
    radial-gradient(ellipse 60% 30% at 45% 90%,
      rgba(180, 100, 70, 0.22) 0%,
      transparent 65%),
    /* faint rose, mid-right */
    radial-gradient(ellipse 30% 25% at 80% 35%,
      rgba(190, 70, 130, 0.30) 0%,
      transparent 70%),
    /* dim teal, mid-left */
    radial-gradient(ellipse 28% 22% at 8% 60%,
      rgba(50, 130, 150, 0.20) 0%,
      transparent 70%),
    /* heavy edge vignette */
    radial-gradient(ellipse 120% 100% at 50% 50%,
      transparent 30%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.85) 100%),
    /* black sky */
    radial-gradient(ellipse 90% 80% at 50% 40%,
      #050217 0%, #02010c 60%, #000003 100%);
  filter: blur(28px) saturate(1.05);
}

/* Second nebula layer: smaller streak-like clouds — gives "wisp" character */
.cosmos__wisps {
  position: absolute;
  inset: -6%;
  background:
    /* diagonal violet streak */
    radial-gradient(ellipse 40% 8% at 30% 30%,
      rgba(140, 80, 200, 0.35) 0%, transparent 65%),
    /* diagonal blue streak */
    radial-gradient(ellipse 36% 7% at 70% 65%,
      rgba(60, 100, 200, 0.30) 0%, transparent 65%),
    /* small rose wisp */
    radial-gradient(ellipse 20% 5% at 60% 25%,
      rgba(200, 90, 130, 0.22) 0%, transparent 65%),
    /* small gold dust wisp near horizon */
    radial-gradient(ellipse 32% 6% at 22% 70%,
      rgba(220, 170, 90, 0.18) 0%, transparent 65%);
  filter: blur(18px);
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
}

/* =========================================================
   Starfield — SVG with hundreds of dots burned in as data URI
   Much higher density and varied size/brightness than gradients
   ========================================================= */
.cosmos__stars {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='960' height='720' viewBox='0 0 960 720'><defs><filter id='g' x='-50%' y='-50%' width='200%' height='200%'><feGaussianBlur stdDeviation='0.4'/></filter></defs><g fill='%23fffbe8' filter='url(%23g)'><circle cx='32' cy='48' r='0.7'/><circle cx='78' cy='102' r='0.5'/><circle cx='124' cy='34' r='0.6'/><circle cx='168' cy='176' r='0.8'/><circle cx='214' cy='62' r='0.5'/><circle cx='268' cy='130' r='1.1' opacity='0.95'/><circle cx='312' cy='84' r='0.6'/><circle cx='356' cy='192' r='0.7'/><circle cx='402' cy='42' r='0.5'/><circle cx='448' cy='118' r='0.9'/><circle cx='492' cy='66' r='0.5'/><circle cx='538' cy='148' r='0.7'/><circle cx='584' cy='28' r='0.6'/><circle cx='628' cy='102' r='1.3' opacity='1'/><circle cx='672' cy='52' r='0.5'/><circle cx='716' cy='168' r='0.7'/><circle cx='762' cy='38' r='0.6'/><circle cx='806' cy='126' r='0.5'/><circle cx='852' cy='74' r='0.9'/><circle cx='898' cy='154' r='0.6'/><circle cx='52' cy='208' r='0.8'/><circle cx='96' cy='248' r='0.5'/><circle cx='142' cy='282' r='1.4' opacity='1'/><circle cx='186' cy='222' r='0.5'/><circle cx='232' cy='318' r='0.7'/><circle cx='276' cy='244' r='0.5'/><circle cx='322' cy='302' r='0.6'/><circle cx='368' cy='266' r='1.1' opacity='0.95'/><circle cx='412' cy='338' r='0.5'/><circle cx='458' cy='208' r='0.6'/><circle cx='502' cy='292' r='0.8'/><circle cx='546' cy='232' r='0.5'/><circle cx='592' cy='328' r='0.6'/><circle cx='638' cy='258' r='0.7'/><circle cx='682' cy='312' r='0.5'/><circle cx='728' cy='238' r='1.2' opacity='1'/><circle cx='774' cy='298' r='0.6'/><circle cx='818' cy='218' r='0.5'/><circle cx='864' cy='278' r='0.7'/><circle cx='908' cy='332' r='0.5'/><circle cx='38' cy='378' r='0.6'/><circle cx='84' cy='418' r='0.5'/><circle cx='128' cy='362' r='0.8'/><circle cx='174' cy='438' r='1.5' opacity='1'/><circle cx='220' cy='388' r='0.5'/><circle cx='264' cy='452' r='0.6'/><circle cx='310' cy='398' r='0.7'/><circle cx='356' cy='468' r='0.5'/><circle cx='402' cy='412' r='0.9'/><circle cx='446' cy='378' r='0.6'/><circle cx='492' cy='448' r='0.5'/><circle cx='536' cy='392' r='0.7'/><circle cx='582' cy='462' r='1.1' opacity='0.95'/><circle cx='628' cy='402' r='0.6'/><circle cx='672' cy='458' r='0.5'/><circle cx='716' cy='382' r='0.7'/><circle cx='762' cy='448' r='0.6'/><circle cx='808' cy='398' r='0.8'/><circle cx='854' cy='462' r='0.5'/><circle cx='898' cy='418' r='0.6'/><circle cx='62' cy='498' r='0.7'/><circle cx='108' cy='548' r='0.5'/><circle cx='152' cy='592' r='1.3' opacity='1'/><circle cx='196' cy='522' r='0.6'/><circle cx='242' cy='588' r='0.5'/><circle cx='288' cy='538' r='0.7'/><circle cx='332' cy='608' r='0.5'/><circle cx='378' cy='552' r='0.9'/><circle cx='422' cy='618' r='0.6'/><circle cx='468' cy='538' r='0.5'/><circle cx='512' cy='598' r='0.7'/><circle cx='558' cy='532' r='1.2' opacity='0.95'/><circle cx='604' cy='608' r='0.5'/><circle cx='648' cy='548' r='0.6'/><circle cx='694' cy='618' r='0.5'/><circle cx='738' cy='552' r='0.7'/><circle cx='784' cy='612' r='0.6'/><circle cx='828' cy='528' r='1.4' opacity='1'/><circle cx='874' cy='598' r='0.5'/><circle cx='918' cy='548' r='0.6'/><circle cx='44' cy='658' r='0.5'/><circle cx='88' cy='692' r='0.7'/><circle cx='134' cy='648' r='0.5'/><circle cx='180' cy='702' r='0.6'/><circle cx='226' cy='662' r='1.1' opacity='1'/><circle cx='272' cy='698' r='0.5'/><circle cx='318' cy='658' r='0.7'/><circle cx='362' cy='702' r='0.6'/><circle cx='408' cy='662' r='0.5'/><circle cx='452' cy='698' r='0.8'/><circle cx='498' cy='658' r='0.5'/><circle cx='542' cy='692' r='0.6'/><circle cx='588' cy='658' r='0.7'/><circle cx='634' cy='698' r='0.5'/><circle cx='678' cy='662' r='0.6'/><circle cx='722' cy='702' r='1.3' opacity='1'/><circle cx='766' cy='658' r='0.5'/><circle cx='812' cy='692' r='0.6'/><circle cx='858' cy='662' r='0.5'/><circle cx='904' cy='698' r='0.7'/><circle cx='18' cy='128' r='0.5'/><circle cx='58' cy='168' r='0.4'/><circle cx='118' cy='212' r='0.4'/><circle cx='208' cy='118' r='0.4'/><circle cx='248' cy='62' r='0.5'/><circle cx='292' cy='198' r='0.4'/><circle cx='382' cy='108' r='0.4'/><circle cx='428' cy='168' r='0.5'/><circle cx='478' cy='52' r='0.4'/><circle cx='522' cy='118' r='0.4'/><circle cx='568' cy='202' r='0.5'/><circle cx='612' cy='148' r='0.4'/><circle cx='658' cy='32' r='0.4'/><circle cx='702' cy='118' r='0.5'/><circle cx='748' cy='208' r='0.4'/><circle cx='792' cy='62' r='0.4'/><circle cx='836' cy='148' r='0.5'/><circle cx='882' cy='208' r='0.4'/><circle cx='928' cy='98' r='0.4'/><circle cx='12' cy='282' r='0.4'/><circle cx='58' cy='342' r='0.5'/><circle cx='102' cy='392' r='0.4'/><circle cx='208' cy='282' r='0.4'/><circle cx='248' cy='418' r='0.5'/><circle cx='342' cy='342' r='0.4'/><circle cx='428' cy='282' r='0.4'/><circle cx='478' cy='378' r='0.5'/><circle cx='568' cy='328' r='0.4'/><circle cx='612' cy='418' r='0.4'/><circle cx='708' cy='348' r='0.5'/><circle cx='748' cy='278' r='0.4'/><circle cx='848' cy='338' r='0.4'/><circle cx='888' cy='408' r='0.5'/><circle cx='932' cy='278' r='0.4'/></g></svg>");
  background-size: 960px 720px;
  background-repeat: repeat;
  opacity: 0.95;
}

/* Layer B: slightly offset, dimmer micro-stars for depth */
.cosmos__stars-2 {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='480' viewBox='0 0 640 480'><g fill='%23f1e1b4'><circle cx='22' cy='38' r='0.4'/><circle cx='62' cy='78' r='0.4'/><circle cx='102' cy='32' r='0.5'/><circle cx='142' cy='112' r='0.4'/><circle cx='182' cy='68' r='0.4'/><circle cx='222' cy='148' r='0.5'/><circle cx='262' cy='42' r='0.4'/><circle cx='302' cy='128' r='0.4'/><circle cx='342' cy='82' r='0.5'/><circle cx='382' cy='168' r='0.4'/><circle cx='422' cy='38' r='0.4'/><circle cx='462' cy='118' r='0.5'/><circle cx='502' cy='72' r='0.4'/><circle cx='542' cy='162' r='0.4'/><circle cx='582' cy='52' r='0.5'/><circle cx='622' cy='132' r='0.4'/><circle cx='32' cy='192' r='0.4'/><circle cx='72' cy='248' r='0.5'/><circle cx='112' cy='208' r='0.4'/><circle cx='152' cy='272' r='0.4'/><circle cx='192' cy='228' r='0.4'/><circle cx='232' cy='288' r='0.5'/><circle cx='272' cy='222' r='0.4'/><circle cx='312' cy='268' r='0.4'/><circle cx='352' cy='232' r='0.5'/><circle cx='392' cy='298' r='0.4'/><circle cx='432' cy='218' r='0.4'/><circle cx='472' cy='272' r='0.5'/><circle cx='512' cy='228' r='0.4'/><circle cx='552' cy='292' r='0.4'/><circle cx='592' cy='208' r='0.5'/><circle cx='632' cy='272' r='0.4'/><circle cx='28' cy='328' r='0.4'/><circle cx='68' cy='382' r='0.5'/><circle cx='108' cy='342' r='0.4'/><circle cx='148' cy='402' r='0.4'/><circle cx='188' cy='358' r='0.4'/><circle cx='228' cy='428' r='0.5'/><circle cx='268' cy='342' r='0.4'/><circle cx='308' cy='398' r='0.4'/><circle cx='348' cy='362' r='0.5'/><circle cx='388' cy='438' r='0.4'/><circle cx='428' cy='348' r='0.4'/><circle cx='468' cy='412' r='0.5'/><circle cx='508' cy='358' r='0.4'/><circle cx='548' cy='432' r='0.4'/><circle cx='588' cy='342' r='0.5'/><circle cx='628' cy='402' r='0.4'/></g></svg>");
  background-size: 640px 480px;
  background-repeat: repeat;
  background-position: 130px 90px; /* offset for parallax depth */
  opacity: 0.7;
}

/* =========================================================
   Film grain — gives the cosmic image that photographic
   "telescope sensor noise" feel. Static SVG turbulence.
   ========================================================= */
.cosmos__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  background-size: 400px 400px;
}

/* Subtle "dust" — very low-freq fractal noise for soft inhomogeneity */
.cosmos__dust {
  position: absolute;
  inset: -4%;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0.6 0 0 0 0.10   0 0.5 0 0 0.06   0 0 0.8 0 0.18   0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23d)'/></svg>");
  background-size: 1400px 1400px;
  filter: blur(6px);
}

/* =========================================================
   Distant galaxy — a soft, blurred elliptical glow with
   subtle banding. Sits in upper-mid area like a real one
   captured by a deep-field telescope.
   ========================================================= */
.cosmos__galaxy {
  position: fixed;
  top: 14vh;
  right: 9vw;
  width: 360px;
  height: 360px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 18% at 50% 50%,
      rgba(241, 225, 180, 0.42) 0%,
      rgba(200, 169, 106, 0.20) 40%,
      transparent 75%),
    radial-gradient(ellipse 80% 32% at 50% 50%,
      rgba(180, 130, 200, 0.16) 0%,
      transparent 70%),
    radial-gradient(circle at 50% 50%,
      rgba(255, 240, 200, 0.10) 0%,
      transparent 60%);
  transform: rotate(-22deg);
  filter: blur(2px);
  opacity: 0.85;
}
.cosmos__galaxy::after {
  /* tiny dense core */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 250, 230, 0.85) 0%,
    rgba(241, 225, 180, 0.35) 40%,
    transparent 70%);
  filter: blur(1px);
}

/* =========================================================
   Footer fades to fully black, no stars visible
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.92) 60%,
    #000 100%);
}

/* Header — slightly more opaque since it overlays cosmos */
.site-header {
  background: rgba(5, 2, 19, 0.78) !important;
}

/* Section bands — let cosmos breathe through */
section[style*="bg-section"],
.concept,
.editor-quote,
.final-cta,
.cat-final {
  background-color: rgba(6, 3, 18, 0.55) !important;
  backdrop-filter: blur(1px);
}

/* Cards — semi-translucent */
.way-card,
.teller-card,
.svc-card,
.sim-card,
.not-rec-card,
.essay-aside,
.rank-row,
.sim-teller,
.exp-image,
.portrait,
.about-art {
  background-color: rgba(14, 10, 36, 0.82);
}

.editorial-card__img {
  background-color: rgba(14, 10, 36, 0.6);
}

.tweaks-panel {
  background: #0d0a22;
}

.svc-table tbody tr:nth-child(even) {
  background-color: rgba(20, 14, 44, 0.55);
}
.svc-table tbody tr:hover {
  background-color: rgba(14, 10, 36, 0.85);
}

/* Hero — let the galaxy be the hero's atmosphere */
.hero::before { display: none; }

/* =========================================================
   Animations — twinkle + meteors (diagonal, straight-line)
   ========================================================= */

/* Each star layer twinkles with a bigger opacity range and
   slightly different period so groups appear to wink at
   different times. Range is now much more visible. */
@keyframes twinkleA {
  0%, 100% { opacity: 1.0; }
  35%      { opacity: 0.18; }
  70%      { opacity: 0.85; }
}
@keyframes twinkleB {
  0%, 100% { opacity: 0.9; }
  25%      { opacity: 0.10; }
  60%      { opacity: 0.7; }
}
.cosmos__stars   { animation: twinkleA  6s ease-in-out infinite; }
.cosmos__stars-2 { animation: twinkleB  4.5s ease-in-out infinite; }

.cosmos__stars-3 {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='720' height='540' viewBox='0 0 720 540'><g fill='%23fffbe8'><circle cx='80' cy='120' r='1.6'/><circle cx='240' cy='60' r='1.2'/><circle cx='420' cy='180' r='1.8'/><circle cx='580' cy='90' r='1.3'/><circle cx='160' cy='320' r='1.4'/><circle cx='340' cy='440' r='1.7'/><circle cx='520' cy='360' r='1.2'/><circle cx='660' cy='260' r='1.5'/><circle cx='100' cy='480' r='1.3'/><circle cx='280' cy='210' r='1.1'/><circle cx='480' cy='460' r='1.4'/><circle cx='620' cy='480' r='1.2'/></g></svg>");
  background-size: 720px 540px;
  background-repeat: repeat;
  background-position: 80px 50px;
  opacity: 0.85;
  animation: twinkleFlicker 3.2s ease-in-out infinite;
}
@keyframes twinkleFlicker {
  0%, 100% { opacity: 1.0; }
  20%      { opacity: 0.05; }
  40%      { opacity: 0.95; }
  62%      { opacity: 0.15; }
  82%      { opacity: 0.8; }
}

/* =========================================================
   Meteors — occasional, diagonal, fast streaks
   ========================================================= */
.meteor {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 250, 230, 0) 0%,
    rgba(255, 250, 230, 0.0) 20%,
    rgba(255, 250, 230, 0.55) 60%,
    rgba(255, 250, 230, 0.95) 92%,
    rgba(255, 250, 230, 1) 100%);
  filter: drop-shadow(0 0 4px rgba(241, 225, 180, 0.6))
          drop-shadow(0 0 10px rgba(200, 169, 106, 0.35));
  opacity: 0;
}

/* Meteors travel diagonally as a straight line —
   the streak rotation and the travel direction are the same
   (translateX inside a rotate frame), so the meteor stays on its own axis. */
.meteor--a {
  top: 16vh; right: -14vw;
  animation: meteorA 14s linear infinite;
  animation-delay: 4s;
}
@keyframes meteorA {
  0%   { opacity: 0; transform: rotate(-18deg) translateX(0); }
  3%   { opacity: 0; }
  4%   { opacity: 1; }
  8%   { opacity: 1; transform: rotate(-18deg) translateX(-130vw); }
  9%   { opacity: 0; }
  100% { opacity: 0; transform: rotate(-18deg) translateX(-130vw); }
}

.meteor--b {
  top: 8vh; right: -12vw;
  width: 220px;
  animation: meteorB 22s linear infinite;
  animation-delay: 11s;
}
@keyframes meteorB {
  0%   { opacity: 0; transform: rotate(-26deg) translateX(0); }
  2%   { opacity: 0; }
  3%   { opacity: 0.95; }
  7%   { opacity: 0.95; transform: rotate(-26deg) translateX(-135vw); }
  8%   { opacity: 0; }
  100% { opacity: 0; transform: rotate(-26deg) translateX(-135vw); }
}

/* Third meteor: opposite direction (left → right) */
.meteor--c {
  top: 26vh; left: -14vw;
  width: 140px;
  animation: meteorC 31s linear infinite;
  animation-delay: 7s;
  background: linear-gradient(90deg,
    rgba(255, 250, 230, 1) 0%,
    rgba(255, 250, 230, 0.95) 8%,
    rgba(255, 250, 230, 0.55) 40%,
    rgba(255, 250, 230, 0) 100%);
}
@keyframes meteorC {
  0%   { opacity: 0; transform: rotate(14deg) translateX(0); }
  4%   { opacity: 0; }
  5%   { opacity: 0.85; }
  10%  { opacity: 0.85; transform: rotate(14deg) translateX(130vw); }
  11%  { opacity: 0; }
  100% { opacity: 0; transform: rotate(14deg) translateX(130vw); }
}

/* On smaller viewports, scale star tiles smaller for density */
@media (max-width: 768px) {
  .cosmos__stars   { background-size: 720px 540px; }
  .cosmos__stars-2 { background-size: 480px 360px; }
  .cosmos__galaxy  { width: 220px; height: 220px; top: 8vh; right: 4vw; }
}

/* respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cosmos__stars,
  .cosmos__stars-2,
  .cosmos__stars-3 { animation: none; }
  .meteor { display: none; }
}


/* === SWELL UI 抑制 + 全幅化 (uranaishi single post) === */
body:has(#uranaishi-post) {
  background-color: var(--bg-base, #070413) !important;
}
body:has(#uranaishi-post) .l-content,
body:has(#uranaishi-post) .l-mainContent,
body:has(#uranaishi-post) .l-mainContent__inner,
body:has(#uranaishi-post) article,
body:has(#uranaishi-post) .post_content,
body:has(#uranaishi-post) main {
  background-color: var(--bg-base, #070413) !important;
  color: var(--text-primary, #f1e1b4) !important;
}
/* 以下は SWELL設定でカバーされない/カバーしにくい要素のみ CSS で非表示 */
body:has(#uranaishi-post) .p-articleHead.c-postTitle,
body:has(#uranaishi-post) .p-articleMetas,
body:has(#uranaishi-post) .p-articleThumb {
  /* 投稿冒頭の SWELL 標準タイトル/メタ/アイキャッチを非表示
     (FV 内に独自タイトル/メタを配置するため) */
  display: none !important;
}
body:has(#uranaishi-post) .l-mainContent,
body:has(#uranaishi-post) .l-mainContent__inner,
body:has(#uranaishi-post) .l-content,
body:has(#uranaishi-post) .l-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#uranaishi-post {
  display: block;
  background-color: var(--bg-base, #070413) !important;
  color: var(--text-primary, #f1e1b4) !important;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  width: 100%;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

#uranaishi-post h1,
#uranaishi-post h2,
#uranaishi-post h3,
#uranaishi-post h4,
#uranaishi-post h5,
#uranaishi-post .section-head h2 {
  color: var(--text-heading) !important;
  font-family: var(--font-serif);
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}
#uranaishi-post a {
  color: var(--text-heading);
}

/* === fade アニメ無効化（JS無しでもセクション表示） === */
#uranaishi-post .fade {
  opacity: 1 !important;
  transform: none !important;
}
