:root {
  --indigo: #16213e;
  --indigo-deep: #0e172d;
  --ivory: #f6f1e8;
  --paper: #fffdf8;
  --coral: #b9473f;
  --coral-dark: #a43f38;
  --bluegray: #5d6b80;
  --ink: #1b2740;
  --muted: #536078;
  --line: #d9d2c5;
  --line-dark: #bcb5aa;
  --focus: #ffb347;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--indigo);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 33, 62, 0.97);
  border-bottom: 1px solid rgba(246, 241, 232, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 26px;
}

.brand {
  color: var(--ivory);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand span {
  display: block;
  color: #c9d1df;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
}

.button {
  min-height: 48px;
  padding: 14px 24px;
}

.header-cta:hover,
.button:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: translateY(-1px);
}

.article-shell {
  max-width: 810px;
  margin: 0 auto;
  padding: 42px 26px 84px;
}

.hub-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 26px 88px;
}

.breadcrumb {
  margin-bottom: 34px;
  color: var(--bluegray);
  font-size: 12px;
  line-height: 1.6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  color: var(--line-dark);
  content: "/";
}

.breadcrumb a {
  color: var(--muted);
}

.category,
.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--indigo);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

h2 {
  margin: 52px 0 18px;
  color: var(--indigo);
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

h3 {
  margin: 30px 0 8px;
  color: var(--indigo);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
}

.meta {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--bluegray);
  font-size: 12px;
}

.eyecatch {
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.eyecatch img {
  width: 100%;
}

.lead {
  margin-bottom: 38px;
  color: var(--indigo);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.article-section {
  margin-top: 46px;
}

.article-section h2,
.related-section h2 {
  padding-left: 17px;
  border-left: 5px solid var(--coral);
}

p {
  margin-bottom: 18px;
  color: #2e3a52;
}

strong {
  color: var(--indigo);
  font-weight: 800;
}

ul,
ol {
  margin-bottom: 22px;
  padding-left: 1.45em;
  color: #2e3a52;
}

li {
  margin-bottom: 8px;
}

.checklist {
  padding: 18px 20px 14px 39px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  background: rgba(255, 253, 248, 0.7);
}

.checklist li::marker {
  color: var(--coral-dark);
}

.avoid-list strong {
  color: var(--coral-dark);
}

.note,
.disclaimer {
  padding: 17px 19px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.note {
  border-left: 4px solid var(--coral);
}

.responsive-tablewrap {
  margin: 24px 0;
  overflow-x: auto;
}

.responsive-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #28364f;
  font-size: 14px;
  line-height: 1.7;
}

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

.responsive-table thead th {
  background: var(--indigo);
  color: var(--ivory);
  font-weight: 800;
  white-space: nowrap;
}

.responsive-table tbody th {
  width: 22%;
  background: #eee8dc;
  color: var(--indigo);
  font-weight: 800;
}

.responsive-table tr:last-child th,
.responsive-table tr:last-child td {
  border-bottom: 0;
}

.source-list {
  padding-left: 1.25em;
}

.source-list a {
  font-weight: 700;
}

.faq-section {
  margin-top: 62px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 9px;
}

.faq-item p {
  margin: 0;
}

.hub-updated {
  margin: -4px 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.cta-box {
  margin: 58px 0 28px;
  padding: 34px 32px;
  border-radius: 18px;
  background: var(--indigo);
  color: var(--ivory);
}

.cta-box h2 {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(21px, 3.2vw, 28px);
}

.cta-box p {
  max-width: 52em;
  margin-bottom: 24px;
  color: #d7deea;
  font-size: 14px;
}

.disclaimer {
  margin: 0 0 44px;
}

.related-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.related-section h2 {
  margin-top: 32px;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list li {
  margin: 0;
  border-bottom: 1px dashed var(--line-dark);
}

.related-list a {
  display: block;
  padding: 12px 0;
  color: var(--coral-dark);
  font-weight: 700;
}

.site-footer {
  padding: 36px 26px;
  background: var(--indigo-deep);
  color: #c6cedc;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
  color: #c6cedc;
}

.site-footer a {
  color: #ffd3ca;
  white-space: nowrap;
}

/* Article hub */
.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hub-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.35;
}

.hub-hero h1 span {
  color: var(--coral-dark);
}

.hub-lead {
  max-width: 42em;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hub-guide {
  padding: 28px;
  border-radius: 18px;
  background: var(--indigo);
  color: var(--ivory);
}

.hub-guide strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.hub-guide p {
  margin-bottom: 14px;
  color: #d7deea;
  font-size: 13.5px;
}

.hub-guide a {
  color: #ffd3ca;
  font-weight: 800;
}

.hub-definition {
  max-width: 880px;
  margin: 38px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(23, 34, 56, 0.07);
}

.hub-definition h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 25px;
}

.hub-definition p:last-child {
  margin: 0;
  color: var(--muted);
}

.hub-definition dfn {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.hub-section {
  padding-top: 55px;
}

.hub-section > h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 28px;
}

.hub-intro {
  max-width: 52em;
  margin-bottom: 28px;
  color: var(--muted);
}

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

.hub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hub-card:hover {
  border-color: var(--coral);
  box-shadow: 0 14px 30px rgba(22, 33, 62, 0.12);
  color: var(--ink);
  transform: translateY(-3px);
}

.hub-card figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #ebe4d8;
}

.hub-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card-body {
  flex: 1;
  padding: 21px 22px 23px;
}

.hub-card-body .category {
  margin-bottom: 7px;
}

.hub-card h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1.65;
}

.hub-card p:not(.category) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.read-more {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.hub-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.hub-card.featured figure {
  height: 100%;
  aspect-ratio: auto;
}

.hub-card.featured h2 {
  font-size: 23px;
}

.hub-card:last-child:not(.featured) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.hub-card:last-child:not(.featured) figure {
  height: 100%;
  aspect-ratio: auto;
}

.hub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 55px;
  padding: 31px 33px;
  border-radius: 18px;
  background: #ebe4d8;
}

.hub-bottom h2 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  font-size: 21px;
}

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

