/* ============================================
   お問い合わせフォーム専用スタイル
   ============================================ */

/* コンテナ */
.contact-page {
    background: #00b8ee;
    min-height: 100vh;
    padding: 100px 0 80px;
}

.container1080 {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ページタイトル */
.page-title {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* フォームコンテナ */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-description {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

/* 必須マーク */
.required-mark {
    color: #c40000;
    font-weight: bold;
    margin-left: 5px;
}

/* エラーメッセージ */
.error-messages {
    background: #ffe6e6;
    border: 2px solid #c40000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-messages p {
    color: #c40000;
    font-weight: bold;
    margin-bottom: 10px;
}

.error-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-messages li {
    color: #c40000;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.error-messages li:before {
    content: "●";
    position: absolute;
    left: 0;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* フォームコントロール */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #00b8ee;
    box-shadow: 0 0 0 3px rgba(0, 184, 238, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

select.form-control {
    cursor: pointer;
}

/* チェックボックスグループ */
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group a {
    color: #00b8ee;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #0099cc;
}

/* ボタン */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-primary {
    background: #c40000;
    color: #fff;
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 0, 0, 0.3);
}

.btn-secondary {
    background: #999;
    color: #fff;
}

.btn-secondary:hover {
    background: #777;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 確認画面 */
.confirm-table {
    margin: 30px 0;
}

.confirm-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

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

.confirm-table th {
    background: #f8f8f8;
    font-weight: 600;
    width: 200px;
    color: #333;
}

.confirm-table td {
    color: #333;
}

/* 確認画面のボタンエリア */
.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.confirm-actions form {
    margin: 0;
}

/* 送信完了画面 */
.complete-message {
    text-align: center;
    padding: 40px 20px;
}

.complete-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.complete-message h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.complete-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.back-to-top {
    margin-top: 40px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .contact-page {
        padding: 80px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .form-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .confirm-table th {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .confirm-table th,
    .confirm-table td {
        padding: 10px;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 15px 30px;
    }
    
    .complete-icon {
        width: 80px;
        height: 80px;
    }
    
    .complete-message h2 {
        font-size: 1.5rem;
    }
    
    .complete-message p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .confirm-table {
        overflow-x: auto;
    }
    
    .confirm-table table {
        font-size: 0.9rem;
    }
    
    .confirm-table th {
        width: 100px;
        font-size: 0.85rem;
    }
}
