/* =========================
   hotel.css（ホテル詳細）
   ========================= */
/* ==== レイアウト土台 ==== */
:root{
    --gallery-footer-h: 54px;   /* 指定のフッター高さ */
}

/* メイン */
.site-main .inner {
    padding: 0 0 40px;
}
@media (max-width: 1024px) {
    .site-main .inner {
        padding: 0 0 40px;
    }
}
@media (max-width: 767px) {
    .site-main .inner {
        padding: 0 0 40px;
    }
}

/* ---- ホテルヘッダ ---- */
.hotel-head {
    display: grid;
    grid-template-columns: 340px 1fr;   /* 画像幅 340px */
    gap: 20px;                          /* 画像とテキストの余白20px */
    padding: 8px;
    background: #071E52;                /* 指定色 */
    color: #ffffff;                     /* テキスト白 */
    margin-bottom: 16px;
}
@media (max-width: 1024px) {
    .hotel-head {
        grid-template-columns: 340px 1fr;
        gap: 0;
    }
}
@media (max-width: 767px) {
    .hotel-head {
        grid-template-columns: 1fr;
        background: var(--color-white);
        padding: 0;
        color: var(--color-text); /* デフォルト文字色 */
        margin-bottom: 0;
    }
    .hotel-head__meta {
        padding: 12px 10px 0;
        color: var(--color-text);
    }
    .hotel-share {
        position: absolute;
        top: 0;
        right: 0;
        padding: 8px;
        z-index: 10;
    }

    .hotel-share button {
        background: none;
        border: none;
        font-size: 1.35rem;
        color: #777;
        font-weight: normal;
        cursor: pointer;
    }

    .hotel-share button:hover {
        opacity: 0.8;
    }

    .hotel-head__meta {
        position: relative; /* 相対位置指定で .hotel-share を配置しやすく */
    }
}
.hotel-head__media {
    position: relative;
}
/* === ホテルのメインスライダー: 明示高さで固定（340×240） === */
.hotel-slider-wrap { position: relative; }

#js-hotel-slider.hotel-slider{
    width: 340px;
    height: 240px;                 /* ←これが基準高さ */
}

/* Slick の内側まで高さを伝播させる */
#js-hotel-slider .slick-list,
#js-hotel-slider .slick-track,
#js-hotel-slider .slick-slide{
    height: 100%;
}

/* slick が <div><img/></div> で包むので、その直下も伸ばす */
#js-hotel-slider .slick-slide > div{ height: 100%; }

/* ===================================================
   タブレット用（768〜1024px）
   =================================================== */
@media (max-width: 1024px) and (min-width: 768px) {

    /* スライダー全体を少し小さくする */
    .hotel-head__media {
        width: 96%;   /* ← PC時より少し小さめに */
        height: auto;
        position: relative;
    }
    #js-hotel-slider.hotel-slider {
        width: 100%;    /* ← 親に合わせる */
    }

    /* 中の画像は枠に合わせて100%でOK */
    #js-hotel-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* オーバーレイアイコンはそのまま配置（ずれない） */
    .hotel-head__btn--favorite,
    .hotel-head__btn--share {
        position: absolute;
        z-index: 10;
        /* top / right は PCと同じままでOK */
    }
}

/* 画像は枠いっぱいにフィット */
@media (min-width: 768px) {
     /* 画像はスライドの高さに合わせず、全体にトリミング */
    #js-hotel-slider img {
        display: block;
        width: 100vh;
        height: 100%;                 /* ← スライダー枠いっぱいに伸ばす */
        object-fit: cover;
        object-position: center 50%;   /* ← 上寄せ */
    }
}
/* ※SPは比率で可変（必要なら） */
@media (max-width: 767px){
    .hotel-head__media,
    #js-hotel-slider.hotel-slider {
        width: 100%;
        height: 250px;
        position: relative;
    }

    /* 16:9 比率。別比率にしたい場合はここを調整 */
    #js-hotel-slider.hotel-slider::before{
        content:"";
        display:block;
        padding-top:56.25%;
    }
    #js-hotel-slider .slick-list,
    #js-hotel-slider .slick-track,
    #js-hotel-slider .slick-slide,
    #js-hotel-slider .slick-slide > div{
        position:absolute; inset:0; height:auto;
    }
    #js-hotel-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}
/* ===================================================
   SP用 slickスライダー修正版（767px以下）
   =================================================== */
@media (max-width: 767px) {
    /* ===== 親コンテナ ===== */
    .hotel-head__media {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        background: #000 !important;
    }

    /* ===== slick本体 ===== */
    #js-hotel-slider {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* ===== slick内部レイヤー ===== */
    #js-hotel-slider .slick-list,
    #js-hotel-slider .slick-track {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: stretch !important;
        transform: none !important; /* スケール補正 */
    }

    /* ===== スライド1枚ごと ===== */
    #js-hotel-slider .slick-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        background: transparent !important;
    }

    /* ===== 画像 ===== */
    #js-hotel-slider img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* ===== クローン制御 ===== */
    #js-hotel-slider .slick-slide.slick-cloned {
        z-index: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    #js-hotel-slider .slick-slide.slick-current.slick-active {
        z-index: 2 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* ===== 疑似要素除去 ===== */
    #js-hotel-slider::before {
        content: none !important;
        display: none !important;
    }

    /* ===== 矢印・ドット ===== */
    #js-hotel-slider .slick-prev,
    #js-hotel-slider .slick-next {
        z-index: 10 !important;
        color: #fff !important;
    }
    #js-hotel-slider .slick-dots {
        z-index: 10 !important;
        bottom: 10px;
    }
}

/* ドット：数字なしの丸だけ（slickのbutton文字を隠す） */
.hotel-slider-dots{
    position:absolute;
    left:0; right:0;
    bottom: 10px;
    display:flex;
    justify-content:center;
    z-index: 5;                 /* slick-list より上 */
    pointer-events: none;       /* クリックはボタンだけに通す */
}
.hotel-slider-dots ul{
    display:flex; gap:8px; margin:0; padding:0;
}
.hotel-slider-dots li{ list-style:none; }
.hotel-slider-dots button{
    width:8px; height:8px; border-radius:50%;
    background: rgba(255,255,255,.6);
    border: 0;
    font-size: 0;               /* 数字を消す */
    padding:0;
    pointer-events: auto;
    cursor:pointer;
}
.hotel-slider-dots .slick-active button{
    background:#fff;
}

/* 矢印ナビ（画像上に重ねる） */
.slider-nav .nav{
    position:absolute;
    top:50%; transform:translateY(-50%);
    width:36px; height:36px; border:0;
    border-radius:50%;
    background: none;
    color:#fff;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    z-index: 6;
}
.slider-nav .prev{ left:10px; }
.slider-nav .next{ right:10px; }

/* カメラ＋枚数バッジ（左上） */
.slider-badge{
    position:absolute;
    right:6px; top:6px;
    display:inline-flex; gap:8px; align-items:center;
    padding:4px 8px;
    background: rgba(0,0,0,.5);
    color:#fff;
    z-index: 6;
    font-size: 13px;
    line-height: 1;
}
/* --- slider-badge カーソル --- */
.slider-badge,
.plan-slider-badge {
    cursor: pointer;   /* リンクと同じカーソル */
}
.slider-badge .fa-camera{ font-size:14px; }

/* SP微調整 */
@media (max-width: 767px){
    .slider-nav .nav{ width:32px; height:32px; }
    .hotel-slider-dots{ bottom: 8px; }
}

/* タイトル・メタ */
.hotel-name {
    margin: 0;
    font-size: 22px;                    /* 指定 */
    color: #ffffff;
}
@media (max-width: 767px){
    .hotel-name {
        font-size: 1rem;  /* 16px */
        font-weight: normal; /* 太字なし */
        color: var(--color-text);
        padding-right: 32px;
    }
}

.hotel-sub,
.hotel-rating,
.area-links,
.checkin-out,
.hotel-head p,
.hotel-head li,
.hotel-head a {
    font-size: 12px;                    /* その他は12px指定 */
    color: #ffffff;
}
.hotel-sub {
    margin: 0 0 6px;
}
@media (max-width: 767px){
    .hotel-sub {
        font-size: 0.75rem; /* 12px */
        color: #777777 !important;
    }
    .hotel-rating,
    .area-links,
    .checkin-out,
    .hotel-head p,
    .hotel-head li {
        font-size: 0.75rem; /* 12px */
        color: var(--color-text) !important;
    }
}

.hotel-head a {
    text-decoration: underline;
}

.area-links i,
.checkin-out i {
    margin-right: 4px;
    color: #888888;
}
/* ---- 位置情報／周辺リンク ---- */
.area-links {
    display: flex;
    gap: 16px;
    margin: 0 0 4px;
}
.area-links .map-link {
    color: #ffffff;
    text-decoration: underline;
}
@media (max-width: 767px){
    .review-link,
    .map-link {
        color: var(--color-link) !important;
        text-decoration: none !important;
    }
}

