﻿body {
    font-family: sans-serif;
}
.rank-name-san {
    font-size: 80%;
    margin-top: auto;
}
.li-content1102.top {
    overflow: visible;
}

    .li-content1102.top.rank1 {
        background: linear-gradient( 45deg, #F0DCAA 0%, #F7E89A 45%, #FFFBEA 70%, #F7E89A 85%, #F0DCAA 90% 100% );
        border: 3px solid rgba(255, 190, 70, 0.9);
        box-shadow: 0 4px 0 #d99a24, 0 14px 24px rgba(0, 0, 0, 0.16);
    }

    .li-content1102.top.rank2 {
        background: linear-gradient( 45deg, #CFCFCF 0%, #E4E4E4 45%, #F9F9F9 70%, #E4E4E4 85%, #CFCFCF 90% 100% );
        border: 3px solid rgba(180, 180, 180, 0.9);
        box-shadow: 0 4px 0 #9e9e9e, 0 14px 24px rgba(0, 0, 0, 0.16);
    }

    .li-content1102.top.rank3 {
        background: linear-gradient( 45deg, #E7C3A3 0%, #F1D1A8 45%, #FFF4E8 70%, #F1D1A8 85%, #E7C3A3 90% 100% );
        border: 3px solid rgba(205, 140, 90, 0.9);
        box-shadow: 0 4px 0 #a86b3c, 0 14px 24px rgba(0, 0, 0, 0.16);
    }
#installBtn {
    background: #2f84ff;
    color: white;
    border:none;
    border-radius: 20px;
    font-weight: 500;
    box-shadow:2px 2px 1px #3584bb
}
#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;
    }


.rank-namebox {
    display: flex;
    flex-direction: column;
    border-left: 1.5px solid #dc8d1b;
    gap: 10px;
    padding: 10px;
}

.title-wrapper {
    display: flex;
    flex-direction: column; /* 上から下 */
    background: #b7ddf3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0 30px 0;

}
html {
    scroll-behavior: smooth;
}
.border {
    background: #b7ddf3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.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;
}

footer {
    background-color: #CAE5CD;
}



/**
 * 画面幅が小サイズのとき
 */
@media (max-width: 799px) {
    .li-content1102.top {
        min-height: 100px;
    }
    .link {
        font-size: 12px;
    }
    .title-logo {
        width: 380px;
        margin: 0 -90px 0 -90px
    }
    .logo-bottom {

    }
    .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;
    }
    .border .chara {
        width: 70px;
        transform: translateY(46px);
        --fruit-y: 46px;
    }
    .title {
        /*文字の装飾*/
        font-size: 52px;
        text-align: center;
        line-height: 0.95em;
        color: #ff6666;
        display: flex;
        flex-direction: column;
        text-shadow: 0.05em 0.05em 0em #fff;
        font-family: "Cherry Bomb One", system-ui;
        font-weight: 400;
        font-style: normal;
        letter-spacing: 5px;
    }

    .title-ferver{
        font-size: 50px;
        margin-top:5px
    }

    .menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        right: -150%; /*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: #3584bb;
        transition: all 0.5s; /*アニメーション設定*/
    }

    .fruits-size {
        width: 48px;
        height: 48px;
    }

    .play-ranking-title {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-weight: bold;
        margin: 0;
        padding: 0;
        color: #ff3232;
        text-shadow: 0.1em 0.1em 0.1em rgba(0,0,0,1);
    }

    .play-ranking-fontsize {
        font-size: 20px;
        color: #fff;
        text-align: center;
        font-weight: bold;
    }

    .play-ranking-fontsize-container {
        margin-inline: 10px;
        line-height: 50px;
        position: relative;
        height: 50px;
        margin: 1em 50px 1em;
        display: inline-block;
        background: #fa4141;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        gap: 10px;
    }

    .fruits-size {
        width: 60px;
        height: 60px;
    }

    ul {
        list-style: none;
        width: 780px;

    }
    .li-content1102 {
        background: #fffde8;
        border-radius: 10px;
        margin: 25px 0px 25px 0px;
        padding: 0.5em 0.5em 0.5em 0.5em;
        border: 2px solid #dc8d1b;
        display: flex;
        align-items: center;
        border: 2px solid #dc8d1b;
        box-shadow: 0 4px 0 #d99a24, 0 14px 24px rgba(0, 0, 0, 0.16);
    }

    /*全体的なレイアウトの調整*/
    .rank-whole {
        display: flex;
        justify-content: center;
        margin-right: 30px;
    }

    .rank-content {
        display: flex;
        align-items: center; /*上下中央揃え*/
        width: 100%;
    }

    .rank-name {
        font-size: 16px;
        margin-left: 3px;
        text-align: left;
    }

    /*得点数を表示*/
    .rank-point {
        margin-right: 5px;
        font-size: 25px;
        font-family: "Aoboshi One";
        margin-left: auto;
        margin-right: 30px;
        top: 50%;
        left: 40%;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        padding: 0;
        margin: 0;
    }
    /*王冠の画像サイズ*/
    .crown-img {
        position: absolute;
        top: -100%;
        left: -45%;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        transform: rotate( -20deg );
        padding: 0;
        margin: 0;
        width: 40px;
    }

    /*ランキング順位文字の大きさ(top3)*/
    .top-number-img {
        width: 40px;
        margin-right:2px
    }

    /*ランキング順位文字の大きさ(3位以下 10位以上)*/
    .number-img {
        width: 40px;
        margin-right: 2px
    }

    /*ランキング11位以下*/
    .base-ranking-number {
        font-family: "Comic Sans MS";
        color: rgba(244,0,25,0.5);
        font-size: 30px;
        margin-right: 10px;
        text-shadow: 2px 2px 1px #fde3ff;
    }


    

    /*ランキング順位文字の大きさ(top3)*/
    .top-number-img {
        width: 40px;
        margin-right: 2px
    }

    /*ランキング順位文字の大きさ(3位以下 10位以上)*/
    .number-img {
        width: 40px;
        margin-right: 2px
    }


    /*現在表示されているランキングの日付*/

    /*現在表示されていないランキングの日付*/
    .data-button {
        display: inline-block;
        border-radius: 10px;
        font-weight: bold; /* 文字の太さ */
        text-align: center;
        font-size: 16px;
        padding: 5px;
        width: 25%;
        border: 2px solid #000;
        background: #fff; /* ボタン上色 */
        text-decoration: none;
        color: inherit;
        opacity: 0.5;
    }

        .data-button.active {
            display: inline-block;
            border-radius: 10px;
            font-weight: bold; /* 文字の太さ */
            text-align: center;
            font-size: 16px;
            padding: 5px;
            width: 25%;
            border: 2px solid #bdbdbd;
            background: #fa4141; /* ボタン上色 */
            opacity: 1.0;
            color: white;
            pointer-events: none;
        }

    /*ページトップへ移動するボタン*/
    .page-top {
        position: fixed;
        right: 10px;
        bottom: 70px;
        margin: 0;
        opacity: 0.7;
        transition: opacity 0.4s ease-in;
    }

        .page-top a {
            position: relative;
            display: flex;
            width: 40px;
            height: 40px;
            justify-content: center;
            background: rgb(255 166 80);
            transition: opacity .6s ease;
            color: #FFF;
            align-items: center;
            text-decoration: none;
            font-size: 20px;
            border-radius: 100%;
            z-index: 998
        }

    /*ページボトムへ移動するボタン*/
    .page-down {
        position: fixed;
        right: 10px;
        bottom: 10px;
        margin: 0;
        opacity: 0.7;
        transition: opacity 0.4s ease-in;
    }

        .page-down a {
            position: relative;
            display: flex;
            width: 40px;
            height: 40px;
            justify-content: center;
            background: rgb(255 166 80);
            transition: opacity .6s ease;
            color: #FFF;
            align-items: center;
            text-decoration: none;
            font-size: 20px;
            border-radius: 100%;
            z-index: 998
        }

    /*div.fadein-top {
        opacity: 0.7;
    }

    div.fadein-bottom {
        opacity: 0.7;
    }*/
}

