/* ═══════════════════════════════════════════════════════
   天照界 — MY WORLD  v3 "電脳の聖遺物匣"
   古代の霊場 × 現代のプロダクト水準。
   漆黒のガラス層 / 金の光刻タイポ / 朱の一点 / 重厚で遅い動き。
   儀式文=しっぽり明朝、UI=Zen Kaku Gothic New。
   ═══════════════════════════════════════════════════════ */

:root {
  /* 和モダン: 墨 (warm charcoal) / 生成り (unbleached cloth) / 朱 (seal red) */
  --ink: #171412;
  --ink-2: #1D1916;
  --shu: #C73E2E;
  --shu-deep: #A93325;
  --vermilion: #C73E2E;
  --vermilion-hot: #D9553F;
  --gold: #B08D4F;
  --gold-bright: #D9BC85;
  --gold-dim: rgba(176, 141, 79, 0.35);
  --sumi-white: #F2EDE3;
  --brush: #E6DFD0;

  --el-wood: #6F8F6A;
  --el-fire: #C05A44;
  --el-earth: #A98753;
  --el-metal: #B39A63;
  --el-water: #5E7E9B;

  --text-1: #F2EDE3;
  --text-2: rgba(242, 237, 227, 0.64);
  --text-3: rgba(242, 237, 227, 0.4);

  --surface: rgba(38, 33, 28, 0.42);
  --surface-2: rgba(44, 38, 32, 0.38);
  --hairline: rgba(230, 223, 208, 0.22);
  --hairline-dim: rgba(230, 223, 208, 0.11);

  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;

  --r: 10px;
  --slow: 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  --quick: 0.35s cubic-bezier(0.33, 1, 0.68, 1);

  /* headings: quiet unbleached-to-amber, no occult glow */
  --gold-text: linear-gradient(115deg, #F2EDE3 15%, #E4D6B8 55%, #CBB183 95%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden must win over any display rule (flex views, nav) */
[hidden] { display: none !important; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background:
    radial-gradient(ellipse 120% 60% at 50% -12%, rgba(60, 50, 40, 0.4), transparent 62%),
    radial-gradient(ellipse 80% 50% at 85% 108%, rgba(30, 26, 22, 0.85), transparent 65%),
    radial-gradient(ellipse 45% 30% at 8% 55%, rgba(199, 62, 46, 0.045), transparent 70%),
    var(--ink);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

/* atmosphere: drifting haze + fine grain */
.haze {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 42% 30% at 18% 72%, rgba(242, 237, 227, 0.03), transparent 70%),
    radial-gradient(ellipse 52% 36% at 82% 26%, rgba(176, 141, 79, 0.025), transparent 70%);
  animation: haze-drift 46s ease-in-out infinite alternate;
}
.haze::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
@keyframes haze-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -2%, 0) scale(1.06); }
}

/* ── views — places, fading like incense; children rise in sequence ── */
.view {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.4rem 8.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--slow), transform var(--slow);
}
.view.is-active { opacity: 1; transform: none; }

.view.is-active > * {
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.view.is-active > *:nth-child(1) { animation-delay: 0.05s; }
.view.is-active > *:nth-child(2) { animation-delay: 0.14s; }
.view.is-active > *:nth-child(3) { animation-delay: 0.23s; }
.view.is-active > *:nth-child(4) { animation-delay: 0.32s; }
.view.is-active > *:nth-child(5) { animation-delay: 0.41s; }
.view.is-active > *:nth-child(6) { animation-delay: 0.5s; }
.view.is-active > *:nth-child(7) { animation-delay: 0.59s; }
.view.is-active > *:nth-child(8) { animation-delay: 0.68s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ═══ 入界門 ═══ */
.view-gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-bottom: 3rem;
}
.gate-inner { width: 100%; }

.gate-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 2.6rem;
}

.sigil {
  width: min(56vw, 250px);
  height: auto;
  display: block;
  margin: 0 auto 2.6rem;
  transition: filter 2s ease, opacity 2s ease;
  opacity: 0.85;
  position: relative;
}
.gate-inner { position: relative; }
.gate-inner::before {
  content: '';
  position: absolute; top: 4%; left: 50%;
  width: 380px; height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 237, 227, 0.05), transparent 65%);
  pointer-events: none;
}
.sigil { width: min(44vw, 190px); margin-bottom: 1.6rem; }
.sigil-lit {
  filter: drop-shadow(0 0 14px rgba(230, 223, 208, 0.25));
  animation: sigil-pulse 7s ease-in-out infinite;
}

.brand-name {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}
.brand-tagline {
  display: inline-block;
  font-size: 1.02rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--text-2);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.6rem;
  margin-bottom: 1.9rem;
}
@keyframes sigil-pulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.72; }
}

.gate-lines p {
  font-size: clamp(0.88rem, 2.4vw, 0.98rem);
  color: var(--text-2);
  letter-spacing: 0.12em;
  font-weight: 400;
}
.gate-lines { margin-bottom: 2.6rem; }