/* ---- アメニティ（40×40タイル） ---- */
.amenities {
    display: flex;
    gap: 4px;
    margin: 6px 0 0;
}
.amenity {
    width: 64px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    padding: 4px;
    color: #222222;
    background: rgba(255,255,255,.35);  /* 背景を35%に透過 */
}
.amenity span {
    display: block;
}
.amenity.is-active {
    color: #3983B5;                     /* アクティブ文字色 */
    background: #ffffff;
}

/* ▼ クチコミ要約（ホテルヘッダ内） */
.review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.stars {
    line-height: 1;
}
.star {
    font-size: 12px;          /* その他は12px指定なので星はやや見やすく14px */
    color: #cccccc;           /* 非アクティブ */
}
.star.is-active {
    color: #FAC031;           /* ご指定色（4つだけ） */
}

.review-link {
    font-size: 12px;
    color: #ffffff;
    text-decoration: underline;
}

/* ▼ ホテル説明：行数制御＋続きを読む */
.hotel-about .about-text {
    color: #ffffff;
    margin: 8px 0 0;
    overflow: visible;              /* クランプ解除時に全文表示 */
    text-overflow: clip;
}

/* 折りたたみ時のみ line-clamp を適用 */
.hotel-about .about-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;          /* PC/TB 3行 */
    overflow: hidden;
    position: relative;
}
/* SPは2行 */
@media (max-width: 767px) {
    .hotel-about .about-text.is-clamped {
        -webkit-line-clamp: 2;
        -webkit-mask-image: linear-gradient(to right,
            rgba(0,0,0,1) calc(100% - 20px),
            rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to right,
            rgba(0,0,0,1) calc(100% - 20px),
            rgba(0,0,0,0) 100%);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;

    }
}

/* 展開時（続きを読む後） */
.hotel-about .about-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* 三点リーダー隠し（クランプ時のみ） */
.hotel-about .about-text.is-clamped::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.9rem;
    height: 1em;
    background: #071E52;
    pointer-events: none;
}

/* SP追加（← media query内に！） */
@media (max-width: 767px) {
    .hotel-about .about-text.is-clamped::after {
        width: 1.2rem;
        background: var(--color-white);
    }
}


/* 「続きを読む」ボタン */
.hotel-about .about-more {
    display: inline-block;
    font-size: 12px;
    color: #A4A4A4;
    text-decoration: none;
}

/* 三点リーダーは “続きを読む” の直前にだけ表示 */
.hotel-about .about-text.is-clamped + .about-more::before {
    content: "… ";
    color: #A4A4A4;
}
/* 展開時は消す */
.hotel-about .about-text.is-expanded + .about-more::before {
    content: "";
}

/* ---- タブ（色はそのまま） ---- */
/* タブ全体 */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #c5c5c5;   /* 全体の下線 */
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
@media (max-width: 767px) {
    .tab-nav {
        margin: 0 0 8px;
        padding: 10px;
        display: flex;
        justify-content: space-between; /* Distribute items evenly */
        align-items: center;
        background: var(--color-white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* 全体に影 */
    }
    .tab-nav.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000; /* Ensure it stays above other elements */
    }
}
/* 各タブ */
.tab-nav a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    border: none;
    border-bottom: 2px solid transparent; /* デフォは線なし */
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease, border-color .2s ease;
}
@media (max-width: 767px) {
    .tab-nav a{
        font-weight: 400;
        padding: 0;
    }
}
/* ホバー時：文字色を少し濃く */
.tab-nav a:hover {
    color: #000000;
}

/* アクティブタブ */
.tab-nav a.is-active {
    font-weight: 700;
    border-bottom: 2px solid #000;   /* ★ メインカラーで下線 */
    color: #000000;
}

/* ========== 絞り込み、件数＋注釈リンクの配置 ========== */
/* ▼ 親にflex適用（PC・SP共通） */
.result-filter {
    display: flex;
    flex-direction: column;
}

/* ▼ デフォルト順（PC・TB） */
.result-info {
    order: 1;
}

.filter-chips {
    order: 2;
}

/* ▼ SP（〜767px）だけ上下を逆にする */
@media (max-width: 767px) {
    .result-info {
        order: 2;
    }

    .filter-chips {
        order: 1;
    }
}

/* ========== 絞り込み（filter-chips） ========== */
.filter-chips {
    display: flex;
    align-items: center;              /* 要素は全て縦中央 */
    justify-content: space-between;
    gap: 10px;                        /* button同士のスペースのベース */
    padding: 16px;                    /* ご指定 */
    background: #ffffff;              /* ご指定 */
}
/* Tablet（PCと同様） */
@media (max-width: 1024px) {
    .filter-chips {
        /* no changes */
    }
}
/* iPhone (〜767) */
@media (max-width: 767px) {
    .filter-chips {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: none;
        padding: 0 10px 4px;
    }
}

.chips-left.pc-only {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/*  SPチェックボックス用に別スタイル */
.chips-left.sp-only {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
}

/* iPhone */
@media (max-width: 767px) {
    .chips-left {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }
}

/* ===== 件数＋注釈リンク（横並び・左寄せ） ===== */
.result-info {
    height: 14px;
    display: flex;
    align-items: center;      /* 縦中央 */
    justify-content: flex-start; /* 左寄せ */
    gap: 16px;                /* 2つの間を16px */
    margin-bottom: 8px;       /* 絞り込みとのスペース */
}
@media (max-width: 767px) {
    .result-info {
        padding: 10px;
        font-size: 0.625rem;
        margin-bottom: 0;
    }
}
.result-info .result-count {
    font-size: 12px;
    color: #222222;
    margin: 0;                /* 余計なマージンをリセット */
}

.result-info .result-link {
    font-size: 12px;
    color: #222222;
    text-decoration: underline;
}
.result-info .result-link:hover {
    text-decoration: none;
}

/* タイトル「プランを絞り込む」 */
.chips-title {
    font-weight: 700;                 /* 太字 */
    font-size: 14px;                  /* ご指定 */
    color: #000000;                   /* 黒 */
    margin-right: 24px;               /* 右の要素とのスペース：24px */
    white-space: nowrap;
}

/* チップボタン（共通） */
.chip {
    appearance: none;
    display: inline-flex;
    align-items: center;              /* 縦中央 */
    justify-content: center;
    height: 28px;                     /* ご指定 */
    border: 1px solid #707070;        /* ご指定 */
    border-radius: 30px;                 /* 角丸なし指定に合わせて 0 */
    background: #ffffff;
    padding: 0 10px;                  /* 内側余白・任意 */
    font-size: 12px;                  /* ご指定（その他） */
    color: #222222;
    cursor: pointer;
    text-align: center;
}
@media (max-width: 767px) {
    .chip {
        all: unset; /* PCのボタン風スタイルをリセット */
        display: flex;
        align-items: center;
        color: var(--color-text);
    }

    .chip input {
        margin-right: 0.5em;
        width: 1em;
        height: 1em;
    }

    .chip span {
        display: inline;
    }
    .chips-left.sp-only .chip {
        display: inline-flex;
        align-items: center;
        gap: 1px;
        font-size: 0.75rem;
    }
}


.chip + .chip {
    margin-left: 10px;                /* 念のため横並び時の間隔を担保 */
}
.chip:hover {
    filter: brightness(0.98);
}

/* 個別幅（ご指定） */
.chip[data-filter="breakfast"] {
    width: 126px;                     /* 食事付き */
}
.chip[data-filter="free-cancel"] {
    width: 148px;                     /* キャンセル無料 */
}
.chip[data-filter="nonsmoking"] {
    width: 90px;                      /* 禁煙 */
}

/* 右側：クリアリンク */
.chips-right {
    margin-left: auto;
}
@media (max-width: 767px) {
    .chips-right {
        margin-left: 0;
    }
}

/* 「✕ 検索条件をすべてクリア」 */
.chips-clear {
    font-size: 12px;                  /* ご指定（その他） */
    color: #3983B5;                   /* 文字色はリンク色（既定）。×だけ別色にします */
    text-decoration: none;
    white-space: nowrap;
}
.chips-clear:hover {
    text-decoration: none;
    cursor: pointer;
}
.chips-clear .x {
    color: #222222;
}

/* アクティブ時：落ち着いた色合い */
.chip.is-active {
    border-color: #707070;        /* 枠線を通常のグレーに */
    background-color: #f0f0f0;    /* ほんのり背景色 */
    box-shadow: none;             /* 不要な内側シャドウは削除 */
    color: #222222;               /* 文字は通常色 */
}

/* ホバーしたとき少し濃く */
.chip.is-active:hover {
    background-color: #e4e4e4;
}

/* ---- 宿泊プラン一覧 ---- */
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.plan-list {
    display: grid;
}

/* loading */
#review-loading,
.plan-list #loading {
    text-align: center;
    padding: 60px;
}
#review-loading p,
.plan-list #loading p {
    margin-bottom: 40px;
}
#review-loading img,
.plan-list #loading img {
    display: inline-block;
}
@media (max-width: 767px){
    #review-loading,
    .plan-list #loading {
        text-align: center;
        padding: 40px;
    }
    #review-loading p,
    .plan-list #loading p {
        margin-bottom: 20px;
    }
}


/* ========== プランカード ========== */

