@font-face {
    font-family:'GenJyuuGothic-Normal';
    src: url(font/GenJyuuGothic-Normal.ttf);
}
@font-face {
    font-family:'GenJyuuGothic-Heavy';
    src: url(font/GenJyuuGothic-Heavy.ttf);
}
@font-face {
    font-family:'GenJyuuGothic-Medium';
    src: url(font/GenJyuuGothic-Medium.ttf);
}
 /* 紫#665f86 赤#ff6f74 青#4960df　
 黒-迷ってる,今のところ#4d4854 背景の灰色#efefef */
body{
    font-family:'GenJyuuGothic-Normal',monospace;
    background-color: rgb(239, 239, 239);
    color: #4d4854;
    a{
        color: #ff6f74;
        text-decoration: none;
    }
    a:hover{
        color: #ff9854;
    }
}
*{
    margin: 0;
    padding: 0;
}
.tsuyo-header{
    display:flex;
    align-items: center;
    justify-content:center;
    width:100%;
    height:200px;
    background-image: url('image/site-parts/tsuyohe_background.gif');
     background-size: 80% auto;
     background-position: right bottom -30px;
     background-repeat: no-repeat;
     background-color: #665f86;
     overflow: hidden;
    img{width: 100%;
    max-width: 630px;
    display: block;
    }
}
.header{
    display:flex;
    align-items: center;
    justify-content:center;
    width:100%;
    height:70px;
    background-color: #665f86;
    overflow: hidden;
}
    .header img{width: 260px;
    display: block;
    }
.tab{
font-size: 13px;
font-family: 'GenJyuuGothic-Heavy', monospace;
}
	.tab ul {
		display: flex;
		margin: 0 auto;
		padding:0;
		width: 70%;
		max-width: 600px;
		list-style-type: none;
	}
	.tab ul li {
		position: relative;
		width: 33%;
		letter-spacing: 0.2rem;
	}
	.tab ul li a {
		transition: 0.8s ;
		color: #665f86;
		display: block;
		padding: 16px 10px;
		text-align: center;
		text-decoration: none;
        position: relative;
	}
    .tab ul li a::after{
        transition: 1.4s ;
        content: '';
        position: absolute;
        bottom: 12px;
        border-bottom: 2px dashed #ff6f74;
        width: 50px;
        left:50%;
        transform: translateX(-53%);
    }
	.tab ul li a:hover {
		background-color: #fffef1;
		color: #ff6f74;
		letter-spacing: 0.3rem;
		text-indent: 0.2rem;
    }
    .tab ul li a:hover::after{
        width: 55%;
    }
.top {
    font-size: 16px;
    font-family: 'GenJyuuGothic-Medium', monospace;
    letter-spacing: 0.13rem;
    margin-block: 70px;
    text-align:center;
    text-indent: -0.4rem;
}
    .top2{
        font-size: 24px;
        letter-spacing: 0.3rem;
        color: #4960df;
        text-indent: -0.6rem;
    }
.subtop{
    font-size: 21px;
    font-family: 'GenJyuuGothic-Medium', monospace;
    letter-spacing: 0.13rem;
    margin-top: 35px;
    margin-bottom: 20px;
    text-align:center;
    color: #665f86;
    text-indent: -0.4rem;
}
.title{
    font-size: 24px;
    font-family: 'GenJyuuGothic-Heavy', monospace;
    color: #665f86;
    letter-spacing: 0.4rem;
    text-align: left;
    margin-left: 5px;
    margin-right: auto;
    margin-block: 10px;
}
.normal_text{
    text-align: left;
    width: fit-content;
    margin-inline: auto;
    font-size: 15.5px;
    letter-spacing: 0.1rem;
}
.normal_text p{
margin-block: 10px;
}
.normal_text_center{
    text-align: center;
    width: fit-content;
    margin-inline: auto;
    font-size: 15.5px;
    letter-spacing: 0.1rem;
}
.normal_text_center p{
margin-block: 10px;
}


/* index用 */

