*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
    background:#0f1115;
    color:#ffffff;
    min-height:100vh;
}

header{
    background:#161a22;
    padding:20px;
    border-bottom:1px solid #252a36;
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    font-size:1.8rem;
    font-weight:700;
}

.subtitle{
    color:#8a90a2;
    margin-top:4px;
}

.search-area{
    margin-top:15px;
}

.search-box{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#252a36;
    color:#ffffff;
    font-size:1rem;
    outline:none;
}

.search-box:focus{
    border:1px solid #4a90e2;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:25px;
}

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.tag{
    background:#252a36;
    padding:10px 14px;
    border-radius:999px;
    transition:.2s;
    cursor:pointer;
}

.tag:hover{
    background:#3b4254;
}

.section-title{
    margin-bottom:20px;
    font-size:1.4rem;
}

.world-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

.world-card{
    background:#161a22;
    border:1px solid #252a36;
    border-radius:16px;
    overflow:hidden;
    transition:.2s;
}

.world-card:hover{
    transform:translateY(-3px);
    border-color:#4a90e2;
    cursor:pointer;
}

.world-image{
    width:100%;
    height:180px;
    object-fit:cover;
    background:#252a36;
}

.world-content{
    padding:15px;
}

.world-name{
    font-size:1.1rem;
    font-weight:700;
    margin-bottom:8px;
}

.world-author{
    color:#8a90a2;
    margin-bottom:12px;
}

.world-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.world-tag{
    background:#252a36;
    padding:5px 8px;
    border-radius:999px;
    font-size:.8rem;
}

footer{
    text-align:center;
    color:#8a90a2;
    padding:40px 20px;
    margin-top:40px;
}

/* 詳細ページ */

.back-button{
    display:inline-block;
    margin-bottom:20px;
    color:#4a90e2;
    text-decoration:none;
}

.world-header{
    background:#161a22;
    border:1px solid #252a36;
    border-radius:16px;
    overflow:hidden;
}

.world-header .world-image{
    width:100%;
    height:400px;
    object-fit:cover;
}

.world-description{
    line-height:1.8;
    margin-bottom:25px;
}

.stats{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.stat{
    background:#252a36;
    padding:12px 16px;
    border-radius:10px;
}

@media (max-width:768px){

    .container{
        padding:15px;
    }

    .world-header .world-image{
        height:250px;
    }

    .world-name{
        font-size:1rem;
    }

}