:root {
  --bg1: #0d0a1a;
  --bg2: #1a1330;
  --bg3: #241a3d;
  --gold: #d4af6a;
  --gold-bright: #f0cd82;
  --purple: #8a6fd6;
  --text: #ece6f5;
  --text-sub: #a99cc9;
  --border: rgba(212, 175, 106, 0.25);
  --card-bg: rgba(26, 19, 48, 0.72);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 16px 44px rgba(0, 0, 0, 0.6);
  --error: #ff6b81;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; }

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.lang-btn {
  font-family: "Cinzel", "Shippori Mincho", serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--purple));
  color: var(--bg1);
  border-color: transparent;
}
.lang-note {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-style: italic;
  margin: 6px 0 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  background: radial-gradient(circle at 50% 0%, var(--bg3) 0%, var(--bg2) 45%, var(--bg1) 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(138, 111, 214, 0.28), transparent 55%);
  animation: pulse 6s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.6; } to { opacity: 1; } }

.stars { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.star {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  animation: twinkle 5s ease-in-out infinite;
}
.star:nth-child(1) { top: 8%; left: 12%; font-size: 1rem; animation-delay: 0s; }
.star:nth-child(2) { top: 16%; left: 84%; font-size: 0.8rem; animation-delay: 0.8s; }
.star:nth-child(3) { top: 30%; left: 6%; font-size: 1.2rem; animation-delay: 1.6s; }
.star:nth-child(4) { top: 48%; left: 90%; font-size: 0.9rem; animation-delay: 2.4s; }
.star:nth-child(5) { top: 64%; left: 10%; font-size: 1rem; animation-delay: 3.2s; }
.star:nth-child(6) { top: 78%; left: 88%; font-size: 0.85rem; animation-delay: 0.4s; }
.star:nth-child(7) { top: 88%; left: 30%; font-size: 1rem; animation-delay: 1.2s; }
.star:nth-child(8) { top: 5%; left: 55%; font-size: 0.8rem; animation-delay: 2.8s; }

/* 超ワイド画面(2026-09-12、パステル3サイトと同じ方針)。機能コンテンツの幅は
   広げず、周囲の装飾(グロウ・星)を拡大・外側に再配置。 */
@media (min-width: 1400px) {
  .bg-glow {
    background:
      radial-gradient(circle at 50% 20%, rgba(138, 111, 214, 0.28), transparent 55%),
      radial-gradient(circle at 8% 75%, rgba(212, 175, 106, 0.16), transparent 45%),
      radial-gradient(circle at 92% 65%, rgba(138, 111, 214, 0.18), transparent 45%);
  }
  .star:nth-child(2) { left: 92%; font-size: 1.1rem; }
  .star:nth-child(4) { left: 96%; font-size: 1.3rem; }
  .star:nth-child(3) { left: 3%; font-size: 1.4rem; }
  .star:nth-child(6) { left: 90%; font-size: 1.1rem; }
}

/* 左右の余白に既存イラストを配置(2026-09-12、新規生成なし・既存アセット再利用)。
   日主イラストは168×252の低解像度アセットのため、拡大しすぎない幅に留める。 */
.bg-illustrations { display: none; }
@media (min-width: 1400px) {
  body:has(#screen-start.active) .bg-illustrations {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .bg-illust {
    position: absolute;
    width: 150px;
    border-radius: 24px;
    opacity: 0.55;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
  }
  .bg-illust-left { top: 14%; left: 4%; transform: rotate(-6deg); }
  .bg-illust-right { bottom: 12%; right: 4%; transform: rotate(6deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

#app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 24px;
}

.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; }
/* ?r=結果URLでの直接アクセス時、start画面を経由せず最初からresult画面を表示する(CLS/LCP対策、<head>のインラインスクリプトでhtmlに付与) */
html.deep-link-result #screen-start.active { display: none; }
html.deep-link-result #screen-result { display: flex; }

.eyebrow {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
}

.accent { color: var(--gold-bright); }

/* PC幅でのスタート画面2カラム化(2026-09-12、MBTI診断と同じ設計方針)。
   鑑定中・結果画面は幅を変えない。 */
.start-sidebar { display: flex; flex-direction: column; gap: 18px; }
.start-sidebar .transparency-box,
.start-sidebar .follow-links { margin-top: 0; padding-top: 0; border-top: none; }
@media (min-width: 900px) {
  #app:has(#screen-start.active) { max-width: 980px; }
  .start-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
  }
  .start-sidebar { padding-top: 6px; }
}

/* ---- スタート画面 ---- */
#screen-start { align-items: center; justify-content: center; }
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 26px 32px;
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.site-nav {
  max-width: 980px;
  margin: 0 auto 14px;
}
.site-nav-label {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.site-nav-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
.site-nav-links::-webkit-scrollbar { display: none; }
.site-nav-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.site-nav-link:hover { background: var(--gold); color: var(--bg1); }
.hero-banner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 4.8 / 1;
  object-fit: cover;
  object-position: center;
}
.hero-banner-crop-top .hero-banner-img { object-position: top; }
.emoji { font-size: 2.6rem; margin-bottom: 6px; filter: drop-shadow(0 0 14px rgba(212,175,106,0.5)); }
.hero-preview {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 2px 0 16px;
}
.hero-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  margin-left: -16px;
}
.hero-preview-img:first-child { margin-left: 0; transform: rotate(-6deg); }
.hero-preview-img:nth-child(2) { width: 76px; height: 76px; z-index: 2; transform: translateY(-6px); }
.hero-preview-img:nth-child(3) { transform: rotate(6deg); }
.card h1 {
  font-family: "Cinzel", "Shippori Mincho", serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 4px 0 16px;
  color: var(--gold-bright);
}
.lead { color: var(--text-sub); line-height: 1.85; margin-bottom: 22px; font-size: 0.96rem; }
.field-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 8px;
  text-align: left;
}
.date-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(10, 8, 20, 0.6);
  color: var(--text);
  margin-bottom: 20px;
  color-scheme: dark;
}
.date-select-group {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.date-select-group .date-input {
  width: auto;
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}
.date-input.invalid {
  border-color: var(--error);
}
.field-error {
  color: var(--error);
  font-size: 0.78rem;
  text-align: left;
  margin: 8px 0 20px;
}
.lucky-reason {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-style: italic;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8863f);
  color: #1a1330;
  border: none;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: "Cinzel", "Shippori Mincho", serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  margin-top: 20px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212, 175, 106, 0.45); }
