/* お問い合わせフォームのスタイル */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 20px 20px;
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
}

.contact-warning {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.contact-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1E50A2;
}

.contact-section-title .required {
    color: #dc2626;
    font-size: 12px;
    background-color: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .contact-form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.contact-label .required {
    color: #dc2626;
    font-size: 12px;
    background-color: #fef2f2;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    outline: none;
    border-color: #1E50A2;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-input.error,
.contact-select.error,
.contact-textarea.error {
    border-color: #dc2626;
}

.contact-input::placeholder {
    color: #9ca3af;
}

.contact-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* 郵便番号入力エリア */
.contact-postal-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-postal-input {
    width: 120px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
}

.contact-postal-button {
    padding: 12px 20px;
    background-color: #1E50A2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-postal-button:hover {
    background-color: #1d4ed8;
}

.contact-postal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* チェックボックス・ラジオボタン */
.contact-checkbox-group,
.contact-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-checkbox-item,
.contact-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-checkbox,
.contact-radio {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    cursor: pointer;
}

.contact-checkbox {
    border-radius: 3px;
}

.contact-radio {
    border-radius: 50%;
}

.contact-checkbox:checked,
.contact-radio:checked {
    background-color: #1E50A2;
    border-color: #1E50A2;
}

.contact-checkbox-label,
.contact-radio-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

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

.contact-submit-button {
    padding: 16px 40px;
    background-color: #1E50A2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.contact-submit-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.contact-submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .contact-container {
        padding: 15px;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .contact-section {
        padding: 20px;
    }
    
    .contact-section-title {
        font-size: 18px;
    }
    
    .contact-checkbox-group,
    .contact-radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-postal-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-postal-input {
        width: 100%;
    }
}

/* アクセシビリティ */
.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus,
.contact-checkbox:focus,
.contact-radio:focus,
.contact-postal-button:focus,
.contact-submit-button:focus {
    outline: 2px solid #1E50A2;
    outline-offset: 2px;
}

/* 印刷時のスタイル */
@media print {
    .contact-container {
        max-width: none;
        padding: 0;
    }
    
    .contact-section {
        box-shadow: none;
        border: 1px solid #d1d5db;
        page-break-inside: avoid;
    }
    
    .contact-submit-area {
        display: none;
    }
}

/* 英語版お問い合わせフォーム用スタイル */
.contact-info-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.contact-info-section p {
    color: #666;
    margin-bottom: 15px;
}

.contact-info {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.contact-info h3,
.contact-info h4 {
    color: #1E50A2;
    margin-bottom: 10px;
}

.contact-info p {
    color: #333;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.social-link:hover {
    background-color: #f8f9fa;
    border-color: #1E50A2;
    color: #1E50A2;
}

.social-icon {
    font-size: 16px;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link.facebook:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* レスポンシブ対応（英語版） */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 20px 15px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* 送信完了ページ用スタイル */
.contact-complete-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-success-icon {
    margin-bottom: 30px;
}

.contact-complete-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.contact-complete-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.contact-complete-message p {
    margin-bottom: 10px;
}

.contact-success-message {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #059669;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-next-steps {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: left;
}

.contact-next-steps h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background-color: #1E50A2;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.step-content p {
    color: #666;
    margin: 0;
}

.contact-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background-color: #1E50A2;
    color: white;
}

.btn-primary:hover {
    background-color: #1a4a8f;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    color: white;
    text-decoration: none;
}

/* 送信完了ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .contact-complete-title {
        font-size: 24px;
    }
    
    .contact-complete-message {
        font-size: 16px;
    }
    
    .contact-next-steps {
        padding: 20px 15px;
    }
    
    .contact-next-steps h2 {
        font-size: 20px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .contact-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}
