.slider_sp {
  display: none;
}

#sec1 .photos {
  display: flex;
}

#sec1 .photos li {
  width: 20%;
}

#sec1 .photos li img {
  width: 100%;
}

#sec3 .inner,
#sec5 .inner {
  display: flex;
}

#sec5 .inner {
  flex-direction: row-reverse;
}

#sec3 .inner .img,
#sec5 .inner .img {
  width: 50%;
}

#sec3 .inner .img {
  background: url(../img/home/bg_section1.png) no-repeat right center;
  background-size: cover;
}

#sec5 .inner .img {
  background: url(../img/home/bg_section2.png) no-repeat left center;
  background-size: cover;
}

#sec3 .inner .img>img,
#sec5 .inner .img>img {
  display: none;
}

#sec3 .inner .text,
#sec5 .inner .text {
  width: 50%;
  max-width: 600px;
  padding: 50px 5%;
  align-self: center;
}

#news .box {
  border: solid 2px #171C61;
  background: #fff;
  padding: 20px;
}

#news .box li {
  padding: 10px;
}

#news .box li .date {
  display: inline-block;
  margin-right: 15px;
}

#news .box li .data {
  display: inline-block;
}

#blog .bg_image img {
  width: 100%;
  aspect-ratio: 640/480;
  object-position: 50% 50%;
  object-fit: cover;
}

/*
===================================================
        pc small
===================================================
*/
@media screen and (max-width: 1150px) {

  #sec3 .inner .img,
  #sec5 .inner .img {
    width: 50%;
  }

  #sec3 .inner .img {
    background: url(../img/home/bg_section1.png) no-repeat center center;
    background-size: cover;
  }

  #sec5 .inner .img {
    background: url(../img/home/bg_section2.png) no-repeat center center;
    background-size: cover;
  }
}

/*
===================================================
        tb
===================================================
*/
@media screen and (max-width: 980px) {

  #sec3>.inner,
  #sec5>.inner {
    display: block;
  }

  #sec3>.inner .img,
  #sec5>.inner .img {
    width: 100%;
    height: 50vw;
  }

  #sec3>.inner .img {
    background: url(../img/home/bg_section1.png) no-repeat center center;
    background-size: 110%;
  }

  #sec5>.inner .img {
    background: url(../img/home/bg_section2.png) no-repeat center center;
    background-size: 110%;
  }

  #sec3>.inner .text,
  #sec5>.inner .text {
    width: auto;
    max-width: none;
    padding: 50px 5%;
    align-self: center;
  }
}

/*
===================================================
        sp
===================================================
*/
@media screen and (max-width: 768px) {
  .slider_pc {
    display: none;
  }

  .slider_sp {
    display: block;
  }

  #sec1 .photos {
    display: flex;
    flex-wrap: wrap;
  }

  #sec1 .photos li {
    width: 50%;
  }
}

/* 20240221 スライダー1枚目テキストアニメーション */

#slide .slider_pc li:first-child,
#slide .slider_sp li:first-child {
  background: #171C61;
  width: 100%;
  height: auto;
  display: block
}

#slide .slider_pc li:first-child {
  aspect-ratio: 1920 / 800;
}

#slide .slider_sp li:first-child {
  aspect-ratio: 750 / 900;
}


/* テキストアニメーションのスタイル */
@import url('https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i');

.animate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: block;
}

.animate span {
  display: inline-block;
  color: transparent;
  animation: blur 6s ease-out infinite;
  -webkit-animation: blur 6s ease-out infinite;
}

.animate__text {
  font-family: 'Lato', sans-serif;
  word-wrap: break-word;
  font-weight: 900;
  font-size: 50px;
  line-height: 2;
  text-align: center;
  /* text-transform: uppercase; */
  color: #fff;
}

.animate span:nth-child(1) {
  animation-delay: 0.1s;
  -webkit-animation-delay: 0.1s;
}

.animate span:nth-child(2) {
  animation-delay: 0.2s;
  -webkit-animation-delay: 0.2s;
}

.animate span:nth-child(3) {
  animation-delay: 0.3s;
  -webkit-animation-delay: 0.3s;
}

.animate span:nth-child(4) {
  display: block;
  animation-delay: 0.4s;
  -webkit-animation-delay: 0.4s;
}

@keyframes blur {
  0% {
    text-shadow: 0 0 100px #fff;
    opacity: 0;
  }

  5% {
    text-shadow: 0 0 90px #fff;
  }

  10% {
    opacity: 1;
  }

  15% {
    text-shadow: 0 0 0px #fff;
  }

  50% {
    text-shadow: 0 0 0px #fff;
  }

  80% {
    opacity: 1;
  }

  90% {
    text-shadow: 0 0 90px #fff;
  }

  100% {
    text-shadow: 0 0 100px #fff;
    opacity: 0;
  }
}

@-webkit-keyframes blur {
  0% {
    text-shadow: 0 0 100px #fff;
    opacity: 0;
  }

  5% {
    text-shadow: 0 0 90px #fff;
  }

  10% {
    opacity: 1;
  }

  15% {
    text-shadow: 0 0 0px #fff;
  }

  50% {
    text-shadow: 0 0 0px #fff;
  }

  80% {
    opacity: 1;
  }

  90% {
    text-shadow: 0 0 90px #fff;
  }

  100% {
    text-shadow: 0 0 100px #fff;
    opacity: 0;
  }
}