:root {
  color-scheme: light;
  --paper: #f9f9f6;
  --white: #fff;
  --ink: #191e26;
  --muted: #56606d;
  --line: #d5d9de;
  --blue: #244bc9;
  --blue-deep: #193993;
  --wash: #edf0f4;
  --midnight: #1c2534;
  --sans: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --figures: "DM Sans", Inter, "Helvetica Neue", Arial, var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { color: var(--blue-deep); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #2f57d7; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.45; line-break: strict; overflow-wrap: break-word; }
.wrap { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; top: 8px; left: 12px; padding: 6px 14px; background: var(--white); z-index: 10; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 73px; }
.bookbrand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 780; font-size: 21px; letter-spacing: -.04em; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.brand-icon { position: relative; isolation: isolate; display: inline-block; width: 27px; height: 30px; flex: none; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; width: 18px; height: 23px; border: 2px solid var(--blue); border-radius: 2px; }
.brand-icon::before { top: 5px; left: 1px; transform: rotate(-12deg); background: #dae3ff; }
.brand-icon::after { top: 1px; left: 7px; background: linear-gradient(var(--blue),var(--blue)) 4px 6px/7px 1px no-repeat, linear-gradient(var(--blue),var(--blue)) 4px 10px/5px 1px no-repeat, var(--paper); }
.mastnav { display: flex; align-items: stretch; gap: 28px; align-self: stretch; }
.mastnav a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.mastnav a:hover, .mastnav a[aria-current="page"] { color: var(--ink); }
.mastnav a[aria-current="page"]::after { content: ""; position: absolute; height: 2px; background: var(--blue); bottom: 14px; left: 0; right: 0; }

.hero { display: grid; grid-template-columns: 1.02fr 1.04fr; gap: clamp(36px, 6vw, 86px); align-items: center; padding-block: clamp(36px, 4.5vw, 67px); }
.hero-copy { min-width: 0; }
.tagline { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; font-weight: 680; letter-spacing: .065em; }
.tagline::before { content: ""; width: 27px; height: 2px; flex: none; background: var(--blue); }
.hero h1 { margin: 17px 0; font-size: clamp(37px, 4.25vw, 64px); font-weight: 780; line-height: 1.24; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.intro { color: var(--muted); font-size: clamp(14px, 1.13vw, 17px); line-height: 1.88; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 21px; min-height: 46px; padding: 10px 18px; border-radius: 5px; background: var(--blue); color: var(--white); font-size: 14px; line-height: 1.5; font-weight: 690; text-decoration: none; transition: background-color .15s ease; }
.action:hover { color: #fff; background: var(--blue-deep); }
.hero .action { margin-top: 25px; }
.action-arrow { font: 500 18px/1 var(--figures); }
.cover { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1.59; background: #dce3eb; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.calculator-section { padding-block: clamp(29px, 3.3vw, 48px) clamp(26px, 2.8vw, 40px); background: var(--wash); border-block: 1px solid var(--line); }
.section-intro { margin-bottom: 19px; }
.section-intro h2, .guide-section > h2 { font-size: clamp(22px, 2.25vw, 34px); letter-spacing: -.045em; font-weight: 740; }
.section-intro p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); align-items: stretch; background: var(--white); border: 1px solid #d1d7df; border-radius: 10px; overflow: hidden; }
.panel { min-width: 0; margin: 0; padding: 21px clamp(20px, 2.65vw, 36px) 22px; }
.fields-head, .calc-row { display: grid; align-items: center; grid-template-columns: .85fr 1.17fr .9fr; gap: clamp(10px, 1.6vw, 28px); }
.fields-head { color: var(--muted); padding-bottom: 8px; font-size: 12px; font-weight: 690; }
.calc-row { border-top: 1px solid #e3e6eb; padding: 9px 0; }
.line-name { font-size: 14px; font-weight: 680; }
.input-unit { position: relative; display: block; min-width: 0; }
.input-unit input { display: block; width: 100%; height: 41px; border: 1px solid #bfc7d3; border-radius: 5px; padding: 7px 32px 7px 10px; background: #fbfcfe; color: var(--ink); font: 550 17px/1.4 var(--figures); font-variant-numeric: tabular-nums; text-align: right; }
.input-unit .unit { position: absolute; pointer-events: none; top: 50%; transform: translateY(-50%); right: 9px; font-size: 12px; line-height: 1; color: var(--muted); }
.input-unit:has(input[name="travelCount"]) input { padding-right: 41px; }
.input-unit input:focus { border-color: var(--blue); background: var(--white); }
.input-unit input:disabled { color: #4d5969; background: #eef1f5; border-color: #d5dae1; opacity: 1; -webkit-text-fill-color: #4d5969; }
.input-unit input[aria-invalid="true"] { border-color: #a32929; }
.switch { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.switch input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--blue); }
.form-error { color: #972426; line-height: 1.7; font-size: 13px; margin-top: 5px; }
.form-error:empty { display: none; }
.receipt { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 24px clamp(20px, 2.6vw, 36px); background: var(--midnight); color: #fff; }
.receipt h3 { color: #e0e6f3; font-size: 14px; font-weight: 650; }
.receipt output { display: block; font: 560 clamp(32px, 3.85vw, 55px)/1.18 var(--figures); letter-spacing: -.047em; margin: 5px 0 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipt dl { padding-top: 9px; border-top: 1px solid #4c5768; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 13px; line-height: 1.58; }
.receipt dt { color: #d5dceb; }
.receipt dd { font-family: var(--figures); font-variant-numeric: tabular-nums; }
.receipt p { margin-top: 10px; font-size: 11px; color: #c3ccda; }
.calc-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.calc-foot a { color: var(--muted); }
.calculator-section noscript p { margin: 8px 0; }

.guide-section { padding-block: clamp(37px, 5vw, 70px) clamp(48px, 6vw, 85px); }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 22px; }
.guide-card { position: relative; display: block; padding: 17px 38px 20px 0; border-block: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-card h3 { font-size: clamp(17px, 1.55vw, 22px); font-weight: 700; letter-spacing: -.03em; }
.guide-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.guide-arrow { position: absolute; top: 14px; right: 4px; font: 400 27px/1.2 var(--figures); color: var(--blue); transition: transform .15s; }
.guide-card:hover .guide-arrow { transform: translateX(4px); }
.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 24px 0 30px; }
.footgrid, .footlinks, .publisher { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.footgrid { justify-content: space-between; }
.publisher { gap: 6px 15px; color: var(--muted); font-size: 12px; }
.publisher a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 720; }
.footlinks a { color: var(--muted); font-size: 12px; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; padding-top: 23px; color: var(--muted); font-size: 12px; }
.crumbs a { color: var(--muted); }
.crumbs > span[aria-hidden] { color: #707a87; }
.article-head { padding: clamp(25px, 3.3vw, 50px) 0 clamp(29px, 3.4vw, 51px); border-bottom: 2px solid var(--ink); }
.article-head h1 { max-width: 17em; margin-bottom: 15px; font-size: clamp(32px, 3.75vw, 55px); letter-spacing: -.05em; line-height: 1.32; font-weight: 755; }
.article-head .intro { max-width: 47em; }
.byline { margin-top: 17px; color: var(--muted); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 770px) minmax(155px, 220px); grid-template-areas: "article nav"; justify-content: space-between; align-items: start; gap: clamp(30px, 5vw, 84px); padding: clamp(28px, 3.4vw, 52px) 0 66px; }
.story { grid-area: article; min-width: 0; }
.story section + section { border-top: 1px solid var(--line); margin-top: clamp(28px, 3.5vw, 44px); padding-top: clamp(22px, 2.8vw, 35px); }
.story h2 { font-size: clamp(21px, 2.15vw, 30px); font-weight: 735; letter-spacing: -.04em; margin-bottom: 12px; }
.story p, .story li { font-size: 15px; line-height: 1.95; }
.story p + p, .story ol + p { margin-top: 12px; }
.story ol { padding-left: 1.55em; margin: 10px 0; }
.story li { padding-left: .12em; }
.story li + li { margin-top: 5px; }
.story li::marker { color: var(--blue); font-family: var(--figures); font-weight: 650; }
.aside { grid-area: nav; position: sticky; top: 20px; border-left: 2px solid var(--line); padding-left: 18px; }
.aside > b { font-size: 14px; }
.aside nav { display: grid; gap: 9px; margin-top: 12px; }
.aside a { color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.6; }
.aside a:hover { color: var(--blue); text-decoration: underline; }
.table-wrap { width: 100%; overflow-x: auto; margin: 16px 0; }
.data { border-collapse: collapse; width: 100%; background: var(--white); font-size: 14px; line-height: 1.76; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data thead th { border-top: 1px solid #a8b3c1; background: var(--wash); font-weight: 680; }
.data td:first-child { font-weight: 650; }
.data tfoot td { font-weight: 720; background: #f1f4fa; }
.data.compare td:first-child { width: 22%; }
.story p.small-note { font-size: 12px; line-height: 1.85; color: var(--muted); }
.download-box { padding: 18px 22px; margin: 16px 0; border: 1px solid #c9d2e5; border-left: 3px solid var(--blue); background: #f0f3fb; }
.download-box .action { margin-top: 13px; }

.product-note { background: var(--white); border-block: 1px solid var(--line); padding: 16px clamp(12px, 1.45vw, 22px) 19px; margin-top: 24px; }
.product-note .sponsorship { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: var(--ink); font-size: 12px; font-weight: 680; }
.sponsorship span { color: var(--muted); font-weight: 450; }
.product-layout { display: grid; grid-template-columns: 244px minmax(0,1fr); gap: clamp(17px, 2.6vw, 35px); align-items: center; }
.product-photo { margin: 0; text-align: center; }
.product-image { display: grid; min-height: 244px; place-items: center; }
.product-image a { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.product-image img { display: block; }
.product-image a::after { content: "「テプラ」Lite LR30の白と青を楽天市場で見る"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-photo figcaption { margin-top: 3px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.product-copy h3 { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; letter-spacing: -.025em; }
.product-copy p { margin-top: 7px; font-size: 14px; line-height: 1.86; }
.product-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 15px; margin: 6px 0 2px; }
.product-links a { display: inline-flex; align-items: center; gap: 3px; min-height: 38px; font-size: 13px; color: var(--muted); }
.product-links a:first-child { font-weight: 690; color: var(--blue); }
.product-copy small { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 30px; }
  .wide-only { display: none; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 154px; gap: 25px; }
  .product-layout { gap: 16px; }
}
@media (max-width: 735px) {
  .wrap { width: calc(100% - 40px); }
  .mast-inner { min-height: 62px; gap: 14px; }
  .mastnav { gap: 14px; }
  .mastnav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .hero-copy { max-width: 32rem; }
  .hero h1 { font-size: clamp(36px, 7.5vw, 49px); margin: 12px 0 13px; }
  .hero .action { margin-top: 16px; }
  .cover { aspect-ratio: 2.5; }
  .cover img { object-position: 50% 49%; }
  .calculator { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .panel { padding: 15px; }
  .fields-head, .calc-row { gap: 8px; }
  .line-name { font-size: 13px; }
  .receipt { padding: 18px; }
  .guide-list { gap: 20px; }
  .article-layout { grid-template-areas: "nav" "article"; grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 24px 0 44px; }
  .aside { position: static; border: 0; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
  .aside nav { display: flex; flex-wrap: wrap; gap: 3px 18px; margin-top: 5px; }
  .aside a { display: flex; align-items: center; min-height: 28px; text-decoration: underline; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { display: block; padding-top: 12px; }
  .bookbrand { font-size: 19px; gap: 8px; }
  .brand-icon { transform: scale(.88); transform-origin: left center; width: 24px; }
  .mastnav { gap: 23px; margin-top: 4px; }
  .mastnav a { min-height: 35px; }
  .mastnav a[aria-current="page"]::after { bottom: 0; }
  .hero { gap: 20px; padding: 25px 0 24px; }
  .tagline { font-size: 11px; gap: 8px; }
  .hero h1 { font-size: clamp(33px, 8vw, 43px); }
  .hero .intro { font-size: 14px; }
  .cover { border-radius: 5px; aspect-ratio: 2.35; }
  .calculator-section { padding: 23px 0 20px; }
  .section-intro { margin-bottom: 14px; }
  .section-intro p { font-size: 13px; }
  .calculator { grid-template-columns: 1fr; }
  .panel { padding: 13px 14px 11px; }
  .calc-row, .fields-head { grid-template-columns: .79fr 1.16fr .92fr; gap: 6px; }
  .calc-row { padding: 7px 0; }
  .input-unit input { height: 41px; padding-left: 5px; font-size: 16px; }
  .switch { font-size: 12px; }
  .receipt { padding: 16px 17px; }
  .receipt output { font-size: clamp(33px, 8vw, 43px); margin: 3px 0 10px; }
  .receipt dl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }
  .receipt dl > div { display: block; font-size: 12px; }
  .receipt p { margin-top: 7px; }
  .calc-foot { display: block; }
  .calc-foot a { display: inline-block; padding: 4px 0; }
  .guide-section { padding-block: 29px 36px; }
  .guide-list { grid-template-columns: 1fr; gap: 0; margin-top: 13px; }
  .guide-card { padding: 15px 34px 16px 0; }
  .guide-card + .guide-card { border-top: 0; }
  .guide-card p { font-size: 13px; }
  .footgrid { display: block; }
  .footer { padding: 18px 0 22px; }
  .footlinks { margin-top: 8px; gap: 4px 14px; }
  .crumbs { gap: 4px 7px; padding-top: 14px; font-size: 11px; }
  .article-head { padding: 20px 0 22px; }
  .article-head h1 { font-size: clamp(27px, 7vw, 36px); margin-bottom: 10px; }
  .byline { margin-top: 12px; font-size: 11px; }
  .story p, .story li { font-size: 14px; }
  .story h2 { font-size: 21px; }
  .data th, .data td { padding: 8px 5px; font-size: 12px; }
  .data.compare thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .data.compare, .data.compare tbody, .data.compare tr, .data.compare td { display: block; width: 100%; }
  .data.compare tr { padding: 12px 13px; border-top: 1px solid var(--line); }
  .data.compare td { padding: 3px 0; border: 0; font-size: 13px; }
  .data.compare td:first-child { width: auto; font-size: 15px; }
  .data.compare td:nth-child(2)::before, .data.compare td:nth-child(3)::before { display: block; font-size: 11px; font-weight: 690; color: var(--muted); }
  .data.compare td:nth-child(2)::before { content: "向いている仕事"; }
  .data.compare td:nth-child(3)::before { content: "確認したい点"; }
  .download-box { padding: 14px; }
  .product-note { padding: 12px 12px 17px; }
  .product-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .product-copy h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .mastnav, .hero .action, .cover, .aside, .product-note, .footer, .calc-foot, .skip { display: none; }
  body, .calculator-section, .receipt { background: white; color: black; }
  .wrap { width: 100%; }
  .hero, .article-layout { display: block; padding-block: 12px; }
  .receipt h3, .receipt dt, .receipt p { color: black; }
  .receipt { border-left: 1px solid #999; }
  .data tr, .calculator { break-inside: avoid; }
}
