@charset "utf-8";

html {
  font-size: 100%;
}
body {
  font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  color: #333;
  letter-spacing: .1em;
}
a {
  color: #333;
  text-decoration: none;
}
li {
  list-style-type: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}

.wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.sec-title {
  font-size: 2.25rem;
  text-align: center;
  position: relative;
  margin-bottom: 100px;
}
.sec-title::after {
  content: "";
  background-color: #333;
  width: 100px;
  height: 3px;
  display: block;
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  margin: 0 auto 0;
}

#header {
  height: 100px;
  padding: 40px 0 0 50px;
}
#header .site-title {
  width: 100px;
  line-height: 1px;
}
#header .site-title a {
  display: block;
}

.hamburger {
  width: 100px;
  height: 100px;
  /* background-color: #ff2a2a; */
  background-color: #0970cf;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  cursor: pointer;
  transition: 0.3s;
}
.hamburger:hover {
  opacity: 0.7;
}
.hamburger span {
  background-color: #fff;
  width: 50px;
  height: 2px;
  position: absolute;
  top: 50px;
  left: 25px;
  transition: all 0.3s ease-in-out;
}
.hamburger span:nth-of-type(1) {
  transform: translateY(-16px);
}
.hamburger span:nth-of-type(3) {
  /* top: 64px; */
  transform: translateY(16px);
}
.hamburger.active span:nth-child(1){
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
  transform: rotate(-45deg);
}
.hamburger.active span:nth-child(3){
  transform: rotate(-45deg);
}

#navi {
  width: 100%;
  height: 100vh;
  background-color: #0970cf;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  opacity: 0;
  text-align: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
}
#navi.active {
  opacity: 1;
  visibility: visible;
}
#navi .logo {
  width: 100px;
  position: absolute;
  top: 40px;
  left: 50px;
}
#navi .menu {
  margin-top: 80px;
  margin-bottom: 40px;
}
#navi .menu li {
  margin-bottom: 20px;
}
#navi .menu a {
  color: #fff;
  font-weight: bold;
}
#navi .btn {
  width: 250px;
  border: #fff 1px solid;
  color: #fff;
  display: block;
  font-weight: bold;
  padding: 15px 0;
  margin: 0 auto;
  position: relative;
  transition: all 0.3s ease-in-out;
}
#navi .btn::after {
  content: "";
  width: 250px;
  border-right: solid 1px #fff;
  border-bottom: solid 1px #fff;
  padding: 15px 0;
  position: absolute;
  right: -6px;
  bottom: -6px;
}
#navi .btn:hover {
  background-color: #fff;
  color: #0970cf;
}



#mainvisual {
  height: 720px;
  position: relative;
  margin-bottom: 120px;
}
#mainvisual .text {
  position: absolute;
  top: 280px;
  left: 10%;
  z-index: 10;
}
#mainvisual .text .title {
  font-size: 2.875rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 40x 6px #fff;
}
#mainvisual .btn {
  background-color: #0970cf;
  border-bottom: #04459a 6px solid;
  border-radius: 10px;
  color: #fff;
  font-size: 1.5rem;
  display: block;
  padding: 15px 35px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
#mainvisual .btn::after {
  content: '';
  width: 16px;
  height: 16px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 26px;
  right: 30px;
}
#mainvisual .btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

#mainvisual .fade li {
  width: 75vw;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  animation: fadeAnime 15s infinite;
}
#mainvisual .fade li:nth-child(1){
  animation-delay: 0s;
}
#mainvisual .fade li:nth-child(2){
  animation-delay: 5s;
}
#mainvisual .fade li:nth-child(3){
  animation-delay: 10s;
}
#mainvisual .fade li img {
  width: 100%;
  height: 720px;
  object-fit: cover;
}
#mainvisual .fade li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0  20px 20px #fff;
}

@keyframes fadeAnime {
  0% {opacity: 0;}
  15% {opacity: 1;}
  30%{opacity: 1;}
  45%{opacity: 0;}
  100%{opacity: 0;}
}

#reason {
  margin-bottom: 120px;
}
#reason .bg {
  /* background-color: #0970cf; */
  background-color: #ffff00;
  padding: 80px 0;
}
#reason .slide {
  width: 50%;
  display: flex;
  justify-content: center;
  background-color: #fff;
  align-items: center;
  padding: 5%;
  opacity: 0;
}
#reason .slide img {
  width: auto;
  height: 60px;
  margin-right: 30px;
}
#reason .slide .title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #0970cf;
  display: block;
}
#reason .slide .text {
  display: block;
  font-size: 1.125rem;
}
#reason .inview-slide-left {
  border-radius: 0 20px 20px 0;
  top: 80px;
  margin-bottom: 40px;
}
#reason .slide-left {
  animation: slide-left 0.5s ease-out 0s 1 forwards;
}
@keyframes slide-left {
  0% {transform: translateX(-50%);}
  100% {opacity:1; transform: translateX(0);}
}
#reason .inview-slide-right {
  border-radius: 20px 0 0 20px;
}
#reason .slide-right {
  animation: slide-right 0.5s ease-out 0s 1 forwards;
}
@keyframes slide-right {
  0% {transform: translateX(150%);}
  100% {opacity:1; transform: translateX(100%);}
}


