/* =====================================================================================
   タロット占い — 「深夜のタロットサロン」がテーマ
   -------------------------------------------------------------------------------------
   ・墨色の空間にワインレッドの灯りと箔押しの金。ビロードのテーブルの上の設え
   ・欧文は Cormorant Garamond、和文は Shippori Mincho で「古い占い書」の質感
   ・カードが主役。盤面まわりの装飾は徹底して細く、карードの色数を邪魔しない
   ===================================================================================== */

:root {
  --void:       #0a0708;
  --velvet:     #150c11;
  --wine:       #3a1220;
  --wine-lit:   #7a2440;

  --gold:       #c9a24a;
  --gold-lit:   #eccf8e;
  --gold-dim:   rgba(201, 162, 74, .28);

  --text:       #f2ebe4;
  --muted:      #a3968f;
  --faint:      #6e625d;

  --line:        rgba(255, 255, 255, .09);
  --line-gold:   rgba(201, 162, 74, .30);

  --up:         #9ad9a8;
  --rev:        #e79aa8;

  --radius:     3px;
  --radius-lg:  8px;

  --card-w:     168px;

  /* 共通ナビ（rin-nav）をサロンの色に合わせる */
  --rn-bg:       rgba(16, 10, 13, .86);
  --rn-bg-hover: rgba(201, 162, 74, .16);
  --rn-line:     rgba(201, 162, 74, .30);
  --rn-accent:   var(--gold);
  --rn-radius:   4px;

  /* 遊び方・解説パネル（rin-guide）もサロンの色に合わせる */
  --rg-bg:       #0f0a0c;
  --rg-fg:       #fff;
  --rg-line:     var(--line);
  --rg-btn-bg:   rgba(201, 162, 74, .10);
  --rg-btn-fg:   var(--gold-lit);
  --rg-btn-line: var(--line-gold);
  --rg-accent:   var(--gold);
  --rg-font:     "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 左右はサイドレール広告の逃げ場（--rail-* は ../_shared/rin-ads.css と ../portal/ad-rail.js が決める） */
  padding-left: var(--rail-left);
  padding-right: var(--rail-right);
  min-height: 100%;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  background:
    radial-gradient(760px 520px at 50% -6%, rgba(122, 36, 64, .40), transparent 66%),
    radial-gradient(620px 480px at 88% 42%, rgba(201, 162, 74, .10), transparent 62%),
    radial-gradient(900px 760px at 8% 88%,  rgba(58, 18, 32, .55), transparent 68%),
    linear-gradient(180deg, var(--void) 0%, var(--velvet) 52%, #080506 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ビロードの織り目 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .30;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.020) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.16)        0 1px, transparent 1px 5px);
}

body > * { position: relative; z-index: 1; }

.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 20px;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  padding: 74px 0 30px;
  text-align: center;
}

.brand {
  display: block;
}

/* ロゴ絵文字は「窓に灯る印」として円で囲う */
.logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(201, 162, 74, .18), transparent 70%);
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 0 34px rgba(201, 162, 74, .16), inset 0 0 20px rgba(201, 162, 74, .10);
}

.titlewrap h1 {
  margin: 0 auto 16px;
  max-width: 19em;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.5;
  letter-spacing: .05em;
  color: #fff;
}