.btn-secondary {
  background: rgba(212, 175, 106, 0.08);
  color: var(--gold-bright);
  border: 1.5px solid var(--border);
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}
.btn-secondary:hover { background: rgba(212, 175, 106, 0.16); }
.card .sub { font-size: 0.74rem; color: var(--text-sub); margin: 18px 0 0; }
.privacy-note { font-size: 0.8rem; color: var(--text-sub); text-align: left; margin: 4px 0 20px; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* 2026-09-12: 日主当てクイズ(友達版) */
.guess-question { margin: 0 0 22px; text-align: left; }
.guess-question-text { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.guess-options { display: flex; flex-direction: column; gap: 8px; }
.guess-option-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guess-option-btn:hover { border-color: var(--gold); }
.guess-option-btn.selected { border-color: var(--gold-bright); background: rgba(212, 175, 106, 0.14); }
#guess-reveal-body .lead { text-align: center; }

/* 2026-09-12: 今日の運勢カード(生年月日を入力する前の全訪問者に、その場で軽い価値を渡す) */
.daily-fortune-card {
  background: rgba(240, 205, 130, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
  text-align: left;
}
.daily-fortune-label { font-size: 0.78rem; color: var(--gold-bright); font-weight: 700; margin: 0 0 6px; letter-spacing: 0.03em; }
.daily-fortune-text { font-size: 0.88rem; color: var(--text-sub); line-height: 1.7; margin: 0; }
.daily-streak-text { font-size: 0.78rem; color: var(--gold-bright); margin: 8px 0 0; }

/* 診断の仕組み・透明性セクション(2026-09-12、他と違うところ+誠実な自己開示) */
.transparency-box {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(212,175,106,0.06);
  border: 1.5px dashed var(--border);
  border-radius: 20px;
  text-align: left;
}
.transparency-title { font-size: 0.88rem; font-weight: 700; color: var(--gold-bright); margin: 0 0 8px; }
.transparency-body { font-size: 0.82rem; color: var(--text); line-height: 1.7; margin: 0 0 10px; }
.transparency-note { font-size: 0.72rem; color: var(--text-sub); line-height: 1.6; margin: 0; }

/* ---- 鑑定中画面 ---- */
#screen-loading { align-items: center; justify-content: center; text-align: center; }
.loading-wrap { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loading-emoji { font-size: 2.8rem; animation: spin 2.4s linear infinite; filter: drop-shadow(0 0 16px rgba(212,175,106,0.6)); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-text { color: var(--text-sub); margin-top: 16px; font-size: 0.92rem; }

/* ---- 結果画面 ---- */
#screen-result { padding-top: 8px; }
.result-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.result-line {
  font-family: "Shippori Mincho", serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.6;
  margin: 4px 0 16px;
}
.result-desc { font-size: 0.92rem; line-height: 1.85; color: var(--text); text-align: left; margin-bottom: 14px; }
.result-subhead {
  font-family: "Cinzel", "Shippori Mincho", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-align: left;
  margin: 18px 0 8px;
}
.result-advice { font-size: 0.88rem; line-height: 1.8; color: var(--gold-bright); text-align: left; margin-bottom: 16px; }

/* 2026-09-12: 大運(10年ごとの運気サイクル) */
.dayun-section { margin: 0 0 16px; text-align: left; }
.dayun-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}
.dayun-card {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 68px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(212, 175, 106, 0.06);
}
.dayun-age { font-size: 0.7rem; color: var(--text-sub); }
.dayun-ganzhi { font-size: 1.1rem; font-weight: 700; color: var(--gold-bright); font-family: "Shippori Mincho", serif; }
.dayun-reading { font-size: 0.64rem; color: var(--text-sub); }
.lucky-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.22), rgba(138, 111, 214, 0.14));
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 22px rgba(212, 175, 106, 0.22);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lucky-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 106, 0.32); }
.lucky-remind { text-align: center; margin: 14px 0 0; }
.lucky-remind a { font-size: 0.76rem; color: var(--gold-bright); text-decoration: none; }
.lucky-remind a:hover { text-decoration: underline; }
.lucky-emoji { font-size: 1.6rem; flex: none; }
.lucky-text { flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.lucky-label { font-size: 0.66rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; }
.lucky-name { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.lucky-arrow { font-size: 1.3rem; color: var(--gold); flex: none; }
.pr-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bg1);
  background: var(--gold);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 5px;
  vertical-align: middle;
}