/* 親：左右横並び、上端揃え */
.plan-card {
    display: flex;
    align-items: flex-start;        /* 左(画像+メタ) と 右(aside) の上端を揃える */
    gap: 12px;
    border: 1px solid #e7e7e7;
    padding: 12px;
    background: #fff;
}
@media (max-width: 767px){
    .plan-card {
        display: flex;
        flex-wrap: wrap;
        margin: 10px;
        padding: 12px 8px;
    }
}

/* 左カラム（本文） */
.plan-card__body {
    flex: 1;                        /* 右の220px以外を占有 */
}
@media (max-width: 767px){
    .plan-card__body {
        display: block;
        width: 100%;
    }
}

/* タイトル：本文エリアいっぱい */
.plan-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
@media (max-width: 767px) {
    .plan-title.sp-only {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0;
        display: block;
    }

    .plan-title.pc-only {
        display: none;
    }
}

/* タイトル直下：画像＋メタを横並び（間10px） */
.plan-body-row {
    display: grid;                          /* Gridだけで管理 */
    grid-template-columns: 220px 1fr;        /* 左:画像 右:メタ */
    gap: 10px;                               /* 間隔10px */
}
@media (max-width: 767px) {
    .plan-body-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .plan-figure {
        width: 100%;
    }

    .plan-meta {
        padding: 0 4px;
        font-size: 0.875rem;
    }
}

/* 画像は固定サイズ */
.plan-card__thumb {
    width: 220px;
    height: 155px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;                          /* ←これが重要：幅を縮めない */
}
.plan-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* プランのサムネスライダー（220×155固定） */
.plan-figure{
    position: relative;
    margin: 0;
}
@media (max-width: 767px){
    .plan-figure,
    .plan-meta {
        width: 100%;
    }
}
.plan-slider{
    width: 220px;
    height: 155px;           /* ←高さ確保 */
}

.plan-slider .slick-slide{ height:100%; }

.plan-figure img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
}

@media (min-width: 768px) {
    .plan-slider .slick-slide{
        width: 220px !important;
        height: 155px !important;           /* ←高さ確保 */
    }
    .plan-figure .plan-slider img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}
/* SPは横幅可変 */
/* ===================================================
   SPは横幅可変（slick初期安定版）
   =================================================== */
@media (max-width: 767px) {
    /* プラン一覧スライダー（最終安定版） */
    .plan-figure {
        position: relative;
        overflow: hidden;
    }

    .plan-figure .plan-slider {
        position: relative;
        width: 100%;
        height: 110px;
        overflow: hidden;
    }

    /* slick内部 */
    .plan-figure .plan-slider .slick-list {
        overflow: hidden;
        width: 100%;
        height: 100%;
    }

    .plan-figure .plan-slider .slick-track {
        width: 100%;
        height: 100%;
    }

    .plan-figure .plan-slider .slick-slide {
        float: left;
        width: 100%;
        height: 100%;
    }

    .plan-figure .plan-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ドットナビ */
    .plan-figure .plan-slider .slick-dots {
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 5;
    }
}

/* ================================
   ▼ SPプランカード：価格＋ボタンを下端固定（最終版）
   ================================ */
@media (max-width: 767px) {

    /* レイアウト枠組み（画像＋本文 / 右カラム） */
    .plan-card{
        display: grid;
        grid-template-columns: 1fr 170px;
        grid-template-rows: auto 1fr; /* 1行目=タイトル、2行目=本体 */
        column-gap: 12px;
        align-items: start;
    }
    .plan-card > .plan-title.sp-only{
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }
    .plan-card__body{
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }
    .plan-card__right{
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* 右カラム内：上=平均価格、下=合計金額+予約ボタン */
    .plan-card__price{
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        width: 170px !important; /* PCの幅指定を打ち消し */
        height: 100%;
    }
    .plan-card__price .price-row{
        margin: 0 !important;          /* 既存の余白をリセット */
        margin-top: auto !important;    /* 最下部へ押し下げる */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        column-gap: 8px;
        text-align: right;
    }
    .plan-card__price .btn-reserve{
        width: 100%;
    }

    /* 画像周り（既存仕様の維持） */
    .plan-card__body::after{
        content: "";
        display: block;
        clear: both;
    }
    .plan-figure{
        float: none !important;
        width: 100% !important;
        margin: 0 0 12px !important;
    }
    .plan-figure .plan-slider{
        height: 110px;
    }
}



/* ドット（数字なしの丸だけ） */
.plan-slider-dots{
    position:absolute; left:0; right:0; bottom:8px;
    display:flex; justify-content:center; z-index:5; pointer-events:none;
}
.plan-slider-dots ul{ display:flex; gap:8px; margin:0; padding:0; }
.plan-slider-dots li{ list-style:none; }
.plan-slider-dots button{
    width:8px; height:8px; border-radius:50%;
    background: rgba(255,255,255,.6); border:0; font-size:0; padding:0;
    pointer-events:auto; cursor:pointer;
}
.plan-slider-dots .slick-active button{ background:#fff; }

/* 矢印 */
.plan-slider-nav .nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:30px; height:30px; border:0; border-radius:50%;
    background: none;
    color:#fff;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; z-index:6;
}
.plan-slider-nav .prev{ left:8px; }
.plan-slider-nav .next{ right:8px; }

/* カメラ＋枚数 */
.plan-slider-badge{
    position:absolute; right:4px; top:6px;
    display:inline-flex; gap:6px; align-items:center;
    padding:3px 6px; background: rgba(0,0,0,.5);
    color:#fff; z-index:6;
    font-size:12px; line-height:1;
}
.plan-slider-badge .fa-camera{ font-size:14px; }

/* メタ情報 */
.plan-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 14px;
    display: block;                          /* ← flex/grid は不要 */
    grid-auto-rows: min-content;
    gap: 6px -4px;
}

/* 右カラム（aside：価格） */
.plan-card__price {
    width: 220px;                   /* 固定幅 */
    display: flex;
    flex-direction: column;
    margin-top: 2.55em;
    text-align: right;
}
@media (max-width: 767px) {
    .plan-card__price {
        width: 100%;
        padding: 0;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }
}
/* 1泊1室平均金額／合計金額ラベル */
.plan-card__price .price-avg,
.plan-card__price .price-total-label {
    font-size: 14px;
    color: #222;
    margin: 0;
    line-height: 1.6;
}

/* （サービス・税込み） */
.plan-card__price .price-note {
    font-size: 12px;
    color: #666;
    margin: -4px 0 2px;            /* スクショ寄せ。不要なら 0 に */
}

/* 最安値 ←→ 価格（赤18px）横並び */
.plan-card__price .price-row {
    text-align: right;
    margin: 32px 0 16px;
}
@media (max-width: 767px) {
    .plan-card__price .price-row {
        display: block;
        margin: 1.65rem 0 0;
    }
}

.plan-card__price .discount,
.plan-card__price .num{
    margin-right:8px;
}
@media (max-width: 767px) {
    .plan-card__price .discount,
    .plan-card__price .num{
        margin-right:0;
    }
}

.plan-card__price .lowest-price,
.plan-card__price .badge-lowest { /* クラスゆれ両対応 */
    width: 78px;
    height: 28px;
    background: #E46C0A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.plan-card__price .price-num {
    font-size: 18px;               /* 指定サイズ */
    font-weight: 700;
    color: #FF3333;                /* 指定カラー */
}

/* 予約ボタンは横いっぱい */
.plan-card__price .btn-reserve {
    width: 100%;
}

/* 予約するボタン色 */
.btn-reserve {
    background: #222;                /* ご指定色 */
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
.btn-reserve:hover {
    filter: brightness(0.94);
}

/* 区切り見出し色 */
.plan-section-title {
    margin: 0;
    padding: 8px 12px;
    background: #707070;
    border: 1px solid #707070;
    font-weight: 700;
    color: #fff;                      /* ご指定色 */
}

/* ========== プランもっと見る ========== */
.plan-more {
    border-top: 5px solid #707070;   /* 上線 */
    height: 79px;
    display: flex;                   /* 中央寄せ */
    align-items: center;             /* 垂直中央 */
    justify-content: center;         /* 水平中央 */
}

/* アウトラインボタン */
/* plan-more 内のテキストリンク（ボタン風ではなくシンプルに） */
.plan-more .btn-outline {
    border: none;           /* 枠線なし */
    background: none;       /* 背景なし */
    color: #707070;         /* 指定色 */
    font-size: 14px;        /* 指定サイズ */
    font-weight: 700;       /* 適度な太さ（任意） */
    padding: 0;             /* 余白もリセット */
    cursor: pointer;        /* クリックカーソル */
    text-decoration: none;  /* 下線なし（必要に応じて） */
}

.plan-more .btn-outline:hover {
    text-decoration: underline;  /* ホバー時に下線でリンク感 */
}
@media (max-width: 767px) {
    .plan-more {
        border-top: none;   /* 上線 */
        height: auto;
        padding: 14px 0 20px;
    }
    .plan-more .btn-outline {
        color: var(--color-link);         /* 指定色 */
        font-size: 14px;        /* 指定サイズ */
        font-weight: 700;       /* 適度な太さ（任意） */
    }
}
/* ===== プラン：画像とメタの重なり修正（Gridに一本化） ===== */

/* 親ラッパで確実に2カラム化 */
.plan-body-row{
    display: grid !important;
    grid-template-columns: 220px minmax(0,1fr) !important; /* 画像220px + 余り全部 */
    gap: 10px !important;
    align-items: start;
}

/* 旧レイアウトの名残をリセット */
.plan-card__body{
    display: block !important;          /* ← columnのflex指定を無効化 */
}
.plan-card__thumb,
.plan-meta{
    display: block !important;          /* ← inline-block指定を無効化 */
    vertical-align: baseline !important;
    position: static !important;        /* ← absolute等があれば打ち消し */
    margin: 0 !important;
}

/* 画像は固定幅で縮まない */
.plan-card__thumb{
    width: 220px !important;
    height: 155px !important;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0 !important;
}
.plan-card__thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メタは残り幅いっぱい使う */
.plan-meta{
    list-style: none;
    padding: 0;
    font-size: 13px;
    color: #555;
}

/* SPは縦積み */
@media (max-width: 767px){
    .plan-body-row{
        grid-template-columns: 1fr !important;
    }
    .plan-card__thumb{
        width: 100% !important;
        height: auto !important;
    }
}

/* ===== 施設情報・地図（#tab-facility） ===== */

/* 汎用パネル */
.panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px 16px 40px;
    margin-bottom: 32px;
}
@media (max-width: 767px) {
    .panel {
        padding: 12px 8px;
        margin: 0 8px 40px;
    }
    .panel:last-of-type {
        margin-bottom: 0;
    }
}

