/* shindan.css — day-mode shell for the /shindan/ diagnostics mini-site.
   The paid LP (root, styles.css) is NIGHT (deep indigo + gold starry sky).
   This mini-site is DAY: cream background, lavender + gold accents, navy
   text. The dark accent cards already shipped inside each diagnostic's own
   markup (.aff-cta, .sk-phase/.sk-options/.sk-choice, .t2026-form) are left
   as-is on purpose -- they read as a small "peek into the night sky" inside
   an otherwise light page, tying this site back to the paid LP without a
   full re-theme of code we do not own.
   Everything here is scoped under body.sd-body so it never leaks onto the
   root LP, asobi.html or shigoto.html, which do not carry that class. */

body.sd-body {
  --sd-bg: #fbf6ea;
  --sd-bg-deep: #f3ead6;
  --sd-card: #ffffff;
  --sd-ink: #2c2a4a;
  --sd-muted: #6b6588;
  --sd-gold: #d9b97c;
  --sd-gold-deep: #a8905e;
  --sd-lavender: #7c5fc0;
  --sd-lavender-deep: #5c4494;
  --sd-line-green: #06C755;
  --sd-radius: 16px;
  background:
    radial-gradient(circle at 14% 8%, rgba(124, 95, 192, 0.10), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(217, 185, 124, 0.16), transparent 46%),
    var(--sd-bg);
  color: var(--sd-ink);
}

/* ---- neutralize dark-theme text colors this page inherits from styles.css /
   tenki.css so headings/labels do not go invisible on the cream background */
body.sd-body .section-title,
body.sd-body .title-orn,
body.sd-body .daily-sub,
body.sd-body .daily-line-note,
body.sd-body .daily-game-note .game-link,
body.sd-body .t2026-eyebrow,
body.sd-body .t2026-title,
body.sd-body .t2026-sub,
body.sd-body .t2026-free,
body.sd-body .t2026-foot,
body.sd-body .t2026-foot a {
  color: var(--sd-ink);
}
body.sd-body .title-orn,
body.sd-body .title-orn::after,
body.sd-body .title-orn--right {
  background: linear-gradient(to right, transparent, var(--sd-gold));
}
body.sd-body .title-orn--right { background: linear-gradient(to left, transparent, var(--sd-gold)); }
body.sd-body .daily-line-note,
body.sd-body .t2026-eyebrow,
body.sd-body .t2026-free { color: var(--sd-muted); }
body.sd-body .daily-game-note .game-link { border-color: var(--sd-gold-deep); }
body.sd-body .daily-game-note .game-link:hover { background: rgba(217, 185, 124, 0.16); }

/* ---- shared layout ------------------------------------------------------ */
/* styles.css has a bare `main { background: <starfield>, var(--bg); }` rule
   (its night-sky texture for the paid LP). It targets the element, not a
   class, so it silently painted our own <main class="sd-main"> dark navy
   until this override -- caught visually, not by any selector we wrote. */
body.sd-body main { background: none; }

.sd-header,
.sd-main,
.sd-footer { width: min(100% - 2rem, 780px); margin-inline: auto; }

.sd-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  padding: 1rem 0 0.6rem;
}
.sd-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--sd-ink); }
.sd-brand img { width: 34px; height: auto; display: block; }
.sd-brand-name { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.sd-nav { display: flex; gap: 1rem; font-size: 0.85rem; }
.sd-nav a { color: var(--sd-lavender-deep); text-decoration: none; font-weight: 700; }
.sd-nav a:hover, .sd-nav a:focus-visible { text-decoration: underline; }

.sd-main { padding: 0.6rem 0 2.4rem; }

.sd-intro { text-align: center; padding: 0.6rem 0 1.4rem; }
.sd-intro h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 900; margin: 0 0 0.6rem; line-height: 1.4; }
.sd-intro p { font-size: 0.95rem; line-height: 1.9; color: var(--sd-muted); margin: 0 auto 0.8rem; max-width: 32rem; overflow-wrap: anywhere; }
/* hub tagline meta row: 「登録なし・10秒・シェア自由」 */
.sd-hub-meta { font-size: 0.8rem; color: var(--sd-gold-deep); letter-spacing: 0.06em; margin-top: -0.3rem; }
.sd-chip {
  display: inline-block; padding: 0.25rem 0.85rem; border-radius: 999px;
  background: rgba(124, 95, 192, 0.12); color: var(--sd-lavender-deep);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

/* ---- after-diagnosis block (affiliate slot / bridge CTA / related grid) - */
.sd-after { padding-top: 0.8rem; }

.sd-bridge {
  margin: 1.6rem auto 0; max-width: 34rem; padding: 1.4rem 1.2rem;
  background: var(--sd-card); border: 1px solid rgba(168, 144, 94, 0.35);
  border-radius: var(--sd-radius); text-align: center;
  box-shadow: 0 6px 20px rgba(44, 42, 74, 0.06);
}
.sd-bridge-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--sd-gold-deep); margin: 0 0 0.6rem;
}
.sd-bridge-text { font-size: 0.92rem; line-height: 1.9; color: var(--sd-ink); margin: 0 0 1rem; overflow-wrap: anywhere; }
.sd-bridge-btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px;
  background: linear-gradient(160deg, #221d55 0%, #191647 60%, #201a50 100%);
  color: #f6ead0; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 0.02em;
}
.sd-bridge-btn:hover, .sd-bridge-btn:focus-visible { filter: brightness(1.08); }