.optional-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-sub);
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.result-actions { margin-top: 22px; }
.btn-line { background: rgba(6, 199, 85, 0.08); border-color: #06c755; color: #4be08a; }
.btn-line:hover { background: rgba(6, 199, 85, 0.16); }

.follow-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.follow-label { font-size: 0.74rem; color: var(--text-sub); margin: 0 0 8px; }
.follow-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 106, 0.08);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.follow-link:hover { border-color: var(--gold); }

.site-footer { max-width: 480px; margin: 0 auto; padding: 20px 20px 32px; position: relative; z-index: 1; }
.site-footer p { font-size: 0.72rem; line-height: 1.7; color: var(--text-sub); margin: 0 0 8px; text-align: center; }
.footer-link { color: var(--text-sub); }
.btn-primary-link { display: block; text-decoration: none; text-align: center; box-sizing: border-box; }
.link-spaced-top { display: inline-block; margin-top: 18px; }

@media (min-width: 520px) {
  .card { padding: 48px 40px 40px; }
}

/* ---- 横向き・低高さビューポート(CTAまでのスクロール量を減らす) ---- */
@media (max-height: 500px) and (orientation: landscape) {
  #app { padding-top: 16px; padding-bottom: 16px; }
  .card { padding: 20px 26px 18px; }
  .emoji { font-size: 1.8rem; margin-bottom: 2px; }
  .lead { margin-bottom: 14px; }
  .date-input { margin-bottom: 12px; padding: 9px 14px; }
  .card .sub { margin-top: 10px; }
  .loading-wrap { min-height: 200px; }
}

