--->--->--->--->@charset "UTF-8";
/* CSS Document */

@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
	img {
		image-rendering: -webkit-optimize-contrast;
	}
}


#popup {
    display: none;
}

/* ポップアップwindow部分 */
#overlay {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 70;
    width: 100%;
    height: 100%;
}
/* オーバーレイの背景部分 */
#bg_gray {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
}
/* ウィンドウ部分 */
#window {
    width: 60%;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    overflow-y: scroll; /* スクロール設定 */
    overscroll-behavior: contain;
    background-color: #FFFFFF;
    border: 10px solid #FFFFFF;
    
    border-radius: 11px;
    height: calc(100vh - 50px);
}

#msg{
    margin: 30px;
}
/* 閉じるボタン */
#btn_cloth {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #be7c8d;
    border-radius: 5px;
    z-index: 9999;
    cursor: pointer;
}
#btn_cloth:hover {
    opacity: 0.7;
}
#btn_cloth span,
#btn_cloth span::before {
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #fff;
}
#btn_cloth span {
    transform: rotate(45deg);
}
#btn_cloth span::before {
    content: "";
    position: absolute;
    bottom: 0;
    transform: rotate(-90deg);
}

/* クリックで表示 */
#popup:checked ~ #overlay {
    visibility: visible;
}
#popup:checked ~ #overlay #window {
    animation: fadein 500ms forwards;
    animation-timing-function: ease-in-out;
}
@keyframes fadein {
    100% {
        opacity: 1;
    }
}

/* コンテンツ部分のスタイル */
#txt_label {
    text-decoration: underline;
    cursor: pointer;
}
#txt_label:hover {
    opacity: 0.7;
}
    
.name2_list{
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    line-height: 1;
    
}
@media screen and (max-width: 1150px){
    #window{
        width: 80%;
    }
}
@media screen and (max-width: 767px){
    .name2_list{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    #msg{
        margin: 15px;
    }
    #btn_cloth {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
    #btn_cloth span,
    #btn_cloth span::before {
        display: block;
        height: 3px;
        width: 20px;
        border-radius: 3px;
        background: #fff;
    }
}
@media screen and (max-width: 499px){
    #window{
        height: calc(100vh - 200px);
    }
    #btn_cloth {
        top: 2px;
        right: 5px;
        width: 25px;
        height: 25px;
        border-radius: 3px;
    }
    #btn_cloth span,
    #btn_cloth span::before {
        display: block;
        height: 3px;
        width: 15px;
        border-radius: 3px;
        background: #fff;
    }
    #msg{
    }
}