/**
 * 画面幅が中サイズのとき
 */
@media (min-width: 800px) {
    .li-content1102.top {
        min-height: 160px;
    }
    .title-logo {
        width: 700px;
        margin: 0 -100px 0 -100px
    }
    .link {
        font-size: 20px;
    }
    .logo-bottom {
        margin-top: auto;
        border: none;
        padding: 60px 0 10px;
    }
    .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;
    }
    .border .chara {
        width: 130px;
        height: auto;
        margin: 5px;
        transform: translateY(70px);
        --fruit-y: 70px;
    }

    .title {
        font-size: 100px;
        text-align: center;
        line-height: 0.95em;
        color: #ff6666;
        display: flex;
        flex-direction: column;
        text-shadow: 0.05em 0.05em 0em #fff;
        font-family: "Cherry Bomb One", system-ui;
        font-weight: 400;
        font-style: normal;
        letter-spacing: 7px;
    }

    .title-ferver {
        font-size: 120px;
        margin-top: 5px;
    }



    .menu-content {
        width: 500px;
        height: 100%;
        position: fixed;
        top: 0;
        right: -150%; /*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: #3584bb;
        transition: all 0.5s; /*アニメーション設定*/
    }

    /*対戦ランキング*/
    .play-ranking-title {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-weight: bold;
        color: #ff3232;
        text-shadow: 0.1em 0.1em 0.1em rgba(0,0,0,1);
    }

    .play-ranking-fontsize {
        margin-inline: 30px;
        font-size: 35px;
        line-height: 60px;
        position: relative;
        height: 60px;
        margin: 1em 50px 1em;
        text-align: center;
        color: #fff;
        background: #fa4141;
        font-weight: bold;
    }

    .title-font {
        font-family: "Comic Sans MS";
        text-align: center;
        font-size: 1.5em;
        color: #F39A38;
    }

    .fruits-size {
        width: 100px;
        height: 100px;
    }

    ul {
        list-style: none;
        width: 780px;
    }

    .li-content1102 {
        background: #fffde8;
        border-radius: 10px;
        margin: 25px;
        border: 2px solid #dc8d1b;
        min-height: 160px;
        display: flex;
        align-items: center;
        border: 2px solid #dc8d1b;
        box-shadow: 0 4px 0 #d99a24, 0 14px 24px rgba(0, 0, 0, 0.16);
    }

    /*全体的なレイアウトの調整*/
    .ranking-list {
        border-spacing: 0 18px;
    }


    .rank-whole {
        display: flex;
        justify-content: center;
        margin-right: 0px;
        margin-top: 30px;
    }

    .rank-content {
        display: flex;
        align-items: center; /*上下中央揃え*/
        width: 100%;
    }

    .rank-name {
        font-size: 20px;
        margin-left: 3px;
        text-align: left;
    }

    /*得点数を表示*/
    .rank-point {
        margin-right: 30px;
        font-size: 35px;
        font-family: "Aoboshi One";
        margin-left: auto;
        margin-right: 30px;
        top: 50%;
        left: 40%;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        padding: 0;
        margin: 0;
    }

    /*王冠の画像サイズ*/
    .crown-img {
        width: 70px;
        height: auto;
        position: absolute;
        top: -63px;
        left: 10%;
        transform: translateX(-50%) rotate(-25deg);
        z-index: 3;
        /* 画像がセルの高さに影響しない */
        pointer-events: none;
    }

    /*ランキング順位文字の大きさ(top3)*/
    .top-number-img {
        width: 100px;
    }

    /*ランキング順位文字の大きさ(3位以下 10位以上)*/
    .number-img {
        width: 100px;
    }

    /*ランキング11位以下*/
    .base-ranking-number {
        font-family: "Comic Sans MS";
        color: rgba(244,0,25,0.5);
        font-size: 70px;
        margin-right: 10px;
        text-shadow: 2px 2px 1px #fde3ff;
    }


    /*現在表示されていないランキングの日付*/
    .data-button {
        display: inline-block;
        border-radius: 10px;
        font-weight: bold; /* 文字の太さ */
        text-align: center;
        font-size: 100%;
        padding: 15px;
        width: 25%;
        border: 2px solid #000;
        background: #fff; /* ボタン上色 */
        text-decoration: none;
        color: inherit;
        opacity: 0.5;
    }
        /*現在表示されているランキングの日付*/
        .data-button.active {
            display: inline-block;
            border-radius: 10px;
            font-weight: bold; /* 文字の太さ */
            text-align: center;
            font-size: 100%;
            padding: 15px;
            width: 25%;
            border: 2px solid #bdbdbd;
            background: #fa4141; /* ボタン上色 */
            opacity: 1.0;
            color: white;
            pointer-events: none;
        }

    /*ページトップへ移動するボタン*/
    .page-top {
        position: fixed;
        right: 10px;
        bottom: 70px;
        margin: 0;
        transition: opacity 0.4s ease-in;
    }

        .page-top a {
            position: relative;
            display: flex;
            width: 40px;
            height: 40px;
            justify-content: center;
            background: rgb(255 166 80);
            transition: opacity .6s ease;
            color: #FFF;
            align-items: center;
            text-decoration: none;
            font-size: 20px;
            border-radius: 100%;
        }

    /*ページボトムへ移動するボタン*/
    .page-down {
        position: fixed;
        right: 10px;
        bottom: 10px;
        margin: 0;
        transition: opacity 0.4s ease-in;
    }

        .page-down a {
            position: relative;
            display: flex;
            width: 40px;
            height: 40px;
            justify-content: center;
            background: rgb(255 166 80);
            transition: opacity .6s ease;
            color: #FFF;
            align-items: center;
            text-decoration: none;
            font-size: 20px;
            border-radius: 100%;
        }
}