.panel-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
@media (max-width: 767px) {
    .panel-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* -------- 基本情報 -------- */
.basic-dl {
    margin: 0 0 12px;
}
.basic-dl .row {
    display: grid;
    grid-template-columns: 140px 1fr;   /* 左ラベル幅 / 右内容 */
    align-items: start;
    gap: 8px 12px;
    padding: 6px 0;
}
.basic-dl .row:last-child {
    border-bottom: 0;
}

@media (max-width: 767px) {
    .basic-dl .row {
        grid-template-columns: 80px 1fr;
        gap: 6px 10px;
        padding: 6px 0;
    }
}
.basic-dl dt {
    font-size: 14px;
}
@media (max-width: 767px) {
    .basic-dl dt { font-size: 12px; }
}
.basic-dl dd {
    margin: 0;
    font-size: 14px;
}
@media (max-width: 767px) {
    .basic-dl dd { font-size: 13px; }
}
.basic-dl a { color: var(--color-link, #3983B5); text-decoration: underline; }
.basic-dl a:hover { text-decoration: none; }

/* 地図 */
.map-wrap {
    margin-top: 12px;
}
.map-img-wrap {
    background: #E5E3E0;
    text-align: center;
}
.map-wrap img {
    max-width: 100%;
    max-height: 100%;
    border: 0;
    display: block;
    margin: 0 auto;
}
.google-map-btn {
    display: inline-block;
    padding: 8px 10px 7px;
    margin-top: 12px;
    font-size: 11px;
    color: #707070 !important;
    font-weight: 400;
    border: 1px solid #707070;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;

}
.google-map-btn:hover {
    background: #f5f5f5;
    text-decoration: none;
}
@media (max-width: 1024px) {
    .map-wrap img {
        max-width: 50%;
        max-height: 50%;
    }
}
@media (max-width: 767px) {
    .map-wrap img {
        max-width: 100%;
        max-height: 100%;
    }
}

/* -------- 設備・サービス -------- */
.note {
    margin: 0 0 12px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .note { font-size: 11.5px; }
}

.amenities-dl {
    margin: 0;
}
.amenities-dl .row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    padding: 8px 0;
}
.amenities-dl .row dd {
    width: 100%;
    box-sizing: border-box;
}
.amenities-dl .row:first-child { border-top: 0; }
@media (max-width: 767px) {
    .amenities-dl .row {
        grid-template-columns: 80px 1fr;
        gap: 6px 10px;
    }
}
@media (max-width: 767px) {
    .amenities-dl dt { font-size: 12px; }
}
.amenities-dl dd {
    margin: 0;
    color: #222;
}
@media (max-width: 767px) {
    .amenities-dl dd { font-size: 13px; }
}

.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    scrollbar-width: thin;
}

.amenity-list > li {
    position: relative;
    padding-left: 8px;
    line-height: 1.4;
    white-space: normal;
    flex: 0 0 auto;
}

.amenity-list > li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
}

/* ========== ホテル一覧へ戻るボタン ========== */
.back-hotel-list {
    display: flex;
    justify-content: center;      /* 中央寄せ */
    margin: 24px auto 0;            /* 上下24px・左右自動 */
}

.back-hotel-list .btn-outline {
    width: 344px;
    height: 56px;
    display: flex;                 /* ★ flexに変更 */
    align-items: center;           /* ★ 縦中央 */
    justify-content: center;       /* ★ 横中央 */
    font-size: 14px;
    color: #707070;
    border: 1px solid #707070;
    background: #fff;
    border-radius: 4px;            /* 角丸は任意 */
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.back-hotel-list .btn-outline:hover {
    background: #f5f5f5;
}

/* ===== Modal (base) ===== */
.modal{
    position: fixed;
    inset: 0;
    display: none;                 /* 初期は非表示 */
    padding: 2vh 2vw;              /* 画面端に余白 */
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .modal{ padding: 0 }  /* SPは固定値 */
}
.modal.is-open{
    display: flex;                 /* 画面中央へ */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
body.is-modal-open{ overflow: hidden; }  /* 背景スクロール停止 */

.modal__overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.84);
    z-index: 1;
}

/* 汎用ダイアログ（白背景） */
.modal__dialog{
    position: relative;            /* overlay より前面に */
    z-index: 2;
    width: min(640px, 100%);
    max-height: min(80vh, calc(100vh - 4vh));
    overflow: auto;
    background: #fff;
    padding: 44px;
    box-sizing: border-box;
}

