:root {
  color-scheme: light;
  --paper: #ffffff;
  --white: #ffffff;
  --navy: #182a3c;
  --ink: #182a3c;
  --muted: #526170;
  --line: #d5dde3;
  --accent: #c54838;
  --accent-ink: #a83224;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 6px; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
::selection { color: var(--white); background: var(--navy); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 10;
  left: 20px;
  top: 12px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .page-shell, .footer-inner { width: min(calc(100% - 80px), var(--max)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 32px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--navy); text-decoration: none; flex-shrink: 0; }
.brand-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.brand-description { margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 1.6; }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.back-link { padding-block: 12px; text-decoration: none; }
.header-contact { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 32px; padding: 10px 20px; background: var(--accent); color: var(--white); text-decoration: none; }
.header-contact:hover, .primary-link:hover { background: var(--accent-ink); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.guide-hero { display: grid; grid-template-columns: 1.28fr 1fr; gap: 70px; align-items: end; padding: 69px 0 57px; }
.eyebrow { margin-bottom: 26px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
h1 { font-size: 64px; line-height: 1.32; font-weight: 600; }
.hero-intro { padding-bottom: 6px; font-size: 15px; }
.hero-summary { margin-bottom: 15px; font-size: 18px; font-weight: 600; line-height: 1.8; }
.text-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 25px; padding-block: 7px; font-size: 14px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--navy); }
.material-visual { margin-bottom: 88px; }
.material-visual img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #f4f6f8; }
.material-visual figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.article-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; align-items: start; }
.article-nav { position: sticky; top: 32px; padding-top: 2px; }
.article-nav-label { margin-bottom: 23px; color: var(--navy); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.article-nav nav { display: flex; flex-direction: column; gap: 4px; }
.article-nav a { display: flex; gap: 16px; align-items: baseline; padding-block: 11px; text-decoration: none; font-size: 14px; }
.article-nav a span { color: var(--accent-ink); font-family: Arial, sans-serif; font-size: 12px; }
.article-nav a:hover { text-decoration: underline; }
.guide-content { min-width: 0; }
.guide-section { padding-bottom: 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.section-number { margin-bottom: 15px; color: var(--accent-ink); font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.guide-section h2 { margin-bottom: 28px; font-size: 36px; line-height: 1.5; }
.guide-section h3 { margin: 35px 0 15px; font-size: 19px; line-height: 1.7; }
.guide-section > p:not(.section-number) + p { margin-top: 20px; }
.guide-section > p { line-height: 1.95; }
.guide-section p a { color: var(--navy); overflow-wrap: anywhere; }
.comparison-wrap { margin: 32px 0 28px; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.85; }
.comparison-table caption { text-align: left; padding-bottom: 14px; color: var(--muted); font-size: 12px; }
.comparison-table th, .comparison-table td { padding: 19px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comparison-table thead th { padding-top: 17px; padding-bottom: 17px; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--navy); color: var(--navy); font-weight: 600; }
.comparison-table th:first-child { width: 20%; padding-left: 0; }
.comparison-table th:last-child, .comparison-table td:last-child { padding-right: 0; }
.comparison-table tbody th { font-size: 14px; font-weight: 500; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom-color: var(--navy); }
.approval-note { padding: 19px 0 19px 20px; border-left: 3px solid var(--accent); font-size: 15px; font-weight: 600; }
.guide-section > .event-note { color: var(--muted); font-size: 14px; }
.next-section { margin-bottom: 38px; }
.primary-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 62px; margin-top: 28px; min-height: 58px; padding: 15px 25px; background: var(--accent); color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.sources { margin-bottom: 90px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sources h2 { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.sources ul { display: grid; gap: 6px; margin: 13px 0; padding-left: 16px; }
.site-footer { background: var(--navy); color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-block: 38px; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.footer-brand span { font-size: 12px; }
.footer-inner p { font-size: 12px; }
.footer-back { display: flex; align-items: center; gap: 22px; padding-block: 10px; font-size: 12px; text-decoration: none; }
.site-footer a:focus-visible { outline-color: var(--paper); }

@media (max-width: 1100px) {
  .guide-hero { grid-template-columns: 1.18fr 1fr; gap: 32px; }
  h1 { font-size: 52px; }
  .hero-summary { font-size: 16px; }
  .desktop-break { display: none; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .guide-section h2 { font-size: 32px; }
  .footer-inner { gap: 24px; }
}

@media (max-width: 900px) {
  .guide-hero { grid-template-columns: 1fr; gap: 27px; padding-top: 52px; padding-bottom: 38px; }
  .hero-intro { max-width: 620px; }
  .hero-summary { font-size: 18px; }
  .material-visual { margin-bottom: 54px; }
  .article-layout { display: block; }
  .article-nav { position: static; padding-bottom: 28px; margin-bottom: 43px; border-bottom: 1px solid var(--line); }
  .article-nav-label { margin-bottom: 10px; }
  .article-nav nav { flex-direction: row; flex-wrap: wrap; gap: 5px 26px; }
  .article-nav a { gap: 9px; }
  .guide-content { max-width: 760px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 18px; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 720px) {
  .header-inner, .page-shell, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; gap: 16px; }
  .brand-name { font-size: 16px; }
  .brand-description { font-size: 12px; }
  .header-nav { gap: 18px; font-size: 12px; }
  .header-contact { gap: 20px; padding: 10px 14px; }
  .breadcrumb { font-size: 12px; margin-top: 20px; }
  .eyebrow { margin-bottom: 21px; font-size: 12px; }
  h1 { font-size: 43px; line-height: 1.4; }
  .guide-hero { padding-top: 40px; gap: 23px; }
  .hero-intro { font-size: 14px; }
  .hero-summary { font-size: 16px; }
  .text-link { margin-top: 20px; }
  .material-visual { margin-bottom: 39px; }
  .material-visual figcaption { font-size: 12px; }
  .article-nav { margin-bottom: 38px; padding-bottom: 23px; }
  .article-nav nav { gap: 0 18px; }
  .article-nav a { font-size: 14px; }
  .guide-section { margin-bottom: 43px; padding-bottom: 43px; font-size: 15px; }
  .guide-section h2 { font-size: 29px; margin-bottom: 23px; }
  .guide-section h3 { font-size: 18px; margin-top: 31px; }
  .comparison-table { font-size: 14px; }
  .comparison-table th, .comparison-table td { padding: 16px 10px; }
  .comparison-table th:first-child { width: 22%; }
  .comparison-table thead th { font-size: 14px; }
  .comparison-table tbody th { font-size: 14px; }
  .approval-note { font-size: 14px; padding-left: 16px; }
  .primary-link { gap: 42px; font-size: 14px; }
  .sources { margin-bottom: 58px; }
  .footer-inner { padding-block: 28px; }
}

@media (max-width: 430px) {
  .back-link { display: none; }
  h1 { font-size: 36px; }
  .guide-hero { padding-top: 35px; }
  .hero-summary { font-size: 15px; }
  .guide-section h2 { font-size: 27px; }
  .comparison-table th, .comparison-table td { padding-inline: 7px; }
  .comparison-table th:first-child { width: 22%; }
  .comparison-table thead th { font-size: 14px; }
  .comparison-table tbody th { font-size: 14px; }
  .footer-brand { font-size: 18px; gap: 0; }
  .footer-back { font-size: 12px; gap: 12px; }
}

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

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

/* Keep the full service name and a clear inquiry link on narrow screens. */
@media (max-width: 900px) {
  .back-link { display: none; }
}
@media (max-width: 720px) {
  .header-nav { font-size: 14px; gap: 0; }
  .header-inner { gap: 12px; }
  .header-contact { min-height: 44px; padding-inline: 12px; gap: 0; white-space: nowrap; }
  .contact-long, .contact-arrow { display: none; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-inner p { font-size: 12px; }
  .footer-back { font-size: 14px; }
}
@media (max-width: 375px) {
  .brand-name { font-size: 15px; }
  .header-contact { padding-inline: 8px; }
}
