:root {
  --ink: #172a30;
  --ink-soft: #36535a;
  --paper: #f4f4ee;
  --paper-strong: #fffdf8;
  --paper-tint: #e9efeb;
  --blue: #176a80;
  --blue-deep: #0d3d4c;
  --blue-pale: #d9edf0;
  --coral: #e96c4c;
  --coral-deep: #b94e39;
  --teal: #4f9c91;
  --yellow: #f1c76c;
  --line: #d4dfda;
  --muted: #64767a;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(17, 48, 55, 0.1);
  --shadow-soft: 0 8px 22px rgba(17, 48, 55, 0.07);
  --radius: 8px;
  --content: 1180px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-notice {
  min-height: 32px;
  display: flex;
  align-items: center;
  background: var(--blue-deep);
  color: #eaf5f2;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-notice .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-notice strong {
  color: var(--yellow);
  font-weight: 800;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.primary-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: var(--white);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 4px 4px 0 rgba(23, 106, 128, 0.18);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-8deg);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-menu a,
.nav-action,
.language-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-menu a:hover,
.main-menu a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.language-trigger:hover,
.language-trigger:focus-visible {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.nav-action {
  cursor: pointer;
  background: transparent;
}

.nav-action.is-active {
  background: var(--coral);
  color: var(--white);
}

.nav-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-trigger {
  cursor: pointer;
  background: transparent;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 16px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 150px;
  padding: 6px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button[aria-current="true"] {
  background: var(--paper-tint);
  color: var(--blue-deep);
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  background: var(--paper-tint);
  color: var(--blue-deep);
  border-radius: 4px;
}

.sub-nav {
  background: var(--blue-deep);
  color: #e7f3f1;
}

.sub-nav .container {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav .container::-webkit-scrollbar {
  display: none;
}

.sub-nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #b9d5d3;
  font-size: 12px;
  font-weight: 750;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.sub-nav a:first-child,
.sub-nav a:hover,
.sub-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  font-size: 16px;
  line-height: 1;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icons-fallback [data-lucide="search"]::before { content: "⌕"; }
.icons-fallback [data-lucide="languages"]::before { content: "文"; font-size: 13px; font-weight: 800; }
.icons-fallback [data-lucide="chevron-down"]::before { content: "⌄"; }
.icons-fallback [data-lucide="menu"]::before { content: "≡"; font-size: 24px; }
.icons-fallback [data-lucide="x"]::before { content: "×"; font-size: 23px; }
.icons-fallback [data-lucide="compass"]::before { content: "◎"; }
.icons-fallback [data-lucide="users"]::before { content: "◉"; }
.icons-fallback [data-lucide="thumbs-up"]::before { content: "+"; font-weight: 900; }
.icons-fallback [data-lucide="thumbs-down"]::before { content: "−"; font-weight: 900; }
.icons-fallback [data-lucide="share-2"]::before { content: "↗"; font-weight: 900; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px auto 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--coral);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  background: rgba(7, 37, 47, 0.47);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: clamp(30px, 6vw, 70px);
  color: var(--white);
}

.eyebrow,
.section-eyebrow {
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 0.98;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 24px;
  color: #e3f0ee;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--coral);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--coral-deep);
}

.button-light {
  background: var(--white);
  color: var(--blue-deep);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--yellow);
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
}

.hero-facts strong {
  color: var(--yellow);
  font-size: 18px;
}

.hero-facts span {
  color: #c6dbd9;
  font-size: 12px;
}

.section {
  padding: 90px 0;
}

.section-tight {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading.is-dark h2,
.section-heading.is-dark p {
  color: var(--white);
}

.section-heading.is-dark p {
  color: #bdd1d0;
}

.section-heading .section-eyebrow {
  align-self: flex-start;
  margin-top: 8px;
}

.intro-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: center;
}

.intro-grid h2 {
  max-width: 750px;
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 42px);
}

.intro-grid p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 3px solid var(--coral);
}

.stat-item {
  padding: 8px 16px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  color: var(--blue-deep);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: var(--radius);
  isolation: isolate;
}

.guide-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.guide-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(8, 39, 48, 0.56);
}

.guide-card:hover img {
  transform: scale(1.06);
}

.guide-card-content {
  width: 100%;
  padding: 20px;
  color: var(--white);
}

.guide-card-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 12px 0 6px;
  font-size: 23px;
}

.guide-card p {
  margin-bottom: 0;
  color: #d4e5e2;
  font-size: 13px;
}

.guide-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.split-band {
  background: var(--blue-deep);
  color: var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.editorial-figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.editorial-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.editorial-figure figcaption {
  padding: 11px 14px;
  color: #bdd1d0;
  font-size: 12px;
}

.tool-panel {
  padding: 26px;
  background: var(--paper-strong);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-panel h3 {
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 24px;
}

.tool-panel > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.select-control,
.search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.select-control:focus,
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 106, 128, 0.15);
}

.planner-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.planner-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.planner-step.is-done {
  background: #e2f0e9;
  border-color: #a7c9bc;
}

