/* ============================================================
    別邸 竹千代 客室リンクボタン (room-types-button.css)
   ============================================================ */

/* 共通：フォント設定（明朝体優先） */
.room-links-section {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    padding: 30px 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: 115px; /* 縦幅を抑えつつ矢印分を確保 */
    padding: 15px 10px;
    text-decoration: none;
    background-color: #fff; /* 清潔感のある白 */
    border: 1px solid #4a362a; /* 落ち着いた焦茶（墨色） */
    border-radius: 0; /* 角を立たせて格式高く */
    box-sizing: border-box;
    transition: all 0.4s ease;
    position: relative;
}

/* 日本語タイトル */
.room-links-section .room-link .room-title {
    display: block;
    font-size: 18px;
    color: #4a362a;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2em; /* 字間を広くして高級感を出す */
    word-break: keep-all; 
    overflow-wrap: break-word;
}

/* 英語タイトル */
.room-links-section .room-link .room-en {
    display: block;
    font-size: 11px;
    color: #8c7668; /* 少し明るめの茶 */
    margin-top: 6px;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* CSSで作るL字矢印（くの字） */
.room-links-section .room-link .room-arrow {
    display: block;
    width: 7px;           /* 矢印のサイズ */
    height: 7px;
    border-right: 1px solid #8c7668; /* 線の太さと色 */
    border-bottom: 1px solid #8c7668;
    transform: rotate(45deg); /* 45度回転させて下向きに */
    margin-top: 10px;
    transition: all 0.4s ease;
}

.pc-br {
    display: none;
}

/* ホバー時の挙動（背景色と文字・矢印の反転） */
.room-links-section .room-link a:hover {
    background-color: #4a362a;
    border-color: #4a362a;
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-links-section .room-link a:hover .room-title,
.room-links-section .room-link a:hover .room-en {
    color: #fff;
}

/* ホバー時に矢印も白くする */
.room-links-section .room-link a:hover .room-arrow {
    border-color: #fff;
}

/* アンカーリンクのジャンプ位置調整 */
.room-gallery-block {
    scroll-margin-top: 100px;
}

/* ============================================================
    レスポンシブ対応
   ============================================================ */

/* PC・タブレット（769px以上） */
@media (min-width: 769px) {
    .room-links-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 40px 20px;
    }

    .pc-br {
        display: block;
    }
}

/* スマートフォン（768px以下） */
@media (max-width: 768px) {
    .room-links-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 20px 10px;
    }

    .room-link {
        width: auto;
        flex: none;
    }

    .room-links-section .room-link a {
        min-height: 95px;
        padding: 10px 5px;
    }

    .room-links-section .room-link .room-title {
        font-size: 15px;
        letter-spacing: 0.15em;
    }

    .room-links-section .room-link .room-en {
        font-size: 9px;
        margin-top: 4px;
    }

    .room-links-section .room-link .room-arrow {
        width: 6px;
        height: 6px;
        margin-top: 8px;
    }

    /* SPアンカー調整 */
    .room-gallery-block {
        scroll-margin-top: 70px;
    }
}