.gate-actions {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* 札 — buttons as bound tags: glass body, gold thread */
.btn-fuda {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  color: var(--sumi-white);
  background: linear-gradient(180deg, rgba(50, 43, 36, 0.5), rgba(24, 20, 17, 0.75));
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  position: relative;
  transition: border-color var(--quick), box-shadow var(--quick),
              transform var(--quick), color var(--quick), opacity var(--quick);
}
.btn-fuda::before {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 223, 208, 0.5), transparent);
  opacity: 0.5;
  transition: opacity var(--quick);
}
.btn-fuda:hover:not(:disabled) {
  border-color: rgba(230, 223, 208, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.btn-fuda:hover:not(:disabled)::before { opacity: 1; }
.btn-fuda:active:not(:disabled) { transform: translateY(0); }
.btn-fuda:disabled { opacity: 0.28; cursor: default; }

/* primary button as a 朱印 — the seal stamp */
.btn-gate {
  color: #FBF6EC;
  border-color: transparent;
  background: linear-gradient(180deg, var(--vermilion-hot), var(--shu-deep));
  box-shadow: 0 4px 18px rgba(199, 62, 46, 0.28);
}
.btn-gate::before { display: none; }
.btn-gate:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(180deg, #E06148, var(--shu));
  box-shadow: 0 8px 26px rgba(199, 62, 46, 0.4);
}

.gate-sound-note {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-bottom: 3.2rem;
}

.gate-outer-links {
  display: flex; gap: 2rem; justify-content: center;
  border-top: 1px solid var(--hairline-dim);
  padding-top: 1.5rem;
  max-width: 340px;
  margin: 0 auto;
}
.gate-outer-links a {
  font-family: var(--sans);
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: color var(--quick), transform var(--quick);
}
.gate-outer-links a:hover { color: var(--gold-bright); transform: translateY(-1px); }

/* ═══ 場所の帳 — floating glass pill nav ═══ */
.places {
  position: fixed; bottom: calc(0.9rem + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 0.1rem;
  max-width: min(96vw, 660px);
  padding: 0.35rem;
  background: rgba(12, 12, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(195, 164, 93, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(242, 213, 138, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.places::-webkit-scrollbar { display: none; }
.places button {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--quick), background var(--quick);
}
.places button:hover { color: var(--gold-bright); }
.places button.is-here {
  color: #FBF6EC;
  background: linear-gradient(180deg, var(--vermilion-hot), var(--shu-deep));
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(199, 62, 46, 0.3);
}
.places-sound.is-on { color: var(--gold-bright); background: rgba(176, 141, 79, 0.14); }

/* ═══ 本殿 ═══ */
.hall-head { text-align: center; margin-bottom: 1.8rem; }
.hall-world {
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hall-level {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  margin-top: 0.7rem;
  padding: 0.3rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(195, 164, 93, 0.07);
}

.mandala-wrap { text-align: center; margin-bottom: 2.6rem; position: relative; }
.mandala-wrap::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: min(90vw, 420px); height: min(90vw, 420px);
  transform: translate(-50%, -54%);
  background: radial-gradient(circle, rgba(242, 237, 227, 0.04), transparent 62%);
  pointer-events: none;
}
.mandala {
  position: relative;
  width: min(72vw, 320px); height: auto;
  animation: mandala-breathe 12s ease-in-out infinite;
}
@keyframes mandala-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.016); }
}
.mandala-state {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.22em;
}

/* blocks — glass panels with a gold thread on top */
.hall-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--quick);
}
.hall-block::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.hall-block:hover { border-color: var(--hairline); }

.block-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.declaration { font-size: 1.02rem; letter-spacing: 0.1em; }

/* 運気 */
.unki-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.unki-kanshi {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.25em;
  border: 1px solid var(--hairline-dim);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
}
.unki-grade {
  font-size: 1.15rem; font-weight: 800; letter-spacing: 0.18em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.unki-line { font-size: 0.92rem; color: var(--text-1); margin-bottom: 0.55rem; }
.unki-lucky { font-family: var(--sans); font-size: 0.78rem; color: var(--text-2); }
.unki-more {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--text-3);
}
.unki-more a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(237, 231, 218, 0.3);
  padding-bottom: 1px;
  transition: color var(--quick), border-color var(--quick);
}
.unki-more a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* 呪 — the mantra spoken into the subconscious */
.mantra-text {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 2.1;
  margin-bottom: 1rem;
  transition: text-shadow 0.6s ease;
}
.mantra-text.chanting {
  animation: chant-pulse 0.9s ease;
}
@keyframes chant-pulse {
  0% { text-shadow: none; opacity: 0.8; }
  40% { text-shadow: 0 0 22px rgba(242, 213, 138, 0.75); opacity: 1; }
  100% { text-shadow: 0 0 6px rgba(242, 213, 138, 0.2); }
}
.mantra-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-chant { padding: 0.65rem 1.5rem; font-size: 0.82rem; }
.mantra-after {
  font-family: var(--sans);
  font-size: 0.76rem; color: var(--gold-bright); letter-spacing: 0.1em;
}