.planner-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--blue-pale);
  color: var(--blue-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.planner-step.is-done .planner-number {
  background: var(--teal);
  color: var(--white);
}

.planner-step strong {
  display: block;
  font-size: 14px;
}

.planner-step span:not(.planner-number) {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.planner-check {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 18px;
}

.planner-check:hover,
.planner-check:focus-visible {
  border-color: var(--teal);
  background: #e2f0e9;
}

.planner-progress {
  height: 8px;
  overflow: hidden;
  margin-top: 18px;
  background: var(--paper-tint);
  border-radius: 20px;
}

.planner-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
  transition: width 250ms ease;
}

.planner-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.planner-status strong {
  color: var(--coral-deep);
}

.search-band {
  padding: 54px 0;
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 790px;
  margin: 0 auto;
}

.search-results {
  display: none;
  max-width: 790px;
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
}

.search-results.is-visible {
  display: grid;
  gap: 6px;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-result small {
  color: var(--muted);
}

.search-empty {
  color: var(--muted);
  text-align: center;
}

.hint-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hint-art {
  min-height: 270px;
  overflow: hidden;
  background: var(--blue-pale);
  border-radius: 4px;
}

.hint-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hint-copy h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.hint-copy > p {
  color: var(--muted);
}

.hint-levels {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

.hint-level {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.hint-level button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.hint-level button:hover,
.hint-level button:focus-visible {
  background: var(--blue-pale);
}

.hint-content {
  display: none;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 14px;
}

.hint-level.is-open .hint-content {
  display: block;
}

.hint-level.is-open .hint-arrow {
  transform: rotate(180deg);
}

.hint-arrow {
  color: var(--coral);
  transition: transform 160ms ease;
}

.quote-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 30px;
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.quote-panel p {
  margin-bottom: 0;
  color: var(--blue-deep);
  font-size: 20px;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.faq-item button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.faq-item button:hover,
.faq-item button:focus-visible {
  background: var(--paper-tint);
}

.faq-answer {
  display: none;
  padding: 0 16px 17px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .hint-arrow {
  transform: rotate(180deg);
}

.feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.feedback-button {
  min-height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
}

.feedback-button:hover,
.feedback-button:focus-visible,
.feedback-button.is-selected {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue-deep);
}

.share-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  max-width: min(350px, calc(100% - 36px));
  padding: 12px 14px;
  background: var(--blue-deep);
  color: var(--white);
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 62px 0 28px;
  background: var(--ink);
  color: #d6e4e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-sub {
  color: #91b0ae;
}

.footer-brand p {
  max-width: 320px;
  margin: 18px 0 0;
  color: #9bb5b3;
  font-size: 13px;
}

.footer-column h3 {
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #bcd1ce;
  font-size: 13px;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #89a3a1;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.search-dialog {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 110px 20px 20px;
  background: rgba(7, 37, 47, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.search-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-dialog-panel {
  width: min(100%, 620px);
  padding: 22px;
  background: var(--paper-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  transition: transform 180ms ease;
}

.search-dialog.is-open .search-dialog-panel {
  transform: translateY(0);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dialog-heading h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 22px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--paper-tint);
  color: var(--ink-soft);
  border-radius: 4px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.dialog-results {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.detail-header {
  max-width: 830px;
  margin: 40px auto 30px;
  text-align: center;
}

.detail-header h1 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: clamp(38px, 6vw, 64px);
}

.detail-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
  align-items: start;
}

.article-content {
  min-width: 0;
  max-width: 780px;
  color: var(--ink-soft);
}

.article-content h2 {
  margin: 42px 0 14px;
  color: var(--blue-deep);
  font-size: 30px;
}

.article-content h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.article-content p,
.article-content li {
  font-size: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content li + li {
  margin-top: 8px;
}

.article-figure {
  margin: 24px 0;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: var(--radius);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: contain;
  background: var(--paper-tint);
}

.article-figure figcaption {
  padding: 10px 14px;
  color: #c7dcd9;
  font-size: 12px;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius);
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: 16px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--blue);
}

.notice-box {
  margin: 24px 0;
  padding: 16px 18px;
  background: #fff6dd;
  border-left: 4px solid var(--yellow);
  color: #5a4a25;
  border-radius: 4px;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--paper-strong);
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--paper-tint);
  color: var(--blue-deep);
  font-weight: 850;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.legal-page {
  padding: 68px 0 90px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: clamp(34px, 5vw, 52px);
}

.legal-card h2 {
  margin-top: 32px;
  color: var(--blue-deep);
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-card ul {
  padding-left: 22px;
}

.page-hero {
  padding: 72px 0 45px;
  background: var(--blue-pale);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.is-hidden {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(233, 108, 76, 0.7);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .main-menu a {
    padding-inline: 8px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-notice .container {
    min-height: 32px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-block: 5px;
  }

  .site-notice span:last-child {
    display: none;
  }

  .primary-nav {
    min-height: var(--header-height);
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .nav-tools {
    margin-left: auto;
  }

  .main-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 3px;
    padding: 8px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .main-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-menu a {
    min-height: 44px;
    padding-inline: 12px;
  }

  .language-trigger {
    padding-left: 9px;
    border-left: 0;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 500px;
    border-radius: 5px;
  }

  .hero-content {
    padding: 24px 24px 22px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(36px, 11vw, 54px);
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .hero-facts {
    margin-top: 20px;
    gap: 12px 22px;
  }

  .section {
    padding: 64px 0;
  }

  .intro-band {
    padding-top: 30px;
  }

  .section-heading,
  .intro-grid {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .intro-grid p {
    margin-bottom: 28px;
  }

  .stat-strip {
    max-width: 300px;
  }

  .guide-grid,
  .split-grid,
  .hint-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 220px;
  }

  .split-grid {
    gap: 26px;
  }

  .editorial-figure img {
    aspect-ratio: 16 / 10;
  }

  .hint-card {
    padding: 16px;
  }

  .hint-art {
    min-height: 210px;
  }

  .toc {
    position: static;
    order: -1;
  }

  .feedback-bar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .nav-action span:last-child {
    display: none;
  }

  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