.index-content{
    text-align: center;
    width: 95%;
    max-width: 650px;
    margin-inline: auto;
}
.post{
    background-color: #ffffff;
    border: 1px dashed #dedede;
    border-radius: 20px;
    padding-block: 5%;
    padding-inline: 14%;
    margin-bottom: 5px;
    position: relative;
}
    .post img{
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
     .post a:hover img{
        opacity: 0.8;
    }
    .post .icon{
        border-radius: 999px;
        position: absolute;
        top: 26px;
        left: 3%;
        width: 50px;
        height: 50px;
        background-image: url(image/site-parts/post-icon/mitsumi_egao.png);
        background-size: contain;
    }
    .post .post_movie{
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 20px;
    }
    .twitter-tweet{
    }
    .post_top{
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    .post_title{
        font-family: 'GenJyuuGothic-Medium', monospace;
        font-size: 18px;
    }
    .post_date{
        font-family: 'GenJyuuGothic-Medium', monospace;
        font-size: 14px;
        color: #9e9e9e;
    }
    .post_text{
        text-align: left;
        margin-bottom: 4px;
    }
    .post_linkbelow{
        margin-top: -5px;
        text-align: right;
        font-size: 9px;
        color: #9e9e9e;
}


/* にんげん用 */

.about-content{
    text-align: center;
    width: 95%;
    max-width: 650px;
    margin-inline: auto;
}


/*　ものおき用　*/

.storage-content{
    width: 95%;
    max-width: 1100px;
    margin-inline: auto;
}

.checkboxbtn {
    display: inline-flex;
    align-items: center;
    margin: 3px;
    gap: 8px;
    padding: 7px 18px;    
    padding-left: 10px;
    border: 1px dashed #ffffffa4;
    border-radius: 2px 17px 17px 2px;
    background-color: #dfdfdf;
    color: #7d7d9c;
    font-size: 13.5px;
    font-family: 'GenJyuuGothic-Medium', monospace;
    letter-spacing: 0.05rem;
    cursor: pointer;
    user-select: none;
}
.checkboxbtn input[type="checkbox"] {
    display: none;
}
.checkboxbtn .btn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}
.checkboxbtn .btn-check svg polyline {
    fill: none;
    stroke: #adadcb;
    stroke-width: 3.5px;
    stroke-linecap: round;       
    stroke-linejoin: round;      
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.checkboxbtn:has(input[type="checkbox"]:checked) {
    background-color: #ff6f74;
    border-color: #ff6f74;
    color: #ffffff;
    box-shadow: 2px 3px #ffdc9f; 
}
.checkboxbtn input[type="checkbox"]:checked + .btn-check svg polyline {
    stroke: #ffffff;
    stroke-width: 4px;
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}
.storage-item {
    background: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
}
.storage-cell{
    position: relative;
}
.storage-cell.hidden {
    display: none;
}
.storage-item:focus{
    outline: none;
}
.storage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0); 
}
.storage-item img:hover {
    opacity: 0.8;
}
    .st-sound::after{
        pointer-events: none;
        content: "";
        background-image: url(image/site-parts/st-icon/st-sound.png);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        filter: drop-shadow(0 2px 3px rgba(0, 15, 102, 0.5));
        z-index: 2;
    }
    .st-movie::after{
        pointer-events: none;
        content: "";
        background-image: url(image/site-parts/st-icon/st-movie.gif);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        filter: drop-shadow(0 2px 3px rgba(0, 15, 102, 0.5));
        z-index: 2;
    }
    .st-book::after{
        pointer-events: none;
        content: "";
        background-image: url(image/site-parts/st-icon/st-book.png);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        filter: drop-shadow(0 2px 3px rgba(0, 15, 102, 0.5));
        z-index: 2;
    }
    .st-riddle::after{
        pointer-events: none;
        content: "";
        background-image: url(image/site-parts/st-icon/st-riddle.png);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        filter: drop-shadow(0 2px 3px rgba(0, 15, 102, 0.5));
        z-index: 2;
    }
.art-modal {
    border: none;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}
.art-modal:focus{
    outline: none;
}
.art-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}
.modal-content {
    text-align: center;
}
.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.modal-caption {
    color: #d0d0d0;
    margin-top: 12px;
    font-family: 'GenJyuuGothic-Medium';
    font-size: 14px;
}
/*動画用*/
.theater-open-btn{
    outline: none;
    border: none;
    background: none;
    padding: 0;
    display: inline-block;
    position: relative;
}
.theater-open-btn img{
    max-width: 740px;
    width:100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    cursor: pointer;
    outline: none;
    display: block;
}
.theater-open-btn:hover{
    filter: brightness(1.2);
}
.theater-open-btn::after{
        pointer-events: none;
        content: "";
        background-image: url(image/site-parts/st-icon/st-movie.gif);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
        z-index: 2;
    }
.theater-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease;
}
.theater-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.theater-contents {
    width: 90%;
    max-width: 960px;
    position: relative;
}
#theater-video-area iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.theater-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #9e9e9e;
    font-size: 14px;
    font-family: 'GenJyuuGothic-Medium';
    cursor: pointer;
}
/*動画用　終*/
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffffba;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.nav-arrow:focus{
    outline: none;
}
.nav-arrow:hover {
    color: #ffffff;
}
.prev-arrow {
    left: 25px;
}
.next-arrow {
    right: 25px;
}


.footer{
    text-align: center;
    margin-block: 35px;
    font-family: 'GenJyuuGothic-Medium', monospace;
    font-size: 14px;
    color: #4d4854;
    letter-spacing: 0.1rem;
}

@media (min-width: 900px){
    .tsuyo-header{
        background-size: 750px auto;
    }
}
@media (max-width: 576px){
    .tsuyo-header{
        background-size: 360px auto;
        background-position: right bottom -30px;
        height: 150px;
        img{max-width: 390px;
        }
    }
    .tab{
    font-size: 12px;
    }
	.tab ul {
		width: 90%;
        justify-content: space-around;
	}
	.tab ul li {
		width: auto;
        flex: 1;
		letter-spacing: 0.1rem;
	}
    .tab ul li a{
        padding: 12px 10px;
    }
    .tab ul li a::after{
        bottom: 9px;
        width: 45px;
    }
    .tab ul li a:hover::after{
        width: 80px;
    }
    .top {
    font-size: 14px;
    letter-spacing: 0.13rem;
    margin-block: 55px;
    }
    .top2{
    font-size: 20px;
    letter-spacing: 0.3rem;
    }
}