body {
    font-family: "Helvetica Neue", 'Noto Sans JP', sans-serif;
    background-color: #fff;
    max-width: 500px;
    margin: 0 auto;
}

main{
  height: 100vh;
  height: 100dvh;
}

.container {
    height: 100vh;
    height: 100dvh;
    background-position: 70% 25%;
    background-size: cover;
    position: relative;
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
  }
  
  .fix-bg {
    position: fixed;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 500px;
    background-image: url(../img/1.webp);
    z-index: -1;
    margin: 0 auto;
    overflow: hidden;
}

.fix-bg li {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    animation: anime 40s linear 0s infinite;
}

.fix-bg li:nth-child(1) { 
    background-image: url(../img/1.webp);
}

.fix-bg li:nth-child(2) {
    background-image: url(../img/2.webp);
    animation-delay: 5s;
}

.fix-bg li:nth-child(3) {
    background-image: url(../img/3.webp);
    animation-delay: 10s;
}

.fix-bg li:nth-child(4) {
    background-image: url(../img/4.webp);
    animation-delay: 15s;
}

/* 新しい画像 */
.fix-bg li:nth-child(5) {
    background-image: url(../img/5.webp);
    animation-delay: 20s;
}

.fix-bg li:nth-child(6) {
    background-image: url(../img/6.webp);
    animation-delay: 25s;
}

.fix-bg li:nth-child(7) {
    background-image: url(../img/7.webp);
    animation-delay: 30s;
}

.fix-bg li:nth-child(8) {
    background-image: url(../img/8.webp);
    animation-delay: 35s;
}

@keyframes anime { 
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
    }
    10% {
        transform: scale(1.1);
        opacity: 1;
    }
    40% {
        transform: scale(1.2);
        animation-timing-function: ease-out;
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% { opacity: 0 }
}
  

.fixed-background{
    display: block;
    content: '';
    width: 100%;
    height: 100dvh;
    background: #000000;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0.8;
}

img {
    width: 100%;
}

.app-theme {
    width: 85%;
    padding: 8% 0 5% 0;
    margin: 0 auto;
}

.fit {
    text-align: center;
    width: 100%;

}

.q_title {
    color:#fff;
}

.q_1 li,
.q_3 li,
.q_5 li{
    background-color: #fff;
}
.q_2 li,
.q_4 li {
    background-color: #F98FEA;
}

.choose_box {
    width: 94%;
    margin: 0 auto;
    position: absolute;
    z-index: 3;
    top: 46%;
    left: 50%;
    transform: translateX(-50%);
}

.choose_logo{
    position: absolute;
    width: 62%;
    max-width: 320px;
    left: 50%;
    top: 3%;
    transform: translateX(-50%);
    z-index: 2;
}

.choose_box p {
    display: block;
    font-weight: bold;
    text-align: center;
    font-size:12px;
}

.choose_box li {
    display: block;
    width: 35vh;
    margin: 4% auto 0;
    list-style: none;
    border-radius: 50px;
    overflow: hidden;
    background: #ee849fd4;
}

.choose_box ul li a {
    width: 100%;
    color: #fff;
    display: block;
    padding:12px 0;
    text-align: center;
    font-weight: lighter;
    font-size: 14px;
    text-decoration: none;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
}

/* copyright */
small {
    display: block;
    padding: 8px 0;
    color: #fff;
    text-align: center;
    width: 98%;
    margin: 0 auto;
}


/* result_box */

.result {
    width: 96%;
    margin: 0 auto;
}

.result_box {
    margin: 0 auto;
    margin-top: min(4.5vw, 22px);
    background: rgba(255, 255, 255);
    border-radius: 10px;
    padding-bottom: 20px;
}

.result_theme {
    text-align: center;
}

.result_theme p {
    text-align: center;
    font-weight: 900;
    color: #02C8C7;
}

#result-title {
    margin: 1rem auto;
    font-size: 1.5rem;
    color: #FFF;
    background-color: #02C8C7;
    padding: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    display: inline-block;
    text-align: center;
}

#result-img {
    margin: 1rem auto 0;
    width: 80%;
    height: auto;
}

#result-img img {
    width: 100%;
    height: auto;
}

.display-none {
    display: none;
}

.back-btn {
    width: 35%;
    margin: 1rem auto;
    font-size: 14px;
    color: #FFF;
    background-color: #02C8C7d4;
    padding: 12px 0;
    border-radius: 1rem;
}