.sd-related { margin-top: 2rem; }
.sd-related-title {
  text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--sd-muted); margin: 0 0 1rem;
}

/* ---- diagnostic card grid (used for related + hub) ---------------------- */
.sd-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  max-width: 40rem; margin-inline: auto;
}
@media (min-width: 640px) { .sd-grid { grid-template-columns: repeat(3, 1fr); } }

.sd-card {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left;
  min-height: 44px; padding: 0.9rem 1rem; border-radius: 14px;
  background: var(--sd-card); border: 1px solid rgba(168, 144, 94, 0.25);
  text-decoration: none; color: var(--sd-ink);
  box-shadow: 0 3px 10px rgba(44, 42, 74, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sd-card:hover, .sd-card:focus-visible {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44, 42, 74, 0.1);
}
.sd-card-badge {
  align-self: flex-start; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--sd-lavender); padding: 0.1rem 0.5rem; border-radius: 999px;
}
.sd-card-name { font-weight: 700; font-size: 0.92rem; overflow-wrap: anywhere; }
.sd-card-desc { font-size: 0.78rem; color: var(--sd-muted); line-height: 1.6; overflow-wrap: anywhere; }
.sd-card-cat {
  margin-top: 0.15rem; font-size: 0.68rem; color: var(--sd-gold-deep); font-weight: 700;
}

/* extras (e.g. the water-orb mini game) are plain links, not diagnostics --
   a dashed border + gold badge keeps them visually distinct from the 11
   diagnostic cards inside the same category grid. */
.sd-card--extra { border-style: dashed; }
.sd-card-badge--extra { background: var(--sd-gold-deep); }

/* hub-only: cards sit under a category heading already, so the per-card
   category chip is dropped there (shell.js) in favor of a 3px top accent
   stripe per category. Two-class selectors so this wins over .sd-card's
   border shorthand regardless of source order. */
.sd-card.sd-card--cat-seikaku { border-top: 3px solid var(--sd-lavender); }
.sd-card.sd-card--cat-renai   { border-top: 3px solid #e0879b; }
.sd-card.sd-card--cat-unsei   { border-top: 3px solid var(--sd-gold); }
.sd-card.sd-card--cat-shigoto { border-top: 3px solid var(--sd-ink); }
.sd-card.sd-card--cat-play   { border-top: 3px solid #6fcdb0; }

/* ---- hub-only layout ------------------------------------------------------ */
.sd-hub-feature {
  display: block; text-decoration: none; color: var(--sd-ink);
  max-width: 34rem; margin: 0.4rem auto 2.2rem; padding: 1.4rem 1.3rem;
  border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, #fdf6e3, var(--sd-bg) 70%);
  border: 1px solid var(--sd-gold);
  box-shadow: 0 8px 24px rgba(44, 42, 74, 0.08);
}
.sd-hub-feature-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: var(--sd-lavender); padding: 0.15rem 0.6rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.sd-hub-feature-name { display: block; font-size: 1.15rem; font-weight: 900; margin-bottom: 0.4rem; }
.sd-hub-feature-desc { display: block; font-size: 0.88rem; color: var(--sd-muted); line-height: 1.8; overflow-wrap: anywhere; }

.sd-hub-group { margin-bottom: 2rem; }
.sd-hub-group-title {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; color: var(--sd-lavender-deep);
  margin: 0 0 0.8rem; padding-left: 0.2rem;
}

/* ---- footer -------------------------------------------------------------- */
.sd-footer {
  padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 0.78rem; color: var(--sd-muted);
}
.sd-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.9rem; margin-bottom: 0.6rem; }
.sd-footer-links a { color: var(--sd-lavender-deep); text-decoration: none; }
.sd-footer-links a:hover, .sd-footer-links a:focus-visible { text-decoration: underline; }
.sd-footer-note { line-height: 1.7; overflow-wrap: anywhere; }

/* ---- apex home (web/index.html) ------------------------------------------ */
.sd-hero { text-align: center; padding: 1rem 0 1.6rem; }
.sd-hero img { width: 132px; height: auto; margin: 0 auto 0.8rem; }
.sd-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; margin: 0 0 0.6rem; line-height: 1.5; }
.sd-hero p { font-size: 0.98rem; line-height: 1.9; color: var(--sd-muted); max-width: 30rem; margin: 0 auto; overflow-wrap: anywhere; }

