@charset "UTF-8";
/* =============================================================
   Ninja Forms 共通装飾（.tm-testform 内）
   資料ダウンロード(page-catalog-form) / お問い合わせ(page-contact) で共用。
   ※ フォームのフィールドレイアウト＋本体の全幅背景帯はこのファイルに集約（両ページ共通）。
   ※ hero・見出し・電話ボックス等のページ固有の見た目は各ページCSSで指定。
   ※ DOM構造:
       .nf-field-container.{type}-container.label-left   ← 外側（.nf-after-field=エラーはここ直下）
         .nf-field > .field-wrap.{type}-wrap             ← ラベル＋入力欄（2カラム）
         .nf-after-field
   ============================================================= */

/* フォームタイトル・「* 必須項目です」注記は非表示 */
.tm-testform .nf-form-title,
.tm-testform .nf-form-fields-required {
  display: none !important;
}
.tm-testform .nf-form-content {
  max-width: none;
  padding: 0;
}
/* フォーム本体は最大 1300px で中央寄せ（背景は下の本体帯で全幅） */
.tm-testform {
  max-width: 1300px;
  margin-inline: auto;
}

/* フォームページ本体：背景帯を全幅に（中身は .tm-testform で 1300px 中央寄せ）。
   contact / catalog 共通。以前は各ページCSSに同一定義が重複していたものを集約。 */
.contact-form,
.catalog-form {
  overflow-x: clip; /* 全幅白帯(100vw)のはみ出しで横スクロールを防ぐ */
}
.contact-form__body,
.catalog-form__body {
  background: #edf2f9;
  padding-block: 30px;
  padding-bottom: 0; /* 最下部は送信ボタンの白帯で締める */
  padding-inline: var(--gutter);
}

/* 各フィールド（カスタム要素 <nf-field>）は縦積み・全幅 */
.tm-testform nf-field {
  display: block;
  width: 100%;
}
/* 余白リセット */
.tm-testform #ninja_forms_required_items,
.tm-testform .nf-field-container {
  margin-bottom: 0;
  position: relative; /* .tm-field-msg（必須エラー）の絶対配置の基準 */
}
/* セクション見出し（HTMLフィールドの h3）は全幅 */
.tm-testform .html-container {
  margin: 0;
}

