/* Prism Tarot — カード事典（card・guide）の共通スタイル */
:root {
  --pink: #FF3B9B;
  --purple: #7B37A8;
  --blue: #5BAADE;
  --gold: #D4AF37;
  --gold-soft: #E8CE7A;
  --pearl: #F5E1FF;
  --bg: #0A0420;
  --bg2: #14092E;
  --bg3: #1F0F3F;
  --card-bg: #1A0F35;
  --text: #EDE3FF;
  --muted: #B3A2D8;
  --line: rgba(212,175,55,0.20);
  --line-soft: rgba(212,175,55,0.12);
  --panel: linear-gradient(180deg, rgba(31,15,63,0.62) 0%, rgba(20,9,46,0.72) 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-card: cubic-bezier(0.34, 1.2, 0.34, 1);
  --card-w: 168px;
  --card-h: 280px;
  --accent: var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(123,55,168,0.22), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
p, li, dd { text-wrap: pretty; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg3); color: var(--text); padding: 8px 12px; }

/* ---------- ヘッダー（SP でも1段） ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1040px; margin: 0 auto; padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.logo {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 0.14em;
  color: var(--gold-soft); text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.logo:hover { color: var(--pearl); }
.gnav { display: flex; gap: 4px; }
.gnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--text); background: rgba(212,175,55,0.08); }

.crumb { max-width: 760px; margin: 0 auto; padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumb li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.crumb a { color: var(--muted); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sec { margin: 48px 0; }
.eyebrow {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 6px;
}
.sec h2 {
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 24px; line-height: 1.5;
  color: var(--pearl); margin: 0 0 8px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sec .lead { color: var(--muted); font-size: 15px; margin: 12px 0 20px; }
.sec h3 { font-size: 17px; line-height: 1.6; margin: 0 0 8px; color: var(--text); }
.sec p { margin: 0 0 16px; }

/* ---------- ヒーロー ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 240px) 1fr; grid-template-areas: "art title" "art meta";
  column-gap: 32px; align-content: center;
  max-width: 760px; margin: 0 auto; padding: 32px 16px 16px;
}
.hero-art { grid-area: art; margin: 0; align-self: center; }
.hero-title { grid-area: title; align-self: end; }
.hero-meta { grid-area: meta; align-self: start; }
.art {
  border-radius: 4px; background: var(--bg3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.45), 0 24px 64px rgba(0,0,0,0.35), 0 0 0 1px var(--line);
}
.hero-art .art { aspect-ratio: 600 / 1039; width: 100%; }
.hero-num { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.22em; color: var(--gold); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.hero h1 {
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 40px; line-height: 1.25;
  color: var(--pearl); margin: 0 0 6px;
}
.hero-en { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 22px; color: var(--gold-soft); letter-spacing: 0.02em; margin-top: 4px; }
.hero-sub { font-family: 'Noto Serif JP', serif; color: var(--muted); font-size: 16px; margin: 12px 0 20px; }
.kw { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.kw-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; min-width: 3.5em; }
.kw-up .kw-h { color: var(--pink); }
.kw-rv .kw-h { color: var(--blue); }
.chip { font-size: 13px; line-height: 1.6; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px;
  color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.toc a:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); }

/* ---------- 原画を読む ---------- */
.read { max-width: 1040px; margin: 48px auto; padding: 0 16px; }
.read-head { max-width: 728px; }
.read-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.read-fig { position: sticky; top: 16px; margin: 0; }
.stage { position: relative; }
.stage .art { aspect-ratio: 600 / 1039; width: 100%; }
.pin {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; text-decoration: none; border-radius: 50%;
}
.pin span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 'Noto Sans JP', sans-serif; font-variant-numeric: tabular-nums;
  color: var(--bg); background: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(10,4,32,0.85), 0 2px 8px rgba(0,0,0,0.6);
  transition: transform .2s var(--ease-card), background-color .2s var(--ease-out);
}
.pin.own span { background: var(--pearl); }
.pin:hover span, .pin.is-on span { transform: scale(1.18); background: var(--pink); color: #fff; }
.read-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .l-q { background: var(--gold-soft); }
.legend .l-o { background: var(--pearl); }
.spots { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.spot {
  display: grid; grid-template-columns: 32px 1fr; gap: 0 14px;
  padding: 20px 16px; margin: 0 0 12px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.spot:target, .spot.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 28px rgba(212,175,55,0.12); }
.spot-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--bg); background: var(--gold-soft);
}
.spot.own .spot-n { background: var(--pearl); }
.spot h3 { font-size: 17px; margin: 2px 0 10px; }
.spot > div { min-width: 0; }
.q { margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--gold); }
.q-en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; line-height: 1.55; color: var(--gold-soft); margin: 0 0 4px; }
.q-ja { font-size: 15px; margin: 0; }
.note { font-size: 15px; color: var(--text); margin: 0; }
.own-tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-bottom: 6px; }

