﻿:root {
  color-scheme: light;
  --ink: #25211d;
  --muted: #6d665a;
  --line: #ded3bf;
  --paper: #f7f1e5;
  --panel: #ffffff;
  --soft: #f2eadc;
  --accent: #b33a2d;
  --accent-2: #1e6159;
  --accent-3: #b28b39;
  --warn: #8a5b00;
  --blocked: #8e2f2f;
  --shadow: 0 16px 40px rgba(31, 37, 35, 0.10);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(179, 58, 45, 0.09), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(30, 97, 89, 0.09), transparent 30%),
    linear-gradient(180deg, #fbf6eb 0%, var(--paper) 46%, #f3ead9 100%);
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
}
a { color: inherit; overflow-wrap: anywhere; }
button, input, select { font: inherit; }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 34px);
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 10px;
  background: rgba(255, 252, 245, 0.92);
  box-shadow: 0 8px 24px rgba(52, 43, 32, 0.08);
  width: min(1480px, calc(100% - 16px));
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 240px; }
.brand span:last-child { overflow-wrap: anywhere; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--accent); border-radius: 8px; color: var(--accent); background: #fff7ec; font-weight: 900; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
.brand strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-modern,
.initial-modern-only { display: none; }
html.initial-modern .brand-classic,
html.initial-modern .classic-nav { display: none; }
html.initial-modern .brand-modern,
html.initial-modern .initial-modern-only { display: inline; }
html.initial-modern .brand-mark {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: #eef8f5;
}
.header-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 16px; max-width: 100%; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; }
.top-nav a { padding: 8px 10px; text-decoration: none; color: var(--muted); border: 1px solid transparent; border-radius: 999px; white-space: normal; }
.top-nav a:hover { color: var(--ink); border-color: rgba(179, 58, 45, 0.22); background: #fff4e5; }
.top-nav a.nav-secondary { color: #8a8173; font-size: 13px; }
.top-nav a.nav-switch {
  color: #fff;
  background: var(--accent-2);
  border-color: var(--accent-2);
  font-weight: 900;
}
.top-nav a.nav-switch:hover {
  color: #fff;
  background: #164b45;
  border-color: #164b45;
}
.language-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.language-control select { width: auto; min-width: 112px; min-height: 36px; padding: 6px 28px 6px 9px; }
.language-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff8e6;
  color: #4d3a10;
  font-size: 13px;
}
.language-hint[hidden] { display: none; }
.language-hint strong { color: #332407; }
.hero, .section { padding: clamp(24px, 4vw, 48px) clamp(16px, 5vw, 64px); }
.search-page { padding-top: clamp(18px, 2.4vw, 28px); }
.classic-search-controls {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
}
.classic-search-controls input {
  grid-column: span 2;
  min-width: min(100%, 260px);
}
.classic-search-controls select {
  min-width: 0;
  padding-right: 34px;
  white-space: nowrap;
}
.hero > *, .section > * { max-width: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 52vh;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(130deg, #fbfaf6 0%, #f2eee4 48%, #e6f0ec 100%);
}
.eyebrow { margin: 0 0 10px; color: var(--accent-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: 12px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
h1, h2, h3, p, li, summary, td, th { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif; }
h1 { max-width: 920px; margin: 0; font-size: clamp(44px, 7vw, 86px); }
h1[lang="ja"], h2[lang="ja"], h3[lang="ja"] { line-height: 1.18; word-break: keep-all; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); }
h3 { margin: 0 0 10px; font-size: 20px; }
p { margin: 0 0 14px; }
.hero p:not(.eyebrow) { max-width: 760px; font-size: 18px; color: #46504b; }
.hero-actions, .button-row, .mode-row, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.source-action-row { margin-top: 12px; }
.hosted-text-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.72);
}
.hosted-text-panel h3 { margin-top: 0; }
.hosted-text-body {
  flex: 1 1 100%;
  max-height: 62vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  line-height: 1.9;
}
.hosted-text-chapter + .hosted-text-chapter { margin-top: 28px; }
.hosted-text-chapter p { white-space: normal; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 800;
}
.button.primary, button.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(179, 58, 45, 0.18); }
.button.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.ghost { background: transparent; border-color: rgba(37, 33, 29, 0.28); color: var(--ink); }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.button.is-disabled { opacity: 0.58; cursor: not-allowed; pointer-events: none; }
.hero-panel, .policy-panel, .reading-options, .detail-panel, .source-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.hero-panel { padding: 18px; }
.hero-panel div + div { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-picks { display: grid; gap: 10px; }
.hero-picks .eyebrow { margin-bottom: 2px; }
.pick-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.pick-row strong { font-size: 18px; }
.pick-row span { color: var(--muted); font-size: 14px; }
.stat { display: block; font-weight: 800; }
.section-heading { max-width: 920px; margin-bottom: 24px; }
.section-heading p { color: var(--muted); font-size: 17px; }
.compact-heading { margin-bottom: 12px; }
.compact-heading p { font-size: 14px; }
.shelf-heading { max-width: none; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.sort-control { display: grid; gap: 6px; color: var(--muted); font-size: 13px; min-width: 190px; }
.alt { background: #eef3ed; border-block: 1px solid var(--line); }
.grid, .book-grid, .ranking-grid, .source-grid, .doorway-grid, .feature-grid { display: grid; gap: 16px; }
.doorway-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin: 18px 0 28px; }
.book-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: stretch; }
.ranking-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.source-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card, .book-card, .ranking-card, .source-card, .detail-card, .feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}
.dense-card { gap: 9px; padding: 16px; }
.book-card, .ranking-card, .source-card, .feature-card { display: flex; flex-direction: column; gap: 12px; min-height: 100%; height: auto; }
.book-grid .book-card {
  gap: 10px;
  padding-bottom: 14px;
  min-height: 100%;
}
.book-grid .book-card > div:first-child {
  flex: 1;
}
.book-grid .book-card p:last-child {
  margin-bottom: 0;
}
.book-card:hover, .ranking-card:hover, .source-card:hover, .feature-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); transition: 140ms ease; }
.lead { max-width: 780px; color: #46504b; font-size: 18px; line-height: 1.8; }
.structure-page {
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
  padding-inline: 0;
}
.structure-page h1 {
  max-width: 920px;
  font-size: clamp(34px, 5.2vw, 64px);
}
.structure-page .lead {
  max-width: 900px;
}
.structure-page .source-box {
  margin: 18px 0;
  background: #fff;
}
.structure-page .section-heading {
  max-width: 900px;
  margin-bottom: 14px;
}
.structure-page .section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}
.structure-page .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.structure-page .feature-card {
  box-shadow: none;
}
.structure-page .feature-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.structure-page .feature-card p {
  margin: 0;
  color: #46504b;
}
.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 820px;
}
.arch-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
}
.arch-label {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 8px;
  background: #233d38;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.arch-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.arch-card strong {
  font-size: 18px;
  line-height: 1.35;
}
.arch-card span {
  color: #46504b;
  line-height: 1.5;
}
.arch-line {
  grid-column: 2;
  width: 2px;
  height: 20px;
  margin: 4px 0 4px 24px;
  background: #9fbdb3;
}
.structure-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.structure-split ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #3c4943;
}
.mini-list { display: grid; gap: 0; margin-top: auto; }
.mini-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mini-list span { color: var(--ink); min-width: 0; }
.mini-list small { color: var(--muted); white-space: nowrap; }
.classic-list { display: grid; gap: 10px; }
.classic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.24fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.classic-row h3 { margin-bottom: 4px; }
.classic-row h3 a { color: inherit; text-decoration: none; }
.classic-row p { margin-bottom: 8px; }
.classic-row aside { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.compact-row { grid-template-columns: minmax(0, 1fr) minmax(120px, 0.18fr); padding: 12px; }
.cover { min-height: 118px; border: 1px solid var(--line); display: grid; place-items: center; padding: 14px; background: #f4efe6; color: #30362f; writing-mode: vertical-rl; font-weight: 800; border-radius: 6px; }
.meta { color: var(--muted); font-size: 13px; }
.source-context { color: #47564f; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.tags, .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.source-scope { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px; }
.search-results-block + .search-results-block { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.tag, .badge { display: inline-flex; align-items: center; min-height: 26px; max-width: 100%; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: #33403b; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.badge.warn { background: #fff4d6; color: var(--warn); }
.badge.blocked { background: #f8dddd; color: var(--blocked); }
.badge.ok { background: #dff1e8; color: #235b47; }
.coverage-note { padding: 10px 12px; border-radius: 6px; background: #f7f4ea; color: #4f4630; font-size: 13px; line-height: 1.55; }
.coverage-notice { border-left-color: var(--warn); background: #fffaf0; }
.basis-block {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  width: min(1480px, calc(100% - 32px));
  margin: 18px auto;
  padding: 16px 18px;
  border-left: 4px solid var(--accent-2);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 26px rgba(45, 36, 25, 0.06);
}
.basis-block h2 { font-size: 22px; margin: 0; }
.basis-block ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
  color: #3c4943;
}
.modern-rights-line {
  display: inline-block;
  margin: 2px 0 8px;
  color: #5f5141;
  font-size: 12px;
  font-weight: 700;
}
.source-card.is-guide-only { border-style: dashed; background: linear-gradient(180deg, #fff, #fffaf0); }
.source-card.is-guide-only .button.primary { background: #fff; color: var(--ink); }
.source-card.is-covered { border-color: #bfd8cc; }
.coverage-empty { border-style: dashed; }
.source-evidence { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.source-evidence strong { display: block; margin-bottom: 6px; }
.not-found-prefix { display: block; color: var(--muted); font-size: 14px; line-height: 1.2; margin-bottom: 6px; }
.controls { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.5fr)); gap: 10px; margin: 18px 0 24px; }
input, select { width: 100%; min-height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 9px 10px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 22px; }
.pagination { max-width: 100%; }
.pagination button { min-width: 42px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.pagination button.active { background: var(--ink); color: #fff; }
.pagination button[disabled] { opacity: 0.45; cursor: default; }
.pagination span { color: var(--muted); padding: 0 4px; }
.reading-options { padding: 18px; margin: 18px 0; box-shadow: none; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.option-item { padding: 10px; background: var(--soft); border-radius: 6px; }
.option-item strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.reading-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.reading-link-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.reading-link-card:hover { border-color: var(--accent); }
.reading-link-card strong { font-size: 18px; line-height: 1.25; }
.reading-link-card span { line-height: 1.45; }
.reading-link-card small { color: var(--muted); }
.language-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f1ec;
  color: #17695e;
  font-size: 12px;
  font-weight: 700;
}
.reading-facts { margin-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tab { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; }
.tab[aria-selected="true"], .tab[aria-current="true"] { background: var(--ink); color: #fff; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail-panel, .source-box { padding: 16px; box-shadow: none; }
.reading-options h2, .detail-card h2 { font-size: clamp(24px, 3vw, 36px); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); }

.app-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: stretch;
  min-height: clamp(520px, 70vh, 720px);
  margin: 10px auto 0;
  width: min(1480px, calc(100% - 16px));
  border: 1px solid rgba(132, 99, 59, 0.26);
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(249,241,226,0.92) 48%, rgba(229,239,233,0.94)),
    repeating-linear-gradient(90deg, rgba(132, 99, 59, 0.025) 0 1px, transparent 1px 8px);
  box-shadow: 0 22px 54px rgba(52, 43, 32, 0.10);
}
.app-hero .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 6.5vw, 82px);
}
.search-first-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
  min-height: clamp(420px, 56vh, 560px);
}
.search-hero-copy h1 {
  font-size: clamp(44px, 5vw, 68px);
}
.search-hero-copy > p:not(.eyebrow):not(.meta) {
  max-width: 640px;
  color: #3f4b45;
  font-size: clamp(17px, 1.8vw, 21px);
}
.app-hero .hero-actions {
  margin-top: 12px;
}
.legacy-home-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.today-card {
  align-self: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 18px 34px rgba(52, 43, 32, 0.10);
}
.today-card-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.book-cover {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 14px 10px;
  border: 1px solid rgba(92, 69, 43, 0.38);
  border-radius: 5px;
  background:
    linear-gradient(180deg, #8f2f28, #b53e31 52%, #6e2725);
  color: #fff9ed;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.10), 0 12px 18px rgba(52, 43, 32, 0.14);
  writing-mode: vertical-rl;
  text-align: center;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 900;
  line-height: 1.2;
}
.small-cover {
  width: 74px;
  min-height: 104px;
  font-size: 13px;
}
.quick-paths {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(1480px, calc(100% - 16px));
  margin: 10px auto 0;
  padding: 0;
}
.quick-path {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  text-decoration: none;
}
.quick-path:hover {
  border-color: rgba(179, 58, 45, 0.42);
  box-shadow: 0 10px 22px rgba(52, 43, 32, 0.08);
  transform: translateY(-1px);
}
.quick-path strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
}
.quick-path span {
  color: var(--muted);
  font-size: 13px;
}
.home-anchor-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid rgba(132, 99, 59, 0.22);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(10px);
}
.home-anchor-nav a {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 999px;
  background: #fffdf8;
  color: #5d4a2b;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.home-anchor-nav a:hover {
  border-color: rgba(179, 58, 45, 0.42);
  color: var(--accent);
}
.doorway-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.doorway-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fbf3e6);
  box-shadow: 0 12px 28px rgba(52, 43, 32, 0.07);
}
.doorway-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.doorway-main strong {
  display: block;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  line-height: 1.18;
}
.doorway-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.doorway-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #25211d;
  color: #fff8e8;
  font-size: 22px;
}
.doorway-sample {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  background: #fff8ed;
  color: inherit;
  text-decoration: none;
}
.doorway-sample span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.notice-section {
  padding-block: 18px;
}
.notice-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(132, 99, 59, 0.26);
  border-radius: 8px;
  background: #fff7e8;
}
.notice-board span {
  flex: 1 1 360px;
  color: var(--muted);
}
.home-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.home-list-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(52, 43, 32, 0.06);
}
.home-list-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}
.home-list-card .cover {
  margin-top: 20px;
}
.world-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.world-preview-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(132, 99, 59, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #f8f1e4);
  text-decoration: none;
}
.world-preview-card:hover {
  border-color: rgba(179, 58, 45, 0.42);
  box-shadow: 0 14px 28px rgba(52, 43, 32, 0.08);
  transform: translateY(-1px);
}
.world-preview-card strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
}
.world-preview-card small {
  color: var(--muted);
}
.world-preview-card em {
  margin-top: auto;
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}
.source-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  overflow: hidden;
}
.source-strip div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-right: 1px solid rgba(132, 99, 59, 0.18);
}
.source-strip div:last-child { border-right: 0; }
.source-strip strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(37, 33, 29, 0.28);
  border-radius: 999px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.source-strip span {
  color: var(--muted);
  font-weight: 800;
}
.work-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}
.work-preview-main,
.work-preview-side {
  padding: 18px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
}
.work-preview-main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
}
.spoiler-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.spoiler-demo span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 6px;
  background: #fff7eb;
  color: #5d4a2b;
  font-weight: 800;
  text-align: center;
}
.textbook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.country-memory-tabs {
  margin-bottom: 20px;
}
.country-memory-tabs .textbook-tab {
  gap: 8px;
  padding-right: 13px;
}
.school-country-section {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(132, 99, 59, 0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
}
.school-country-section + .school-country-section {
  margin-top: 18px;
}
.compact-heading {
  margin-bottom: 14px;
}
.compact-heading h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.textbook-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 999px;
  background: #fffaf0;
  color: #5d4a2b;
  font-weight: 800;
}
.textbook-memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}
.textbook-card {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: #fffdf8;
}
.textbook-card.tone-1 { background: #f8f2e5; }
.textbook-card.tone-2 { background: #f1f6f1; }
.textbook-card.tone-3 { background: #f7eeee; }
.textbook-work {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid rgba(132, 99, 59, 0.18);
  text-decoration: none;
}
.textbook-work span {
  font-weight: 800;
}
.textbook-work small {
  color: var(--muted);
}
.textbook-work.is-static {
  color: var(--ink);
}
.school-memory-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.work-result-card {
  grid-template-columns: 82px minmax(0, 1fr) minmax(170px, 0.24fr);
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 22px rgba(52, 43, 32, 0.06);
}
.work-result-card aside {
  display: grid;
  justify-items: stretch;
  align-content: start;
}
.work-result-card aside .badge,
.work-result-card aside .button {
  width: 100%;
}
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(680px, 100%);
  margin: 20px 0 6px;
  padding: 8px;
  border: 1px solid rgba(132, 99, 59, 0.26);
  border-radius: 10px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 24px rgba(52, 43, 32, 0.08);
}
.hero-search input {
  border: 0;
  background: transparent;
  font-size: 17px;
}
.hero-search.main-search {
  width: min(760px, 100%);
  margin-top: 28px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(52, 43, 32, 0.12);
}
.hero-search.main-search input {
  min-height: 54px;
  font-size: 20px;
}
.hero-search.main-search .button {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 17px;
}
.search-home-page {
  width: min(1480px, calc(100% - 16px));
  margin-inline: auto;
  padding-top: 18px;
}
.search-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}
.search-home-grid #results {
  grid-column: 1 / -1;
}
.search-home-grid .today-card {
  align-self: start;
  position: sticky;
  top: 86px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(52, 43, 32, 0.08);
}
.search-home-grid .today-card-body {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}
.search-home-grid .today-card h2 {
  font-size: clamp(24px, 2.2vw, 34px);
}
.search-home-grid .book-cover {
  min-height: 118px;
  font-size: 13px;
}
.daily-pick-title {
  margin: 2px 0 4px;
  font-weight: 900;
  line-height: 1.3;
}
.daily-pick-title a {
  color: inherit;
  text-decoration: none;
}
.today-card .book-cover[href] {
  color: #fff;
  text-decoration: none;
}
.search-main-panel {
  min-width: 0;
}
.country-page,
.work-detail-page,
.compare-page {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding-inline: 0;
}
.country-page h1,
.work-detail-page h1 {
  font-size: clamp(44px, 5.8vw, 68px);
}
.ranking-inline-section {
  scroll-margin-top: 92px;
  margin-top: 28px;
}
.work-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}
.source-context span {
  display: inline-flex;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f9e4c8;
  color: #6d4620;
  font-weight: 900;
}
.side-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
}
.side-panel + .side-panel {
  margin-top: 18px;
}
.side-panel.dark {
  background: linear-gradient(180deg, #12395f, #082641);
  color: #fff;
}
.side-panel h2 {
  font-size: 20px;
}
.side-panel a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(132, 99, 59, 0.22);
}
.side-panel.dark a,
.side-panel.dark p {
  color: #f8f1e5;
}
.score-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}
.score-line strong {
  font-size: 28px;
  font-family: Georgia, serif;
}
.score-line.muted {
  opacity: 0.75;
}
.country-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.country-tabs a {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 110px;
  padding: 12px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 7px;
  background: rgba(255,255,255,0.76);
  text-decoration: none;
  font-weight: 900;
  text-align: center;
}
.country-tabs a.active {
  background: #173f5f;
  color: #fff;
  border-color: #173f5f;
}
.country-tabs a strong {
  font-size: 13px;
}
.country-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(37, 33, 29, 0.20);
  border-radius: 12px;
  background: #fffdf8;
  color: #25211d;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.58), 0 8px 14px rgba(52, 43, 32, 0.08);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}
