:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5b6475;
  --line: #d8dee8;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --brand: #173f73;
  --brand-dark: #0d2d56;
  --accent: #b84932;
  --focus: #f2a900;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); }
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  color: #fff;
  background: var(--brand-dark);
  border-bottom: 4px solid #3d78ae;
}
.header-inner {
  width: calc(100% - 2rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { color: #fff; }

.contact-shell {
  width: calc(100% - 2rem);
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.breadcrumb { display: flex; gap: 0.6rem; margin-bottom: 2rem; color: var(--muted); font-size: 0.9rem; }
.contact-intro { margin-bottom: 2rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; }
h1 { margin: 0.2rem 0 0.8rem; font-size: 2rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.2; }
h2 { line-height: 1.35; }
.note, .field-help, .required-note, .submit-area p { color: var(--muted); }

.contact-card, .contact-guidance, .result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  box-shadow: 0 12px 32px rgb(23 32 51 / 8%);
}
.contact-card { padding: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.contact-card h2 { margin-top: 0; font-size: 1.5rem; }
.field { margin-top: 1.5rem; }
.field label { display: block; margin-bottom: 0.45rem; font-weight: 700; }
.required { color: var(--accent); }
.optional { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8994a6;
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 12rem; resize: vertical; }
.field-help { margin: 0.4rem 0 0; font-size: 0.88rem; }
.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; margin-top: 1.75rem; padding: 1rem; background: var(--soft); border-radius: 8px; }
.consent input { width: 1.25rem; min-height: 1.25rem; margin-top: 0.25rem; }
.submit-area { margin-top: 2rem; text-align: center; }
button, .button-link {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button-link:hover { color: #fff; background: var(--brand-dark); }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.contact-guidance { margin-top: 1.5rem; padding: 1.25rem 1.5rem; }
.contact-guidance h2 { margin-top: 0; font-size: 1.15rem; }
.contact-guidance ul { margin-bottom: 0; padding-left: 1.3rem; }
.site-footer { padding: 2rem 1rem; color: #dbe6f3; background: var(--brand-dark); text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; }
.site-footer a { color: #fff; }

.result-shell { width: calc(100% - 2rem); max-width: 680px; margin: 0 auto; min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.result-card { width: 100%; padding: 1.5rem; padding: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.result-mark { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; display: grid; place-items: center; color: #fff; background: #26734d; border-radius: 50%; font-size: 1.8rem; font-weight: 800; }
.result-card h1 { font-size: 1.75rem; font-size: clamp(1.75rem, 5vw, 2.5rem); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 2rem; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-header ul { gap: 0.5rem 1rem; }
  .contact-shell { padding-top: 1.25rem; }
}

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