/* ==========================================================================
BookingPackage
========================================================================== */
#form-reserve {
    max-width: 800px;
    padding: 80px 0 0;
}

#form-reserve #booking-package_calendarPage .day_slot.pastDay.wed {
    position: relative;
    background: #e3fbfb;
}

#form-reserve #booking-package_calendarPage .day_slot.pastDay.wed::before {
    content: "定休日";
    position: absolute;
    top: 60%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--color-text);
}

#form-reserve #booking-package_calendarPage .day_slot.pastDay {
    background: #f5f5f5;
}

#form-reserve #booking-package_calendarPage .day_slot.pastDay .dateField {
    color: #ccc;
}

#form-reserve #booking-package_calendarPage .day_slot.sun {
    background: #ffdede;
}

#form-reserve #booking-package_calendarPage .numberInsteadOfSymbols {
    background: pink;
}

#form-reserve #booking-package_schedulePage .closed,
#form-reserve #booking-package_schedulePage .selectable_day_slot {
    display: none;
}

#form-reserve #booking-package_schedulePage .topPanel,
#form-reserve #booking-package_schedulePage .bottomPanelForPositionInherit {
    border-width: 0px;
    box-shadow: none;
}

#form-reserve #booking-package_schedulePage .daysListPanel {
    display: none;
}

#form-reserve #booking-package_schedulePage .courseListPanel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: none;
}

#form-reserve #booking-package_schedulePage .courseListPanel .selectable_time_slot {
    display: block;
    border-radius: 4px;
    border-right-width: 1px;
    border-left-width: 1px;
    border-top-width: 1px;
    text-align: center;
    background: rgba(166, 210, 189, 0.3);
    font-weight: 700;
}

#form-reserve #booking-package_schedulePage .courseListPanel .selectable_time_slot.closed {
    background: #efefef;
    color: #ccc;
    cursor: default;
}

/* 予約フォームのボタン全体 */
#form-reserve #booking-package button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-base);
    margin: 10px 5px;
}

/* 「予約する」ボタン（メイン） */
#form-reserve #booking-package button:first-of-type {
    background-color: var(--color-accent-orange);
    color: #fff;
    box-shadow: 0 10px 20px rgba(235, 166, 137, 0.2);
}

#form-reserve #booking-package button:first-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(235, 166, 137, 0.3);
    background-color: #df9473;
}

#form-reserve #booking-package_schedulePage .bottomPanelNoAnimation button {
    margin: 30px auto 0;
}

#form-reserve #booking-package_inputFormPanel .bottomBarPanel {
    text-align: center;
}

/* 「戻る」ボタン（サブ） */
#form-reserve #booking-package button:last-of-type {
    display: block;
    width: 320px;
    max-width: 100%;
    margin: 40px auto 10px;
    padding: 16px 20px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#form-reserve #booking-package button:last-of-type:hover {
    background-color: #8ec3a9;
    transform: translateY(-1px);
}

/* 予約フォームの入力エリア全体 */
#form-reserve #booking-package_inputFormPanel {
    padding: 40px 0;
    background: transparent;
}

/* 各入力項目のラップ */
#form-reserve #booking-package_inputFormPanel .inputFormRow {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* ラベル（項目名） */
#form-reserve #booking-package_inputFormPanel label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--color-text);
}

/* 必須マーク */
#form-reserve #booking-package_inputFormPanel label span[style*="color: red"],
#form-reserve #booking-package_inputFormPanel label span[style*="color:rgb(255, 0, 0)"] {
    color: #e74c3c !important;
    margin-left: 5px;
    font-size: 12px;
}

/* 入力欄 (input) */
#form-reserve #booking-package_inputFormPanel input[type="text"],
#form-reserve #booking-package_inputFormPanel input[type="email"],
#form-reserve #booking-package_inputFormPanel input[type="tel"],
#form-reserve #booking-package_inputFormPanel select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 15px;
    color: var(--color-text);
    transition: var(--transition);
    box-shadow: none;
    -webkit-appearance: none;
}

/* フォーカス時の演出 */
#form-reserve #booking-package_inputFormPanel input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(166, 210, 189, 0.15);
}

/* 利用規約同意エリアの調整（2カラム解除して中央寄せ） */
#form-reserve #booking-package_inputFormPanel .inputFormRow:has(#booking_package_input_terms),
#form-reserve #booking-package_inputFormPanel .row:has(#booking_package_input_terms) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 30px 20px;
    background: #fdfaf5;
    border: 1px solid #f3ede2;
    border-radius: 8px;
    margin: 40px 0;
}

/* ラベル部分を中央に */
#form-reserve #booking-package_inputFormPanel .row:has(#booking_package_input_terms) .name {
    width: auto !important;
    float: none !important;
    margin-bottom: 15px;
    padding: 0;
}

/* 入力・チェックボックス部分を中央に */
#form-reserve #booking-package_inputFormPanel .row:has(#booking_package_input_terms) .value {
    width: auto !important;
    float: none !important;
    padding: 0;
}

#form-reserve #booking-package_inputFormPanel #booking_package_input_terms label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

#form-reserve #booking-package_inputFormPanel #booking_package_input_terms input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
}

/* 下の補足テキスト */
#form-reserve #booking-package_inputFormPanel .row:has(#booking_package_input_terms) .description {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-light);
}

#form-reserve #booking-package_inputFormPanel textarea {
    padding: 15px;
}

