﻿:root {
    /* カラーパレット */
    --gray-color: #ddd;
    --transition-normal: 0.3s ease;
}

.contact-section.bg-light {
    background-color: var(--light-bg-color);
    padding: 60px 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* タブ切り替え */
.contact-tabs {
    display: flex;
    background: var(--gray-color);
}

.tab-btn {
    flex: 1;
    padding: 18px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background var(--transition-normal), color var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .tab-btn i {
        margin-right: 8px;
    }

    .tab-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        transition: background var(--transition-normal);
    }

    .tab-btn.active {
        color: var(--text-dark);
        background: #fff;
    }

        .tab-btn.active::after {
            background: var(--primary-red);
        }

    .tab-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.5);
        color: var(--text-dark);
    }

/* パネル */
.tab-panel {
    display: none;
    padding: 35px;
    background: #fff;
}

    .tab-panel.active {
        display: block;
        animation: fadeIn 0.5s ease forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text-dark);
        font-size: 0.95rem;
    }

.required {
    color: var(--primary-red);
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-gold);
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    }

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-privacy {
    display: flex;
    align-items: center;
}

    .form-privacy input {
        margin-right: 10px;
        transform: scale(1.2);
        accent-color: var(--primary-red);
    }

    .form-privacy label {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .form-privacy a {
        color: var(--primary-red);
        font-weight: 600;
        text-decoration: none;
    }

        .form-privacy a:hover {
            text-decoration: underline;
        }

.form-submit {
    padding: 16px 30px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background var(--transition-normal), transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(229, 28, 35, 0.2);
    margin: 10px auto 0;
}

    .form-submit span {
        margin-right: 10px;
    }

    .form-submit:hover {
        background: #d81b1f;
        transform: translateY(-3px);
        box-shadow: 0 12px 20px rgba(229, 28, 35, 0.3);
    }

/* メールタブ */
.email-contact {
    display: flex;
    gap: 30px;
}

.email-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

    .email-icon i {
        font-size: 30px;
        color: var(--dark-color);
    }

.email-info {
    flex: 1;
}

    .email-info h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 15px;
    }

    .email-info p {
        color: var(--text-muted);
        line-height: 1.6;
        margin-bottom: 20px;
    }

.email-link {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    background: var(--gray-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
    transition: background var(--transition-normal), transform var(--transition-normal);
    margin-bottom: 25px;
}

    .email-link i {
        margin-left: 10px;
        font-size: 0.85rem;
        opacity: 0.7;
        transition: opacity var(--transition-normal), transform var(--transition-normal);
    }

    .email-link:hover {
        background: var(--primary-red);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(229, 28, 35, 0.15);
    }

        .email-link:hover i {
            opacity: 1;
            transform: translateX(3px);
        }

/* レスポンシブ */
@media (max-width: 768px) {
    .contact-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 15px;
    }

    .tab-panel {
        padding: 25px 20px;
    }

    .contact-form {
        gap: 20px;
    }

    .email-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
