/* 金燈庵 — 墨黒×古色金の和綴じ本・古典籍仕立て（C案-渋い古色／勝者）
   方針：やや角丸の柔らかさを残しつつ、平板でマットな面と二重罫の額装、陰翳と字間の品で見せる。
   グロー/blur/光沢アニメは排除。朱の落款を要所に。
   移植：B案の印影らしい落款（微傾斜＋内側二重縁取り）／B案の #app 外周二重罫額装。
   tcard 裏面の和本表紙意匠・master-frame の四隅L字角飾りは本案で踏襲済み。 */

:root {
  --bg-0: #14110f;   /* 墨黒 */
  --bg-1: #1a1611;
  --bg-2: #221b13;
  --ink: #ede5d3;    /* 和紙の生成り */
  --ink-soft: #c6b896;
  --ink-dim: #8a7d63;
  --gold: #a8842f;       /* 金茶（くすんだ本金） */
  --gold-soft: #b89048;  /* 古色金（艶を抑えた金） */
  --violet: #b07c34;     /* フォーカス等：琥珀（旧紫枠の転用） */
  --rose: #9c3a2e;       /* 弁柄（赤茶） */
  --seal: #b1382c;       /* 朱（落款印の朱色） */
  --line: rgba(184, 144, 72, 0.28);     /* 古色金の細罫 */
  --line-soft: rgba(184, 144, 72, 0.16);
  --card-back: #1a1510; /* 裏面の墨地（平板） */
  --shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8); /* 光彩でなく陰翳の落ち影 */
  --radius: 8px;        /* やや角丸（古風は保ちつつ柔らかく） */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  color: var(--ink);
  /* 平板でマットな和紙地。極くわずかな明度差の重ねで陰翳だけを残す */
  background:
    linear-gradient(180deg, #14110f 0%, #181410 50%, #14110f 100%);
  background-color: var(--bg-0);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* 金粉の微光は廃止。極薄の陰翳ベール（四隅をわずかに沈める）のみ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* #app 外周の細い二重罫（B案より移植）：一冊の古書を開いている統一感。
   左右の極細罫＋inset box-shadow で紙面の縁を表す。モバイルで左右paddingを
   圧迫しないよう線は極細（1px）に留める。 */
#app {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  min-height: 100vh;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  box-shadow:
    inset 1px 0 0 rgba(184, 144, 72, 0.06),
    inset -1px 0 0 rgba(184, 144, 72, 0.06);
}

/* トップバー（blur 除去・平板なマット帯） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 4px 12px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--gold-soft); font-size: 17px; }
.brand-name { font-weight: 700; letter-spacing: 0.24em; font-size: 16px; }
/* 屋号脇の朱の角印（落款）。HTMLに .brand-seal を1要素追加（htmlChanges参照）。
   B案より印影らしさを移植：微傾斜（rotate）＋内側二重縁取り（inset box-shadow）で篆刻の風合い。 */
.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border: 1px solid var(--seal);
  background: var(--seal);
  color: #f3e3d8;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 2px;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px var(--bg-0), inset 0 0 0 3px var(--seal);
}

.credits-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;            /* 角丸を少し戻す */
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--gold-soft);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s;
}
.credits-pill:active { border-color: var(--gold-soft); }
.credits-icon { font-size: 13px; }
.credits-label { font-size: 11px; color: var(--ink-soft); font-weight: 600; }

/* ビュー */
.screen { padding-top: 8px; }
.view { animation: fade 0.4s ease; }
.hidden { display: none !important; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ヒーロー（グロー廃止・縦書きの見出し） */
.hero { position: relative; text-align: center; padding: 30px 0 20px; }
.hero-glow { display: none; }   /* グロー除去（DOMは残置） */
.hero-sub { margin: 0; color: var(--gold-soft); font-size: 12px; letter-spacing: 0.36em; }
.hero-title {
  margin: 16px auto 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.85;
  /* 縦書きで古典籍の佇まい。改行<br>はそのまま二行の柱になる */
  writing-mode: vertical-rl;
  text-orientation: upright;
  height: 14em; /* 最長行「この灯りが照らしましょう」(12字)を1列に収める */
}
.hero-lead { margin: 18px auto 0; color: var(--ink-soft); font-size: 13px; line-height: 2.2; letter-spacing: 0.06em; max-width: 24em; }

/* フィールド */
.field { margin: 20px 0; }
.field-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; font-weight: 600; letter-spacing: 0.06em; }
.field-input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(26, 21, 16, 0.85);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.9;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--violet); }
.field-input::placeholder { color: rgba(198, 184, 150, 0.45); }
.field-hint { text-align: right; font-size: 11px; color: var(--ink-soft); margin-top: 5px; }

