 @font-face {
        font-family: 'Font';
        src: url('ShimbashiGothic-Regular.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }
        body {
            margin: 0;
            background-color:#163c60;
            font-family: 'Font', sans-serif;
        }

.youkoso {
    max-width: 680px;
    height: auto;
}

.menu {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 30px;
}

.menu-item {
    display: block;
    font-size: 20px;
    width: 200px;
    height: 70px; 
    background-color: #b0aaa1;
    color: #163c60;
    text-decoration: none;
    border-radius: 8px;
    
    padding: 22px;
    box-sizing: border-box;
}

.menu-item:hover {
    background-color: #927248;
    color: #b0aaa1;
}

.news {
    position: relative;
    max-width: 900px;
    margin: 40px auto 10px;
    background-color: #b0a99f;
    border-radius: 12px;
    
    text-align: left;
    font-size: 20px;
    line-height: 1.2;
    box-sizing: border-box;

    padding-left: 110px;
    padding-top: 40px;
    padding-bottom: 70px;
}

.news-illustration {
    position: absolute;
    width: 230px;
    height: auto;
    right: 60px; 
    bottom: 40px;
}

.news-title {
    color: #163c60;
    font-size: 28px;
}

.rule {
    position: relative;
    max-width: 900px;
    margin: 30px auto 10px;
    background-color: #b0a99f;
    border-radius: 12px;
    
    text-align: left;
    font-size: 20px;
    line-height: 1.2;
    box-sizing: border-box;

    padding-left: 110px;
    padding-right: 110px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.rule-title {
    color: #163c60;
    font-size: 45px;
    text-align: center;
}

.biao {
    color: #163c60;
    font-size: 28px;
}

.character {
    position: relative;
    max-width: 750px;
    margin: 40px auto 10px;
    border-radius: 12px;
    
    text-align: left;
    font-size: 30px;
    box-sizing: border-box;

}

.naoka {
    position: absolute;
    cursor: pointer;
}

.naoka_1 {
    width: 800px;
    height: auto;
}

.panel-1 {
    top: 0%;
    left: 0%;
    width: 27%; 
    height: 100%;
}

.panel-2 {
    top: 0%;
    left: 27%;
    width: 24%;
    height: 100%;
}

.panel-3 {
    top: 0%;
    left: 51%;
    width: 24%;
    height: 100%;
}

.panel-4 {
    top: 0%;
    left: 75%;
    width: 25%;
    height: 100%;
}

.tachie {
    position: absolute;
    width: 390px;
    height: auto;
    left: 180px; 
    top: 230px;
}

.tachie_02 {
    position: absolute;
    width: 390px;
    height: auto;
    left: 150px; 
    top: 230px;
}

.tachie_03 {
    position: absolute;
    width: 390px;
    height: auto;
    left: 180px; 
    top: 230px;
}

.tachie_04 {
    position: absolute;
    width: 390px;
    height: auto;
    left: 180px; 
    top: 230px;
}

.tachie_1 {
    width: 390px;
    height: auto;
}

.tachie_2 {
    width: 390px;
    height: auto;
}

.name {
    position: relative;
    text-align: center;
    width: 400px;
    height: auto;
    margin-left: 540px;
    margin-top: 50px;
    font-size: 45px;
}

.shoukai {
    position: relative;
    background-color:#beb8af;
    width: 390px;
    border-radius: 20px;
    padding-left: 50px; 
    padding-right: 120px;
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 22px;
    margin-left: 530px;
    line-height: 1.0;
}

.ongen {
    position: relative;
    background-color:#beb8af;
    width: 390px;
    border-radius: 20px;
    padding-left: 50px; 
    padding-right: 120px;
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 22px;
    margin-left: 530px;
    margin-top: 40px;
    line-height: 1.0;
}

.download {
    position: absolute;
    width: 52px;
    height: auto;
    right: 320px; 
    bottom: 93px;
}

.play {
    position: absolute;
    width: 180px;
    height: auto;
    right: 110px; 
    bottom: 40px;
}

.play2 {
    position: absolute;
    width: 180px;
    height: auto;
    right: 160px; 
    bottom: 40px;
}

.link {
    background-color: #b0aaa1;
    border-radius: 20px;
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 90px 0px;
    max-width: 1000px;
    margin: 30px auto;
    padding-top: 90px;
    padding-bottom: 90px;
}

.link-card {
    width: 28%;             
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.link-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 5px;
}

.link-card h3 {
    font-size: 20px;
    color: #163c60; 
    margin: 0;
    font-weight: 500;
}

.link-card p {
    font-size: 14px;
    color: #385b7c;
    margin: 5px 0;
}

.link-card:hover {
    transform: translateY(-8px);
}


.footer {
    position: relative;
    text-align: center;
    width: 100%;
    height: auto;
    color: #b0aaa1;
    font-size: 15px;
    padding: 30px;
    padding-top: 70px;
}

@media screen and (max-width: 768px) {
    .youkoso {
        width: 380px;
        height: auto;
    }

    .menu {
        display: flex;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 15px;
    }
    
    .menu-item {
        font-size: 8px;
        width: 100px;
        height: 40px;   
        padding: 13px;
    }

    .news {
        margin: 10px 15px;
        text-align: left;
        font-size: 13px;
        padding-left: 40px;
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-illustration {
        position: absolute;
        width: 0px;
        height: auto;
        right: 60px; 
        bottom: 40px;
    }

    .rule {
        margin: 10px 15px;
        text-align: left;
        font-size: 15px;
        padding-left: 50px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .rule-title {
        font-size: 0px;
        text-align: center;
    }

    .biao {
        font-size: 23px;
    }

    .naoka {
        max-width: 380px;
    }

    .naoka_1 {
        width: 380px;
        height: auto;
    }

    .tachie {
        left: 50px;
        top: 180px;
    }

    .tachie_02 {
        left: 35px;
        top: 150px;
    }

    .tachie_03 {
        left: 40px;
        top: 180px;
    }

    .tachie_04 {
        left: 50px;
        top: 150px;
    }

    .tachie_1 {
        width: 300px;
        height: auto;
    }

    .tachie_2 {
        width: 320px;
        height: auto;
    }

    .shoukai, .ongen {
        box-sizing: border-box; 
    }

    .name {
        font-size: 36px;
        margin: 20px auto; 
        text-align: center;
        top: 570px !important;
    }

    .shoukai {
        font-size: 18px;
        top: 550px !important;
        width: 90%;
        max-width: 400px;
        margin: 15px auto;
        padding: 20px;
    }

    .ongen {
        font-size: 18px;
        top: 550px !important;
        width: 90%;
        max-width: 400px;
        margin: 15px auto;
        padding: 20px;
    }

    .download {
        width: 40px;
        height: auto;
        right: 160px; 
        bottom: 80px;
    }

    .play {
        width: 140px;
        height: auto;
        right: 23px; 
        bottom: 28px;
    }

    .play2 {
        width: 140px;
        height: auto;
        right: 60px; 
        bottom: 28px;
    }

    .link {
        padding: 70px 15px;   
        gap: 50px 15px;       
        margin: 15px 10px;   
        border-radius: 15px; 
    }

    .link-card {
        width: 46%;          
        min-width: unset;
        margin-bottom: 0;    
    }

    .link-card img {
        width: 90px;
        height: 90px;
    }

    .link-card h3 {
        font-size: 17px;
    }

    .link-card p {
        font-size: 13px;
    }

    .footer {
        font-size: 13px;
        padding: 20px;
        padding-left: 3px;
        top: 550px;
    }

}
