@charset "utf-8";

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: scroll; -webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

body {
  background-color: rgb(145, 123, 123);
}


.sec1 svg {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  fill: #fff;
  width: 100%;
  max-width: 90%;
  stroke-width: 2px;
  stroke: rgb(208, 208, 195);
  filter: drop-shadow(2px 2px 5px #ffffff71);
  animation: text-stroke;
  animation-duration: 3s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  z-index: 10;
}

@keyframes text-stroke {
  0% {
    stroke-dasharray: 0 1000;
    fill-opacity: 0;
  }
  100% {
    stroke-dasharray: 1000 0;
    fill-opacity: 1;
  }
}

.sec2 svg {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  fill: #fff;
  width: 100%;
  max-width: 90%;
  stroke-width: 2px;
  stroke: rgb(208, 208, 195);
  filter: drop-shadow(2px 2px 5px #ffffff71);
  animation: text-stroke;
  animation-duration: 3s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  z-index: 10;
}

@keyframes text-stroke {
  0% {
    stroke-dasharray: 0 1000;
    fill-opacity: 0;
  }
  100% {
    stroke-dasharray: 1000 0;
    fill-opacity: 1;
  }
}

.sp-svg {
  display: none;
}

.oobako {
  padding-top: 12%;
}

#box1,#box2,#box3,#box4,#box5 {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.hako1,.hako2,.hako3,.hako4,.hako5 {
  overflow: hidden;
  position: relative;
  margin-bottom: 50px;
  height: 250px;
}

.hako1 img,.hako2 img,.hako3 img,.hako4 img,.hako5 img {
  width: 300px;
  height: 250px;
}
/*imgの大きさに依存するので、coverが短くなったり大きくなったりするため、幅や高さを決めるのを忘れずに*/

.hako1 .name,.hako2 .name,.hako3 .name,
.hako4 .name,.hako5 .name {
  font-size: 2.5rem;
  color:rgba(78, 46, 33, 0.7);
  text-align: center;
  padding-top: 100px;
  font-family: cursive;
}

.hako1 .cover,.hako2 .cover,.hako3 .cover,
.hako4 .cover,.hako5 .cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  background-color: rgba(241, 183, 151, 0.5);
  transform: rotateX(-180deg);
  transition: all 0.6s ease;
}

.hako1:hover .cover,.hako2:hover .cover,.hako3:hover .cover,
.hako4:hover .cover,.hako5:hover .cover{
  transform: rotateX(0deg);
  opacity: 1;
}

.sp_only2 {
  display: none;
}

.sponly-team {
  display: none;
}

.carousel {
  position: relative;
  width: 60%;
  margin: 0 auto;
  padding-top: 13%;
  padding-bottom: 8%;
  overflow: hidden;
}

.carousel-img {
  display: flex;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.control {
  background-color: rgba(255, 238, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  transition: background-color 0.3s ease;
  border-radius: 15%;
}

.control:hover {
  background-color: rgba(255, 238, 0, 0.8);
}

/* ボタンを常に表示・ボタンの位置 */
.control {
  display: block;
}

.next {
  position: absolute;
  right: 10px; 
  top: 50%;
  transform: translateY(-50%);
}

.prev { 
  position: absolute;
  left: 10px; 
  top: 50%;
  transform: translateY(-50%);
}



/* media
--------------------*/


@media (max-width:1400px) {
  
  .pc-svg {
      display: none;
    }

  .sp-svg {
      display: block;
    }

  .sec1-sp {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    fill: #fff;
    width: 100%;
    max-width: 80%;
    stroke-width: 2px;
    stroke: rgb(208, 208, 195);
    filter: drop-shadow(2px 2px 5px #ffffff71);
    animation: text-stroke;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    z-index: 10;
  }

  @keyframes text-stroke {
    0% {
      stroke-dasharray: 0 1000;
      fill-opacity: 0;
    }
    100% {
      stroke-dasharray: 1000 0;
      fill-opacity: 1;
    }
  }

  .oobako {
    padding-top: 20%;
  }

}


@media (max-width:950px) {

  #box1,#box2,#box3,#box4,#box5 {
    display: block;
  }

  .cover {
    display: none;
  }

  .sp_only2 {
    display: block;
  }

  .sp_only2 {
    text-align: center;
    margin-bottom: 40px;
  }

  .name,.nametm {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    background-color: #F4D03F;
    background-image: linear-gradient(132deg, #F4D03F 10%, #35d4b5 55%, #8cf58b 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .nametm {
    padding-top: 2%;
    padding-bottom: 10%;
  }

  .hako1,.hako2,.hako3,.hako4,.hako5 {
    width: 90%;
    height: 50%;
    margin: 0 auto;
  }

  .hako1 img,.hako2 img,.hako3 img,.hako4 img,.hako5 img {
    width: 100%;
    height: 50%;
  }

  .oobako {
    padding-top: 30%;
  }

  .carousel {
    display: none;
  }

  .sponly-team {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding-top: 10%;
    padding-bottom: 10%;
  }

  .sponly-team img {
    max-width: 100%;
    height: auto;
  }
}


@media (max-width:750px) {

  .sec1-sp {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    fill: #fff;
    width: 100%;
    max-width: 80%;
    stroke-width: 2px;
    stroke: rgb(208, 208, 195);
    filter: drop-shadow(2px 2px 5px #ffffff71);
    animation: text-stroke;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    z-index: 10;
  }

  @keyframes text-stroke {
    0% {
      stroke-dasharray: 0 1000;
      fill-opacity: 0;
    }
    100% {
      stroke-dasharray: 1000 0;
      fill-opacity: 1;
    }
  }
}


@media (max-width:550px) {
  
  .sec1-sp {
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    fill: #fff;
    width: 100%;
    max-width: 80%;
    stroke-width: 2px;
    stroke: rgb(208, 208, 195);
    filter: drop-shadow(2px 2px 5px #ffffff71);
    animation: text-stroke;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    z-index: 10;
  }

  @keyframes text-stroke {
    0% {
      stroke-dasharray: 0 1000;
      fill-opacity: 0;
    }
    100% {
      stroke-dasharray: 1000 0;
      fill-opacity: 1;
    }
  }
}