@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Mochiy+Pop+One&family=Noto+Sans+JP:wght@100..900&family=Yusei+Magic&display=swap');

body{
    margin: 0px;
    background-color: #f7f7f7;
    max-height: 100dvh;
    overflow-y: scroll;
}
.errorbox{
    position: fixed;
    margin: 0px;
    top:0;
    left: 0;
    right: 0;
    z-index: 99999;
}
.err {
    position: absolute;
    animation: slideDown 5.0s ease-in-out forwards;
    margin-top: 32px;
    margin-right: auto;
    margin-left: auto;
    right: 0;
    left: 0;
    width: fit-content;
    height: 24px;
    z-index: 99999;
    color: #FFFFFF;
    background-color: #FF4848;
    border-radius: 20px;
    box-shadow: 0 0px 48px 0 rgba(0, 0, 0, .3);
    text-decoration: none;
    padding: 2px 6px 0 6px;
    font-family: "Inter", "BIZ UDPGothic", sans-serif;
}
@keyframes slideDown {
    0%, 100% { transform: translateY(-40dvh); }
    20%, 90% { transform: translateY(0px); }
}

.top_bar{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background-color: #FFFFFF;
    border-bottom:solid 1px #DDDDDD;
}
.top_bar a{
    width: fit-content;
    height: 48px;
}
.top_bar a img{
    flex: 1;
    width: 155px;
    height: 48px;
    margin-left: 16px;
}
.top_bar .search_box{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 20%;
}
.top_bar .search_box input{
    background-color: #F7F7F7;
    border-radius: 50px;
    border: solid 1px #DDD;
    color:#171717;
    width: calc(100% - 80px);
    height: 32px;
    padding-left: 8px;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    transition: all 250ms ease-in-out;
    margin: 4px 0px;
}
.top_bar .search_box input:focus {
    outline: none;
    border: 1px solid #ffcf00;
}
.top_bar .search_box button{
    width: fit-content;
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    border-radius: 50px;
    margin: auto auto auto 8px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 18px;
    text-align: center;
    color:#171717;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}

.top_bar .right_box{
    max-width: 10%;
    display: block;
    overflow: hidden;
    padding-right: 16px;
}
.top_bar .right_box a{
    display: block;
    height: fit-content;
    font-size: 12px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
    text-decoration: none;
}
main{
    width: 60%;
    min-width: 1120px;
    margin: 64px auto 0px auto;
}
main .flexbox{
    display: flex;
}
main h1{
    font-size: 32px;
    font-family: "Yusei Magic", sans-serif;
    font-weight: normal;
}
main .upload{
    max-width: 100%;
    height: fit-content;
    background-color: #FFFFFF;
    border: solid #DDDDDD 1px;
    border-radius: 15px;
}
main .upload .inner{
    margin: 16px;
    display: flex;
    width: calc(100% - 32px);
}
main .upload .inner .left{
    display: flex;
    flex-direction: column;

    margin-left: 0px;
    margin-right: auto;
    width: calc(70% - 8px);
}
main .upload .inner .right{
    display: flex;
    flex-direction: column;
    
    margin-left: auto;
    margin-right: 0px;
    width: calc(30% - 8px);
}
main .p2{
    font-size: 14px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #CCCCCC;
    margin: 0px 0px 2px 0px;
}
main .comment_p{
    font-size: 14px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
    margin: 6px 0px 2px 0px;
}
main .upload input{
    background-color: #F7F7F7;
    border-radius: 7px;
    border: solid 1px #DDD;
    color:#171717;
    width: calc(100% - 32px);
    height: 24px;
    padding-left: 8px;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    transition: all 250ms ease-in-out;
    margin: 8px 0px;
}
main .upload #time{
    margin-left: 16px;
    width: 64px;
}
main .upload input:focus {
    outline: none;
    border: 1px solid #ff3232;
}
main .upload textarea{
    resize: vertical;
    background-color: #F7F7F7;
    border-radius: 7px;
    border: solid 1px #DDD;
    color:#171717;
    width: calc(100% - 18px);
    height: auto;
    field-sizing: content;
    padding: 4px 8px;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    transition: all 250ms ease-in-out;
    margin: 8px 0px;
}
main .upload textarea:focus {
    outline: none;
    border: 1px solid #ffcf00;
}
main .upload .mojicnt{
    margin-top: 0px;
    text-align: right;
    font-size: 14px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
}
main .upload .red{
    color: #ff3232;
}

