@charset "utf-8";
*{
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}
body{
    line-height: 1;
    background-color: #ccc;
    background-image: repeating-linear-gradient(-45deg, #888, #888 10vw, transparent 10vw,transparent 20vw);
    min-height: 100vh;
}
/*index*/
.titlebox{
    background:  #fd0 url(../img/splakun.png) no-repeat center center;
    background-size: contain;
    text-align: center;
    line-height: 2;
}
.title{
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    font-size: 25px;
}

.subtitle{
    text-align: center;
    display: block;
    background: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 22px;
}

#hitokoto{
    background: #fff;
    text-align: center;
    line-height: 1.4;
    font-size: 11px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}
.links{
    background: #fff;
    text-align: center;
    line-height: 1.4;
    font-size: 11px;
    border-bottom:  1px solid #000;
    margin-bottom: 10px;
}

.search form{
    display: flex;
}
.search form input,.search form p{
    display: block;
    margin: auto;
}
.search form input,.search form p button{
    border:2px solid #000;   
    box-sizing: border-box; 
}
.search form input{
    width: 60%;
    border-radius: 0;
}
.search form p button{
    background: #44f;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.gomake, .gotop,#reload{
    text-align: center;
    width: 50vw;
    background: #fd0;
    margin: 10px auto 0;
    border:2px solid #000;
    box-sizing: border-box;
}
.gomake a,.gotop a,#reload{
    display: block;
    text-decoration: none;
    font-size: 18px;
    line-height: 2;
    color: #000;
}
#reload{
    margin-bottom: 30px;
}
.gotoplast{
    margin-bottom: 30vh;
}

.alltag{
    background: #fff;
}
.tag0{
    background: #aaa;
}
.tag1{
    background: #1ffcba;
}
.tag2{
    background: #f5490f;
}
.tag3{
    background: #cff522;
}
.tag4{
    background: #a71ee2;
}
.tag5{
    background: #f2842d;
}
.tag6{
    background: #dcbd0a;
}
.tag7{
    background: #49d67d;
}
.tag8{
    background: linear-gradient(90deg,#8645e0, #f2d82c);
}
.tag9{
    background: #fd0;
}
.tag10{
    background: linear-gradient(350deg,#49d67d 40%, #f2842d 60%);
}
.tag-1{
    background: linear-gradient(to right,#de4141,#e8ac51,#f2e55c,#39a869,#4784bf,#5d5099,#a55b9a);
}
.tag-2{
    background: linear-gradient(0deg,#aaa 20%, #555 80%);
}

#gotags{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 3vw 0 1vw;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-top:2px solid #000;
    border-bottom:2px solid #000;
}
#gotags li{
    text-align: center;
    width: calc(100% / 3);
}
#gotags li p{
    margin: 0 1vw 2vw 1vw;
}
#gotags li p a{
    display: block;
    font-size: 13px;
    line-height: 2;
    width: auto;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    box-sizing: border-box;
    border-radius: 10vw;
    border:2px solid #000;
}
#gotags li p a:hover{
    border:2px solid #fff;
}
.tagname{
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

#threads{
    list-style: none;
    display: block;
    width: fit-content;
    max-width: 90vw;
    margin: 0 0 50px auto;
    overflow: hidden;
}
#threads li{
    background: rgba(255,255,255,0.8);
    padding: 3px 0 3px 5vw;
    margin-bottom: 5px;
    margin-left: 5vw;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
    box-sizing: border-box;
    width: 95vw;
}
#threads li h3 a{
    display: block;
    line-height: 1.2;
    font-size: 15px;
    text-decoration: none;
    font-weight: normal;
    width: 75vw;
    word-break: break-all;
    font-weight: bold;
}
#threads li h3 a:hover{
    text-decoration: underline;
}
#threads li div{
    display: flex;
}
#threads li div p{
    line-height: 1.5;
    border-radius: 10vw;
    font-size: 11px;
    text-align: center;
}
#threads li div p:first-child{
    width: 25vw;
    padding: 0 3vw;
    height: 16.5px;
}
#threads li div p:nth-child(2){
    width: 35vw;
    color: #888;
    font-size: 10px;
}
#threads li div p:last-child{
    width: 10vw;
    color: #000;
}

.pagination{
    display: flex;
    flex-wrap: wrap;
}
.pagination a {
    padding: 5px 10px;
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
    background: #f1f1f1;
    border-radius: 5px;
    font-size: 15px;
    margin-top: 10px;
}
.pagination a:hover {
    background-color: #fa0;
}

.pagination strong {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
}

/*thread*/
#room{
    position: relative;
}
#room header{
    background: #fd0;
}
#room header h1{
    font-size: 26px;
    display: block;
    text-align: left;
    line-height: 1.4;
    padding: 8px 20px;
    margin-bottom: 10px;
    font-weight: bold;
    word-break: break-all;
}

