@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Noto+Serif+JP:wght@300;400;500&display=swap');

:root {
  --bg:        #09090f;
  --surface:   #111120;
  --surface2:  #1a1a2e;
  --border:    #2a2a42;
  --gold:      #c8a45a;
  --gold-dim:  #8a6e3a;
  --purple:    #7b3fa0;
  --text:      #e2ddd6;
  --text-muted:#7a7880;
  --fire:      #e05a2b;
  --water:     #3a9fd6;
  --dark:      #9b5de5;
  --mind:      #2ec4b6;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid rgba(200,164,90,0.15);
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(12px);
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo-sigil {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.site-logo:hover .site-logo-sigil { opacity: 1; }

.site-nav { display: flex; gap: 2.5rem; list-style: none; }

.site-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.site-nav a:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(123,63,160,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,164,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.hero-og-img {
  width: min(460px, 88vw);
  display: block;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 40px rgba(200,164,90,0.25));
  animation: hero-img-in 1.2s ease both;
}

@keyframes hero-img-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-no {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 0.15em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  margin-bottom: 3.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── SECTION SHARED ── */
section { padding: 6rem 2rem; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.6em;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 0.9rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3.5rem;
  opacity: 0.5;
}

/* ── CONCEPT ── */
.concept {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.concept-item {
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.concept-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--gold);
}

.concept-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.concept-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── FORTUNE TELLING ── */
#uranai { max-width: 900px; margin: 0 auto; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.month-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.month-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.month-btn:hover,
.month-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}
.month-btn:hover::after,
.month-btn.active::after {
  transform: scaleX(1);
}

/* ── RESULT AREA ── */
#result {
  min-height: 100px;
  transition: opacity 0.4s;
}

#result.loading { opacity: 0.3; }

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.result-month-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
}

.result-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tenma-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── TENMA CARD ── */
.tenma-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
  animation: card-in 0.5s ease both;
}

.tenma-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tenma-card:nth-child(2) { animation-delay: 0.05s; }
.tenma-card:nth-child(3) { animation-delay: 0.10s; }
.tenma-card:nth-child(4) { animation-delay: 0.15s; }
.tenma-card:nth-child(5) { animation-delay: 0.20s; }
.tenma-card:nth-child(6) { animation-delay: 0.25s; }
.tenma-card:nth-child(7) { animation-delay: 0.30s; }
.tenma-card:nth-child(8) { animation-delay: 0.35s; }

.card-sigil {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card-sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) sepia(1) saturate(0.5) hue-rotate(10deg) brightness(0.8);
}

.card-sigil-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold-dim);
  background: var(--surface2);
}

.card-no {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 0.3rem;
}

.card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.15rem;
}

.card-name-en {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  letter-spacing: 0.1em;
}

.tag-rank {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-attr {
  font-weight: 500;
}

.card-lv {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1rem;
}

.lv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.lv-dot.active { background: var(--gold); }

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.skill-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(200,164,90,0.25);
  color: var(--gold-dim);
}

.card-overview {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.card-vs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.vs-item {
  text-align: center;
}

.vs-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.1rem;
}

.vs-val {
  font-size: 1rem;
}

.card-shop-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.card-shop-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── SHOP SECTION ── */
#shop {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.shop-item {
  border: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.shop-item-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.shop-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.shop-cta-wrap { text-align: center; }

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.25s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── CATALOG PREVIEW ── */
#catalog-preview {
  max-width: 960px;
  margin: 0 auto;
}

.catalog-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.catalog-chip {
  border: 1px solid var(--border);
  padding: 0.6rem 0.4rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.catalog-chip:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.catalog-chip:hover .catalog-chip-sigil {
  filter: invert(1) sepia(1) saturate(1.5) hue-rotate(10deg) brightness(0.85);
}

.catalog-chip-sigil {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: invert(1) sepia(0.3) brightness(0.7);
  transition: filter 0.2s;
  display: block;
}

.catalog-chip-sigil--empty {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--border);
  border: 1px dashed var(--border);
}

.catalog-chip-no {
  font-family: 'Cinzel', serif;
  font-size: 0.45rem;
  color: var(--gold-dim);
  display: block;
  letter-spacing: 0.1em;
}

.catalog-chip-name {
  display: block;
  font-size: 0.65rem;
  line-height: 1.3;
}

/* ── DETAIL PANEL ── */
.card-detail-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.card-detail-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.card-detail-btn[aria-expanded="true"] {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.detail-btn-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.card-detail {
  display: none;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 0.8rem;
}
.card-detail.is-open {
  display: flex;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.card-detail p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 0.8rem;
  position: relative;
  line-height: 1.7;
}

.detail-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.65rem;
}

/* ── ABOUT 72 ── */
#about-72 {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
  border-left: none;
  border-right: none;
}

.about-highlight {
  border: 1px solid var(--gold-dim);
  padding: 1.2rem 1.8rem;
  margin: 0 auto 3rem;
  max-width: 640px;
  position: relative;
}
.about-hl-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.about-highlight p { font-size: 0.9rem; color: var(--text); line-height: 1.8; margin: 0; }

.about-h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.about-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.about-table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.about-table th {
  background: var(--surface2);
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 0.6rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}
.about-table td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.7;
}
.about-table td strong { color: var(--gold); font-weight: 500; }