.hub-bottom .button {
  flex: 0 0 auto;
}

.nw {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 60px;
    padding: 9px 16px;
  }

  .brand {
    max-width: 60%;
    font-size: 12px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 11px;
  }

  .article-shell,
  .hub-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-shell {
    padding-top: 30px;
    padding-bottom: 62px;
  }

  .hub-shell {
    padding-top: 27px;
    padding-bottom: 68px;
  }

  .breadcrumb {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .lead {
    font-size: 16px;
  }

  .eyecatch {
    margin-bottom: 27px;
    border-radius: 13px;
  }

  .article-section {
    margin-top: 37px;
  }

  h2 {
    margin-top: 41px;
  }

  .cta-box {
    padding: 28px 22px;
  }

  .cta-box .button {
    width: 100%;
  }

  .responsive-tablewrap {
    overflow: visible;
  }

  .responsive-table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
  }

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

  .responsive-table tbody {
    display: block;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }

  .responsive-table th,
  .responsive-table td {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .responsive-table tbody th {
    width: 100%;
    background: #eee8dc;
  }

  .responsive-table td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--coral-dark);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

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

  .hub-hero {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 22px 0 37px;
  }

  .hub-hero h1 {
    font-size: clamp(31px, 10vw, 45px);
  }

  .hub-definition {
    margin-top: 28px;
    padding: 22px 20px;
  }

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

  .hub-card.featured {
    display: flex;
    grid-column: auto;
  }

  .hub-card.featured figure {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hub-card.featured h2 {
    font-size: 18px;
  }

  .hub-card:last-child:not(.featured) {
    display: flex;
    grid-column: auto;
  }

  .hub-card:last-child:not(.featured) figure {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hub-bottom {
    align-items: stretch;
    flex-direction: column;
    padding: 25px 22px;
  }

  .hub-bottom .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