.resbtns{
    display: flex;
    margin-top: 10px;
}
.resbtns button{
    display: block;
    margin: 0 auto;
    border: 2px solid #000;
    padding: 3px 5px;
    box-sizing: border-box;
}

#room .number{
    border-bottom: 1px solid #888;
}
#room .number:hover{
    cursor: pointer;
}
#room .container{
    display: block;
    width: fit-content;
    max-width: 90vw;
    margin: 0 auto 30px;
}
#room ul{
    list-style: none;
    width: 90vw;
}
#room ul li{
    background: #eee;
    padding: 10px;
    margin-top: 5px;
}
#room ul li .data{
    line-height: 1.4;
    font-weight: bold;
    font-size: 11px;
    color: #888;
    font-weight: bold;
}
#room ul li .data p.name{
    color: #fa0;
    font-size: 11px;
    font-weight: bold;
}
#room ul li p.text{
    color: #000;
}
#room p.text{
    white-space: pre-wrap;
}
#room ul li>p{
    display: block;
    max-width: 90vw;
    line-height: 1.4;
    overflow-wrap: break-word;
}
.respbtn,#rescont .respbtn{
    text-align: right;
    width: fit-content;
    background: #888;
    color: #fff;
    margin: 0 0 0 auto;
    padding: 0 1vw;
    display: block;
    font-size: 15px;
}
#reslist .respbtn{
    cursor: pointer;    
}
.text{
    font-size: 15px;
}
p:has(span.id){
    color: #666;
    font-size: 13px;
}
span.id{
    color: #666;
    font-size: 13px;
}

#room ul li .imgcont{
    display: flex;
    flex-wrap: wrap;
}
#room ul li .imgcont img{
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
}
#room ul li .imgcont video{
    display: block;
    width: 100%;
    object-fit: contain;
}

/*form*/
#form{
    display: block;
    width: fit-content;
    width: 90vw;
    margin: 0 auto 30vh;
    background: #eee;
    padding: 10px;
    border-radius: 10px;
    max-width: 1000px;
}
#form label{
    line-height: 1.5;
}
#form #title,form #name{
    height: 20px;
    width: 80vw;
}
#form #text{
    height: 100px;
    width: 80vw;
    resize: none;
}
#form h3 ,#form h4{
    line-height: 1.4;
    font-weight: 500;
}
#form p{
    line-height: 1.4;
    font-size: 14px;
}
#form button{
    display: block;
    padding: 3px 5px;
    margin: 10px auto 0;
}


#mode_toggle,#openNGModalBtn{
    position: absolute;     /* 画面に固定 */
    z-index: 100;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #aaa;
    color: #eee;
    cursor: pointer;
}
#mode_toggle{
    top: 10px;
    right: 10px;
}
#openNGModalBtn{
    top: 10px;
    left: 10px;
    font-weight: 1000;
}
body.dark #mode_toggle,body.dark #openNGModalBtn{
    background-color: #555;
    color: #222;
}
#mode_toggle:hover,#openNGModalBtn:hover{
    background-color: #777;
}
body.dark #mode_toggle:hover,body.dark #openNGModalBtn:hover{
    background-color: #777;
}
body.dark .NGmodal-content {
    background: #aaa;
}


/*js*/
.ares{
    color: #00f;
}
#reslist .ares{
    cursor: pointer;    
}
#rescont{
    position: fixed;
    display: block;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
    z-index: 10;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.3);
}
#rescont.active{
    display: none;
}
#rescont>div{
    display: block;
    width: 70vw;
    margin: auto;
    background: #fff;
    padding: 5vw;
    border: 2px solid #000;
    list-style: none;
}
#rescont>div .data p{
    line-height: 1.4;
    font-weight: bold;
    font-size: 11px;
    color: #888;
    font-weight: bold;
}
#rescont>div .data p.name{
    color: #fa0;
    font-size: 11px;
    font-weight: bold;
}
#rescont>div p.text{
    color: #000;
}
#rescont>div>p{
    display: block;
    max-width: 90vw;
    line-height: 1.4;
    margin: 0 auto;
    overflow-wrap: break-word;
}
#rescont>div .imgcont{
    display: flex;
}
#rescont>div .imgcont img{
    display: block;
    width: 10vw;
    height: 10vw;
    object-fit: contain;
    margin: 0 auto;
}
#rescont>div{
    background: #fff;
    border:2px solid #000;
    border-bottom: none;
}
#rescont>div:first-child {
    margin-top: 30vh;
}
#rescont>div:last-child{
    border-bottom: 2px solid #000;
    margin-bottom: 30vh;
}


