:root {
  color-scheme: light;
  --navy: #111d3a;
  --ink: #172440;
  --muted: #52607a;
  --accent: #254ecb;
  --sky: #a9bfff;
  --line: #dce3f0;
  --paper: #fff;
  --canvas: #f5f7fc;
  --loss: #982e3e;
  font-family: "Inter", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; padding: 8px 14px; background: white; transform: translateY(-110%); }
.skip:focus { transform: none; }
.topbar { background: var(--navy); border-bottom: 1px solid #394761; color: white; }
.nav, .footer-inner { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav a, .footer a { text-decoration: none; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 760; letter-spacing: -.015em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #c8d6ff; color: var(--navy); font-size: 1.15rem; }
.nav nav { display: flex; gap: 26px; font-size: .82rem; color: #dce4f8; }
.nav nav a:hover, .footer a:hover { text-decoration: underline; }
.hero { background: var(--navy); color: white; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); gap: clamp(34px, 6vw, 92px); align-items: center; padding-block: 65px 72px; }
.audience { color: #c4d3ff; font-size: .85rem; font-weight: 700; margin-bottom: 15px; }
h1 { font-size: clamp(2.16rem, 4.55vw, 4.25rem); line-height: 1.18; letter-spacing: -.04em; font-weight: 750; }
.lede { margin-top: 22px; max-width: 34rem; color: #dce5fb; font-size: clamp(.94rem, 1.3vw, 1.08rem); }
.hero-actions, .actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 720; cursor: pointer; text-decoration: none; }
.primary { background: #cbd8ff; color: #172345; }
.primary:hover { background: #e2e9ff; }
.ghost { background: transparent; border-color: #7484ab; color: white; }
.ghost:hover { background: #273753; }
.ink { background: var(--accent); color: white; }
.ink:hover { background: #1739a5; }
.secondary { background: white; color: #233d85; border-color: #ced8f0; }
.secondary:hover { background: #f0f4ff; }
.button:disabled { opacity: .65; cursor: wait; }
.hero-detail { font-size: .78rem; margin-top: 16px; color: #c2cde7; }
.hero-detail span { margin-inline: 6px; }
.hero-visual { position: relative; isolation: isolate; display: flex; align-items: end; overflow: hidden; min-height: 400px; border: 1px solid #54678f; border-radius: 18px; background: linear-gradient(141deg, #263b6f, #101a32 72%); }
.hero-visual img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.report-preview { width: min(335px, calc(100% - 38px)); margin: 19px; padding: 16px 18px 17px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 34px #080f238c; }
.preview-top, .preview-stats { display: flex; justify-content: space-between; gap: 7px; align-items: baseline; }
.preview-top { font-size: .76rem; font-weight: 760; }
.preview-demo { background: #eaf0ff; color: #2a4487; border-radius: 4px; padding: 3px 6px; font-size: .7rem; }
.preview-url { font-family: "IBM Plex Mono", monospace; font-weight: 650; margin-block: 10px 9px; }
.preview-url span { color: #576a9a; }
.preview-stats { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); }
.preview-stats span { display: block; font-size: .68rem; color: var(--muted); }
.preview-stats strong { font-size: 1.43rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
.preview-loss strong { color: var(--loss); }
.tool-section { padding-block: 49px 66px; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
h2 { font-size: clamp(1.3rem, 2.25vw, 1.85rem); line-height: 1.4; letter-spacing: -.026em; }
.hint { color: var(--muted); margin-top: 6px; font-size: .88rem; }
.text-link { color: #254797; text-underline-offset: 3px; font-size: .84rem; font-weight: 700; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 24px; margin-top: 20px; }
.files, .summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.file-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 13px; padding: 18px; background: #f7f9ff; border: 1px solid #d9e3fa; border-radius: 10px; min-width: 0; }
.file-format { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; background: #e3ebff; color: #2e50a7; font: 700 .83rem "IBM Plex Mono", monospace; }
.file-copy strong, .file-copy small { display: block; }
.file-copy small { font-size: .78rem; color: var(--muted); }
input[type=file] { display: block; width: 100%; min-width: 0; grid-column: 1 / -1; font-size: .82rem; color: #455570; }
input[type=file]::file-selector-button { background: white; border: 1px solid #c5d2ed; border-radius: 6px; padding: 7px 10px; color: #1c3984; font-weight: 700; margin-right: 8px; cursor: pointer; }
.mapping { margin-top: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.mapping summary { cursor: pointer; font-weight: 720; }
.mapping summary span { margin-inline-start: 5px; font-weight: 400; color: var(--muted); font-size: .8rem; }
.mapping label { margin-top: 12px; display: block; }
.mapping input { margin-top: 9px; }
.remove-map { margin-top: 6px; padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.actions { margin-top: 19px; }
.error, .warning { padding: 8px 12px; margin-top: 12px; background: #fff4ed; border-left: 3px solid #c77b4c; color: #803719; font-size: .86rem; }
.summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 12px; }
.sample-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f6f8fc; color: var(--muted); font-size: .88rem; }
.summary div { padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; background: #f6f8fc; }
.summary .summary-loss { background: #fff3f4; border-color: #f3d5da; }
.summary .summary-review { background: #fff8ed; border-color: #f0e2c9; }
.summary dt { font-size: .79rem; color: var(--muted); }
.summary dd { margin: 0; font-size: 1.55rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.summary-loss dd, .loss { color: var(--loss); }
.sort { display: inline-flex; align-items: center; gap: 8px; margin: 13px 0 9px; font-size: .86rem; }
select { color: var(--ink); background: white; border: 1px solid #c4d0e7; border-radius: 7px; padding: 6px 8px; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .82rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #edf2fb; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.url { min-width: 140px; overflow-wrap: anywhere; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loss { font-weight: 760; }
.result-limit { margin-top: 12px; }
.guide { margin-top: 43px; padding-top: 25px; border-top: 1px solid var(--line); }
.guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; counter-reset: steps; margin-block: 16px; }
.guide li { padding: 0 10px 0 32px; position: relative; font-size: .86rem; counter-increment: steps; }
.guide li::before { content: counter(steps); position: absolute; inset-inline-start: 0; width: 23px; height: 23px; border-radius: 50%; background: #e2eaff; color: #2b4a9e; display: grid; place-items: center; font-weight: 740; }
.guide li strong, .guide li span { display: block; }
.guide li span { margin-top: 4px; color: var(--muted); }
.guide .text-link { display: inline-block; margin-top: 8px; }
.guide-return { margin-inline-start: 16px; }
.footer { border-top: 1px solid var(--line); background: white; font-size: .81rem; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 19px; }
.company-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; color: var(--muted); font-size: .86rem; }
.company-facts dt { font-weight: 720; color: var(--ink); }
.company-facts dd { margin: 0; }
:focus-visible { outline: 3px solid #617fee; outline-offset: 3px; }
.hero :focus-visible, .topbar :focus-visible { outline-color: #bfcfff; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .hero-layout { gap: 24px; padding-block: 41px; }
  .hero-visual { min-height: 320px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 55px; }
  .nav nav a:first-child { display: none; }
  .hero-layout, .files, .guide ol { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 34px 29px; }
  .hero-visual { min-height: 268px; }
  .tool-section { padding-block: 30px 42px; }
  .panel { padding: 14px; }
  .summary { gap: 6px; }
  .summary div { padding: 8px; }
  .summary dt { font-size: .73rem; }
}

.measurement{margin:0 0 22px;padding:0 4px;max-width:900px}.measurement-choice{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer}.measurement-choice input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--ink)}.measurement .hint{margin:4px 0 8px}.measurement-detail summary{font-size:13px;text-decoration:underline;cursor:pointer;min-height:36px;padding-top:6px}.measurement-detail p{max-width:760px}.measurement .warning{margin:0 0 8px}

.consultation { display: grid; gap: 8px; margin-top: 20px; max-width: 620px; }
.consultation h3 { margin: 0 0 2px; font-size: 1.12rem; }
.consultation label { font-weight: 720; font-size: .9rem; }
.consultation label span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.consultation input, .consultation textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c4d0e7;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
}
.consultation textarea { resize: vertical; }
.consultation button { justify-self: start; margin-top: 6px; }
.consultation-status { margin-top: 12px; padding: 12px; background: #edf3ff; border-radius: 7px; overflow-wrap: anywhere; }