/* タイトル・本文・閉じる */
.modal__title{ margin: 0 0 4px; font-size: 16px; color: #222; }
.modal__body{ font-size: 14px; color: #222; }
.modal__content{ margin-bottom: 24px; }
.modal__content p{ margin-top: 0; }
@media (max-width: 767px){
    .modal__title{ margin: 0 0 4px; font-size: 14px; }
    .modal__body{ font-size: 12px; }
    .modal__content{ margin-bottom: 24px; }
}

.modal__close{
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px; height: 26px;
    font-size: 26px; line-height: 26px;
    border: 0; background: none; color: #95979D;
    cursor: pointer; padding: 0;
}
@media (max-width: 767px){
    .modal__close{
        top: 8px;
        left: 4px;
    }
}
/* モーダルの下部ボタン（クチコミ風） */
.modal__footer{ text-align: center; padding-top: 16px; }
.modal__footer .btn--link{
    font-size: 12px;
    padding: 10px 16px;
    border: 1px solid #CCC;
    background: #EFEFEF;
}
@media (max-width: 767px){
    .modal__footer{ padding-top: 0; }
}
/* Tablet */
@media (max-width: 1024px){
    .modal__dialog{ width: min(680px, 100%); }
}
/* iPhone (〜767) */
@media (max-width: 767px){
    .modal__dialog{
        width: calc(100% - 24px);
        max-height: calc(100% - 32px);
        padding: 48px 8px 32px;
    }
}

/* slick 既定矢印は常に非表示（“Previous”対策） */
.slick-prev.slick-arrow,
.slick-next.slick-arrow{ display: none !important; }

/* ====== ギャラリーモーダル ====== */
@media (min-width: 1025px) {
    .js-open-sp-gallery {
        display: none;
    }
}
@media (max-width: 1024px) {
    .slider-badge {
        display: none;
    }
}
.modal-gallery{ color:#fff; }         /* デフォ文字色を白に */
.modal-gallery *{ color:inherit; }

.modal-gallery .modal__dialog{
    width: min(1160px, 100%);
    max-width: 1160px;
}

/* × は右上・サイズ倍。左指定は打ち消し */
.modal-gallery .modal__close{
    position: absolute;
    top: 16px; right: 16px; left: auto;
    width: 28px; height: 28px; font-size: 28px; line-height: 1;
    background: none; border: 0; color: #fff; cursor: pointer; z-index: 20;
}

/* ヘッダー */
.gallery-header{
    display: flex; align-items: center;
    gap: 12px; min-height: 32px; padding: 0 4px;
}

/* 2カラムを固定幅で（左863 / 右272 / 間20） */
.gallery-body{
    display: grid;
    grid-template-columns: 863px 272px;  /* ← 固定 */
    column-gap: 20px;
    align-items: start;
    width: 100%;
    min-height: 0;
}

/* 左カラムを確定しておく */
.gallery-left{ width: 863px; }

/* メイン枠を固定ボックスに */
.gallery-main{
    width: 863px;
    height: 577px;
    position: relative;
    display: block;          /* 中央化はimg側でやる */
    background: transparent; /* 透過のまま、必要なら色入れてOK */
}

/* 画像は中央に“収める”。比率維持・はみ出さない・拡大しない */
.gallery-main img{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;             /* 画像実サイズ優先（枠内で縮小） */
    height: auto;
    object-fit: contain;
    display: block;
}

/* フッター（矢印＋件数を中央に並べる） */
.gallery-footer{
    height: var(--gallery-footer-h);
    display: flex; align-items: center; justify-content: center;
    gap: 48px;                          /* 矢印と件数の距離 */
    margin-top: 8px;                    /* メインとの間隔（任意） */
}
.gallery-count{
    font-size: 14px; padding: 4px 8px;
    background: rgba(0,0,0,.5);
    border-radius: 4px;
}
.gallery-prev, .gallery-next{
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer;
}
.gallery-prev{  left: calc(50% - 72px); }
.gallery-next{ right: calc(50% - 72px); }

/* ===== 右カラム：サムネ ===== */
/* スクロール担当 */
/* スクロール容器（高さを明示） */
.gallery-thumbs-scroll {
    width: 272px;
    height: calc(609px + var(--gallery-footer-h, 32px));
    overflow: auto;
    padding: 0 4px 32px 0;   /* ← 下を32pxにした */
    -webkit-overflow-scrolling: touch;
}
/* 2本カラム（左右） */
.gallery-cols{
    display: flex;
    align-items: flex-start;
    gap: 8px;               /* 列間 */
}
.gallery-cols .col{
    width: 132px;
    display: flex;
    flex-direction: column; /* 縦積み */
    gap: 1px;               /* 縦の間隔 */
}

/* サムネ画像（幅固定・高さは画像任せ） */
.gallery-cols img{
    width: 100%;        /* 132px にフィット */
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    opacity: .9;
}
.gallery-cols img.is-active{
    outline: 3px solid var(--color-main);
    opacity: 1;
}
/* サムネ：メイソンリー風（行を揃えない） */
.gallery-thumbs{
    width: 272px;                       /* 132×2 + 8 */
    column-gap: 8px;                    /* 列間 8px */
    max-height: calc(577px + var(--gallery-footer-h, 54px));
    overflow: auto;
    padding-right: 4px;
}
/* 画像は列幅いっぱい。行の揃いをなくすため break-inside を付与 */
.gallery-thumbs img{
    width: 100%;                        /* 列幅にフィット（= 132px） */
    height: auto;                       /* 高さは画像比率のまま */
    display: block;
    margin: 0 0 1px;                    /* 縦間 1px（ご指定） */
    border-radius: 4px;
    cursor: pointer;
    opacity: .9;
    break-inside: avoid;                /* 列の途中で分割しない */
}

/* アクティブ枠線はそのまま */
.gallery-thumbs img.is-active{
    outline: 3px solid var(--color-main);
    opacity: 1;
}
.slick-prev.slick-arrow,
.slick-next.slick-arrow{ display: none !important; }

/* サムネ lazy 表示 */
.gallery-thumbs img.is-lazy{
    filter: blur(6px); transform: scale(1.02);
    transition: filter .25s ease, transform .25s ease, opacity .2s;
    opacity: .8;
}
.gallery-thumbs img.is-loaded{
    filter: none; transform: none; opacity: 1;
}

/* バッジはリンク風カーソル */
.slider-badge, .plan-slider-badge{ cursor: pointer; }

/* ==== SPギャラリーモーダル（全デバイス共通初期設定） ==== */
.sp-gallery-modal {
    display: none; /* ← 初期非表示を必ず全幅に適用 */
}
@media (max-width: 1024px) {
    .sp-gallery-modal {
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 1000;
        display: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 32px;
    }

    .sp-gallery-modal.is-open {
        display: block;
    }

    .sp-gallery-modal .modal-header-fixed {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #000;
        padding-bottom: 12px;
    }

    .sp-gallery-modal .modal-header {
        display: flex;
        justify-content: flex-start; /* ← 左寄せ */
        align-items: center;
        gap: 12px;                    /* 間隔を開ける */
        padding: 12px 16px 0;
        font-size: 1rem;
    }

    .sp-gallery-modal .modal-close {
        font-size: 1.25rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .sp-gallery-modal .modal-image-count {
        margin-left: 16px;
        color: #fff;
    }

    .sp-gallery-modal .modal-toolbar {
        display: flex;
        align-items: center;
    }

    .sp-gallery-modal .modal-resize {
        margin: 0 16px 0 auto;
        background: none;
        border: none;
        color: #fff;
        padding: 0;
        line-height: 1;
        text-decoration: underline;
    }

    .sp-gallery-modal .modal-title {
        color: #fff;
    }

    .sp-gallery-modal .modal-body {
        padding: 12px 16px;
    }

    /* ギャラリー：グリッド配置に余白防止 */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2列 */
        gap: 1px;                              /* 隙間1px */
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #000;                /* 隙間の背景色 */
        grid-auto-rows: auto;                  /* ← 高さ詰める */
    }

    .gallery-grid li {
        background-color: #000;
    }

    .gallery-grid li img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }
}

/* ===== 事前確認事項（#tab-notes） ===== */

/* セクション：指定のパディング */
#tab-notes .notes-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px 16px 40px; /* ご指定 */
}
@media (max-width: 767px) {
    #tab-notes .notes-section {
        padding: 12px 8px 40px; /* ご指定 */
    }
}
/* 見出し */
#tab-notes .notes-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
@media (max-width: 767px) {
    #tab-notes .notes-title { font-size: 15px; }
}

/* ブロック */
#tab-notes .notes-block + .notes-block {
    margin-top: 20px;
}

/* 小見出し */
#tab-notes .notes-head {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
@media (max-width: 767px) {
    #tab-notes .notes-head {
        margin: 0 0 5px;
    }
}
/* 説明テキスト */
#tab-notes .notes-p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.8;
    color: #222;
}
@media (max-width: 767px) {
    #tab-notes .notes-p { font-size: 13px; }
}

/* 定義リスト（2列） */
#tab-notes .notes-dl { margin: 0 0 8px; }
#tab-notes .notes-dl .row {
    display: grid;
    grid-template-columns: 160px 1fr; /* 左ラベル幅 */
    gap: 6px 12px;
    padding: 6px 0;
}
#tab-notes .notes-dl .row:last-child {
    border-bottom: 0;
}
#tab-notes .notes-dl dd {
    margin: 0;
}

@media (max-width: 767px) {
    #tab-notes .notes-dl .row {
        grid-template-columns: 120px 1fr;
    }
    #tab-notes .notes-dl dt {
        font-size: 12px;
    }
    #tab-notes .notes-dl dd {
        font-size: 13px;
    }
}

/* ===== クチコミ（#tab-reviews） ===== */

#tab-reviews .panel {
    background: #fff;
    border: none;
    padding: 0 16px 20px;
}
#tab-reviews .reviews-summary.panel {
    padding: 16px 20px;
}
@media (max-width: 767px){
    #tab-reviews .panel {
        background: none !important;
    }
    #tab-reviews .reviews-summary.panel {
        background: none !important;
        border: none;
        padding: 12px 0 0;
        margin-bottom: 0;
    }
}
/* 総合評価 */
.reviews-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}
.reviews-score {
    font-size: 16px;
    margin-left: 32px;
    font-weight: 700;
}
.reviews-note {
    font-size: 16px;
    margin-left: 8px;
    font-weight: 400;
}
@media (max-width: 767px){
    .reviews-title {
        margin: 0 0 12px;
        font-size: 14px;
    }
    .reviews-score {
        font-size: 12px;
        margin-left: 10px;
    }
    .reviews-note {
        font-size: 12px;
        margin-left: 8px;
    }
}
/* 親：3-2 配置（そのまま） */
.reviews-bars{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 12px 16px;
    padding-left: 0;
}
@media (max-width: 767px){
    .reviews-bars{
        gap: 8px;
        margin: 0 0 24px;
    }
}

/* li を上下2段レイアウトに */
.reviews-bars li {
    display: flex;
    flex-direction: column;      /* 上:span群  下:バー */
    gap: 8px;                   /* 上段と下段の間隔を24pxに */
}

/* === 上段: ラベルと値を横並び === */
.reviews-bars li .span-row {
    display: flex;
    align-items: center;
    gap: 24px;                   /* span同士の横間隔を24pxに */
}
@media (max-width: 767px){
    .reviews-bars li .span-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;                   /* span同士の横間隔を24pxに */
    }
}
/* 既存の span はここに置く */
.reviews-bars li .label,
.reviews-bars li .value {
    margin: 0;                   /* 余計な余白はリセット */
}

