@charset "UTF-8";

/**
 * Contact Form - お問い合わせフォーム（シンプル型）
 */

/* ========================================
   セクション全体
   ======================================== */
.contact-form-section {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    padding: 80px 20px;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #357CBD 0%, #4A90D9 50%, #357CBD 100%);
}

.contact-form-container {
    max-width: 760px;
    margin: 0 auto;
}

/* ========================================
   ヘッダー
   ======================================== */
.contact-form-header {
    text-align: center;
    margin-bottom: 44px;
}

.contact-form-header__label {
    display: inline-block;
    background: linear-gradient(135deg, #357CBD 0%, #4A90D9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.contact-form-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 14px;
}

.contact-form-header__subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   フォーム本体
   ======================================== */
.contact-form-body {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 44px 40px;
}

/* ========================================
   フィールド共通
   ======================================== */
.cf-field {
    margin-bottom: 28px;
}

.cf-field:last-child {
    margin-bottom: 0;
}

.cf-field__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.cf-field__required {
    display: inline-block;
    background: #E84B8A;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.cf-field__optional {
    display: inline-block;
    background: #ccc;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* テキスト入力 */
.cf-field__input,
.cf-field__select,
.cf-field__textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    font-family: var(--tcd-font-type1);
    -webkit-appearance: none;
    appearance: none;
}

.cf-field__input:focus,
.cf-field__select:focus,
.cf-field__textarea:focus {
    outline: none;
    border-color: #357CBD;
    box-shadow: 0 0 0 3px rgba(53, 124, 189, 0.1);
}

.cf-field__input::placeholder,
.cf-field__textarea::placeholder {
    color: #aaa;
}

.cf-field__textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

/* セレクトボックス */
.cf-field__select-wrapper {
    position: relative;
}

.cf-field__select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #666;
    pointer-events: none;
}

.cf-field__select {
    padding-right: 44px;
    cursor: pointer;
}

/* エラー状態 */
.cf-field__input.has-error,
.cf-field__select.has-error,
.cf-field__textarea.has-error {
    border-color: #F44336;
    background: #FFF5F5;
}

.cf-field__error {
    display: none;
    color: #F44336;
    font-size: 13px;
    margin-top: 8px;
    padding-left: 4px;
}

.cf-field__error.is-visible {
    display: block;
}

/* ========================================
   ラジオボタン
   ======================================== */
.cf-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cf-radio {
    position: relative;
}

.cf-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cf-radio__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.cf-radio__label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cf-radio input[type="radio"]:checked + .cf-radio__label {
    border-color: #357CBD;
    background: #f0f7ff;
    color: #357CBD;
    font-weight: 600;
}

.cf-radio input[type="radio"]:checked + .cf-radio__label::before {
    border-color: #357CBD;
    background: #357CBD;
    box-shadow: inset 0 0 0 3px #fff;
}

/* ========================================
   チェックボックス
   ======================================== */
.cf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cf-checkbox {
    position: relative;
}

.cf-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cf-checkbox__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.cf-checkbox__label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.cf-checkbox input[type="checkbox"]:checked + .cf-checkbox__label {
    border-color: #357CBD;
    background: #f0f7ff;
    color: #357CBD;
    font-weight: 600;
}

.cf-checkbox input[type="checkbox"]:checked + .cf-checkbox__label::before {
    border-color: #357CBD;
    background: #357CBD;
}

.cf-checkbox input[type="checkbox"]:checked + .cf-checkbox__label::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-55%) rotate(45deg);
}

/* ========================================
   2カラムグリッド
   ======================================== */
.cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

.cf-grid .cf-field--full {
    grid-column: 1 / -1;
}

/* ========================================
   送信ボタン
   ======================================== */
.cf-submit-area {
    margin-top: 36px;
    text-align: center;
}

.cf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #357CBD 0%, #2563A8 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 64px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(53, 124, 189, 0.3);
    font-family: var(--tcd-font-type1);
}

.cf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(53, 124, 189, 0.4);
}

.cf-submit-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.cf-submit-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* プライバシーポリシー同意 */
.cf-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cf-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #357CBD;
    cursor: pointer;
}

.cf-privacy label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.cf-privacy label a {
    color: #357CBD;
    text-decoration: underline;
}

.cf-submit-note {
    font-size: 13px;
    color: #999;
    margin-top: 14px;
}

/* ========================================
   送信完了メッセージ
   ======================================== */
.cf-complete {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.cf-complete.is-visible {
    display: block;
    animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes cfFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cf-complete__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.cf-complete__icon svg {
    width: 100%;
    height: 100%;
}

.cf-complete__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.cf-complete__message {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   ローディング
   ======================================== */
.cf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cf-loading.is-active {
    opacity: 1;
    visibility: visible;
}

.cf-loading__spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cf-loading__text {
    color: #fff;
    font-size: 15px;
    margin-top: 16px;
}

/* ========================================
   レスポンシブ: タブレット
   ======================================== */
@media (max-width: 767px) {
    .contact-form-section {
        padding: 60px 16px;
    }

    .contact-form-header__title {
        font-size: 26px;
    }

    .contact-form-body {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .cf-grid {
        grid-template-columns: 1fr;
    }

    .cf-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .cf-radio__label {
        width: 100%;
        justify-content: flex-start;
    }

    .cf-checkbox-group {
        flex-direction: column;
        gap: 8px;
    }

    .cf-checkbox__label {
        width: 100%;
    }

    .cf-submit-btn {
        width: 100%;
        padding: 16px 32px;
        font-size: 17px;
    }
}

/* ========================================
   レスポンシブ: スマホ
   ======================================== */
@media (max-width: 479px) {
    .contact-form-section {
        padding: 50px 12px;
    }

    .contact-form-header__label {
        font-size: 12px;
    }

    .contact-form-header__title {
        font-size: 22px;
    }

    .contact-form-header__subtitle {
        font-size: 13px;
    }

    .contact-form-body {
        padding: 28px 18px;
    }

    .cf-field__label {
        font-size: 14px;
    }

    .cf-field__input,
    .cf-field__select,
    .cf-field__textarea {
        padding: 12px 14px;
    }

    .cf-radio__label {
        font-size: 14px;
        padding: 10px 18px;
    }

    .cf-checkbox__label {
        font-size: 13px;
        padding: 10px 16px;
    }

    .cf-submit-btn {
        font-size: 16px;
        padding: 15px 24px;
    }

    .cf-complete__title {
        font-size: 20px;
    }

    .cf-complete__message {
        font-size: 14px;
    }
}