.titlewrap .muted {
  margin: 0 auto 16px;
  max-width: 38em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

/* ジャンルの列挙は「小さな金文字の帯」に */
.subtitle {
  margin: 0 auto 24px;
  display: inline-block;
  padding: 7px 20px;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .30em;
  color: var(--gold-lit);
  text-transform: uppercase;
}

.ctaRow.actions { justify-content: center; }

/* =========================================================
   レイアウト
   ========================================================= */
.main {
  display: grid;
  grid-template-columns: 342px 1fr;
  gap: 18px;
  align-items: start;
}
/*
  1100px 以上は左右にサイドレール広告の余白が入り、1400px までは本文が狭い。
  2カラムのままだと場のカードが1枚ずつ縦に並んでしまうので、縦に積む
*/
@media (max-width: 1400px) {
  .main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app { padding: 0 14px 20px; }
}

/* 共通の面 */
.panel, .table, .result, .history, .mean-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.panel { padding: 22px; position: sticky; top: 16px; height: fit-content; }
@media (max-width: 1400px) { .panel { position: static; } }

.table { padding: 22px; }

/* 見出し */
.panel h2, .table h2, .history h2, .result h2, .mean-box h2 {
  margin: 0 0 16px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--gold-lit);
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel h2::after, .table h2::after, .history h2::after, .result h2::after, .mean-box h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* =========================================================
   今日の一枚
   ========================================================= */
.panel.daily-panel {
  grid-column: 1 / -1;
  position: static;
  padding: 26px 26px 22px;
}

.daily {
  display: grid;
  grid-template-columns: 134px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 520px) {
  .daily { grid-template-columns: 96px 1fr; gap: 16px; }
}

.daily-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .6), 0 0 30px rgba(201, 162, 74, .14);
}

.daily-date {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold);
  text-transform: uppercase;
}

.daily-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: .06em;
  color: #fff;
}

.daily-pos {
  padding: 3px 11px 4px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.daily-pos.up  { color: var(--up); }
.daily-pos.rev { color: var(--rev); }

.daily-arcana {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--faint);
}
.daily-meaning { margin: 0 0 16px; font-size: 14.5px; line-height: 1.9; color: #ded4cc; }
.daily-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   操作パネル
   ========================================================= */
.topicRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.topicBtn {
  appearance: none;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .3);
  color: var(--muted);
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.topicBtn:hover { color: var(--gold-lit); border-color: var(--line-gold); }
.topicBtn.active {
  color: #1b1208;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  box-shadow: 0 8px 22px rgba(201, 162, 74, .26);
}
/* 1カラムで操作パネルが横に広いときは、ジャンルを1列に並べる */
@media (min-width: 700px) and (max-width: 1400px) {
  .topicRow { grid-template-columns: repeat(4, 1fr); }
}

.spreadRow { display: grid; gap: 16px; margin-bottom: 18px; }
.spreadSelect { display: grid; gap: 8px; }

label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--faint);
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, .38);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 14px center, right 9px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color .18s ease, box-shadow .18s ease;
}
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, .14);
}

.toggles { display: grid; gap: 10px; }
.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
}
.toggle input { accent-color: var(--gold); width: 15px; height: 15px; }

.ctaRow { display: flex; gap: 10px; flex-wrap: wrap; }

/* ボタン */
.btn {
  appearance: none;
  padding: 12px 24px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(201, 162, 74, .10);
  color: var(--gold-lit);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover:not(:disabled) {
  background: rgba(201, 162, 74, .2);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .34; cursor: not-allowed; }

.btn.primary {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  color: #1b1208;
}
.btn.primary:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(201, 162, 74, .3);
  background: linear-gradient(180deg, #f6e2b6, var(--gold-lit));
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  letter-spacing: .06em;
}
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }

.status {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--faint);
}

/* =========================================================
   場（カード）
   ========================================================= */
.deckArea {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.deckStack { position: relative; width: 96px; flex: none; }
.deckStack img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .55),
    4px 4px 0 -1px rgba(201, 162, 74, .18),
    8px 8px 0 -2px rgba(201, 162, 74, .10);
}
.deckBadge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  color: #1b1208;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

.slots {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.slot { width: var(--card-w); }
@media (max-width: 560px) {
  :root { --card-w: 132px; }
}

.slotTitle {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--faint);
  text-align: center;
}