.country-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
}
.country-emblem::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 8px;
}
.country-russia::before { background: linear-gradient(180deg, #fff 0 33%, #2957a4 33% 66%, #b4312b 66%); }
.country-france::before { background: linear-gradient(90deg, #244a86 0 33%, #fff 33% 66%, #ba2f35 66%); }
.country-britain::before { background: linear-gradient(135deg, #1d3f73 0 38%, #fff 38% 45%, #b7373d 45% 55%, #fff 55% 62%, #1d3f73 62%); }
.country-united-states::before { background: repeating-linear-gradient(180deg, #b7373d 0 5px, #fff 5px 10px); }
.country-united-states { color: #173f5f; }
.country-japan::before { background: radial-gradient(circle at 50% 50%, #b7373d 0 28%, transparent 29%), #fff; }
.country-china::before { background: linear-gradient(135deg, #b7373d, #8f2727); }
.country-china { color: #f6d46b; }
.country-germany::before { background: linear-gradient(180deg, #1f1d1a 0 33%, #b7373d 33% 66%, #d6a03a 66%); }
.country-germany { color: #fff5cf; }
.country-italy::before { background: linear-gradient(90deg, #246b4a 0 33%, #fff 33% 66%, #b7373d 66%); }
.country-spain::before { background: linear-gradient(180deg, #b7373d 0 25%, #f0c24b 25% 75%, #b7373d 75%); }
.country-spain { color: #7c251f; }
.country-greece::before { background: repeating-linear-gradient(180deg, #2d65a3 0 5px, #fff 5px 10px); }
.country-greece { color: #163d70; }
.country-india::before { background: linear-gradient(180deg, #d78b35 0 33%, #fff 33% 66%, #2f7f5f 66%); }
.country-india { color: #173f5f; }
.country-persia::before { background: linear-gradient(180deg, #2f7f5f 0 33%, #fff 33% 66%, #b7373d 66%); }
.country-persia { color: #173f5f; }
.country-arabic::before { background: linear-gradient(135deg, #1f1d1a 0 42%, #fff 42% 58%, #2f7f5f 58%); }
.country-arabic { color: #b7373d; }
.country-ireland::before { background: linear-gradient(90deg, #2f7f5f 0 33%, #fff 33% 66%, #d68a35 66%); }
.country-ireland { color: #173f5f; }
.country-nordic::before { background: linear-gradient(180deg, #244a86, #244a86); }
.country-nordic::after {
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 30%, #fff 30% 39%, #b7373d 39% 46%, #fff 46% 55%, transparent 55%),
    linear-gradient(180deg, transparent 0 38%, #fff 38% 48%, #b7373d 48% 55%, #fff 55% 65%, transparent 65%);
}
.country-nordic { color: #fff; }
.country-poland::before { background: linear-gradient(180deg, #fff 0 50%, #b7373d 50%); }
.country-poland { color: #173f5f; }
.country-brazil::before { background: radial-gradient(circle at 50% 50%, #244a86 0 22%, transparent 23%), linear-gradient(135deg, transparent 26%, #f0c24b 27% 50%, transparent 51%), #2f7f5f; }
.country-brazil { color: #fff6c8; }
.country-argentina::before { background: linear-gradient(180deg, #77aeda 0 33%, #fff 33% 66%, #77aeda 66%); }
.country-argentina { color: #173f5f; }
.country-tabs a.active .country-emblem {
  border-color: rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.40), 0 10px 18px rgba(0,0,0,0.18);
}
.tag-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 22px;
}
.tag-group-card {
  border: 1px solid rgba(132, 99, 59, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.76);
}
.tag-group-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.tag-group-card p {
  margin: 0 0 12px;
  color: #3f4b45;
  font-size: 14px;
  line-height: 1.7;
}
.tag-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.tag-insight-card {
  border: 1px solid rgba(132, 99, 59, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.82);
}
.tag-insight-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.tag-insight-card p {
  margin: 0 0 12px;
  color: #3f4b45;
  font-size: 14px;
  line-height: 1.7;
}
.tag-policy-section h3 {
  margin: 22px 0 12px;
}
.tag-policy-lead {
  margin: 0 0 14px;
  color: #3f4b45;
  line-height: 1.8;
}
.tag-policy-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.tag-policy-rules article {
  border: 1px solid rgba(132, 99, 59, 0.22);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}
.tag-policy-rules strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}
.tag-policy-rules p {
  margin: 0;
  color: #3f4b45;
  font-size: 14px;
  line-height: 1.7;
}
.tag-map-list {
  display: grid;
  gap: 8px;
}
.tag-map-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid rgba(132, 99, 59, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  text-decoration: none;
}
.tag-map-row strong {
  color: #12395f;
}
.tag-map-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #4d5b53;
  font-size: 13px;
  line-height: 1.55;
}
.tag.neutral {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  text-decoration: none;
  color: #12395f;
  background: #f7f1e7;
}
.tag-source-list {
  display: grid;
  gap: 8px;
}
.tag-source-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(132, 99, 59, 0.20);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.64);
}
.tag-search-box {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.tag-search-box input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.tag-search-box span {
  color: #6d6254;
  font-size: 13px;
}
.tag-filter-note {
  margin: 0;
  color: #5e655f;
  font-size: 13px;
}
.globe-page {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding-inline: 0;
}
.globe-page h1 {
  font-size: clamp(42px, 5.8vw, 72px);
}
.globe-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
  min-height: 620px;
  padding: 30px;
  border: 1px solid rgba(132, 99, 59, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,253,248,0.92), rgba(239,246,241,0.82)),
    radial-gradient(circle at 14% 22%, rgba(195, 21, 22, 0.10), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(18, 57, 95, 0.12), transparent 26%);
  overflow: hidden;
}
.globe-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}
.globe-stage {
  position: relative;
  display: grid;
  gap: 14px;
  place-items: center;
  min-height: 430px;
}
.world-map-hero {
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1fr);
}
.world-map-stage {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(18, 57, 95, 0.18);
  border-radius: 7px;
  background: linear-gradient(135deg, #c6edf2, #6fc4d2);
  box-shadow: 0 22px 44px rgba(37, 33, 29, 0.14);
}
.world-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: saturate(1.12) contrast(1.05);
}
.map-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: #c31516;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.24);
}
.map-pin:hover,
.map-pin:focus-visible {
  outline: 3px solid rgba(255, 244, 194, 0.96);
}
.map-pin.country-france,
.map-pin.country-germany,
.map-pin.country-italy,
.map-pin.country-spain,
.map-pin.country-greece,
.map-pin.country-ireland,
.map-pin.country-nordic,
.map-pin.country-poland { background: #6f4b1f; }
.map-pin.country-britain,
.map-pin.country-united-states { background: #173f5f; }
.map-pin.country-japan,
.map-pin.country-china,
.map-pin.country-india,
.map-pin.country-persia,
.map-pin.country-arabic { background: #b7373d; }
.map-pin.country-brazil,
.map-pin.country-argentina { background: #2f7f5f; }
.globe-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 184px);
  width: 160px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,33,29,0.22), rgba(37,33,29,0));
  transform: translateX(-50%);
  pointer-events: none;
}
.globe-sphere {
  position: relative;
  z-index: 1;
  touch-action: none;
  cursor: grab;
  width: min(430px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 20px 44px rgba(37, 33, 29, 0.16);
  overflow: visible;
}
.globe-sphere:active {
  cursor: grabbing;
}
.globe-sphere::before {
  display: none;
}
.globe-sphere::after {
  display: none;
}
.globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.globe-continent {
  position: absolute;
  display: block;
  border-radius: 48% 52% 45% 55%;
  background: linear-gradient(135deg, #d8b85f, #5e8a52);
  opacity: 0.92;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.continent-americas {
  left: 15%;
  top: 26%;
  width: 18%;
  height: 36%;
  transform: rotate(18deg);
}
.continent-europe {
  left: 45%;
  top: 31%;
  width: 17%;
  height: 16%;
  transform: rotate(-12deg);
}
.continent-africa {
  left: 48%;
  top: 48%;
  width: 18%;
  height: 26%;
  transform: rotate(-6deg);
}
.continent-asia {
  left: 59%;
  top: 31%;
  width: 28%;
  height: 30%;
  transform: rotate(12deg);
}
.globe-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: #c31516;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  transition: box-shadow 0.2s ease;
}
.globe-pin:hover,
.globe-pin:focus-visible {
  outline: 3px solid rgba(255, 244, 194, 0.96);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28), 0 0 0 10px rgba(255,255,255,0.20);
}
.globe-pin.country-france,
.globe-pin.country-germany,
.globe-pin.country-italy { background: #6f4b1f; }
.globe-pin.country-britain,
.globe-pin.country-united-states { background: #173f5f; }
.globe-pin.country-japan,
.globe-pin.country-china { background: #b7373d; }
.globe-controls {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.globe-controls button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(18, 57, 95, 0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #12395f;
  font-size: 13px;
  font-weight: 900;
}
.globe-shelves {
  margin-top: 26px;
}
.globe-country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.globe-country-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
}
.globe-country-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.globe-country-head strong,
.globe-country-head small {
  display: block;
}
.globe-country-head small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}
.globe-work-list {
  display: grid;
  gap: 7px;
}
.globe-work-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(132, 99, 59, 0.20);
  border-radius: 6px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}
.globe-work-list b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #173f5f;
  color: #fff;
  font-size: 12px;
}
.country-route {
  padding: 22px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}
.world-school-block {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
}
.world-school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.world-school-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: #fffdf8;
}
.world-school-card.tone-1 { background: #f8f2e5; }
.world-school-card.tone-2 { background: #f1f6f1; }
.school-stage {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #6f2d24;
  font-weight: 900;
  font-size: 13px;
}
.world-school-works {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 900;
}
.route-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.route-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 350px;
  padding: 28px 20px 20px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: #fffdfa;
  text-align: center;
}
.route-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -29px;
  top: 48%;
  color: var(--muted);
  font-size: 34px;
}
.step-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #12395f;
  color: #fff;
  line-height: 1;
}
.step-badge b {
  font-size: 30px;
}
.country-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 22px;
}
.route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(100%, 220px);
}
.edition-compare {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}
.edition-grid,
.source-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.edition-card,
.source-compare-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 8px;
  background: #fffdfa;
}
.edition-card h3,
.source-compare-card h3 {
  font-size: 21px;
}
.edition-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.edition-options a {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f0e5;
  text-decoration: none;
}
.edition-options strong {
  color: #12395f;
}
.edition-options span {
  color: var(--muted);
  font-size: 13px;
}
.edition-table table,
.source-compare-table table {
  min-width: 980px;
}
.era-panel {
  margin-top: 18px;
}
.compare-axis {
  margin: 18px 0;
}
.source-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.source-compare-card.is-guide-only {
  border-style: dashed;
  background: linear-gradient(180deg, #fffdfa, #fff8ec);
}
.source-compare-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.source-compare-facts span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(132, 99, 59, 0.18);
  border-radius: 6px;
  background: #f8f1e7;
  color: var(--muted);
  font-size: 13px;
}
.source-compare-facts strong {
  color: var(--ink);
  font-size: 12px;
}
.source-profile-digest {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.source-profile-digest div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.source-profile-digest dt {
  color: #65543a;
  font-weight: 900;
}
.source-profile-digest dd {
  margin: 0;
  color: var(--ink);
}
.compare-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.source-links-compact,
.source-policy-details {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.source-links-compact summary,
.source-policy-details summary {
  cursor: pointer;
  font-weight: 900;
}
.source-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.source-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
  text-decoration: none;
}
.source-brief {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.source-brief p {
  margin: 0;
}
.source-quick-facts {
  margin-bottom: 22px;
}
.country-rank {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.country-rank b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
}
.country-rank a {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 57, 95, 0.2);
  border-radius: 999px;
  background: #eef6f1;
  color: #12395f;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.country-work-list {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}
.country-work-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}
.country-sort-control {
  justify-self: end;
  min-width: min(240px, 100%);
}
.country-work-table {
  display: grid;
  gap: 10px;
}
.country-work-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(132, 99, 59, 0.2);
  border-radius: 8px;
  background: #fffdfa;
}
.country-work-rank b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #12395f;
  color: #fff;
}
.country-work-main h3 {
  font-size: 22px;
}
.world-link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.world-link-pills a {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f0e5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.read-method-link {
  display: inline-grid;
  place-items: center;
  min-width: 88px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 57, 95, 0.18);
  border-radius: 6px;
  background: #eef6f1;
  color: #12395f;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a {
  text-decoration: none;
}
.work-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 16px 0 12px;
}
.detail-stack {
  display: grid;
  gap: 18px;
}
.numbered-panel {
  position: relative;
  padding: 22px 24px 22px 74px;
  border: 1px solid rgba(132, 99, 59, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}
.panel-number {
  position: absolute;
  left: 22px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.numbered-panel h2 {
  margin-bottom: 14px;
  font-size: 26px;
}
.spoiler-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.spoiler-actions .danger {
  color: #b20f17;
  border-color: #e25b61;
  background: #fff7f5;
}
.reveal-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(132, 99, 59, 0.24);
  border-radius: 7px;
  background: #fffaf1;
}
.reveal-panel.danger {
  border-color: #efb4ae;
  background: #fff7f5;
}
.reveal-panel[hidden] {
  display: none;
}
.spoiler-hover { margin-top: 16px; outline: none; }
.spoiler-hover-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d88f8a;
  border-radius: 999px;
  background: #fff7f5;
  color: #8b2722;
  font-weight: 800;
  cursor: help;
}
.spoiler-hover-panel { display: none; }
.spoiler-hover:hover .spoiler-hover-panel,
.spoiler-hover:focus-within .spoiler-hover-panel {
  display: block;
}
.spoiler-hover:focus-visible .spoiler-hover-trigger {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.character-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdfa;
}
.detail-sidebar {
  position: sticky;
  top: 14px;
}
.basic-data {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
}
.basic-data dt {
  color: var(--muted);
  font-weight: 800;
}
.basic-data dd {
  margin: 0;
}
.modern-shell { background: #f7f8f3; }
.modern-hero { background: linear-gradient(135deg, #f7f8f3, #e7f0f0 58%, #f4e7e0); }
.modern-shell .hero,
.modern-shell .section {
  padding-inline: clamp(16px, 4vw, 52px);
}
.modern-shell .modern-hero {
  min-height: auto;
  align-items: start;
}
.modern-shell .modern-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}
.modern-shell .modern-hero .hero-panel {
  box-shadow: none;
  background: #fff;
}
.modern-home-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-bottom: 28px;
}
.modern-home-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}
.modern-home-entry-grid a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid #cbd6d2;
  border-radius: 8px;
  background: #fff;
  color: #1f2b31;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(29, 43, 49, 0.07);
}
.modern-home-entry-grid a.primary {
  border-color: #a7372f;
  background: #b33a32;
  color: #fff;
}
.modern-home-entry-grid strong {
  font-size: 15px;
  line-height: 1.2;
}
.modern-home-entry-grid span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.78;
}
.modern-home-entry-grid a:hover,
.modern-home-entry-grid a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.modern-home-search {
  padding-top: 18px;
}
.modern-home-search .modern-search-workbench {
  margin-top: 0;
}
.ranking-workbench {
  padding-top: clamp(54px, 7vw, 88px);
}
.modern-ranking-page {
  background: #f4f7f8;
}
.ranking-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}
.ranking-intro h1 {
  font-size: clamp(46px, 7vw, 82px);
}
.ranking-intro.compact {
  align-items: start;
  margin-bottom: 12px;
}
.ranking-intro.compact h1 {
  color: #1f2b31;
  font-size: clamp(24px, 3.4vw, 36px);
}
.ranking-basis-line {
  margin: 6px 0 0;
  color: #526067;
  font-size: 13px;
}
.ranking-mini-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ranking-mini-panel div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ranking-mini-panel strong {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
}
.ranking-mini-panel span {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}
.ranking-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.ranking-toolbar.clean {
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8e0e4;
}
.modern-search-workbench {
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e0e4;
  border-radius: 8px;
  background: #f7f9fa;
}
.classic-condition-workbench {
  margin-top: 16px;
}
.classic-condition-workbench .tag-state-grid {
  height: auto;
  max-height: none;
  overflow: visible;
}
.classic-condition-workbench .tag-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  align-content: start;
  gap: 4px;
  padding-right: 1px;
}
.classic-condition-workbench .tag-chip {
  width: 100%;
  min-height: 27px;
  height: 27px;
  justify-content: center;
  padding: 3px 6px;
  text-align: center;
}
.classic-condition-workbench .tag-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}
.modern-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.modern-search-row input {
  min-height: 48px;
  font-size: 16px;
}
.modern-condition-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.modern-condition-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #d8e0e4;
}
.modern-condition-head h2 {
  margin: 0;
  font-size: 20px;
}
.modern-condition-head strong {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f3f2;
  color: #166064;
  font-size: 12px;
}
.modern-condition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}
.condition-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d3dde2;
  border-radius: 8px;
  background: #fff;
}
.condition-heading h2 {
  margin: 0;
  font-size: 16px;
}
.condition-heading p {
  margin: 2px 0 0;
  color: #52636c;
  font-size: 13px;
}
.source-condition-card {
  gap: 8px;
}
.source-condition-card:not([open]) {
  padding-block: 8px;
}
.source-condition-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.source-condition-summary::-webkit-details-marker {
  display: none;
}
.source-fold-label {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid #cbd8dd;
  border-radius: 999px;
  color: #52636c;
  font-size: 12px;
  font-weight: 900;
}
.source-fold-label::before {
  content: "開く";
}
.source-condition-card[open] .source-fold-label::before {
  content: "閉じる";
}
.source-fold-label {
  font-size: 0;
}
.source-fold-label::before {
  font-size: 12px;
}
.modern-tag-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.compact-condition-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.modern-tag-selectors label,
.compact-condition-card label {
  display: grid;
  gap: 4px;
  font-weight: 800;
  font-size: 12px;
}
.compact-condition-card .status-field,
.compact-condition-card .sort-field {
  grid-column: 1;
}
.compact-condition-card .free-field {
  grid-column: 2;
  grid-row: 1;
}
.compact-condition-card .mode-field {
  grid-column: 3;
  grid-row: 1;
}
.compact-condition-card .ranking-period-field {
  grid-column: 2 / 4;
  grid-row: 2;
}
.compact-condition-card select {
  min-height: 40px;
  padding: 7px 34px 7px 10px;
  font-size: 13px;
}
.classic-compact-condition-card {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.condition-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  justify-content: end;
  padding: 0 12px 12px;
  border-top: 1px solid #d8e0e4;
  padding-top: 12px;
}
.condition-actions p {
  margin: 0;
  color: #52636c;
  font-size: 13px;
}
.condition-native-controls {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tag-choice-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tag-choice-box {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tag-choice-box h3 {
  margin: 0;
  font-size: 13px;
}
.tag-choice-box.include h3 { color: #116348; }
.tag-choice-box.exclude h3 { color: #9f2d24; }
.condition-chip-grid {
  display: grid;
  gap: 6px;
  max-height: 318px;
  overflow: auto;
  padding: 1px 10px 2px 1px;
  scrollbar-gutter: stable;
}
.tag-chip-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  max-height: 208px;
}
.tag-state-grid {
  max-height: 246px;
}
.source-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
}
.condition-chip {
  display: grid;
  min-height: 34px;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid #ccd7dd;
  border-radius: 8px;
  background: #fff;
  color: #1f2b31;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.tag-chip {
  display: inline-flex;
  width: auto;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.tag-chip span {
  font-size: 12px;
  white-space: nowrap;
}
.tag-state-legend {
  margin: -2px 0 2px;
  color: #52636c;
  font-size: 12px;
  font-weight: 800;
}
.source-chip {
  min-height: 68px;
  align-content: start;
  gap: 4px;
}
.source-chip strong {
  font-size: 13px;
  line-height: 1.2;
}
.source-chip span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.condition-chip:hover {
  border-color: #8ca2ad;
  background: #f3f8f8;
}
.condition-chip.is-source-popular {
  border-color: #d7b46a;
  background: #fff9ea;
  color: #8a3c12;
  font-weight: 900;
}
.condition-chip.is-source-popular > span {
  font-weight: 900;
}
.condition-chip strong,
.condition-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}
.condition-chip small,
.condition-chip > span + span,
.source-chip span {
  color: #61727a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.condition-chip.is-include,
.condition-chip.is-selected {
  border-color: #17765c;
  background: #e7f6ef;
  color: #0e5d43;
  box-shadow: inset 0 0 0 1px #17765c;
}
.condition-chip.is-exclude {
  border-color: #9f1f17;
  background: #b3261e;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #7f1711;
}
.condition-chip.is-exclude small,
.condition-chip.is-include small {
  color: inherit;
}
.ranking-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.ranking-status-tabs button {
  min-height: 34px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #e84a22;
  font-weight: 800;
}
.ranking-status-tabs button.active {
  color: #1f2b31;
  border-bottom-color: #1f2b31;
}
.modern-ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}
.modern-ranking-side {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 0;
  padding: 4px 0;
}
.modern-ranking-side h2 {
  margin: 12px 0 0;
  padding: 10px 0 8px;
  border-bottom: 1px solid #d4dde1;
  color: #1f2b31;
  font-size: 14px;
}
.modern-ranking-side a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #dce4e7;
  color: #263238;
  text-decoration: none;
  font-size: 14px;
}
.modern-ranking-side a::after {
  content: "›";
  color: #9aa8af;
}
.modern-ranking-side a.active {
  color: #d8421c;
  font-weight: 900;
}
.modern-rank-list {
  display: grid;
  gap: 12px;
}
.modern-rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: #fff;
}
.modern-cover {
  width: 98px;
  min-height: 142px;
  margin: 0;
  border: 1px solid #d5dde1;
  background: #1f2b31;
  overflow: hidden;
}
.modern-cover img {
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  display: block;
}
.modern-cover.placeholder {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 10px 8px;
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 36px rgba(0,0,0,0.28);
}
.modern-cover.placeholder span {
  justify-self: center;
  padding: 2px 6px;
  background: rgba(255,255,255,0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.modern-cover.placeholder strong {
  align-self: center;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}
.modern-cover.placeholder small {
  color: rgba(255,255,255,0.78);
  font-size: 10px;
}
.modern-cover.tone-sf { background: linear-gradient(150deg, #111827, #16415b 48%, #7c2d12); }
.modern-cover.tone-fantasy { background: linear-gradient(150deg, #17351f, #3d2d66 58%, #a86d22); }
.modern-cover.tone-romance { background: linear-gradient(150deg, #5a1835, #a33a5f 54%, #f0a56d); }
.modern-cover.tone-horror { background: linear-gradient(150deg, #101418, #4b1115 58%, #6b2f12); }
.modern-cover.tone-mystery { background: linear-gradient(150deg, #172033, #23395d 52%, #806443); }
.modern-cover.tone-default { background: linear-gradient(150deg, #263238, #546e7a 54%, #8d6e63); }
.modern-rank-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.modern-rank-body h3 {
  margin: 0;
  color: #f04a1d;
  font-size: 18px;
  line-height: 1.4;
}
.modern-work-info,
.modern-source-line {
  margin: 0;
  color: #6b7479;
  font-size: 13px;
}
.modern-work-info {
  color: #e84a22;
  font-weight: 800;
}
.modern-source-line {
  color: #5c6b74;
}
.synopsis-heading {
  margin: 6px 0 -2px;
  color: #e84a22;
  font-size: 13px;
  font-weight: 900;
}
.modern-synopsis {
  color: #29343a;
  font-size: 14px;
  line-height: 1.95;
}
.modern-rank-tags {
  gap: 5px 8px;
}
.modern-rank-tags .tag {
  border: 0;
  background: transparent;
  color: #f04a1d;
  padding: 0;
  text-decoration: none;
}
.modern-title-link {
  color: inherit;
  text-decoration: none;
}
.modern-title-link:hover,
.modern-title-link:focus-visible {
  color: #b63721;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modern-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.modern-cover-link .modern-cover {
  height: 100%;
}
.modern-cover-link:hover .modern-cover,
.modern-cover-link:focus-visible .modern-cover {
  outline: 2px solid #e84a22;
  outline-offset: 3px;
}
.ranking-period-field {
  display: grid;
  gap: 8px;
}
.ranking-period-field > span {
  font-weight: 800;
}
.period-button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.period-button {
  width: auto;
  min-height: 38px;
  border: 1px solid #d8cbb8;
  border-radius: 6px;
  background: #fff;
  color: #263238;
  font-weight: 900;
}
.period-button.is-selected {
  border-color: #b93428;
  background: #b93428;
  color: #fff;
  box-shadow: 0 10px 20px rgba(185, 52, 40, 0.18);
}
.ranking-period-note {
  display: inline;
  margin-right: 0.75em;
  color: #425057;
  font-weight: 800;
}
.tag-row {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.tag-row-label {
  color: #5e655f;
  font-size: 12px;
  font-weight: 800;
}
.tag.native {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  color: #3f3526;
  background: #fffaf1;
  border-color: #d8c7a9;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.tag.native small {
  color: #6d6254;
  font-size: 11px;
  font-weight: 700;
}
.modern-shell .doorway-grid,
.modern-hero ~ .section .doorway-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.modern-shell .doorway-grid .card,
.modern-hero ~ .section .doorway-grid .card {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.modern-shell .doorway-grid .card h3,
.modern-hero ~ .section .doorway-grid .card h3 {
  margin: 0;
  font-size: 18px;
}
.modern-shell .doorway-grid .card .button,
.modern-hero ~ .section .doorway-grid .card .button {
  align-self: end;
  width: 100%;
}
.modern-shell .source-grid,
.modern-hero ~ .section .source-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.modern-shell .source-card,
.modern-hero ~ .section .source-card,
.section:has(#modernResults) .source-card {
  gap: 9px;
  padding: 14px;
  box-shadow: none;
}
.modern-shell .source-card h3,
.modern-hero ~ .section .source-card h3,
.section:has(#modernResults) .source-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}
.modern-shell .source-card p,
.modern-hero ~ .section .source-card p,
.section:has(#modernResults) .source-card p {
  margin-bottom: 4px;
}
.modern-shell .source-card .button-row,
.modern-hero ~ .section .source-card .button-row,
.section:has(#modernResults) .source-card .button-row {
  margin-top: auto;
  gap: 8px;
}
.modern-shell .source-card .button,
.modern-hero ~ .section .source-card .button,
.section:has(#modernResults) .source-card .button {
  flex: 1 1 145px;
}
.modern-shell .mode-row,
.section:has(#modernResults) .mode-row {
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.modern-shell .mode-row button,
.section:has(#modernResults) .mode-row button {
  flex: 0 1 150px;
  border-color: transparent;
}
.modern-shell .controls,
.section:has(#modernResults) .controls {
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.65fr));
  align-items: stretch;
}
.modern-shell .source-scope,
.section:has(#modernResults) .source-scope {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.source-scope-disclosure {
  max-width: 100%;
}
.source-scope-disclosure summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.modern-shell .source-scope .badge,
.section:has(#modernResults) .source-scope .badge {
  border-radius: 6px;
}
.modern-shell #modernResults .ranking-grid,
#modernResults .ranking-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.modern-shell #modernResults .ranking-card,
#modernResults .ranking-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  box-shadow: none;
}
.modern-shell #modernResults .ranking-card > *,
#modernResults .ranking-card > * {
  min-width: 0;
}
.modern-shell #modernResults .ranking-card .button-row,
#modernResults .ranking-card .button-row {
  margin-top: auto;
  justify-content: stretch;
}
.modern-shell #modernResults .ranking-card .button-row .button,
#modernResults .ranking-card .button-row .button {
  width: 100%;
}
.modern-shell #modernResults .ranking-card h3,
#modernResults .ranking-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}
.modern-shell #modernResults .ranking-card .summary-panel,
#modernResults .ranking-card .summary-panel {
  margin: 8px 0 0;
  box-shadow: none;
}
.modern-shell .source-box,
.section:has(#modernResults) .source-box {
  margin: 18px 0;
  background: #fff;
  box-shadow: none;
}
.modern-shell .source-box .section-heading,
.section:has(#modernResults) .source-box .section-heading {
  margin-bottom: 12px;
}
.modern-shell .source-box .source-grid,
.section:has(#modernResults) .source-box .source-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.modern-shell .source-box .ranking-grid,
.section:has(#modernResults) .source-box .ranking-grid {
  grid-template-columns: minmax(0, 1fr);
}
.source-lane {
  display: grid;
  gap: 14px;
}
.source-ranking-block {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.source-ranking-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.source-ranking-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}
.source-ranking-head h3 {
  margin: 0;
  font-size: 20px;
}
.source-ranking-head .button {
  flex: 0 1 auto;
}
.modern-shell .summary-panel .summary-panel,
.modern-shell .ranking-card .summary-panel .summary-panel {
  border-radius: 6px;
  background: var(--soft);
  border-color: transparent;
}
.notice { border-left: 4px solid var(--accent-2); padding: 12px 14px; background: #fff; margin: 16px 0; }
.loading-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}
.loading-notice::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 3px solid #d8e4df;
  border-top-color: var(--accent-2);
  border-radius: 999px;
  animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}
.highlight-list { margin: 0 0 18px; padding-left: 22px; }
.highlight-list li + li { margin-top: 6px; }
.summary-panel { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.summary-panel summary { cursor: pointer; font-weight: 800; overflow-wrap: anywhere; }
.summary-panel h4 { margin: 16px 0 8px; font-size: 16px; }
.official-story { margin: 14px 0; padding: 14px; border: 1px solid #cfd8d4; background: #f7fbf9; border-radius: 8px; }
.official-story h4 { margin-top: 0; color: var(--accent-2); }
.top-pick { margin: 16px 0; padding: 14px; border-left: 4px solid var(--accent); background: #fff7f2; }
.top-pick h4 { margin: 0 0 10px; font-size: 16px; }
.top-pick p { font-size: 14px; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
@media (max-width: 860px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .header-tools { justify-content: flex-start; width: 100%; }
  .top-nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .modern-home-hero { grid-template-columns: 1fr; }
  .modern-home-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-hero { width: min(100% - 16px, 1480px); grid-template-columns: 1fr; }
  .today-card { align-self: stretch; }
  .search-home-grid { grid-template-columns: 1fr; }
  .search-home-grid .today-card { position: static; }
  .quick-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100% - 16px, 1480px); }
  .work-preview-grid { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  .work-detail-grid,
  .globe-hero,
  .country-info-grid,
  .world-school-grid,
  .country-work-row,
  .tag-insight-grid,
  .tag-policy-rules,
  .modern-ranking-layout { grid-template-columns: 1fr; }
  .country-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .globe-hero { min-height: auto; }
  .world-map-stage { width: 100%; }
  .globe-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-steps { grid-template-columns: 1fr; }
  .route-step:not(:last-child)::after { content: "↓"; right: auto; top: auto; bottom: -32px; }
  .route-actions,
  .compare-actions,
  .source-compare-facts { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .classic-search-controls input { grid-column: auto; }
  .detail-layout { grid-template-columns: 1fr; }
  .ranking-intro { grid-template-columns: 1fr; align-items: start; }
  .ranking-mini-panel { grid-template-columns: 1fr 1fr; }
  .classic-row { grid-template-columns: 1fr; }
  .work-result-card { grid-template-columns: 82px minmax(0, 1fr); }
  .work-result-card aside { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classic-row aside { justify-content: flex-start; }
  .shelf-heading { align-items: stretch; flex-direction: column; }
  h1 { font-size: 44px; }
  .modern-shell .controls,
  .section:has(#modernResults) .controls,
  .modern-search-row,
  .modern-condition-grid,
  .compact-condition-card,
  .condition-actions { grid-template-columns: minmax(0, 1fr); }
  .compact-condition-card .status-field,
  .compact-condition-card .sort-field,
  .compact-condition-card .free-field,
  .compact-condition-card .mode-field,
  .compact-condition-card .ranking-period-field {
    grid-column: auto;
    grid-row: auto;
  }
  .modern-search-workbench { padding: 12px; }
  .modern-condition-head { align-items: flex-start; flex-direction: column; }
  .tag-choice-columns { grid-template-columns: 1fr; }
  .condition-chip-grid { max-height: 230px; }
  .tag-chip-grid { max-height: 180px; }
  .classic-condition-workbench .tag-state-grid {
    height: auto;
    max-height: none;
  }
  .classic-condition-workbench .tag-chip-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  }
  .tag-chip span { white-space: normal; }
  .classic-condition-workbench .tag-chip span { white-space: nowrap; }
  .modern-shell #modernResults .ranking-card,
  #modernResults .ranking-card { grid-template-columns: 1fr; }
  .source-ranking-head { display: grid; }
  .modern-ranking-side { position: static; }
  .modern-rank-item { grid-template-columns: minmax(0, 1fr); }
  .modern-cover { width: 86px; min-height: 126px; }
  .modern-cover img { min-height: 126px; }
  .modern-shell #modernResults .ranking-card .button-row,
  #modernResults .ranking-card .button-row {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 520px) {
  .hero, .section { padding-inline: 14px; }
  .home-anchor-nav { padding-inline: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .home-anchor-nav a { flex: 0 0 auto; }
  .home-list-card,
  .work-preview-main { grid-template-columns: 64px minmax(0, 1fr); }
  .source-strip,
  .spoiler-demo { grid-template-columns: 1fr; }
  .source-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(132, 99, 59, 0.18);
  }
  .source-strip div:last-child { border-bottom: 0; }
  h1 { font-size: 34px; }
  h1[lang="ja"] { font-size: 31px; }
  h2 { font-size: 28px; }
  .app-hero { padding-block: 28px; }
  .today-card-body { grid-template-columns: 78px minmax(0, 1fr); }
  .book-cover { min-height: 124px; }
  .globe-page,
  .country-page,
  .work-detail-page,
  .compare-page { width: min(100% - 20px, 1180px); }
  .spoiler-actions { grid-template-columns: 1fr; }
  .country-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-tabs a { min-height: 86px; }
  .globe-hero { padding: 18px; }
  .globe-page h1 { font-size: 34px; }
  .globe-stage { min-height: 300px; }
  .world-map-stage { min-height: 230px; }
  .map-pin { width: 30px; height: 30px; font-size: 9px; }
  .globe-sphere { width: min(300px, 86vw); }
  .globe-pin { width: 34px; height: 34px; font-size: 10px; }
  .globe-country-grid { grid-template-columns: 1fr; }
  .modern-home-entry-grid { grid-template-columns: 1fr; }
  .edition-compare { padding: 14px; }
  .edition-options { grid-template-columns: 1fr; }
  .modern-rank-item { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .modern-cover { grid-column: 1; width: 54px; min-height: 80px; }
  .modern-cover img { min-height: 80px; }
  .modern-cover.placeholder { padding: 6px 4px; }
  .modern-cover.placeholder strong { font-size: 10px; }
  .modern-cover.placeholder span,
  .modern-cover.placeholder small { display: none; }
  .modern-rank-body { grid-column: 1; }
  .tag-map-row { grid-template-columns: 1fr; gap: 4px; }
  .ranking-status-tabs { gap: 6px 12px; }
  .numbered-panel { padding: 18px 16px 18px 58px; }
  .panel-number { left: 14px; top: 17px; }
  .character-grid { grid-template-columns: 1fr; }
  .quick-paths { grid-template-columns: 1fr; }
  .quick-path { min-height: auto; }
  .doorway-main { grid-template-columns: 40px minmax(0, 1fr); }
  .doorway-icon { width: 40px; height: 40px; }
  .work-result-card { grid-template-columns: 68px minmax(0, 1fr); }
  .small-cover { width: 60px; min-height: 92px; font-size: 12px; }
  .work-result-card aside { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .button, button { width: 100%; }
  .pagination button, .tabs button, .mode-row button { width: auto; flex: 1 1 auto; }
  .pagination button { flex: 0 0 auto; min-width: 40px; padding-inline: 10px; }
  .site-header { padding-inline: 14px; }
  .header-tools { display: grid; grid-template-columns: 1fr; }
  .top-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; width: 100%; }
  .top-nav a { padding-left: 0; padding-right: 6px; min-width: 0; }
  .language-control { justify-content: space-between; width: 100%; }
  .mode-row button { flex-basis: 100%; }
  .ranking-mini-panel { grid-template-columns: 1fr; }
  .book-card, .ranking-card, .source-card, .detail-card, .card { padding: 14px; }
  .summary-panel, .top-pick, .reading-options { padding: 12px; }
  .button-row select { flex: 1 1 100%; }
  .modern-shell .modern-hero h1 { font-size: 30px; }
  .modern-shell .source-grid,
  .modern-shell .source-box .source-grid,
  .modern-hero ~ .section .source-grid,
  .section:has(#modernResults) .source-grid,
  .section:has(#modernResults) .source-box .source-grid { grid-template-columns: 1fr; }
  .architecture-diagram { max-width: none; }
  .arch-row { grid-template-columns: 1fr; gap: 8px; }
  .arch-label { min-height: 38px; justify-content: start; padding-inline: 12px; }
  .arch-card { min-height: auto; }
  .arch-line { grid-column: 1; margin-left: 20px; }
  .structure-split { grid-template-columns: 1fr; }
  .modern-shell .mode-row button,
  .section:has(#modernResults) .mode-row button { flex-basis: 100%; }
  .modern-shell #modernResults .ranking-card,
  #modernResults .ranking-card { padding: 14px; }
  .modern-shell #modernResults .ranking-card h3,
  #modernResults .ranking-card h3 { font-size: 18px; }
}
