:root {
  --ink: #172036;
  --muted: #627087;
  --line: #dce3ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --brand: #176b5b;
  --brand-dark: #0f5145;
  --accent: #f2a65a;
  --danger: #a63d40;
  --shadow: 0 16px 42px rgba(24, 39, 75, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.75;
}

a { color: var(--brand-dark); }

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 236, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--brand);
  box-shadow: 4px 4px 0 #f6c78f;
}

.site-nav { display: flex; gap: 24px; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--brand); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
  background:
    radial-gradient(circle at 82% 24%, rgba(242, 166, 90, 0.22), transparent 29%),
    linear-gradient(135deg, #ecf7f3 0%, #f8fbfd 55%, #fff7ed 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 330px;
  height: 260px;
  border: 42px solid rgba(23, 107, 91, 0.08);
  border-radius: 52px;
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.35; }

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 9px 14px;
  border: 1px solid #b8d8ce;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255,255,255,.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.section { padding: 72px 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.section-heading p { margin: 0; color: var(--muted); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: #9fc9be;
  box-shadow: 0 20px 48px rgba(24, 39, 75, 0.13);
}

.tool-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #e9f5f1;
  font-size: 1.25rem;
  font-weight: 900;
}

.tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tool-card .arrow { margin-top: auto; padding-top: 20px; color: var(--brand); font-weight: 800; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principle {
  padding: 24px;
  border-radius: 16px;
  background: #e9f5f1;
}

.principle h3 { margin: 0 0 6px; font-size: 1.03rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.tool-hero { padding: 54px 0 34px; }
.tool-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.1rem); }
.tool-hero p { max-width: 720px; margin: 0; color: var(--muted); }
.breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.breadcrumb a { color: var(--muted); }

.tool-shell {
  margin-bottom: 72px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-shell h2 { margin: 0 0 18px; font-size: 1.3rem; }
.field { margin-bottom: 22px; }
.field label, .field-label { display: block; margin-bottom: 8px; font-weight: 750; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }

textarea,
input[type="text"],
input[type="date"],
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea { min-height: 210px; padding: 15px; resize: vertical; line-height: 1.65; }
input[type="text"], input[type="date"], select { min-height: 48px; padding: 9px 12px; }
textarea:focus, input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,107,91,.12); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 750;
}
.button:hover { background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); background: #fff; }
.button.ghost { border-color: var(--line); color: var(--muted); background: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat { padding: 16px; border-radius: 13px; background: var(--wash); }
.stat dt { color: var(--muted); font-size: .83rem; }
.stat dd { margin: 4px 0 0; font-size: 1.45rem; font-weight: 800; }

.result-box {
  min-height: 54px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #b8d8ce;
  border-radius: 12px;
  background: #f2faf7;
  overflow-wrap: anywhere;
}
.result-box.error { border-color: #e5b4b5; color: var(--danger); background: #fff5f5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 12px 0 20px; }
.check-row label { display: inline-flex; align-items: center; gap: 7px; }
.content-page { max-width: 820px; padding: 58px 0 80px; }
.content-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.content-page h2 { margin-top: 2.2em; }
.content-page li { margin-bottom: .5em; }

.site-footer { padding: 46px 0; color: #cbd5e1; background: #132033; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: #d7e0eb; text-decoration: none; font-size: .88rem; }
.copyright { margin: 18px 0 0; color: #92a1b5; font-size: .82rem; }

.status { min-height: 1.5em; margin: 10px 0 0; color: var(--brand-dark); font-size: .88rem; }
.muted { color: var(--muted); }

@media (max-width: 820px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner, .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 62px; }
  .site-nav a:not(:first-child) { display: none; }
  .hero { padding: 66px 0 54px; }
  .section { padding: 54px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 8px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 210px; }
  .footer-inner { display: block; }
  .footer-nav { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

