@charset "utf-8";
body {
  color: #333;
  font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  letter-spacing: 0.1em;
}

header {
  display: flex;
  justify-content: space-between;
  position: relative;
}

h1 img {
  width: 100px;
  margin-left: 50px;
  margin-top: 40px;
}

/* ハンバーガーボタン */
#drawer-toggle {
  background-color: #ff2a2a;
  width: 100px;
  height: 100px;
  right: 0;
  position: fixed;
  z-index: 30;
  cursor: pointer;
  transition: 0.3s;
}

#drawer-toggle:hover {
  opacity: 0.7;
}

#drawer-toggle span {
  width: 50px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 25px;
  transition: 0.3s ease-in-out;
  top: 20px;
}

#drawer-toggle span:nth-child(1) {
  top: 36px;
}

#drawer-toggle span:nth-child(2) {
  top: 50px;
}

#drawer-toggle span:nth-child(3) {
  top: 64px;
}

nav {
  display: none;
}

/* ナビを開いた時のページ */
#global-nav {
  width: 100%;
  height: 100vh;
  background-color: #ff2a2a;
  position: fixed;
  z-index: 10;
}

#global-nav img {
  width: 100px;
  height: 100px;
  margin-left: 50px;
  margin-top: 17px;
}

#global-nav ul {
  text-align: center;
  margin-top: -35px;
}

#global-nav a {
  color: #fff;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 30px;
}

#global-nav li:last-child {
  margin-bottom: 15px;
}

#global-nav .btn:hover {
  background-color: #fff;
  color: #ff2a2a;
  transition: 0.5s;
}

#global-nav .btn {
  display: block;
  position: relative;
  text-align: center;
  margin: 0 auto;
  border: 1px solid #fff;
  width: 250px;
  padding: 15px 0;
}

#global-nav .btn::after {
  content: "";
  width: 250px;
  position: absolute;
  border-bottom: 1px solid;
  border-right: 1px solid;
  padding: 15px 0;
  right: -6px;
  bottom: -6px;
}

/* ハンバーガーボタンを×にする */

#drawer-toggle.open span:nth-child(1) {
  top: 47px;
  left: 25px;
  transform: rotate(-45deg);
}

#drawer-toggle.open span:nth-child(2) {
  top: 47px;
  transform: rotate(45deg);
}

#drawer-toggle.open span:nth-child(3) {
  top: 47px;
  transform: rotate(45deg);
}

/* mainvisual */
#mainvisual {
  height: 720px;
  position: relative;
  margin-bottom: 120px;
}

#mainvisual li {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 720px;
}

#mainvisual li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: inset 0px 0px 20px 20px #fff;
}

#mainvisual li img {
  width: 100%;
  height: 720px;
  position: absolute;
  object-fit: cover;
}
/* fadeアニメーション */
#mainvisual li .img1 {
  display: block;
}

#mainvisual li .img2 {
  position: absolute;
}

#mainvisual li .img3 {
  position: absolute;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  18.5% {
    opacity: 1;
  }
  38.5% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#mainvisual li img {
  animation-name: fade;
  animation-duration: 14s; /*アニメーション一周の秒数*/
  animation-iteration-count: infinite; /*無限に繰り返す*/
  opacity: 0;
}

#mainvisual li .img2 {
  animation-delay: 5s;
}

#mainvisual li .img3 {
  animation-delay: 10s;
}

/* mainvisual-text */
#mainvisual .site-title {
  position: absolute;
  margin-top: 281px;
  margin-left: 110px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 4px 6px#fff;
}

#mainvisual .btn {
  display: block;
  background-color: #ff2a2a;
  color: #fff;
  text-shadow: none;
  width: 430px;
  height: 70px;
  margin-top: 30px;
  line-height: 70px;
  text-align: center;
  font-weight: normal;
  font-size: 24px;
  border-radius: 10px;
  box-shadow: 0 6px #9a0413;
  transition: 0.3s;
  position: relative;
}

#mainvisual .btn::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 28px;
  right: 30px;
}

#mainvisual .btn:hover {
  background-color: #ea2a29;
  opacity: 0.9;
  transform: scale(1.05, 1.03);
}

/* bbbが選ばれる理由 */
#reason {
  margin-bottom: 120px;
}

.section-title {
  margin: 0 auto;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 80px;
}

