.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0px;
}

.grid-item {
    padding: 30px 0;
    position: relative;
    cursor: pointer;
    height: 365px; /* 必要に応じて高さを調整 */
    overflow: hidden; /* 画像が枠を超えないように */
    z-index: 2;
}

.grid-item img {
    width: 100%;
    height: 94%;
    object-fit: cover; /* 画像を枠に収める */
}

.grid-item:before {
    content: attr(data-category);
    position: absolute;
    top: 0;
    left: 10px;
    color: #3d1a6f;
    font-weight: bold;
}

.popup, .slider-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    max-width: 70%;
    background: #fff;
    margin: 4vw auto;
    padding: 20px;
    position: relative;
}

.popup-item {
    overflow: visible;
    max-height: 15vw;
}

.popup-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slider {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    margin: auto; /* 中央に配置 */
    top: 50%;
    transform: translateY(-50%);
}
.slides {
    transition: transform 0.5s ease-in-out;
    display: flex;
    max-width: 100%;
    max-height: 100vh;
    gap: 1%;
}

.slides img {
    max-width: 100%;
    max-height: 90vh; /* 画像がビューポートの高さを超えないように */
    min-width: 100%;
    object-fit: contain; /* 画像を枠に収める */
    width:100%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.prev {
    left: 0;
    background: #fff;
    padding:3px;
}

.next {
    right: 0;
    background: #fff;
    padding:3px;
}

.nakanosan{
    max-width: 1000px;
    margin:120px auto;
}

.thai_mnname img{
    width:100%;
}

.thai_gname2box{
    padding:0 15px; 
}

.gurei-eria-poto{
    background: #e2e2e3;
    padding:70px 30px;
    max-width: 1130px;
    margin:50px auto;
}

.gurei-eria-poto .siron{
    background: #fff;
    max-width: 900px;
    padding:80px 50px;
    margin:50px auto;
}
.gurei-eria-poto .siron2{
    max-width: 900px;
    padding:80px 50px;
    margin:50px auto;
}

.gurei-eria-poto img{
    width: 100%;
}

 .siron .guri{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.siron .guri p{
    color: #3d1a6f;
    font-family: 游ゴシック体, YuGothic, 游ゴシック, Yu Gothic, ヒラギノ角ゴ ProN W6, ヒラギノ角ゴ Pro W6, Hiragino Kaku Gothic Pro, ＭＳ Ｐゴシック, ＭＳ ゴシック, sans-serif;
    font-weight: bold;
}


.siron img{
    width:100%;
}
.siron .poto{
    margin:0 0 50px 0;
    position: relative;
}

.siron .poto:before{
    content: '';/*何も入れない*/
    display: inline-block;
    width: 150px;
    height: 350px;
    background-image: url(../assets/img/toruzo.svg);
    background-size: contain;
    vertical-align: middle;
  background-repeat: no-repeat;
  position: absolute;
  top:-150px;
  right:0;
}
.yajirusi{
    position: relative;
}

.yajirusi:before{
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(../assets/img/yajiru.svg);
    background-size: contain;
    vertical-align: middle;
  background-repeat: no-repeat;
  position: absolute;
  bottom:20px;
  right:0;
}

.siron .poto img{
    width:320px;
}



.kerisan{
    max-width: 900px;
    padding:80px 50px;
    margin:50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}


.kerisan h3{
    color: #3d1a6f;
    font-family: 游ゴシック体, YuGothic, 游ゴシック, Yu Gothic, ヒラギノ角ゴ ProN W6, ヒラギノ角ゴ Pro W6, Hiragino Kaku Gothic Pro, ＭＳ Ｐゴシック, ＭＳ ゴシック, sans-serif;
    font-weight: bold;
    font-size:1.8rem;
}

.kerisan img{
    width:100%;
}

.sitasita{
	display: flex;
    align-items: flex-end; 
}


.tateno-kj {
    max-width: 900px;
    margin: 250px auto 20px auto;
    padding: 0;
}
.tateno-kj2 {
    max-width: 900px;
    margin: 20px auto 40px auto;
    padding: 0;
}

.tateno-kj img{
    max-width: 100%;
}
.tateno-kj2 img{
    max-width: 100%;
}
.gaaa{
    max-width: 100%;
}
.gurando-komento{
    margin:0 auto;
    text-align: center;
}

.gurando-komento img{
    max-width: 35vw;
}

.gurando-guro{
	display: flex;
	justify-content: center;
	align-items: center;
    gap: 30px;
}
.gurando-guro .itm img{
    max-height: 60px;
}
.gurando-guro .itm2 img{
    max-height: 75px;
}

.tateno-kjkk{
    margin:50px 0;
}

.okome6{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.okome6 img{
    width:100%;
}

.thai_mnname2 {
    display: block;
    text-align: right;
    margin: 0 0 10px auto;
    max-width: 20vw;
}

.moji-syou{
    font-size:16px !important; 
}

.h-65{
    width:100%;
    height:10vw;
}
.h-35{
    width:100%;
    height:5vw;
}

.thai_ff{
    max-width: 12vw;    
}

.naka-kkk {
    text-align: center;
    margin: 45px 0;
}
.naka-kkk p {
    text-align: center;
    font-size: 120%;
    letter-spacing: 0.3rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
}
.toronto {
    max-width: 450px;
    margin: 10px auto 30px auto;
}

.mido{
    margin: 15px 30px;   
}

.sikuuuu{
    max-width: 18vw;   
}

@media screen and (max-width: 1200px) {
    .gurando-guro {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 92%;
        margin:0 auto;
    }

    .gurando-guro .itm img{
        max-height: 33px;
    }
    .gurando-guro .itm2 img{
        max-height: 52px;
    }



    .tateno-kj {
        margin: 105px 15px 20px 15px;
        padding: 0;
    }
}
@media screen and (max-width: 768px) {
    .sikuuuu {
        max-width: 100%;
    }
    .popup-item {
        overflow: visible;
        max-height: 25vw;
    }
    .naka-kkk p {
        text-align: center;
        font-size: 100%;
    }
    .gurei-eria-poto {
        background: #e2e2e3;
        padding: 70px 30px;
        max-width: 1130px;
        margin: 50px auto 0 auto;
    }
    .thai_ff {
        max-width: 56vw;
    }
    .thai_mnname2 img{
        width:100%;
    }
    .thai_mnname2 {
        display: block;
        text-align: center;
        margin: 0 0 10px auto;
        max-width: 100%;
    }
    .okome6{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin:0 5px 0 15px;
    }

    .gurando-guro .itm{
        display: flex;
        justify-content: center;
        align-items: center;;
    }
    .gurando-guro .itm2{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .gurando-komento img {
        max-width: 85vw;
    }
    .gaaa{
        margin-bottom:30px;
    }
    
    .gaaa img {
        max-width: 70%;
        margin: 0 auto;
    }
    .gurei-eria-poto .siron2 {
        max-width: 900px;
        padding: 0px 0px;
        margin: 50px auto;
    }

    .tateno-kj {
        margin: 105px 15px 20px 15px;
        padding: 0;
    }
    .tateno-kj2 {
        margin: 20px 15px 0px 15px;
        padding: 0;
    }
    

    .siron .poto img {
        width: 75vw;
    }
.gurei-eria-poto .siron {
    background: #fff;
    max-width: 900px;
    padding: 80px 10px;
    margin: 50px auto;
}
.siron .guri {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.siron .poto:before {
    content: '';
    display: inline-block;
    width: 100px;
    height: 200px;
    background-image: url(../assets/img/toruzo.svg);
    background-size: contain;
    vertical-align: middle;
    background-repeat: no-repeat;
    position: absolute;
    top: -150px;
    right: 0;
}
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}
.popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    max-width: 80%;
    background: #fff;
    margin: 4vw auto;
    padding: 10px;
    position: relative;
}
.grid-item {
    padding: 15px 0 15px 0;
    position: relative;
    cursor: pointer;
    height: auto;
    overflow: hidden;
    z-index: 2;
}
.grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.kerisan {
    max-width: 900px;
    padding: 80px 50px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.grid-item:before {
    content: attr(data-category);
    position: absolute;
    top: -2px;
    left: 1px;
    color: #3d1a6f;
    font-weight: bold;
    line-height: 1.2;
    font-size: 15px;
}
.thai_InstLink a {
    width: 240px !important;
}
.moji-syou{
    font-size:3.2vw !important; 
}
}
@media screen and (max-width: 440px) {
.naka-kkk p {
    text-align: center;
    font-size: 3.2vw;
}
}
@media screen and (min-width: 400px) {
    .yajirusi p{
        font-size:16px;   
    }
}

@media screen and (max-width: 400px) {
    .tateno-kj {
        margin: 75px 15px 20px 15px;
        padding: 0;
    }
    .yajirusi p{
        font-size:14px;   
    }
    .gurando-guro .itm img{
        max-height: 28px;
    }
    .gurando-guro .itm2 img{
        max-height: 42px;
    }
    .naka-kkk p {
        text-align: center;
        font-size: 3.2vw;
    }
}