/**
 * 画面幅が大サイズのとき
 */
@media (min-width: 1051px) {
    .li-content1102.top {
        min-height: 200px;
    }
    .link {
        font-size: 30px;
    }

    .link-container {
        display: flex;
        justify-content: center; /* 横方向の中央揃え */
        gap: 30px;
    }


    .title-logo {
        width: 1000px;
        margin: 0 -110px 0 -110px
    }
    .border .chara {
        width: 200px;
        height: auto;
        margin: 10px;
        transform: translateY(80px);
        --fruit-y: 80px;
    }

    .title {
        font-size: 120px;
        text-align: center;
        line-height: 0.95em;
        color: #ff6666;
        display: flex;
        flex-direction: column;
        text-shadow: 0.05em 0.05em 0em #fff;
        font-family: "Cherry Bomb One", system-ui;
        font-weight: 400;
        font-style: normal;
        letter-spacing: 7px;
    }

    .title-ferver {
        font-size: 120px;
        margin-top: 5px;
    }


    .menu-content {
        width: 500px;
        height: 100%;
        position: fixed;
        top: 0;
        right: -150%; /*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: #3584bb;
        transition: all 0.5s; /*アニメーション設定*/
    }

    /*対戦ランキング*/
    .play-ranking-title {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-weight: bold;
        font-size: 35px;
        color: #ff3232;
        text-shadow: 0.1em 0.1em 0.1em rgba(0,0,0,1);
    }

    .play-ranking-fontsize {
        margin-inline: 30px;
        font-size: 40px;
        line-height: 80px;
        position: relative;
        height: 80px;
        margin: 1em 80px 1em;
        text-align: center;
        color: #fff;
        background: #fa4141;
        font-weight: bold;
    }


    .fruits-size {
        width: 130px;
        height: 130px;
    }

    ul {
        list-style: none;
        width: 1100px;
        padding: 0;
        margin: 0;
    }

    .li-content1102 {
        background: #fffde8;
        border-radius: 10px;
        margin: 25px;
        padding: 0.5em;
        border: 2px solid #dc8d1b;
        display: flex;
        align-items: center;
        border: 2px solid #dc8d1b;
        box-shadow: 0 4px 0 #d99a24, 0 14px 24px rgba(0, 0, 0, 0.16);
    }

    /*全体的なレイアウトの調整*/
    .ranking-list {
        border-spacing: 0 18px;
    }

    .rank-whole {
        display: flex;
        justify-content: center;
        margin-right: 0px;
        margin-top: 30px;
    }

    @media (min-width: 1051px) {
        .rank-content {
            display: flex;
            align-items: center;
            width: 100%;
        }

        .rank-name {
            font-size: 25px;
            margin-left: 3px;
            text-align: left;
        }
    }

    /*得点数を表示*/
    .rank-point {
        margin-right: 30px;
        font-family: "Aoboshi One";
        margin-left: auto;
        margin-right: 30px;
        top: 50%;
        left: 40%;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        padding: 0;
        margin: 0;
        font-size: 50px;
    }

    /*王冠の画像サイズ*/
    .crown-img {
        width: 80px;
        height: auto;
        position: absolute;
        top: -70px;
        left: -10%;
        transform: translateX(-50%) rotate(-25deg);
        z-index: 3;
        /* 画像がセルの高さに影響しない */
        pointer-events: none;
    }

    /*ランキング順位文字の大きさ(top3)*/
    .top-number-img {
        width: 150px;
        
    }

    /*ランキング順位文字の大きさ(3位以下 10位以上)*/
    .number-img {
        width: 150px;
    }

    /*ランキング11位以下*/
    .base-ranking-number {
        font-family: "Comic Sans MS";
        color: rgba(244,0,25,0.5);
        font-size: 100px;
        text-shadow: 2px 2px 1px #fde3ff;
        margin: 10px
    }

    /*現在表示されていないランキングの日付*/
    .date-button {
        display: inline-block;
        border-radius: 10px;
        font-weight: bold; /* 文字の太さ */
        text-align: center;
        font-size: 100%;
        padding: 15px;
        width: 25%;
        border: 2px solid #000;
        background: #fff; /* ボタン上色 */
        text-decoration: none;
        color: inherit;
        opacity: 0.5;
    }
    /*現在表示されているランキングの日付*/
    .data-button.active {
        display: inline-block;
        border-radius: 10px;
        font-weight: bold; /* 文字の太さ */
        text-align: center;
        font-size: 100%;
        padding: 15px;
        width: 25%;
        border: 2px solid #bdbdbd;
        background: #fa4141; /* ボタン上色 */
        opacity: 1.0;
        color: white;
        pointer-events: none;
    }
}
.first-animation .border .chara {
    animation: fruitDropPon 0.9s both;
}

    /* 右側のフルーツだけ少し遅れて落ちる */
    .first-animation .border .chara:last-child {
        animation-delay: 0.08s;
    }

@keyframes fruitDropPon {
    0% {
        transform: translateY(calc(var(--fruit-y) - 190px));
        opacity: 0;
        animation-timing-function: ease-in;
    }
    42% {
        transform: translateY(var(--fruit-y));
        opacity: 1;
        animation-timing-function: ease-out;
    }
    56% {
        transform: translateY(calc(var(--fruit-y) - 28px));
        animation-timing-function: ease-in;
    }

    68% {
        transform: translateY(var(--fruit-y));
        animation-timing-function: ease-out;
    }
    80% {
        transform: translateY(calc(var(--fruit-y) - 13px));
        animation-timing-function: ease-in;
    }

    90% {
        transform: translateY(var(--fruit-y));
        animation-timing-function: ease-out;
    }
    /* 余韻 */
    96% {
        transform: translateY(calc(var(--fruit-y) - 4px));
    }

    100% {
        transform: translateY(var(--fruit-y));
        opacity: 1;
    }
}



.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);
    }