/* スプレッド選択 */
.spread-list { display: grid; gap: 10px; }
.spread-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-1);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
/* 二重罫の額装 */
.spread-card::before {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
/* 選択時は墨寄りのマット濃色面＋二重罫の色切替（A案の渋い手法を踏襲） */
.spread-card.selected {
  border-color: var(--gold);
  background: rgba(40, 31, 19, 0.9);
}
.spread-card.selected::before { border-color: var(--line); }
.spread-emoji { font-size: 24px; flex-shrink: 0; filter: saturate(0.7); }
.spread-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--gold); border-radius: 8px;  /* 円→角印風 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold-soft); font-weight: 700; font-size: 17px; line-height: 1;
  background: transparent;
}
.spread-num small { font-size: 8px; color: var(--ink-soft); margin-top: 2px; font-weight: 500; letter-spacing: 0.1em; }
.spread-card.selected .spread-num { border-color: var(--gold-soft); }
.spread-info { flex: 1; }
.spread-name { font-weight: 700; font-size: 15px; color: var(--gold-soft); letter-spacing: 0.04em; }
.spread-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.7; }
.spread-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 6px; border: 1px solid var(--line);   /* 丸→角 */
  display: grid; place-items: center; font-size: 12px; color: var(--bg-0);
}
.spread-card.selected .spread-check { background: var(--gold); border-color: var(--gold); }

/* ボタン（艶グラデ廃止・古色金のマット面＋墨文字＋二重罫） */
.primary-btn {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);   /* マット古色金 */
  color: #221706;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.12s, background 0.2s, opacity 0.2s;
}
.primary-btn:active { transform: scale(0.99); background: var(--gold); }
.primary-btn:disabled { opacity: 0.5; cursor: default; }
/* 流れる光は廃止。DOM(.btn-shine)は残すが描画を無効化 */
.btn-shine { display: none; }
@keyframes shine { 0%, 100% { transform: none; } }
/* ボタン内側の二重罫 */
.primary-btn::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1px solid rgba(34, 23, 6, 0.4);
  box-shadow: none;
  pointer-events: none;
}

.cost-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; letter-spacing: 0.04em; }
.disclaimer-note { text-align: center; font-size: 11px; color: var(--ink-soft); line-height: 1.8; margin: 16px auto 0; max-width: 30em; opacity: 0.85; }
.credit-note { text-align: center; font-size: 10px; color: rgba(198, 184, 150, 0.5); margin: 10px 0 0; }

.ghost-btn {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ghost-btn:active { background: rgba(255, 255, 255, 0.03); }
.ghost-btn::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1px solid var(--line-soft); pointer-events: none;
}

/* カードステージ */
.reading-status {
  text-align: center;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  font-size: 15px;
  margin: 12px 0 20px;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.cards-stage {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tcard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 118px;
}
.tcard {
  width: 118px;
  height: 203px; /* RWS の縦長比に合わせる */
  perspective: 1000px;
  cursor: default;
}
@media (max-width: 480px) {
  .tcard-wrap { width: 98px; }
  .tcard { width: 98px; height: 169px; }
  .cards-stage { gap: 9px; }
}
.tcard-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  /* ゆっくり、数秒かけてめくれる演出（機能は維持） */
  transition: transform 2s cubic-bezier(0.45, 0.05, 0.25, 1);
}
.tcard-wrap.flipped .tcard-inner { transform: rotateY(180deg); }

/* めくれる瞬間のグロー明滅は廃止（静かに反す） */
.tcard-wrap.flipped .tcard { animation: none; }
@keyframes cardReveal { 0%, 100% { filter: none; } }