.sd-section { margin: 2.4rem 0; }
.sd-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.sd-section-title { font-size: 1.1rem; font-weight: 900; margin: 0; }
.sd-section-more { font-size: 0.82rem; font-weight: 700; color: var(--sd-lavender-deep); text-decoration: none; white-space: nowrap; }
.sd-section-more:hover, .sd-section-more:focus-visible { text-decoration: underline; }

/* ---- blog: index list ------------------------------------------------------ */
.sd-blog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.4rem 0 1.4rem; }
.sd-blog-list { display: flex; flex-direction: column; gap: 0.9rem; }
.sd-blog-item {
  display: block; text-decoration: none; color: var(--sd-ink);
  padding: 1rem 1.1rem; border-radius: var(--sd-radius);
  background: var(--sd-card); border: 1px solid rgba(168, 144, 94, 0.25);
  box-shadow: 0 3px 10px rgba(44, 42, 74, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sd-blog-item:hover, .sd-blog-item:focus-visible {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44, 42, 74, 0.1);
}
.sd-blog-item-meta {
  display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.35rem;
  font-size: 0.74rem; color: var(--sd-gold-deep); font-weight: 700;
}
.sd-blog-item-title { display: block; font-size: 1.02rem; font-weight: 700; margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.sd-blog-item-desc { display: block; font-size: 0.85rem; color: var(--sd-muted); line-height: 1.7; overflow-wrap: anywhere; }
.sd-blog-empty { text-align: center; color: var(--sd-muted); font-size: 0.88rem; padding: 1.4rem 0; }

/* ---- blog: article page ---------------------------------------------------- */
.sd-article { max-width: 40em; margin: 0 auto; padding: 0.4rem 0 1rem; }
.sd-article-head { text-align: center; margin-bottom: 1.6rem; }
.sd-article-head h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); font-weight: 900; line-height: 1.5; margin: 0.6rem 0 0.7rem; }
.sd-article-meta { font-size: 0.78rem; color: var(--sd-muted); }
.sd-article-tags { margin-top: 0.6rem; display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.sd-article-tag {
  font-size: 0.7rem; color: var(--sd-lavender-deep); background: rgba(124, 95, 192, 0.10);
  padding: 0.15rem 0.6rem; border-radius: 999px;
}

.sd-article-body { font-size: 17px; line-height: 1.9; }
.sd-article-body h2 {
  font-size: 1.2rem; font-weight: 900; margin: 1.8rem 0 0.8rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sd-gold);
}
.sd-article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 0.6rem; color: var(--sd-lavender-deep); }
.sd-article-body p { margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.sd-article-body ul, .sd-article-body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.sd-article-body li { margin-bottom: 0.4rem; }
.sd-article-body a { color: var(--sd-lavender-deep); text-decoration: underline; }
.sd-article-body blockquote {
  margin: 0 0 1.1rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--sd-gold);
  color: var(--sd-muted);
}
.sd-article-body hr { border: none; border-top: 1px solid rgba(168, 144, 94, 0.35); margin: 1.6rem 0; }
.sd-article-body img { max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 0.4rem 0 1.1rem; }

/* ---- mobile guardrails ---------------------------------------------------- */
@media (max-width: 380px) {
  .sd-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .sd-card { padding: 0.75rem 0.8rem; }
}
