:root {
  color-scheme: light;
  --page: #f3faf8;
  --surface: #ffffff;
  --surface-soft: #eaf7f3;
  --ink: #173d3d;
  --muted: #526b6a;
  --brand: #087f78;
  --brand-dark: #05625d;
  --accent: #f46f5e;
  --accent-dark: #d95445;
  --line: #cfe2de;
  --danger: #b3261e;
  --shadow: 0 18px 50px rgba(16, 70, 67, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

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

.noscript-frame {
  display: none;
  visibility: hidden;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100%, 720px);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: inline-flex; }

.brand img {
  display: block;
  width: 145px;
  height: auto;
}

.license {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.license span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.hero {
  padding: 18px 12px 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(8, 127, 120, .10), transparent 45%),
    var(--page);
}

.hero__inner {
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: center;
}

.scope {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.input-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 10px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.input-count span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 11px;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.25;
  letter-spacing: .02em;
}

.hero__copy {
  max-width: 38em;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.application-form {
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.field + .field { margin-top: 11px; }

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.required {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 5px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  font-size: 10px;
  vertical-align: 1px;
}

.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a9c2bd;
  border-radius: 10px;
  font-size: 16px;
}

.field input:focus {
  outline: 3px solid rgba(8, 127, 120, .18);
  border-color: var(--brand);
}

.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  min-height: 0;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.agreement input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.field-error--consent { margin-left: 29px; }

.submit-button {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 11px;
  padding: 12px 18px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover { background: #ec6554; }

.submit-button:focus-visible {
  outline: 3px solid rgba(244, 111, 94, .34);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: .72;
}

.form-status {
  min-height: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-error { color: var(--danger); }

.form-status.is-preview {
  padding: 8px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  border-radius: 8px;
}

.reassurance {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.reassurance li {
  position: relative;
  padding-left: 24px;
}

.reassurance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 11px;
}

.more-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.more-link:hover { color: var(--brand-dark); }

.details-section {
  padding: 30px 14px 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.details-section__inner {
  width: min(100%, 720px);
  margin: 0 auto;
}

.details-section h2 {
  margin: 0 0 16px;
  font-size: 21px;
  text-align: center;
}

details { border-bottom: 1px solid var(--line); }

summary {
  position: relative;
  padding: 15px 34px 15px 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  color: var(--brand);
  font-size: 22px;
}

details[open] summary::after { content: "−"; }

details p,
details ol {
  margin: 0;
  padding: 0 4px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

details ol {
  display: grid;
  gap: 10px;
  padding-left: 28px;
}

details li b,
details li span { display: block; }

.site-footer {
  padding: 26px 14px calc(26px + env(safe-area-inset-bottom));
  color: #d8e5e3;
  background: #183d3d;
}

.site-footer__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.site-footer p { margin: 0 0 8px; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  margin: 12px 0;
}

.site-footer a { color: #fff; }

@media (min-width: 680px) {
  .hero { padding-top: 28px; }
  .application-form { padding: 20px; }
}

@media (max-width: 360px) {
  .site-header__inner { padding-inline: 12px; }
  .brand img { width: 130px; }
  .license { font-size: 11px; }
  .hero { padding-inline: 9px; }
  .application-form { padding: 13px; }
  h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