/* カード本体（3Dめくり） */
.card {
  perspective: 1000px;
  width: 100%;
  aspect-ratio: 170 / 292;
  cursor: default;
}
.cardInner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2, .8, .25, 1);
}
.card.flipped .cardInner { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.face.front { transform: rotateY(180deg); }

.cardMeta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 2px 9px 3px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(201, 162, 74, .10);
  color: var(--gold-lit);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.rotateTag { color: var(--rev); font-weight: 700; }

/* =========================================================
   結果 / 履歴
   ========================================================= */
.result { margin-top: 18px; padding: 22px; }
.history { margin-top: 18px; padding: 22px; }

.resultBody { font-size: 14.5px; line-height: 1.9; }
.resultBody p { margin: 0 0 12px; }
.resultBody strong { color: var(--gold-lit); font-weight: 700; }

.chunk {
  margin: 14px 0 0;
  padding: 16px 16px 14px;
  border-left: 2px solid var(--line-gold);
  background: rgba(255, 255, 255, .028);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.chunk p { margin: 0 0 8px; }
.chunk pre {
  font-family: inherit;
  font-size: 14px;
  color: #ded4cc;
}
.chunkLink {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-lit);
  text-decoration: none;
}
.chunkLink:hover { text-decoration: underline; text-underline-offset: 3px; }

.resultActions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* 履歴は畳める（summary の中に見出しを置いている） */
.history > summary { list-style: none; cursor: pointer; }
.history > summary::-webkit-details-marker { display: none; }
.history > summary h2 { margin: 0; }
.history > summary h2::before { content: "＋"; font-size: 13px; color: var(--gold); }
.history[open] > summary h2 { margin-bottom: 16px; }
.history[open] > summary h2::before { content: "－"; }

.historyList { display: grid; gap: 10px; }
.historyItem {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .25);
  font-size: 13px;
}
.historyItem .hTop {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--faint);
}
.historyItem .hMain { color: var(--text); line-height: 1.8; }
.historyItem .line { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* =========================================================
   解説（検索・AI検索からの流入を受ける本文）
   ========================================================= */
.doc {
  max-width: 760px;
  margin: 72px auto 0;
  line-height: 1.9;
}

.doc h2 {
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: clamp(19px, 3.2vw, 24px);
  letter-spacing: .06em;
  line-height: 1.5;
  color: #fff;
  display: block;
}
.doc h2::after { content: none; }
.doc h2:first-child { margin-top: 0; }

.doc h3 {
  margin: 32px 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-lit);
}

.doc p { margin: 0 0 16px; color: #ded4cc; font-size: 15px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 1.35em; }
.doc li { margin-bottom: 8px; color: #ded4cc; font-size: 15px; }
.doc li::marker { color: var(--gold-dim); }
.doc strong { color: var(--gold-lit); font-weight: 700; }
.doc a:not(.related-card):not(.rin-guide__close) {
  color: var(--gold-lit);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-dim);
}

.star-table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.star-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.star-table th, .star-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.star-table thead th {
  border-bottom: 1px solid var(--line-gold);
  color: var(--gold-lit);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
}
.star-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.star-table td:first-child {
  white-space: nowrap;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item > summary {
  position: relative;
  padding: 18px 46px 18px 2px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: color .16s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--gold-lit); }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .faq-body { padding: 0 8px 20px 2px; }
.faq-item .faq-body p { margin: 0; color: var(--muted); font-size: 14px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}
.related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .028);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.related-card:hover {
  border-color: var(--line-gold);
  background: rgba(201, 162, 74, .07);
  transform: translateY(-2px);
}
.related-card b {
  display: block;
  margin-bottom: 5px;
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-lit);
}
.related-card span { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 遊び方・解説パネルの中では、本文の上余白はパネル側が持つ */
.rin-guide .doc { margin: 0 auto; }
.rin-guide .rin-guide__head + h2 { margin-top: 0; }

/* =========================================================
   広告（メイン機能の直下に1枠）
   ========================================================= */
.ad-slot {
  margin: 44px 0 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 7, 8, .55);
}
.ad-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
}

/* =========================================================
   この占いについて（ページ上に常に見える短い説明）
   ========================================================= */
