/* paperreach. — stylesheet
   Plain, typographic, one accent colour. No inline styles (CSP). */

:root {
  --bg: #f2f1ec;
  --panel: #e6e4dd;
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #3b3b38;
  --muted: #6a6964;
  --soft: #d3d1c8;
  --blue: #2a44d6;
  --blue-2: #1d33b3;
  --error: #b3261e;
  --error-bg: #f7e3e0;
  --ok-bg: #e3e8fb;
  --rule: 1.5px solid var(--ink);
  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:lang(ja) body, body:lang(ja) { line-break: strict; word-break: auto-phrase; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; 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; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.label, .kicker { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.kicker { color: var(--blue); font-size: 15px; }
:lang(ja) .label, :lang(ja) .kicker { letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.wordmark { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: 18px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.lang-select { appearance: none; border: 0; background: transparent; padding: 4px 16px 4px 2px; font-size: 18px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 5px center, right 0 center; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 34px; background: var(--blue); color: var(--white); border: 0; border-radius: 0; font-size: 20px; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { appearance: none; background: none; border: 0; padding: 4px 0; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 400; }
.lede { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-2); max-width: 30ch; }
.hero .btn { margin-top: 12px; }

.medium { margin: 0; }
.medium-stage { position: relative; aspect-ratio: 1.45; background: var(--panel); overflow: hidden; container-type: inline-size; }
.paper { position: absolute; width: 42cqw; aspect-ratio: 210 / 297; left: 50%; top: 50%; }
.paper-back { background: #c5c2b9; transform: translate(-44%, -48%) rotate(8deg); }
.paper-front { background: var(--white); border: 1px solid #cfcdc4; transform: translate(-56%, -50%) rotate(-7deg); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.paper-spec { position: absolute; top: 5.5%; left: 8%; font-size: 2.2cqw; color: #8a8983; }
.paper-band { position: absolute; left: 8%; right: 8%; bottom: 6%; border-top: 1.5px solid var(--ink); padding-top: 2.4%; display: flex; flex-direction: column; gap: .4cqw; }
.paper-small { font-size: 1.5cqw; letter-spacing: .04em; text-transform: uppercase; }
.paper-brand { font-size: 3.4cqw; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.caption-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Figures ---------- */
.figures { border-top: var(--rule); }
.figures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 32px; }
.figures strong { display: block; font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.figures span { font-size: clamp(15px, 1.6vw, 19px); color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { border-top: var(--rule); padding: clamp(40px, 6vw, 72px) 0; }
.section .label { margin-bottom: clamp(24px, 3vw, 36px); }
.section h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: clamp(24px, 3vw, 40px); }
.section-ink { background: var(--panel); }

.explainer { margin: 0 0 clamp(28px, 4vw, 48px); background: var(--panel); }
.explainer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--soft); }
.step-n { font-size: 14px; color: var(--blue); }
.steps strong { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.steps span:last-child { color: var(--muted); }

/* ---------- Pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th { text-align: left; font-weight: 400; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px; }
.price-table td, .price-table tbody th { padding: 18px 0; border-top: 1px solid var(--soft); text-align: left; vertical-align: middle; }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 1px solid var(--soft); }
.price-table .qty, .price-table .amount { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.price-table .per { color: var(--muted); }
.price-table td:last-child { text-align: right; }
.price-table tr.is-current .qty, .price-table tr.is-current .amount { color: var(--blue); }
.price-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; }

/* ---------- Forms ---------- */
.request { max-width: 920px; }
.block { border: 0; border-top: 1px solid var(--soft); margin: 0; padding: 28px 0; min-width: 0; }
.block legend { padding: 0; margin-bottom: 20px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.02em; float: left; width: 100%; }
.block legend + * { clear: both; }
.block-n { color: var(--blue); font-size: 15px; letter-spacing: 0; vertical-align: middle; margin-right: 6px; }
.block-body { display: flex; flex-direction: column; gap: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
:lang(ja) .field-label { letter-spacing: 0; }
.req { color: var(--blue); margin-left: 3px; }
.opt { color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--white); border: 1px solid #b4b2a9; border-radius: 0; font-size: 17px;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; }
.lang-select { min-height: 0; width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error-msg { font-size: 14px; color: var(--error); }
.error-msg:empty { display: none; }

.qty-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.qty-input input { width: 11ch; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; border: 1px solid var(--soft); }
.segmented button { padding: 9px 6px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--soft); }
.segmented button:hover { background: var(--white); color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.segmented button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--ink); background: var(--white); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 10px; height: 10px; background: var(--blue); transform: scale(0); transition: transform .12s; }
.check input:checked::before { transform: scale(1); }
.consent { font-size: 15px; color: var(--ink-2); }

.estimate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 20px; border: var(--rule); background: var(--white); }
.estimate[hidden] { display: none; }
.next-steps { padding: 16px 20px; border-left: 3px solid var(--blue); background: var(--white); }
.next-steps ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.estimate > span:first-child { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.estimate strong { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.spec { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-top: var(--rule); border-bottom: var(--rule); }
.spec div { padding: 14px 14px 14px 0; }
.spec div + div { padding-left: 14px; border-left: 1px solid var(--soft); }
.spec dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; }
.note { font-size: 15px; color: var(--ink-2); }

.dropzone { position: relative; display: grid; place-items: center; min-height: 150px; padding: 24px; background: var(--white); border: 1.5px dashed var(--ink); text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: #f6f7fe; }
.dropzone:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.dropzone.has-file { display: none; }
.file-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.dz-empty strong { font-size: 20px; font-weight: 500; }
.dz-btn { padding: 8px 18px; border: 1.5px solid var(--ink); font-size: 15px; }
.dropzone:hover .dz-btn { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dz-file { display: grid; gap: 12px; padding: 16px; background: var(--white); border: 1px solid #b4b2a9; }
.dz-file[hidden] { display: none; }
.dz-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 190 / 30; background: var(--white); outline: 1px dashed var(--ink); overflow: hidden; }
.dz-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); }
.dz-preview img[hidden], .dz-pdf[hidden] { display: none; }
.dz-pdf { font-family: var(--mono); font-size: 13px; padding: 3px 10px; border: 1px solid var(--ink); }
.dz-warn { padding: 10px 12px; font-size: 14px; background: #fbf1dc; border-left: 3px solid #a86a00; }
.dz-warn[hidden] { display: none; }
.dz-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.dz-name { font-weight: 500; overflow-wrap: anywhere; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { position: relative; cursor: pointer; }
.tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag span { display: block; padding: 8px 14px; border: 1px solid var(--ink); background: var(--white); font-size: 15px; }
.tag input:checked + span { background: var(--ink); color: var(--white); }
.tag input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.submit-row p { font-size: 15px; max-width: 40ch; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.form-unavailable { padding: 14px 16px; margin-bottom: 8px; background: var(--error-bg); border-left: 3px solid var(--error); font-size: 15px; }
.form-unavailable[hidden] { display: none; }
.form-status { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--white); }
.form-status:empty { display: none; }
.form-status.is-ok { border-left-color: var(--blue); background: var(--ok-bg); }
.form-status.is-error { border-left-color: var(--error); background: var(--error-bg); }
.form-status strong { display: block; font-weight: 600; margin-bottom: 4px; }

.partners-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 32px; }
.partners-head h2 { margin-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 18px; }
.facts li + li::before { content: "/"; margin: 0 12px; color: var(--muted); }
.request-light { display: flex; flex-direction: column; gap: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--soft); }
.ask { max-width: 920px; margin-top: clamp(40px, 6vw, 72px); }
.ask-title { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.faq details { border-bottom: 1px solid var(--soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: clamp(18px, 1.8vw, 22px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--rule); padding: 32px 0 40px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px 40px; }
.footer-links { display: flex; gap: 24px; }
.footer-base { grid-column: 1 / -1; font-size: 14px; }

/* ---------- Legal pages, 404 ---------- */
.legal-main { padding: clamp(40px, 6vw, 72px) 0; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin: 20px 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.back-link { color: var(--blue); }
.draft-banner { padding: 16px 18px; background: #fbf1dc; border-left: 3px solid #a86a00; }
.draft-banner p { margin-top: 4px; font-size: 15px; }
mark.ph { background: #fff1b8; color: var(--ink); padding: 0 4px; font-family: var(--mono); font-size: .88em; }
.notfound { padding: clamp(60px, 10vw, 140px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.notfound h1 { font-size: clamp(34px, 5vw, 60px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div, .spec div + div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--soft); }
  .spec div:nth-child(-n+2) { border-top: 0; }
  .spec div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--soft); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wordmark { font-size: 26px; }
  .nav { font-size: 17px; gap: 18px; }
  .nav-wide { display: none; }
  .lang-select { font-size: 17px; }
  .btn { font-size: 19px; }
  .fields { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: repeat(3, 1fr); }
  .segmented button:nth-child(4) { border-left: 0; }
  .segmented button:nth-child(n+4) { border-top: 1px solid var(--soft); }
  .price-table .col-per, .price-table .per { display: none; }
  .figures span { font-size: 14px; }
}

/* Windows high contrast */
@media (forced-colors: active) {
  .btn, .segmented button[aria-pressed="true"], .tag input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .medium-stage, .paper, .dz-preview img { forced-color-adjust: none; }
  .dropzone, .dz-file, .estimate { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.price-table tbody th { color: var(--ink); text-transform: none; letter-spacing: -0.02em; }
.hint { font-size: 15px; color: var(--muted); }

/* ---------- Customer quotation page (approve.html) ---------- */
.approve { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 24px; }
.approve h1 { font-size: clamp(32px, 4vw, 48px); overflow-wrap: anywhere; }
.approve [hidden] { display: none !important; }
.approve-test { padding: 12px 16px; background: #e8eefc; border-left: 3px solid var(--blue); font-size: 15px; }
.approve-state { padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--white); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.approve-state.is-ok { border-left-color: var(--blue); background: var(--ok-bg); }
.approve-state.is-error { border-left-color: var(--error); background: var(--error-bg); }
.approve-block { border-top: var(--rule); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.approve-block h2 { font-size: 24px; }
.approve-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.approve-kv dt { color: var(--muted); }
.approve-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.approve-proof img { display: block; max-width: 100%; height: auto; border: var(--rule); background: var(--white); }
.approve-terms { max-height: 340px; overflow: auto; padding: 16px 18px; border: var(--rule); background: var(--white); font-size: 15px; }
.approve-terms p + p { margin-top: 10px; }
.approve-checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: var(--rule); color: var(--ink); background: var(--white); text-decoration: none; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.small { font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .approve-kv { grid-template-columns: 1fr; gap: 2px; } .approve-kv dd { margin-bottom: 8px; } }
