:root {
  --ink: #282326;
  --muted: #756b70;
  --paper: #fffdfb;
  --surface: #ffffff;
  --soft: #fbf1f3;
  --soft-2: #f5f8f4;
  --line: #eadfe2;
  --rose: #a85a70;
  --plum: #513247;
  --gold: #bd9253;
  --green: #557a6b;
  --shadow: 0 10px 28px rgba(69, 39, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 180px;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--line);
  color: var(--plum);
  background: #fff;
}

.hero,
.article-hero {
  background:
    radial-gradient(circle at 22% 0%, rgba(168, 90, 112, 0.11), transparent 30%),
    linear-gradient(135deg, #fffdfb 0%, #fbf1f3 58%, #f5f8f4 100%);
  border-bottom: 1px solid var(--line);
}

.hero__inner,
.article-hero__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  color: var(--rose);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-top: 18px;
  max-width: 720px;
}

.hero-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.hero-chips li,
.tag-list li {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

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

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--plum);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.btn--primary {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

.memo-panel,
.source-box,
.card,
.article-card,
.note-box,
.cta-box,
.faq-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.memo-panel {
  box-shadow: 0 12px 34px rgba(69, 39, 51, 0.09);
}

.hero-panel {
  min-width: 0;
}

.memo-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.route-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.route-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.route-link:hover,
.route-link:focus-visible {
  border-color: rgba(185, 79, 109, 0.45);
  outline: none;
}

.route-link b {
  color: var(--ink);
  line-height: 1.45;
}

.route-link span {
  color: var(--muted);
  font-size: 13px;
}

.ad-disclosure {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 5px 10px;
}

.memo-panel strong {
  font-size: 20px;
}

.memo-row {
  align-items: start;
  display: grid;
  gap: 4px;
  grid-template-columns: 32px 1fr;
}

.memo-row b {
  align-items: center;
  background: var(--soft);
  border-radius: 50%;
  color: var(--rose);
  display: inline-flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.memo-row span {
  color: var(--muted);
}

.section,
.article-body {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section + .section,
.article-body + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 800px;
}

.section__head p {
  color: var(--muted);
}

.section--quiet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 28px;
}

.grid-4,
.grid-3,
.grid-2,
.article-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.article-card,
.source-box,
.note-box,
.faq-item {
  padding: 20px;
}

.card-link {
  display: block;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: rgba(185, 79, 109, 0.45);
  box-shadow: 0 14px 32px rgba(69, 39, 51, 0.1);
  outline: none;
}

.card .card-action {
  color: var(--rose);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}

.card em {
  color: var(--rose);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-bottom: 6px;
}

.card strong,
.article-card strong,
.source-box strong,
.faq-item strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.card span,
.article-card span,
.source-box span,
.faq-item span,
.note-box p,
.note-box li {
  color: var(--muted);
}

.article-card {
  display: grid;
  gap: 12px;
  text-decoration: none;
}

.article-card:hover {
  border-color: rgba(185, 79, 109, 0.45);
  box-shadow: 0 14px 32px rgba(69, 39, 51, 0.1);
}

.article-card small {
  color: var(--rose);
  font-weight: 800;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.table-wrap:focus-visible {
  outline: 3px solid rgba(185, 79, 109, 0.35);
  outline-offset: 3px;
}

.table-hint {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 10px;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

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

th {
  background: #fbf4f5;
  color: var(--plum);
  font-size: 13px;
}

td {
  color: var(--muted);
  font-size: 14px;
}

td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.table-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
  padding: 18px 18px 18px 58px;
  position: relative;
}

.step-list li::before {
  background: var(--plum);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  font-weight: 800;
  height: 30px;
  left: 18px;
  line-height: 30px;
  position: absolute;
  text-align: center;
  top: 20px;
  width: 30px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-width: 0;
}

.prose {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.prose section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 24px;
}

.article-layout > * {
  min-width: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.source-box ul,
.note-box ul,
.cta-box ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
}

.side-nav {
  position: sticky;
  top: 92px;
}

.source-box {
  display: grid;
  gap: 12px;
}

.source-box a {
  color: var(--rose);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cta-box {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 20px;
}

.cta-box p {
  color: var(--ink);
  font-weight: 800;
}

.article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.article-meta span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 10px;
}

.soft-callout {
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 16px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 32px 20px;
  text-align: center;
}

.topic-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.topic-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 12px 14px;
  text-decoration: none;
}

.topic-row:hover,
.topic-row:focus-visible {
  border-color: rgba(185, 79, 109, 0.45);
  outline: none;
}

.topic-row b {
  color: var(--rose);
  font-size: 13px;
}

.topic-row span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero__inner,
  .article-layout,
  .grid-4,
  .grid-3,
  .grid-2,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero__inner,
  .article-hero__inner {
    padding: 44px 0 38px;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section,
  .article-body {
    padding: 42px 0;
  }

  .prose section,
  .card,
  .article-card,
  .source-box,
  .note-box,
  .faq-item {
    padding: 18px;
  }

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