@charset "UTF-8";
/* ============================================================
   BTS系フォーム 共通スタイル（全フォームで共有）
   すべて .bts-form 配下に限定し、サイト側CSSへの影響を避ける
   ============================================================ */
.bts-form {
  /* サイトのヘッダー・フッターに合わせた配色（ここだけ変えれば全体が変わります） */
  --bts-main: #1419a3;      /* 表の見出し・ステップ・枠線（フッター下部の濃い青） */
  --bts-accent: #0009df;    /* タイトル文字・リンク（サイトのブランド青） */
  --bts-btn: #2982b8;       /* 送信ボタン（CONTACTボタンの青） */
  --bts-btn-hover: #1f6a96;
  --bts-gray: #eeeeee;      /* 見出しセル・非アクティブ（サイトの薄いグレー） */
  --bts-line: #d3d6da;
  --bts-offset-top: 120px;  /* ヘッダー（固定表示）に隠れないための上余白。PC */
  max-width: 900px;
  margin: 0 auto;
  padding: var(--bts-offset-top) 16px 80px;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  box-sizing: border-box;
}
.bts-form *, .bts-form *::before, .bts-form *::after { box-sizing: border-box; }

.bts-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--bts-accent);
  border-bottom: 3px solid var(--bts-main);
  padding-bottom: 8px;
  margin: 0 0 20px;
}