/* =============================================================
   入力フィールドの2カラム（ラベル左300px・絶対配置／右カラムに縦並び）
   ラベルを左カラムに絶対配置し、右カラム(328px = 300 + gap28)に
   「説明文 → 入力欄」を縦並び。説明文を持つ欄も他と同じ位置に揃う。
   ============================================================= */
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  ) {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 28px;
  padding: 22px 0;
  margin: 0;
}
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-label {
  position: absolute; /* フレックスの折り返しに依存させず左カラム固定 */
  left: 0;
  top: 22px; /* wrap の padding-top に合わせる */
  width: 300px;
  margin: 0;
}
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-element {
  order: 2;
  width: calc(100% - 328px);
  margin-left: 328px;
}
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-description {
  order: 1; /* 入力欄の上 */
  width: calc(100% - 25.5%);
  margin-left: 25.5%;
  margin-right: 0;
  margin-top: 0;
  color: #352723;
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
/* NF純正 st-label-positions の .label-left .nf-field-description{margin-left:35%} /
   .nf-field-container .nf-field-description{width:100%} に勝つため詳細度を上げる */
.tm-testform .label-left .nf-field-description {
  width: calc(100% - 25.5%);
  margin-left: 25.5%;
  margin-right: 0;
}
.tm-testform .label-left .nf-field-element {
  width: 100%;
}
/* 選択肢ラベルの左マージンをリセット（実DOMは .listradio-wrap 等のハイフン無し） */
.tm-testform .listcheckbox-wrap .nf-field-element li label,
.tm-testform .listimage-wrap .nf-field-element li label,
.tm-testform .listradio-wrap .nf-field-element li label {
  margin-left: 0;
}
/* エラー(.nf-after-field)はフィールドの外側（下）に出る。文字色など */
.tm-testform .nf-error-wrap.nf-error {
  margin-top: 6px;
  font-size: 13px;
  color: #d83b40;
  position: absolute;
  top: -8px;
  left: 25.5%;
}

/* --- ラベル（必須/任意バッジ＋テキストを横並び・gap15px） --- */
.tm-testform .nf-field-label label,
.tm-testform .nf-field-label .nf-label-span {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: 300px;
  text-align: left;
  color: #231815;
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
/* 英語版：ラベルは長くなりやすいので少し小さく（収まりを良くする） */
.en-US .tm-testform .nf-field-label label,
.en-US .tm-testform .nf-field-label .nf-label-span {
  font-size: 17px;
}
/* スマホ時はバッジとラベル文字の間隔を詰める */
@media (max-width: 600px) {
  .tm-testform .nf-field-label label,
  .tm-testform .nf-field-label .nf-label-span {
    gap: 7px;
  }
}
/* 必須バッジ（NFの必須マーカー * を「必須」赤バッジに置換・先頭へ）。
   確認画面（.tm-confirm__list dt）にも同じバッジを適用。 */
.tm-testform .ninja-forms-req-symbol,
.tm-confirm__list dt .ninja-forms-req-symbol {
  order: -1;
  font-size: 0;
  margin: 0;
}
.tm-testform .ninja-forms-req-symbol::after,
.tm-confirm__list dt .ninja-forms-req-symbol::after {
  content: "必須";
  display: flex;
  flex: none; /* ラベルが狭くてもバッジは縮めない */
  align-items: center;
  gap: 2px;
  color: #fff;
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 7.5px;
  white-space: nowrap; /* 「必須」が縦に折り返さないように */
  background: #d24345;
  border-radius: 40px;
  padding: 2px 9px 4px 15px;
}
/* スマホ時は必須バッジを小さく */
@media (max-width: 600px) {
  .tm-testform .ninja-forms-req-symbol::after,
  .tm-confirm__list dt .ninja-forms-req-symbol::after {
    padding: 2px 6px 4px 11px;
    font-size: 13px;
  }
}
/* 任意バッジ（必須マーカーが無いラベルにグレーバッジ。:has 対応ブラウザ） */
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-label
  label:not(:has(.ninja-forms-req-symbol))::before,
.tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-label
  .nf-label-span:not(:has(.ninja-forms-req-symbol))::before,
.tm-confirm__list dt:not(:has(.ninja-forms-req-symbol))::before {
  content: "任意";
  display: flex;
  flex: none; /* ラベルが狭くてもバッジは縮めない */
  align-items: center;
  gap: 2px;
  color: #333;
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 7.5px;
  white-space: nowrap; /* 「任意」が縦に折り返さないように */
  border: 2px solid #fff;
  border-radius: 40px;
  padding: 2px 9px 4px 15px;
  background: #d4d8dc;
}

/* 英語版：必須/任意バッジの文言と字間（日本語2文字用の letter-spacing を解除） */
.en-US .tm-testform .ninja-forms-req-symbol::after,
.en-US .tm-confirm__list dt .ninja-forms-req-symbol::after {
  content: "Required";
  letter-spacing: normal;
  padding: 4px 12px 4px;
  font-weight: 500;
  font-family: "Inter", var(--font-en);
}
.en-US
  .tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-label
  label:not(:has(.ninja-forms-req-symbol))::before,
.en-US
  .tm-testform
  :where(
    .textbox-wrap,
    .email-wrap,
    .tel-wrap,
    .phone-wrap,
    .textarea-wrap,
    .listselect-wrap,
    .listradio-wrap,
    .listcheckbox-wrap
  )
  .nf-field-label
  .nf-label-span:not(:has(.ninja-forms-req-symbol))::before,
.en-US .tm-confirm__list dt:not(:has(.ninja-forms-req-symbol))::before {
  content: "Optional";
  letter-spacing: normal;
  padding: 4px 12px 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Inter", var(--font-en);
}

/* --- 入力欄（角丸・白） --- */
.tm-testform .nf-field-element input[type="text"],
.tm-testform .nf-field-element input[type="email"],
.tm-testform .nf-field-element input[type="tel"],
.tm-testform .nf-field-element input[type="number"],
.tm-testform .nf-field-element select,
.tm-testform .nf-field-element textarea {
  width: 100%;
  padding: 6px 16px;
  border: 1px solid rgba(0, 80, 163, 0.6);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.02);
  color: var(--color-text);
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.tm-testform .nf-field-element input::placeholder,
.tm-testform .nf-field-element textarea::placeholder {
  color: #aaa;
  opacity: 1;
}
.tm-testform .nf-field-element input:focus,
.tm-testform .nf-field-element select:focus,
.tm-testform .nf-field-element textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.tm-testform .nf-field-element textarea {
  min-height: 150px;
  resize: vertical;
}
/* セレクト（プルダウン）：白背景＋右側に下向き矢印 */
.tm-testform .nf-field-element select {
  height: auto;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230159a9' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* --- ラジオ・チェックボックスは横並び --- */
.tm-testform .listradio-wrap .nf-field-element ul,
.tm-testform .listcheckbox-wrap .nf-field-element ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
}
.tm-testform .listradio-wrap .nf-field-element li,
.tm-testform .listcheckbox-wrap .nf-field-element li {
  display: flex;
  align-items: center; /* 入力欄とラベル文字を縦中央で揃える */
  gap: 10px;
  margin: 0;
}
/* このチェックボックスリスト（field 41＝興味を持ったきっかけ）だけ縦並び。
   ※ NFのフィールドID依存。フォーム再作成でIDが変わったら要更新 */
#nf-field-41-wrap .nf-field-element ul {
  flex-direction: column;
}
.tm-testform .listradio-wrap label,
.tm-testform .listcheckbox-wrap .nf-field-element label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.tm-testform .nf-field-element input[type="checkbox"],
.tm-testform .nf-field-element input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

/* --- 送信ボタン --- */
.tm-testform .submit-wrap .nf-field-element input,
.tm-testform input.ninja-forms-field[type="button"],
.tm-testform .nf-element[type="button"] {
  background: linear-gradient(86deg, #0684f5 5.84%, #0159a9 87.32%);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 16px 56px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.2s;
  width: auto;
}
.tm-testform .submit-wrap .nf-field-element input:hover {
  filter: brightness(1.06);
}

/* =============================================================
   送信ボタンは「背景の外（白地）」＋中央寄せ。エラーはボタンの上。
   エラー(.nf-after-field)は外側 .submit-container 直下に出るため、外側
   コンテナ基準で白帯／並び替えを行う。
   ※ 同意チェック等のフィールド固有の中央寄せ・白帯は各ページCSSで指定
     （catalog の通常チェックボックスに影響させないため）。
   ※ 全幅白帯(100vw)のはみ出し対策 overflow-x:clip は各ページ body 側。
   ============================================================= */
.tm-testform .submit-container {
  position: relative;
  z-index: 0;
  margin: 0;
  padding-bottom: 30px; /* 白地側の下余白 */
  display: flex;
  flex-direction: column;
}
.tm-testform .submit-container::before {
  content: "";
  position: absolute;
  top: 0px;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--color-bg); /* #fff：背景を覆う */
  z-index: -1;
}
/* エラーはボタンの「上」へ（after-field を order で前に） */
.tm-testform .submit-container .nf-after-field {
  order: -1;
  width: 100%;
  margin: 0 0 12px;
  text-align: center;
}
.tm-testform .submit-wrap {
  border-bottom: 0;
  display: flex;
  justify-content: center;
}
.tm-testform .submit-wrap .nf-field-label {
  display: none; /* ボタンの空ラベルは非表示 */
}
.tm-testform .submit-wrap .nf-field-element {
  width: 100%;
  margin-left: 0;
  text-align: center;
}

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 768px) {
  .tm-testform
    :where(
      .textbox-wrap,
      .email-wrap,
      .tel-wrap,
      .phone-wrap,
      .textarea-wrap,
      .listselect-wrap,
      .listradio-wrap,
      .listcheckbox-wrap
    ) {
    gap: 10px 0;
  }
  /* SP ではラベルを通常フロー（入力欄の上）に戻す */
  .tm-testform
    :where(
      .textbox-wrap,
      .email-wrap,
      .tel-wrap,
      .phone-wrap,
      .textarea-wrap,
      .listselect-wrap,
      .listradio-wrap,
      .listcheckbox-wrap
    )
    .nf-field-label {
    position: static;
    width: 100%;
  }
  .tm-testform
    :where(
      .textbox-wrap,
      .email-wrap,
      .tel-wrap,
      .phone-wrap,
      .textarea-wrap,
      .listselect-wrap,
      .listradio-wrap,
      .listcheckbox-wrap
    )
    .nf-field-element,
  .tm-testform
    :where(
      .textbox-wrap,
      .email-wrap,
      .tel-wrap,
      .phone-wrap,
      .textarea-wrap,
      .listselect-wrap,
      .listradio-wrap,
      .listcheckbox-wrap
    )
    .nf-field-description {
    width: 100%;
    margin-left: 0;
  }
  /* SP ではラベル枠とラベル本体（左300px固定）を全幅に */
  .tm-testform .label-left .nf-field-label,
  .tm-testform .label-left .nf-field-label label,
  .tm-testform .label-left .nf-field-label .nf-label-span {
    width: 100%;
  }
  /* SP では説明文（メール注記等）を入力欄の下へ・インデント解除
     （.label-left のデスクトップ用 margin-left:25.5% / order:1 を上書き） */
  .tm-testform .label-left .nf-field-description {
    order: 3; /* 入力欄(.nf-field-element=order:2)の下に表示 */
    width: 100%;
    margin-left: 0;
  }
}

