/* ============================================================
    各部屋ボタンリンク 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: 110px; /* 矢印追加に伴い少しだけ高さを調整 */
    padding: 15px 10px 12px; /* 下側の余白を微調整 */
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #006633;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 日本語タイトル */
.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;
}

/* --- 追加：CSSで作るL字矢印（種子島カラー版） --- */
.room-links-section .room-link .room-arrow {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #666; /* 線の太さを2pxにして視認性アップ */
    border-bottom: 2px solid #666;
    transform: rotate(45deg); /* 下向きに */
    margin-top: 10px;
    transition: all 0.3s ease;
}

.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;
}

/* ホバー時に矢印も白くする */
.room-links-section .room-link a:hover .room-arrow {
    border-color: #ffffff;
    transform: rotate(45deg) translateY(2px); /* 少し沈む動きでクリック感を出す */
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */

/* PC・タブレット */
@media (min-width: 769px) {
    .room-links-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        padding: 30px 20px;
    }

    .pc-br {
        display: block;
    }

    /* PCアンカー調整 */
    .room-item {
        scroll-margin-top: 120px;
    }
    #facility-summary {
        scroll-margin-top: 80px;
    }
}

/* スマートフォン */
@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;
    }

    /* スマホでの矢印サイズ調整 */
    .room-links-section .room-link .room-arrow {
        width: 6px;
        height: 6px;
        margin-top: 8px;
    }

    /* SPアンカー調整 */
    .room-item {
        scroll-margin-top: 70px;
    }
    #facility-summary {
        scroll-margin-top: 40px;
    }
}