/* 託宣 */
.oracle {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  border-left: 3px solid var(--vermilion);
  padding: 0.35rem 0 0.35rem 1.15rem;
  color: var(--text-1);
  white-space: pre-line;
  background: linear-gradient(90deg, rgba(158, 27, 27, 0.08), transparent 55%);
  border-radius: 0 var(--r) var(--r) 0;
}
.oracle.reveal { animation: oracle-in 2.2s ease both; }
@keyframes oracle-in {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}
.oracle-share {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--text-3);
  text-decoration: none;
  border: 1px solid var(--hairline-dim);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  transition: color var(--quick), border-color var(--quick), transform var(--quick), box-shadow var(--quick);
}
.oracle-share:hover {
  color: var(--gold-bright); border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(195, 164, 93, 0.18);
}

/* actions */
.action-picker { display: grid; gap: 0.55rem; }
.action-option {
  font-family: var(--serif);
  display: flex; align-items: center; gap: 0.75rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color var(--quick), background var(--quick),
              transform var(--quick), box-shadow var(--quick);
}
.action-option:hover {
  border-color: var(--gold);
  background: rgba(22, 20, 34, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.action-option.is-recommended {
  border-color: rgba(242, 213, 138, 0.55);
  background: linear-gradient(135deg, rgba(195, 164, 93, 0.1), var(--surface-2) 55%);
}
.rec-mark {
  margin-left: auto;
  font-size: 0.68rem; color: #FBF6EC;
  background: linear-gradient(180deg, var(--vermilion-hot), var(--shu-deep));
  border-radius: 999px;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
}

.el-mark {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 0.82rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.el-lg { width: 2.5rem; height: 2.5rem; font-size: 1.08rem; border-radius: 9px; }
.el-wood { color: var(--el-wood); }
.el-fire { color: var(--el-fire); }
.el-earth { color: var(--el-earth); }
.el-metal { color: var(--el-metal); }
.el-water { color: var(--el-water); }
.el-bg-wood { background: var(--el-wood); }
.el-bg-fire { background: var(--el-fire); }
.el-bg-earth { background: var(--el-earth); }
.el-bg-metal { background: var(--el-metal); }
.el-bg-water { background: var(--el-water); }
.el-text-wood { color: var(--el-wood); }
.el-text-fire { color: var(--el-fire); }
.el-text-earth { color: var(--el-earth); }
.el-text-metal { color: var(--el-metal); }
.el-text-water { color: var(--el-water); }

.action-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 1.05rem;
}
.action-card p { flex: 1 1 12rem; font-size: 0.96rem; }
.action-card.is-done {
  border-color: rgba(217, 188, 133, 0.45);
  box-shadow: inset 0 0 18px rgba(176, 141, 79, 0.06);
}
.action-done-line {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 0.76rem; color: var(--gold-bright); letter-spacing: 0.12em;
}

/* gogyo mini */
.gogyo-mini { display: flex; gap: 1rem; flex-wrap: wrap; }
.gogyo-cell { display: flex; align-items: center; gap: 0.45rem; }
.gogyo-state { font-family: var(--sans); font-size: 0.74rem; color: var(--text-2); }
.gogyo-nudge {
  margin-top: 0.9rem;
  font-size: 0.8rem; color: var(--text-2);
}

.hall-close {
  background: none; border: none; backdrop-filter: none;
  padding-top: 1.6rem; text-align: center;
}
.hall-close::before { display: none; }
.close-line { margin-top: 1.2rem; font-size: 0.86rem; color: var(--text-2); }

/* ═══ shared view headers ═══ */
.view-title {
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  text-align: center;
  margin-bottom: 0.6rem;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.view-sub {
  font-family: var(--sans);
  text-align: center; font-size: 0.76rem;
  color: var(--text-2);
  margin-bottom: 2.6rem; letter-spacing: 0.1em;
}

/* ═══ 願殿 ═══ */
.wish-card {
  position: relative;
  background: linear-gradient(160deg, rgba(158, 27, 27, 0.08), var(--surface) 50%);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.35rem 1.3rem;
  margin-bottom: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--quick), box-shadow var(--quick);
}
.wish-card::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 58, 43, 0.5), transparent);
}
.wish-card:hover { border-color: var(--hairline); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); }
.wish-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.wish-meta { font-family: var(--sans); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.12em; }
.wish-text { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.wish-step { font-family: var(--sans); font-size: 0.78rem; color: var(--text-2); margin-bottom: 0.9rem; }
.btn-fulfill { padding: 0.55rem 1.3rem; font-size: 0.78rem; }
.wish-done-label { margin: 1.8rem 0 0.7rem; }
.wish-fulfilled {
  font-family: var(--sans);
  font-size: 0.8rem; color: var(--text-2);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline-dim);
  font-variant-numeric: tabular-nums;
}

