:root {
  --text: #172033;
  --subtext: #5f6878;
  --background: #ffffff;
  --muted: #f5f7fa;
  --line: #dfe4ea;
  --accent: #1d4ed8;
  --accent-dark: #173ea6;
  --danger: #b42318;
  --success: #067647;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav { display: flex; gap: 24px; }

.nav a {
  color: var(--subtext);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover { color: var(--accent); }

.hero {
  padding: 110px 0 100px;
  background:
    radial-gradient(circle at 85% 15%, #dbeafe 0, transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-inner { max-width: 820px; }

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 690px;
  margin: 28px 0 34px;
  color: var(--subtext);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-block;
  padding: 13px 24px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: 0.58; cursor: wait; }

.section { padding: 88px 0; }
.section-muted { background: var(--muted); }

h2 {
  margin: 0 0 36px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--subtext); }

.company-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt { font-weight: 700; }
.company-list dd { margin: 0; color: var(--subtext); }

/* お問い合わせ：横幅を広く使うレイアウト */
.contact-wide {
  width: min(calc(100% - 40px), 1200px);
}

.contact-head {
  margin-bottom: 40px;
}

.contact-head h2 {
  margin: 0 0 14px;
}

.contact-intro {
  max-width: 640px;
  margin: 0;
  color: var(--subtext);
}

.contact-form {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--muted);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  align-items: start;
}

.field { margin-bottom: 0; }

/* 全幅で表示したい要素 */
.field-full { grid-column: 1 / -1; }

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

.required,
.optional {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.required { color: #fff; background: var(--accent); }
.optional { color: var(--subtext); background: #e7ebf0; }

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9d0da;
  border-radius: 7px;
  font: inherit;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(29, 78, 216, 0.16);
  border-color: var(--accent);
}

.consent {
  display: flex;
  gap: 10px;
  margin: 0;
  align-items: flex-start;
  font-size: 0.92rem;
}

.consent input {
  width: auto;
  margin-top: 6px;
}

.cf-turnstile { margin: 0; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.submit-button {
  width: auto;
  min-width: 240px;
}

.form-status {
  min-height: 1.75em;
  margin: 0;
  font-weight: 700;
}

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

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.footer {
  padding: 28px 0;
  color: var(--subtext);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--subtext);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-inner a:hover { color: var(--accent); }

/* 法務ページ（プライバシーポリシー等） */
.legal-body { max-width: 760px; }

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--subtext);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.legal p { margin: 0 0 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.legal li { margin-bottom: 6px; }

.legal .contact-box {
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--muted);
}

.legal .contact-box a { color: var(--accent); }

@media (max-width: 760px) {
  .header-inner { min-height: 60px; }
  .nav { gap: 13px; }
  .nav a { font-size: 0.76rem; }
  .hero { padding: 84px 0 76px; }
  .section { padding: 68px 0; }
  .cards { grid-template-columns: 1fr; }
  .company-list div { grid-template-columns: 1fr; gap: 2px; }
  .contact-head { margin-bottom: 28px; }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .submit-button { width: 100%; min-width: 0; }
}
