@charset "UTF-8";

html {
  font-size: 100%;
}

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

  /*文字と文字の間隔 font-sizeに対して0.1倍*/
  letter-spacing: 0.1em;
}

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

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

li {
  list-style: none;
}

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

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

/*::afterはインライン要素*/
/*擬似要素はインライン要素(デフォルト)*/
.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: #333;
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

/*＿＿＿＿＿＿＿＿＿#header＿＿＿＿＿＿＿＿＿＿*/
#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;
  /*画面のきまった位置に固定する*/
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  cursor: pointer;
  transition: 0.3s;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger span {
  width: 50px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 25px;
  transition: 0.3 ease-in-out;
}

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

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

.hamburger span:nth-child(3) {
  top: 64px;
}

/*left: 25px; background: #fff; 消しても問題なし*/
.hamburger.active span:nth-child(1) {
  top: 47px;
  left: 25px;
  background: #fff;
  transform: rotate(-45deg);
}

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

/*＿＿＿＿＿＿＿＿＿#navi＿＿＿＿＿＿＿＿＿＿*/
#navi {
  width: 100%;
  height: 100vh;
  background-color: #ff2a2a;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  text-align: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  /*要素が不可視状態になる*/
  /*display: none;と異なり要素の領域は確保されたまま*/
  visibility: hidden;
}

/*ハンバーガーメニュークリックイベント .addClass('active')*/
#navi.active {
  opacity: 1;
  /* 要素が可視状態になる */
  visibility: visible;
}

#navi .logo {
  width: 100px;
  /*relativeを指定しない場合 画面左上が起点になる*/
  position: absolute;
  top: 40px;
  left: 50px;
}

#navi .menu {
  margin: 80px 0 40px 0;
}

#navi .menu li {
  margin-bottom: 20px;
}

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

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

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

#navi .btn:hover {
  background-color: #fff;
  color: #ff2a2a;
}

/*＿＿＿＿＿＿＿＿#mainvisual＿＿＿＿＿＿＿＿＿*/


#mainvisual {
  height: 720px;
  margin-bottom: 120px;
  position: relative;
}

#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 4px 6px #fff;
}

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

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

#mainvisual .text .btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

#mainvisual .fade li {
  width: 75%;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  /* infiniteは無限に繰り返す */
  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;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0px 0px 20px 20px rgb(170, 160, 160);
}

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

/*＿＿＿＿＿#reason_BBBが選ばれる理由＿＿＿＿＿*/
#reason  {
  margin-bottom: 120px;
}

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

#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 .title {
  color: #ff2a2a;
  display: block;
  font-size: 1.75rem;
  font-weight: bold;
}

#reason .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 {
  /* ease-out = cubic-bezier(0, 0, 0.58, 1.0) と同じ */
  /* 速く始まり速度を落としながら0.5秒続く */
  /*0s = アニメーションが始まる時間 1 = 繰り返し回数*/
  /* forwards = アニメーション終了時の状態を維持 */
  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-top-left-radius: 20px;
  border-bottom-left-radius: 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_受講生の声＿＿＿＿＿*/
#voice {
  margin-bottom: 120px;
}

#voice .item-left,
#voice .item-right {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  opacity: 0;
}

#voice .item-left {
  /* 左寄せ */
  justify-content: flex-start;
}

/*受講生の声が増えた時のことを考えるとleftに限定しない方が良さそう*/
#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 .item-left .balloon-text,
#voice .item-right .balloon-text {
 width: 60%;
 display: flex;
 justify-content: center;
 background: #e9f1fb;
 border-radius: 15px;
 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%;
  right: 0;
  margin-right: -30px;
  border: 15px solid transparent;
  border-left: 15px solid #e9f1fb;
}

#voice .balloon {
  /*balloon 0.5s= 0.5秒かけて @keyframes balloon 実行*/
  /*ease-out 0s 1 forwards = 0sで早く始まりしだいにゆっくりと変化を1回行い終了時の状態を維持*/
  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_スクールの概要＿＿＿＿＿*/
#summary {
  background: url("../img/cs_bbb_english_conversation_class_bg.gif") repeat;
  padding: 60px 0;
  margin-bottom: 120px;
  animation: fall 10s infinite linear;
}

@keyframes fall {
  0% {
    /*0 0; は既定値*/
    background-position: 0 0;
  }
  100% {
    /*今回は100% = 10秒*/
    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;
  padding: 60px;
  margin-bottom: 32px;
}

/* n + 3 = 0+3,1+3,2+3・・・(3つ目以降) */
#summary .menu li:nth-child(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_無料体験申し込み＿＿＿＿＿*/
#entry {
  margin-bottom: 120px;
  text-align: center;
}

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

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

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


#entry .btn:hover {
  background-color: #fff;
  /*border再度設定の必要ないかも*/
  /*.btnの値を変更した場合のことを考えてかな？*/
  border: solid 3px #ff2a2a;
  color: #ff2a2a;

}

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

#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 a {
  font-size: 0.875rem;
}

#footer a:hover {
  opacity: 0.7;
}

#footer .copyright {
  text-align: center;
  font-size: 0.625rem;
}

/*＿＿＿＿＿＿＿＿＿レスポンシブ＿＿＿＿＿＿＿＿*/
@media screen and (max-width: 900px) {
  .wrapper {
    padding: 0 16px;
  }

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

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

  /*＿＿＿＿＿＿#header レスポンシブ＿＿＿＿＿＿*/
  #header {
    padding: 25px 0 0 25px;
  }

  /*＿＿＿ハンバーガーメニュー レスポンシブ＿＿＿*/
  .hamburger {
    width: 75px;
    height: 75px;
  }
  .hamburger span {
    width: 35px;
    left: 21px;
  }

  .hamburger span:nth-child(1) {
    top: 26px;
  }
  
  .hamburger span:nth-child(2) {
    top: 37px;
  }
  
  .hamburger span:nth-child(3) {
    top: 48px;
  }

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

  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-child(3) {
    top: 37px;
    left: 21px;
  }

  #navi .logo {
    top: 25px;
    left: 25px;
  }

  #navi .menu {
    margin-top: 110px;
  }


  /*＿＿＿＿＿#mainvisual レスポンシブ＿＿＿＿＿*/
  #mainvisual {
    height: 490px;
    margin-bottom: 80px;
  }

  /*calc*/
  /*中央に配置される*/
  #mainvisual .text {
    width: calc(100% - 32px);
    left: 16px;
    top: 310px;
  }

  #mainvisual .text .title {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }

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

  #mainvisual .fade li {
    width: 100%;
  }

  #mainvisual .fade li img {
    height: 300px;
  }

  /*＿＿#reason_BBBが選ばれる理由 レスポンシブ＿＿*/
  #reason  {
    margin-bottom: 80px;
  }

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

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

  #reason .slide .title {
    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_受講生の声 レスポンシブ＿＿＿＿*/
  #voice {
    margin-bottom: 80px;
  }

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

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

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

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

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

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

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

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

  /* ＿＿＿#summary_スクールの概要 レスポンシブ＿＿＿*/
  #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-title .ja {
    font-size: 1.5rem;
  }

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

  /*＿＿＿#entry_無料体験申し込み レスポンシブ＿＿＿*/
  #entry {
    margin-bottom: 80px;
  }

  #entry .title {
    font-size: 1.5rem;
  }

  #entry .catchphrase {
    font-size: 1rem;
  }

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

  /*＿＿＿＿＿ #footer レスポンシブ＿＿＿＿＿*/
  #footer .inner {
    flex-wrap: wrap;
  }

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

  #footer .inner .title {
    font-size: 0.9375rem;
  }

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

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

}