/* === 下段: バー === */
.reviews-bars li .bar {
    width: 100%;
    background: #CCCCCC;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}
.reviews-bars li .bar-fill {
    display: block;
    height: 100%;
    background: var(--color-link, #3666B1);
}

@media (max-width: 767px) {
    .reviews-bars li {
        font-size: 12px;
        gap: 10px;                 /* SPは少し狭く */
    }
}

/* ===== クチコミ検索＋ソート ===== */
.reviews-search {
    margin-bottom: 16px;
}
@media (max-width: 767px) {
    .reviews-search {
        margin: 0 8px 12px;
    }
}
.reviews-search .search-inner {
    display: flex;
    justify-content: space-between;  /* 左右に配置 */
    align-items: center;
    gap: 16px;
}

.reviews-search .search-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-count {
    font-size: 13px;
    color: #222;
}

.search-input {
    height: 37px;
    padding: 0 8px;
    border: 1px solid #818494;
    font-size: 14px;
    flex: 1;                  /* 左側の残り幅を使う */
    min-width: 417px;         /* 幅が潰れないように */
}
.search-field {
    position: relative;
    display: inline-block;
}

.search-field .icon-search {
    position: absolute;
    left: 10px;             /* 位置調整 */
    top: 50%;
    transform: translateY(-50%);
    color: #aaaaaa;         /* アイコン色 */
    pointer-events: none;   /* クリックを邪魔しない */
}

.search-field .search-input {
    padding-left: 32px;     /* アイコン分の余白 */
    height: 34px;
    background: #fff;
}

@media (max-width: 767px) {
    .reviews-search .search-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .reviews-search .search-left {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        gap: 6px;
        min-width: 0;
    }

    .reviews-search .search-field {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        position: relative;
    }

    .reviews-search .search-input {
        width: 100%;
        min-width: 0;
        font-size: 0.75rem;
        padding: 6px 10px 6px 32px;
        border: 1px solid #999;
        background: #fff;
        box-sizing: border-box;
    }

    .reviews-search .search-field .icon-search {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        pointer-events: none;
    }

    .reviews-search .search-right {
        flex: 0 0 auto;
        width: 150px;
        min-width: 0;
        max-width: 100%;
        position: relative;
    }

    .reviews-search .search-sort {
        width: 100%;
        min-width: 0;
        font-size: 0.75rem;
        padding: 6px 10px;
        border: 1px solid #999;
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        /* カスタム矢印アイコン（縮小＆位置内側に） */
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center; /* ← 端から8px内側に調整 */
        background-size: 12px 7px;
    }
}

/* プルダウン */
.search-sort {
    height: 37px;
    min-width: 165px;
    padding: 0 8px;
    border: 1px solid #818494;
    font-size: 14px;
    color: #222;
    appearance: none;         /* ブラウザ標準の矢印を隠す場合 */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
    cursor: pointer;
}


/* クチコミアイテム */
/* ---------- レビューアイテム ---------- */
.reviews-list.panel {
     margin-bottom: 0;
}

@media (max-width: 767px){
    .reviews-list.panel {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 0;
    }
}
.review-item {
    /* ここを border-top → border-bottom に変更 */
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    position: relative;
}
@media (max-width: 767px){
    .review-item {
        border-bottom: none;
        padding: 12px 8px;
        position: relative;
        background: var(--color-white);
        margin-bottom: 12px;
    }
}
/* 末尾のアイテムは下線を外す */
.review-item:last-child {
    border-bottom: none;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
@media (max-width: 767px) {
    .review-head {
        border-bottom: 1px #ccc solid;
        padding-bottom: 12px;
        margin-bottom: 6px;
    }
    .review-item .date {
        margin-left: auto;
        font-weight: 400;
        font-size: 12px;
        color: #777777;
    }
}
/* ★ .source を review-head の右端へ */
.review-item .source {
    position: absolute;
    top: 16px;          /* review-item の padding-top と揃える */
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
    color: #707070;
}
.review-item .source img {
    height: 14px;
    width: auto;
}
@media (max-width: 767px) {
    .review-item .source {
        position: absolute;
        top: auto;
        right:8px;
        bottom: 14px;
    }
}
.review-meta {
    color: #707070;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 4px;
    padding-right: 100px; /* 右端の .source と重ならないよう余白確保 */
}

/* 宿泊時期はそのまま */
.stay-date {
    margin: 4px 0 0;
    color: #707070;
}
@media (max-width: 767px) {
    .stay-date { font-size: 11.5px; }
}

.review-text {
    color: #222;
    line-height: 1.8;
    margin: 0;
}
@media (max-width: 767px) {
    .review-text {
        margin: 0 0 0.75rem;
    }
    .review-item .author {
        color: #777777;
    }
}

/* もっと読むボタン */
.reviews-more {
    margin-top: 0;
    text-align: center;
}

@media (max-width: 767px) {
    .reviews-more {
        margin-top: 18px;
    }
}

.reviews-more.panel {
    margin-bottom: 0;
    padding-bottom: 0;
}
.reviews-more .btn--outline {
    padding: 22px 48px;
    border: 1px solid #CCCCCC;
    background: #fff;
    font-size: 16px;
    color: #222222;
    font-weight: 400;
    cursor: pointer;
}
.reviews-more .btn--outline:hover {
    background: #f5f5f5;
}
.btn--outline i {
    margin-right: 6px;         /* テキストとのスペース */
    font-size: 14px;           /* ボタン文字と合わせる */
    color: #cccccc;            /* ボタン文字色に合わせる */
    vertical-align: middle;
}

@media (max-width: 767px) {
    .reviews-bars li {
        grid-template-columns: 70px 1fr 40px;
        font-size: 12px;
    }
    .review-text {
        font-size: 13px;
    }
}
/* ===== ギャラリー用 強制上書き（順序・優先度で勝つ） ===== */

/* モーダル本体：黒背景固定・中央表示・オーバーフロー防止 */
.modal.modal-gallery .modal__dialog{
    background: #000 !important;            /* ← 白に勝つ */
    color: #fff !important;
    width: 1160px;                           /* PCは固定幅 */
    max-width: calc(100vw - 32px);           /* 画面狭い時だけ縮む */
    max-height: calc(100vh - 32px);
    padding: 16px !important;
    overflow: hidden;                         /* 内側はみ出し防止 */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ヘッダー（ホテル名）が勝手にでかくならないよう固定 */
.modal-gallery .gallery-header{
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

/* 2カラム：左=863px / 右=272px（間20px）を固定 */
.modal-gallery .gallery-body{
    display: grid;
    grid-template-columns: 863px 272px;      /* 固定 */
    column-gap: 20px;
    align-items: start;
    width: 100%;
    min-height: 0;                            /* grid内のオーバーフロー抑止 */
}

/* 左カラムは縦積み（メイン＋フッター） */
.modal-gallery .gallery-left{
    width: 863px;
    min-width: 863px;                         /* 揺れ防止 */
    display: flex;
    flex-direction: column;
    align-items: center;                      /* 中央寄せ */
    padding-top: 0;                           /* ここは触らない（要件通り） */
}

/* メイン枠：固定サイズボックス（画像はその中で自動縮小） */
.modal-gallery .gallery-main{
    width: 863px;
    height: 577px;
    position: relative;
    display: flex;                            /* 中央に置くためflex */
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;                         /* 念のため */
}

/* 画像：比率維持・はみ出さない・中央配置（拡大しない） */
.modal-gallery .gallery-main img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;                             /* 中央配置 */
}

/* 左下フッター（矢印＋件数）はそのまま */
.modal-gallery .gallery-footer{
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 8px;
}
.modal-gallery .gallery-count{
    font-size: 14px;
    background: rgba(0,0,0,.5);
    padding: 4px 8px;
    border-radius: 4px;
}
.modal-gallery .gallery-prev,
.modal-gallery .gallery-next{
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer;
}

/* 右：サムネ2列（スクロール容器の高さはあなたの調整を尊重） */
.modal-gallery .gallery-thumbs-scroll{
    width: 272px;
    height: calc(609px + var(--gallery-footer-h, 32px)); /* ←あなたの最終値 */
    overflow: auto;
    padding: 0 4px 0 0;                     /* 下は32px入れたいなら 0→32px に */
    -webkit-overflow-scrolling: touch;
}
.modal-gallery .gallery-cols{
    display: flex; align-items: flex-start; gap: 8px;
}
.modal-gallery .gallery-cols .col{
    width: 132px;
    display: flex; flex-direction: column; gap: 1px;
}
.modal-gallery .gallery-cols img{
    width: 100%; height: auto; display: block;
    border-radius: 4px; cursor: pointer; opacity: .9;
}
.modal-gallery .gallery-cols img.is-active{
    outline: 3px solid var(--color-main); opacity: 1;
}

/* × は右上固定（共通の left:12px を打ち消す） */
.modal.modal-gallery .modal__close{
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    width: 28px; height: 28px; font-size: 28px; line-height: 1;
    color: #fff; background: none; border: 0; cursor: pointer; z-index: 20;
}

/* slickデフォ矢印は常に消す（“Previous”対策） */
.slick-prev.slick-arrow, .slick-next.slick-arrow{ display: none !important; }

/* ===== ギャラリー細部の余白調整（復活パッチ） ===== */
:root{
    --gallery-gap-x: 20px;    /* 左(メイン)と右(サムネ)の間隔 */
    --thumbs-gutter-right: 32px;/* サムネ右側の余白（スクロールバー逃げ） */
    --thumbs-pad-bottom: 32px; /* サムネ下の余白（リスト末尾スペース） */
    --main-top-gap: 38px;      /* メイン画像上の余白 */
}

/* 左右のカラム間 */
.modal-gallery .gallery-body{
    column-gap: var(--gallery-gap-x);
}

/* メイン画像の上に余白を戻す */
.modal-gallery .gallery-main{
    margin-top: var(--main-top-gap);
}

/* サムネスクロールの右・下に余白を戻す（上は変更しない） */
.modal-gallery .gallery-thumbs-scroll{
    /* 右側スペース & 下側スペースを確保 */
    padding-right: var(--thumbs-gutter-right);
    padding-bottom: var(--thumbs-pad-bottom);
    /* 既存の高さ指定はそのまま活かす（例：height: calc(609px + var(--gallery-footer-h, 32px));） */
}

/* Safari対策：余白が効かない時の保険 */
@supports (-webkit-touch-callout: none) {
    .modal-gallery .gallery-thumbs-scroll{
        box-sizing: border-box;
    }
}

#searchbar{ position: relative; }               /* 絶対配置の基準にする */

/* ========== Searchbar common ========== */
#searchbar { position: relative; z-index: 100; }
@media (min-width: 1025px) {
    #searchbar #js-search-form {
        display: flex;      /* ← 元々PCで使ってたdisplayに戻す */
        flex-wrap: nowrap;
        align-items: center;
    }

    #searchbar .sb-group--rooms-guests {
        display: contents;  /* ← グループ解除して通常の並びに戻す */
    }

    #searchbar .sb-row--rooms { margin-left: 8px; }
}
/* --- TB幅（768〜1024px）専用：部屋＋人数を左寄せ、再検索を右端 --- */
@media (max-width: 1024px) and (min-width: 768px) {
    #searchbar #js-search-form {
        display: grid !important;
        /* 👇 上段は2カラムで全幅使用、下段は3カラム目にボタン */
        grid-template-columns: 1fr 1fr 0;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 8px;
        align-items: start;
        width: 100%;
    }

    /* 上段：チェックイン／チェックアウト → 横幅いっぱい使う */
    #searchbar .sb-row--checkin {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    #searchbar .sb-row--checkout {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    /* 下段：部屋＋人数を左寄せグループ */
    #searchbar .sb-group--rooms-guests {
        grid-column: 1 / span 2; /* ← 上段と同じ2列ぶんを使う */
        grid-row: 2;
        display: flex;
        gap: 8px;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
    }

    /* 下段：再検索ボタン右端固定 */
    #searchbar .sb-row--submit {
        grid-column: 3; /* ← ボタンは右端のauto列にのみ配置 */
        grid-row: 2;
        justify-self: end;
    }

    #searchbar .sb-row {
        min-width: 0;
    }
}





