:root {
  --ink: #eef0f8;
  --ink-soft: #bcc3e0;
  --muted: #8890b0;
  --night: #0c0e18;
  --deep: #121630;
  --navy: #1a2050;
  --navy-2: #2a3470;
  --indigo: #4a5aaa;
  --gold: #a8b8f8;
  --amber: #6878d0;
  --crimson: #4a3a80;
  --paper: #e8ecf8;
  --paper-ink: #1a1e30;
  --line: rgba(238, 240, 248, 0.14);
  --line-strong: rgba(168, 184, 248, 0.36);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.40);
  --radius: 8px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background:
    linear-gradient(180deg, rgba(12, 14, 24, 0.96), rgba(18, 22, 48, 0.98) 44%, #0e1020 100%),
    #0c0e18;
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(12, 14, 24, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.site-nav a {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a:hover { color: var(--gold); background: rgba(168, 184, 248, 0.09); }

.site-nav .nav-back { margin-left: auto; opacity: 0.6; font-size: 0.82rem; }
.site-nav .nav-back:hover { opacity: 1; }
.site-nav .nav-utahi {
  color: var(--gold);
  font-weight: 800;
  border: 1px solid rgba(168,184,248,0.25);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(760px, calc(100dvh - 32px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg, .hero-shade { position: absolute; inset: 0; }

.hero-bg {
  background:
    radial-gradient(ellipse 120% 60% at 70% 40%, rgba(74, 90, 170, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 20% 60%, rgba(42, 52, 112, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(168, 184, 248, 0.08) 0%, transparent 40%),
    #0c0e18;
}

/* 渦巻き装飾 */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translate(50%, -50%);
  width: min(500px, 55vw);
  height: min(500px, 55vw);
  border-radius: 50%;
  border: 1px solid rgba(168, 184, 248, 0.12);
  box-shadow:
    0 0 0 20px rgba(168, 184, 248, 0.05),
    0 0 0 50px rgba(168, 184, 248, 0.03),
    0 0 0 90px rgba(168, 184, 248, 0.02),
    0 0 80px 0 rgba(74, 90, 170, 0.2);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 14, 24, 0.92) 0%, rgba(12, 14, 24, 0.65) 38%, rgba(12, 14, 24, 0.2) 70%, rgba(12, 14, 24, 0.38) 100%),
    linear-gradient(180deg, rgba(12, 14, 24, 0.22), rgba(12, 14, 24, 0.08) 56%, rgba(12, 14, 24, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 112px);
  padding: 110px 0 170px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(3.6rem, 12vw, 8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  background: linear-gradient(135deg, #eef0f8 0%, #a8b8f8 50%, #6878d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  width: min(610px, 100%);
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.13rem);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button-primary { background: var(--gold); color: #0e1028; }
.button-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(12, 14, 24, 0.32); }
.button-muted { width: fit-content; border-color: rgba(238, 240, 248, 0.24); color: var(--ink); background: rgba(238, 240, 248, 0.08); }

.hero-stats {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 70px);
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 1px;
  width: min(420px, calc(100% - 36px));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 14, 24, 0.68);
  backdrop-filter: blur(12px);
}

.hero-stats div { min-height: 92px; padding: 16px; background: rgba(238, 240, 248, 0.05); }
.hero-stats dt { color: var(--gold); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.hero-stats dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.86rem; }

/* ── Sections ── */
.section { padding: clamp(66px, 9vw, 112px) clamp(18px, 4vw, 56px); }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading h2 + p,
.section-heading p:last-child { margin: 18px 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.section-heading.compact { width: min(760px, 100%); margin-bottom: 28px; }

.about-section, .commentary-section, .glossary-section {
  background: linear-gradient(180deg, rgba(42, 52, 112, 0.18), rgba(12, 14, 24, 0)), #101428;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-panel, .person-card, .song-card, .volume-card, .passage-card, .glossary-card, .workflow-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 240, 248, 0.05);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.info-panel { min-height: 150px; padding: 20px; }

.info-panel h3, .person-card h3, .glossary-card h3, .workflow-item h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.info-panel p, .person-card p, .glossary-card p, .workflow-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* ── Archive ── */
.archive-section {
  background: linear-gradient(180deg, rgba(74, 58, 128, 0.1), rgba(12, 14, 24, 0) 32%), #0c0e18;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(200px, 420px);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 240, 248, 0.06);
  color: var(--ink-soft);
}

.search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: rgba(188, 195, 224, 0.55); }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }

.segment {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: rgba(238, 240, 248, 0.04);
}

.segment.active { color: #0e1028; border-color: var(--gold); background: var(--gold); }

/* ── Archive Layout ── */
.archive-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.volume-list-wrap {
  position: sticky;
  top: 86px;
  max-height: calc(100dvh - 108px);
  overflow: auto;
  padding-right: 4px;
}

.volume-list { display: grid; gap: 8px; }

.volume-card {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 12px 14px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  background: none;
}

.volume-card:hover, .volume-card.active { border-color: var(--line-strong); background: rgba(168, 184, 248, 0.10); }
.volume-card strong { color: var(--ink); font-size: 1rem; }

.volume-card-top, .volume-card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.volume-card-top span, .volume-card-bottom span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(238, 240, 248, 0.13);
  border-radius: 999px;
}

/* ── Passage Panel ── */
.passage-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 22, 0.46);
  box-shadow: var(--shadow);
}

.selected-volume { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }

.selected-volume h3 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.selected-volume p:not(.eyebrow) { margin: 12px 0 0; color: var(--ink-soft); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(168, 184, 248, 0.28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  background: rgba(168, 184, 248, 0.08);
}

.passage-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.count-label { color: var(--ink-soft); font-size: 0.9rem; }

.text-link, .passage-links a { color: var(--gold); font-weight: 700; text-decoration: none; }
.text-link:hover, .passage-links a:hover { text-decoration: underline; }

.passage-list { display: grid; gap: 12px; padding: 18px; }

/* ── Song Card ── */
.song-card { padding: 20px; scroll-margin-top: 92px; }
.song-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 184, 248, 0.13); }

.song-card-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.song-label { color: var(--gold); font-size: 0.8rem; font-weight: 700; }

.song-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  background: rgba(168, 184, 248, 0.07);
}

.utahi-text {
  margin: 0 0 10px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.05em;
  border-left: 3px solid rgba(168, 184, 248, 0.4);
  padding-left: 14px;
}

.translation-text {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
}

.interpretation-text {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* accordion */
.accordion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(168, 184, 248, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}

.accordion-toggle:hover { background: rgba(168, 184, 248, 0.12); }
.accordion-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.toggle-icon { transition: transform 0.2s; }

.accordion-body { overflow: hidden; }
.accordion-body[hidden] { display: none; }

/* ── Person Section ── */
.person-section {
  background: linear-gradient(180deg, rgba(74, 90, 170, 0.1), rgba(12, 14, 24, 0) 40%), #121630;
}

.person-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }

.person-card { padding: 28px; }

.person-card-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.person-icon {
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
  background: rgba(168, 184, 248, 0.08);
}

.person-card h3 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.5rem; font-weight: 500; }
.person-kana { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; }
.person-title { display: block; margin-top: 6px; color: var(--gold); font-size: 0.86rem; font-weight: 700; }

.person-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.person-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(238, 240, 248, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
}

.person-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 0.86rem;
  background: rgba(168, 184, 248, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Glossary ── */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.glossary-card { padding: 18px; }
.glossary-card h3 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.2rem; }
.glossary-reading { display: block; margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

/* ── Workflow ── */
.workflow-section { background: #0c0e18; }
.workflow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.workflow-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.workflow-item > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.2rem;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #090b14;
  color: var(--ink-soft);
}

.site-footer p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Phonetics Section ── */
.phonetics-section { background: linear-gradient(180deg, var(--night) 0%, #0d1028 100%); }

.phonetics-awa-panel {
  margin-bottom: 36px;
  padding: 28px 32px;
  background: rgba(168, 184, 248, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) * 2);
}
.awa-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.awa-title { margin: 0 0 10px; font-size: 1.25rem; color: var(--ink); }
.awa-body { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.8; }
.awa-sounds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.awa-sounds span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(168, 184, 248, 0.07);
}

.phonetics-structure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.structure-card {
  padding: 20px 18px;
  background: rgba(168, 184, 248, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.structure-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Yu Mincho", serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: rgba(255, 160, 90, 0.18);
  color: #ffa06a;
  border: 1px solid rgba(255, 160, 90, 0.3);
}
.structure-icon.yin {
  background: rgba(100, 140, 240, 0.18);
  color: #84a8f8;
  border-color: rgba(100, 140, 240, 0.3);
}
.structure-icon.musubi {
  background: rgba(100, 220, 160, 0.18);
  color: #64dca0;
  border-color: rgba(100, 220, 160, 0.3);
}
.structure-card h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--ink); }
.structure-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

.phonetics-toolbar { margin-bottom: 24px; }

.phonetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.phonetics-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  background: rgba(168, 184, 248, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-align: center;
}
.phonetics-card:hover {
  background: rgba(168, 184, 248, 0.10);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.phonetics-card[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(168, 184, 248, 0.12);
}
.phonetics-card .ph-svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  flex-shrink: 0;
}
.phonetics-card.type-yang .ph-svg { color: #ffa06a; }
.phonetics-card.type-yin  .ph-svg { color: #84a8f8; }
.phonetics-card.type-musubi .ph-svg { color: #64dca0; }

.ph-sound {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}
.ph-romaji { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.ph-meaning { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; }

.ph-detail-body {
  width: 100%;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.65;
  text-align: left;
}
.ph-detail-body[hidden] { display: none; }

.phonetics-card[hidden] { display: none; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav { justify-content: flex-start; }
  .hero { min-height: 780px; }
  .hero-content { margin: 0 auto; padding-top: 78px; }
  .hero-stats { right: 18px; left: 18px; width: auto; }
  .two-column, .archive-layout { grid-template-columns: 1fr; }
  .volume-list-wrap { position: relative; top: auto; max-height: none; padding-right: 0; }
  .volume-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding-inline: 14px; }
  .site-header { padding-inline: 14px; }
  .site-nav a { padding-inline: 8px; font-size: 0.82rem; }
  .hero { min-height: 820px; }
  .hero-content { width: calc(100% - 28px); max-width: 360px; margin-right: 14px; margin-left: 14px; padding-bottom: 230px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { min-height: 74px; padding: 11px 10px; }
  .hero-stats dt { font-size: 1.62rem; }
  .hero-stats dd { margin-top: 4px; font-size: 0.76rem; }
  .about-grid, .volume-list, .workflow-list { grid-template-columns: 1fr; }
  .phonetics-structure-row { grid-template-columns: 1fr; }
  .phonetics-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .archive-toolbar, .passage-tools, .song-card-head { align-items: stretch; flex-direction: column; }
  .search-field { grid-template-columns: 1fr; width: 100%; }
  .segmented { width: 100%; }
  .segment { flex: 1 1 120px; }
  .selected-volume, .passage-tools { padding-inline: 16px; }
  .passage-list { padding: 12px; }
  .workflow-item { grid-template-columns: 1fr; }
  .person-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: 1fr; }
}

/* ── カタカムナグッズ ────────────────────────────────── */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.goods-card {
  display: flex;
  flex-direction: column;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.goods-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.goods-thumb {
  aspect-ratio: 4 / 3;
  background: var(--night);
  overflow: hidden;
}
.goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.goods-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.goods-song {
  align-self: flex-start;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
}
.goods-body h3 {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}
.goods-lead {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}
.goods-desc {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 0;
}
.goods-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.goods-material {
  color: var(--muted);
  font-size: 0.78rem;
}
.goods-price {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.goods-buy {
  margin-top: 12px;
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--gold);
  color: var(--night);
  transition: opacity 0.2s;
}
.goods-buy:hover { opacity: 0.85; }
.goods-buy-soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  cursor: default;
}
.goods-generator {
  margin-top: 10px;
  display: inline-block;
  text-align: center;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(168, 184, 248, 0.10);
  color: var(--gold);
  border: 1px solid var(--line-strong);
  transition: background 0.2s;
}
.goods-generator:hover { background: rgba(168, 184, 248, 0.18); }
