@charset "UTF-8";
/* ==========================================================================
   AQUASENSE 予約検索パネル reservation-search.css
   - クラスは rsv- で始める。489ban 側の生成DOM（form[name=searchForm489ban] / *_489ban）は
     支給タグのまま描画させ、.rsv-489ban の下で当てる。
   - 色は DESIGN.md の範囲のみ: 青 #3572B7 / 本文 #464542 / 白。角丸・影・グラデーションなし。
   - 書体は body の明朝を継承（フォーム部品は font: inherit で明朝に揃える）。
   - ブレークポイントは既存テーマと同じ 768 / 769。
   ========================================================================== */

.rsv-search {
    --rsv-blue: #3572B7;
    --rsv-text: #464542;
    color: var(--rsv-text);
    letter-spacing: 1px;
    line-height: 1.8;
    font-size: 14px;
    text-align: left;
}
.rsv-search *,
.rsv-search *::before,
.rsv-search *::after { box-sizing: border-box; }
.rsv-search [hidden] { display: none !important; }

/* ---------- タブ ---------- */
.rsv-tabs { display: flex; }
.rsv-tab {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 14px 8px;
    border: 1px solid var(--rsv-blue);
    border-radius: 0;
    background: #fff;
    color: var(--rsv-blue);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    word-break: keep-all; /* 折り返すときは <wbr>（＋の前）でだけ折る */
    cursor: pointer;
    transition: background-color .3s, color .3s;
}
.rsv-tab + .rsv-tab { border-left: 0; }
.rsv-tab.is-active,
.rsv-tab[aria-selected="true"] { background: var(--rsv-blue); color: #fff; cursor: default; }
@media (hover: hover) {
    .rsv-tab:not([aria-selected="true"]):hover { opacity: .75; }
}

/* フォーカス表示（キーボード操作用） */
.rsv-search :focus-visible,
.rsv-dialog :focus-visible,
.fixed-reserve-bar .reserve-link:focus-visible {
    outline: 2px solid var(--rsv-blue, #3572B7);
    outline-offset: 2px;
}
.rsv-tab:focus-visible { outline-offset: -5px; outline-color: #fff; }
.rsv-tab:not([aria-selected="true"]):focus-visible { outline-color: var(--rsv-blue); }

/* ---------- パネル ---------- */
.rsv-panel {
    border: 1px solid var(--rsv-blue);
    border-top: 0;
    background: #fff;
    padding: 28px 24px 24px;
}

/* ---------- フォーム共通（489ban の生成DOM ＋ 航空券フォーム） ---------- */
.rsv-panel form {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    align-items: end;
}
.rsv-489ban .inbox_489ban { display: contents; }   /* 中の dl をグリッドの直下に並べる */
.rsv-panel dl { margin: 0; min-width: 0; }
.rsv-panel dt {
    margin: 0 0 6px;
    color: var(--rsv-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.rsv-panel dt label { font-weight: inherit; cursor: default; }
.rsv-panel dd {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 8px;
    font-size: 14px;
}
.rsv-panel dd > span { flex: none; }

.rsv-panel select,
.rsv-panel input[type="date"],
.rsv-panel input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--rsv-blue);
    border-radius: 0;
    background-color: #fff;
    color: var(--rsv-text);
    font: inherit;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
}
.rsv-panel dd > select,
.rsv-panel dd > input[type="text"] { width: auto; }
/* セレクト・子供人数の矢印（青の細線。画像ファイルを足さない） */
.rsv-panel select,
.rsv-489ban .child_count {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233572B7' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 10px 6px;
    cursor: pointer;
}
.rsv-panel input[type="date"] { cursor: pointer; }
.rsv-panel input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.rsv-panel input:disabled,
.rsv-panel select:disabled { opacity: .45; cursor: not-allowed; }

.rsv-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    vertical-align: -2px;
    accent-color: var(--rsv-blue);
}
.rsv-489ban .date_489ban dd label { white-space: nowrap; cursor: pointer; font-size: 14px; }

/* 1行全体を使う項目 */
.rsv-489ban .date_489ban,
.rsv-489ban .child_input,
.rsv-air_dep,
.rsv-air_date,
.rsv-panel .rsv-submit { grid-column: 1 / -1; }

.rsv-489ban .date_489ban input[type="date"] { flex: 1 1 160px; }

/* 子供の内訳（489ban 生成。初期は style="display:none"、JS で開閉） */
.rsv-489ban .child_input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 16px 0 0;
    border-top: 1px solid var(--rsv-blue);
}
.rsv-489ban .child_input dt span { display: block; font-weight: 400; color: var(--rsv-text); }
.rsv-489ban .child_input > p { grid-column: 1 / -1; margin: 0; text-align: right; }
.rsv-489ban .close_child_input { color: var(--rsv-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ボタン（主：青地×白文字・角丸なし） ---------- */
.rsv-panel button[name="searchButton489ban"],
.rsv-submit {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 8px 24px;
    border: 1px solid var(--rsv-blue);
    border-radius: 0;
    background: var(--rsv-blue);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}
.rsv-panel button[name="searchButton489ban"] { grid-column: 1 / -1; }
@media (hover: hover) {
    .rsv-panel button[name="searchButton489ban"]:hover,
    .rsv-submit:hover { background: #fff; color: var(--rsv-blue); opacity: 1; }
}

/* ---------- 補助リンク・注記 ---------- */
.rsv-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.rsv-links li { margin: 0; padding: 0; list-style: none; }
.rsv-links a { color: var(--rsv-blue); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .rsv-links a:hover { text-decoration: none; } }

.rsv-car { display: grid; gap: 18px; }
.rsv-note { margin: 0; font-size: 14px; line-height: 1.8; }

/* ==========================================================================
   A案：メインビジュアル直下の帯（.rsv-band）
   ========================================================================== */
.rsv-band {
    position: relative;
    z-index: 3;            /* .main-visual(z-index:2) の固定サークルより前に出す */
    background: #fff;
    padding: 60px 0 0;
}
.rsv-band_inner { width: 96%; max-width: 1024px; margin: 0 auto; }
.rsv-heading {
    position: relative;
    margin: 0 0 24px;
    padding-left: 8rem;
    color: #3572B7;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .05em;
}
.rsv-heading::before {      /* 既存 .heading-lv2 と同じ「— 見出し」形式 */
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5.7rem;
    height: 1px;
    background: #3572B7;
}
.rsv-heading_ja { margin-left: 1.2em; font-size: 15px; letter-spacing: 1px; }

/* PC：横一列 */
@media screen and (min-width: 769px) {
    .rsv-search--row .rsv-tabs { max-width: 600px; }
    .rsv-search--row .rsv-panel { padding: 28px 28px 22px; }
    .rsv-search--row .rsv-panel form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 12px; }
    .rsv-search--row .rsv-panel dl { flex: 0 0 auto; }
    .rsv-search--row .rsv-489ban .date_489ban input[type="date"] { flex: 0 0 166px; width: 166px; }
    .rsv-search--row .rsv-489ban .stay_489ban select { width: 98px; }
    .rsv-search--row .rsv-489ban .room_489ban select,
    .rsv-search--row .rsv-489ban .person_489ban select,
    .rsv-search--row .rsv-489ban .child_count { width: 66px; }
    .rsv-search--row .rsv-489ban .child_input { order: 10; flex: 1 0 100%; grid-template-columns: repeat(2, minmax(0, 300px)); }
    .rsv-search--row .rsv-489ban .child_input select { width: 66px; }
    .rsv-search--row .rsv-panel button[name="searchButton489ban"],
    .rsv-search--row .rsv-air .rsv-submit { flex: 1 1 120px; width: auto; height: 46px; min-height: 46px; }
    .rsv-search--row .rsv-air_dep select { width: 250px; }
    .rsv-search--row .rsv-air_date input[type="date"] { width: 166px; }
    .rsv-search--row .rsv-air_days select { width: 98px; }
    .rsv-search--row .rsv-air_person select { width: 120px; }
    .rsv-search--row .rsv-car { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
    .rsv-search--row .rsv-car .rsv-submit { width: auto; padding: 8px 40px; }
}

/* SP（既存テーマと同じ vw スケールの余白。本文サイズは 15px 以上を確保） */
@media screen and (max-width: 768px) {
    .rsv-band { padding: 12.5vw 0 0; }
    .rsv-band_inner { width: auto; margin: 0 9.375vw; }
    .rsv-heading { padding-left: 13.125vw; margin-bottom: 5vw; font-size: 5.3125vw; line-height: 1.5; }
    .rsv-heading::before { width: 8.75vw; }
    .rsv-heading_ja { display: block; margin: 0; font-size: 15px; }
    .rsv-search, .rsv-panel dt, .rsv-panel dd,
    .rsv-489ban .date_489ban dd label, .rsv-links, .rsv-note { font-size: 15px; }
    .rsv-tab { font-size: 15px; padding: 10px 4px; }
    .rsv-panel { padding: 22px 16px 20px; }
    .rsv-panel form { gap: 16px 12px; }
    .rsv-panel select,
    .rsv-panel input[type="date"],
    .rsv-panel input[type="text"] { font-size: 16px; }   /* iOS の自動ズーム防止 */
    .rsv-links { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   B案：右下「RESERVATION 宿泊予約」で開くパネル（.rsv-dialog）
   bottom は JS が固定ボタンの高さを --rsv-bar-h に入れる
   ========================================================================== */
.rsv-dialog {
    --rsv-blue: #3572B7;
    position: fixed;
    right: 0;
    bottom: var(--rsv-bar-h, 86px);
    z-index: 9991;
    width: 460px;
    max-width: 100%;
    /* 上はPCヘッダー（約98px）を隠さない高さまで */
    max-height: calc(100vh - var(--rsv-bar-h, 86px) - 98px);
    max-height: calc(100dvh - var(--rsv-bar-h, 86px) - 98px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--rsv-blue);
    border-right: 0;
    padding: 20px 24px 24px;
    color: #464542;
}
.rsv-dialog.is-open { animation: rsv-in .25s ease-out; }
@keyframes rsv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rsv-dialog.is-open { animation: none; } }

.rsv-dialog_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}
.rsv-dialog_title { margin: 0; color: var(--rsv-blue); font-weight: 700; line-height: 1.4; }
.rsv-dialog_title .en { display: block; font-size: 18px; letter-spacing: 4px; }
.rsv-dialog_title .ja { display: block; font-size: 14px; letter-spacing: 1px; }
.rsv-dialog_close {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    margin: 0;
    padding: 8px 4px 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rsv-blue);
    font: inherit;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
}
.rsv-dialog_close::after { content: "×"; margin-left: .5em; font-size: 18px; vertical-align: -1px; }
.rsv-dialog .rsv-panel { padding: 22px 18px 20px; }
.rsv-dialog .rsv-links { flex-direction: column; gap: 6px; }
.fixed-reserve-bar .reserve-link[aria-expanded="true"] { background: #3572B7; opacity: 1; }

@media screen and (max-width: 768px) {
    .rsv-dialog {
        /* 画面端から少し離して置く（左右16px・固定ボタンの上12px）。四辺に罫線 */
        left: 16px;
        right: 16px;
        bottom: calc(var(--rsv-bar-h, 60px) + 12px);
        width: auto;
        border-right: 1px solid var(--rsv-blue);
        max-height: calc(100vh - var(--rsv-bar-h, 60px) - 80px);
        max-height: calc(100dvh - var(--rsv-bar-h, 60px) - 80px);
        padding: 18px 16px 20px;
    }
    .rsv-dialog .rsv-panel { padding: 20px 14px 18px; }
    .rsv-dialog_close { font-size: 15px; }
    .rsv-dialog_title .ja { font-size: 15px; }
    .rsv-submit { padding: 8px 16px; letter-spacing: 1px; text-wrap: balance; }
}
