:root {
  --ink: #172027;
  --muted: #61707b;
  --line: #dbe3e6;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0a4f4b;
  --coral: #d95f50;
  --amber: #b7791f;
  --blue: #376ca8;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.16);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(16px);
}

.brand, nav { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}
nav { gap: 18px; color: var(--muted); font-size: 0.92rem; font-weight: 800; }
nav a:hover { color: var(--teal-dark); }
nav select { min-height: 36px; width: auto; padding: 6px 28px 6px 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #eff3f2;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.9) 31%, rgba(247, 248, 246, 0.32) 67%, rgba(247, 248, 246, 0.04) 100%),
    linear-gradient(0deg, rgba(247, 248, 246, 0.22), rgba(247, 248, 246, 0));
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 38px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px 28px 50px;
}
.hero-copy { max-width: 680px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}
.lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.28rem;
  line-height: 1.75;
  font-weight: 800;
}
.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-points span {
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 900;
}

.application-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(219, 227, 230, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.application-form > div, .application-form .wide, .form-status { grid-column: 1 / -1; }
.application-form h2 { margin: 0; font-size: 1.35rem; }
label { display: grid; gap: 6px; }
label span { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.application-form .check-row { display: flex; align-items: flex-start; gap: 9px; }
.application-form .check-row input { width: auto; min-height: 0; margin-top: 3px; }
.application-form .check-row a { color: var(--teal-dark); text-decoration: underline; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fbfcfd;
}
textarea { min-height: 104px; resize: vertical; }
button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
}
button.secondary { color: var(--teal-dark); background: #fff; border: 1px solid var(--teal); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#selfServiceForm { display: grid; gap: 10px; }
button:hover { background: var(--teal-dark); }
button:disabled { opacity: 0.58; cursor: not-allowed; }
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.form-status.ok { color: var(--teal-dark); font-weight: 900; }
.form-status.error { color: var(--coral); font-weight: 900; }

.band {
  padding: 62px 28px;
  border-top: 1px solid var(--line);
}
.section-head, .flow {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.section-head h2, .flow h2 {
  max-width: 780px;
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.22;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, 100%);
  margin: 28px auto 0;
}
.proof-grid article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.kicker { color: var(--coral); font-weight: 900; }
.proof-grid h3 { margin: 14px 0 10px; font-size: 1.05rem; line-height: 1.35; }
.proof-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

.apply-band {
  background: #ffffff;
}
.flow {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}
ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  border-left: 4px solid var(--teal);
  padding: 14px 16px;
  background: #f7f9fa;
}
li strong { font-size: 1.05rem; }
li span { color: var(--muted); line-height: 1.6; }

@media (max-width: 920px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 12px 18px; }
  nav { flex-wrap: wrap; }
  .hero { min-height: auto; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.9) 58%, rgba(247, 248, 246, 0.45) 100%);
  }
  .hero-inner, .flow { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 18px 52px; }
  h1 { font-size: 3.2rem; }
  .lead { font-size: 1.08rem; }
  .application-form { grid-template-columns: 1fr; max-width: 560px; }
  .application-form > div, .application-form .wide, .form-status { grid-column: auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  nav { gap: 12px; font-size: 0.86rem; }
  .hero-image { object-position: 58% center; }
  h1 { font-size: 2.8rem; }
  .proof-grid { grid-template-columns: 1fr; }
  li { grid-template-columns: 1fr; gap: 4px; }
  .band { padding: 46px 18px; }
}