.wish-form {
  display: grid; gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.4rem;
  margin: 1.6rem 0 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wish-guide { font-family: var(--sans); font-size: 0.76rem; color: var(--text-2); }
.wish-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-1);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r);
  padding: 0.9rem;
  resize: vertical;
  letter-spacing: 0.08em;
  transition: border-color var(--quick), box-shadow var(--quick);
}
.wish-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.16);
}
.wish-step-label {
  display: grid; gap: 0.32rem;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.2em;
}
.wish-step-label input {
  font-family: var(--sans); font-size: 0.9rem;
  color: var(--text-1);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline-dim);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.wish-step-label input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.16);
}
.wish-el { display: flex; gap: 0.5rem; }
.wish-el .el-mark { cursor: pointer; opacity: 0.45; transition: opacity var(--quick), transform var(--quick); background: none; }
.wish-el .el-mark:hover { opacity: 0.85; transform: translateY(-1px); }
.wish-el .el-mark.is-on { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.wish-limit { font-family: var(--sans); font-size: 0.76rem; color: var(--text-2); }

.mantra-board {
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mantra-note { font-family: var(--sans); font-size: 0.76rem; color: var(--text-2); margin-bottom: 1rem; }
.mantra-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--hairline-dim);
}
.mantra-row p { flex: 1; font-size: 0.92rem; letter-spacing: 0.08em; }
.mantra-row.is-today p {
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.mantra-meta { font-family: var(--sans); font-size: 0.68rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mantra-del {
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--text-3);
  background: none;
  border: 1px solid var(--hairline-dim);
  border-radius: 999px;
  width: 1.7rem; height: 1.7rem;
  cursor: pointer;
  transition: color var(--quick), border-color var(--quick);
}
.mantra-del:hover { color: var(--vermilion-hot); border-color: rgba(196, 58, 43, 0.5); }
.mantra-add { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.mantra-add input {
  flex: 1 1 14rem;
  font-family: var(--sans); font-size: 0.88rem;
  color: var(--text-1);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline-dim);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.mantra-add input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.16);
}
.mantra-add .btn-fuda { padding: 0.55rem 1.4rem; font-size: 0.8rem; }

.ganden-care {
  margin-top: 2rem; text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-3);
}

/* goma rewrite step */
.goma-rewrite { display: grid; gap: 0.7rem; text-align: left; margin: 1.2rem 0 0.4rem; }
.goma-rewrite input {
  font-family: var(--sans); font-size: 0.9rem;
  color: var(--text-1);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline-dim);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
.goma-rewrite input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.16);
}
.goma-rewrite .btn-fuda { justify-self: start; padding: 0.55rem 1.4rem; font-size: 0.8rem; }
.goma-rewrite-done { font-family: var(--sans); font-size: 0.76rem; color: var(--gold-bright); }

/* ═══ 五行の間 ═══ */
.gogyo-row {
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.3rem 1.35rem;
  margin-bottom: 0.9rem;
  transition: border-color var(--quick), transform var(--quick);
}
.gogyo-row:hover { border-color: var(--hairline); transform: translateY(-1px); }
.gogyo-row-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.gogyo-row .gogyo-state { font-family: var(--serif); font-size: 1rem; color: var(--text-1); }
.gogyo-domain { font-family: var(--sans); font-size: 0.74rem; color: var(--text-2); }
.gogyo-bar {
  height: 3px; background: rgba(237, 231, 218, 0.07);
  border-radius: 999px; overflow: hidden;
}
.gogyo-fill { display: block; height: 100%; border-radius: 999px; transition: width var(--slow); }

/* ═══ 護摩壇 ═══ */
.goma-form { display: grid; gap: 1rem; }
.goma-form textarea {
  font-family: var(--serif);
  font-size: 0.96rem;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r);
  padding: 1rem;
  resize: vertical;
  letter-spacing: 0.06em;
  transition: border-color var(--quick), box-shadow var(--quick);
}
.goma-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.18);
}
.goma-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.goma-cats button {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  color: var(--text-2);
  background: none; border: 1px solid var(--hairline-dim);
  border-radius: 999px;
  padding: 0.35rem 0.9rem; cursor: pointer;
  transition: color var(--quick), border-color var(--quick), background var(--quick);
}
.goma-cats button:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.goma-cats button.is-on {
  color: #FBF6EC; font-weight: 700;
  background: linear-gradient(180deg, var(--vermilion-hot), var(--shu-deep));
  border-color: transparent;
}

.goma-fire {
  position: relative;
  min-height: 330px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 1rem;
  overflow: hidden;
}
.fuda {
  position: relative; z-index: 2;
  max-width: 320px;
  background: rgba(237, 231, 218, 0.94);
  color: #17130c;
  padding: 1.35rem 1.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
}
.burning .fuda { animation: fuda-burn 3s ease-in forwards; }
@keyframes fuda-burn {
  0%   { transform: translateY(0); opacity: 1; filter: brightness(1); }
  45%  { transform: translateY(90px) scale(0.96); opacity: 1; filter: brightness(1.05) sepia(0.4); }
  75%  { transform: translateY(170px) scale(0.85); opacity: 0.55; filter: brightness(1.6) sepia(1) hue-rotate(-30deg); }
  100% { transform: translateY(230px) scale(0.6); opacity: 0; filter: brightness(2.2); }
}
.flame {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 140px; height: 150px; z-index: 1;
}
.flame::after {
  content: '';
  position: absolute; bottom: -40px; left: 50%;
  width: 260px; height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(196, 58, 43, 0.28), transparent 65%);
}
.flame span {
  position: absolute; bottom: -20px; left: 50%;
  width: 60px; height: 110px;
  background: radial-gradient(ellipse at 50% 90%, rgba(242, 213, 138, 0.9), rgba(179, 64, 46, 0.75) 45%, transparent 75%);
  border-radius: 50% 50% 42% 42% / 65% 65% 35% 35%;
  transform-origin: 50% 100%;
  filter: blur(3px);
  animation: flame-sway 1.1s ease-in-out infinite alternate;
}
.flame span:nth-child(1) { translate: -42px 0; scale: 0.7; animation-delay: -0.3s; }
.flame span:nth-child(2) { translate: -30px 0; scale: 1; }
.flame span:nth-child(3) { translate: -14px 0; scale: 0.6; animation-delay: -0.7s; }
@keyframes flame-sway {
  from { transform: rotate(-3deg) scaleY(0.96); }
  to   { transform: rotate(3deg) scaleY(1.05); }
}