/* Rank grid */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.rank-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--rc, var(--gold));
  padding: 1.2rem;
  background: var(--bg);
}
.rank-en {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--rc, var(--gold-dim));
  display: block;
  margin-bottom: 0.3rem;
}
.rank-ja {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 0.6rem;
}
.rank-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Glossary */
.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.glossary-item {
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  background: var(--bg);
}
.glossary-item dt {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.glossary-item dd { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Purpose grid */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.purpose-block { border: 1px solid var(--border); background: var(--bg); overflow: hidden; }
.purpose-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.purpose-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.purpose-table th {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.purpose-table td {
  padding: 0.4rem 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.purpose-table td:first-child { color: var(--text); font-weight: 500; }

/* Worldview */
.worldview-box {
  border: 1px solid var(--gold-dim);
  padding: 2rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(200,164,90,0.05) 0%, transparent 60%);
}
.worldview-main {
  font-size: 1rem;
  color: var(--gold);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.worldview-points {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.worldview-points span {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--border);
}

/* ── SOLOMON SEAL ── */
#solomon-seal {
  max-width: 800px;
  margin: 0 auto;
}

.seal-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto 3rem;
  max-width: 480px;
}
.seal-node {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.5rem;
  text-align: center;
}
.seal-node--gold { border-color: var(--gold-dim); background: rgba(200,164,90,0.07); }
.seal-node--dark { border-color: #4a2a6a; background: rgba(100,40,120,0.1); }
.seal-node-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}
.seal-node p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.seal-arrow {
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  padding: 0.4rem 0;
  text-align: center;
}

/* T-shirt block */
.seal-shirt-block {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
}
.seal-shirt-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}
.seal-shirt-diagram {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.shirt-face {
  width: 110px;
  border: 1px solid var(--border);
  padding: 1rem 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.shirt-face-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}
.shirt-face-icon { font-size: 1.8rem; color: var(--gold); line-height: 1; }
.shirt-face p { font-size: 0.72rem; color: var(--text); margin: 0; line-height: 1.5; }
.shirt-face small { font-size: 0.62rem; color: var(--text-muted); }
.shirt-back .shirt-face-icon { color: #9b5de5; }

.seal-shirt-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.seal-shirt-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 0.8rem; }
.seal-shirt-text strong { color: var(--text); }

.seal-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.seal-feature-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-left: 2px solid var(--gold-dim);
  line-height: 1.6;
}
.seal-feature-list strong { color: var(--gold); }

.seal-conclusion {
  font-style: italic;
  color: var(--gold) !important;
  font-size: 0.85rem !important;
  margin-top: 1rem !important;
}

@media (max-width: 680px) {
  .seal-shirt-inner { grid-template-columns: 1fr; }
  .seal-shirt-diagram { justify-content: center; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .glossary-list { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }

.footer-links--legal {
  margin-top: 0.5rem;
  gap: 1rem;
  opacity: 0.6;
}
.footer-links--legal a { font-size: 0.65rem; letter-spacing: 0.05em; }

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .site-nav { gap: 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .month-grid { grid-template-columns: repeat(4, 1fr); }
  .tenma-cards { grid-template-columns: 1fr; }
  .catalog-teaser { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
}

@media (max-width: 480px) {
  .site-nav { display: none; }
  .month-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(9,9,15,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  /* hide via visibility so transitions work */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--gold); }

.mobile-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.mobile-nav ul li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.is-open ul li { opacity: 1; transform: none; }
.mobile-nav.is-open ul li:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.is-open ul li:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav.is-open ul li:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.is-open ul li:nth-child(4) { transition-delay: 0.24s; }

.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a.nav-current {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* ── LANG TOGGLE (in header) ── */
.lang-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  line-height: 1;
  position: relative;
  transition: color 0.25s;
}

/* Gold underline on active */
.lang-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.45rem; right: 0.45rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.lang-btn.active        { color: var(--gold); }
.lang-btn.active::after { transform: scaleX(1); }
.lang-btn:hover:not(.active) { color: var(--text); }

/* Vertical separator between JP / EN */
.lang-btn + .lang-btn {
  border-left: 1px solid var(--border);
}

/* Mobile lang toggle */
.mobile-nav .lang-toggle {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s;
}
.mobile-nav.is-open .lang-toggle {
  opacity: 1;
  transform: none;
}
.mobile-nav .lang-btn {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 0.5rem 1.2rem;
  color: var(--text-muted);
}
.mobile-nav .lang-btn + .lang-btn {
  border-left-color: var(--gold-dim);
}

/* ── NAV CURRENT PAGE INDICATOR ── */
.site-nav .nav-current {
  color: var(--gold) !important;
  position: relative;
}
.site-nav .nav-current::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ── URANAI DETAIL CTA ── */
.uranai-detail-cta {
  margin-top: 3rem;
  border: 1px solid var(--gold-dim);
  padding: 2rem 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(200,164,90,0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.uranai-detail-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.uranai-detail-cta::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.uranai-detail-cta__label {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.6em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.uranai-detail-cta__text {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 1.6rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ── TSHIRT PREVIEW ── */
.tshirt-preview {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
  max-width: 760px;
}
.tshirt-item {
  text-align: center;
  flex: 0 1 340px;
}
.tshirt-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tshirt-item:hover .tshirt-img {
  border-color: var(--gold-dim);
  box-shadow: 0 0 24px rgba(200,164,90,0.12);
}
.tshirt-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin: 0;
}

/* ── SHOP NOTE ── */
.shop-note {
  text-align: center;
  margin-bottom: 2rem;
}
.shop-note p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── FOOTER NAV LABEL ── */
.footer-nav-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.6em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .nav-toggle { display: flex; }
  .tshirt-item { flex: 0 1 100%; }
  .uranai-detail-cta { padding: 1.5rem 1.2rem; }
}

/* ── Daily update badge (shared: horoscope page + top page) ── */
.daily-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 4px 12px;
  background: rgba(200,164,90,.06);
}
.daily-badge--block {
  display: flex;
  margin-bottom: 24px;
}
.daily-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: dpulse 2.2s ease-in-out infinite;
}
@keyframes dpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.7); }
}

/* ── Footer SNS links ── */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-social a svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.footer-social a:hover { color: var(--gold); }
