#appointment {
    background: #2f84ff;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.1s ease, color 0.1s
}

p {
    margin:0
}
.entry-box input {
    border-radius: 8px;
    outline:none;
}
    #appointment:disabled {
        background: #c6c6c6;
        color: #7a7a7a;
    }
    body {
        font-family: sans-serif;
    }

    #menu li:last-child {
        border-bottom: none;
    }

    .logo.open img {
        opacity: 1;
        pointer-events: auto;
        border-bottom: none !important;
        margin: 0
    }

    .logo img {
        position: fixed;
        top: 0px;
        left: 0px;
        opacity: 0;
        pointer-events: none; /* ←クリックできないように */
        transition: opacity 0.3s ease;
        box-sizing: border-box;
        list-style: none;
        z-index: 1000;
    }

.menu-icon {
    position: fixed;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    color: white;
    background: #333;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 20px;
}

    #menu li {
        text-align: center;
        font-family: "Zen Maru Gothic", system-ui;
        font-weight: 500;
        font-size: 23px;
        margin: 15px auto;
        width: fit-content;
        border-bottom: 1px solid #ccc; /* 薄い線 */
        padding-bottom: 10px;
        width: 80%;
    }
    /* メニュー（隠れてる状態） */
    #menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: #f3f0e9;
        opacity: 0;
        pointer-events: none; /* ←クリックできないように */
        transition: opacity 0.3s ease;
        margin: 0;
        padding: 80px 0 0;
        box-sizing: border-box;
        list-style: none;
        z-index: 999;
        display: flex;
        flex-direction: column;
    }
        /* 表示状態 */
        #menu.open {
            opacity: 1;
            pointer-events: auto;
        }
        /* メニュー項目 */
        #menu li a {
            display: block;
            padding: 15px;
            text-decoration: none;
            color: black;
        }

        #menu li.active {
            color: #cbcbcb;
            pointer-events: none;
        }


    .text-center {
        text-align: center;
    }

    .ranking-list {
        position: fixed; /* 常に画面に固定 */
        top: 0; /* 上端に配置 */
        left: 0;
        width: 100%;
        color: white;
        z-index: 1000; /* 他の要素より前面に */
    }

    form {
        /*    margin-top: 30px; */
    }

    #installBtn {
        background: #2f84ff;
        color: white;
        border: none;
        border-radius: 20px;
        font-weight: 500;
        box-shadow: 2px 2px 1px #3584bb
    }

    .text-right {
        text-align: right;
    }

    #status {
        width: 95%;
        table-layout: fixed;
        background: white;
        height: 37px;
        margin: auto;
    }

        #status th {
            background: #cfcfcf
        }

        #status tr {
            font-size: 12px;
            height: 37px
        }

    .entry-wrap {
        display: flex;
        justify-content: center;
    }

.entry-title {
    width: 100%;
    text-align: center;
    padding: 5px 0 5px 0;
    font-size: 24px;
    color: white;
    background: #3584bb;
    font-family: "Aoboshi One";
    border-radius: 10px 10px 0 0;
}

    .gamemode-title {
        text-align: center;
        width: 100%;
        border-radius: 30px;
        font-weight: 600;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.1em;
    }

    #right-username,
    #left-username {
        border: 0.5px solid black
    }

    .nameinput-box {
        display: flex;
    }

    .entry-container {
        display: flex;
        width: 95%;
        flex-direction: column;
        background: #ffffffd9;
        align-items: center;
        justify-content: center;
        border-radius:10px;
    }

    .entry-box {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        align-items: center;
       
    }

    .mode-select-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 85%;
    }

    footer {
        background-color: #CAE5CD;
    }

    body {
        /*背景を設定*/
        -webkit-appearance: none; /*iosデフォルトスタイルを適用しない*/
        background-image: url(../img/img_soro/kumo.png);
        height: 100vh;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        background-position: right;
        padding: 0;
        margin: 0;
    }



    input[type="radio"] {
        display: none;
    }
    /*ボタンを入れてる箱*/
    .button-box {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 93%
    }
    /*ボタンそのもの*/
    .mode-select {
        text-align: center;
        background-color: #ccc;
        border-radius: 10px;
        font-weight: 600;
        width: 95%;
        color: #404040;
        transition: transform 0.2s ease;
        border:1px solid #7a7a7a;
    }

    input[type="radio"]:checked + label {
        background-color: #ff3232;
        color: white;
        transform: scale(1.015);
    }


    .result {
        margin: 20px;
        background-color: #efefef;
        border: solid 1px black;
        min-height: 60px;
        width: 80%;
        text-align: center;
        font-size: 15px;
        pointer-events: none; /*ボタンクリックの判定を無効化している*/
    }

