:root {
  --bg: #f4f8ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dbe5f4;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.mini-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.mini-header__brand {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 700;
}

.contact-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.contact-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  color: #1e3a8a;
}
.contact-hero__eyebrow {
  margin: 0;
  color: #3b82f6;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
}
.contact-hero__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-card {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  padding: 20px;
}

.form-row { margin-bottom: 18px; }
.label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.required, .optional {
  font-size: .75rem;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
}
.required {
  background: #fee2e2;
  color: #991b1b;
}
.optional {
  background: #eef2ff;
  color: #3730a3;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .2);
  border-color: var(--primary);
}

.radio-grid,
.check-grid {
  display: grid;
  gap: 10px;
}

.radio-grid label,
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); }

.btn--sub {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.contact-note {
  margin-top: 14px;
  color: #374151;
  font-size: .92rem;
}
.contact-note ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 768px) {
  .contact-card { padding: 28px; }
  .form-actions {
    grid-template-columns: 1fr 1fr;
  }
}
