@media screen and (max-width:680px) {
.openbtn{
    z-index: 9999;
    position: relative;
    background:#D54884;
    cursor: pointer;
    width: 50px;
    height:50px;
    border-radius: 5px;
    top: 8px;
    left: calc(98vw - 55px);
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 2px;
    border-radius: 5px;
    background: #fff;
    width: 45%;
  }


.openbtn span:nth-of-type(1) {
  top:13px; 
}

.openbtn span:nth-of-type(2) {
  top:19px;
}

.openbtn span:nth-of-type(3) {
  top:25px;
}

.openbtn span:nth-of-type(3)::after {
  content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
  position: absolute;
  top:5px;
  left:-2px;
  color: #fff;
  font-size: 0.6rem;
  text-transform: uppercase;
}

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

.openbtn.active span:nth-of-type(1) {
    top: 14px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 26px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(3)::after {
    content:"Close";
    transform: translateY(0) rotate(-45deg);
    top:5px;
    left:4px;
}
#g-nav{
    position:fixed;
    z-index: 999;
    top:0;
    right: -120%;
    width:100%;
    height: 100vh;
    background: rgba(70, 70, 70, 0.7);
    transition: all 0.6s;
}
#g-nav.panelactive{
    right: 0;
}
#g-nav ul {
    position: absolute;
    display: block;
    z-index: 9999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

.index{
    font-size: 10vw;
    padding: auto;
    margin: auto;
}
.slide-text_item{
    font-size: 10vw;
}
.sld1{height: 50vh;}
.sld2{height: 50vh;}
.sld3{height: 50vh;}
.text{
  justify-content: center;
  gap: 0;
  font-size: calc(1.7vw + 0.7em);
}
.illust{
  grid-template-columns: 1fr 1fr;
  font-size: calc(1.6vw + 0.6em);
}
.intro{
  font-size: 12px;
  margin: 2vw;
}
main{
  margin: 10px;
}
}
@media screen and (max-height: 650px) {
  .text{
    display: flex;
    font-size: calc(1.8vw + 0.5em);
  }
  .message1{
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 80px;
    left: 2vw;
  }
  .message2{
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 80px;
    left: 19vw;
  }
  .message3{
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 80px;
    left: 43vw;
  }
}