.goma-after { text-align: center; display: grid; gap: 0.6rem; }
.goma-after p { font-size: 0.94rem; }
#goma-next { margin-top: 1.4rem; text-align: left; }

/* ═══ 式神殿 ═══ */
.shiki-card {
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.3rem;
  margin-bottom: 1rem;
  display: grid; gap: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--quick), transform var(--quick), box-shadow var(--quick);
}
.shiki-card:hover {
  border-color: var(--hairline);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.shiki-head { display: flex; gap: 0.8rem; align-items: center; }
.shiki-name {
  flex: 1;
  font-family: var(--serif); font-size: 1.04rem; font-weight: 700;
  color: var(--gold-bright);
  background: none; border: none; border-bottom: 1px solid transparent;
  letter-spacing: 0.08em;
  transition: border-color var(--quick);
}
.shiki-name:focus { outline: none; border-bottom-color: var(--gold); }
.shiki-role { font-family: var(--sans); font-size: 0.76rem; color: var(--text-2); }
.shiki-card label {
  display: grid; gap: 0.3rem;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.2em;
}
.shiki-card input, .shiki-card select, .kudoku-form input, .kudoku-form select, .ledger-cell input {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text-1);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline-dim);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  letter-spacing: 0.04em;
  transition: border-color var(--quick), box-shadow var(--quick);
}
.shiki-card input:focus, .shiki-card select:focus,
.kudoku-form input:focus, .kudoku-form select:focus,
.ledger-cell input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 164, 93, 0.16);
}
.shiki-head select {
  font-family: var(--sans);
  color: var(--gold-bright);
  background: rgba(8, 8, 12, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

/* ═══ 功徳帳 ═══ */
.kudoku-form {
  display: grid; gap: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.4rem;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.kudoku-form label {
  display: grid; gap: 0.32rem;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.2em;
}
.kudoku-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  transition: border-color var(--quick);
}
.kudoku-card:hover { border-color: var(--hairline); }
.kudoku-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.kudoku-type {
  font-family: var(--sans);
  color: var(--gold-bright); letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700;
  border: 1px solid var(--hairline-dim);
  border-radius: 999px;
  padding: 0.14rem 0.65rem;
  background: rgba(195, 164, 93, 0.07);
}
.kudoku-date {
  font-family: var(--sans);
  color: var(--text-3); font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.kudoku-label {
  font-family: var(--sans);
  display: inline-block; min-width: 6.5em;
  color: var(--text-3); font-size: 0.74rem;
}
.kudoku-gain { margin-top: 0.45rem; font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; }
.empty-line { text-align: center; color: var(--text-3); font-size: 0.86rem; padding: 2rem 0; }

/* ═══ 授与所 ═══ */
.juyo-item {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-1);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color var(--quick), background var(--quick),
              transform var(--quick), box-shadow var(--quick);
}
.juyo-item::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
a.juyo-item:hover {
  border-color: rgba(242, 213, 138, 0.6);
  background: rgba(22, 20, 34, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(195, 164, 93, 0.1);
}
.juyo-kind {
  font-family: var(--sans);
  font-size: 0.64rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.3em;
  margin-bottom: 0.55rem;
}
.juyo-name { font-size: 1.08rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 0.55rem; }
.juyo-desc { font-size: 0.82rem; color: var(--text-2); margin-bottom: 0.75rem; }
.juyo-price {
  font-size: 0.86rem; letter-spacing: 0.2em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.juyo-cta {
  position: absolute; top: 1.15rem; right: 1.15rem;
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-bright);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  background: rgba(195, 164, 93, 0.08);
}
.juyo-item.is-featured {
  border-color: rgba(242, 213, 138, 0.4);
  background: linear-gradient(160deg, rgba(195, 164, 93, 0.09), var(--surface) 45%);
  box-shadow: 0 0 32px rgba(195, 164, 93, 0.08);
}
.juyo-item.is-featured::before {
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.juyo-item.is-preparing { cursor: default; }
.juyo-item.is-preparing .juyo-cta {
  color: var(--text-3);
  border-color: rgba(237, 231, 218, 0.15);
  background: none;
}
.juyo-note {
  margin-top: 1.7rem; text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-3);
}
.juyo-flow {
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-3);
  margin-top: 0.55rem; line-height: 1.8;
}
.juyo-legal {
  margin-top: 0.8rem; text-align: center;
  font-family: var(--sans); font-size: 0.7rem;
}
.juyo-legal a { color: var(--text-3); text-decoration: none; border-bottom: 1px dotted var(--hairline-dim); }
.juyo-legal a:hover { color: var(--gold-bright); }

/* ═══ 縁起物 — affiliate goods (広告バッジ必須) ═══ */
.engi-day-label {
  font-family: var(--sans);
  font-size: 0.64rem; font-weight: 700;
  color: var(--text-3); letter-spacing: 0.28em;
  margin: 1.1rem 0 0.5rem;
}
.engi-card {
  display: flex; align-items: flex-start; gap: 0.8rem;
  position: relative;
  background: rgba(8, 8, 12, 0.45);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  color: var(--text-1);
  text-decoration: none;
  transition: border-color var(--quick), background var(--quick),
              transform var(--quick), box-shadow var(--quick);
}
.engi-card:hover {
  border-color: rgba(242, 213, 138, 0.55);
  background: rgba(22, 20, 34, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.engi-card .el-mark { margin-top: 0.1rem; }
.engi-body { display: grid; gap: 0.2rem; padding-right: 2.6rem; }
.engi-name { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; }
.engi-blurb {
  font-family: var(--sans);
  font-size: 0.74rem; color: var(--text-2); line-height: 1.7;
}
.engi-card.is-compact .engi-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.engi-badge {
  position: absolute; top: 0.7rem; right: 0.75rem;
  font-family: var(--sans);
  font-size: 0.58rem; font-weight: 700;
  color: var(--text-3);
  border: 1px solid rgba(237, 231, 218, 0.22);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  letter-spacing: 0.12em;
}
.engi-board {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.engi-note {
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-3);
  margin-bottom: 1rem;
}

/* ═══ 現世の帳 ═══ */
.ledger-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem; margin-bottom: 1.5rem;
}
.ledger-cell {
  display: grid; gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1rem;
  transition: border-color var(--quick);
}
.ledger-cell:focus-within { border-color: var(--gold-dim); }
.ledger-name { font-size: 0.84rem; color: var(--gold-bright); letter-spacing: 0.12em; }
.ledger-real { font-family: var(--sans); font-size: 0.66rem; color: var(--text-3); }
.ledger-cell input { font-variant-numeric: tabular-nums; }
.ledger-summary { margin-top: 1.6rem; font-size: 0.9rem; }
.ledger-updated {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.7rem; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ═══ footer ═══ */
.world-footer {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  padding: 2.6rem 1.4rem calc(7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-dim);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.66rem;
  color: var(--text-3);
  display: grid; gap: 0.85rem;
}
.world-footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.world-footer a {
  color: var(--text-2); text-decoration: none;
  transition: color var(--quick);
}
.world-footer a:hover { color: var(--gold-bright); }

/* desktop: two-column juyosho + ledger breathing room */
@media (min-width: 760px) {
  .view { padding-top: 5rem; }
  #view-juyosho .juyo-item { margin-bottom: 1.1rem; }
}

/* reduced motion — the world stays still for those who ask */
@media (prefers-reduced-motion: reduce) {
  .haze, .sigil-lit, .mandala, .flame span { animation: none; }
  .view { transition: opacity 0.4s ease; transform: none; }
  .view.is-active > * { animation: none; }
  .hub-scroll { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   ファンサイト・ハブ — 探究者の入口 (home hub over the garden)
   ═══════════════════════════════════════════════════════ */

/* the home view is now a scrolling hub, not a single centered screen */
.view-gate {
  display: block;
  min-height: 0;
  align-items: initial;
  justify-content: initial;
  text-align: left;
  padding-bottom: 5rem;
}

/* ── hero ── */
.hub-hero {
  min-height: calc(100dvh - 4rem);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
}
.hub-hero .gate-lines { margin-bottom: 2.2rem; }
.hub-hero .gate-lines p { margin-bottom: 0.15rem; }
.hub-scroll {
  margin-top: 2.4rem;
  font-family: var(--sans);
  font-size: 1rem; color: var(--text-3);
  animation: hub-nudge 2.6s ease-in-out infinite;
}
@keyframes hub-nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 0.9; }
}

/* ── section rhythm ── */
.hub-sec {
  margin-top: 4.8rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline-dim);
}
.hub-eyebrow {
  font-family: var(--sans);
  font-size: 0.64rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.34em;
  margin-bottom: 0.7rem;
}
.hub-h {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 1rem;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.hub-lede p {
  font-size: 0.95rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.hub-lede strong { color: var(--gold-bright); font-weight: 700; }
.hub-note {
  font-family: var(--sans);
  font-size: 0.7rem; color: var(--text-3);
  margin-top: 1.2rem;
}
.hub-note a { color: var(--text-2); text-decoration: none; }
.hub-note a:hover { color: var(--gold-bright); }

/* ── works grid ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.9rem;
}
.work-card {
  display: grid; gap: 0.35rem; align-content: start;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: calc(var(--r) + 2px);
  padding: 1.2rem 1.2rem;
  text-decoration: none;
  color: var(--text-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--quick), background var(--quick),
              transform var(--quick), box-shadow var(--quick);
}
.work-card:hover {
  border-color: rgba(242, 213, 138, 0.55);
  background: rgba(22, 20, 34, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.work-kind {
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.28em;
}
.work-name { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.08em; }
.work-desc { font-family: var(--sans); font-size: 0.75rem; color: var(--text-2); line-height: 1.75; }

/* ── inline 広告 tag (career affiliate, no collision with juyo-cta) ── */
.ad-inline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.54rem; font-weight: 700;
  color: var(--text-3);
  border: 1px solid rgba(237, 231, 218, 0.22);
  border-radius: 4px;
  padding: 0.02rem 0.32rem;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.career-aff { margin-top: 1.6rem; }

/* anchor rendered as a 札 button (hero "探究を読む") */
a.btn-fuda { display: inline-block; text-align: center; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   頑張らせない自己啓発 — modern light home
   Scoped to the home (body:not(.entered) + .view-gate) so the
   dark daily-practice tool is untouched. 和ミニマル: 生成りの紙 /
   墨 / 一点の朱 / 広い余白 / 明朝の見出し.
   ═══════════════════════════════════════════════════════ */

/* the brand site is light; entering the garden turns the world dark */
body:not(.entered) {
  background: #F7F4ED;
  color: #211D19;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
body:not(.entered) .haze { display: none; }

/* ── top bar ── */
.sd-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 5vw, 2.4rem);
  background: rgba(247, 244, 237, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(33, 29, 25, 0.08);
}
body.entered .sd-top { display: none; }
.sd-word {
  font-family: var(--serif);
  font-size: 1.02rem; font-weight: 700;
  letter-spacing: 0.16em;
  color: #211D19; text-decoration: none;
}
.sd-topnav { display: flex; gap: clamp(0.9rem, 3vw, 1.7rem); }
.sd-topnav a {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: #6B6156; text-decoration: none;
  transition: color var(--quick);
}
.sd-topnav a:hover { color: #C0392B; }
@media (max-width: 460px) {
  .sd-topnav a:nth-child(2) { display: none; }
}

/* ── home canvas: full-bleed light, its own rhythm ── */
.view-gate {
  /* the ensō brand mark reads as dark brush + red seal on paper */
  --brush: #232019;
  --shu: #C0392B;
  --paper: #F7F4ED;
  --paper-2: #FFFFFF;
  --sumi: #211D19;
  --sumi-2: #574E44;
  --sumi-3: #8B8175;
  --sd-shu: #C0392B;
  --sd-line: rgba(33, 29, 25, 0.11);
  --sd-line-soft: rgba(33, 29, 25, 0.06);

  max-width: none;
  margin: 0;
  padding: 0 0 4rem;
  background: var(--paper);
  color: var(--sumi);
  transform: none;
  min-height: 100vh;
}
.view-gate .hub { max-width: 720px; margin: 0 auto; padding: 0 clamp(1.3rem, 5vw, 2rem); }

/* ── hero ── */
.sd-hero {
  min-height: min(92vh, 780px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6.5rem 0 3.5rem;
}
.sd-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--sd-shu);
  margin-bottom: 1.8rem;
}
.sd-mark {
  width: min(30vw, 118px); height: auto;
  display: block; margin: 0 auto 1.9rem;
  transition: filter 1.2s ease;
}
.sd-mark.sigil-lit { filter: drop-shadow(0 3px 10px rgba(33, 29, 25, 0.14)); }
.sd-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 8.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: var(--sumi);
  margin-bottom: 1.6rem;
}
.sd-lede {
  max-width: 34rem; margin: 0 auto 2.2rem;
}
.sd-lede p {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  color: var(--sumi-2);
  line-height: 2;
  margin-bottom: 0.6rem;
}
.sd-lede em {
  font-style: normal;
  color: var(--sumi);
  font-weight: 700;
  box-shadow: inset 0 -0.5em 0 rgba(192, 57, 43, 0.12);
}

/* ── buttons ── */
.sd-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.sd-btn {
  font-family: var(--sans);
  font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sumi);
  background: var(--paper-2);
  border: 1px solid var(--sd-line);
  border-radius: 9px;
  padding: 0.92rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block; text-align: center;
  transition: border-color var(--quick), transform var(--quick),
              box-shadow var(--quick), background var(--quick), color var(--quick);
}
.sd-btn:hover {
  border-color: rgba(33, 29, 25, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(33, 29, 25, 0.08);
}
.sd-btn--primary {
  color: #FBF7EF;
  background: var(--sd-shu);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.22);
}
.sd-btn--primary:hover {
  background: #A9301F;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(192, 57, 43, 0.32);
}

.sd-hero-foot {
  margin-top: 2.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.sd-chime {
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--sumi-3);
  background: none; border: none; cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--quick), border-color var(--quick);
}
.sd-chime:hover { color: var(--sd-shu); border-color: rgba(192, 57, 43, 0.4); }
.sd-date {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--sumi-3);
}

/* ── section rhythm ── */
.sd-sec {
  padding-top: 3.4rem;
  margin-top: 3.4rem;
  border-top: 1px solid var(--sd-line-soft);
}
.sd-sec-eye {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--sd-shu);
  margin-bottom: 0.9rem;
}
.sd-h {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--sumi);
  margin-bottom: 1.1rem;
}
.sd-sub {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--sumi-2);
  line-height: 1.95;
  margin-bottom: 1.6rem;
  max-width: 40rem;
}
.sd-body p {
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--sumi-2);
  line-height: 2.05;
  margin-bottom: 1.15rem;
}
.sd-body em {
  font-style: normal; font-weight: 700; color: var(--sumi);
}
.sd-textlink {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sd-shu); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--quick), opacity var(--quick);
}
.sd-textlink:hover { border-color: rgba(192, 57, 43, 0.5); opacity: 0.85; }

