html {
  font-size: 100%;
}

body {
  color: #333;
  font-family: “游ゴシック体”, "YuGothic", "游ゴシック Medium",
    "Yu Gothic Midium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
}

a {
  color: #333;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

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

.section-ttl {
  font-size: 2.25rem;
  margin-bottom: 100px;
  text-align: center;
  position: relative;
}

.section-ttl::after {
  content: "";
  width: 100px;
  height: 3px;
  background-color: #333;
  position: absolute;
  display: block;
  bottom: -20px;
  margin: 0 auto;
  left: 0;
  right: 0;
}
/* ---------------- */
#header {
  height: 100px;
  padding: 40px 0 0 50px;
}

.site-ttl {
  width: 100px;
  line-height: 1;
}

.site-ttl a {
  display: block;
}
/* ----------------------- */
.hamburger-menu {
  width: 100px;
  height: 100px;
  position: fixed;
  background-color: #ff2a2a;
  z-index: 30;
  top: 0;
  right: 0;
  transition: 0.3s;
  cursor: pointer;
}

.hamburger-menu:hover {
  opacity: 0.7;
}

.hamburger-menu span {
  width: 50px;
  height: 2px;
  background: #fff;
  left: 25px;
  position: absolute;
  transition: 0.3s ease-in-out;
}
/* ------------------------非active表示 */

.hamburger-menu span:nth-child(1) {
  top: 36px;
}

.hamburger-menu span:nth-child(2) {
  top: 50px;
}

.hamburger-menu span:nth-child(3) {
  top: 64px;
}
/* -----------------------------active */
.hamburger-menu.active span:nth-child(1) {
  top: 47px;
  left: 25px;
  background: #fff;
  transform: rotate(-45deg);
}

.hamburger-menu.active span:nth-child(2) {
  top: 47px;
  transform: rotate(45deg);
  background: #fff;
}

.hamburger-menu.active span:nth-child(3) {
  top: 47px;
  background: #fff;
  transform: rotate(45deg);
}
/* ------------------------------------------ */

#header-nav {
  width: 100%;
  height: 100vh;
  background-color: #ff2a2a;
  color: #fff;
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
}

#header-nav.active {
  opacity: 1;
  visibility: visible;
}

#header-nav .logo {
  width: 100px;
  left: 50px;
  top: 40px;
  position: absolute;
}

.header-nav-menu {
  margin: 80px 0 40px 0;
}

.header-nav-menu li {
  margin-bottom: 20px;
}

.header-nav-menu a {
  color: #fff;
  font-weight: bold;
}

#header-nav .btn {
  width: 250px;
  font-weight: bold;
  border: solid 1px #fff;
  display: block;
  color: #fff;
  position: relative;
  padding: 15px 0;
  margin: 0 auto;
  transition: 0.3s ease-in-out;
}

#header-nav .btn::after {
  content: " ";
  width: 250px;
  padding: 15px 0;
  position: absolute;
  border-right: solid 1px #fff;
  border-bottom: solid 1px #fff;
  right: -6px;
  bottom: -6px;
}

#header-nav .btn:hover {
  background-color: #fff;
  color: #ff2a2a;
}
/* ---------------------------- */
#mainvisual {
  height: 720px;
  margin-bottom: 120px;
  position: relative;
}

#mainvisual .text {
  position: absolute;
  top: 280px;
  left: 10%;
  z-index: 10;
}

#mainvisual .text .ttl {
  font-size: 2.875rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 4px 6px #fff;
}

#mainvisual .app-btn {
  background-color: #ff2a2a;
  color: #fff;
  font-size: 1.5rem;
  display: block;
  border-radius: 10px;
  border-bottom: #7a051c 6px solid;
  padding: 15px 35px;
  text-align: center;
  position: relative;
  transition: 0.3s;
}

#mainvisual .text .app-btn::after {
  content: "";
  width: 16px;
  height: 16px;
  border-top: #fff 3px solid;
  border-right: #fff 3px solid;
  position: absolute;
  transform: rotate(45deg);
  right: 60px;
  top: 26px;
}