.player {
    background-color: #ff3232;
    color:white;
}


    .title-wrapper {
        display: flex;
        flex-direction: column; /* 上から下 */
        background: #b7ddf3;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0 30px 0;
    }

    .border {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    html {
        scroll-behavior: smooth;
    }

    .soro-background {
        /*背景を設定*/
        -webkit-appearance: none; /*iosデフォルトスタイルを適用しない*/
        background-image: url(../img/img_soro/kumo.png);
        height: 100vh;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        background-position: right;
        padding: 0;
        margin: 0;
    }


    .soro-background1102 {
        /*背景を設定*/
        -webkit-appearance: none; /*iosデフォルトスタイルを適用しない*/
        background-image: url(../img/img_vs/30304.png);
        height: 100vh;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        background-position: right;
        padding: 0;
        margin: 0;
    }

    .soro-background1103 {
        /*背景を設定*/
        -webkit-appearance: none; /*iosデフォルトスタイルを適用しない*/
        background-image: url(../img/img_vs/89909.png);
        height: 100vh;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        background-position: right;
        padding: 0;
        margin: 0;
    }



    .title-wrapper {
        display: flex;
        flex-direction: column;
        background: #b7ddf3;
        align-items: center;
        justify-content: center;
        padding: 15px 0 30px 0;
    }

    .border {
        background: #b7ddf3;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    /*画面幅 小gamen*/
    @media (max-width: 799px) {


        .mode-select {
            margin: 5px;
            padding: 20px 0 20px 0;
        }

        .gamemode-title {
            padding: 10px 0 10px 0;
            font-size: 21px;
        }

        #appointment {
            margin: 20px;
            width: 200px;
            font-size: 20px;
        }

        .character-size {
            width: 70px
        }

        .entry-box input {
            height: 36px;
            width: 93%;
        }

        .entry-box {
            margin: 10px
        }

        .subtitle {
            font-size: 20px;
            position: relative;
            top: 12px;
            color: #ff78f9;
            font-family: "Aoboshi One", system-ui;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 3px;
        }

        .title-logo {
            width: 380px;
            margin: 0 -90px 0 -90px;
        }

        .border .chara {
            width: 70px;
            transform: translateY(46px);
            --fruit-y: 46px;
        }
    }
    /*画面幅 中*/
    @media (min-width: 800px) {

        #appointment {
            margin: 20px;
            width: 300px;
            font-size: 20px;
        }

        .mode-select {
            margin: 5px;
            padding: 35px 0 35px 0;
            font-size: 20px
        }

        .gamemode-title {
            padding: 10px 0 10px 0;
            height: 50px;
            font-size: 30px;
        }

        .character-size {
            width: 150px;
            margin: 10px
        }

        .entry-box {
            margin: 25px
        }

            .entry-box label {
                font-size: 22px;
            }

            .entry-box input {
                height: 40px;
                width: 310px;
            }

        .subtitle {
            font-size: 40px;
            position: relative;
            top: 12px;
            color: #ff78f9;
            font-family: "Aoboshi One", system-ui;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 3px;
        }

        .title-logo {
            width: 700px;
            margin: 0 -100px 0 -100px;
        }

        .border .chara {
            width: 130px;
            height: auto;
            margin: 5px;
            transform: translateY(70px);
            --fruit-y: 70px;
        }
    }
    /*画面幅 大*/
    @media (min-width: 1051px) {
        #appointment {
            margin: 20px;
            width: 500px;
            font-size: 30px;
        }

        .character-size {
            width: 160px;
            margin: 10px
        }

        .entry-box {
            margin: 30px
        }

            .entry-box label {
                font-size: 25px;
            }

            .entry-box input {
                height: 50px;
                width: 400px;
            }

        .title-logo {
            width: 1000px;
            margin: 0 -110px 0 -110px;
        }

        .border .chara {
            width: 200px;
            height: auto;
            margin: 10px;
            transform: translateY(80px);
            --fruit-y: 80px;
        }
    }


    .menu-character {
        position: fixed;
        top: 400px;
        right: -150px;
        opacity: 0;
        z-index: 1000;
        pointer-events: none;
        border-bottom: none !important;
        transform: rotate(18deg);
        transition: right 0.5s cubic-bezier(.2, 1.2, .4, 1), opacity 0.25s ease, transform 0.5s cubic-bezier(.2, 1.2, .4, 1);
    }

        .menu-character img {
            width: 100px;
            height: auto;
            display: block;
        }
        /* 開いた状態 */
        .menu-character.open {
            right: -10px;
            opacity: 1;
            transform: rotate(-20deg);
        }