/* =============================================================
   送信前の確認オーバーレイ（form-confirm.js）
   ============================================================= */
/* フォームの位置にインライン表示（ヘッダー/フッターはそのまま＝通常ページとして見せる） */
.tm-confirm {
  padding-block: clamp(20px, 4vw, 48px);
}
.tm-confirm__panel {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
/* 入力フォームと同じレイアウト：ラベル左300px ＋ 値は右にプレーンテキスト */
.tm-confirm__list {
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 28px;
}
/* セクション見出し（番号SVG＋テキスト）は全幅。フォームと同じ .contact-form-title を流用 */
.tm-confirm__section {
  grid-column: 1 / -1;
  margin-top: 28px;
}
.tm-confirm__section:first-child {
  margin-top: 0;
}
/* 見出しの体裁＋番号SVGのサイズを確認画面でも明示（ページCSS非依存で確実に表示） */
.tm-confirm__section .contact-form-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm-confirm__section .contact-form-title img {
  flex: none;
  height: 44px;
  width: auto;
}
.tm-confirm__list dt {
  display: flex;
  align-items: center;
  gap: 15px; /* フォームのラベル（必須/任意バッジ＋テキスト）と同じ */
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  color: #231815; /* フォームのラベルと同じ */
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
}
.tm-confirm__list dd {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}
.tm-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.tm-confirm__back,
.tm-confirm__send {
  flex: 0 1 260px;
  min-height: 60px;
  padding: 16px 36px;
  border-radius: 8px;
  font-family: "Noto Sans JP", var(--font-base);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, opacity 0.2s;
}
.tm-confirm__back {
  border: 1px solid #919191;
  background: #fff;
  color: #444;
}
.tm-confirm__send {
  border: 0;
  background: linear-gradient(86deg, #0684f5 5.84%, #0159a9 87.32%);
  color: #fff;
}
.tm-confirm__send:hover {
  filter: brightness(1.06);
}
.tm-confirm__back:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .tm-confirm__list {
    grid-template-columns: 1fr;
  }
  .tm-confirm__list dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .tm-confirm__list dd {
    padding-top: 4px;
  }
  .tm-confirm__back,
  .tm-confirm__send {
    flex: 1 1 100%;
  }
}

/* ============================================================
   プライバシーポリシー同意ゲート（form-confirm.js 連動）
   未同意のあいだは「送信内容を確認する」ボタンを非活性表示にする。
   tm-needs-consent / tm-consent-ok はJSがフォームに付与。
   ============================================================ */
.tm-testform.tm-needs-consent:not(.tm-consent-ok) .submit-wrap input,
.tm-testform.tm-needs-consent:not(.tm-consent-ok) .submit-container input {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 必須未入力・未同意のエラーを各入力欄のラベル右上に表示 */
.tm-field-msg {
  margin: 0 0 8px;
  color: #d24345;
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  left: 330px;
  top: -2px;
}
