/* ==========================================================================
   予約フォーム専用スタイルシート（reserve_e）
   ========================================================================== */

/* bodyの位置調整（drawer-topクラスによる上部余白を削除） */
body.l-reserve_e {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.l-reserve_e.drawer-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* すべての可能性のあるコンテナの上部余白をリセット */
.l-reserve_e .drawer-overlay,
.l-reserve_e .l-wrapper,
.l-reserve_e .l-main,
.l-reserve_e .list-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ヘッダー固定の場合の調整 */
.l-reserve_e .l-header {
    position: relative !important;
    top: 0 !important;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    body.l-reserve_e {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* フォームコンテナのスタイル調整 */
.l-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* フォームタイトル */
.form_title_container {
    text-align: center;
    margin-bottom: 40px;
}

.l-form_title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--main_corp_color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.l-form_subtitle {
    font-size: 1.2rem;
    color: var(--main_color_black);
}

/* フォーム注意文 */
.l-form_attention {
    background: var(--background_gray);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
}

.l-form_attention p {
    margin: 0;
    color: var(--main_color_black);
    line-height: 1.6;
}

/* フォーム行のスタイル */
.form__row {
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.form__row:last-child {
    border-bottom: none;
}

/* フォームヘッダー */
.form__row-header {
    margin-bottom: 10px;
}

/* detail_list_test.php（入力画面）では非表示 */
.l-detail .form__row-header {
    display: none !important;
}

/* 確認画面では表示 */
.l-reserve_e .form__row-header {
    display: block;
}

.form__label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--main_color_black);
}

.form__label label {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* フォームフィールド */
.form__field input[type="text"],
.form__field input[type="email"],
.form__field input[type="tel"],
.form__field textarea,
.form__field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form__field input[type="text"]:focus,
.form__field input[type="email"]:focus,
.form__field input[type="tel"]:focus,
.form__field textarea:focus,
.form__field select:focus {
    border-color: var(--main_corp_color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* セレクトボックスのスタイル */
.form__select--required,
.form__select--optional {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
}

.form__select--required:last-child,
.form__select--optional:last-child {
    margin-right: 0;
}

.form__select--required select,
.form__select--optional select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

/* 確認画面用のスタイル */
.form__confirm-value {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form__confirm-label {
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.form__confirm-text {
    color: var(--main_color_black);
    font-size: 1.1rem;
}

/* 確認画面でのフォーム行スタイル */
.l-reserve_e.confirm .form__row,
.l-reserve_e .form__step--confirm .form__row {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-bottom: none;
}

/* 確認画面での値表示 */
.l-reserve_e .form__row-body .form__value,
.l-reserve_e .form__confirm-value {
    background: white;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-top: 8px;
}

/* ボタンスタイル */
.l-form-container__buttons {
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 550px) {
    .l-form-container__buttons{
        flex-direction: column;
    }
}

.form__button-submit {
    background: var(--button_corp_color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.form__button-submit:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 戻るボタン */
.form__button-back {
    background: transparent;
    color: var(--button_corp_color);
    border: 2px solid var(--button_corp_color);
    padding: 15px 40px;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
}

.form__button-back:hover {
    background: var(--sub_corp_color);
    color: white;
}

/* フロー表示（必要に応じて表示） */
.l-form-container__flow {
    display: none; /* 一旦非表示 */
}

/* エラーメッセージ */
.form__message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 完了画面 */
.form__complete {
    text-align: center;
    padding: 60px 20px;
}

.form__complete-title {
    font-size: 2rem;
    color: var(--main_corp_color);
    margin-bottom: 20px;
}

.form__complete-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--main_color_black);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .l-form-container {
        padding: 20px 15px;
    }
    
    .form__select--required,
    .form__select--optional {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .form__button-submit,
    .form__button-back {
        width: 280px;
        height: 60px;
        margin: 10px 0;
    }
}

/* ラジオボタンのスタイル */
.field_radio {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form__radio {
    margin: 0;
    margin-right: 5px;
}

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

/* 非表示要素の確実な非表示化 */
.form__hidden,
[type="hidden"] {
    display: none !important;
}

/* フォームバリデーション状態（detail_list_testから移植） */
.form-validation-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none; /* 確認画面では非表示 */
}

.l-visual-sub{
    height: 100px;
    width: 100%;
    margin-top: 100px;
}

.l-visual-sub .main{
    height: 100px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.l-visual-sub .content{
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    text-align: center;    
}

.l-visual-sub .content h2{
    color: var(--main_corp_color) !important;
    font-size: 4rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.l-visual-sub .content p{
    color: var(--main_color_black) !important;
    font-size: 1.8rem !important;
    font-weight: 700;
    margin: 0 !important;
    padding: 0 !important;
}