#mainvisual .text .app-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
/* --------------------------- */
#mainvisual .fade li {
  width: 75%;
  position: absolute;
  top: 0;
  right: 0;

  animation: fade 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;
  box-shadow: inset 0 0 20px 20px #fff;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* ------------------ */
#reason {
  margin-bottom: 120px;
}

#reason .bg {
  padding: 80px 0;
  background-color: #ff2a2a;
}

#reason .slide {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 5%;
  opacity: 0;
}

#reason .slide img {
  width: auto;
  height: 60px;
  margin-right: 30px;
}

#reason .slide .ttl {
  font-size: 1.75rem;
  color: #ff2a2a;
  font-weight: bold;
  display: block;
}

.slide .text {
  display: block;
  font-size: 1.125rem;
}

#reason .inview-slide-left {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-bottom: 40px;
}

#reason .slide-left {
  animation: slide-left 0.5s ease-in-out 0s 1 forwards;
}

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

#reason .inview-slide-right {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
/* --------------animation */
#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;
}

.left-content,
.right-content {
  display: flex;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* #voice .balloon {
  justify-content: flex-start;
} */

#voice .left-content:last-of-type {
  margin-bottom: 0;
}

.right-content {
  justify-content: flex-end;
}

#voice .student img {
  width: 120px;
  background-color: #ccc;
  border-radius: 50%;
  margin-bottom: 9px;
}

.student .name {
  font-size: 0.75rem;
  text-align: center;
}

.balloon-text {
  width: 60%;
  display: flex;
  background-color: #e9f1fb;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-radius: 15px;
}

.left-content .balloon-text {
  margin-left: 25px;
}

.right-content .balloon-text {
  margin-right: 25px;
}

#voice .left-content .balloon-text::before {
  content: "";
  position: absolute;
  margin-left: -28px;
  border: 15px solid transparent;
  border-right: 15px solid #e9f1fb;
  top: 60%;
  left: 0;
}

#voice .right-content .balloon-text::before {
  content: "";
  position: absolute;
  margin-right: -28px;
  border: 15px solid transparent;
  border-left: 15px solid #e9f1fb;
  top: 60%;
  right: 0;
}

#voice .balloon {
  animation: balloon 0.5s ease-out 0s 1 forwards;
}

@keyframes balloon {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 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;
  flex-wrap: wrap;
  justify-content: space-between;
}

#summary .menu li {
  width: 48%;
  background-color: #fff;
  border-radius: 20px;
  margin-bottom: 32px;
  padding: 60px;
}

#summary .menu li:nth-child(n + 3) {
  margin-bottom: 0;
}

#summary .menu-ttl {
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

#summary .menu-ttl .ja {
  font-size: 1.75rem;
  display: block;
  text-align: center;
  margin-bottom: 15px;
}

#summary .menu-ttl .en {
  font-size: 1.75rem;
  display: block;
  text-align: center;
  margin-bottom: 30px;
}
/* ------------------ */
#entry {
  text-align: center;
  margin-bottom: 120px;
}

.entry-ttl {
  font-size: 2rem;
  margin-bottom: 5px;
  font-weight: bold;
}

.catchphrase {
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.entry-btn {
  border-radius: 40px;
  background-color: #ff2a2a;
  color: #fff;
  font-size: 1.75rem;
  display: block;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
}

.entry-btn:hover {
  background-color: #fff;
  color: #ff2a2a;
  border: solid 3px #ff2a2a;
}

/* ----------------- */
#footer {
  background-color: #e8e8e8;
  padding: 60px 0 20px 0;
}

#footer a {
  font-size: 0.875rem;
  transition: 0.3s;
}

#footer a:hover {
  opacity: 0.7;
}

.footer-list-ttl {
  font-weight: bold;
}

#footer .footer-list {
  display: flex;
  margin-bottom: 60px;
  justify-content: space-between;
}

#footer-list li {
  width: 25%;
}

#footer .footer-list-menu li {
  margin-bottom: 3px;
}