/* ---------- 原典の占的意味 ---------- */
.div2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px; background: var(--panel);
}
.box-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 10px; }
.box-up .box-h { color: var(--pink); }
.box-rv .box-h { color: var(--blue); }
.sub-h { margin-top: 28px; }
.lost { margin: 12px 0 0; padding: 0; }
.lost div { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.lost dt { font-weight: 700; margin-bottom: 4px; }
.lost dt [lang="en"] { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 19px; color: var(--gold-soft); margin-right: 8px; }
.lost dd { margin: 0; color: var(--text); font-size: 15px; }
.aside {
  margin: 24px 0 0; padding: 18px 20px; border-radius: 12px;
  background: rgba(212,175,55,0.06); border: 1px dashed var(--line);
}
.aside .box-h { color: var(--gold); }

/* ---------- 現代の読み方 ---------- */
.modern dl { margin: 0; }
.modern dt { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; margin-top: 12px; }
.modern dt:first-child { margin-top: 0; }
.modern dd { margin: 2px 0 0; font-size: 15px; }

/* ---------- 場面別 ---------- */
.situ { display: grid; gap: 12px; }
.situ > div { border-left: 2px solid var(--line); padding: 4px 0 4px 16px; }
.situ h3 { color: var(--gold-soft); font-size: 16px; }
.situ p { margin: 0; font-size: 15px; }
.talk {
  margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
}
.talk p { font-size: 15px; margin: 0 0 8px; }
.talk a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 伝統的な対応 ---------- */
.trad .q { margin-top: 16px; }

/* ---------- 組み合わせ ---------- */
.combo { display: grid; gap: 12px; }
.combo a {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.combo a:hover { border-color: var(--gold); transform: translateY(-1px); }
.combo img { width: 56px; aspect-ratio: 240 / 416; border-radius: 3px; }
.combo b { display: block; color: var(--gold-soft); font-family: 'Noto Serif JP', serif; }
.combo span { font-size: 14px; color: var(--muted); }

.msg {
  padding: 24px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(123,55,168,0.08));
  font-family: 'Noto Serif JP', serif; font-size: 16px; line-height: 2;
}

/* ---------- PR（Amazon） ---------- */
.pr { margin: 48px 0; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,9,46,0.6); }
.pr-h { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; margin: 0 0 4px; }
.pr-lead { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pr-grid a {
  display: block; padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(179,162,216,0.25);
  background: var(--bg3); text-decoration: none; min-height: 44px;
  transition: border-color .2s var(--ease-out);
}
.pr-grid a:hover { border-color: var(--gold); }
.pr-grid strong { display: block; color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 2px; }
.pr-grid .cta { color: var(--gold-soft); font-size: 13px; font-weight: 700; }
.pr-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ---------- 占いへの導線 ---------- */
.try {
  margin: 48px 0; padding: 28px 20px; text-align: center; border-radius: 12px;
  border: 1px solid rgba(255,59,155,0.35); background: linear-gradient(135deg, rgba(255,59,155,0.10), rgba(123,55,168,0.14));
}
.try h2 { font-family: 'Noto Serif JP', serif; font-size: 20px; margin: 0 0 8px; color: var(--pearl); border: 0; padding: 0; }
.try p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 8px; font-weight: 700; font-size: 16px; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #C2186F, var(--purple));
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 10px 24px rgba(194,24,111,0.25);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { color: #fff; transform: translateY(-1px); }

/* ---------- 前後ナビ・22枚の帯 ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 24px; }
.pager a {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--text); text-decoration: none; min-height: 44px;
}
.pager a.next { grid-template-columns: 1fr 48px; text-align: right; }
.pager a.next img { order: 2; }
.pager a:hover { border-color: var(--gold); }
.pager img { width: 48px; aspect-ratio: 240 / 416; border-radius: 3px; }
.pager small { display: block; font-size: 12px; color: var(--muted); }
.pager b { font-family: 'Noto Serif JP', serif; color: var(--gold-soft); }
.strip-h { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0; list-style: none;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip a { display: block; width: 64px; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; line-height: 1.4; }
.strip img { width: 64px; aspect-ratio: 240 / 416; border-radius: 3px; margin-bottom: 4px; opacity: 0.82; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.strip a:hover img { opacity: 1; transform: translateY(-2px); }
.strip a[aria-current="page"] { color: var(--gold-soft); }
.strip a[aria-current="page"] img { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }

/* ---------- 出典 ---------- */
.src { margin: 48px 0; padding: 20px; border-radius: 12px; border: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.src h2 { font-family: 'Noto Serif JP', serif; font-size: 16px; color: var(--text); margin: 0 0 10px; padding: 0; border: 0; }
.src ul { margin: 0; padding-left: 1.2em; }
.src li { margin: 4px 0; }
.src a { color: var(--blue); }

/* ---------- guide ---------- */
.g-hero { max-width: 760px; margin: 0 auto; padding: 40px 16px 8px; }
.g-hero h1 { font-family: 'Noto Serif JP', serif; font-size: 34px; line-height: 1.35; color: var(--pearl); margin: 0 0 12px; }
.g-hero p { color: var(--text); margin: 0 0 12px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-grid a {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; height: 100%;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.g-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.g-grid img { width: 64px; aspect-ratio: 240 / 416; border-radius: 3px; }
.g-num { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.16em; color: var(--gold); font-variant-numeric: tabular-nums; }
.g-name { display: block; font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 17px; color: var(--pearl); line-height: 1.4; }
.g-en { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: var(--gold-soft); margin-bottom: 4px; }
.g-kw { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.memo { display: grid; gap: 16px; }

/* ---------- フッター ---------- */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line-soft); background: #050210; }
.site-foot nav { max-width: 760px; margin: 0 auto; padding: 20px 16px 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--muted); font-size: 13px; }
.site-foot p { text-align: center; font-size: 12px; color: var(--muted); margin: 0; padding: 0 16px 24px; }

ins.adsbygoogle { margin: 32px 0; }

/* ---------- 段階的な表示（動きを減らす設定では無効） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--ease-out) both; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 112px 1fr; grid-template-areas: "art title" "meta meta"; column-gap: 18px; row-gap: 16px; padding-top: 20px; }
  .hero-title { align-self: center; }
  .hero h1 { font-size: 32px; }
  .hero-en { font-size: 19px; }
  .hero-sub { font-size: 15px; margin: 8px 0 0; }
  .read-grid { grid-template-columns: 1fr; gap: 24px; }
  .read-fig { position: static; max-width: 360px; margin: 0 auto; }
  .div2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .gnav a { padding: 0 8px; font-size: 13px; }
  .logo { font-size: 15px; letter-spacing: 0.1em; }
  .sec h2 { font-size: 21px; }
  .g-hero h1 { font-size: 27px; }
  .pager { grid-template-columns: 1fr; }
  .spot { padding: 16px 12px; grid-template-columns: 28px 1fr; gap: 0 10px; }
  .spot-n { width: 28px; height: 28px; font-size: 13px; }
}

/* === ui-polish v1 === */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4{text-wrap:balance}
p,li,dd,figcaption{text-wrap:pretty}
/* === /ui-polish === */
