/* ========================================================
   room-search.css - 2026 完全版（整理・最適化済み）
   ======================================================== */

:root {
    --hotel-blue: #005288; /* 青系 */
    --hotel-gold: #a68b5a;
    --hotel-gray: #f8f9fa;
    --border-color: #d1d8e0;
}

/* ---------------------------
   1. 検索エリア全体・基本設定
--------------------------- */
.con_search {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.search_title {
    text-align: center;
    margin-bottom: 0;
    line-height: 1.2;
}

.search_title .en_title {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 14px;
    letter-spacing: 0.35em;
    color: var(--hotel-gold);
    margin-bottom: 0;
    font-weight: 400;
}

.search_title .jp_title {
    display: block;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--hotel-blue);
    position: relative;
    padding-bottom: 15px;
}

.search_title .jp_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--hotel-gold);
}

/* ---------------------------
   2. レイアウト（PC基準）
--------------------------- */
.search-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: start;
}

.search-col { 
    min-width: 0; 
}

.search_label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--hotel-blue);
    margin-bottom: 12px;
    border-left: 3px solid var(--hotel-gold);
    padding-left: 10px;
    font-family: "Yu Gothic", sans-serif;
}

/* ---------------------------
   3. 入力パーツ共通
--------------------------- */
.date_input_group {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--hotel-gray);
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    position: relative;
    margin-bottom: 10px;
}

.inp_txt {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 2px;
    font-size: 16px;
    text-align: center;
    background-color: #fff;
    outline: none;
}

.year_input { width: 75px !important; }
.month_input, .day_input { width: 45px !important; }

.date_separator {
    font-weight: bold;
    color: #999;
    flex-shrink: 0;
}

.select_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.padd {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
}

.chk_item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.chk_item input { margin-right: 4px; }

.child_group {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    background: #fdfdfd;
    padding: 8px;
    border-radius: 4px;
}

/* ---------------------------
   4. カレンダー制御
--------------------------- */
#calid {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 10000 !important;
    width: auto !important;
    height: auto !important;
    margin: 5px 0 0 0;
    padding: 0;
    border: none !important;
    background: none !important;
    line-height: 0;
    font-size: 0;
}

/* カレンダー内テーブル */
.cal-table {
    background: #fff !important;
    border-collapse: collapse !important;
    width: 280px !important;
    font-family: "Yu Gothic", sans-serif;
    line-height: normal;
    font-size: 14px;
    border: 1px solid var(--hotel-gold) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    visibility: visible;
}

.cal-table th {
    background: var(--hotel-blue) !important;
    color: #fff !important;
    padding: 12px 5px !important;
    font-size: 15px !important;
}

.cal-table td {
    padding: 10px 5px !important;
    text-align: center !important;
    font-size: 14px !important;
    border: 1px solid #f0f0f0 !important;
    color: #333;
}

.sun { color: #d9534f !important; }
.sat { color: #428bca !important; }
.active-day { cursor: pointer; background: #fff !important; }
.active-day:hover { background: #f4f1ee !important; font-weight: bold; }
.past-day { color: #ccc !important; background: #fafafa !important; }

.cal-close-btn {
    background: #555 !important;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    line-height: normal;
    visibility: visible;
}

/* ---------------------------
   5. 表示オプション・ボタン類
--------------------------- */
.display-options {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.0;
}

.display-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-bottom: 0;
}

.search-button-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.button {
    width: 100%;
    max-width: 400px;
    height: 60px;
    background-color: var(--hotel-blue);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(122,90,52,0.2);
}

.button:hover {
    background-color: #5e422a;
    transform: translateY(-2px);
}

.search_sub_links a {
    font-size: 14px;
    color: var(--hotel-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--hotel-blue);
}

/* ---------------------------
   6. スマートフォン表示 (max-width: 900px)
--------------------------- */
@media screen and (max-width: 900px) {
    .con_search { 
        margin: 20px 10px; 
        padding: 30px 15px; 
        text-align: center; 
    }

    .search-row { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }

    .search-col { 
        border-bottom: 1px dashed #eee; 
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    
    .search-col:last-child { border-bottom: none; }

    .search_label {
        display: inline-block;
        border-left: none;
        border-bottom: 2px solid var(--hotel-gold);
        padding-left: 0;
        padding-bottom: 4px;
        margin-bottom: 15px;
        width: fit-content;
    }

    .date_input_group {
        display: inline-flex !important; 
        width: 100%;
        max-width: 280px; 
    }

    .select_group {
        justify-content: center; 
        width: 100%;
    }

    .search-col select, 
    .search-col input[type="text"] {
        text-align: center;
        text-align-last: center; 
    }

    .child_group {
        text-align: center;
        padding: 12px 8px;
    }

    .child_group select {
        display: inline-block;
        margin: 0 4px;
        vertical-align: middle;
    }

    .display-options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* SPカレンダー中央固定表示 */
    #calid[style*="display: block"] {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 300px !important;
        box-shadow: 0 0 0 100vmax rgba(0,0,0,0.6) !important;
        z-index: 10001 !important;
        margin-top: 0;
    }
}