/* form-page.css - B3C フォームページ共通スタイル */
:root {
  --slate: #6B7C8A;
  --slate-dark: #4F5A65;
  --slate-light: #E8EDF0;
  --black: #1A1A1A;
  --gray: #555;
  --gray-light: #888;
  --bg: #FFFFFF;
  --bg-off: #F7F7F5;
  --border: #E0E0E0;
  --error: #C0392B;
  --success: #27AE60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.8;
  font-size: 14px;
  padding-top: 72px;
}

/* ── ヒーロー ── */
.hero {
  background: var(--bg-off);
  padding: 48px 60px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}
.hero-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--slate);
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 14px;
  color: var(--gray);
  line-height: 2.1;
  max-width: 680px;
}
.hero-deco {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  border: 1px solid var(--slate-light);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}
.hero-deco::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid var(--slate-light);
  border-radius: 50%;
}
.hero-deco::after {
  content: '';
  position: absolute;
  inset: 48px;
  border: 1px solid var(--slate-light);
  border-radius: 50%;
}

/* ── ステップバー ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 24px 60px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }
.step-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  color: #B0BEC5;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--black);
}
.step-text span { font-size: 11px; color: var(--gray-light); }

/* ── メインレイアウト ── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

/* ── 左パネル ── */
.info-panel {
  padding: 64px 56px;
  background: var(--bg-off);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 80px;
  align-self: start;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 300;
}
.info-panel h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.5;
}
.info-panel > p {
  font-size: 13px;
  color: var(--gray);
  line-height: 2.1;
  margin-bottom: 36px;
}
.info-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-item-icon {
  width: 30px; height: 30px;
  background: var(--slate);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
}
.info-item-text strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.info-item-text span { color: var(--gray); font-size: 12px; line-height: 1.7; }
.contact-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.contact-box p { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.contact-box a { color: var(--slate); font-size: 13px; font-weight: 500; }

/* ── フォームパネル ── */
.form-panel { padding: 48px 44px; background: #fff; }
.form-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.form-section-label {
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-light);
  font-weight: 300;
}
.form-group { margin-bottom: 16px; position: relative; }
.form-label {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
}
.badge-required {
  font-size: 9px; color: #fff;
  background: var(--slate);
  padding: 2px 6px;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.badge-optional {
  font-size: 9px; color: var(--slate);
  border: 1px solid var(--slate);
  padding: 1px 5px;
  font-weight: 400;
}
.tip-wrap { position: relative; display: inline-flex; }
.tip-icon {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--slate);
  color: var(--slate); font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: default; flex-shrink: 0; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.tip-wrap:hover .tip-icon { background: var(--slate); color: #fff; }
.tip-box {
  display: none;
  position: absolute;
  left: 22px; top: -6px;
  background: var(--black);
  color: #fff; font-size: 11px;
  line-height: 1.6; padding: 8px 12px;
  z-index: 200;
  font-weight: 300; max-width: 280px; white-space: normal; width: 260px;
}
.tip-box::before {
  content: '';
  position: absolute; left: -5px; top: 10px;
  border: 5px solid transparent;
  border-right-color: var(--black);
}
.tip-wrap:hover .tip-box { display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; outline: none;
  background: #FAFAFA; color: var(--black);
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: #bbb; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--slate); background: #fff; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--error); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7C8A' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.8; }
.date-row { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; gap: 8px; }
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; cursor: pointer; user-select: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { border-color: var(--slate-light); background: var(--bg-off); }
.check-item input[type="checkbox"] { display: none; }
.check-box-ui {
  width: 16px; height: 16px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
  transition: all 0.15s; color: transparent;
}
.check-item input[type="checkbox"]:checked + .check-box-ui {
  background: var(--slate); border-color: var(--slate); color: #fff;
}
.pp-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; padding: 14px 0;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
  cursor: pointer;
}
.pp-row a { color: var(--slate); text-decoration: underline; }
.pp-row input[type="checkbox"] { display: none; }
.pp-box {
  width: 17px; height: 17px;
  border: 1px solid var(--slate); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent; transition: all 0.15s;
}
.pp-row input[type="checkbox"]:checked + .pp-box { background: var(--slate); color: #fff; }
.field-error { font-size: 11px; color: var(--error); margin-top: 4px; display: none; }
.field-error.show { display: block; }
.submit-btn {
  width: 100%; padding: 14px;
  background: var(--slate); color: #fff;
  border: none; font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; letter-spacing: 0.15em;
  margin-top: 20px; transition: background 0.2s;
}
.submit-btn:hover { background: var(--slate-dark); }
.submit-btn:disabled { background: #aaa; cursor: not-allowed; }
.note-section {
  padding: 40px 60px;
  background: var(--bg-off);
  border-top: 1px solid var(--border);
}
.note-section h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px; font-weight: 400;
  margin-bottom: 16px; color: var(--black);
}
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-item {
  font-size: 12px; color: var(--gray);
  padding-left: 14px; position: relative; line-height: 1.8;
}
.note-item::before { content: '–'; position: absolute; left: 0; color: var(--slate); }
.note-item a { color: var(--slate); }

@media (max-width: 900px) {
  .hero { padding: 48px 24px; }
  .hero-deco { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .main-layout { grid-template-columns: 1fr; }
  .info-panel { padding: 40px 24px; border-right: none; border-bottom: 1px solid var(--border); position: static; }
  .form-panel { padding: 40px 24px; }
  .note-section { padding: 32px 24px; }
}
