:root {
  --deep: #0B3D5C;
  --teal: #1C7293;
  --midnight: #0A1930;
  --mist: #EAF3F6;
  --foam: #F6FAFB;
  --ink: #10202B;
  --muted: #5B7280;
  --accent: #E8A24B;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Shippori Mincho', serif;
  margin: 0;
  line-height: 1.35;
}

p { line-height: 1.85; }

/* ---------- river background (hero only) ---------- */
.river-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 640px;
  z-index: 0;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--deep) 55%, var(--teal) 100%);
  overflow: hidden;
}
.river-bg svg { width: 100%; height: 100%; display: block; }
.wave { opacity: 0.55; }
.wave1 { fill: #14507A; }
.wave2 { fill: #1C7293; opacity: 0.5; }
.wave3 { fill: #2E9AAE; opacity: 0.35; }

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 2;
  padding: 28px 6vw 0;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  color: #F6FAFB;
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--accent); }
.nav-cta {
  color: #F6FAFB;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(246,250,251,0.55);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: #F6FAFB; color: var(--midnight); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 6vw 140px;
  text-align: center;
  color: #F6FAFB;
}
.eyebrow {
  letter-spacing: 0.35em;
  font-size: 12px;
  color: #BFD9E6;
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
}
.hero .accent { color: var(--accent); }
.hero-lead {
  margin: 28px auto 0;
  max-width: 600px;
  color: #D6E7ED;
  font-size: 15px;
}
.hero-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 40px;
  background: var(--accent);
  color: var(--midnight);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(232,162,75,0.35);
  transition: transform 0.2s ease;
}
.hero-btn:hover { transform: translateY(-2px); }

/* ---------- features ---------- */
.features {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -70px auto 0;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 20px 45px rgba(11,61,92,0.12);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px;
  color: var(--deep);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- apply form ---------- */
.apply {
  max-width: 1180px;
  margin: 100px auto 0;
  padding: 0 6vw 120px;
  display: flex;
  justify-content: center;
}
.apply-card {
  width: 100%;
  max-width: 640px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 52px 48px;
  box-shadow: 0 30px 60px rgba(11,61,92,0.14);
}
.apply-card h2 {
  font-size: 26px;
  color: var(--deep);
  text-align: center;
}
.apply-lead {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 14px 0 34px;
}

.alert {
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  margin-bottom: 26px;
  line-height: 1.6;
}
.alert-success { background: #E9F9F1; color: #1B7A4B; }
.alert-error { background: #FDEEEC; color: #B23B2E; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.req {
  color: #C7702E;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 700;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #D7E3E8;
  background: var(--foam);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,114,147,0.15);
}
.address-input {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #D7E3E8;
  background: var(--foam);
}
.address-input input {
  border: none;
  background: transparent;
  border-radius: 0;
  flex: 1;
}
.address-input input:focus { box-shadow: none; }
.address-suffix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--mist);
  white-space: nowrap;
}
.hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 8px 0 0;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: var(--deep);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.submit-btn:hover { background: var(--midnight); transform: translateY(-1px); }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 6vw 50px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; margin-top: -40px; }
  .apply-card { padding: 40px 26px; }
  .br-desktop { display: none; }
}