#voice {
  margin-bottom: 120px;
}
#voice .item-left,
#voice .item-right {
  display: flex;
  align-items: flex-start;
  opacity: 0;
  margin-bottom: 60px;
}
#voice .item-left {
  justify-content: flex-start;
}
#voice .item-left:last-of-type {
  margin-bottom: 0;
}
#voice .item-right {
  justify-content: flex-end;
}
#voice .student img {
  width: 120px;
  background-color: #ccc;
  border-radius: 50%;
  margin-bottom: 10px;
}
#voice .student .name {
  font-size: 0.75rem;
  text-align: center;
}
#voice .balloon-text {
  width: 60%;
  display: flex;
  justify-content: center;
  background-color: #e9f1fb;
  border-radius: 20px;
  padding: 20px;
  position: relative;
}
#voice .item-left .balloon-text {
  margin-left: 25px;
}
#voice .item-left .balloon-text::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  margin-left: -30px;
  border: 15px solid transparent;
  border-right: 15px solid #e9f1fb;
}
#voice .item-right .balloon-text {
  margin-right: 25px;
}
#voice .item-right .balloon-text::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  margin-right: -30px;
  border: 15px solid transparent;
  border-left: 15px solid #e9f1fb;
}
#voice .balloon {
  animation: balloon 0.5s ease-out 0s 1 forwards;
}

@keyframes balloon {
  0% {transform: scale(0);}
  100% {opacity: 1; transform: scale(1);}
}

#summary {
  background: url(../img/bg.gif) repeat;
  animation: fall 10s infinite linear;
  padding: 60px 0;
  margin-bottom: 120px;
}
@keyframes fall {
  0% {background-position: 0 0;}
  100% {background-position: -700px 700px;}
}
#summary .menu {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#summary .menu li {
  width: 48%;
  background-color: #fff;
  padding: 60px;
  border-radius: 20px;
  margin-bottom: 32px;
}
#summary .menu li:nth-of-type(n + 3){
  margin-bottom: 0;
}
#summary .menu-title {
  font-weight: bold;
  line-height: 1;
  text-align: center;
}
#summary .menu-title .ja {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 15px;
}
#summary .menu-title .en {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 30px;
}

#entry  {
  margin-bottom: 120px;
  text-align: center;
}
#entry .title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}
#entry .catchphrase {
  font-size: 1.125rem;
  margin-bottom: 40px;
}
#entry .btn {
  background-color: #0970cf;
  border-radius: 40px;
  border: #0970cf 3px solid;
  color: #fff;
  font-size: 1.75rem;
  font-weight: bold;
  display: block;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
}
#entry .btn:hover {
  background-color: #fff;
  border: solid 3px #0970cf;
  color: #0970cf;
}

#footer {
  background-color: #e8e8e8;
  padding: 60px 0 20px;
}
#footer a {
  font-size: 0.875rem;
  transition: 0.3s;
}
#footer a:hover {
  opacity: 0.7;
}
#footer .inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
#footer .inner > li {
  width: 25%;
}
#footer .inner .title {
  font-weight: bold;
}
#footer .inner .menu {
  padding: 10px 0 0 10px;
}
#footer .inner .menu li {
  margin-bottom: 3px;
}
#footer .copyright {
  font-size: 0.625rem;
  text-align: center;
}

@media screen and (max-width:900px) {
  .wrapper {
    padding: 0 20px;
  }
  .sec-title {
    font-size: 1.7rem;
    margin-bottom: 60px;
  }
  .sec-title::after {
    width: 80px;
  }

  #header {
    padding: 25px 0 0 25px;
  }
  .hamburger {
    width: 75px;
    height: 75px;
  }
  .hamburger span {
    width: 35px;
    top: 37px;
    left: 21px;
  }
  .hamburger span:nth-of-type(1){
    transform: translateY(-11px);
  }
  .hamburger span:nth-of-type(3){
    transform: translateY(11px);
  }

  #navi .logo {
    top: 25px;
    left: 25px;
  }
  #navi .menu {
    margin-top: 110px;
  }
  #navi .btn::after {
    padding: 30px 0;
  }

  #mainvisual {
    height: 85vh;
    margin-bottom: 0;
  }
  #mainvisual .text {
    top: 310px;
    left: 15px;
  }
  #mainvisual .text .title {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
  #mainvisual .btn {
    padding: 15px 70px;
  }
  #mainvisual .fade li{
    width: 100%;
    height: 300px;
  }
  #mainvisual .fade li img {
    height: 100%;
  }

  #reason {
    margin-bottom: 60px;
  }
  #reason .bg {
    padding: 40px 0;
  }
  #reason .slide {
    width: 97%;
  }
  #reason .slide .title {
    font-size: 1.4rem;
  }

  @keyframes slide-right {
    0% {transform: translateX(100%);}
    100% {opacity:1; transform: translateX(5%);}
  }

  #voice .item-left,
  #voice .item-right {
    align-items: center;
    margin-bottom: 40px;
  }
  #voice .item-right {
    flex-direction: column;
  }
  #voice .item-left {
    flex-direction: column-reverse;
  }
  #voice .balloon-text {
    width: 100%;
    margin-bottom: 25px;
  }
  #voice .item-left .balloon-text {
    margin-left: 0;
  }
  #voice .item-right .balloon-text {
    margin-left: 0;
  }
  #voice .balloon-text::before {
    display: none;
  }
  #voice .balloon-text::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: calc(50% - 12px);
    border: 15px solid transparent;
    border-top: 15px solid #e9f1fb;
  }

  #summary .menu {
    flex-direction: column;
  }
  #summary .menu li {
    width: 100%;
    padding: 30px;
  }
  #summary .menu-title .ja{
    font-size: 1.5rem;
  }
  #summary .menu li:nth-of-type(n+3){
    margin-bottom: 30px;
  }

  #entry {
    margin-bottom: 60px;
  }
  #entry .title {
    font-size: 1.5rem;
  }
  #entry .catchphrase {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  #footer a {
    font-size: 0.725rem;
  }
  #footer .inner {
    flex-wrap: wrap;
  }
  #footer .inner > li{
    width: 50%;
    margin-bottom: 30px;
  }
}