:root {
  color-scheme: light;
  --background: #f1f4f6;
  --paper: #fff;
  --ink: #15252f;
  --muted: #50616c;
  --line: #dde5e9;
  --navy: #14222e;
  --teal: #066957;
  --teal-light: #eaf7f2;
  --orange: #ae4524;
  --orange-light: #fff2eb;
  --sans: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font: 16px/1.62 var(--sans);
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #107d6f; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 3; transform: translateY(-180%); background: #fff; padding: .65rem 1rem; }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.03rem; font-weight: 800; color: var(--ink); white-space: nowrap; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; background: var(--navy); border-radius: 8px; }
.brand-mark::before { content: ""; width: 15px; height: 10px; border-block: 2px solid #66e6c1; background: linear-gradient(#66e6c1,#66e6c1) center / 100% 2px no-repeat; }
nav { display: flex; gap: clamp(16px, 2.5vw, 32px); align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 650; }
nav a:hover { color: var(--teal); text-decoration: underline; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; margin: 24px 0 24px; min-height: 303px; border-radius: 19px; background: #12202c; color: #fff; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #12202c 33%, #12202c 38%, #12202cbb 51%, #12202c00 74%); }
.hero-content { padding: 32px clamp(26px, 4.4vw, 57px) 36px; }
.hero-label { color: #83dec7; font-size: .85rem; font-weight: 800; letter-spacing: .03em; margin-bottom: .6rem; }
h1 { font-size: clamp(2.2rem, 4.8vw, 4.12rem); line-height: 1.12; font-weight: 850; letter-spacing: -.045em; }
.hero-copy { margin-top: .95rem; color: #e0e9ee; font-size: .99rem; }
.hero-disclosure { margin-top: .65rem; color: #c9d6de; font-size: .78rem; }
.workspace { display: grid; grid-template-columns: minmax(325px, .76fr) minmax(0, 1.24fr); gap: 24px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 1px 2px #15252f05; }
.settings, .summary, .checklist { padding: 24px; }
h2 { font-size: 1.45rem; font-weight: 820; letter-spacing: -.035em; line-height: 1.3; }
h3 { font-size: 1rem; font-weight: 800; line-height: 1.45; }
fieldset { min-width: 0; border: 0; margin: 20px 0 0; padding: 0; }
fieldset + fieldset { margin-top: 19px; }
legend { margin-bottom: .55rem; padding: 0; font-size: .92rem; font-weight: 770; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.checkbox-row { display: flex; gap: 24px; margin-bottom: .55rem; }
.checkbox-row label { display: flex; gap: .4rem; align-items: center; font-size: .88rem; font-weight: 680; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--teal); }
.field-grid label { display: grid; align-content: start; gap: 4px; font-size: .86rem; font-weight: 670; color: #3c505d; }
.field-grid input, .field-grid select, .board-select { min-width: 0; width: 100%; height: 42px; background: #f8fafb; border: 1px solid #d5dfe5; border-radius: 7px; padding: 0 .6rem; font-size: 1rem; font-weight: 650; color: var(--ink); }
.field-grid select, .board-select { appearance: none; padding-right: 1.5rem; background-image: linear-gradient(45deg, transparent 50%, #50616c 50%), linear-gradient(135deg, #50616c 50%, transparent 50%); background-position: right .8rem center, right .51rem center; background-size: 5px 5px; background-repeat: no-repeat; }
.board-select { border-color: #178573; background-color: var(--teal-light); color: #065f50; }
.field-grid select:disabled, input:disabled { opacity: .55; cursor: default; }
.input-unit { display: flex; align-items: center; min-width: 0; border: 1px solid #d5dfe5; border-radius: 7px; padding-right: .55rem; background: #f8fafb; }
.input-unit input { border: 0; padding-right: .15rem; appearance: textfield; background: transparent; font-variant-numeric: tabular-nums; }
.input-unit input::-webkit-inner-spin-button, .input-unit input::-webkit-outer-spin-button { appearance: none; }
.input-unit > span { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: .73rem; }
.input-unit:focus-within { border-color: #107d6f; }
.input-unit:has(input:invalid) { border-color: #ac582f; }
.input-unit input::placeholder { color: var(--muted); }
.hint { color: var(--muted); font-size: .825rem; line-height: 1.6; margin-top: .55rem; }
.vps-links { display: flex; flex-wrap: wrap; column-gap: .85rem; row-gap: .25rem; margin-top: .45rem; font-size: .82rem; font-weight: 700; }
.form-actions { display: flex; gap: .65rem; align-items: center; margin-top: 1.2rem; }
.primary { min-height: 45px; padding: .55rem 1rem; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 780; }
.primary:hover { background: #09594c; }
.quiet { min-height: 44px; padding: .45rem .5rem; font-size: .85rem; text-decoration: underline; text-underline-offset: .22em; border: 0; background: transparent; color: var(--muted); }
.result-stack { min-width: 0; display: grid; gap: 20px; }
.summary { scroll-margin: 16px; }
.section-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-top p { margin-top: .32rem; color: var(--muted); font-size: .875rem; }
.result-pill, .muted-badge { display: inline-block; border-radius: 7px; padding: .28rem .62rem; font-size: .8rem; font-weight: 810; white-space: nowrap; background: #edf2f5; color: #40515c; }
.result-pill[data-option="home"] { background: var(--teal-light); color: #065f50; }
.result-pill[data-option="vps"] { background: var(--orange-light); color: #943a1d; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.total { min-width: 0; border-radius: 11px; padding: 12px 15px; }
.total-home { background: var(--teal-light); color: #075d4f; }
.total-vps { background: var(--orange-light); color: #943a1d; }
.total h3 { font-size: .9rem; }
.amount { display: block; margin: .08rem 0 .45rem; font-variant-numeric: tabular-nums; font-size: clamp(1.38rem, 3vw, 2.08rem); letter-spacing: -.045em; font-weight: 850; line-height: 1.34; overflow-wrap: anywhere; }
.total dl { border-top: 1px solid rgb(50 51 49 / .12); padding-top: .45rem; display: grid; gap: .22rem; }
.total dl div { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.total dt { font-size: .8rem; color: #40545a; }
.total dd { font-size: .86rem; font-weight: 740; color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 6px; font-size: .79rem; color: var(--muted); margin-top: 15px; }
.bar-row { display: grid; grid-template-columns: 2.3rem minmax(0,1fr); align-items: center; gap: .36rem; }
.bar-track { background: #edf1f3; height: 7px; border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; }
.home-fill { background: #1a937d; }
.vps-fill { background: #c96139; }
.summary-note { margin-top: .7rem; }
.result-next { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .5rem; font-size: .85rem; font-weight: 750; }
.result-next a { display: inline-flex; align-items: center; min-height: 44px; }
.notice { margin: .7rem 0; background: #fff2e8; color: #80371e; border: 1px solid #ebd1be; border-radius: 8px; padding: .75rem; }
.part-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.part { display: flex; justify-content: space-between; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.part h3 { font-size: .92rem; }
.part p { margin-top: .2rem; font-size: .84rem; color: var(--muted); }
.part-action { text-align: right; flex-shrink: 0; }
.part-action strong { display: block; color: var(--ink); font-size: .86rem; }
.part-action a { font-size: .82rem; font-weight: 750; display: inline-flex; align-items: center; min-height: 30px; }
.ad-label { display: inline-block; padding: 1px 5px; margin-inline-end: 5px; border: 1px solid currentColor; border-radius: 4px; font-size: .68rem; font-weight: 750; }
.part-empty { color: var(--teal); padding: .8rem 0; }
.checklist-note { margin-top: .8rem; }
#calculator, #checklist, #method, #vps-links { scroll-margin: 18px; }
.guide { margin: 38px 0 42px; }
.guide > h2 { margin-bottom: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.guide-card { padding: 18px; }
.guide-card p, .guide-card a { margin-top: .48rem; color: var(--muted); font-size: .88rem; }
.guide-card a { display: inline-block; color: var(--teal); font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { min-height: 74px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; padding: .65rem 0; }
.privacy { padding-block: 45px; max-width: 740px; }
.privacy h1 { margin-bottom: 24px; font-size: clamp(1.9rem,4vw,2.75rem); }
.privacy section { margin-bottom: 22px; }
.privacy p { margin-top: .45rem; }
@media (max-width: 840px) {
  .wrap { width: min(100% - 36px,720px); }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hero { min-height: 260px; margin-block: 17px; }
  .hero-image { width: 63%; }
  .hero::after { background: linear-gradient(90deg, #12202c 37%, #12202cbf 57%, #12202c11 82%); }
  .hero-copy { max-width: 30ch; }
  .desktop-break { display: none; }
  .result-stack { gap: 16px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 57px; }
  .header-inner nav { display: none; }
  .hero { margin-block: 12px; min-height: 242px; border-radius: 13px; }
  .hero-content { padding: 20px 16px 24px; }
  .hero-label { font-size: .76rem; }
  .hero-copy { font-size: .9rem; max-width: 23ch; color: #eff4f7; }
  .hero-image { width: 66%; }
  .hero::after { background: linear-gradient(90deg, #12202c 22%, #12202cee 40%, #12202c22 100%); }
  .settings, .summary, .checklist { padding: 17px; }
  .section-top { flex-wrap: wrap; align-items: baseline; gap: 8px; }
  .totals { gap: 8px; }
  .total { padding: 10px; }
  .part { align-items: flex-start; flex-direction: column; gap: 5px; }
  .part-action { display: flex; align-items: center; gap: 13px; }
  .part-action .ad-label { margin-inline-end: -7px; }
  .part-action a { min-height: 36px; }
}
