/*
お問合せフォーム専用スタイル
Contact Form Styles
*/

/* ====== メッセージ表示 ====== */
.error-message {
    color: #d63384;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    /* デフォルトでは非表示 */
}

.error-message.show {
    display: block;
}

/* サーバーサイドエラー表示 */
.error-message[style*="display: block"] {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d1edff;
    color: #0c5460;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #b8daff;
}

/* ====== フォームコンテナ ====== */
.contact-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ====== フォームグループ ====== */
.form-group {
    margin-bottom: 1.5rem;
}

/* ====== ラベル ====== */
.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #d63384;
    font-weight: bold;
}

/* ====== 入力フィールド ====== */
.form-input,
.form-textarea {
    width: -webkit-fill-available;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-input.error,
.form-textarea.error {
    border-color: #d63384;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

/* テキストエリア */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====== ラジオボタングループ ====== */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* ====== プライバシーポリシー ====== */
.privacy-policy {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.privacy-policy h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.privacy-policy-content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.privacy-policy-content p {
    margin-bottom: 1rem;
}

.privacy-policy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-policy-content li {
    margin-bottom: 0.5rem;
}

.privacy-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.privacy-agreement input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
}

.privacy-agreement label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
}

/* ====== 送信ボタン ====== */
.submit-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    display: block;
}

.submit-button:hover:not(:disabled) {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== 確認画面スタイル ====== */
.confirm-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.confirm-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-table th,
.confirm-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.confirm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.confirm-table td {
    background: #fff;
    line-height: 1.6;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
    border-bottom: none;
}

/* 確認画面のボタン */
.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: #0d6efd;
    color: white;
    border: 2px solid #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
}

/* ====== 完了画面スタイル ====== */
.completion-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.completion-message {
    background: #d1edff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.completion-message h2 {
    color: #0c5460;
    margin-bottom: 1rem;
}

.completion-message p {
    color: #0c5460;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.completion-message p:last-child {
    margin-bottom: 0;
}

.inquiry-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0d6efd;
}

/* ====== レスポンシブ対応 ====== */
@media (max-width: 768px) {

    .contact-form-container,
    .confirm-container,
    .completion-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .confirm-table {
        font-size: 0.9rem;
    }

    .confirm-table th,
    .confirm-table td {
        padding: 0.75rem;
    }

    .confirm-table th {
        width: 35%;
    }

    .confirm-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .privacy-policy {
        padding: 1rem;
    }

    .privacy-policy h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .confirm-table {
        font-size: 0.85rem;
    }

    .confirm-table th {
        width: 40%;
    }

    .confirm-table th,
    .confirm-table td {
        padding: 0.5rem;
    }

    .completion-message {
        padding: 1.5rem;
    }

    .privacy-policy {
        padding: 0.75rem;
    }
}

/* お問い合わせページ: 電話案内ボックス */
.contact-phone-box {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-phone-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.phone-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-phone-box:hover .phone-icon {
    background: rgba(255, 255, 255, 0.25);
}

.phone-text {
    flex: 1;
}

.phone-title {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.phone-number {
    margin-bottom: 0.75rem;
}

.phone-link {
    display: flex;
    flex-direction: column;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.phone-link:hover {
    opacity: 0.9;
}

.phone-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.phone-num {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.05em;
}

.phone-hours {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-phone-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .phone-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .phone-icon {
        width: 50px;
        height: 50px;
    }

    .phone-title {
        font-size: 1rem;
    }

    .phone-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-phone-box {
        padding: 1rem;
        border-radius: 8px;
    }

    .phone-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .phone-num {
        font-size: 1.3rem;
    }

    .phone-label,
    .phone-hours {
        font-size: 0.85rem;
    }
}