/* 読み込み中の伏せカード：控えめに沈めるだけ（明滅グロー廃止） */
.tcard-wrap.loading .tcard-back { animation: backShimmer 2.4s ease-in-out infinite; }
@keyframes backShimmer { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* 「めくってください」状態：そっと上下するのみ。グローは出さない */
.cards-stage.ready .tcard-wrap:not(.flipped) { cursor: pointer; animation: cardInvite 2.6s ease-in-out infinite; }
@keyframes cardInvite {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;             /* 角を立てる */
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* タロットの裏面：墨地に古色金の45度/−45度クロス罫＋内側二重罫＋中央✦の角印
   メダリオン（A案の和本表紙意匠を採用・平板・光彩なし） */
.tcard-back {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background:
    repeating-linear-gradient(45deg, rgba(184,144,72,0.06) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(184,144,72,0.06) 0 1px, transparent 1px 9px),
    var(--card-back);
}
/* 内側の細罫（二重罫） */
.tcard-back::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(184, 144, 72, 0.45);
  border-radius: 6px;
}
/* 中央の落款印風メダリオン（✦・角印・bg:var(--bg-0) のベタ地） */
.tcard-back::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 144, 72, 0.7);
  border-radius: 2px;
  background: var(--bg-0);
  color: var(--gold-soft);
  font-size: 17px;
  box-shadow: none;
}
.tcard-front {
  transform: rotateY(180deg);
  background: var(--bg-0);
  border: 1px solid var(--gold);
}
.tcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcard-img.reversed { transform: rotate(180deg); }
.tcard-img.img-broken { display: none; }
/* 画像が読めないときだけ見える絵文字フォールバック */
.tcard-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}
.tcard-img.img-broken ~ .tcard-fallback { display: flex; }

.tcard-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.45s ease 0.25s;
  text-align: center;
}
.tcard-wrap.flipped .tcard-meta { opacity: 1; }
.tcard-name { font-size: 11px; font-weight: 700; line-height: 1.3; }
.tcard-orient { font-size: 10px; padding: 2px 7px; border-radius: 6px; }  /* 丸→角 */
.tcard-orient.up { color: #18250f; background: #9ab87a; }
.tcard-orient.rev { color: #28140f; background: #c08866; }
.tcard-pos { font-size: 10px; color: var(--gold); }

/* 鑑定結果 */
.reading-result { animation: fade 0.5s ease; }
.r-block {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 18px 17px;
  margin-bottom: 12px;
}
/* 二重罫の額装 */
.r-block::before {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.r-overview {
  border-color: var(--gold);
  background: rgba(40, 31, 19, 0.7);
}
.r-overview::before { border-color: var(--line); }
.r-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.r-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.r-card-emoji { font-size: 20px; filter: saturate(0.7); }
.r-card-thumb {
  width: 50px;
  height: 86px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.r-card-thumb.reversed { transform: rotate(180deg); }
.r-card-thumb.img-broken { display: none; }
.r-card-title { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.r-text { font-size: 14px; line-height: 2.1; color: var(--ink); }
.r-pos { font-size: 11px; color: var(--ink-soft); }

/* 購入シート（blur 廃止・角を立てる・平板） */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, 0.7); }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-2);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  padding: 14px 18px calc(22px + env(safe-area-inset-bottom));
  animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
/* 購入シート内側の二重罫（古色金・角を立てる） */
.sheet-panel::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-soft);
  border-radius: 10px; pointer-events: none;
}
.sheet-handle { width: 42px; height: 3px; border-radius: 999px; background: var(--line); margin: 4px auto 16px; }
.sheet-title { margin: 0 0 5px; font-size: 19px; font-weight: 700; letter-spacing: 0.08em; }
.sheet-sub { margin: 0 0 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }

.pack-list { display: grid; gap: 10px; }
.pack-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--ink); /* ボタンは色を継承しないため明示（黒文字防止）*/
  cursor: pointer;
  transition: border-color 0.2s;
}
.pack-card::before {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  border: 1px solid var(--line-soft); pointer-events: none;
}
.pack-card:active { border-color: var(--gold-soft); }
.pack-credits { font-size: 22px; font-weight: 700; color: var(--gold-soft); }
.pack-credits small { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-left: 2px; }
.pack-mid { flex: 1; }
.pack-name { font-weight: 700; font-size: 14px; color: var(--gold-soft); letter-spacing: 0.04em; }
.pack-per { font-size: 11px; color: var(--ink-soft); margin-top: 3px; }
.pack-price {
  padding: 8px 14px;
  border-radius: var(--radius);    /* 丸ピル廃止 */
  background: var(--gold-soft);    /* マット古色金 */
  color: #221706;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid var(--gold);
}
.pack-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 5px;              /* 丸→角印風 */
  background: var(--seal);         /* 朱の印 */
  color: #f3e3d8;
  font-weight: 700;
  margin-left: 6px;
}

/* トースト（角を立て・平板） */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  max-width: 88%;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: fade 0.25s ease;
}

/* デモバナー */
.demo-banner {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(184, 144, 72, 0.06);
  color: var(--gold-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

/* カード拡大（ライトボックス・blur 廃止） */
.tcard-wrap.flipped .tcard { cursor: zoom-in; }
.r-card-thumb { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.92);
}
.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  animation: fade 0.25s ease;
  cursor: zoom-out;
}
.lb-img {
  width: min(80vw, 340px);
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--gold);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.9);
}
.lb-img.reversed { transform: rotate(180deg); }
.lb-name { color: var(--gold-soft); font-weight: 700; font-size: 16px; margin: 0; letter-spacing: 0.06em; }
.lb-hint { color: var(--ink-soft); font-size: 12px; margin: 0; }