/* ---- 日主タイプ別解説ページ(/nichishu/) ---- */
.type-page-note {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-sub);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 20px 0;
}
.type-nav {
  margin: 24px 0 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.type-nav-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 10px;
}
.type-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 375px) {
  .type-nav-grid, .type-hub-grid {
    grid-template-columns: 1fr;
  }
}
.type-nav-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Shippori Mincho", serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(212, 175, 106, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 4px;
}
.type-nav-link.active {
  background: var(--gold);
  color: var(--bg1);
  border-color: transparent;
}
.type-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.type-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 18px 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.type-hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.type-hub-emoji { font-size: 1.8rem; }
.type-hub-code {
  font-family: "Shippori Mincho", serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-bright);
}
.type-hub-title {
  font-size: 0.72rem;
  color: var(--text-sub);
}

/* ---- スピンオフ診断(前世診断・守護霊診断)共通 ---- */
.spinoff-type-label {
  display: inline-block;
  font-family: "Cinzel", "Shippori Mincho", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.spinoff-episode {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
  text-align: left;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.spinoff-episode:last-of-type { border-bottom: none; }
.spinoff-flavor {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-sub);
  text-align: left;
  font-style: italic;
  background: rgba(138, 111, 214, 0.08);
  border-left: 3px solid var(--purple);
  padding: 10px 14px;
  margin: 4px 0 18px;
  border-radius: 0 10px 10px 0;
}
.spinoff-quote {
  font-family: "Shippori Mincho", serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.8;
  color: var(--gold-bright);
  text-align: center;
  margin: 6px 0 20px;
  padding: 18px 16px;
  background: rgba(212, 175, 106, 0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.spinoff-guardian-block { text-align: left; margin-bottom: 4px; }
.spinoff-guardian-name {
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin: 4px 0 14px;
  text-align: center;
}
.result-card-preview {
  margin: 4px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  min-height: 100px;
}
.result-card-preview img { display: block; width: 100%; height: auto; }
.result-card-preview-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: -12px 0 20px;
  opacity: 0.8;
}
.result-actions-card .btn-secondary {
  font-size: 0.86rem;
  padding: 11px 22px;
  opacity: 0.92;
}
.spinoff-lucky-hitokoto {
  font-family: "Shippori Mincho", serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--gold-bright);
  text-align: left;
  margin: 20px 0 10px;
}
.lucky-price {
  font-size: 0.68rem;
  color: var(--text-sub);
}
.spinoff-cross-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--gold-bright);
  background: rgba(212, 175, 106, 0.08);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  box-sizing: border-box;
}
.spinoff-cross-link:hover { border-color: var(--gold); }

.nichishu-hero-img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.28);
}

.shugorei-hero-img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.28);
  object-fit: cover;
  /* 読込完了まで画像の背後にスケルトンが透けて見える(読込後は画像が全面を覆うため自然に隠れる) */
  background: linear-gradient(100deg, rgba(212, 175, 106, 0.1) 30%, rgba(212, 175, 106, 0.22) 50%, rgba(212, 175, 106, 0.1) 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shugorei-hero-img { animation: none; }
}

/* ---- キーボードフォーカス視認性(暗色背景上でもはっきり見えるよう明示指定) ---- */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.lang-btn:focus-visible,
.follow-link:focus-visible,
.lucky-item:focus-visible,
.type-hub-card:focus-visible,
.type-nav-link:focus-visible,
.spinoff-cross-link:focus-visible,
.lucky-remind a:focus-visible,
.site-nav-link:focus-visible,
.footer-link:focus-visible,
.date-input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
