:root {
  color-scheme: light;
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #172c22;
  background: #f5f5ee;
  --green: #236049;
  --line: #d6dfd4;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.25rem; }
header, footer { border-block-end: 1px solid var(--line); }
footer { border-block: 1px solid var(--line) 0; }
a { color: var(--green); text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid #25775a; outline-offset: 3px; }
.brand { font-weight: 800; color: inherit; text-decoration: none; }
.brand span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: #204d3a; color: white; border-radius: .55rem; margin-inline-end: .25rem; }
nav { display: flex; gap: clamp(.65rem, 3vw, 1.75rem); font-size: .9rem; }
.intro { padding-block: clamp(2.2rem, 7vw, 5rem) 1.7rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 6.8vw, 4.2rem); line-height: 1.35; letter-spacing: -.045em; }
h1 span { color: #408363; }
.intro p { color: #43584b; margin-top: .65rem; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: clamp(.85rem, 3vw, 1.6rem); box-shadow: 0 10px 36px #214b3510; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; font-weight: 700; }
button { background: #edf5ef; border: 1px solid var(--line); color: #255540; border-radius: .6rem; min-height: 44px; padding: .35rem .85rem; cursor: pointer; font: inherit; }
button:disabled { opacity: .55; cursor: default; }
textarea { display: block; width: 100%; min-height: 13rem; resize: vertical; border: 1px solid var(--line); border-radius: .8rem; padding: .9rem; font: inherit; color: inherit; background: #fbfcf9; }
textarea::placeholder { color: #5d6b63; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.stats div { padding: .65rem; border-radius: .65rem; background: #eaf2e9; overflow-wrap: anywhere; }
.stats output { display: block; font-size: clamp(1.35rem, 4vw, 2.35rem); font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stats span, .privacy { font-size: .875rem; color: #40564a; }
.privacy { margin-top: .8rem; }
.guide { padding-block: 3rem 4rem; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .9rem; }
article { border-top: 1px solid var(--line); padding-top: .85rem; }
article h3 { font-size: 1.04rem; margin-bottom: .3rem; }
article p { color: #40564a; }
.policy { padding-block: 3rem; }
.policy p { margin-block: 1rem; }
@media (max-width: 44rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answers { grid-template-columns: 1fr; }
}