.section-title::after {
  content: "";
  width: 100px;
  height: 3px;
  background-color: black;
  display: block;
  margin: 26px auto 0;
}

.reason-slide {
  background-color: #ff2a2a;
  padding: 80px 0 40px 0;
}

.slide-left,
.slide-right {
  background-color: #fff;
  display: flex;
  justify-content: center;
  width: 50%;
  padding: 5%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.slide-left img,
.slide-right img {
  width: auto;
  height: 60px;
  margin-right: 30px;
}

.slide-left .title,
.slide-right .title {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: #ff2a2a;
}

.slide-left .text,
.slide-right .text {
  font-size: 18px;
}

.slide-left {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  opacity: 0;
}

/* スライドイン、インビュー */
.SlideLeft {
  animation: SlideLeft 0.8s;
  opacity: 1;
}

@keyframes SlideLeft {
  0% {
    transform: translatex(-100%);
  }
  100% {
    transform: translatex(0);
  }
}

.slide-right {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  margin-left: 50%;
  opacity: 0;
}

.SlideRight {
  animation: SlideRight 0.8s;
  opacity: 1;
}

@keyframes SlideRight {
  0% {
    transform: translatex(100%);
  }
  100% {
    transform: translatex(0);
  }
}

/* 受験生の声 */
#voice {
  margin-bottom: 140px;
}

.student img {
  background-color: #cccccc;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

.item-left,
.item-right {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  margin-bottom: 65px;
  opacity: 0;
}

.big {
  animation-name: fadein;
  animation-duration: 0.8s;
  transform-origin: 50% 50%;
  opacity: 1;
}

@keyframes fadein {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.item-right {
  justify-content: right;
}

.item-left .name,
.item-right .name {
  font-size: 12px;
  text-align: center;
}

.voice-text {
  background-color: #e9f1fb;
  width: 510px;
  border-radius: 12px;
  padding: 2%;
  position: relative;
}

.item-left .voice-text {
  margin-left: 30px;
}

.item-right .voice-text {
  margin-right: 30px;
}

.voice-text p {
  font-size: 16px;
  line-height: 1.6;
}

.item-left .voice-text::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  margin-left: -30px;
  border: 15px solid transparent;
  border-right: 15px solid #e9f1fb;
}

.item-right .voice-text::before {
  content: "";
  position: absolute;
  top: 60%;
  right: 0;
  margin-right: -30px;
  border: 15px solid transparent;
  border-left: 15px solid #e9f1fb;
}

/* スクールの概要 */
#summary {
  background-image: url(../img/bg.gif);
  padding: 80px 0 20px 0;
  height: auto;
  width: 100%;
  margin-bottom: 130px;
  animation: bgroop 10s linear infinite;
}

@keyframes bgroop {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -700px 700px;
  }
}

#summary .wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

#summary .wrapper ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#summary .wrapper li {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 60px;
  width: 48%;
  margin-bottom: 30px;
  text-align: center;
}

#summary .wrapper li .menu-title {
  margin-bottom: 15px;
  font-weight: 600;
}

#summary .wrapper li .menu-title .ja {
  display: block;
  font-size: 28px;
}

#summary .wrapper li .menu-title .en {
  display: block;
  font-size: 18px;
  margin-bottom: 30px;
}

#summary .wrapper li p {
  line-height: 1.6;
  width: 290px;
  text-align: left;
}

/* entry */
#entry {
  text-align: center;
  margin-bottom: 120px;
}

#entry .title {
  font-size: 32px;
  font-weight: 600;
}

#entry .cupon {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 40px;
}

#entry .btn {
  display: block;
  background-color: #ff2a2a;
  width: 860px;
  margin: 0 auto;
  height: 75px;
  border-radius: 40px;
  line-height: 75px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid #ff2a2a;
  transition: 0.3s;
}

#entry a:hover {
  background-color: #fff;
  color: #ff2a2a;
}

/* footer */
footer {
  background-color: #e8e8e8;
  padding: 70px 0 24px 0;
}