/* ── work cards ── */
.sd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.9rem;
}
.sd-card {
  display: grid; gap: 0.4rem; align-content: start;
  background: var(--paper-2);
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: var(--sumi);
  transition: border-color var(--quick), transform var(--quick), box-shadow var(--quick);
}
.sd-card:hover {
  border-color: rgba(33, 29, 25, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(33, 29, 25, 0.09);
}
.sd-card-kind {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--sd-shu);
}
.sd-card-name {
  font-family: var(--serif);
  font-size: 1.06rem; font-weight: 700; letter-spacing: 0.06em;
}
.sd-card-desc {
  font-family: var(--sans);
  font-size: 0.8rem; color: var(--sumi-2); line-height: 1.85;
}

/* ── feature band: 間の庭 ── */
.sd-feature { border-top: none; }
.sd-feature-inner {
  background: linear-gradient(165deg, #FFFFFF, #F1ECE1);
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.4rem, 5vw, 2.4rem);
  text-align: center;
}
.sd-feature-inner .sd-sec-eye,
.sd-feature-inner .sd-h { margin-left: auto; margin-right: auto; }
.sd-feature-inner .sd-sub { margin: 0 auto 1.6rem; }
.sd-feature-inner .sd-h {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: 0.18em;
}
.sd-fine {
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--sumi-3);
  margin-top: 1.2rem;
}
.sd-fine a { color: var(--sumi-2); text-decoration: none; border-bottom: 1px dotted var(--sd-line); }
.sd-fine a:hover { color: var(--sd-shu); }

