:root {
  --bg: #f6f3fb;
  --card: #ffffff;
  --text: #2b2540;
  --muted: #6e6787;
  --accent: #6b4fbb;
  --accent-2: #c9a2e8;
  --border: #e6e0f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #ece6f8 0%, var(--bg) 320px);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.8;
}

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

.site-header {
  padding: 14px 16px;
  text-align: center;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.ad-disclosure { margin: 0 0 12px; text-align: center; font-size: 0.8rem; color: var(--muted); }

.hero { text-align: center; margin: 12px 0 24px; }
.hero h1 { font-size: 1.5rem; line-height: 1.5; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.hero .hero-teaser { color: var(--accent); margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(80, 60, 140, 0.06);
}
.card h2, .card h3 { margin-top: 0; }

.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 0.9rem; font-weight: 700; margin-top: 6px; }
.form input {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
}
.form button {
  margin-top: 14px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9a6fd6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.form button:hover { filter: brightness(1.08); }

.stone-card { text-align: center; border-top: 6px solid var(--stone); }
.stone-card h2 { color: var(--stone); font-size: 1.8rem; margin: 0; }
.stone-card .sub { margin: 8px 0 0; color: var(--muted); }
.type-title { font-weight: 700; margin: 4px 0 12px; }
.gem {
  width: 64px; height: 64px;
  margin: 0 auto;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--stone) 45%, #000 140%);
  transform: rotate(45deg);
  border-radius: 12px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--stone) 50%, transparent);
}

.luck-row { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.luck-row:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.luck-head { display: flex; justify-content: space-between; font-weight: 700; }
.stars { color: #e0a915; letter-spacing: 0.1em; }
.luck-row p { margin: 4px 0 0; font-size: 0.95rem; }

.lucky dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 12px; }
.lucky dt { color: var(--muted); }
.lucky dd { margin: 0; font-weight: 700; }
.advice { background: #f8f5fd; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }

.aff { position: relative; border: 1px dashed var(--border); border-radius: 10px; padding: 18px 12px 12px; }
.pr {
  position: absolute; top: -10px; left: 10px;
  font-size: 0.7rem; background: #fff; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 0 6px;
}
.aff-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.aff-btn {
  flex: 1 1 140px; text-align: center; text-decoration: none;
  padding: 10px; border-radius: 8px; font-weight: 700; color: #fff;
}
.aff-btn.amazon { background: #ff9900; }
.aff-btn.rakuten { background: #bf0000; }

.share-btn {
  display: block; text-align: center; text-decoration: none;
  background: #111; color: #fff; font-weight: 700; font-size: 1rem; font-family: inherit;
  padding: 12px; border-radius: 999px; border: none; cursor: pointer;
}

.about p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }
.about-list { font-size: 0.92rem; color: var(--muted); padding-left: 1.2em; margin: 8px 0 0; }
.about-list li { margin-bottom: 6px; }
.about-list b { color: var(--text); }

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 24px 16px 40px;
}
.site-footer p { margin: 4px 0; }

.doc h1 { font-size: 1.4rem; }
.doc h2 { font-size: 1.1rem; margin-top: 24px; }

/* ---- 正体診断 ---- */
.element-card { text-align: center; border-top: 6px solid var(--el); }
.element-card h2 { color: var(--el); font-size: 2rem; margin: 0; }
.element-card .sub { margin: 4px 0 0; color: var(--muted); }
.element-icon { font-size: 2.6rem; line-height: 1; }
.stem { font-weight: 700; margin: 0 0 12px; color: var(--muted); }
.polarity { font-weight: 700; margin-bottom: 0; }

.section-title { text-align: center; margin: 28px 0 12px; font-size: 1.2rem; }

.id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.id-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--el);
  border-radius: 12px;
  padding: 14px 16px;
}
.id-card h4 { margin: 0; font-size: 1.3rem; color: var(--el); }
.id-lead { margin: 0; font-size: 0.8rem; color: var(--muted); }
.id-label { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.id-sub { margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); }
.id-desc { margin: 0; font-size: 0.9rem; }

