@charset "UTF-8";

/* ------------- ここから落ち葉 ------------- */

.leaf {
  position: absolute;
  z-index: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leaf li{
  position: fixed;
  list-style: none;
  top: -50px;
  background: #ffaf47;
  border-radius: 0% 70%;
  z-index: -1;
}

@keyframes fall {
  to {
    top: 120%;
  }
}

@keyframes sway1 {
  from {
    transform: translateX(0px) rotate(0deg);
  }
  to {
    transform: translateX(200px) rotate(-45deg);
  }
}

@keyframes sway2 {
  from {
    transform: translateX(200px) rotate(-45deg);
  }
  to {
    transform: translateX(0px) rotate(0deg);
  }
}

.leaf li:nth-child(1){
  left: 0%;
  top: -60px;
  width: 60px;
  height: 38px;
  background-color: #ffbf00;
  animation: fall 10s linear infinite,
             sway1 3s ease-in-out infinite alternate;
  animation-delay: 2s;
}

.leaf li:nth-child(2){
  left: 5%;
  top: -70px;
  width: 50px;
  height: 29px;
  background-color: #992400;
  animation: fall 15s linear infinite,
             sway1 2s ease-in-out infinite alternate;
  animation-delay: 8s;
}

.leaf li:nth-child(3){
  left: 15%;
  top: -50px;
  width: 36px;
  height: 20px;
  background-color: #c2704e;
  animation: fall 9s linear infinite,
             sway1 3.5s ease-in-out infinite alternate;
  animation-delay: 13s;
}

.leaf li:nth-child(4){
  left: 30%;
  top: -70px;
  width: 51px;
  height: 42px;
  background-color: #ffbf00;
  animation: fall 8s linear infinite,
             sway2 4s ease-in-out infinite alternate;
  animation-delay: 7s;
}
.leaf li:nth-child(5){
  left: 40%;
  top: -60px;
  width: 46px;
  height: 40px;
  animation: fall 10s linear infinite,
             sway1 4s ease-in-out infinite alternate;
  animation-delay: 0s;
}
.leaf li:nth-child(6){
  left: 55%;
  top: -50px;
  width: 54px;
  height: 35px;
  background-color: #631d08;
  animation: fall 11s linear infinite,
             sway2 3s ease-in-out infinite alternate;
  animation-delay: 3s;
}
.leaf li:nth-child(7){
  left: 65%;
  top: -40px;
  width: 46px;
  height: 35px;
  animation: fall 7s linear infinite,
             sway2 3.5s ease-in-out infinite alternate;
  animation-delay: 7s;
}
.leaf li:nth-child(8){
  left: 50%;
  top: -60px;
  width: 43px;
  height: 29px;
  background-color: #c2704e;
  animation: fall 7s linear infinite,
             sway1 3s ease-in-out infinite alternate;
  animation-delay: 3s;
}
.leaf li:nth-child(9){
  left: 80%;
  top: -70px;
  width: 56px;
  height: 35px;
  animation: fall 10s linear infinite,
             sway2 4s ease-in-out infinite alternate;
  animation-delay: 4s;
}

/* ------------- ここまで落ち葉 ------------- */

/* ------------- ここから紅葉木背景 ------------- */
.bg_kouyou_left, .bg_kouyou_right, .bg_kouyou_left2{
    position: fixed;
}

.bg_kouyou_left{
    left: 0;
    top: -100px;
    width: 35%;
    animation-name: autumn_animation1;
    animation-duration: 10s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
    animation-direction: alternate;
}

.bg_kouyou_right{
    right: 0;
    top: -150px;
    width: 30%;
    transform: scaleX(-1);
    animation-name: autumn_animation2;
    animation-duration: 8s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
    animation-direction: alternate;
}

.bg_kouyou_left2{
    left: 0;
    top: -150px;
    width: 40%;
    animation-name: autumn_animation3;
    animation-duration: 5s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
    animation-direction: alternate;
}

@keyframes autumn_animation1{
    0%{
        transform: rotate(5deg);
    }
    100%{
        transform: rotate(15deg);
    }
}

@keyframes autumn_animation2{
    0%{
        transform: rotate(5deg) scaleX(-1);
    }
    100%{
        transform: rotate(15deg) scaleX(-1);
    }
}

@keyframes autumn_animation3{
    0%{
        transform: rotate(15deg) scaleY(-1);
    }
    100%{
        transform: rotate(5deg) scaleY(-1);
    }
}

/* ------------- ここまで紅葉木背景 ------------- */


/* ------------- ここから背景 ------------- */

main{
    background: url("../images/Autumn/bg_fhd.webp") no-repeat no-repeat;
    animation: none;
    background-size: cover;
}

@media screen and (min-width:2000px) {
    main{
        background: url("../images/Autumn/bg_qhd.webp") no-repeat no-repeat;
        animation: none;
    }
}

/* ------------- ここまで背景 ------------- */


.main_autumn{
    position: relative;
    z-index: 7;
    max-width:850px;
    height: 100vh;
    margin: auto;
}

/* ------------- ここからsci ------------- */
.main_autumn .div_sci{
    position: absolute;
    bottom: -10px;
    /* left: 50%; */
    text-align: left;
}

.main_autumn .div_sci img{
    width: 550px;
}

/* ------------- ここまでsci ------------- */

/* ------------- ここからfros ------------- */
.main_autumn .div_fros{
    position: absolute;
    right: 0px;
    text-align: right;
    animation-name: frosanimation;
    animation-duration: 7s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
    animation-direction: alternate;
}

@keyframes frosanimation{
    0%{
        bottom: 0;
    }
    100%{
        bottom: 25px;
    }
}

.main_autumn .div_fros img{
    width: 450px;
}

.main_autumn .div_fros .img_fros_sub{
    position: absolute;
    left: 35px;
    z-index: -6;
    top: 240px;
    animation-name: frosanimation2;
    animation-duration: 5s;
    animation-iteration-count:infinite;
    animation-timing-function:ease-in-out;
    animation-direction: alternate;
    width: 170px;
}

@keyframes frosanimation2{
    0%{
        transform: rotate(5deg);
    }
    100%{
        transform: rotate(15deg);
    }
}

/* ------------- ここまでfros ------------- */


@media screen and (max-width:1023px) {

    .bg_kouyou_left{
        left: 0;
        top: -100px;
        width: 50%;
        animation-name: autumn_animation1;
        animation-duration: 10s;
        animation-iteration-count:infinite;
        animation-timing-function:ease-in-out;
        animation-direction: alternate;
    }

    .main_autumn{
        position: relative;
        z-index: 7;
        max-width:unset;
        width: 100%;
        height: 100vh;
        margin: auto;
    }

    .main_autumn .div_sci{
        left:-100px;
    }

    .main_autumn .div_fros{
        position: fixed;
        right:-40px;
    }

    .main_autumn .div_sci img{
        width: 600px;
    }

    .main_autumn .div_fros img{
        width: 500px;
    }

    .main_autumn .div_fros .img_fros_sub{
        left: 50px;
    }

}

@media screen and (max-width:480px) {

    .bg_kouyou_left{
        left: 0;
        top: -50px;
        width: 75%;
        animation-name: autumn_animation1;
        animation-duration: 10s;
        animation-iteration-count:infinite;
        animation-timing-function:ease-in-out;
        animation-direction: alternate;
    }
    .main_autumn .div_sci{
        left:-150px;
    }

    .main_autumn .div_fros{
        right:-110px;
    }

    .main_autumn .div_sci img{
        width: 400px;
    }

    .main_autumn .div_fros img{
        width: 325px;
    }
    .main_autumn .div_fros .img_fros_sub{
        top:150px;
        left: 30px;
        width: 130px;
    }
}