/* ========== Guests popup ========== */
.sb-row { position: relative; } /* 絶対配置の基準 */
.guests-pop {
    position: absolute;
    right: 0; top: 100%;
    margin-top: 8px;
    width: 330px;
    max-width: 330px;
    background: #fff;
    border: 1px solid var(--color-border, #c5c5c5);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 1250;
    padding: 16px;
}
.guests-pop[hidden] { display: none !important; }

/* 行レイアウト（大人／子供のステッパー行） */
.guests-pop .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
.guests-pop .ctrl { display: inline-flex; align-items: center; gap: 8px; }
.guests-pop .btn {
    min-width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border, #c5c5c5);
    background: #fff; cursor: pointer;
}

/* 子供年齢：縦並び + 右寄せ（#gp-ages の中身を整列） */
.guests-pop #gp-ages {
    isplay: flex;
    flex-direction: column;
    align-items: flex-end;   /* 右寄せ */
    gap: 10px;
}
.guests-pop #gp-ages .age-row {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右へ寄せる */
    gap: 8px;
}
.guests-pop #gp-ages .age-row label{
    min-width: 3.5em;        /* 「1人目」など幅を揃える */
    text-align: right;       /* ラベル右寄せ */
}
.guests-pop #gp-ages .age-row select{
    width: 128px;         /* ご指定サイズ */
    height: 34px;
    line-height: 28px;
    padding: 0 24px 0 8px;   /* 右の▼にかぶらないよう余白 */
    box-sizing: border-box;
}
.guests-pop #gp-ages .age-row span{ /* 「歳」 */
    opacity: .85;
}

/* フッター（必要ならそのまま） */
.guests-pop .footer {
    display:flex; justify-content:flex-end; gap: 8px; margin-top: 12px;
}
.guests-pop .btn-primary {
    background: var(--color-btn-search, #006699);
    color:#fff; border: none; padding: 8px 14px; cursor: pointer;
}


/* ===== Rooms（部屋：55pxラベル + 65pxセレクト） ===== */
.sb-row--rooms {
    display: flex;
    align-items: center;
}
.sb-row--rooms .sb-label{
    width: 55px;
    min-width: 55px;
    height: 34px;
    padding: 8px;              /* 指定維持 */
    display: flex;             /* ← 縦中央 */
    align-items: center;       /* ← 縦中央 */
    justify-content: center;   /* ← 横中央（日本語でも崩れにくい） */
    box-sizing: border-box;
    background: var(--color-form-th-bg,#F5F5F5);
    border: 1px solid var(--color-form-border,#818494);
}
.sb-row--rooms .sb-field{
    width: 65px;
    min-width: 65px;
    height: 34px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--color-form-border,#818494);
    border-left: none;
    position: relative;
    overflow: visible;
}

.sb-row--rooms select{
    display: block;
    width: 100%;
    height: 100%;
    /* 右側は矢印ぶん多めに空ける */
    padding: 0 18px 0 4px;         /* ← 右18px / 左4px に変更 */
    /* Safari 対策（右パディングを優先） */
    -webkit-padding-end: 18px;
    /* 既存指定 */
    font-size: 12px;
    color: var(--color-text,#222);
    background: transparent;
    border: none;
    box-sizing: border-box;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

/* ===== Guests ポップ ===== */
.sb-row { position: relative; } /* 絶対配置の基準にするため */
.guests-pop {
    margin-top: 0;
    width: 420px;
    padding: 16px 16px 24px;
    background: #fff;
    border: 1px solid var(--color-border, #c5c5c5);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 3100;
}
.guests-pop[hidden] {
    display: none !important;
}
.guests-pop .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
.guests-pop .ctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.guests-pop .btn {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border, #c5c5c5);
    background: #fff;
    cursor: pointer;
}
/* 人数入力フィールド（数値表示用） */
.guests-pop .stepper .val{
    width:42px; text-align:center;
    border:none; background:transparent;
    pointer-events:none; user-select:none;
}

/* ＋／− ボタン */
.guests-pop .stepper-btn{
    width:30px; height:30px;
    border:1px solid #D8D8D8;
    background:#fff; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
}
.guests-pop .stepper-btn.is-disabled,
.guests-pop .stepper-btn:disabled{
    color:#D8D8D8; border-color:#D8D8D8; cursor:default;
}
.guests-pop .footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.guests-pop .btn-primary {
    background: var(--color-btn-search, #006699);
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
}











/* =========================================================
 * Guests（人数ポップ：右寄せ・年齢は縦並び）
 * =======================================================*/

#js-guest-pop[hidden]{ display: none !important; }

#js-guest-pop .row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
#js-guest-pop .ctrl{ display: inline-flex; align-items: center; gap: 8px; }

/* ±ボタン */
#js-guest-pop .stepper-btn{
    width: 30px; height: 30px;
    border: 1px solid #D8D8D8;
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
#js-guest-pop .stepper-btn.is-disabled,
#js-guest-pop .stepper-btn:disabled{
    color: #D8D8D8; border-color: #D8D8D8; cursor: default;
}

/* 人数表示フィールドは“表示だけ”（枠線消し） */
#js-guest-pop .stepper .val{
    width: 42px; text-align: center;
    border: none; background: transparent;
    pointer-events: none; user-select: none;
}

/* PC版：子供年齢縦並び + 右寄せ */
#js-guest-pop #gp-ages-row {
    display: flex;
    justify-content: flex-end; /* ← 親行ごと右寄せ */
}

#js-guest-pop #gp-ages {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;               /* ← 幅を縮める */
    align-self: flex-end;      /* ← 親に対して右寄せ */
    gap: 10px;
}

#js-guest-pop #gp-ages .age-item {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ← 子要素内容も右端寄せ */
    gap: 8px;
    width: auto;               /* ← 全幅を解除 */
}

#js-guest-pop #gp-ages .age-label {
    min-width: 3.5em;
    text-align: right;
}

#js-guest-pop #gp-ages select {
    width: 128px;
    height: 34px;
}
/* =========================================
   Guests ポップ（カレンダーと統一デザイン）
   ========================================= */
#js-guest-pop.guests-pop {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    z-index: 3100;
    width: 420px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border, #c5c5c5);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* 吹き出しの三角 */
#js-guest-pop.guests-pop::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 40px;
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent var(--color-border, #c5c5c5) transparent;
}

#js-guest-pop.guests-pop::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 40px;
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* 非表示時 */
#js-guest-pop[hidden] {
    display: none !important;
}

/* =========================================================
 * 検索フォーム
 * =======================================================*/

@media (max-width: 1024px) {
    .search-form-pc {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 12px;
    }

    .search-form-pc .form-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-form-pc .form-submit {
        flex: 1 1 0; /* ← autoじゃなく縮んでもらう */
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
    }
}