main .upload .tag-container {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #DDD;
    background-color: #f7f7f7;
    padding: 5px;
    border-radius: 7px;
    width: calc(100% - 12px);
}
main .upload .tag {
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    border-radius: 50px;
    padding: 2px 8px;
    margin: 4px;
    display: flex;
    align-items: center;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color:#171717;
}
main .upload .tag span {
    margin-right: 5px;
}
main .upload .tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    align-items: center;
    display: flex;
    padding: 0px;
}
main .upload .tag button svg{
    padding: 0px;
}
main .upload .tag-input {
    border: none;
    flex-grow: 1;
    padding: 5px;
    outline: none;
    width: auto;
    transition: none;
    height: fit-content;
    margin: 3px 0px;
}
main .upload .tag-input:focus {
    border: none;
    outline: none;
}
main .upload .upload_last{
    margin-top: auto;
}
main .upload .upload_btn{
    margin-top: auto;
    margin-left: auto;
    margin-right: 0px;
}
main .upload .upload_btn button{
    width: fit-content;
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    border-radius: 50px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 18px;
    color:#171717;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}
main .upload .upload_btn button:disabled{
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    color:#DDD;
}
main .upload .terms_privacy{
    display: none;
}

main .everyone_good{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
main .videoblock{
    margin: 8px 0px;
    width: calc((100% - 48px) / 4);
    overflow: hidden;
    overflow-wrap: anywhere;
}
main .preview{
    margin: 8px 0px -8px 0px;
    width: 100%;
}
main .sort_select{
    width: 100%;
    display: flex;
    height: 48px;
}
main .sort_select .sort_btn{
    margin: 8px 8px 8px 0px;
    border-radius: 32px;
    border: solid 1px #DDDDDD;
    height: 32px;
    background-color: #FFFFFF;
    color: #171717;
    padding: 0px 12px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 14px;
    transition: all 250ms ease-in-out;
}
main .sort_select .sort_btn:hover{
    border: solid 1px #171717;
}
main .sort_select .selected{
    background-color: #171717;
    border: solid 1px #171717;
    color: #FFFFFF;
}
main .videoblock .thumbnail{
    width: 100%;
    cursor: pointer;
}
main .videoblock .thumbnail img{
    width: 100%;
    border-radius: 10px;
}
main .videoblock .goodpoint{
    font-size: 20px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
}
main .videoblock .flexbox{
    width: 100%;
    margin: 8px 0px;
}
main .videoblock .time{
    display: flex;
    justify-content: center;
    width: 30%;
    height: 38px;
    background-color: #171717;
    margin-left: auto;
    margin-right: 0px;
    border-radius: 10px;
}
main .videoblock .time p{
    color:#F7F7F7;
    text-decoration: none;
    text-align: center;
    margin: auto;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 20px;
}
main .videoblock .tags{
    flex-wrap: wrap;
    display: flex;
    max-width: 70%;
    width: fit-content;
}
main .videoblock .tags .tag_v{
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    border-radius: 50px;
    padding: 2px 8px;
    margin: 4px 4px 4px 0px;
    display: flex;
    align-items: center;
    font-family: "Inter", "Noto Sans JP", sans-serif;
}
main .videoblock .tags .tag_v a{
    color:#171717;
    text-decoration: none;
}
main .videoblock .datetime{
    width: fit-content;
    max-width: 60%;
}
main .videoblock .datetime p{
    margin: 6px 0px;
    font-size: 14px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
}
main .videoblock .favorite{
    max-width: 40%;
    margin-left: auto;
    margin-right: 0px;
}
main .videoblock .favorite button{
    width: fit-content;
    background-color: #FFFFFF;
    border:solid 1px #DDD;
    border-radius: 50px;
    padding: 4px 10px;
    margin: 0px;
    display: flex;
    align-items: center;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 18px;
    color:#171717;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}
main .videoblock .favorite button svg{
    fill: currentColor;
    width: 20px;
    height: 20px;
    margin-right: 4px;
}
main .videoblock .favorite .fav_after{
    background-color: #FFFFFF;
    border:solid 1px #ff4060;
    color:#ff4060;
}

main .videoblock .favorite .fav_after svg{
    fill: currentColor;
}

main .loading{
    display: block;
    width: 100%;
    margin: 32px auto;
    text-align: center;
    padding-bottom: 32px;
}
main .loading p{
    font-family: "Yusei Magic", sans-serif;
    font-size: 14px;
    font-weight: normal;
}
main .loading img{
    width: 64px;
    height: 64px;
    border-radius: 64px;
    overflow: hidden;
}

main .modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    z-index: 9999;
    transition: all 250ms ease-out;
}
.modal .window{
    padding: 0px;
    border-radius: 15px;
    width: 60%;
    min-width: 1120px;
    height: 75dvh;
    background-color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    box-shadow:0 0px 48px 0 rgba(0, 0, 0, .15);
    overflow: hidden;
    cursor: auto;
    padding: 16px;
}
.modal .window .flexbox{
    display: flex;
    width: 100%;
    height: 64px;
}
.modal .window .flexbox .left{
    display: block;
    width: 60%;
}
.modal .window .flexbox .right{
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: 0px;
}
.modal .window .flexbox .right button{
    width: fit-content;
    height: calc(100% - 16px);
    background-color: transparent;
    border: solid 1px #FFFFFF;
    border-radius: 8px;
    margin: 0px;
    display: flex;
    align-items: center;
    color:#171717;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}
.modal .window .flexbox .right button svg{
    fill: currentColor;
    width: 32px;
    height: 32px;
}
.modal .window .flexbox .right .del:hover{
    background-color: #ff3232;
    border: solid 1px #FFFFFF;
    color:#FFFFFF;
}

.modal .window p{
    margin: 6px 0px;
    font-size: 20px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: #171717;
}
.modal .window .video_zone{
    position: relative;
    width:100%;
    height: calc(100% - 64px);
}
.modal .window .video_zone iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.modal .warning_window{
    padding: 0px;
    border-radius: 15px;
    width: fit-content;
    height: fit-content;
    background-color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    box-shadow:0 0px 48px 0 rgba(0, 0, 0, .15);
    overflow: hidden;
    cursor: auto;
    padding: 16px;
}

.modal .warning_window h1{
    margin: 6px 0px;
    font-size: 24px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: bold;
    color: #171717;
}
.modal .warning_window p{
    margin: 6px 0px;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: normal;
    color: #171717;
}
.modal .warning_window textarea{
    width: calc(100% - 16px);
    border: solid 1px #DDDDDD;
    border-radius: 8px;
    height: 20dvh;
    padding: 8px;
    outline: none;
}
.modal .warning_window .flexbox{
    display: flex;
    width: fit-content;
    margin-top: 16px;
    margin-left: auto;
    margin-right: 0px;
}
.modal .warning_window .flexbox button{
    width: fit-content;
    height: auto;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 2px 12px 4px 12px;
    margin-left: 16px;
    display: flex;
    align-items: center;
    color:#171717;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: normal;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}
.modal .warning_window .flexbox button:hover{
    background-color: #171717;
    color: #F7F7F7;
}
.slideUp {
    animation: SlideUp .3s ease-out forwards;
    }
.slideDown {
    animation: SlideDown .15s ease-in-out forwards;
}
@keyframes SlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%,-25%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%,-50%);
    }
}
@keyframes SlideDown {
    0% {
        opacity: 1;
        transform: translate(-50%,-50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%,-25%);
    }
}

.docs{
    width: 100%;
    height: fit-content;
    margin-bottom: 64px;
}
.docs h1{
    width: fit-content;
    font-size: 64px;
    font-family: "Yusei Magic", sans-serif;
    font-weight: normal;
    margin: 16px 0px;
}
.docs h2{
    width: fit-content;
    font-size: 32px;
    font-family: "Yusei Magic", sans-serif;
    font-weight: normal;
    margin: 16px 0px;
}
.docs p{
    width: fit-content;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: normal;
    margin: 16px 0px;
}
.docs a{
    width: fit-content;
    font-size: 16px;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-weight: normal;
    margin: 16px 0px;
    color:#ff3232;
    text-decoration: none;
}

@media screen and (max-width: 1120px) {

    .top_bar{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    
        position: fixed;
        top: 0;
        width: 100%;
        height: 48px;
    }
    .top_bar a{
        width: fit-content;
        height: 48px;
    }
    .top_bar a img{
        flex: 1;
        width: 155px;
        height: 48px;
        margin-left: 16px;
    }
    .top_bar .search_box{
        display: flex;
        flex-direction: row;
        align-items:flex-end;
        width: 60%;
        margin-right: 16px;
    }
    .top_bar .right_box{
        display: none;
    }
    main{
        width: calc(100% - 32px);
        min-width: calc(100% - 32px);
        margin: 64px 16px;
    }
    
    main .flexbox{
        display: flex;
    }
    main .upload{
        width: 100%;
        height: fit-content;
    }
    main .upload .inner{
        margin: 16px;
        display: flex;
        width: calc(100% - 32px);
    }
    main .upload .inner .left{
        display: flex;
        flex-direction: column;

        margin-left: 0px;
        margin-right: 0px;
        width: 100%;
    }
    main .upload .inner .right{
        display: none;
    }
    main .upload .terms_privacy{
        display: block;
    }
    main .upload .terms_privacy a{
        height: fit-content;
        font-size: 14px;
        font-family: "Inter", "Noto Sans JP", sans-serif;
        color: #ffcf00;
        text-decoration: none;
    }
    main .upload .terms_privacy .r{
        color: #ff3232;
    }

    main .comment_p{
        max-width: 78%;
    }

    main .everyone_good{
        width: 100%;
        display: block;
    }
    main .videoblock{
        margin: 16px 0px;
        width: 100%;
    }

    .modal .window{
        width: calc(100% - 32px);
        min-width: calc(100% - 32px);
        height: 100dvh;
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, 0%);
    }
    .modal .window .flexbox {
        display: flex;
        width: 100%;
        height: auto;
    }
    .modal .window .video_zone{
        width:100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .modal .window .video_zone iframe{
        position: static;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .modal .warning_window{
        width: 80%;
        height: fit-content;
    }
}