/* ステップ表示 */
.bts-flow {
  display: flex;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  gap: 8px;
}
.bts-flow__item {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  background: var(--bts-gray);
  color: #777;
  font-size: 13px;
  border-radius: 4px;
}
.bts-flow__item span { font-weight: bold; }
.bts-flow__item.active { background: var(--bts-main); color: #fff; }

.bts-lead { margin: 0 0 18px; }
.bts-notice {
  background: #fff4f4;
  border: 1px solid #e0a0a0;
  color: #cc0000;
  padding: 10px 14px;
  margin: 0 0 18px;
  border-radius: 4px;
}

/* テーブル */
.bts-box { margin-bottom: 28px; }
.bts-table { width: 100%; border-collapse: collapse; }
.bts-table th, .bts-table td {
  border: 1px solid var(--bts-line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
  font-weight: normal;
}
.bts-table thead th {
  background: var(--bts-main);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  vertical-align: middle;
}
.bts-table thead th span { font-size: 12px; font-weight: normal; margin-left: 8px; }
.bts-table tbody th { background: var(--bts-gray); width: 240px; font-weight: bold; }
.bts-req { color: #cc0000; font-style: normal; font-weight: bold; margin-left: 2px; }
.bts-table thead .bts-req { color: #ffd0d0; }

/* 入力パーツ */
.bts-input, .bts-select, .bts-textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.bts-input:focus, .bts-select:focus, .bts-textarea:focus {
  outline: 2px solid rgba(41, 130, 184, .35);
  border-color: var(--bts-btn);
}
.bts-input.is-error, .bts-select.is-error, .bts-textarea.is-error { border-color: #cc0000; background: #fff8f8; }
.bts-w-s { width: 160px; }
.bts-w-m { max-width: 340px; }
.bts-w-l { max-width: 480px; }
.bts-select { max-width: 360px; }
.bts-textarea { max-width: 600px; resize: vertical; }

.bts-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bts-inline .bts-ml { margin-left: 24px; }

.bts-check { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.bts-check label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bts-check input { width: 16px; height: 16px; margin: 0; }

.bts-note { font-size: 12px; color: #666; margin: 4px 0 6px; }
.bts-err { color: #cc0000; font-size: 12px; margin: 6px 0 0; }
.bts-other { margin-top: 10px; }
.bts-other[hidden] { display: none; }

/* ボット対策欄：画面外へ（display:none は避ける） */
.bts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bts-mt { margin-top: 8px; }
.bts-input.is-auto, .bts-input[readonly] { background: #f1f2f4; color: #999; cursor: not-allowed; }

/* 同意 */
.bts-agree { text-align: center; margin: 24px 0; padding: 20px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.bts-agree a { color: var(--bts-accent); text-decoration: underline; font-weight: bold; }
.bts-agree__check {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; cursor: pointer; font-weight: bold; color: var(--bts-main);
}
.bts-agree__check input { width: 20px; height: 20px; }
.bts-agree-confirm { text-align: center; margin: 20px 0; }
.bts-agree-confirm strong { color: var(--bts-accent); }

/* ボタン */
.bts-actions { text-align: center; margin: 28px 0 40px; }
.bts-btn-center { text-align: center; }
.bts-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 14px 44px;
  font-size: 16px;
  border-radius: 4px;
  font-family: inherit;
  line-height: 1.4;
}
.bts-btn--main { background: var(--bts-btn); color: #fff; }
.bts-btn--main:hover { background: var(--bts-btn-hover); }
.bts-btn--main:disabled { background: #98bfd8; cursor: wait; }
.bts-btn--back { background: #999; color: #fff; margin-right: 12px; }

/* 完了 */
.bts-thanks {
  background: #eef0fb;
  border: 1px solid var(--bts-main);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
}
.bts-thanks__title { font-size: 20px; color: var(--bts-accent); margin: 0 0 14px; }
.bts-thanks__text span { font-size: 12px; color: #555; }

/* スマホ */
@media screen and (max-width: 600px) {
  .bts-form { --bts-offset-top: 72px; padding: var(--bts-offset-top) 10px 60px; }
  .bts-title { font-size: 18px; }
  .bts-flow__item { font-size: 11px; padding: 8px 2px; }
  .bts-table, .bts-table tbody, .bts-table thead, .bts-table tr, .bts-table th, .bts-table td { display: block; width: auto; }
  .bts-table tbody th { width: auto; border-bottom: none; padding-bottom: 6px; }
  .bts-table tbody td { border-top: none; }
  .bts-input, .bts-select, .bts-textarea { font-size: 16px; max-width: 100%; }  /* iOSの自動ズーム防止 */
  .bts-w-s { width: 100%; }
  .bts-inline { flex-direction: column; align-items: stretch; }
  .bts-inline .bts-ml { margin-left: 0; margin-top: 6px; }
  .bts-btn { width: 100%; }
  .bts-btn--back { margin: 0 0 10px; }
}

/* ============================================================
   資料ダウンロード用レイアウト（左：資料紹介／右：入力）
   .bts-page--download 配下だけに効く（問い合わせフォームには影響しない）
   ============================================================ */
.bts-page--download #main { background: linear-gradient(180deg, #eef2fb 0%, #f8f9fd 420px, #fff 100%); }
.bts-form--wide { max-width: 1200px; }
.bts-page--download .bts-form { --bts-offset-top: 88px; padding-bottom: 96px; }   /* ヘッダーに隠れる場合はここを調整 */

.bts-dl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }

/* ---- 左：資料紹介 ---- */
.bts-dl__left { background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: 0 10px 40px rgba(20, 25, 163, .08); }
.bts-dl__title { font-size: 28px; line-height: 1.45; font-weight: 800; color: #0e1242; margin: 0 0 24px; letter-spacing: .01em; }
.bts-dl__title span, .bts-dl__sp-title span {
  display: table; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--bts-accent);
  background: #e8ebff; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.bts-dl__image { margin: 0 0 32px; text-align: center; }
.bts-dl__image img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 30px rgba(20, 25, 163, .18); }
.bts-dl__sec { margin: 0 0 30px; }
.bts-dl__sec h2 { font-size: 18px; font-weight: 800; color: #0e1242; background: none; padding: 0 0 0 14px; margin: 0 0 12px; border-left: 5px solid var(--bts-btn); line-height: 1.3; border-radius: 0; }
.bts-dl__lead { font-weight: 700; color: var(--bts-main); margin: 0 0 8px; }
.bts-dl__sec p { margin: 0 0 8px; color: #444; }
.bts-dl__sec ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.bts-dl__sec li { position: relative; padding: 14px 16px 14px 48px; background: #f6f8fe; border-radius: 12px; border: 0; }
.bts-dl__sec li::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bts-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.bts-dl__sec li strong { display: block; color: #0e1242; font-size: 15px; }
.bts-dl__sec li span { display: block; font-size: 13px; color: #5a6072; margin-top: 3px; line-height: 1.7; }

/* ---- 右：入力カード ---- */
.bts-dl__right { position: sticky; top: 96px; background: #fff; border-radius: 20px; padding: 32px 30px 36px; box-shadow: 0 14px 48px rgba(20, 25, 163, .14); border-top: 6px solid var(--bts-btn); }
.bts-dl__sp-title { display: block; font-size: 22px; font-weight: 800; color: #0e1242; margin: 0 0 16px; line-height: 1.4; }
.bts-dl__right .bts-flow { margin-bottom: 22px; gap: 6px; }
.bts-dl__right .bts-flow__item { background: #eef0f6; border-radius: 999px; font-size: 12px; padding: 8px 4px; }
.bts-dl__right .bts-flow__item.active { background: var(--bts-btn); box-shadow: 0 4px 12px rgba(41, 130, 184, .35); }

/* 表を「項目名が上、入力欄が下」の縦並びに */
.bts-dl__right .bts-table, .bts-dl__right .bts-table tbody, .bts-dl__right .bts-table thead, .bts-dl__right .bts-table tr, .bts-dl__right .bts-table th, .bts-dl__right .bts-table td { display: block; width: auto; border: 0; padding: 0; }
.bts-dl__right .bts-table thead th { background: none; color: #0e1242; font-size: 15px; font-weight: 800; padding: 0 0 8px; margin-bottom: 14px; border-bottom: 2px solid #e3e7f3; }
.bts-dl__right .bts-table thead th span { color: #777; font-size: 11px; }
.bts-dl__right .bts-table thead .bts-req { color: #d33; }
.bts-dl__right .bts-table tbody tr { margin-bottom: 16px; }
.bts-dl__right .bts-table tbody th { width: auto; background: none; font-size: 13px; font-weight: 700; color: #333; padding: 0 0 6px; }
.bts-dl__right .bts-box { margin-bottom: 26px; }
.bts-dl__right .bts-input, .bts-dl__right .bts-select, .bts-dl__right .bts-textarea { border: 1.5px solid #cfd6e4; border-radius: 10px; padding: 11px 12px; background: #fbfcff; max-width: none; }
.bts-dl__right .bts-w-s { width: 100%; }
.bts-dl__right .bts-inline { flex-wrap: nowrap; }
.bts-dl__right .bts-inline .bts-ml { margin-left: 8px; }
.bts-dl__right .bts-check { gap: 8px; flex-direction: column; }
.bts-dl__right .bts-check label { width: 100%; padding: 8px 12px; border: 1.5px solid #dde2ee; border-radius: 10px; background: #fbfcff; transition: border-color .15s, background .15s; }
.bts-dl__right .bts-check label:hover { border-color: var(--bts-btn); background: #f1f8fd; }
.bts-dl__right .bts-agree { background: #f6f8fe; border: 0; border-radius: 12px; font-size: 12px; text-align: left; padding: 16px; }
.bts-dl__right .bts-agree__check { font-size: 14px; }
.bts-dl__right .bts-btn { width: 100%; border-radius: 999px; padding: 16px; font-weight: 700; background: linear-gradient(135deg, #2f93cc, var(--bts-main)); box-shadow: 0 8px 20px rgba(20, 25, 163, .28); transition: transform .15s, box-shadow .15s; }
.bts-dl__right .bts-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 25, 163, .34); }
.bts-dl__right .bts-btn--back { background: #8a90a2; box-shadow: none; margin: 0 0 10px; }
.bts-dl__right .bts-thanks { background: #f1f8fd; border-color: #cfe6f5; border-radius: 14px; }

@media screen and (max-width: 960px) {
  .bts-dl { grid-template-columns: 1fr; gap: 24px; }
  .bts-dl__right { position: static; padding: 24px 18px 28px; }
  .bts-dl--after .bts-dl__right { order: -1; }   /* スマホ：入力画面は資料紹介が上、確認・完了画面はフォームを上にして離脱を防ぐ */
  .bts-dl__left { padding: 26px 18px; }
  .bts-dl__title { font-size: 22px; }
}
@media screen and (max-width: 600px) {
  .bts-page--download .bts-form { --bts-offset-top: 64px; }
  .bts-dl__right .bts-inline { flex-direction: row; align-items: center; }
  .bts-dl__right .bts-inline .bts-ml { margin-top: 0; }
}

/* ============================================================
   非公開ページ（ヘッダー・フッターなし）用
   ============================================================ */
.bts-page--bare .bts-form { --bts-offset-top: 28px; }
.bts-bare-header { padding: 16px 20px; border-bottom: 1px solid var(--bts-line); }
.bts-bare-header img { height: 36px; width: auto; display: block; }
.bts-noticebox { border: 1px solid var(--bts-line); border-left: 5px solid var(--bts-main); background: #f7f8fc; padding: 14px 18px; border-radius: 4px; margin-bottom: 18px; }
.bts-noticebox h2 { font-size: 15px; margin: 0 0 6px; color: var(--bts-main); }
.bts-noticebox p { margin: 0; font-size: 13px; }
.bts-footnotes { margin: 0 0 18px; font-size: 12px; color: #555; }
.bts-footnotes p { margin: 0 0 6px; }

.bts-notes { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #777; line-height: 1.7; }
.bts-note a { color: var(--bts-accent); text-decoration: underline; }