@media (min-width: 768px) {
    .sp-search-trigger,
    #searchModal,
    #calendarModal,
    #guestModal {
        display: none !important;
    }
}
@media (max-width: 767px) {

    /* フルスクリーンモーダルを開くトリガー **************************/
    .search-form-pc {
        display: none !important;
    }
    .sp-search-trigger {
        background: var(--color-white);
        border: 1px solid var(--color-border);
        padding: 4px 10px;
        margin: 10px;
        cursor: pointer;
    }

    .sp-search-trigger__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sp-search-trigger__info {
        font-size: 0.714rem; /* 12px */
        color: var(--color-text);
    }

    .sp-search-trigger__label {
        color: #888;
        margin-right: 4px;
    }

    .sp-search-trigger__icon {
        font-size: 1.143rem; /* 20px */
        color: #ccc;
    }

    /* フルスクリーンモーダル **************************/
    .sp-search-modal,
    .sp-sub-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        display: none; /* 初期は非表示（JSでfadeIn） */
    }

    .sp-search-modal[style*="display: block"],
    .sp-sub-modal[style*="display: block"] {
        display: block;
    }
    body.is-fixed {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    /* 条件変更 **************************/
    /* ブロック全体：ラベルと入力を横並び */
    .sp-search-modal__block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 8px 8px;
    }

    /* 必須 */
    .sp-search-modal__required {
        color: #EF7474;
        text-align: right;
        padding: 10px 8px;
    }
    .sp-search-modal__required i {
        margin-right: 2px;
    }

    /* ラベル：左側固定幅 */
    .sp-search-modal__label {
        flex: 0 0 6rem;
    }
    .sp-search-modal__label i {
        font-size: 0.667rem;
        color: #EF7474;
        margin-left: 2px;
    }

    /* ボタン型入力とセレクト：右側可変 */
    .sp-search-modal__input,
    .sp-search-modal__select {
        flex: 1;
        width: 100%;
        padding: 12px 10px;
        border: 1px solid #ccc;
        background: #fff;
        color: #333;
        box-sizing: border-box;
        text-align: left;
    }

    /* セレクト：矢印装飾 */
    .sp-search-modal__select {
        appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 16px;
    }


    /* 人数 **************************/
    /* ゲスト1行（大人・子供） */
    .sp-sub-modal__guest-group {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
    }

    /* ラベル */
    .sp-sub-modal__guest-label {
        font-size: 0.875rem;
        color: var(--color-text);
    }

    /* ＋−ボタンと数字 */
    .sp-sub-modal__guest-control {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sp-sub-modal__guest-control #child-count,
    .sp-sub-modal__guest-control #adult-count {
        width: 32px;
        text-align: center;
    }

    .sp-sub-modal__guest-control button {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
        border: 1px solid var(--color-border);
        background: #fff;
        color: #333;
        border-radius: 4px;
    }

    /* 子供年齢セレクト */
    /* 子供年齢セレクト群（#guestModal 内） */
    #guestModal #child-age-selects {
        display: flex;
        flex-direction: column;
        align-items: flex-end;   /* 右寄せ */
        margin-left: auto;       /* 左側に余白 */
        gap: 8px;                /* 各行の間隔 */
        background: none;        /* 背景は白にしない */
        padding: 0;
    }

    /* 各年齢セレクト行 */
    #guestModal #child-age-selects .child-age-select {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
        padding: 12px 10px 0;
    }

    #guestModal #child-age-selects label {
        color: var(--color-text);
        white-space: nowrap;
    }

    #guestModal #child-age-selects select {
        width: 128px;               /* 1人目/2人目のプルダウン幅 */
        height: 34px;
        border: 1px solid #ccc;
        background: #fff;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding: 0 24px 0 8px;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 6px center;
        background-size: 10px 6px;
    }
    /* ＋−ボタン：通常 */
    #guestModal .sp-sub-modal__guest-control button {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
        border: 1px solid var(--color-border);
        background: #fff;
        color: #333;
        border-radius: 4px;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s;
    }

    /* 無効状態（最小 or 最大時） */
    #guestModal .sp-sub-modal__guest-control button.is-disabled,
    #guestModal .sp-sub-modal__guest-control button:disabled {
        color: #D8D8D8 !important;
        border-color: #D8D8D8 !important;
        cursor: default;
        opacity: 1; /* 薄くしない */
    }

    /* ヘッダー **************************/
    .sp-search-modal__header,
    .sp-sub-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 8px;
        background: #000;
        color: #fff;
    }

    .sp-search-modal__title,
    .sp-sub-modal__title {
        font-size: 1.333rem;
        font-weight: bold;
    }
    .sp-search-modal__clear,
    .sp-sub-modal__clear {
        font-size: 0.75rem;
        background: none;
        border: 1px solid #fff;
        border-radius: 4px;
        color: #fff;
        padding: 4px 8px;
    }
    .sp-search-modal__close,
    .sp-sub-modal__close {
        font-size: 1.333rem;
        background: none;
        border: none;
        color: #fff;
    }

    /* フッター **************************/
    @media (max-width: 767px) {
        .sp-search-modal__footer,
        .sp-sub-modal__footer{
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 12px 16px;
            background: #474747;
            z-index: 1001;
            text-align: center;
        }

        .sp-search-modal__submit,
        .sp-sub-modal__submit{
            width: 60%;
            padding: 10px;
            font-size: 1rem;
            border: none;
            border-radius: 4px;
            background: var(--color-btn-primary);
            color: #fff;
            font-weight: bold;
        }

    }

}


/* =========================================
   Date Range Picker 共通テーマ（PC・SP共通）
   ========================================= */
/* 共通スタイル */
.daterangepicker .calendar-table th {
    font-weight: bold;
    color: #555;
    text-align: center;
    padding: 4px 0;
}

/* 日曜：赤 */
.daterangepicker .calendar-table th:first-child {
    color: #c00;
}

/* 土曜：青 */
.daterangepicker .calendar-table th:last-child {
    color: #06c;
}
/* --- 範囲内の日付 --- */
.daterangepicker td.in-range {
    background-color: #E0EEF9 !important;
    color: #222 !important;
}

/* --- 開始・終了日 --- */
.daterangepicker td.active,
.daterangepicker td.active.in-range,
.daterangepicker td.active:hover {
    background-color: #338CD5 !important;
    color: #fff !important;
}

/* --- 今日+2日以前などの無効セル --- */
.daterangepicker td.off,
.daterangepicker td.off:hover {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* --- カレンダーヘッダー next / prev の表示調整 --- */
.daterangepicker .calendar-table th.next span,
.daterangepicker .calendar-table th.prev span {
    display: inline-block !important;
}
.daterangepicker .calendar-table th.available span {
    pointer-events: auto;
}

/* --- 年・月テキスト表示（ドロップダウン非表示） --- */
.daterangepicker .drp-calendar .ym-text {
    display: inline-block;
    font-weight: bold;
    font-size: 15px;
    margin: 0 4px;
}
.daterangepicker .monthselect,
.daterangepicker .yearselect {
    display: none !important;
}

/* --- ボタン行非表示（Apply/Cancel）--- */
.daterangepicker .drp-buttons {
    display: none !important;
}



/* =========================================
   SPモーダル内（全幅＋縦スクロール対応）
   ========================================= */
@media (max-width: 767px) {
    #calendarModal .daterangepicker {
        width: 100% !important;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border: none;
        box-shadow: none;
    }
}

/* =========================================
   SPモーダル専用：縦スクロール12ヶ月カレンダー
   ========================================= */
/* SPモーダルヘッダー固定 */
.sp-sub-modal__header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.sp-month-block {
    padding: 12px 0 24px;
    border-bottom: 1px solid #eee;
}

.sp-month-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 8px;
}

.sp-month-block table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.sp-month-block td {
    width: 14.2%;
    padding: 4px 0;
    border-radius: 4px;
}

/* hover時の軽い反応（SPでもタップ時の視覚補助） */
.sp-month-block td.available:hover {
    background-color: #E0EEF9;
}

/* 範囲ハイライト色（PCと統一） */
.sp-month-block td.active {
    background-color: #338CD5 !important;
    color: #fff !important;
}

.sp-month-block td.in-range {
    background-color: #E0EEF9 !important;
    color: #222 !important;
}

/* 非アクティブ（日付制限） */
.sp-month-block td.off {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* 空セル（前後月の埋め） */
.sp-month-block td.empty {
    background: none;
    pointer-events: none;
}
/* カレンダー下にボタン分の余白 */
.sp-calendar-container {
    padding-bottom: 120px; /* ボタン＋安全マージン */
}
/* =========================================
   SPモーダル：選択範囲表示エリア
   ========================================= */
.sp-calendar-selected {
    text-align: left;
    color: var(--color-white);
    margin-bottom: 12px;
}

.sp-calendar-selected__range {
    margin-bottom: 4px;
    color: var(--color-white);
}

.sp-calendar-selected__note {
    font-size: 11px;
    color: var(--color-white);
}

/* ===== SPカレンダー：曜日ヘッダー ===== */
.sp-weekdays th {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.sp-weekdays th:first-child { color: #c00; } /* 日曜：赤 */
.sp-weekdays th:last-child  { color: #06c; } /* 土曜：青 */