.shrine-card { border-top: 6px solid #c8102e; }
.shrine-card h3 { margin: 4px 0 0; }
.shrine-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.map-btn {
  display: inline-block; margin: 4px 0 12px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 700;
}

/* ---- 結果の絵 ---- */
.art { margin: -14px -16px 12px; }
.id-card { overflow: hidden; }
.art img, .art-svg {
  display: block; width: 100%; aspect-ratio: 10 / 7;
  object-fit: cover; object-position: center 20%;
  background: #1e1a33;
}
.art figcaption { font-size: 0.65rem; line-height: 1.4; padding: 4px 16px 0; color: var(--muted); }
.art figcaption a { color: inherit; text-decoration: none; }
.art figcaption a:hover { text-decoration: underline; }
.shrine-card { overflow: hidden; }
.shrine-card .art { margin: -20px -20px 14px; }
.shrine-card .art img, .shrine-card .art-svg { aspect-ratio: 16 / 9; }

/* ---- 神社：観光スポット・宿 ---- */
.travel-title { font-weight: 700; margin: 0 0 8px; }
.spots { margin: 4px 0 16px; }
.spots ul { list-style: none; margin: 0; padding: 0; }
.spots li { padding: 8px 0; border-top: 1px solid var(--border); }
.spots li:first-child { border-top: none; padding-top: 0; }
.spots li a { display: block; font-weight: 700; }
.spots li span { display: block; font-size: 0.88rem; color: var(--muted); }
.travel { position: relative; margin-bottom: 12px; }
.travel.aff { padding: 18px 12px 12px; }
.aff-btn.jalan { background: #e65a1e; }

/* ---- Wikipediaリンク ---- */
.id-card { display: flex; flex-direction: column; }
.id-desc { flex: 1; }
.wiki-link { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.wiki-link:hover { text-decoration: underline; }
.shrine-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- あなたの石 ---- */
.stones-card { position: relative; }
.stones-card .pr { top: 12px; left: auto; right: 12px; }
.stone-item { border-top: 1px solid var(--border); padding: 14px 0 4px; }
.stones-card h3 + .stone-item { border-top: none; padding-top: 0; }
.stone-head { display: flex; align-items: center; gap: 12px; }
.stone-head h4 { margin: 0; font-size: 1.2rem; }
.gem-svg { width: 56px; height: 45px; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); }
.stone-meaning { margin: 8px 0 10px; font-size: 0.92rem; }
.price-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.price-btns .aff-btn { font-size: 0.85rem; }
.note { font-size: 0.75rem; color: var(--muted); margin: 8px 0 0; }

/* ---- シェア ---- */
.share-area { margin-bottom: 24px; }
.share-title { text-align: center; font-weight: 700; margin: 0 0 8px; }
.share-btns { display: flex; gap: 8px; }
.share-btns .share-btn { flex: 1; }
.share-btn.insta { background: linear-gradient(45deg, #f9a43c, #e1306c 50%, #833ab4); }
.share-btn.save { background: var(--accent); margin-top: 8px; }
.insta-preview { text-align: center; margin-top: 16px; }
.insta-preview img { width: 60%; max-width: 280px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.insta-preview p { font-size: 0.85rem; color: var(--muted); }

/* ---- 相性診断 ---- */
.hero-link { margin-top: 10px !important; }
.hero-link a { font-weight: 700; }
.compat-form-card { margin-top: 24px; }
.compat-form-card h2 { margin-bottom: 4px; }
.compat-lead { color: var(--muted); font-size: 0.9rem; margin-top: 0; }
.pair-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pair-inputs fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pair-inputs legend { font-weight: 700; padding: 0 6px; }
.compat-card { text-align: center; position: relative; overflow: hidden; }
.compat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--el), var(--el2)); }
.pair { font-size: 1.2rem; font-weight: 700; margin: 0; }
.pair-el { color: var(--muted); margin: 4px 0 0; }
.score { font-size: 4rem; font-weight: 800; line-height: 1.1; margin: 8px 0 0;
  background: linear-gradient(90deg, var(--el), var(--el2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score small { font-size: 1.6rem; }
.hearts { margin: 0 0 8px; letter-spacing: 0.15em; }
.compat-desc { text-align: left; }
.cbar { display: grid; grid-template-columns: 3em 1fr 3.2em; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.9rem; }
.cbar span { text-align: left; font-weight: 700; }
.cbar b { text-align: right; }
.cbar-track { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.cbar-fill { height: 100%; background: linear-gradient(90deg, var(--el), var(--el2)); border-radius: 999px; }
.pair-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pair-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.8rem; padding: 8px 4px; white-space: nowrap; }
.pair-table td { padding: 8px 4px; font-weight: 700; text-align: center; border-top: 1px solid var(--border); }
.pair-table tr:first-child td { border-top: none; color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.pair-table td.x { color: var(--muted); font-weight: 400; width: 1.5em; }

/* ---- 相性のいい人 ---- */
.match-lead { color: var(--muted); font-size: 0.85rem; margin-top: -4px; }
.match-item { border-left: 4px solid var(--mc); background: #faf8fd; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.match-head { display: flex; align-items: center; gap: 10px; }
.medal { font-size: 1.8rem; line-height: 1; }
.match-type { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--mc); }
.match-rel { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.match-note { margin: 6px 0 2px; font-size: 0.92rem; }
.match-eg { margin: 0; font-size: 0.8rem; color: var(--muted); }
.match-rest summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 4px 0 8px; }
.match-rest ol { list-style: none; padding: 0; margin: 0 0 8px; }
.match-rest li { display: grid; grid-template-columns: 3em 1fr auto 3.5em; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.9rem; align-items: center; }
.match-rest li span, .match-rest li em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.match-rest li i { font-style: normal; text-align: right; font-weight: 700; }
.match-go {
  width: 100%; margin-top: 6px; padding: 12px; font-size: 1rem; font-weight: 700; font-family: inherit;
  color: #fff; background: linear-gradient(135deg, #e0608a, #9a6fd6); border: none; border-radius: 999px; cursor: pointer;
}

/* ---- ナビ ---- */
.site-header { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; font-weight: 700; }
/* ボタンのような形にして、押せる場所だとわかりやすくする */
.site-nav a { text-decoration: none; padding: 5px 14px; border: 1.5px solid var(--accent-2); border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(107, 79, 187, .12); }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-nav a::after { content: " ›"; opacity: .6; }

/* ---- 読みもの（記事） ---- */
.crumbs { font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: inherit; }
.article h1 { font-size: 1.45rem; line-height: 1.5; margin: 0; }
.article .subtitle { color: var(--muted); font-weight: 700; margin: 4px 0 0; }
.a-meta { font-size: 0.8rem; color: var(--muted); }
.pr-note { display: inline-block; }
.article h2 { font-size: 1.2rem; margin: 32px 0 12px; padding: 6px 0 6px 12px; border-left: 5px solid var(--accent); background: #f8f5fd; border-radius: 0 8px 8px 0; }
.article h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.article h3 small { font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 0.85rem; }
.a-hero { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, var(--el), #1e1a33); color: #fff; font-size: 2.4rem; }
.a-hero b { font-size: 3rem; }
.toc { background: #f8f5fd; border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; }
.a-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0 16px; }
.a-table th, .a-table td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; text-align: left; }
.a-table th { background: #f8f5fd; white-space: nowrap; }
.a-table td:first-child { white-space: nowrap; font-weight: 700; }
.a-table td small { font-weight: 400; color: var(--muted); }
.a-table.kv td:first-child { white-space: normal; font-weight: 400; }
.table-scroll { overflow-x: auto; }
.a-table.matrix { font-size: 0.75rem; text-align: center; }
.a-table.matrix th, .a-table.matrix td { padding: 4px; text-align: center; white-space: nowrap; }
.a-table.matrix td:first-child { font-weight: 400; }
.c-gen { background: #dff3e4; } .c-same { background: #fff6d6; } .c-ctrl { background: #fbe3e1; }
.legend { font-size: 0.8rem; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.lg.gen { background: #3f9e5a; } .lg.ctrl { background: #c0392b; }
.a-diagram { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
.a-diagram line { stroke-width: 3; }
.a-diagram line.gen { stroke: #3f9e5a; }
.a-diagram line.ctrl { stroke: #c0392b; stroke-dasharray: 6 4; }
.a-fig { margin: 8px 0 12px; }
.a-fig img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; background: #1e1a33; }
.a-fig.small img { max-height: 160px; aspect-ratio: 10 / 7; }
.a-fig figcaption { font-size: 0.65rem; color: var(--muted); }
.a-fig figcaption a { color: inherit; text-decoration: none; }
.a-shrine, .a-stone { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.a-shrine h3, .a-stone h3 { margin-top: 4px; }
.a-shrine ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 0.92rem; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.z-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 0.88rem; }
.z-item h4 { margin: 4px 0 0; font-size: 1.05rem; }
.z-item p { margin: 4px 0; }
.z-sub { color: var(--muted); font-size: 0.8rem; }
.cta { text-align: center; margin-top: 32px; padding: 20px 16px; background: #f8f5fd; border-radius: 14px; }
.cta p { margin-top: 0; font-weight: 700; }
.cta-btn { display: block; margin: 8px auto 0; max-width: 360px; padding: 12px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), #9a6fd6); }
.cta-btn.sub { background: linear-gradient(135deg, #e0608a, #9a6fd6); }
.related ul { margin: 0; padding-left: 1.2em; }
.related li { margin: 4px 0; }
.a-list { display: grid; gap: 10px; }
.a-card { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.a-card:hover { border-color: var(--accent); }
.a-card b { display: block; color: var(--accent); }
.a-card span { font-size: 0.85rem; color: var(--muted); }
.read-more { display: inline-block; margin-top: 8px; font-weight: 700; }
.home-articles ul { padding-left: 1.2em; margin: 0; }
.home-articles li { margin: 4px 0; }

/* ---- 関連する漫画・小説 ---- */
.book-links { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.book-links span { color: var(--muted); flex-basis: 100%; }
.book-links a { padding: 2px 10px; border-radius: 999px; background: #bf0000; color: #fff; text-decoration: none; font-weight: 700; }
.pr-line { text-align: center; font-size: 0.72rem; color: var(--muted); margin: -6px 0 10px; }

/* ---- 金運の日の運試し ---- */
.lottery-card { position: relative; border: 2px solid #e8b923; background: linear-gradient(180deg, #fffbea, #fff); }
.lottery-card .pr { top: 12px; left: auto; right: 12px; }
.lottery-desc { font-size: 0.9rem; }
.lottery-btn { display: block; text-align: center; padding: 12px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #e8b923, #d98b1f); }

/* ---- おかえりなさいバナー ---- */
.welcome { text-align: center; background: linear-gradient(135deg, #f3edff, #fff); border: 2px solid var(--accent-2); }
.welcome-msg { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; }
.welcome-msg small { font-weight: 400; color: var(--muted); }
.welcome-btns { display: grid; gap: 8px; }
.welcome-btns button { padding: 12px; font-size: 1rem; font-weight: 700; font-family: inherit; color: #fff; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #9a6fd6); }
.welcome-btns button.sub { background: #fff; color: var(--accent); border: 2px solid var(--accent-2); }
.element-card + .share-area { margin: 16px 0; }

/* ---- くわしく診断の入力 ---- */
.detail-input { margin-top: 10px; border: 1px dashed var(--accent-2); border-radius: 10px; padding: 8px 12px; }
.detail-input summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 0.92rem; }
.detail-input[open] { display: flex; flex-direction: column; gap: 6px; }
.detail-note { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.detail-input select { font-size: 1rem; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; background: #fff; }

/* ---- 命式 ---- */
.meishiki { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; text-align: center; }
.meishiki th { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.meishiki tbody td { background: color-mix(in srgb, var(--c) 14%, #fff); border: 2px solid var(--c); border-radius: 10px; padding: 6px 0; }
.meishiki tbody td b { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--c); }
.meishiki tbody td small { font-size: 0.7rem; color: var(--muted); }
.meishiki td.empty { background: #f4f2f8 !important; border: 2px dashed var(--border) !important; color: var(--muted); }
.meishiki tfoot td { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.meishiki-card h4 { margin: 14px 0 6px; }
.gx-row { display: grid; grid-template-columns: 3.5em 1fr 1.5em; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.9rem; }
.gx-row b { text-align: right; }
.gx-track { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; }
.gx-fill { height: 100%; border-radius: 999px; }
.gx-advice { font-size: 0.92rem; }

/* ---- 西洋占星術 ---- */
.wheel { display: block; width: 100%; max-width: 300px; margin: 0 auto 12px; }
.w-ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.w-inner { fill: #f8f5fd; stroke: var(--border); }
.w-line { stroke: var(--border); stroke-width: 1; }
.w-sign { font-size: 16px; text-anchor: middle; dominant-baseline: central; font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif; }
.w-planet { font-size: 15px; text-anchor: middle; dominant-baseline: central; fill: var(--text); font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif; }
.w-axis { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.w-label { font-size: 10px; font-weight: 700; fill: var(--accent); }
.big3-wrap { display: grid; gap: 8px; }
.big3 { border-left: 4px solid var(--wc); background: #faf8fd; border-radius: 10px; padding: 8px 12px; }
.b3-label { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.b3-label small { font-weight: 400; }
.b3-sign { margin: 2px 0; font-size: 1.2rem; font-weight: 800; color: var(--wc); }
.b3-sign small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.b3-text { margin: 0; font-size: 0.88rem; }
.horoscope-card h4 { margin: 14px 0 6px; }
.planet-list summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 8px 0; }

/* ---- 紫微斗数 ---- */
.zw-board { display: grid; gap: 3px; grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "b5 b6 b7 b8" "b4 c c b9" "b3 c c b10" "b2 b1 b0 b11"; margin: 8px 0 12px; }
.zp { border: 1px solid var(--border); border-radius: 8px; padding: 4px 5px; min-height: 64px; display: flex; flex-direction: column; font-size: 0.7rem; background: #fff; position: relative; }
.zp.ming { border: 2px solid #c8102e; background: #fff4f4; }
.zp-name { color: var(--muted); font-weight: 700; }
.zp-name i { font-style: normal; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 3px; margin-left: 2px; }
.zp-stars { font-weight: 800; color: var(--text); font-size: 0.78rem; line-height: 1.3; flex: 1; }
.zp-br { position: absolute; right: 5px; bottom: 3px; color: var(--muted); }
.zw-center { grid-area: c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #f8f5fd; border-radius: 10px; font-size: 0.8rem; color: var(--muted); }
.zw-center b { font-size: 1.1rem; color: var(--accent); }
.zw-main { border-left: 4px solid #c8102e; background: #fff8f8; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.zw-star { margin: 0; font-size: 1.25rem; font-weight: 800; color: #c8102e; }
.zw-main p:last-child { margin: 4px 0 0; font-size: 0.9rem; }
.ziwei-card h4 { margin: 12px 0 6px; }

/* ---- 本当の正体（主役） ---- */
.ti-card { text-align: center; border: 2px solid var(--el); box-shadow: 0 8px 28px rgba(80, 60, 140, 0.15); overflow: hidden; }
.ti-card .art { margin: 8px -20px 12px; }
.ti-card .art img, .ti-card .art-svg { aspect-ratio: 16 / 10; max-height: 360px; }
.ti-lead { margin: 0; font-weight: 700; color: var(--muted); }
.ti-origin { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.ti-name { margin: 2px 0 0; font-size: 2.4rem; line-height: 1.25; color: var(--el); }
.ti-catch { margin: 4px 0 12px; font-weight: 800; font-size: 1.05rem; }
.ti-body { text-align: left; display: grid; gap: 8px; }
.ti-sec { background: #faf8fd; border-radius: 10px; padding: 8px 12px; }
.ti-sec-label { margin: 0 0 2px; font-weight: 800; font-size: 0.85rem; color: var(--el); }
.ti-sec p:last-child { margin: 0; font-size: 0.92rem; }
.ti-why { text-align: left; margin-top: 12px; }
.ti-why summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.ti-why ul { margin: 6px 0; padding-left: 1.2em; font-size: 0.9rem; }
.ti-near { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.ti-more { font-size: 0.85rem; background: #f3edff; border-radius: 10px; padding: 8px 12px; text-align: left; }
.ti-card .wiki-link { display: block; text-align: center; }
.ti-card .book-links { justify-content: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin: -6px 0 12px; }

/* ---- ふたりの本当の正体 ---- */
.pair-card h3 { text-align: center; }
.pair-ti-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pair-ti { text-align: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding-bottom: 8px; }
.pair-ti .art { margin: 0 0 6px; }
.pair-ti .art img, .pair-ti .art-svg { aspect-ratio: 1 / 1; }
.pair-ti .art figcaption { display: none; }
.pair-ti-who { margin: 0; font-size: 0.75rem; color: var(--muted); }
.pair-ti-name { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.pair-ti-catch { margin: 2px 6px 0; font-size: 0.75rem; }
.pair-x { font-size: 1.6rem; color: var(--muted); }
.pair-text { margin: 12px 0 0; font-size: 0.92rem; }

/* ---- 生年月日（年・月・日を選ぶ形） ---- */
.date-select { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
.date-select select { font-size: 1rem; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; background: #fff; color: inherit; min-width: 0; }

/* ---- 記事：本当の正体図鑑 — 100の正体 ---- */
.ti-index { font-size: 0.88rem; line-height: 1.9; }
.ti-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 12px 0; scroll-margin-top: 12px; }
.ti-entry::after { content: ""; display: block; clear: both; }
.ti-entry .a-fig { float: right; width: 38%; max-width: 180px; margin: 0 0 8px 12px; }
.ti-entry h3 { margin: 2px 0 0; font-size: 1.25rem; }
.ti-entry .ti-catch { margin: 2px 0 8px; }
.ti-dl { margin: 8px 0; font-size: 0.92rem; }
.ti-dl dt { font-weight: 700; margin-top: 6px; }
.ti-dl dd { margin: 2px 0 0; }
.ti-cond { font-size: 0.78rem; color: var(--muted); margin: 8px 0 4px; }
.back-top { text-align: right; font-size: 0.85rem; }

/* ---- 正体の名前の読みがな ---- */
.ti-name rt { font-size: 0.32em; font-weight: 700; letter-spacing: 0.08em; }
.pair-ti-name rt, .ti-entry h3 rt { font-size: 0.5em; font-weight: 700; }

/* ---- 7カテゴリの短所 ---- */
.id-desc:has(+ .id-weak) { flex: none; }
.id-weak { flex: 1; margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }
.id-weak b { display: block; font-size: 0.75rem; color: var(--text, inherit); }
.z-weak { font-size: 0.82rem; color: var(--muted); }

/* ---- 相性：日干の組み合わせ・ひとこと・伝説の組み合わせ ---- */
.compat-rel { margin: -4px 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.kango { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: #ffe3ef; color: #c2185b; font-size: 0.8rem; }
.cbar-note { margin: 2px 0 6px 3.5em; font-size: 0.8rem; color: var(--muted); text-align: left; }
.legend-pair { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #fff7e0, #fdeaff); border: 1px solid #f0d27a; text-align: left; }
.legend-badge { margin: 0; font-size: 0.8rem; font-weight: 800; color: #b8860b; }
.legend-pair h4 { margin: 2px 0 6px; font-size: 1.05rem; }
.legend-pair p:last-child { margin: 0; font-size: 0.9rem; }

/* ---- ゆかりの地 ---- */
.place { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; text-align: left; }
.place summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.place[open] summary { margin-bottom: 4px; }
.place-area { margin: 4px 0 0; color: var(--muted); font-size: 0.8rem; }
.place-note { margin: 4px 0 8px; }
.place .travel { margin-bottom: 0; }
.place .aff-btns { flex-wrap: wrap; }
.z-place { font-size: 0.82rem; }
.pl-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; scroll-margin-top: 12px; }
.pl-entry h4 { margin: 0; font-size: 1.05rem; }
.pl-area { margin: 2px 0 6px; font-size: 0.82rem; color: var(--muted); }
.pl-chars { font-size: 0.88rem; }
.pl-chars small { color: var(--muted); }
.match-title { margin: 6px 0 0; font-weight: 800; }
.match-legend { margin: 4px 0; font-size: 0.85rem; font-weight: 700; color: #b8860b; }
.match-rest li small { grid-column: 2 / -1; margin-top: -4px; font-size: 0.78rem; color: var(--muted); }
.matches-card .legend-pair ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 0.88rem; }
.birthcity:not([hidden]) { display: flex; flex-direction: column; gap: 6px; }

/* 正体の登場：五行×陰陽の全画面演出 */
.ti-reveal { position: relative; }
.reveal-replay { border: 1px solid var(--el); border-radius: 30px; padding: 8px 16px; background: transparent; color: var(--el); cursor: pointer; font: inherit; font-size: .8rem; margin: 0 0 12px; }
.identity-cinema { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: #050712; color: #fff; pointer-events: none; animation: cinema-exit 4.3s both; --aura: #efc66d; }
.cinema-nebula { position: absolute; inset: -40%; background: radial-gradient(ellipse at center, color-mix(in srgb,var(--aura) 40%,transparent),transparent 48%), repeating-conic-gradient(from 0deg,transparent 0deg 12deg,color-mix(in srgb,var(--aura) 12%,transparent) 15deg 18deg,transparent 22deg 30deg); animation: nebula-turn 4.3s ease-out both; }
.cinema-rays, .cinema-seal, .cinema-sparks { position: absolute; inset: 0; }
.cinema-rays i { position: absolute; left: 50%; top: 45%; width: 2px; height: 65vmax; transform-origin: center top; background: linear-gradient(var(--aura),transparent 75%); opacity: 0; animation: cinema-ray 3.5s var(--delay) both; }
.cinema-seal { inset: auto; left: 50%; top: 45%; width: min(74vw,480px); aspect-ratio: 1; transform: translate(-50%,-50%); }
.cinema-seal i { position: absolute; inset: 0; border: 1px solid var(--aura); border-radius: 50%; box-shadow: 0 0 25px color-mix(in srgb,var(--aura) 40%,transparent),inset 0 0 25px color-mix(in srgb,var(--aura) 20%,transparent); animation: seal-open 3.6s both; }
.cinema-seal i:nth-child(2) { inset: -10%; border: 3px double var(--aura); animation-delay: .15s; }
.cinema-seal i:nth-child(3) { inset: 9%; border: 8px dotted var(--aura); animation: seal-orbit 3.6s both; }
.cinema-sparks i { position: absolute; left: 50%; top: 45%; width: var(--size); height: var(--size); background: var(--aura); border-radius: 50%; box-shadow: 0 0 12px var(--aura); opacity: 0; animation: spark-burst 3.4s var(--delay) both; }
.identity-cinema[data-reveal$="yin"] .cinema-sparks i { animation-name: spark-gather; }
.identity-cinema[data-reveal^="wood"] .cinema-sparks i { border-radius: 0 90% 0 90%; height: calc(var(--size) * 2.3); }
.identity-cinema[data-reveal^="fire"] .cinema-sparks i { border-radius: 80% 0 80% 80%; height: calc(var(--size) * 3); animation-name: flame-rise; }
.identity-cinema[data-reveal="fire-yin"] .cinema-sparks i { animation-name: flame-gather; }
.identity-cinema[data-reveal^="earth"] .cinema-sparks i { border-radius: 2px; box-shadow: 0 0 8px var(--aura); }
.identity-cinema[data-reveal="earth-yang"] .cinema-seal { animation: earth-rise 3.6s both; }
.identity-cinema[data-reveal^="metal"] .cinema-sparks i { clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); width: calc(var(--size) * 3); height: calc(var(--size) * 3); }
.identity-cinema[data-reveal="metal-yang"] .cinema-rays i { width: 5px; }
.identity-cinema[data-reveal^="water"] .cinema-sparks i { background: transparent; border: 1px solid var(--aura); box-shadow: 0 0 15px var(--aura); }
.identity-cinema[data-reveal="water-yang"] .cinema-seal i { animation-name: tidal-ring; }
.identity-cinema[data-reveal="water-yin"] .cinema-nebula { filter: blur(20px); }
.cinema-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; text-align: center; }
.cinema-eyebrow { font-size: .72rem; letter-spacing: .4em; color: #ead8ad; margin: 0 0 12px; animation: cinema-text 3.9s both; }
.cinema-theme { margin: 0; font-family: 'Yu Mincho','Hiragino Mincho ProN',serif; font-size: clamp(1.6rem,5vw,2.6rem); letter-spacing: .24em; color: var(--aura); text-shadow: 0 0 25px var(--aura); animation: cinema-text 3.9s both; }
.cinema-line { margin: 10px 0 22px; font-size: .75rem; letter-spacing: .12em; color: #e0dbe9; animation: cinema-text 3.9s both; }
.cinema-portrait { width: min(68vw,320px,42vh); aspect-ratio: 1; padding: 7px; border: 1px solid var(--aura); border-radius: 50%; background: #101321; box-shadow: 0 0 45px color-mix(in srgb,var(--aura) 35%,transparent),0 0 100px color-mix(in srgb,var(--aura) 20%,transparent); animation: portrait-arrive 3.9s both; }
.cinema-portrait .art { margin: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.cinema-portrait .art img, .cinema-portrait .art-svg { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.cinema-portrait figcaption { display: none; }
.cinema-name { margin: 24px 0 0; animation: name-arrive 3.9s both; }
.cinema-name .ti-name { color: #fff3d6; font-family: 'Yu Mincho','Hiragino Mincho ProN',serif; font-size: clamp(1.8rem,7vw,3rem); text-shadow: 0 2px 5px #000,0 0 28px var(--aura); }
.cinema-skip { position: absolute; right: 18px; bottom: max(20px,env(safe-area-inset-bottom)); background: #101321cc; color: #e2d9e8; border: 1px solid #ffffff40; padding: 10px 16px; border-radius: 30px; font: inherit; font-size: .75rem; pointer-events: auto; cursor: pointer; }
@keyframes cinema-exit { 0%,85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nebula-turn { 0% { opacity: 0; transform: scale(.4) rotate(-40deg); } 30% { opacity: 1; } 100% { transform: scale(1.3) rotate(40deg); } }
@keyframes cinema-ray { 0% { opacity: 0; transform: rotate(var(--angle)) scaleY(.1); } 40% { opacity: .7; } 100% { opacity: 0; transform: rotate(var(--angle)) scaleY(1.5); } }
@keyframes seal-open { 0% { opacity: 0; transform: scale(.1) rotate(-120deg); } 35% { opacity: .85; } 100% { opacity: 0; transform: scale(1.5) rotate(80deg); } }
@keyframes seal-orbit { 0% { opacity: 0; transform: scale(.3) rotate(90deg); } 35% { opacity: .6; } 100% { opacity: 0; transform: scale(1.3) rotate(-120deg); } }
@keyframes spark-burst { 0% { opacity: 0; transform: scale(.1); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--turn)) scale(.3); } }
@keyframes spark-gather { 0% { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--turn)); } 35% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(0,0) rotate(180deg) scale(.2); } }
@keyframes flame-rise { 0% { opacity: 0; transform: translate(var(--x),45vh) scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),-55vh) rotate(var(--turn)) scale(.3); } }
@keyframes flame-gather { 0% { opacity: 0; transform: translate(var(--x),35vh); } 35% { opacity: .9; } 100% { opacity: 0; transform: translate(0,-15vh) scale(.2); } }
@keyframes earth-rise { 0% { opacity: 0; transform: translate(-50%,30%) scale(.3); } 35% { opacity: 1; } 100% { opacity: .2; transform: translate(-50%,-50%) scale(1.4); } }
@keyframes tidal-ring { 0% { opacity: 0; transform: scale(.1); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.5); } }
@keyframes cinema-text { 0% { opacity: 0; transform: translateY(10px); } 18%,85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes portrait-arrive { 0%,20% { opacity: 0; transform: scale(.65); filter: brightness(2); } 55%,100% { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes name-arrive { 0%,40% { opacity: 0; transform: translateY(20px) scale(.9); } 65%,100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .identity-cinema, .reveal-replay { display: none; } }
/* Instagramに貼り付ける投稿文 */
.insta-caption { margin-top: 20px; text-align: left; padding: 16px; background: #faf8fd; border: 1px solid var(--border); border-radius: 14px; }
.insta-caption label { display: block; font-size: .9rem; font-weight: 700; }
.post-caption { display: block; box-sizing: border-box; width: 100%; margin: 10px 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text, #272333); font-family: inherit; font-size: 16px; line-height: 1.6; resize: vertical; }
.copy-caption { width: 100%; }
.caption-status { margin-bottom: 0; }
/* 正体に結びついた気質と、実際に一致した星の情報 */
.ti-why-story { margin: 22px 0 16px; padding: 20px 16px; text-align: left; border: 1px solid var(--el); border-radius: 16px; background: linear-gradient(145deg,#fffdf7,#f7f4fd); }
.why-eyebrow { margin: 0 0 8px; color: var(--el); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.ti-why-story h3 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.6; }
.why-story { margin: 0 0 16px; font-size: .94rem; line-height: 1.9; }
.why-root { padding: 14px; border-radius: 12px; background: #fff; border-left: 4px solid var(--el); }
.why-root span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.why-root b { color: var(--el); font-size: 1.08rem; }
.why-root p { margin: 6px 0 0; font-size: .86rem; line-height: 1.8; }
.why-matches-title { font-size: .8rem; font-weight: 800; margin: 16px 0 8px; }
.why-signals { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.why-signals li { padding: 12px 14px; background: #fff; border-radius: 10px; }
.why-signal-label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 3px; }
.why-signals b { font-size: .91rem; color: var(--el); }
.why-signals small { display: block; margin-top: 4px; line-height: 1.7; font-size: .8rem; }
.why-tie { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
/* ---- 占い師への相談（PR） ---- */
.consult-card { position: relative; }
.consult-card .pr { top: 12px; left: auto; right: 12px; }
.consult-list { list-style: none; margin: 8px 0; padding: 0; }
.consult-list li { margin: 8px 0; }
.consult-list a { display: block; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #6b4fbb, #9a6fd6); color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.consult-list small { display: block; text-align: center; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.consult-list img { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---- 正体ごとのシェア用ページ（t/番号.html） ---- */
.share-page .share-lead, .share-page .ti-origin, .share-page .ti-name, .share-page .ti-catch { text-align: center; }
.share-page .share-lead { margin: 0 0 8px; font-weight: 700; color: var(--muted); }
.share-page .ti-name { font-size: 2.6rem; margin: 4px 0 0; color: var(--el); }
.share-page .ti-name rt { font-size: 0.32em; }
.share-page .a-fig img { object-position: center top; max-height: 380px; }

/* ---- 宿曜占星術 ---- */
.sukuyo-card { text-align: center; }
.sukuyo-card > p:not(.sk-name):not(.sk-key):not(.sk-lead):not(.sk-pair) { text-align: left; }
.sk-lead { margin: 0; font-size: 0.85rem; color: var(--muted); }
.sk-name { margin: 6px 0 0; font-size: 2.2rem; font-weight: 800; color: #3b4a8c; }
.sk-name rt { font-size: 0.35em; font-weight: 700; }
.sk-key { margin: 0 0 8px; font-weight: 800; }
.sk-pair { margin: 4px 0 0; font-size: 0.95rem; }
.sk-mix { margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: #eef1fb; font-weight: 700; font-size: 0.92rem; text-align: left; }

/* ---- 一日一回の易 ---- */
.eki-card { text-align: center; }
.eki-card > p, .eki-result > p:not(.eki-name):not(.eki-sub) { text-align: left; }
.eki-btn { margin-top: 8px; padding: 14px 28px; border: none; border-radius: 999px; font-size: 1.05rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2b2540, #6b4fbb); cursor: pointer; }
.eki-hex { display: inline-flex; flex-direction: column; gap: 7px; margin: 8px 0 4px; }
.eki-bar { display: block; width: 120px; height: 12px; border-radius: 3px; background: #2b2540; }
.eki-bar.yin { background: linear-gradient(90deg, #2b2540 0 44%, transparent 44% 56%, #2b2540 56% 100%); }
.eki-bar.moving { background-color: transparent; box-shadow: 0 0 10px rgba(212, 160, 23, 0.8); }
.eki-bar.yang.moving { background: #d4a017; }
.eki-bar.yin.moving { background: linear-gradient(90deg, #d4a017 0 44%, transparent 44% 56%, #d4a017 56% 100%); }
.eki-name { margin: 6px 0 0; font-size: 2rem; font-weight: 800; }
.eki-name rt { font-size: 0.35em; }
.eki-sub { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.eki-yao { padding: 10px 12px; border-radius: 10px; background: #fff7e0; }
.eki-result.fresh .eki-bar { animation: eki-in 0.5s both; }
.eki-result.fresh .eki-bar:nth-child(6) { animation-delay: 0s; } .eki-result.fresh .eki-bar:nth-child(5) { animation-delay: .15s; }
.eki-result.fresh .eki-bar:nth-child(4) { animation-delay: .3s; } .eki-result.fresh .eki-bar:nth-child(3) { animation-delay: .45s; }
.eki-result.fresh .eki-bar:nth-child(2) { animation-delay: .6s; } .eki-result.fresh .eki-bar:nth-child(1) { animation-delay: .75s; }
@keyframes eki-in { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .eki-result.fresh .eki-bar { animation: none; } }

/* ---- 九星気学 ---- */
.kyusei-card { text-align: center; }
.kyusei-card p:not(.ks-label):not(.ks-name):not(.ks-theme) { text-align: left; }
.ks-label { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.ks-name { margin: 2px 0 8px; font-size: 2rem; font-weight: 800; color: #8a5a00; }
.ks-sub { font-size: 0.9rem; }
.ks-year { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #fff7e0; }
.ks-theme { margin: 2px 0 6px; font-size: 1.15rem; font-weight: 800; }

/* ---- 結果の折りたたみ ---- */
.fold-guide { margin: 18px 0 6px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.fold { margin: 10px 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--accent); }
.fold[open] > summary::after { content: "－"; }
.fold[open] > summary { border-bottom: 1px solid var(--border); }
.fold-title { font-weight: 800; font-size: 1.05rem; }
.fold-preview { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-body { padding: 4px 10px 10px; background: var(--bg); }
.fold-body > .card:first-child, .fold-body > .section-title:first-child { margin-top: 10px; }

/* ---- 相性のシェア用ページ（c/） ---- */
.share-page .legend-share { margin: 8px 0; }
.share-page .legend-pair h1 { margin: 2px 0 6px; font-size: 1.3rem; }
.stem-pair-big { margin: 6px 0 0; text-align: center; font-size: 3rem; font-weight: 800; font-family: "Yu Mincho", serif; }
.stem-pair-title { text-align: center; font-size: 1.4rem; margin: 4px 0; }

/* ---- 相性のいいパワースポット・占いの本 ---- */
.power-spot-card, .books-card { position: relative; }
.power-spot-card .pr, .books-card .pr { top: 12px; left: auto; right: 12px; }
.spot-list, .book-list { list-style: none; margin: 8px 0 0; padding: 0; }
.spot-item { border-top: 1px solid var(--border); padding: 12px 0 4px; }
.spot-item b { display: block; font-size: 1rem; }
.spot-item small { color: var(--muted); font-size: 0.8rem; }
.spot-item p { margin: 4px 0 8px; font-size: 0.9rem; }
.spot-item .aff-btns { align-items: center; }
.spot-item .map-btn { margin: 0; }
.book-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 10px 0; }
.book-list li span { font-weight: 700; }
.spot-item .aff-btn { flex: 0 1 auto; padding: 6px 14px; font-size: 0.85rem; }
.spot-item .map-btn { padding: 5px 14px; font-size: 0.85rem; }
.book-list .aff-btns { flex: 0 1 auto; }
.book-list .aff-btn { flex: 0 1 auto; padding: 6px 14px; font-size: 0.85rem; }
.lucky-shop { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 12px 0 14px; }
