/* =========================================
   全体リセット
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}


/* =========================================
   PCヘッダー
========================================= */

.header_container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e4cff9;
  padding: 10px;
}

.header_logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header_logo img {
  width: 100%;
  height: auto;
  max-width: 300px;
}

.header_nav_wrapper {
  flex: 3;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.header_nav_container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.header_nav_container::-webkit-scrollbar {
  display: none;
}

.header_nav {
  display: flex;
  list-style: none;
}

.header_nav li {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px !important;
  border-right: 10px solid #ccc;
  background: #fff;
  box-sizing: border-box;
}

.header_nav li:first-child {
  border-left: 1px solid #ccc;
}

.header_nav img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.scroll-button {
  display: none;
}


/* =========================================
   スマホ用ロゴ
========================================= */

li.sp_logo,
.logo-sp {
  display: none;
}


/* =========================================
   モーダル
========================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
}

.modal .close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.menu-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.menu-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.menu-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #888;
  cursor: pointer;
}

.menu-modal .inner_box h4 {
  margin-top: 20px;
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}




@media screen and (max-width: 767px) {

  /* -----------------------------------------
     全体
  ----------------------------------------- */

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }


  /* -----------------------------------------
     PCロゴを非表示
  ----------------------------------------- */

  .header_logo,
  .header_logo .logo-pc,
  img.logo-pc {
    display: none !important;
  }


  /* -----------------------------------------
     ヘッダー全体
  ----------------------------------------- */

  .header_container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background-color: #e4cff9 !important;
  }


  /* -----------------------------------------
     ナビの親
  ----------------------------------------- */

  .header_nav_wrapper {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }


  /* -----------------------------------------
     スマホのナビ全体を固定
  ----------------------------------------- */

  .header_nav_container {
    width: 100% !important;
    display: block !important;

    /* 横スクロールさせない */
    overflow: hidden !important;

    padding: 0 !important;
    margin: 0 !important;

    /* スクロール時にナビ全体を固定 */
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;

    background: #fff !important;
    border-bottom: 2px solid #e0e0e0;
  }


  /* -----------------------------------------
     ナビを6つ横並び
  ----------------------------------------- */

  .header_nav {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;

    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;

    list-style: none !important;
    background: #fff !important;
  }


  /* -----------------------------------------
     いったん全メニューを非表示
     PC用・不要なメニューを確実に消す
  ----------------------------------------- */

  .header_nav.nav-control-sp > li {
    display: none !important;
  }


  /* -----------------------------------------
     スマホで表示する6つだけ
  ----------------------------------------- */
/* -----------------------------------------
   スマホで表示する7つ
   アイコン・地域選択・合格実績・無料体験
   開始まで・Q&A・MENU
----------------------------------------- */

.header_nav.nav-control-sp > li.sp_logo,
.header_nav.nav-control-sp > li.nav-area,
.header_nav.nav-control-sp > li.nav-pass,
.header_nav.nav-control-sp > li.free_lessons,
.header_nav.nav-control-sp > li.nav-flow,
.header_nav.nav-control-sp > li.nav-qa,
.header_nav.nav-control-sp > li.nav-menu {
  display: flex !important;

  width: 14.2857% !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;

  justify-content: center !important;
  align-items: center !important;

  padding: 3px 1px !important;
  margin: 0 !important;

  background: #fff !important;
  border: none !important;
  border-right: 1px solid #e0e0e0 !important;

  box-sizing: border-box !important;
}

  /* -----------------------------------------
     最後のQ&Aの右線を消す
  ----------------------------------------- */

  .header_nav.nav-control-sp > li.nav-qa {
    border-right: none !important;
  }


  /* -----------------------------------------
     リンク
  ----------------------------------------- */

  .header_nav.nav-control-sp > li > a {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }


  /* -----------------------------------------
     6つの画像をすべて小さく
  ----------------------------------------- */

  .header_nav.nav-control-sp > li > a > img {
    display: block !important;

    width: 100% !important;
    max-width: 55px !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 auto !important;

    box-sizing: border-box !important;
  }


  /* -----------------------------------------
     ペンギンアイコン
  ----------------------------------------- */

  .header_nav.nav-control-sp > li.sp_logo > a > img {
    width: 100% !important;
    max-width: 42px !important;
    height: auto !important;
    margin: 0 auto !important;
  }


  /* -----------------------------------------
     スクロールボタン非表示
  ----------------------------------------- */

  .scroll-button {
    display: none !important;
  }

}