/* ========================================================================== 
   客室ページ専用スタイル (main-content-rooms.css)
   完全版：背景色・テキストカラー移植 ＋ 横幅フルワイド化
   （文字拡大に伴う縦伸びを、余白削減により相殺・コンパクト化）
   ========================================================================== */

/* --- 0. 共通・調整用 --- */
.section-title-area .section-title {
    margin-top: 20px;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* --- 1. ページヒーローエリア --- */
.room-hero {
    width: 100%;
    min-height: 200px;
    height: 12.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 140px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.room-hero .hero-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.room-hero .section-title {
    color: #fff;
    font-size: 36px;
    margin: 0;
    line-height: 1.2;
}

.room-hero .section-title span {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-top: 5px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .room-hero {
        height: 200px; 
        min-height: auto;
        margin-top: 60px;
    }
    .room-hero .section-title {
        font-size: 28px;
    }
}

/* --- 2. 客室コンセプト強化デザイン（横幅フルワイド ＋ 文字拡大 ＋ 縦幅圧縮） --- */

.room-concept-box {
    background-color: #0a6a80;
    background: linear-gradient(135deg, #0a6a80 0%, #064e5e 100%);
    position: relative;
    overflow: hidden;

    /* 横幅のみ親要素をはみ出させる */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    
    /* ★ 縦長化防止：上下の余白を極限まで削る ★ */
    padding: 30px 0 10px; 
}

/* タイトルエリア調整 */
.room-concept-box .section-title-area {
    background: transparent !important;
    border: none !important;
    position: relative;
    z-index: 1;
}

/* 透かし文字装飾 */
.room-concept-box .section-title-area::before {
    content: "QUALITY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 160px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

/* タイトルサイズのみ拡大 */
.room-concept-box .section-title-area .section-title {
    color: #ffffff !important;
    border: none !important;
    position: relative;
    z-index: 2;
    font-size: 40px;
}

.room-concept-box .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ec971f;
    /* ★ 縦長化防止：タイトル下の隙間を詰める ★ */
    margin: 10px auto 0;
}

/* リード文：文字サイズを上げつつ、周辺の余白を削る */
.room-concept-box .concept-lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.7 !important; 
    /* ★ 縦長化防止：下の余白を大幅に圧縮 ★ */
    margin-bottom: 20px; 
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    
    font-size: 19px;
}

.room-concept-box .concept-lead strong {
    color: #ec971f !important;
    font-weight: bold;
    border-bottom: 2px solid #ec971f;
}

@media (max-width: 768px) {
    .room-concept-box {
        padding: 25px 0 5px; /* スマホ版も余白圧縮 */
    }
    .room-concept-box .section-title-area::before { font-size: 80px; }
    
    .room-concept-box .section-title-area .section-title { 
        font-size: 28px; 
    }
    .room-concept-box .concept-lead { 
        font-size: 16px; 
        line-height: 1.6 !important;
        margin-bottom: 15px;
    }
}

/* --- 2-C. グリッドエリア（以降のレイアウト維持） --- */
.section-padding-concept { 
    padding: 40px 20px; /* ここのパディングも少し詰めました */
    background-color: #f4f7f7; 
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    counter-reset: point-counter;
    align-items: stretch;
    margin-top: 30px; /* 隙間を圧縮 */
}

/* --- 2-B. コンセプトグリッド詳細 --- */
.concept-item {
    background: #ffffff;
    padding: 30px 20px 25px;
    border-radius: 8px;
    border: 1px solid #d1dada;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.point-badge {
    counter-increment: point-counter;
}

.point-badge::before {
    content: "POINT " counter(point-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background: #0a6a80;
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(10, 106, 128, 0.3);
}

.concept-item .img-wrap {
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 3/2;
    border-radius: 4px;
}

.concept-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.concept-item:hover .img-wrap img {
    transform: scale(1.05);
}

/* 見出し修正対応 */
.concept-item h1, .concept-item h2, .concept-item h3, .concept-item h4 {
    font-size: 18px;
    color: #0a6a80;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #30c2c2;
    display: inline-block;
    font-weight: bold;
}

.concept-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    letter-spacing: 0.02em;
    text-align: justify;
    flex-grow: 1;
}

.concept-emphasis {
    color: #0a6a80;
    font-weight: bold;
    background: linear-gradient(transparent 70%, #e0f2f2 70%);
}

.concept-footer {
    margin-top: auto;
    padding-top: 15px;
}

.btn-detail-link {
    display: block;
    text-align: center;
    background-color: #f6f4ef;
    color: #0a6a80;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 5px;
    border: 1px solid #0a6a80;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-detail-link:hover {
    background-color: #0a6a80;
    color: #ffffff;
}

.concept-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 106, 128, 0.15);
    border-color: #0a6a80;
}

@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 15px;
    }
}

/* --- 3. 客室ギャラリー以降 --- */
.room-gallery {
    flex: 1;
    min-width: 0;
    margin-bottom: 20px;
    position: relative;
    min-height: 1px;
}

.room-gallery .slide {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    width: 100%;
}

.room-gallery .slide li {
    width: 100%;
    display: block;
    visibility: visible !important;
}