.about {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: center;
}
.about h2 {
  margin: 0 0 16px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: clamp(19px, 3.2vw, 24px);
  letter-spacing: .06em;
  line-height: 1.5;
  color: #fff;
}
.about p { margin: 0 0 16px; color: #ded4cc; font-size: 15px; }
.about-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.about-points li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  vertical-align: 3px;
  background: var(--gold);
  transform: rotate(45deg);
}
.about .about-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
}
.about-related { margin-top: 36px; text-align: left; }

/* =========================================================
   フッター
   ========================================================= */
.footer {
  margin-top: 60px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.9;
}
.footer a { color: var(--gold-lit); text-underline-offset: 3px; }

/* =========================================================
   カードの意味ページ（meaning/ 以下。generate_meaning_pages.js が生成）
   ========================================================= */
.mean-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 74px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.mean-crumbs a { color: var(--muted); text-decoration: none; }
.mean-crumbs a:hover { color: var(--gold-lit); }

.mean { max-width: 880px; margin: 18px auto 0; }
.mean-box { margin-top: 18px; padding: 24px 26px; }
@media (max-width: 600px) { .mean-box { padding: 18px; } }

.mean-head {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 600px) {
  .mean-head { grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
}
.mean-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .6), 0 0 30px rgba(201, 162, 74, .14);
}
.mean-kicker {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
}
.mean h1 {
  margin: 0 0 12px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: #fff;
}
.mean-kw { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.mean-kw li {
  padding: 2px 12px 3px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(201, 162, 74, .10);
  color: var(--gold-lit);
  font-size: 12.5px;
  font-weight: 700;
}
.mean-lead { margin: 0 0 18px; color: #ded4cc; font-size: 14px; line-height: 1.9; }

.mean-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mean-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) {
  .mean-pos, .mean-topics { grid-template-columns: 1fr; }
}
.mean-pos-item, .mean-topic {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
}
.mean-pos-item h3, .mean-topic h3 {
  margin: 0 0 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}
.mean-pos-item.is-up h3 { color: var(--up); }
.mean-pos-item.is-rev h3 { color: var(--rev); }
.mean-topic h3 { color: var(--gold-lit); }
.mean-pos-item p { margin: 0; color: #ded4cc; font-size: 14.5px; line-height: 1.9; }
.mean-topic dl { margin: 0 0 10px; }
.mean-topic dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mean-topic dt.is-up { color: var(--up); }
.mean-topic dt.is-rev { color: var(--rev); }
.mean-topic dd { margin: 0 0 10px; color: #ded4cc; font-size: 14px; line-height: 1.85; }
.mean-topic-cta { font-size: 12.5px; font-weight: 700; color: var(--gold-lit); text-decoration: none; }
.mean-topic-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.mean-pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.mean-pager a {
  flex: 1 1 240px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.mean-pager a:hover { border-color: var(--line-gold); background: rgba(201, 162, 74, .07); }
.mean-pager a.is-next { text-align: right; }
.mean-pager small {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11.5px;
  color: var(--faint);
}

/* 一覧 */
.mean-list-head { padding: 26px 0 4px; text-align: center; }
.mean-list-head p { max-width: 40em; margin: 0 auto 18px; color: var(--muted); font-size: 14px; }
.mean-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mean-jump a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--gold-lit);
  font-size: 13px;
  text-decoration: none;
}
.mean-jump a:hover { background: rgba(201, 162, 74, .12); }
.mean-group { scroll-margin-top: 16px; }
.mean-group-lead { margin: -6px 0 16px; color: var(--muted); font-size: 13px; }
.mean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 18px 14px;
}
.mean-item { display: block; color: var(--text); text-align: center; text-decoration: none; }
.mean-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  transition: transform .18s ease;
}
.mean-item:hover img { transform: translateY(-3px); }
.mean-item b {
  display: block;
  margin-top: 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
.mean-item span { display: block; font-size: 11px; line-height: 1.55; color: var(--muted); }

/* hidden 属性を作者スタイルより優先させる */
[hidden] { display: none !important; }
