/* メインコンテンツのスタイル */
.contact-main {
    padding-top: calc(73px + 3rem);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 73px);
}

/* フォームタイトル */
.form-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
}

.form-description {
    font-size: 1.6rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

/* コンタクトコンテナ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

/* お問い合わせ情報カード */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #ffffff;
    font-size: 2.4rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.info-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.phone-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.info-description {
    color: #666;
    line-height: 1.6;
}

/* 営業時間 */
.business-hours {
    margin-top: 1.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row dt {
    color: #666;
    font-weight: 500;
}

.hours-row dd {
    color: #2c3e50;
    font-weight: 700;
}

/* コンタクトフォーム */
.contact-form {
    background: #ffffff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #2c3e50;
}

.required {
    background: #e74c3c;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-left: 1rem;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
    background: #ffffff;
}

textarea {
    height: 200px;
    resize: vertical;
}

/* チェックボックスのカスタマイズ */
.privacy-policy {
    margin-top: 3rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
    background: rgba(52, 152, 219, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background: #3498db;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.policy-text {
    color: #2c3e50;
    font-size: 1.4rem;
}

/* 送信ボタン */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.submit-button:hover::before {
    left: 100%;
    opacity: 1;
}

.button-text {
    margin-right: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        flex-direction: row;
    }

    .info-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding-top: calc(73px + 1rem);
    }

    .contact-container {
        padding: 2rem 2rem;
        display: flex;
        flex-direction: column;
    }

    /* フォームタイトルの余白調整 */
    .form-title {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }

    .form-description {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    /* フォームを上に配置 */
    .contact-form {
        order: 1;
        padding: 2rem;
    }

    /* 情報カードを下に配置 */
    .contact-info {
        order: 2;
        flex-direction: column;
        margin-top: 3rem;
    }

    .info-card {
        padding: 2rem;
    }

    .phone-number {
        font-size: 2rem;
    }

    .checkbox-container {
        padding: 1rem 0;
    }

    .checkmark {
        width: 22px;
        height: 22px;
    }

    .checkmark:after {
        left: 7px;
        top: 3px;
        width: 5px;
        height: 11px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.contact-form {
    animation: fadeInUp 0.6s ease-out forwards;
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form {
    animation-delay: 0.4s;
}

.hidden-field { display: none !important; }

/* プライバシーポリシーセクション */
.privacy-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.privacy-label {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.privacy-box {
    height: 180px;
    overflow-y: scroll;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
}

.privacy-box h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1.4rem;
}

.privacy-box h4:first-child {
    margin-top: 0;
}

.privacy-check {
    text-align: center;
    margin-top: 1rem;
}

.privacy-check label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    user-select: none;
}

.privacy-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #3498db;
}