@charset "UTF-8";

/* body背景は :root 変数だけにして、実際の適用を contact クラスに限定 */
body.contact-page {
    background: var(--color-bg-contact-main);
    color: var(--color-text-main);
}

/* =========================================
   Hero
========================================= */
.hero-title {
    letter-spacing: 0.12em;
    font-weight: 400;
}

.hero-subtitle {
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

/* =========================================
   Form Layout
========================================= */
#contact-form {
    font-size: 16px; /* スマホズーム防止 */
}

#contact-form .mb-5 {
    margin-bottom: 2.2rem !important;
}

/* =========================================
   Labels（読みやすさ最優先）
========================================= */
.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

/* =========================================
   Inputs（可読性重視）
========================================= */
.form-control,
.form-select,
textarea {
    background: #fff !important;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    transition: all .2s ease;
}

/* placeholder 視認性 */
::placeholder {
    color: #999;
    opacity: 1;
}

/* フォーカスは強く見せる */
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--color-focus);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
    background: #fff;
}

/* hover も軽く反応 */
.form-control:hover,
.form-select:hover,
textarea:hover {
    border-color: #999;
}

/* =========================================
   Select の視認性
========================================= */
.form-select {
    cursor: pointer;
}

/* =========================================
   Required Badge（誤認防止）
========================================= */
.badge-required {
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* =========================================
   Textarea
========================================= */
textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========================================
   Button（押しやすさ最優先）
========================================= */
.btn-brand-outline {
    border: 2px solid #000;
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 16px 46px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-brand-outline:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-brand-outline:active {
    transform: translateY(0);
}

.btn-brand-outline:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* =========================================
    任意バッジのスタイル
========================================= */

.badge-optional {
    font-size: 0.7rem;
    font-weight: normal;
    color: #888;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}


/* =========================================
   Mobile
========================================= */
@media (max-width: 576px) {

    .hero-title {
        font-size: 2rem;
    }

    .form-control,
    .form-select,
    textarea {
        padding: 16px;
    }

    .btn-brand-outline {
        width: 100%;
    }
}


/* =========================
   UX STATES
========================= */

.field-wrap {
  position: relative;
}

/* 成功状態 */
.is-valid {
  border-color: #2e7d32 !important;
  background: #fbfffb !important;
}

/* エラー状態 */
.is-error {
  border-color: #c62828 !important;
  background: #fffafa !important;
}

/* エラーテキスト */
.error-text {
  color: #c62828;
  font-size: 0.82rem;
  margin-top: 6px;
}

/* 完了チェック */
.field-check {
  position: absolute;
  right: 12px;
  top: 44px;
  font-size: 14px;
  color: #2e7d32;
  display: none;
}

.field-wrap.valid .field-check {
  display: block;
}




