/* 問い合わせフォーム（譲渡・買収）をサイト側の HTML で表示（2026-11-20。Pardot の iframe は読み込みに約 2 秒かかるため）
   HTML は scripts/build_nform.py で生成（assets/inquiry/inc/nform-*.html）。動きは inquiry/js/nform.js
   見た目: スマホは LP のフォーム（Pardot 側の ig-lp 用 CSS、11/18）と同じ。PC は左に項目名・右に入力欄 */
.nf {
  --nf-navy: #1d2951;
  --nf-blue: #0071bc;
  --nf-line: #c9d3e0;
  --nf-err: #c5281c;
  margin: 0;
  color: var(--nf-navy);
  font-size: 15px;
  line-height: 1.6;
}
.nf *,
.nf *::before,
.nf *::after { box-sizing: border-box; }
.nf-lead {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #f3f6fa;
  font-size: 14px;
  line-height: 1.7;
}
.nf-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid #e0e4e7;
}
.nf-row:last-of-type { border-bottom: 1px solid #e0e4e7; }
.nf-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-top: 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nf-navy);
}
.nf-req {
  flex: 0 0 auto;
  padding: 2px 8px 3px;
  border-radius: 100px;
  background: var(--nf-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.nf-body { min-width: 0; }
.nf-input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--nf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--nf-navy);
  font: inherit;
  font-size: 16px; /* iOS で入力時に拡大しない */
  line-height: 1.5;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.nf-input::placeholder { color: #a3abb9; opacity: 1; }
.nf-input:focus {
  border-color: var(--nf-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.15);
}
.nf-select {
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d2951' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.nf-select.is-blank { color: #a3abb9; }
.nf-select option { color: var(--nf-navy); }
.nf-textarea {
  height: 132px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: vertical;
}
.nf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nf-addr { display: grid; gap: 12px; }
.nf-sub .nf-zip { max-width: 200px; }
.nf-sublabel {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}
.nf-note {
  margin: 6px 0 0;
  color: #5b6478;
  font-size: 12px;
  line-height: 1.5;
}
/* 選択肢（ラジオ）: 枠付きのボタン型。選ぶと青 */
.nf-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.nf-choices.-stack { grid-template-columns: 1fr; }
.nf-choice,
.nf-check {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.nf-choice input,
.nf-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.nf-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--nf-line);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.nf-choices.-stack .nf-choice span { justify-content: flex-start; padding-left: 44px; text-align: left; }
.nf-choices.-stack .nf-choice span::before,
.nf-check span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1px solid #99a1af;
  border-radius: 100%;
  background: #fff;
}
.nf-choices.-stack .nf-choice input:checked + span::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 100%;
  background: var(--nf-blue);
}
.nf-choice input:checked + span {
  border-color: var(--nf-blue);
  background: #eaf3fa;
  color: var(--nf-blue);
  font-weight: 700;
}
.nf-choice input:focus-visible + span,
.nf-check input:focus-visible + span {
  outline: 2px solid var(--nf-navy);
  outline-offset: 2px;
}
.nf-check span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px 8px 44px;
  border: 1px solid var(--nf-line);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
}
.nf-check span::before { border-radius: 4px; }
.nf-check input:checked + span {
  border-color: var(--nf-blue);
  background: #eaf3fa;
}
.nf-check input:checked + span::before {
  border-color: var(--nf-blue);
  background: var(--nf-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.nf-pp { margin: 0 0 8px; font-size: 13px; }
.nf-pp a { color: var(--nf-blue); text-decoration: underline; }
/* エラー */
.nf-err {
  margin: 6px 0 0;
  color: var(--nf-err);
  font-size: 13px;
  line-height: 1.5;
}
.nf-err[hidden] { display: none; }
.nf-row.is-error .nf-input,
.nf-row.is-error .nf-choice span,
.nf-row.is-error .nf-check span { border-color: #d6332a; }
.nf-input.is-bad { border-color: #d6332a; }
.nf-alert {
  margin: 24px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #d6332a;
  background: #fdf3f2;
  color: var(--nf-err);
  font-size: 14px;
}
.nf-alert[hidden] { display: none; }
/* ロボット対策の空欄（人には見せない） */
.nf-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* 送信ボタン: サイト共通のオレンジのボタン（.c-transfer-btn）を button に使う */
.nf-submit {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}
.nf-btn {
  max-width: 400px;
  min-height: 60px;
  padding: 0;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nf-btn .-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 60px 0 40px;
  font-size: 16px;
}
.nf-btn[disabled] { cursor: wait; opacity: 0.7; }
/* 送信後 */
.nf-thanks {
  margin: 0;
  padding: 40px 24px;
  border-radius: 8px;
  background: #f3f6fa;
  color: #1d2951;
  text-align: center;
  line-height: 1.8;
}
.nf-thanks[hidden] { display: none; }
.nf-thanks:focus { outline: 0; }
.nf-thanks-hl { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.nf-thanks p:last-child { margin-bottom: 0; }
.nf-post { display: block; width: 100%; height: 0; border: 0; }
.nf-post[hidden] { display: none; }
.nf-post.is-show { height: 900px; }

@media only screen and (max-width: 740px) {
  .nf { font-size: 14px; }
  .nf-lead { margin-bottom: 20px; font-size: 13px; }
  .nf-row {
    display: block;
    padding: 0;
    margin: 0 0 18px;
    border: 0;
  }
  .nf-row:last-of-type { border: 0; }
  .nf-label {
    justify-content: flex-start;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
  }
  .nf-req { font-size: 10px; padding: 2px 7px 3px; }
  .nf-input { height: 46px; }
  .nf-textarea { height: 112px; resize: none; }
  .nf-choice span { min-height: 46px; padding: 6px 4px; font-size: 15px; }
  .nf-submit { margin-top: 26px; }
  .nf-btn { max-width: none; min-height: 56px; }
  .nf-btn .-txt { min-height: 52px; }
  .nf-thanks { padding: 32px 16px; }
}

/* 広告 LP: フォームの上下に同じ趣旨の文（無料・秘密厳守）があるので冒頭の一文は出さない */
.lps-form .nf-lead { display: none; }
.lps-form .p-inquiry-formwrap.-native { min-height: 0; }
@media only screen and (max-width: 740px) {
  /* LP のスマホ版はフォーム欄の外枠に左右の余白が無い（iframe 版はフォームの中に 20px 持っていた） */
  html .lps-sp2 .lps-form .p-inquiry-formwrap.-native, .lps-form .p-inquiry-formwrap.-native { padding: 0 20px; }
}