.marker-y{
  background:linear-gradient(transparent 60%, #e86bb6 60%);
}

/* 無限スクロール */
@keyframes infinity-scroll-top {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-100%);
    }
  }

  @keyframes infinity-scroll-top-re {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  .scroll-infinity{
    position: absolute;
    width: 4%;
    z-index: 2;
    opacity: 0.7;
  }
  
  .scroll-right{
    right: 2%;
  }

  .scroll-left{
    left: 2%;
  }

  .scroll-right .scroll-infinity__list--top{
    animation: infinity-scroll-top 360s infinite linear 0.5s both;
  }

  .scroll-infinity__list--top {
    animation: infinity-scroll-top-re 360s infinite linear 0.5s both;
  }
  
  .scroll-infinity__list {
    flex-direction: column; /* 縦方向に並べるために変更 */
  }
  
  .scroll-infinity__item {
    height: calc(100vh /14); /* 高さを設定 */
  }
  
  .scroll-infinity__item > img {
    height: auto; 
  }

  .scroll-infinity__item:nth-of-type(1n) > img {
    transform: rotate(20deg);
  }
  
  .scroll-infinity__item:nth-of-type(2n) > img {
    transform: rotate(-14deg);
  }
  
  .scroll-infinity__item:nth-of-type(3n) > img {
    transform: rotate(-45deg);
  }
  
  .scroll-infinity__item:nth-of-type(4n) > img {
    transform: rotate(-42deg);
  }
  
  .scroll-infinity__item:nth-of-type(5n) > img {
    transform: rotate(19deg);
  }
  
  .scroll-infinity__item:nth-of-type(6n) > img {
    transform: rotate(-27deg);
  }

  /* footer */
  footer{
    position: absolute;
    display: flex;
    bottom: 1%;
    z-index: 3;
    width: 100%;
    left: 50%;
    color: #fff;
    text-align: center;
    transform: translateX(-50%);
    align-items: center;
  }

  .footer-logo{
    width: 20%;
    height: auto;
  }
  .footer-logo img{
    vertical-align: middle;
  }

  /* mail-btn */
.mail-btn{
     position: relative;
    width: 80%;
    margin: 0 auto;
}

.mail-btn:after{
  display: block;
  content: '18禁';
  color: #fff;
  font-size: 12px;
  padding-top: 2%;
}

.prof-img-wrapper{
    display: flex;
    align-items: center;
    width: 70%;
    margin: 0 auto;
    justify-content: space-between;
}

.prof-img-wrapper .prof-img{
    width: 46%;
}

.prof-img{
    width: 30%;
    margin: 4% auto 8%;
}

/* modal */
.md-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.9;
  z-index: 9999;
}

.md-contents {
  display: none;
  position: fixed;
  top: 45%;
  left: 50%;
  width: 80%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 10000;
  max-width: 700px;
  border-radius: 15px;
}

.md-banner{
  width: 100%;
  margin: 0  auto;
  padding-bottom: 3%;
}

.md-inner {
  padding-bottom: 24px;
  color: #fff;
  height: auto;
  text-align: center;
  line-height: 1.8;
  font-size: 14px;
  border-radius: 15px;
}


.modal-big{
  font-size: 24px;
  font-weight: bold;
}

#countdown{
  position: absolute;
  left: 50%;
  top: 100%;
  font-weight: normal;
  transform: translateX(-50%);
}

.color-blue{
  color: #36a8f1;
}

.md-icon {
  text-align: center;
  width: 25%;
  margin: 3% auto;
}

.md-icon span{
  font-size: 10px;
  white-space: nowrap;
}

.inst_item_title {
  font-size: min(5.933vw, 46px);
  font-weight: bold;
  margin-bottom: 8px;
	line-height: 1.5;
}

.inst_item_title span {
  display: inline-block;
  font-size: min(3.267vw, 26px);
  font-weight: 500;
  color: #666;
	padding-top: 4px;
}


.updw {
  color: #fff;
	text-align: center;
  font-size: min(3.6vw, 36px);
  font-weight: 500;
  -webkit-animation-name: UpDown;
          animation-name: UpDown;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes UpDown {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
}


.premire__heartbeat{
	animation: heartbeat 1s ease-in-out infinite both;
}

@keyframes heartbeat{
	from{
			transform: scale(1);
			transform-origin: center center;
			animation-timing-function: ease-out;
	}
	10%{
			transform: scale(0.94);
			animation-timing-function: ease-in;
	}
	17%{
			transform: scale(0.98);
			animation-timing-function: ease-out;
	}
	33%{
			transform: scale(0.90);
			animation-timing-function: ease-in;

	}
	45%{
			transform: scale(1);
			animation-timing-function: ease-out;
	}
}

footer {
  position:relative;
  z-index:2;
  text-align:center;
  background-color: #111;
  color: #fff;
  max-width: 576px;
  margin: -1.5% auto 0;
}
.copyright{
  padding: 2.5% 0;
}
.copyright,
.copyright a{
  font-size: 12px;
}
.copyright a:hover{
  text-decoration: underline;
}