/* ===== 金燈庵 — 世界観の作り込み（古典籍仕立て） ===== */
.brand-mark { color: var(--gold-soft); font-size: 17px; }
.credits-icon { font-size: 13px; }

.hero-sub { letter-spacing: 0.36em; font-size: 12px; }

.reading-status { letter-spacing: 0.1em; font-size: 15px; color: var(--gold-soft); }

/* 鑑定主宰（額装・横書き名・朱の落款印） */
.master { margin: 46px 0 8px; }
.master-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 34px 22px 30px;
  text-align: center;
}
/* 内側の二重罫＋四隅L字角飾り（A案の表具額装感を踏襲）。
   ::before/::after を四隅L字角金具に充て、内側細罫は box-shadow で表現。 */
.master-frame {
  box-shadow: inset 0 0 0 6px var(--bg-1), inset 0 0 0 7px var(--line-soft);
}
.master-frame::before, .master-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--gold); opacity: 0.6;
}
.master-frame::before { top: 9px; left: 9px; border-right: none; border-bottom: none; }
.master-frame::after { bottom: 9px; right: 9px; border-left: none; border-top: none; }
.master-kamon { font-size: 24px; color: var(--gold-soft); }
.master-role { margin: 10px 0 2px; font-size: 11px; letter-spacing: 0.32em; color: var(--gold); }
/* 主宰名：横書きで端正に。名の下に朱の角印（落款）を擬似要素で添える。
   B案より印影らしさを移植：微傾斜＋内側二重縁取り（inset box-shadow）。 */
.master-name {
  position: relative;
  display: inline-block;
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.master-name::after {
  content: "鑑";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 12px auto 0;
  border: 1px solid var(--seal);
  background: var(--seal);
  color: #f3e3d8;
  font-size: 12px;
  border-radius: 2px;
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 2px var(--bg-1), inset 0 0 0 3px var(--seal);
}
.master-yomi { display: block; font-size: 11px; letter-spacing: 0.22em; color: var(--ink-dim); margin-top: 9px; font-weight: 500; writing-mode: horizontal-tb; }
.master-title { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.22em; color: var(--ink-soft); }
.master-words { margin: 20px auto 0; max-width: 22em; font-size: 13.5px; line-height: 2.25; color: var(--gold-soft); font-style: normal; }
.master-bio { margin: 16px auto 0; max-width: 27em; font-size: 12.5px; line-height: 2.15; color: var(--ink-soft); text-align: left; }
.master-link {
  display: inline-block; margin-top: 22px; color: var(--gold); font-size: 13px;
  letter-spacing: 0.08em; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}

/* フッター */
.site-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.footer-links { text-align: center; margin: 12px 0; font-size: 12px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:active { color: var(--gold-soft); }
.footer-links .dot { color: var(--ink-dim); margin: 0 8px; }

/* 背景に散りばめたタロットカード（沈めて古色に） */
.bg-cards { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-cards img {
  position: absolute;
  width: 124px;
  border-radius: 6px;
  filter: sepia(0.55) brightness(0.82) contrast(0.92) saturate(0.8);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
}
/* 全体を薄暗いベールで覆って“背景に少し見える”濃さに調整 */
.bg-cards::after { content: ""; position: absolute; inset: 0; background: rgba(19, 16, 13, 0.8); }
@media (max-width: 600px) {
  .bg-cards img { width: 92px; }
  .bg-cards::after { background: rgba(19, 16, 13, 0.84); }
}

/* 保存ボタン（金）・ご相談ブロック */
.ghost-btn.gold { color: var(--gold-soft); border-color: var(--line); }
.r-question { border-color: var(--gold); background: rgba(40, 31, 19, 0.6); }

/* ===== 和の地紋・額装装飾 ===== */
/* 全体に極薄の地紋：菱＋三方向罫で麻の葉に近い静かな下地 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image:
    repeating-linear-gradient(60deg, var(--gold) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, var(--gold) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, var(--gold) 0 1px, transparent 1px 48px);
}

/* モバイルでのヒーロー見出し縦書き破綻回避：480px 以下は横書きへ復帰
   （主宰名は既定で横書きのため上書き不要） */
@media (max-width: 480px) {
  .hero-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    font-size: 23px;
    line-height: 1.7;
    letter-spacing: 0.08em;
  }
}
