@charset "utf-8";

/* ============================================================
   form_blue.css — ビジネスタンク・サービス フォームスタイル
   Bootstrap 3 カスタムオーバーライド
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Outfit:wght@400;600;700&display=swap");

/* ============================================================
   基本設定
   ============================================================ */
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  color: rgb(2, 4, 28);
  background-color: #f7f9fd;
  -webkit-font-smoothing: antialiased;
}

hr {
  border: none;
  border-top: 1px solid rgba(2, 4, 28, 0.1);
  margin: 0 0 28px;
}

/* ============================================================
   コンテナ・グリッド
   ============================================================ */
.container {
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================================
   ヘッダー・タイトル
   ============================================================ */
header {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 24px 0 20px;
  text-align: center;
  border-bottom: 2px solid rgba(2, 4, 28, 0.08);
}

h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: rgb(2, 4, 28);
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ============================================================
   フォームグループ
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: rgb(2, 4, 28);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* ============================================================
   必須・任意バッジ（label-danger / label-success）
   ============================================================ */

/* 必須：オレンジ */
.label.label-danger {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7235 0%, #f04c12 55%, #d43800 100%);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}

/* 任意：グレー */
.label.label-success {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgb(130, 145, 185);
  background: #eef1f9;
  border: 1px solid rgba(2, 4, 28, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   入力フィールド（.form-control 共通）
   ============================================================ */
.form-control {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(2, 4, 28);
  background-color: #f7f9fd;
  border: 1.5px solid rgba(2, 4, 28, 0.16);
  border-radius: 10px;
  padding: 10px 13px;
  height: auto;
  line-height: 1.6;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: rgb(22, 38, 130);
  box-shadow: 0 0 0 3px rgba(22, 38, 130, 0.1);
  outline: none;
}

.form-control::-webkit-input-placeholder {
  color: rgb(130, 145, 185);
}
.form-control::placeholder {
  color: rgb(130, 145, 185);
}

/* textarea */
textarea.form-control {
  min-height: 90px;
  resize: vertical;
  line-height: 1.75;
}

/* select */
select.form-control {
  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 d='M1 1l5 5 5-5' stroke='%23606490' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ============================================================
   必須入力フィールドの背景色
   ============================================================ */
input:required,
textarea:required {
  background-color: #f0f4ff;
}

input:valid,
textarea:valid {
  background-color: #f7f9fd;
}

input:focus,
textarea:focus {
  background-color: #ffffff !important;
}

/* ============================================================
   プライバシーポリシー同意ボタン（チェックボックス／必須）
   ============================================================ */
.form-group-privacy {
  margin-top: 8px;
  margin-bottom: 22px;
}

/* 隠しチェックボックス本体（クリック判定はlabel全体で行う） */
.privacy-agree-btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ボタン風ラベル */
.privacy-agree-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background-color: #f7f9fd;
  padding: 14px 0;
  cursor: pointer;
  margin: 0;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.privacy-agree-btn:hover {
  border-color: rgb(22, 38, 130);
}

/* チェック用の丸アイコン */
.privacy-agree-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid rgba(2, 4, 28, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.privacy-agree-check i {
  font-size: 11px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

/* テキスト */
.privacy-agree-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: rgb(60, 72, 120);
}

.privacy-agree-text a {
  color: rgb(22, 38, 130);
  font-weight: 700;
  text-decoration: underline;
}

.privacy-agree-text a:hover {
  color: #f04c12;
}

/* 必須バッジ */
.privacy-agree-required {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7235 0%, #f04c12 55%, #d43800 100%);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.05em;
}

/* ===== チェック済み（同意済み）状態 ===== */
.privacy-agree-btn input[type="checkbox"]:checked + .privacy-agree-check {
  background-color: #2e7d32;
  border-color: #2e7d32;
  transform: scale(1.05);
}

.privacy-agree-btn input[type="checkbox"]:checked + .privacy-agree-check i {
  opacity: 1;
  transform: scale(1);
}

.privacy-agree-btn input[type="checkbox"]:checked ~ .privacy-agree-text {
  color: rgb(2, 4, 28);
}

/* 親labelの見た目もチェック時に変化（:has対応ブラウザ） */
.privacy-agree-btn:has(input[type="checkbox"]:checked) {
  background-color: #f0fbf1;
  border-color: #2e7d32;
}

.privacy-agree-btn:has(input[type="checkbox"]:checked) .privacy-agree-required {
  background: #2e7d32;
}

/* キーボード操作時のフォーカスリング */
.privacy-agree-btn input[type="checkbox"]:focus-visible + .privacy-agree-check {
  box-shadow: 0 0 0 3px rgba(22, 38, 130, 0.25);
}

/* ============================================================
   送信ボタン（.btn.btn-primary）
   ============================================================ */
.btn.btn-primary {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7235 0%, #f04c12 55%, #d43800 100%);
  border: none;
  border-radius: 16px;
  padding: 15px 20px;
  width: 100%;
  display: block;
  text-align: center;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 18px rgba(240, 76, 18, 0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 8px;
  cursor: pointer;
  -webkit-appearance: none;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(240, 76, 18, 0.45);
  background: linear-gradient(135deg, #ff7235 0%, #f04c12 55%, #d43800 100%);
  color: #ffffff;
  outline: none;
}

.btn.btn-primary:active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(240, 76, 18, 0.3);
}

/* ============================================================
   サンクスポップアップ（.popup-inner）
   ============================================================ */
.popup-inner {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px 36px;
}

.popup-inner h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 17px !important;
  font-weight: 700;
  color: rgb(2, 4, 28) !important;
  line-height: 1.7;
  text-align: center;
}

.popup-inner h2 span,
.popup-inner h2 font {
  font-size: inherit !important;
  color: inherit !important;
}

.popup-inner h2 p {
  margin: 0;
}

.close-btn i {
  color: rgb(60, 72, 120);
  font-size: 18px;
}

/* ============================================================
   フッター
   ============================================================ */
footer p {
  text-align: center;
  font-size: 12px;
  color: rgb(130, 145, 185);
  padding: 16px 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 16px;
  }

  .form-control {
    font-size: 16px; /* iOS ズーム防止 */
    border-radius: 8px;
  }

  .btn.btn-primary {
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 12px;
  }

  .popup-inner {
    padding: 28px 20px;
  }

  .privacy-agree-btn {
    padding: 12px 14px;
    gap: 10px;
  }

  .privacy-agree-text {
    font-size: 13px;
  }
}