/* NGモーダルボックス */
.ngmodal {
    display: none;  /* 最初は非表示 */
    position: fixed;
    z-index: 200;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.NGmodal-content {
    background: #eee;
    line-height: 1.2;
    padding: 20px;
    margin: 15% auto;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    margin-top: 30vh;
}
.NGmodal-content textarea{
    resize: none;
}


.modal {
    display: none; /* 最初は非表示 */
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

#link ul{
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px;
    list-style: none;
    background:  rgba(255,255,255,80%);
}
#link ul li{
    line-height: 3;
}
.kiyaku{
    background: #fff;
    line-height: 1.4;
}
.kiyaku p, .kiyaku h3{
    padding: 0 10px;
}
.kiyaku p{
    font-size: 14px;
}
button, span.report{
    cursor: pointer;
}

#btnTop, #btnForm {
  position: fixed;
  right: 20px;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  cursor: pointer;
}
#btnTop { bottom: 70px; }
#btnForm { bottom: 20px; }

.responsive-video {
  width: 100%;
  aspect-ratio: 16 / 9; /* 高さを自動で比率に合わせる */
  border: none;
  display: block;
}


@media screen and (min-width:743px){
    .title{
        font-size: 30px;
    }
    .subtitle{
        font-size: 26px;
    }
    #hitokoto{
        font-size: 14px;
    }
    .gomake, .gotop{
        width: 200px;
        border:3px solid #000;
    }
    .gomake a,.gotop a,.gotop a{
        font-size: 20px;
    }
    .headerbox{
        display: flex;
    }
    .search,.gomake{
        width: 40%;
        margin: 0 5%;
    }
    .search form{
        height: 40px;
    }
    .search form input,.search form p button{
        height: 40px;
        border:3px solid #000;
    }
    .search form input{
        width: 60%;
    }
    #gotags{
        padding: 3vw 0 1vw;
        margin: 20px 0;
        border-top:3px solid #000;
        border-bottom:3px solid #000;
    }
    #gotags li {
        width: calc(100% / 5);
    }
    #gotags li p{
        margin: 0 1vw 2vw 1vw;
    }
    #gotags li p a{
        font-size: 2vw;
        border:3px solid #000;
    }
    #gotags li p a:hover{
        border:3px solid #fff;
    }
    #threads li{
        border:3px solid #000;
        margin-bottom: 5px;
    }
    #threads li h3 a{
        font-size: 15px;
    }
    #threads li div p{
        font-size: 12px;
    }
    #threads li div p:first-child{
        width: 15vw;
    }
    #threads li div p:nth-child(2){
        width: 45vw;
    }

    .resbtns{
        margin-bottom: 10px;
    }
    #room ul li{
        margin-top: 0;
        border-bottom: 1px solid #000;
    }
    #room ul li .imgcont img{
    width: 100px;
    height: 100px;
    }
    #room ul li .imgcont video{
    width: 50%;
    }
}

@media screen and (min-width:1024px){
    #hitokoto{
    font-size: 16px;
    }
    #gotags{
        padding: 10px 0 0 ;
        margin: 20px 0;
    }
    #gotags li {
        width: calc(100% / 10);
        height: fit-content;
    }
    #gotags li p{
        margin: 0 ;
        margin-bottom: 1vw;
    }
    #gotags li p a{
        display: block;
        margin: auto;
        font-size: 12px;
        width: 96px;
    }
    #threads{
        width: fit-content;
        max-width: 100vw;
        margin: 0 auto 50px;
    }
    #threads li{
        display: flex;
        padding: 3px 10px;
        margin-bottom: 0;
        margin-left: 0;
        width: 80vw;
        border: 0;
        border-top: 1px solid #333;
    }
    #threads li:last-child{
        border-bottom:  1px solid #333;
    }
    #threads li h3{
        width: 50vw;
    }
    #threads li h3 a{
    width: 45vw;
    }
    #threads li div p:first-child{
        width: 10vw;
        padding: 0 10px;
        height: 20px;
    }
    #threads li div p:nth-child(2){
        width: 16vw;
        color: #888;
    }
    #threads li div p:last-child{
        width: 4vw;
        color: #000;
    }

    #room header h1{
        max-width: 950px;
        margin: 0 auto 10px;
    }
    #room .container{
        max-width: 950px;
    }
    #room  ul{
        width: 950px;
    }

    #form #title,form #name{
        width: 950px;
    }
    #form #text{
        width: 950px;
    }
    #room ul li .imgcont img{
    width: 140px;
    height: 140px;
    }
}

@media screen and (min-width:1440px){
    #gotags li p>a{
        width: 130px;
    }
    #threads li{
        padding: 3px 20px;
    }
}