/* #region スターターパック */
html{
    margin: -8px;
    overflow: hidden;
    user-select:none;
}
body{
    width: 100vw;
    height: 100vh;
    margin: 0;
    white-space: nowrap;
    touch-action: none;
}
.row{
    display: flex;
    flex-direction: row;
}
.column{
    display: flex;
    flex-direction: column;
}
.hidden{
    opacity: 0;
    pointer-events: none;
}

img{
    -webkit-user-drag: none;
}
::-webkit-scrollbar{
    display: none;
}
:focus{
    outline: none;
}

/* #region nicotext */
.nicotext{
    position: fixed;
    top: 0;
    right: 0;
    background-color: #f0f8ff80;
    color: #000000;
    font-size: 20px;
    transition: right 2.0s linear;
    white-space: nowrap;
    pointer-events: none;
}
/* #endregion */

/* #region tobitext */
.tobitext{
    opacity: 1;
    padding: 4px 8px;
    background: rgba(0,0,0,0.72);
    border-radius: 8px;
    transform: translate(-50%, -50%) translateY(0px);
    white-space: nowrap;
    color: #ffffff;
    position: absolute;
    transition: none;
    z-index: 2147483647;
    pointer-events: none;
}
/* #endregion */


/* #region logとtext */
#log{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 320px;
    height: 24vh;
    border: 2px solid #ffffff;
     border-left: none;
    position: fixed;
    left: -334px;
    color: #fefefe;
    overflow-y: hidden;
    transition: left 1.0s ease;
    z-index: 10;
}
#log.tog{
    left: 54px;
}
#log .opener{
    width: 30px;
    height: 100%;
    background-color: #000000ef;
    text-align: center;
    cursor: pointer;
    z-index: inherit;
}
#log .log{
    width: 300px;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden; overflow-y: scroll;
    background-color: #000000de;
    text-align: left;
    font-size: 14px;
    transition: right 0.3s;
    z-index: inherit;
}
#text{
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;

    white-space: nowrap;
    overflow: hidden;
    width: fit-content; /* 文字の長さに応じた幅 */
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
/* #endregion */

/* #region description */
#mobileDesc{
    display: none;
    position: fixed;
    pointer-events: none;
    background-color: #363636e2;
    color: #f0f8ff;
    text-align: left;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 256;
}
#mobileDesc.show{
    display: block;
}
/* #endregion */

/* #region tk */
.tk{
    position: fixed;
}
.tk.mostop{
    z-index: 2147483647;
}
.tk.cenXY{
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.tk.cenX{
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.tk.cenY{
    top: 50% !important;
    transform: translateY(-50%) !important;
}
/* #endregion */

水色 #f0f8ff, #eaf5ff, #def0ff, #cfe9ff, #b5dcff
紫色 #f8f6ff, #f5f2ff, #f1edff, #ece8ff, #e9e4ff
橙色 #fffaf3, #fff7eb, #fff3e2, #fff0d9, #ffeccf
緑色 #f6fff2, #eeffe7, #e6ffdc, #ddffd0, #d4ffc3

#template{
    /* 順番だけ */
    margin-top: 5px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100px;
    height: 100px;
    /* aspect-ratio: 1/1; */
    padding: 5px;
    background-color: #f0f8ff;
    border: 1px solid #000000;
    color: #000000;
    font-size: 12px;
    position: fixed;
    top: 0;
    left: 0;
    animation: fadeIn 0.5s ease forwards;
    z-index: 999;
    margin-right: 5px;
    margin-bottom: 5px;
}
/* #endregion */

#main{
    display: block;
    width: 100vw;
    height: 100vh;
    background: var(--back-color);
    position: fixed;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}
#main.ban{
    pointer-events: none;
}
/* #fff4ca #ffefaf #ffe98f */
#main .area{
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 30px 0;
    background: var(--back-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}
#main .area.show{
    display: flex;
}

/* #region title */
#title{
    content: "title";
}
#title .column{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 70%;
    height: fit-content;
}
#title .column .col{
    width: fit-content;
    position: relative;
    text-align: center;
    font-size: 42px;
    font-family: cube12;
    color: var(--back-font);
}
#title .column .col.title{
    font-size: 52px;
    font-family: misaki;
    margin-bottom: 10px;
}
#title .column .col:not(.title):hover::after{
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: var(--back-under);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: underLine 0.5s ease forwards;
}
@keyframes underLine {
    0%{width: 0%}
    100%{width: 100%}
}
/* #endregion */

/* #region select */
#select{
    content: "select";
}
#select .list{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 65%;
    height: fit-content;
}
#select .list .sele{
    width: 100%;
    transition: max-height 0.5s ease;
    box-sizing: border-box;
}
#select .list .sele .upper{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    aspect-ratio: 6/1;
    border-radius: 15px 15px 0 0;
    padding: 0 20px;
    background: #949494;
    z-index: 4;
}
#select .list .sele .upper .name{
    font-size: 35px;
    font-family: cube12;
}
#select .list .sele .upper .column{
    text-align: right;
}
#select .list .sele .upper .column div{
    font-size: 18px;
}
#select .list .sele .under{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-height: 0;
    padding: 5px 10px;
    background: #b2b2b2;
    transition: max-height 0.5s ease;
    will-change: max-height;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 3;
}
#select .list .sele.tog .under{
    max-height: 100%;
}
#select .list .sele .under .desc{
    font-size: 16px;
}
#select .list .sele .under .start{
    display: block;
    opacity: 0;
    background: #8e8e8e;
    border-radius: 5px;
    font-size: 20px;
    padding: 5px;
    color: #e0e0e0;
    transition: opacity 0.5s ease;
}
#select .list .sele.tog .under .start{
    opacity: 1;
}
/* #endregion */

/* #region play */
#play{
    content: "play";
}
#play .upper{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    color: #000000;
    font-size: 40px;
    font-family: cube12;
    z-index: 3
}
#play .main{
    display: block;
    width: 65%;
    aspect-ratio: 1/1;
    padding: 0 20px;
    margin: 0 auto;
    z-index: 3;
}
#play .main .dots{
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30%;
    width: 100%;
    height: 100%;
}
#play .main .dots .mar{
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--play-back0);
    border: 5px solid var(--play-bor);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    /* overflow: hidden; */
}
    /* クリックされたとき、波紋状にborderの色で波が広がるanimation */
#play .main .dots .mar.hamon::after,
#play .main .dots .mar.hamon2::before{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #00000000;
    border: 5px solid var(--play-bor);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: ripple 0.3s ease forwards;
    box-sizing: border-box;
}
@keyframes ripple {
    0%{transform: scale(1); opacity: 1}
    100%{transform: scale(2); opacity: 0}
}
#play .main .dots .mar.tog{
    background: var(--play-back)
}

#play .main .nums{
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
}
/* #endregion */