#form-reserve #booking-package_inputFormPanel .row:has(#booking_package_value_textarea) .description {
    font-size: 14px;
    font-weight: 700;
}

/* 建売会場の選択リスト */
.reserve-estate-list {
    margin: 40px 0;
    padding: 2%;
    border: solid 2px var(--color-accent);
}

.reserve-estate-list .reserve-estate-name {
    font-size: 14px;
}

.reserve-estate-title {
    font-family: var(--font-mincho);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-bg-ivory);
    position: relative;
}

.reserve-estate-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* 「この会場を見学する」ボタン設定は下に移動しました */

.form-ready .reserve-estate-btn-select {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.reserve-estate-slider-wrap {
    position: relative;
    margin: 30px auto 0;
    width: 100%;
}

.reserve-estate-grid {
    width: 100%;
    position: relative;
    padding: 10px 0 0;
}

.reserve-estate-grid.swiper {
    overflow: hidden;
}

.reserve-estate-item {
    height: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.reserve-estate-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.reserve-estate-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}

.reserve-estate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reserve-estate-item:hover .reserve-estate-img img {
    transform: scale(1.05);
}

.reserve-estate-info {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.reserve-estate-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

.reserve-estate-btns {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reserve-estate-btn-detail {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none !important;
}

/* 「この会場を見学する」ボタン（共通スタイル + 非表示設定） */
.reserve-estate-btn-select {
    display: none;
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none !important;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reserve-estate-btn-detail {
    border: 1px solid var(--color-bg-gray);
    color: var(--color-text);
    background: #f9f9f9;
}

.reserve-estate-btn-detail:hover {
    background: #eee;
    color: var(--color-text);
}

.reserve-estate-btn-select:hover {
    background: #8ec3a9;
    transform: translateY(-2px);
    color: #fff;
    transition: transform 0.5s ease;
}

/* Swiper Navigation Custom (Outer Placement) */
.reserve-estate-nav .swiper-button-prev,
.reserve-estate-nav .swiper-button-next {
    color: var(--color-accent);
    width: 38px;
    height: 38px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    top: 50%;
    margin-top: -38px; /* Center relative to image height approx */
    z-index: 10;
    transition: all 0.3s ease;
}

/* 3枚以下の時（Swiperが自動的に付けるクラス）は非表示 */
.reserve-estate-nav .swiper-button-lock {
    display: none;
}

.reserve-estate-nav .swiper-button-prev::after,
.reserve-estate-nav .swiper-button-next::after {
    font-size: 12px;
    font-weight: 900;
}

.reserve-estate-nav .swiper-button-prev {
    left: -19px;
}

.reserve-estate-nav .swiper-button-next {
    right: -19px;
}

.reserve-estate-nav .swiper-button-prev:hover,
.reserve-estate-nav .swiper-button-next:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(166, 210, 189, 0.4);
    transform: scale(1.1);
}

/* ==========================================================================
Contact Form 7 カスタマイズ（来場予約のデザインに完全同期）
========================================================================== */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
}

/* 各項目 */
.wpcf7 p {
    margin-bottom: 0;
    padding: 10px;
    border-bottom: 1px solid #efefef;
    display: block;
}

/* 最初の項目（見出し直下の線） */
.wpcf7 p:first-child {
    border-top: 1px solid #efefef;
}

/* ラベル名 */
.wpcf7 p label {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

/* 必須マーク（あれば） */
.wpcf7 p label .required {
    margin-left: 4px;
}

.wpcf7-form-control-wrap {
    margin-top: 5px;
    display: block;
}

/* 入力欄（予約フォームの入力感に合わせる） */
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select {
    width: 100% !important;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fcfcfc;
    font-size: 15px;
    color: var(--color-text);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
    border-color: #bbb;
    background-color: #fff;
    outline: none;
}

.wpcf7-textarea {
    height: 140px;
}

/* 送信ボタン（全体のバランス調整） */
.wpcf7-submit {
    display: block;
    width: 320px;
    max-width: 100%;
    margin: 40px auto 10px;
    padding: 16px 20px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpcf7-submit:hover {
    background-color: #8ec3a9;
    transform: translateY(-1px);
}

/* 送信完了メッセージ */
.wpcf7 form.sent .wpcf7-response-output {
    text-align: center;
}

/* ラジオボタンなどのタイトル用（label と同じ見た目にする） */
.wpcf7 p .field-title {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

/* 必須マーク（*）のスタイルを BP と合わせる */
.wpcf7 .required:after {
    position: relative;
    top: 3px;
    content: '*';
    color: #ff1c1c;
    margin-left: 2px;
    display: inline;
}

/* ==========================================================================
サンクスページ (thanks-page)
========================================================================== */
.thanks-page-content {
    text-align: center;
    padding: 0 20px;
}

.thanks-page-content h2 {
    font-family: var(--font-mincho);
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 40px;
    border-bottom: none;
    color: var(--color-text);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.thanks-page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.thanks-page-content p {
    font-size: 16px;
    line-height: 2.2;
    color: #444;
    margin-bottom: 60px;
}

.thanks-page-content .btn-wrap {
    margin-top: 40px;
}

.thanks-page-content .btn-back {
    display: inline-block;
    background-color: var(--color-text);
    color: #fff;
    padding: 18px 60px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.thanks-page-content .btn-back:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/*reCAPTCHA*/
.grecaptcha-badge { 
    bottom: 100px !important;
    z-index: 100000 !important;
}
