/* ===========================
   CONTACT ページ レイアウト
=========================== */

.contact-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 白いカード風ボックス */
.contact-box {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 14px;
    border: 1px solid #d9d9d9;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ページタイトル行 */
.contact-page .title-line {
    border-bottom: 2px solid #d0d0d0;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* 説明文 */
.contact-lead {
    font-size: 15px;
    margin: 20px 0 30px;
    color: #444;
    line-height: 1.8;
}

/* ===========================
   フォーム切り替えボタン
=========================== */

.form-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.form-tab {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    color: #555;
    transition: background 0.2s ease, color 0.2s ease;
}

/* 非アクティブ hover */
.form-tab:hover {
    background: #e6e6e6;
}

/* アクティブ状態（現在表示中） */
.form-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===========================
   フォーム共通
=========================== */

.contact-form {
    display: none;
}

.contact-form.is-active {
    display: block;
}

/* 各ラベル */
.contact-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* 入力フォーム */
.contact-box input,
.contact-box textarea,
.contact-box select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 14px;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-box input:focus,
.contact-box textarea:focus,
.contact-box select:focus {
    border-color: #777;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    outline: none;
}

/* ===========================
   法人フォーム専用デザイン
=========================== */

/* 線で囲われたタイトル */
.corp-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 0;
    margin: 20px 0 25px;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

/* 説明文 */
.corp-lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 「」内：赤 */
.lead-red {
    color: #0085D7;
    font-weight: 700;
}

/* （）内：小さくグレー */
.lead-gray {
    color: #888;
    font-size: 12px;
}

/* セクションブロック */
.corp-block {
    margin-bottom: 35px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

/* セクション見出し */
.corp-block-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 補足文 */
.corp-note {
    margin-top: -10px;
    margin-bottom: 12px;
}

/* ===========================
   送信ボタン
=========================== */

.contact-submit {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .3s ease, transform .15s ease;
}

.contact-submit:hover {
    background: #555;
    transform: translateY(-2px);
}

.contact-submit:active {
    transform: translateY(0);
}

/* ===========================
   スマホ調整
=========================== */

@media (max-width: 600px) {

    .contact-box {
        padding: 25px 24px;
    }

    .form-switch {
        flex-direction: column;
        gap: 6px;
        border-bottom: none;
    }

    .form-tab {
        border-radius: 8px;
        border-bottom: 1px solid #ccc;
    }

    .form-tab.active {
        border-bottom: 1px solid #333;
    }

    .corp-title {
        font-size: 16px;
    }
}

/* ===========================
   reCAPTCHA 表示調整
=========================== */

.recaptcha-notice {
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
    padding-bottom: 50px;
}

.recaptcha-notice a {
    color: #555;
    text-decoration: underline;
}

/* バッジ非表示（既存） */
.grecaptcha-badge {
    display: none !important;
}

/* =========================
   お問い合わせ温度感（法人）
========================= */

.intent-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.intent-item {
  position: relative;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.intent-item input {
  display: none;
}

.intent-item span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* hover */
.intent-item:hover {
  border-color: #666;
}

/* 選択中 */
.intent-item input:checked + span {
  color: #fff;
}

.intent-item input:checked ~ span {
  color: #fff;
}

.intent-item:has(input:checked) {
  background: #333;
  border-color: #333;
}

/* =========================
   納期状況（法人）
========================= */

.deadline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.deadline-item {
  position: relative;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.deadline-item input {
  display: none;
}

.deadline-item span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* hover */
.deadline-item:hover {
  border-color: #666;
}

/* 選択中 */
.deadline-item:has(input:checked) {
  background: #333;
  border-color: #333;
}

.deadline-item:has(input:checked) span {
  color: #fff;
}


label.required::after {
  content: "必須";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  color: #fff;
  background: #B90003;
  border-radius: 4px;
  vertical-align: middle;
}

/* =========================
   著作権の扱い（法人）
========================= */

.copyright-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.copyright-item {
  position: relative;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.copyright-item input {
  display: none;
}

.copyright-item span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* hover */
.copyright-item:hover {
  border-color: #666;
}

/* 選択中（通常は黒） */
.copyright-item:has(input:checked) {
  background: #333;
  border-color: #333;
}

.copyright-item:has(input:checked) span {
  color: #fff;
}

/* 「譲渡を希望」側は、選択時のみ赤系に */
.copyright-strong:has(input:checked) {
  background: #B90003;
  border-color: #B90003;
}
/* =========================
   必須未入力エラー表示
========================= */

/* input / select / textarea */
.input-error {
  border: 2px solid #B90003 !important;
  background-color: #fff5f5;
}

/* ラベル側も強調 */
.label-error {
  color: #B90003;
  font-weight: bold;
}