.room-gallery .slide li img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.room-gallery .thumb {
    display: flex;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.room-gallery .thumb li {
    width: 80px;
}

.room-gallery .thumb li a {
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.room-gallery .thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 2px solid transparent;
    display: block;
    pointer-events: none;
    transition: all 0.2s ease;
}

.room-gallery .thumb a:not(.active) img {
    opacity: 0.5;
}

.room-gallery .thumb a.active img {
    border: 2px solid #0a6a80;
    opacity: 1.0;
    box-shadow: 0 2px 8px rgba(10, 106, 128, 0.4);
}

/* bxSliderのリセット */
.bx-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    margin-bottom: 10px !important;
}

.bx-viewport {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    left: 0 !important;
}

/* アメニティ・備品 */
.room-amenity-icons {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ame-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    color: #fff;
    text-align: center;
}

.icon-wifi { background-color: #0a6a80; }
.icon-tv { background-color: #555555; }
.icon-smoke { background-color: #c9302c; }

/* 部屋詳細アイテム */
.room-item {
    margin-bottom: 100px;
    scroll-margin-top: 120px;
}

.room-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-direction: row;
}

.room-detail-info {
    flex: 1;
}

/* 見出し修正対応：h1-h4まで共通化 */
.room-detail-info h1, .room-detail-info h2, .room-detail-info h3, .room-detail-info h4 {
    font-size: 24px;
    color: #0a6a80;
    border-bottom: 2px solid #30c2c2;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
}

.room-detail-info h1 span, .room-detail-info h2 span, .room-detail-info h3 span, .room-detail-info h4 span {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
    font-weight: normal;
}

.room-desc {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* スペック表 */
.room-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.room-spec-table th, 
.room-spec-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.room-spec-table th {
    width: 30%;
    text-align: left;
    background-color: #f6f4ef;
    color: #555;
}

/* ボタンアクション */
.room-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.btn-reserve, 
.btn-facility {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    padding: 12px 5px;
    box-sizing: border-box;
    line-height: 1.3;
    transition: all 0.3s ease;
    min-height: 60px;
    font-size: 14px;
}

.btn-reserve span {
    display: inline-block;
}

.btn-reserve {
    background: linear-gradient(135deg, #30c2c2, #0a6a80);
    color: #fff;
}

.btn-no-smoking {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
}

.btn-facility {
    background: #ffffff;
    color: #0a6a80;
    border: 2px solid #0a6a80;
}

.btn-reserve:hover, 
.btn-facility:hover {
    opacity: 0.8;
}

.btn-facility:hover {
    background: #0a6a80;
    color: #fff;
}

/* スマホレスポンシブ */
@media (max-width: 768px) {
    .room-item {
        margin-bottom: 0;
        padding: 50px 15px;
        scroll-margin-top: 70px;
        border-bottom: 12px solid #f4f7f7;
    }

    .room-item:last-of-type {
        border-bottom: none;
    }

    .room-flex {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .room-detail-info {
        display: contents;
    }

    /* 見出し修正対応（スマホ） */
    .room-detail-info h1, .room-detail-info h2, .room-detail-info h3, .room-detail-info h4 {
        order: 1;
        width: 100%;
        text-align: center;
        padding: 18px 0;
        margin-bottom: 30px;
        border-top: 2.5px solid #30c2c2;
        border-bottom: 2.5px solid #30c2c2;
        background-color: #f9fdfd;
    }

    .room-detail-info h1 span, .room-detail-info h2 span, .room-detail-info h3 span, .room-detail-info h4 span {
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }

    .room-detail-info .room-desc {
        order: 2;
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
        font-size: 14px;
    }

    .room-gallery {
        order: 3;
        width: 100%;
        margin-bottom: 25px;
    }

    .room-gallery .thumb li {
        width: calc(25% - 6px);
        min-width: 60px;
    }

    .room-detail-info .room-amenity-icons {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }

    .room-detail-info .room-spec-table {
        order: 5;
        width: 100%;
        margin-bottom: 25px;
    }

    .room-spec-table th, 
    .room-spec-table td {
        text-align: center;
    }

    .room-detail-info .room-action {
        order: 6;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-reserve {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        padding: 10px 5px;
        font-size: 13px;
        min-height: 54px;
    }

    .btn-reserve span {
        display: block;
        font-size: 10px;
    }

    .btn-facility {
        flex: 0 1 100%;
        min-width: auto;
        padding: 10px 5px;
        min-height: 48px;
        font-size: 13px;
    }
}

/* 施設概要・注釈 */
.facility-summary {
    background-color: #f6f4ef;
    scroll-margin-top: 40px;
    padding: 60px 0;
}

.facility-box {
    background: #fff;
    padding: 40px;
    border: 1px solid #ddd;
}

/* 施設概要タイトル修正 */
.facility-box h1, .facility-box h2, .facility-box h3, .facility-box h4 {
    text-align: center;
    color: #0a6a80;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 24px;
}

.facility-content dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
}

.facility-content dt {
    font-weight: bold;
    color: #0a6a80;
    border-left: 4px solid #30c2c2;
    padding-left: 10px;
}

.facility-content dd {
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    line-height: 1.6;
}

.facility-content dd:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .facility-content dl {
        grid-template-columns: 1fr;
    }
    .facility-box {
        padding: 20px;
    }
}

.room-notice-box {
    background-color: #fff9f9;
    border: 1px solid #f2dede;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0 30px;
    text-align: center;
}

.room-notice-box p {
    color: #c9302c;
    font-size: 15px;
    font-weight: bold;
    margin: 0 !important;
    display: inline-block;
    line-height: 1.5;
}