/* お問い合わせフォーム - マテリアルデザイン */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.contact-wrapper {
    min-height: 100vh;
}

/* ヘッダーセクション */
.contact-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.contact-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* お問い合わせ方法 */
.contact-methods {
    padding: 60px 20px;
    background: white;
}

.contact-methods .container {
    max-width: 1000px;
    margin: 0 auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.method-card {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.method-title {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 12px 0;
}

.method-description {
    font-size: 14px;
    color: #616161;
    margin: 0;
    line-height: 1.6;
}

.phone-link {
    color: #FF6B35;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin: 8px 0;
}

.phone-link:hover {
    text-decoration: underline;
}

.business-hours {
    font-size: 13px;
    color: #757575;
}

/* フォームセクション */
.form-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.form-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    background: white;
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-content {
    display: grid;
    gap: 32px;
}

/* フォームフィールド */
.form-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
}

.required {
    color: #f44336;
}

.field-input,
.field-textarea {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.field-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ラジオボタングループ */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-content {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.radio-card:hover .radio-content {
    border-color: #FF6B35;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-card input:checked ~ .radio-content {
    border-color: #FF6B35;
    background: #fff3f0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.radio-icon {
    font-size: 28px;
}

.radio-text {
    font-size: 14px;
    font-weight: 500;
    color: #424242;
}

.radio-card input:checked ~ .radio-content .radio-text {
    color: #FF6B35;
    font-weight: 600;
}

/* チェックボックス */
.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer;
    font-size: 14px;
    color: #424242;
    line-height: 1.6;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    margin-top: 2px;
    display: inline-block !important;
}

.checkbox-label span {
    flex: 1;
    display: inline-block !important;
    writing-mode: horizontal-tb !important;
}

.privacy-link {
    color: #FF6B35;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* 送信ボタン */
.form-actions {
    text-align: center;
    padding-top: 16px;
}

.btn-submit {
    background: #4CAF50;
    color: white;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #45a049;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

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

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

.btn-icon {
    font-size: 20px;
}

/* FAQリンクセクション */
.faq-link-section {
    padding: 60px 20px;
    background: white;
}

.faq-link-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: linear-gradient(135deg, #fff3f0 0%, #ffe8e0 100%);
    border: 2px solid #FF6B35;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.faq-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.faq-title {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 12px 0;
}

.faq-description {
    font-size: 14px;
    color: #616161;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.faq-link-btn {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.faq-link-btn:hover {
    background: #ff5722;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .contact-header {
        padding: 60px 20px 40px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 14px;
    }

    .contact-methods {
        padding: 40px 20px;
    }

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

    .form-section {
        padding: 40px 16px;
    }

    .form-container {
        padding: 32px 24px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .faq-link-section {
        padding: 40px 20px;
    }

    .faq-card {
        padding: 32px 24px;
    }

    .faq-title {
        font-size: 20px;
    }
}

/* アニメーション効果 */
.form-field {
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-field:nth-child(1) { animation-delay: 0.05s; }
.form-field:nth-child(2) { animation-delay: 0.1s; }
.form-field:nth-child(3) { animation-delay: 0.15s; }
.form-field:nth-child(4) { animation-delay: 0.2s; }
.form-field:nth-child(5) { animation-delay: 0.25s; }
.form-field:nth-child(6) { animation-delay: 0.3s; }
.form-field:nth-child(7) { animation-delay: 0.35s; }
.form-field:nth-child(8) { animation-delay: 0.4s; }
.form-field:nth-child(9) { animation-delay: 0.45s; }
.form-field:nth-child(10) { animation-delay: 0.5s; }

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

.radio-card {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.radio-card:nth-child(1) { animation-delay: 0.05s; }
.radio-card:nth-child(2) { animation-delay: 0.1s; }
.radio-card:nth-child(3) { animation-delay: 0.15s; }
.radio-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