.footer-list-menu {
  padding: 10px 0 0 10px;
}

.copylight {
  text-align: center;
  font-size: 0.625rem;
}

/* --------------------- */
@media screen and (max-width: 900px) {
  .wrapper {
    padding: 0 16px;
  }

  .section-ttl {
    font-size: 1.75rem;
    margin-bottom: 60px;
  }

  .section-ttl::after {
    width: 80px;
  }

  #header {
    padding: 25px 0 0 25px;
  }

  .hamberger-menu {
    width: 75px;
    height: 75px;
  }

  .hamberger-menu span {
    width: 35px;
    left: 21px;
  }

  .hamberger-menu span:nth-child(1) {
    top: 26px;
  }

  .hamberger-menu span:nth-child(2) {
    top: 37px;
  }

  .hamberger-menu span:nth-child(3) {
    top: 48px;
  }

  .hamberger-menu .active span:nth-child(1) {
    top: 37px;
    left: 21px;
  }

  .hamberger-menu .active span:nth-child(2),
  .hamberger-menu .active span:nth-child(3) {
    top: 37px;
  }

  #header-nav .logo {
    top: 25px;
    left: 25px;
  }

  .header-nav-menu {
    margin-top: 110px;
  }

  #mainvisual {
    height: 490px;
    margin-bottom: 80px;
  }

  #mainvisual .fade li {
    width: 100%;
    text-align: center;
  }

  #mainvisual .fade li img {
    height: 300px;
  }
  /* --------------------------------------- */
  /* #mainvisual .text {
    width: calc(100%- 32px);
    top: 310px;
    left: 16px;
  } */
  /* ------------------------------------------- */
  #mainvisual .text .ttl {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }

  #mainvisual .text .app-btn {
    width: 100%;
  }

  #mainvisual .text .app-btn::after {
    right: 20px;
  }


  #reason {
    margin-bottom: 80px;
  }

  #reason .bg {
    padding: 40px 0;
  }

  #reason .slide {
    width: calc(100% - 16px);
  }

  #reason .slide .ttl {
    font-size: 1.5rem;
  }

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

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

  #voice {
    margin-bottom: 80px;
  }

  #voice .student {
    text-align: center;
  }

  #voice .left-content,
  #voice .right-content {
    margin-bottom: 40px;
  }

  #voice .left-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  #voice .right-content {
    flex-direction: column;
    align-items: center;
  }

  #voice .left-content .balloon-text,
  #voice .right-content .balloon-text {
    width: 100%;
    margin: 0 0 30px 0;
  }

  #voice .right-content .balloon-text::before,
  #voice .left-content .balloon-text::before {
    top: 100%;
    border: 15px solid transparent;
    border-top: 15px solid #e9f1fb;
  }

  #voice .left-content .balloon-text::before {
    margin-left: calc(50% - 15px);
  }

  #voice .right-content .balloon-text::before {
    margin-right: calc(50% - 15px);
  }

  #summary {
    margin-bottom: 80px;
  }

  #summary .menu {
    flex-direction: column;
  }

  #summary .menu li {
    width: 100%;
    padding: 30px;
  }

  #summary .menu li:nth-child(3) {
    margin-bottom: 32px;
  }

  #summary .menu-ttl .ja {
    font-size: 1.5rem;
  }

  #summary .menu-ttl .en {
    font-size: 1rem;
  }

  #entry {
    margin-bottom: 80px;
  }

  .entry-ttl {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .catchphrase {
    font-size: 1rem;
  }

  .entry-btn {
    font-size: 1.5rem;
  }

  #footer .footer-list {
    flex-wrap: wrap;
  }

  #footer a {
    font-size: 0.75rem;
  }

  #footer .footer-list-ttl {
    font-size: 0.9375rem;
  }

  #footer .footer-list > li {
    width: 50%;
  }

  #foooter .footer-list-menu li {
    margin-bottom: 3px;
  }

  #footer .footer-list > li:nth-child(1),
  #footer .footer-list > li:nth-child(2) {
    margin-bottom: 30px;
  }
}
