/* ============================================================
   engineer_newform.css
   form.css の後に読み込む。フォーム内部デザインのみ担当。
   LPページへの埋め込み用（ヘッダー・フッター等は含まない）
   ============================================================ */

:root {
  --nf-sky:        #2B4099;
  --nf-sky-dark:   #1E2F6E;
  --nf-sky-light:  #EEF1FA;
  --nf-sky-mid:    #5A72C0;
  --nf-red:        #E24B4A;
  --nf-gray-50:    #F8F9FA;
  --nf-gray-100:   #F1F1EF;
  --nf-gray-200:   #E2E2DE;
  --nf-gray-300:   #C8C7BE;
  --nf-gray-500:   #888780;
  --nf-gray-700:   #444441;
  --nf-gray-900:   #1A1A18;
  --nf-white:      #ffffff;
  --nf-radius-sm:  8px;
  --nf-radius-md:  12px;
  --nf-radius-lg:  16px;
  --nf-shadow:     0 4px 20px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* ── inbox (step panels) ───────────────────────────────────
   表示/非表示は form.js が .hidden クラスで制御するため
   display は上書きしない。padding のみ担当。
   ─────────────────────────────────────────────────────── */
.inbox {
  padding: 28px 24px 24px !important;
}
.inbox.hidden {
  display: none !important;
}

/* ── progress_bar: hide — replaced by .step-bar ────────── */
.inbox .progress_bar { display: none !important; }

/* ── content area ──────────────────────────────────────── */
.inbox .content {
  margin-bottom: 0;
}

/* ── dl / dt / dd ──────────────────────────────────────── */
.inbox dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.inbox dl:last-of-type { margin-bottom: 0; }

.inbox dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-gray-700);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.inbox dd { margin: 0; padding: 0; }

/* ── 必須 / 任意 labels ─────────────────────────────────── */
.inbox .label.hissu,
.inbox .label.ninni {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.inbox .label.hissu {
  background: #FFF0F0;
  color: var(--nf-red);
  border: 1px solid #FFD5D5;
}
.inbox .label.ninni {
  background: var(--nf-gray-100);
  color: var(--nf-gray-500);
  border: 1px solid var(--nf-gray-200);
}

/* ── Text inputs / select ──────────────────────────────── */
.inbox input[type="text"],
.inbox input[type="tel"],
.inbox input[type="email"],
.inbox select {
  width: 100% !important;
  height: 48px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--nf-gray-300) !important;
  border-radius: var(--nf-radius-sm) !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px !important;
  color: var(--nf-gray-900) !important;
  background: var(--nf-white) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  outline: none !important;
  box-shadow: none !important;
}
.inbox input[type="text"]:focus,
.inbox input[type="tel"]:focus,
.inbox input[type="email"]:focus,
.inbox select:focus {
  border-color: var(--nf-sky) !important;
  box-shadow: 0 0 0 3px rgba(43,64,153,0.12) !important;
}

/* ── flex_box (名前・フリガナ 2列) ─────────────────────── */
.inbox .flex_box {
  display: flex !important;
  gap: 10px !important;
}
.inbox .flex_box .item {
  flex: 1 !important;
  min-width: 0 !important;
}

/* ── Radio buttons ─────────────────────────────────────── */
.inbox .radio_box {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.inbox .radio_btn {
  flex: 1 !important;
  min-width: 72px !important;
}
.inbox .radio_btn label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 8px !important;
  border: 1.5px solid var(--nf-gray-300) !important;
  border-radius: var(--nf-radius-sm) !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  background: var(--nf-white) !important;
  gap: 6px !important;
}
.inbox .radio_btn label:hover {
  border-color: var(--nf-sky-mid) !important;
  background: var(--nf-sky-light) !important;
}
.inbox .radio_btn input[type="radio"] {
  display: none !important;
}
.inbox .radio_btn input[type="radio"]:checked + label,
.inbox .radio_btn label:has(input[type="radio"]:checked) {
  background: var(--nf-sky-light) !important;
  border-color: var(--nf-sky) !important;
  color: var(--nf-sky-dark) !important;
  font-weight: 600 !important;
}
.inbox .radio_btn .text {
  font-size: 14px !important;
  color: inherit !important;
}

