/* ========================================================================== 
   room-layout.css - スタンダード客室（2カラム・グリッド / デザイン整合性調整済）
   プラン一覧ボタン：1種/2種自動判別・中央配置・ミドリ/オレンジ視覚識別版
   ========================================================================== */

.room-alternating-section {
    padding: 80px 0;
    background-color: #fff;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 40px; /* 上下の余白を広めにとってゆとりを出す */
}

/* 各客室アイテム */
.room-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* アイテム内の要素を中央揃えにする */
    text-align: center;  /* テキストを中央揃えにする */
}

.room-img {
    width: 100%;         /* 画像は親幅いっぱい */
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.room-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.room-item:hover .room-img img {
    transform: scale(1.08);
}

/* テキストエリア全体の幅を画像と同一（100%）に固定 */
.room-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* タイトル：アンダーバー中央配置 */
.room-type-title {
    display: block;
    width: fit-content;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: 700;
    color: #0054a6;
    line-height: 1.4;
    border-bottom: 1px solid #0054a6;
    padding-bottom: 5px;
}

.room-type-title::before {
    display: none;
}

.room-description {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 auto 25px;
    min-height: 3.6em;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* スペックリストをグリッド状に整理 */
.room-spec {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eee;
    width: 100%;             
    box-sizing: border-box;
}

.room-spec li {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
}

.room-spec li:nth-child(odd) {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.room-spec li:nth-child(even) {
    padding-left: 20px;
}

.room-spec li span {
    color: #999;
    font-size: 11px;
}

/* ============================================================
   宿泊プランボタン (ミドリ/オレンジ識別 & 自動中央配置)
   ============================================================ */
.room-plan-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
    justify-content: center; /* ボタンが1つの時に中央配置にする */
}

.btn-plan {
    /* 1つの時に横いっぱいに広がらないよう制御 */
    flex: 0 1 calc(50% - 5px);
    max-width: 260px; 
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #e0e0e0;
    -webkit-tap-highlight-color: transparent;
}

.btn-plan .btn-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.05em;
}

/* 禁煙ボタン：落ち着いた常盤ミドリ */
.btn-plan.kinen {
    border-left-color: #2d6d4b;
    background: #f8faf9;
}

/* 喫煙ボタン：深みのある琥珀オレンジ */
.btn-plan.kitsuien {
    border-left-color: #c57b3d;
    background: #fbf9f7;
}

.btn-plan .btn-arrow {
    display: block;
    width: 15px;
    height: 1px;
    background-color: #999;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-plan .btn-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 5px;
    height: 5px;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    transform: rotate(-45deg);
}

/* ホバー：禁煙 (ミドリ) */
.btn-plan.kinen:hover {
    border-color: #2d6d4b;
    background-color: #eff5f2;
}
.btn-plan.kinen:hover .btn-text { color: #2d6d4b; }
.btn-plan.kinen:hover .btn-arrow { background-color: #2d6d4b; width: 22px; }
.btn-plan.kinen:hover .btn-arrow::after { border-color: #2d6d4b; }

/* ホバー：喫煙 (オレンジ) */
.btn-plan.kitsuien:hover {
    border-color: #c57b3d;
    background-color: #f7f2ee;
}
.btn-plan.kitsuien:hover .btn-text { color: #c57b3d; }
.btn-plan.kitsuien:hover .btn-arrow { background-color: #c57b3d; width: 22px; }
.btn-plan.kitsuien:hover .btn-arrow::after { border-color: #c57b3d; }

/* --- レスポンシブ --- */
@media (max-width: 991px) {
    .room-grid {
        gap: 60px 30px;
    }
}

@media (max-width: 767px) {
    .room-alternating-section {
        padding: 50px 0;
    }

    .room-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .room-type-title {
        font-size: 22px;
    }

    .room-description {
        min-height: auto;
        padding: 0 10px;
    }

    /* スマホ横並び調整 */
    .room-plan-buttons {
        flex-direction: row; 
        gap: 6px;
        padding: 0 5px;
    }

    .btn-plan {
        flex: 0 1 calc(50% - 3px);
        max-width: 180px; 
        padding: 14px 8px;
        border-left-width: 3px;
    }

    .btn-plan .btn-text {
        font-size: 11px;
        letter-spacing: 0;
    }

    .btn-plan .btn-arrow {
        width: 10px;
    }
}