footer .wrapper {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

footer ul {
  width: 25%;
}

footer li {
  list-style: none;
  margin-bottom: 13px;
  padding-left: 10px;
}

footer ul .title {
  font-weight: 600;
  margin-bottom: 20px;
}

footer li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

footer li a:hover {
  opacity: 0.7;
  transition: 0.5s;
}

footer .copyright {
  display: block;
  text-align: center;
  font-size: 10px;
}

@media screen and (max-width: 900px) {
  h1 img {
    margin-left: 25px;
    margin-top: 25px;
  }

  #mainvisual {
    height: 320px;
    width: 100%;
    position: relative;
    margin-bottom: 120px;
  }

  #mainvisual li {
    width: 100%;
    height: 320px;
  }

  #mainvisual li img {
    width: 100%;
    height: 320px;
  }

  #mainvisual .site-title {
    width: 95%;
    margin-top: 315px;
    margin-left: 15px;
    font-size: 28px;
  }

  #mainvisual .btn {
    width: 100%;
    margin-top: 10px;
  }

  /* bbbが選ばれる理由 */
  #reason {
    margin-top: 260px;
    margin-bottom: 80px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .section-title::after {
    width: 80px;
  }

  .reason-slide {
    padding: 40px 0 10px 0;
  }

  .slide-left,
  .slide-right {
    width: 98%;
    padding: 5.5%;
  }

  .slide-right {
    margin-left: 2%;
  }

  .slide-left img,
  .slide-right img {
    width: auto;
    height: 60px;
    margin-right: 30px;
  }

  .slide-left .title,
  .slide-right .title {
    font-size: 24px;
  }

  /* 受験生の声 */
  #voice {
    margin-bottom: 80px;
  }
  .item-left,
  .item-right {
    flex-direction: column;
    margin: 0 auto 40px;
    width: 96%;
  }

  .item-right {
    justify-content: center;
  }

  .item-left .voice-text {
    margin-left: 0;
  }

  .item-left {
    flex-direction: column-reverse;
  }

  .voice-text {
    text-align: center;
    width: 96%;
    margin: 0 auto 30px;
  }

  .item-left .voice-text::before {
    margin-left: 50%;
    top: 100%;
    border: 15px solid transparent;
    border-top: 15px solid #e9f1fb;
    content: "";
    position: absolute;
    left: 0;
  }

  .item-right .voice-text::before {
    margin-right: 47%;
    top: 100%;
    border: 15px solid transparent;
    border-top: 15px solid #e9f1fb;
    content: "";
    position: absolute;
    right: 0;
  }

  /* スクールの概要 */
  #summary {
    margin-bottom: 80px;
  }

  #summary .wrapper {
    width: 96%;
  }

  #summary .wrapper li {
    padding: 30px;
    width: 100%;
  }

  #summary .wrapper li .menu-title .ja {
    font-size: 24px;
  }

  #summary .wrapper li .menu-title .en {
    font-size: 17px;
    margin-bottom: 30px;
  }

  #summary .wrapper li p {
    line-height: 1.3;
    width: auto;
  }

  /* entry */
  #entry {
    margin-bottom: 80px;
  }

  #entry .title {
    font-size: 24px;
  }

  #entry .cupon {
    font-size: 16px;
  }

  #entry .btn {
    width: 96%;
    height: 70px;
    line-height: 70px;
    font-size: 24px;
  }

  /* footer */
  footer {
    padding: 60px 16px 24px 16px;
  }
  footer .wrapper {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }

  footer ul {
    width: 50%;
    margin-bottom: 30px;
  }

  footer li {
    margin-bottom: 13px;
  }

  footer ul .title {
    font-size: 15px;
  }

  footer li a {
    font-size: 12px;
  }

  /* ハンバーガーボタン */
  #drawer-toggle {
    width: 75px;
    height: 75px;
  }

  #drawer-toggle span {
    width: 35px;
    left: 21px;
  }

  #drawer-toggle span:nth-child(1) {
    top: 26px;
  }

  #drawer-toggle span:nth-child(2) {
    top: 37px;
  }

  #drawer-toggle span:nth-child(3) {
    top: 48px;
  }

  /* ハンバーガーボタンを×にする */
  #drawer-toggle.open span:nth-child(1) {
    top: 37px;
    left: 21px;
  }

  #drawer-toggle.open span:nth-child(2) {
    top: 37px;
  }

  #drawer-toggle.open span:nth-child(3) {
    top: 37px;
  }

  /* navを開いた時のページ */
  #global-nav img {
    margin-left: 25px;
    margin-top: 3px;
  }

  #global-nav ul {
    margin-top: 10px;
  }
}