/* ── Note text ─────────────────────────────────────────── */
.inbox .note {
  font-size: 12px !important;
  color: var(--nf-gray-500) !important;
  margin-top: 6px !important;
  line-height: 1.65 !important;
}
.inbox .note a { color: var(--nf-sky) !important; }

/* ── Privacy check ─────────────────────────────────────── */
.inbox .privacy_check {
  margin-top: 20px !important;
}
.inbox .check_box {
  background: var(--nf-gray-50) !important;
  border: 1.5px solid var(--nf-gray-200) !important;
  border-radius: var(--nf-radius-sm) !important;
  padding: 14px 16px !important;
  transition: border-color 0.15s !important;
}
.inbox .check_box label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
}
.inbox .check_box input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  accent-color: var(--nf-sky) !important;
  cursor: pointer !important;
}
.inbox .check_box .text {
  font-size: 13px !important;
  color: var(--nf-gray-700) !important;
  line-height: 1.65 !important;
}
.inbox .check_box .text a {
  color: var(--nf-sky) !important;
  text-decoration: none !important;
}
.inbox .check_box .text a:hover { text-decoration: underline !important; }

/* ── Validation tooltips ───────────────────────────────── */
.validation-tooltip {
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--nf-red) !important;
  background: #FFF5F5 !important;
  border: 1px solid #FFDDDD !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
}
.validation-tooltip__icon {
  width: 18px !important;
  height: 18px !important;
  background: var(--nf-red) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

/* ── Attention area ────────────────────────────────────── */
.common_attention_area {
  margin-top: 12px !important;
  padding: 12px 16px !important;
  background: #FFF5F5 !important;
  border: 1px solid #FFDDDD !important;
  border-radius: var(--nf-radius-sm) !important;
  font-size: 13px !important;
  color: var(--nf-red) !important;
}

/* ── Sending indicator ─────────────────────────────────── */
.sending-indicator {
  text-align: center !important;
  padding: 14px !important;
  margin: 12px 0 !important;
  background: var(--nf-gray-50) !important;
  border-radius: var(--nf-radius-sm) !important;
  font-size: 14px !important;
  color: var(--nf-gray-500) !important;
  border: 1px solid var(--nf-gray-200) !important;
}
.sending-indicator.hidden { display: none !important; }

/* ── Buttons ───────────────────────────────────────────── */
.inbox .btn_box {
  display: flex !important;
  gap: 10px !important;
  margin-top: 24px !important;
}
.inbox .btn_box.double {
  justify-content: space-between !important;
}

.inbox .btn {
  height: 52px !important;
  white-space: nowrap !important;
  border-radius: var(--nf-radius-sm) !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: opacity 0.15s, transform 0.1s !important;
  border: none !important;
  padding: 0 24px !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
}
.inbox .btn:active { transform: scale(0.98) !important; }

/* 次へ / 送信ボタン */
.inbox .btn_box .btn:last-child,
.inbox .btn_box:not(.double) .btn {
  flex: 1 !important;
  background: var(--nf-sky) !important;
  color: white !important;
}
.inbox .btn_box .btn:last-child:hover,
.inbox .btn_box:not(.double) .btn:hover {
  background: var(--nf-sky-dark) !important;
  opacity: 1 !important;
}

/* 戻るボタン */
.inbox .btn_box.double .btn:first-child {
  flex: 0 0 80px !important;
  white-space: nowrap !important;
  min-width: 80px !important;
  padding: 0 16px !important;
  background: var(--nf-white) !important;
  color: var(--nf-gray-700) !important;
  border: 1.5px solid var(--nf-gray-300) !important;
}
.inbox .btn_box.double .btn:first-child:hover {
  background: var(--nf-gray-100) !important;
  opacity: 1 !important;
}

/* SVG arrows inside buttons */
.inbox .btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

/* ── form-footer ───────────────────────────────────────── */
.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--nf-gray-500);
  line-height: 1.7;
}

