:root {
  --paper: #f8f5ed;
  --paper-deep: #efeadf;
  --white: #fffdf8;
  --ink: #173f43;
  --text: #283e40;
  --muted: #5a6b6b;
  --line: #d0d5c9;
  --accent: #bf4b25;
  --accent-wash: #f4e2d4;
  --teal-wash: #e6eeE7;
  --radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; font-size: 16px; line-height: 1.9; letter-spacing: .025em; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
input, select, textarea { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #e2cbb3; color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
h1, h2 { font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.3vw, 3.65rem); letter-spacing: .035em; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin-bottom: 1.25em; }
ul, ol { padding-left: 1.5em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; color: white; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Yu Mincho", "YuMincho", serif; font-size: 1.5rem; font-weight: 700; line-height: 1.35; letter-spacing: .06em; flex-shrink: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 44px; border: 1.5px solid var(--ink); border-radius: 4px; font-family: sans-serif; font-size: 18px; line-height: 1; color: var(--ink); transform: rotate(-5deg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 26px; font-size: .86rem; font-weight: 600; }
.nav a { text-decoration: none; padding: 7px 0; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.ad-note { margin-block: 0; margin-inline: auto; padding: 9px 0; font-size: .72rem; line-height: 1.65; color: var(--muted); border-bottom: 1px solid var(--line); }
.ad-note .wrap, .ad-note.wrap { text-align: right; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: center; padding-block: 66px 74px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .16em; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero h1 { margin-bottom: 24px; }
.lead { color: var(--muted); font-size: 1rem; line-height: 2.05; max-width: 35em; }
.hero-visual { position: relative; width: 100%; }
.hero-visual img { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--white); font-size: .9rem; font-weight: 700; line-height: 1.55; text-align: center; text-decoration: none; transition: background .18s, border-color .18s; }
.button:hover { color: var(--white); background: #24575a; border-color: #24575a; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--teal-wash); border-color: var(--ink); }
main > section:not(.hero), main > .wrap > section:not(.hero), section.wrap:not(.hero) { margin-block: 68px; }
.section-head { display: block; padding-bottom: 21px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head p { margin: 12px 0; max-width: 48em; color: var(--muted); font-size: .85rem; }
.section-head p.eyebrow { color: var(--accent); font-size: .75rem; margin-bottom: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.tool-panel { padding: 29px; background: var(--paper-deep); border-top: 3px solid var(--ink); }
.tool-panel h2, .tool-panel h3 { margin-bottom: 14px; }
.tool-panel > p { font-size: .9rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-block: 22px; }
.form-grid label, .tool-panel form > label { display: block; font-size: .86rem; line-height: 1.65; font-weight: 700; }
label input:not([type="checkbox"]):not([type="radio"]), label select, label textarea, .form-grid input:not([type="checkbox"]):not([type="radio"]), .form-grid select { display: block; width: 100%; min-height: 46px; margin-top: 8px; padding: 10px 12px; border: 1px solid #8c9a94; border-radius: var(--radius); background: var(--white); color: var(--ink); font-weight: 400; line-height: 1.4; }
input[type="date"] { min-width: 0; }
.result { margin-top: 24px; padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--white); font-size: .94rem; }
.result > :last-child { margin-bottom: 0; }
.result strong { color: var(--ink); }
.result h3 { font-family: inherit; font-size: 1.08rem; }
.small { font-size: .8rem; color: var(--muted); line-height: 1.8; }
.note { padding-left: 15px; border-left: 2px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.9; }
.warning { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-wash); color: #683721; font-size: .9rem; line-height: 1.85; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: block; padding-top: 10px; text-decoration: none; }
.step > span:last-child { font-size: .83rem; color: var(--accent); }
.step .number { display: block; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; line-height: 1; margin-bottom: 22px; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: .9rem; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.article-card { position: relative; display: block; padding: 26px 36px 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-card .tag { display: inline-block; margin-bottom: 13px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.article-card h3 { margin-bottom: 11px; font-size: 1.14rem; line-height: 1.75; }
.article-card p { margin-bottom: 0; color: var(--muted); font-size: .84rem; line-height: 1.9; }
.article-card .arrow { display: block; margin-top: 12px; color: var(--accent); font-size: .8rem; }
.article-card:hover h3 { color: var(--accent); }
.article-card:hover .arrow { right: -3px; }
.reading { width: min(760px, calc(100% - 64px)); margin-inline: auto; }
.page-head { padding-block: 45px 34px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.65; margin-bottom: 20px; }
.page-head .lead { margin-bottom: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .75rem; line-height: 1.7; padding-block: 22px 0; }
.breadcrumb a { color: var(--muted); }
.prose { margin-bottom: 68px; line-height: 2.05; overflow-wrap: anywhere; }
.prose h2 { margin-top: 48px; padding-bottom: 15px; margin-bottom: 23px; border-bottom: 1px solid var(--line); font-size: 1.65rem; line-height: 1.65; }
.prose h3 { margin-top: 32px; margin-bottom: 17px; font-size: 1.15rem; line-height: 1.8; }
.prose p { margin-bottom: 1.5em; }
.prose ul, .prose ol { margin-block: 20px 28px; }
.prose li { padding-left: 4px; margin-bottom: 12px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose a:not(.button) { overflow-wrap: anywhere; }
.prose table, .comparison table { width: 100%; border-collapse: collapse; margin-block: 22px; font-size: .85rem; line-height: 1.85; text-align: left; }
.prose th, .prose td, .comparison th, .comparison td { padding: 15px 17px; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th, .comparison th { color: var(--ink); background: var(--paper-deep); font-weight: 700; }
.prose thead th, .comparison thead th { border-top: 2px solid var(--ink); }
.comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 28px; }
.comparison table { min-width: 640px; margin: 0; }
.checklist { margin-block: 24px; border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 15px; align-items: flex-start; padding: 17px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .94rem; line-height: 1.85; }
.checklist label:hover { background: var(--paper-deep); }
.checklist input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 5px 0 0; }
.checklist small { display: block; color: var(--accent); font-size: .72rem; }
.check-count { display: inline-block; padding: 7px 14px; border-radius: 2px; background: var(--teal-wash); color: var(--ink); font-size: .87rem; font-weight: 700; }
.callout { padding: 28px 30px; margin-block: 34px; border: 1px solid var(--line); background: var(--white); }
.callout h2, .callout h3 { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.sources { margin-top: 44px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.9; }
.sources h2, .sources h3 { border: 0; padding: 0; margin-top: 0; font-family: inherit; font-size: .9rem; }
.sources li { margin-bottom: 9px; }
.sources a { overflow-wrap: anywhere; }
.toc { margin-block: 28px; padding: 24px 28px; background: var(--paper-deep); font-size: .88rem; }
.toc h2, .toc h3, .toc > p { font-family: inherit; font-size: .9rem; margin: 0 0 10px; padding: 0; border: 0; font-weight: 700; }
.toc ul, .toc ol { margin: 0; }
.toc li { margin-bottom: 5px; }
.status-banner { padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--accent-wash); color: #683721; font-size: .85rem; line-height: 1.85; }
.site-footer { margin-top: 80px; padding-block: 45px 26px; border-top: 1px solid var(--ink); background: var(--paper-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.site-footer .logo { font-size: 1.2rem; }
.site-footer p { max-width: 30em; margin-block: 15px; color: var(--muted); font-size: .76rem; line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 23px; max-width: 50%; font-size: .78rem; }
.footer-links a { text-decoration: none; }
.site-footer small { display: block; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
@media (max-width: 880px) {
  .site-header > .wrap { min-height: 90px; flex-wrap: wrap; gap: 10px; padding-block: 20px; }
  .logo { font-size: 1.3rem; }
  .nav { gap: 6px 18px; font-size: .78rem; }
  .hero { gap: 18px; padding-block: 50px; }
  .hero h1 { font-size: clamp(2rem, 4.7vw, 2.8rem); }
  .section-head { display: block; }
  .section-head p { margin-top: 13px; max-width: none; }
  .tool-panel { padding: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { gap: 22px; }
  .article-grid { column-gap: 30px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap, .reading { width: calc(100% - 40px); }
  .site-header > .wrap { display: block; padding-block: 18px 14px; }
  .logo { font-size: 1.26rem; gap: 10px; }
  .logo-mark { width: 30px; height: 35px; font-size: 15px; }
  .nav { justify-content: flex-start; gap: 5px 18px; margin-top: 13px; font-size: .75rem; }
  .nav a { padding: 2px 0; }
  .ad-note, .ad-note .wrap, .ad-note.wrap { text-align: left; font-size: .67rem; }
  .hero { grid-template-columns: 1fr; padding-block: 37px 32px; gap: 14px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.55; margin-bottom: 19px; }
  .eyebrow { font-size: .67rem; margin-bottom: 17px; }
  .lead { font-size: .92rem; }
  .hero-visual { width: min(100%, 390px); margin-inline: auto; }
  .hero-visual img { max-height: 300px; object-fit: contain; }
  .button-row { gap: 10px; margin-top: 23px; }
  .button { min-height: 47px; padding: 11px 17px; font-size: .83rem; }
  main > section:not(.hero), main > .wrap > section:not(.hero), section.wrap:not(.hero) { margin-block: 45px; }
  .section-head { padding-bottom: 17px; margin-bottom: 23px; }
  .section-head h2 { font-size: 1.55rem; }
  .section-head p { font-size: .8rem; }
  .tool-grid, .article-grid { grid-template-columns: 1fr; gap: 23px; }
  .tool-panel { padding: 22px 20px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
  .form-grid label { font-size: .79rem; }
  .form-grid select, .form-grid input { font-size: 16px; }
  .result { padding: 17px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { position: relative; min-height: 88px; padding: 19px 0 19px 58px; border-bottom: 1px solid var(--line); }
  .step .number { position: absolute; left: 0; top: 25px; font-size: 2rem; }
  .step h3 { font-size: 1.03rem; margin-bottom: 7px; }
  .step p { margin-bottom: 0; font-size: .85rem; }
  .article-grid { gap: 0; }
  .article-card { padding-block: 23px; }
  .article-card h3 { font-size: 1.07rem; }
  .page-head { padding-block: 30px 25px; margin-bottom: 28px; }
  .page-head h1 { font-size: 1.8rem; line-height: 1.65; }
  .breadcrumb { font-size: .69rem; }
  .prose h2 { font-size: 1.4rem; margin-top: 35px; }
  .prose h3 { font-size: 1.07rem; }
  .prose th, .prose td, .comparison th, .comparison td { padding: 12px; }
  .callout { padding: 21px; }
  .toc { padding: 21px 23px; }
  .footer-inner { display: block; }
  .footer-links { justify-content: flex-start; max-width: none; gap: 12px 20px; margin-top: 24px; }
  .site-footer { margin-top: 52px; padding-top: 32px; }
}
@media (max-width: 360px) {
  .wrap, .reading { width: calc(100% - 32px); }
  .form-grid { grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color: #111; background: white; }
  body { color: #111; background: white; font-size: 10pt; line-height: 1.6; }
  .wrap, .reading { width: 100%; max-width: none; }
  .site-header, .nav, .ad-note, .site-footer, .button-row, .button, .hero-visual, .skip-link, .toc, .status-banner { display: none !important; }
  .page-head { padding: 0 0 12pt; margin-bottom: 18pt; }
  .page-head h1, h1 { font-size: 22pt; }
  h2, .prose h2 { font-size: 15pt; break-after: avoid; }
  h3 { font-size: 12pt; break-after: avoid; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .checklist label { break-inside: avoid; padding-block: 7pt; }
  .checklist input[type="checkbox"] { width: 12pt; height: 12pt; flex-basis: 12pt; }
  .tool-grid, .steps, .hero, .article-grid { display: block; }
  .tool-panel, .callout, .warning, .note, .result { background: white; color: #111; break-inside: avoid; border-color: #888; }
  .comparison { overflow: visible; }
  .comparison table { min-width: 0; font-size: 9pt; }
  a { color: #111; }
  .sources { font-size: 8pt; }
}
