/* TDR Room Detail Generator Styles */
/* 画像 refer/img06.png を忠実に再現 */


/* 全体コンテナ */
.room-detail-container {
    max-width: 640px;
    margin: 20px auto;
    padding: 0 10px;
}

/* カード型デザイン */
.room-detail-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.room-group-clickable {
    cursor: pointer;
    display: block;
    text-decoration: none;
}

h3.room-group-header {
    background: #4169E1;
    color: white;
    padding: 16px 10px;
    text-align: left;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: none;
}

/* 部屋名ヘッダー（水色） */
.room-detail-card h4.room-name-header {
    background: #00a2ff;
    color: white;
    padding: 8px 12px;
    margin: 0px;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
}

/* 情報ボックス群 */
.room-info-boxes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 3px;
}

.room-info-box {
    border: solid 3px #4ed3ff;
    text-align: center;
    border-radius: 10px;
    min-height: 108px;
}

.info-label {
    background: #4ed3ff;
    color: white;
    font-size: 17px;
    font-weight: bold;
    padding: 12px 0px;
    border-radius: 10px 10x 0px 0px;
}

.info-content {
    background: white;
    padding: 10px 0px;
    font-size: 16px;
    font-weight: bold;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-content {
    padding: 8px;
}

.room-detail-card .rank-icon {
    width: 80px;
    height: auto;
}

.time-content {
    color: #2d3748;
    font-size: 18px;
}

.rate-content {
    color: #2d3748;
    font-size: 18px;
}

/* コメントセクション */
.comment-section {
    margin: 6px 4px;
    padding: 8px;
    background: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 15px;
    text-align: left;
}

/* 空室テーブル */
.vacancy-table-container {
    margin: 4px;
}

.vacancy-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vacancy-table th {
    padding: 12px 8px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-align: center;
}

.vacancy-header,
.price-header {
    background: #4ed3ff;
}

.day-type-header {
    background: #888;
}

.vacancy-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.month-cell {
    font-weight: bold;
    background: #f8f9fa;
}

.vacancy-count {
    font-weight: bold;
    font-size: 18px;
}

.price-cell {
    color: #2d3748;
    font-weight: 500;
}

/* 最近のキャンセル */
.recent-cancels-container {
    margin: 4px;
}

.recent-cancels-header {
    background: #4ed3ff;
    color: white;
    padding: 6px 8px 2px;
    border-radius: 8px 8px 0 0;
}

.recent-cancels-header h5 {
    font-size: 17px;
}

.recent-cancels-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.recent-cancels-list {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 6px 0px 0px 6px;
}

.cancel-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #2d3748;
}

.cancel-found-time {
    color: #aaa;
}

.cancel-item:last-child {
    border-bottom: none;
}

/* 料金セクション */
.price-section {
    display: flex;
    align-items: center;
    margin: 6px 4px;
    padding: 0px;
    background: #ffffff;
    border: 3px solid #4ed3ff;
    border-radius: 10px;
    font-weight: bold;
}

.price-label {
    background: #4ed3ff;
    color: white;
    padding: 8px 16px;
    border-radius: 6px 0px 0px 6px;
    font-size: 16px;
    margin-right: 12px;
    min-width: 50px;
    text-align: center;
}

.price-content {
    color: #2d3748;
    font-size: 18px;
    flex: 1;
}

/* グループ開閉機能 */
.room-group-section {
    margin-bottom: 6px;
}

.group-arrow {
    transition: transform 0.3s ease;
}

.room-cards-container {
    display: none;
}

/* 満室アイコン */
.soldout-icon {
    color: #dca735;
    margin-right: 8px;
    font-weight: bold;
    font-size: 140%;
}

.room-group-header .soldout-icon {
    margin-right: 8px;
    color: #fff;
    background-color: #dca735;
    border-radius: 50%;
    padding: 2px;
}

.room-name-header .soldout-icon {
    color: #dca735;
    margin-right: 8px;
    font-weight: bold;
}

/* 公式サイトボタン */
.official-site-button-container {
    margin: 12px 20px;
    display: flex;
}

.official-site-button {
    display: block;
    background: #4ed3ff;
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-left: auto;
    padding: 12px 24px;
}

.official-site-button:hover {
    background: #0099CC;
    text-decoration: none;
    color: white;
}

/* レスポンシブ対応: スマホ (375px以下) */
@media (max-width: 767px) {
    .room-detail-container {
        max-width: 375px;
        margin: 10px auto;
        padding: 0 8px;
    }

    .room-group-title {
        font-size: 18px;
    }

    .room-name-title {
        font-size: 16px;
    }

    /* 情報ボックスを2x2レイアウトに */
    .room-info-boxes-container {
        grid-template-columns: 23% 26% 24% 24%;
    }

    .room-info-box {
        min-height: 92px;
    }

    .info-label {
        font-size: 15px;
        padding: 10px 0px;
    }

    .info-content {
        padding: 10px 0px 0px;
        font-size: 14px;
        min-height: 20px;
    }

    .time-content,
    .rate-content {
        font-size: 16px;
    }

    .room-detail-card .rank-icon {
        width: 70px;
    }

    /* テーブルのフォントサイズ調整 */
    .vacancy-table th {
        font-size: 14px;
        padding: 10px 6px;
    }

    .vacancy-table td {
        font-size: 14px;
        padding: 10px 6px;
    }

    .vacancy-count {
        font-size: 16px;
    }

    /* キャンセル情報のレイアウト調整 */
    .cancel-item {
        padding: 0;
        font-size: 13px;
        line-height: 1.4;
    }

    /* ボタンサイズ調整 */
    .official-site-button {
        font-size: 14px;
        padding: 14px 20px;
    }

    /* コメントセクション調整 */
    .comment-section {
        margin: 6px 4px;
        padding: 8px;
        font-size: 14px;
        text-align: left;
    }

    .recent-cancels-container,
    .vacancy-table-container {
        margin: 4px;
    }

    .official-site-button-container {
        margin: 16px;
    }
}