/* ── Trust footer ──────────────────────────────────────── */
.trust-footer {
  max-width: 600px;
  margin: 24px auto 0;
  padding: 0 16px 40px;
}
.trust-footer__inner {
  background: var(--nf-white);
  border: 1px solid var(--nf-gray-200);
  border-radius: var(--nf-radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust-footer__marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.trust-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}
.trust-footer__texts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-footer__text {
  font-size: 12px;
  color: var(--nf-gray-500);
  line-height: 1.75;
  margin: 0;
}
.trust-footer__text a { color: var(--nf-sky); text-decoration: none; }
.trust-footer__text a:hover { text-decoration: underline; }

/* ── Site footer ───────────────────────────────────────── */
.site-footer {
  background: var(--nf-white);
  border-top: 1px solid var(--nf-gray-200);
  padding: 28px 16px 24px;
}
.site-footer__links {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nf-gray-200);
}
.site-footer__links a {
  font-size: 12px;
  color: var(--nf-gray-500);
  text-decoration: none;
  white-space: nowrap;
}
.site-footer__links a:hover { color: var(--nf-gray-900); }
.site-footer__copy {
  max-width: 600px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 11px;
  color: var(--nf-gray-500);
}


/* ============================================================
   レスポンシブ対応（〜480px スマホ）
   ============================================================ */
@media (max-width: 480px) {

  /* ── Page ── */
  .page {
    margin: 20px auto 0;
    padding: 0 12px 48px;
  }

  /* ── Title ── */
  .page-title {
    margin-bottom: 20px;
  }
  .page-title h1 {
    font-size: 18px;
  }
  .page-title__badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  /* ── Step bar：ラベルを非表示にして数字のみ ── */
  .step-bar {
    margin-bottom: 16px;
  }
  .step-name {
    display: none;
  }
  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .step-bar::before {
    top: 14px;
  }
  .step-progress-line {
    top: 14px;
  }
  .step-item.active .step-dot {
    box-shadow: 0 0 0 3px rgba(43, 64, 153, 0.18);
  }

  /* ── Card header ── */
  .card__header {
    padding: 14px 16px;
    gap: 10px;
  }
  .card__header-icon {
    width: 34px;
    height: 34px;
  }
  .card__header-icon svg {
    width: 18px;
    height: 18px;
  }
  .card__header-title {
    font-size: 13px;
  }
  .card__header-sub {
    font-size: 11px;
  }

  /* ── inbox padding ── */
  .inbox {
    padding: 20px 16px 16px !important;
  }

  /* ── dt labels ── */
  .inbox dt {
    font-size: 13px !important;
  }

  /* ── Inputs ── */
  .inbox input[type="text"],
  .inbox input[type="tel"],
  .inbox input[type="email"],
  .inbox select {
    height: 44px !important;
    font-size: 16px !important; /* iOS zoom防止 */
  }

  /* ── flex_box（姓名・フリガナ）── */
  .inbox .flex_box {
    gap: 8px !important;
  }

  /* ── Radio buttons ── */
  .inbox .radio_btn label {
    padding: 10px 6px !important;
    font-size: 13px !important;
  }

  /* ── Buttons ── */
  .inbox .btn_box {
    gap: 8px !important;
    margin-top: 20px !important;
  }
  .inbox .btn {
    height: 48px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
  }
  .inbox .btn_box.double .btn:first-child {
    flex: 0 0 72px !important;
    min-width: 72px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  /* ── Trust footer ── */
  .trust-footer {
    padding: 0 12px 32px;
  }
  .trust-footer__inner {
    padding: 16px;
    gap: 12px;
  }
  .trust-logo-img {
    width: 44px;
    height: 44px;
  }
  .trust-footer__marks {
    gap: 16px;
  }
  .trust-footer__text {
    font-size: 11px !important;
  }

  /* ── Site footer ── */
  .site-footer {
    padding: 20px 12px 16px;
  }
  .site-footer__links {
    gap: 6px 14px;
  }
}

