
/* レイアウト用コンテナ */
.bug-layout-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    gap: 40px;
}

/* 左サイドバー */
.bug-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--frame-color);
    padding: 20px;
    border-radius: 2px;
}

.bug-sidebar .image {
    width: 100%;
    margin-bottom: 20px;
}

.bug-sidebar .image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.bug-sidebar .game-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}

/* サイドバー内の詳細リスト */
.sidebar-section {
    margin-top: 20px;
    font-size: 0.85rem;
}

.sidebar-section .label {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.sidebar-section ul, 
.sidebar-section ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 5px;
    word-break: break-all;
    font-size: .75rem;
}

.sidebar-section li a {
    color: var(--rime);
    text-decoration: none;
    transition: opacity 0.2s;
}

.sidebar-section li a:hover {
    opacity: 0.7;
}

.sidebar-section.store ul {
    overflow-x: scroll;
    width: 100%;
    position: relative;
    display: flex;
    gap: 10px;
}

.sidebar-section.store ul::-webkit-scrollbar {
    height: 2px;
    left: 0;
}

.sidebar-section.store ul::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.sidebar-section.store ul::-webkit-scrollbar-thumb {
    background: #8d99a1;
    border-radius: 4px;
}

.sidebar-section.store ul::-webkit-scrollbar-thumb:hover {
    background: #8d99a1;
}

/* 似ているゲームのリスト（サイドバー用） */
.sidebar-recommended .rec-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff;
}

.sidebar-recommended .rec-item:hover {
    opacity: 0.8;
}

.sidebar-recommended .rec-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.sidebar-recommended .rec-title {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* 右メインコンテンツ */
.bug-main {
    flex-grow: 1;
    width: calc(100% - 340px); /* 300px + 40px gap */
}

.bug-page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.back-btn,
.back-btn:visited {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
    transition: ease all .4s;
}

.back-btn:hover {
    color: #fff;
    opacity: .7;
}

/* 上書き: バグレポートフォームとリストの幅調整 */
.bug-report-form-section,
.bug-report-list {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 2px;
}

.bug-report-list {
    margin-top: 30px;
}
/* Bug Filter */
.bug-filter-section {
    margin: 20px auto;
    padding: 15px;
    background: var(--frame-color-sub);
    border-radius: 4px;
}

.bug-filter-form {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bug-filter-form .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}

.bug-filter-form select {
    background: #171a21;
    color: #fff;
    border: 1px solid #3c4454;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.bug-filter-form select:focus {
    outline: none;
    border-color: var(--rime);
    box-shadow: none;
}

.bug-thread-header .thread-meta .translation-toggle-btn{
    display: inline-block;
    cursor: pointer;
    font-size: 0.8rem;
    position: absolute;
    right: 0;
    top: 30%;
    margin: 0;
}

.reply-btn {
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    color: #aaa;
}

.reply-btn:hover {
    color: var(--rime);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .bug-layout-container{
        gap: 20px;
    }
    .bug-layout-container {
        flex-direction: column;
        margin-top: 20px;
    }
    .bug-sidebar-btn{
        display: block;
        padding: 10px;
        background: var(--frame-color);
        border-radius: 2px;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    .bug-sidebar {
        width: 100%;
        padding: 10px;
        display: none;
    }
    .bug-sidebar > a{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .bug-sidebar > a .image{
        width: 25%;
        margin-bottom: 0;
    }
    .bug-sidebar > a .game-title{
        width: 72%;
        font-size: 1rem;
        margin-bottom: 0;
    }
    .sidebar-section{
        margin-top: 10px;
    }
    .sidebar-section ul{
        overflow-x: scroll;
        width: 100%;
        position: relative;
        display: flex;
        gap: 10px;
    }
    .sidebar-section li {
        word-break: keep-all;
        margin-bottom: 0;
    }
    .bug-main {
        width: 100%;
    }
    .bug-form-row{
        flex-direction: column;
    }
    .bug-form-group{
        width: 100%;
        margin: 10px auto;
    }
    .bug-form-group.title,
    .bug-form-group.platform{
        width: 100%;
    }
    .bug-form-group.image input{
        font-size: .75rem;
    }
    .bug-submit-btn, .comment-submit-btn{
        width: 100%;
        text-align: center;
    }
    .back-btn,
    .back-btn:visited{
        font-size: .8rem;
    }
}