/* ── offer cards (juyo-item) — light re-skin, scoped to home ── */
.sd-offers { display: grid; gap: 0.9rem; }
.view-gate .juyo-item {
  background: var(--paper-2);
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  color: var(--sumi);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-bottom: 0;
}
.view-gate .juyo-item::before { display: none; }
.view-gate a.juyo-item:hover {
  border-color: rgba(33, 29, 25, 0.24);
  background: var(--paper-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(33, 29, 25, 0.09);
}
.view-gate .juyo-kind {
  color: var(--sumi-3); letter-spacing: 0.16em; font-size: 0.66rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.view-gate .juyo-name { color: var(--sumi); }
.view-gate .juyo-desc { color: var(--sumi-2); }
.view-gate .juyo-price {
  -webkit-text-fill-color: currentColor;
  background: none;
  color: var(--sd-shu);
  font-weight: 700; letter-spacing: 0.12em;
}
.view-gate .juyo-cta {
  color: var(--sd-shu);
  border: 1px solid rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
}
.view-gate .juyo-item.is-preparing .juyo-cta {
  color: var(--sumi-3);
  border-color: var(--sd-line);
  background: none;
}
.view-gate .juyo-item.is-featured {
  border-color: rgba(192, 57, 43, 0.3);
  background: linear-gradient(160deg, rgba(192, 57, 43, 0.05), var(--paper-2) 55%);
  box-shadow: none;
}
.view-gate .juyo-item.is-featured::before { display: none; }
.view-gate .ad-inline {
  color: var(--sumi-3);
  border-color: var(--sd-line);
  margin-left: 0;
}
.view-gate .juyo-flow { color: var(--sumi-3); }

/* ── footer, light variant ── */
body:not(.entered) .world-footer {
  border-top-color: var(--sd-line-soft, rgba(33, 29, 25, 0.06));
  color: #8B8175;
}
body:not(.entered) .world-footer a { color: #574E44; }
body:not(.entered) .world-footer a:hover { color: #C0392B; }

@media (min-width: 760px) {
  .sd-cards { gap: 1rem; }
  .sd-sec .sd-offers { grid-template-columns: repeat(2, 1fr); }
  .sd-sec#support .sd-offers,
  .sd-sec#shop .sd-offers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-btn:hover, .sd-card:hover, .view-gate a.juyo-item:hover { transform: none; }
}

/* ── "ホーム" — return from the garden tool to the hub ── */
.places-home { color: var(--text-2); }
.places-home::after {
  content: '';
  display: inline-block;
  width: 1px; height: 0.9em;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: var(--hairline);
}
