/* 各部屋ボタンリンク room-types-button.css */

/* 部屋ボタンを並べるセクション */
.room-links-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    padding: 20px 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 各部屋ボタン（個別） */
.room-link {
    text-align: center;
    flex: 0 1 220px; /* 視認性向上のため幅のベースを広めに設定 */
    margin: 0;
}

/* ボタン本体：枠線を太くし、高さを出して視認性をアップ */
.room-links-section .room-link a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 105px; /* 改行しても窮屈にならない高さ */
    padding: 15px 10px;
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #006633; /* 枠線を2pxに強化 */
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 日本語タイトル：15px → 18pxへ大幅アップ */
.room-links-section .room-link .room-title {
    display: block;
    font-size: 18px; /* パッと見て認識できる大きさ */
    color: #006633;
    font-weight: 800; /* より力強く */
    line-height: 1.3;
    letter-spacing: 0.05em; /* 文字の詰まりを解消 */
    word-break: keep-all; 
    overflow-wrap: break-word;
}

/* 英語タイトル：日本語との対比を明確に */
.room-links-section .room-link .room-en {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-family: 'Times New Roman', serif;
    text-transform: none;
    letter-spacing: 0.08em; /* 隠し味のゆとり */
}

/* 改行コントロール：PCのみ有効化 */
.pc-br {
    display: none;
}

/* ホバー時の挙動：浮き出しを強調 */
.room-links-section .room-link a:hover {
    background-color: #006633;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.room-links-section .room-link a:hover .room-title,
.room-links-section .room-link a:hover .room-en {
    color: #ffffff;
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */

/* PC・タブレット */
@media (min-width: 769px) {
    .room-links-section {
        display: grid;
        /* 長い部屋名が余裕を持って入るよう220pxを最小値に */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        padding: 30px 20px;
    }

    .pc-br {
        display: block;
    }
}

/* スマートフォン：2列でもしっかり読めるサイズに調整 */
@media (max-width: 768px) {
    .room-links-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }

    .room-link {
        width: auto;
        flex: none;
    }

    .room-links-section .room-link a {
        min-height: 95px; /* スマホでもしっかり高さを出す */
        padding: 12px 5px;
    }

    .room-links-section .room-link .room-title {
        font-size: 16px; /* スマホでの標準的な視認サイズ */
    }

    .room-links-section .room-link .room-en {
        font-size: 10px;
        letter-spacing: 0.04em;
    }
}