:root {
  --ink: #172820;
  --muted: #4c5f54;
  --green: #14553c;
  --green-dark: #0d3b2a;
  --green-tint: #edf4ed;
  --border: #d6e3d9;
  --paper: #fff;
  --focus: #1c6248;
  color: var(--ink);
  background: #f7f9f5;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
fieldset { min-inline-size: 0; border: 0; padding: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .21em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.intro :focus-visible, .site-footer :focus-visible { outline-color: #c7e8ce; }
section[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 64px, 1120px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 64px, 920px); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 3; background: white; padding: .5rem .9rem; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.site-header__row, .site-footer__row { display: flex; gap: 1rem 1.6rem; min-height: 65px; align-items: center; justify-content: space-between; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.site-header nav a, .site-header__home { color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 650; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; }
.brand { color: var(--ink); line-height: 1; text-decoration: none; }
.brand__name { font: 800 1.55rem/1 Arial, sans-serif; letter-spacing: -.065em; }
.brand__name span { color: #268353; margin-left: .06em; }
.site-header__home span { margin-left: .2em; color: var(--green); }

.intro { color: var(--paper); background: radial-gradient(ellipse at 93% 8%, #2b664a, transparent 63%), #0e3b2b; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 68px; }
.eyebrow { font-size: .875rem; font-weight: 700; color: #c6e6cc; margin-bottom: 15px; }
h1 { font-size: clamp(1.85rem, 3.55vw, 3.15rem); line-height: 1.35; font-weight: 800; letter-spacing: -.038em; }
.lead { max-width: 37em; margin-top: 19px; color: #e3eee5; }
.lead__sentence { display: block; }
.lead__sentence > span { display: inline-block; max-width: 100%; }
.lead, .section__head p, .purchase-card p, .paper__note,
.field-note, .field-error, .questions p, .personal-license, .paper__scope { word-break: auto-phrase; }
.intro__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.intro__link { color: #fff; font-weight: 650; }
.intro__link span { margin-left: .25em; font-size: .8em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 46px; padding: 9px 17px; border: 1px solid transparent; border-radius: 7px; font-size: .925rem; font-weight: 750; text-decoration: none; text-align: center; }
.button span { flex: none; }
.button--white { color: var(--green-dark); background: #f9fcf6; }
.button--white:hover { background: #e6f2e4; }
.button--green { border-color: var(--green); background: var(--green); color: white; }
.button--green:hover { background: var(--green-dark); }
.button--outline { border-color: #aec4b6; background: white; color: var(--green-dark); }
.button--outline:hover { border-color: var(--green); background: var(--green-tint); }
.button:disabled { cursor: not-allowed; background: #edf0ed; color: #536257; border-color: #d8e1d9; }
.example { background: #f2f7ed; color: var(--ink); border-radius: 12px; padding: 23px 26px; }
.example__label { color: var(--green); font-size: .8rem; font-weight: 700; }
.example h2 { margin: 3px 0 13px; font-size: 1.24rem; line-height: 1.5; }
.example dl { font-size: .89rem; }
.example dl div { display: flex; justify-content: space-between; gap: .6rem; padding: 6px 0; border-bottom: 1px solid #d6e3d6; }
.example dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.example__total { display: flex; justify-content: space-between; gap: .45rem; align-items: baseline; flex-wrap: wrap; margin: 9px 0 1px; font-size: .89rem; font-weight: 650; }
.example__total small, .paper__total small { font-size: .75rem; margin-left: .15rem; color: var(--muted); }
.example__total strong { font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.16; letter-spacing: -.045em; color: var(--green); font-variant-numeric: tabular-nums; }
.example__total strong span { font-size: .52em; margin-left: .15em; }
.example__note { color: var(--muted); font-size: .79rem; margin-top: 5px; }

.section { padding: 54px 0 58px; }
.section__head { margin-bottom: 23px; }
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.4; color: var(--ink); }
.section__head p { margin-top: 8px; color: var(--muted); }
.section--tint { background: #eaf2e8; }
.estimate-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr); gap: 22px; }
.controls, .paper, .purchase-card { border: 1px solid var(--border); border-radius: 12px; background: white; padding: 25px; }
.controls__fields legend { margin-bottom: 7px; font-size: 1.14rem; font-weight: 750; }
.controls__fields label, .budget label, .manual-copy label { display: block; margin: 12px 0 5px; font-size: .9rem; font-weight: 700; }
input:not([type="checkbox"]), select, textarea {
  display: block;
  min-height: 45px;
  width: 100%;
  border: 1px solid #a9bcae;
  border-radius: 6px;
  background: #fbfdf9;
  color: var(--ink);
  padding: 6px 10px;
  font-size: 1rem;
}
input[aria-invalid="true"] { border-color: #9a251a; }
input::placeholder { color: #5d6b61; }
.optional { margin-left: .25rem; font-size: .76rem; font-weight: 500; color: var(--muted); }
.field-note, .field-error { display: block; margin: 6px 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.field-error { color: #8a231c; font-weight: 650; }
.controls__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.controls__mobile-total { display: none; }
.action-note { margin-top: 7px; font-size: .83rem; color: var(--green-dark); }
.action-note:empty { display: none; }
.controls__next { display: inline-block; margin-top: 6px; font-size: .875rem; font-weight: 700; }
.manual-copy { margin-top: 11px; }
.manual-copy textarea { resize: vertical; font-size: .875rem; }
.notice { border-left: 3px solid #7caa89; padding: .5em .8em; margin: 0 0 14px; font-size: .9rem; background: #f6faf5; }
.personal-license { background: #eaf2e8; }
.personal-license a { display: inline-block; max-width: 100%; }
.paper { padding: 26px; box-shadow: 0 7px 23px #0d3b2a0c; }
.paper__head { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; align-items: start; padding: 0 0 13px; border-bottom: 2px solid #779b83; }
.paper__label { font-size: .76rem; font-weight: 750; color: var(--green); }
.paper h3 { font-size: clamp(1.12rem, 2.2vw, 1.35rem); line-height: 1.4; }
.paper__date { font-size: .78rem; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.paper__info { min-height: 46px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; margin: 11px 0; }
.paper__recipient { margin-right: auto; align-self: center; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.paper__issuer { flex: none; max-width: 100%; text-align: right; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.paper__summary { margin: 5px 0 1px; color: var(--green-dark); font-size: .84rem; font-weight: 720; }
.paper__scope { margin-bottom: 11px; color: var(--muted); font-size: .78rem; }
.line-items { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
.line-items td, .line-items th { padding: 7px 5px; vertical-align: top; border-bottom: 1px solid var(--border); }
.line-items th { font-weight: 650; }
.line-items thead th { font-size: .76rem; background: #edf3ed; }
.line-items td, .line-items thead th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper__total { text-align: right; margin-top: 13px; }
.paper__total > span { display: block; font-size: .83rem; font-weight: 650; }
.paper__total strong { font-size: clamp(1.4rem, 3.1vw, 1.95rem); color: var(--green); letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.paper__note { border-top: 1px solid var(--border); margin-top: 11px; padding-top: 9px; font-size: .78rem; color: var(--muted); }
.purchase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.purchase-card { display: flex; flex-direction: column; padding: 22px 24px; }
.purchase-card--featured { border-color: #b5cdbc; }
.purchase-card h3 { font-size: 1.24rem; }
.purchase-card p { margin-top: 7px; font-size: .925rem; }
.purchase-card .purchase-card__note { color: var(--muted); font-size: .84rem; margin-bottom: 16px; }
.purchase-card .button { align-self: flex-start; margin-top: auto; }
.section--compact { padding: 39px 0 0; }
.section--conditions { padding: 38px 0 48px; }
.budget { border: 1px solid var(--border); background: white; border-radius: 10px; }
.budget summary { padding: 15px 20px; }
.budget__body { border-top: 1px solid var(--border); padding: 12px 20px 18px; color: var(--muted); font-size: .925rem; }
.budget__body > p { margin-bottom: 9px; }
.budget__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 15px; }
.budget label { color: var(--ink); }
.budget .checkbox { display: flex; align-items: flex-start; gap: .5em; cursor: pointer; }
.checkbox input { margin: .4em 0 0; width: 1rem; height: 1rem; accent-color: var(--green); flex: none; }
.budget__values { border-top: 1px solid var(--border); margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; padding-top: 10px; }
.budget__values dt { font-size: .81rem; }
.budget__values dd { font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.questions details { border-bottom: 1px solid var(--border); }
.questions summary { padding: 10px 0; }
.questions p { margin: 0 0 13px; color: var(--muted); font-size: .925rem; }
summary { font-size: 1rem; font-weight: 700; color: var(--green-dark); }
.site-footer { background: #132d22; color: #c0d3c4; }
.site-footer__row { padding-block: 19px; }
.site-footer a { color: #f2f8ef; font-size: .84rem; }
.site-footer .brand__name span { color: #afdbb7; }

@media (max-width: 950px) {
  .wrap, .wrap--narrow { width: min(100% - 46px, 1120px); }
  .intro__grid { gap: 27px; padding-block: 47px; }
  .example { padding: 20px; }
  .section { padding-block: 44px; }
  .section--compact { padding: 28px 0 0; }
  .section--conditions { padding-top: 32px; }
  .estimate-grid { gap: 14px; }
  .controls, .paper { padding: 19px; }
}
@media (max-width: 700px) {
  .wrap, .wrap--narrow { width: calc(100% - 34px); }
  .site-header__row { min-height: 53px; }
  .site-header nav { display: none; }
  .intro__grid, .estimate-grid, .purchase-grid { grid-template-columns: minmax(0, 1fr); }
  .intro__grid { padding-block: 32px; gap: 22px; }
  .eyebrow { margin-bottom: 11px; }
  h1 { font-size: clamp(1.55rem, 7.1vw, 2.65rem); letter-spacing: -.025em; }
  .lead { margin-top: 14px; }
  .intro__actions { gap: 9px 14px; margin-top: 18px; }
  .section { padding-block: 34px; }
  .section--compact { padding: 23px 0 0; }
  .section__head { margin-bottom: 16px; }
  .controls__mobile-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2em .55em; border-top: 1px solid var(--border); margin-top: 15px; padding-top: 8px; font-size: .83rem; }
  .controls__mobile-total strong { color: var(--green); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .controls__actions { margin-top: 12px; }
  .site-footer__row { justify-content: flex-start; flex-wrap: wrap; column-gap: 1.1rem; }
  .site-footer nav { column-gap: .85rem; }
}
@media (max-width: 390px) {
  .wrap, .wrap--narrow { width: calc(100% - 26px); }
  .controls, .paper, .example, .purchase-card { padding: 16px; }
  .paper h3 { font-size: 1.08rem; }
  .line-items { font-size: .76rem; }
  .line-items th, .line-items td { padding-inline: 3px; }
  .budget__inputs { grid-template-columns: 1fr; gap: 0; }
  .budget__values { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  :root, body { background: white; color: black; font-size: 12pt; }
  body > :not(main), main > :not(#estimate), #estimate .section__head, #estimate .notice, .controls { display: none !important; }
  #estimate { display: block; padding: 0; }
  #estimate .wrap { display: block; width: auto; margin: 0; }
  .estimate-grid { display: block; }
  .paper { width: auto; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .paper h3 { font-size: 17pt; }
  .paper__head { border-color: #6b6b6b; }
  .paper__note, .paper__issuer, .paper__label, .paper__date, .paper__summary, .paper__scope, .paper__total strong { color: #222; }
  .paper__info { margin-block: 14pt; }
  .line-items th, .line-items td { border-color: #b6b6b6; }
  .line-items thead th { background: #efefef; print-color-adjust: exact; }
  .line-items tr, .paper__head, .paper__total, .paper__note { break-inside: avoid; }
}
