@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/**
 * 固定ページ
 * - 投稿日を非表示
 * - 更新日を非表示
 * - 投稿者名を非表示
 * - シェアボタンを非表示
 * - フォローボタンを非表示
 */
.page .post-date,
.page .post-update,
.page .author-info,
.page .sns-share,
.page .sns-follow {
  display: none;
}
/*フロント固定ページのタイトルを非表示*/
.home.page .entry-title {
  display: none;
}

/*ヘッダー電話番号表示対応*/
/*ヘッダーの表示を調整*/
.header-in {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
/*疑似要素が入っているとズレるので、その対応*/
.header-in.wrap.cf::after {
  position: absolute;
}

.add-header-contents {
  margin-left: auto;
}
.add-header-contents p {
  margin: 0;
  color: #333;
  font-size: 14px;
  text-align: center;
}

.add-header-contents p a {
  font-size: 26px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-family: arial;
}

/*ナビ固定*/
.navi {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: sticky;
  top: 0;
}
.navi.fixed {
  position: fixed;
  top: 0;
  z-index: 10000;
}

/*ナビ区切り線*/
#navi .navi-in > ul > li{
  line-height: 40px;
  height: 40px;
  border-left: 1px dotted #eee;
}
#navi .navi-in > ul > li:last-child{
  border-right: 1px dotted #eee;
}
#navi .navi-in > ul > li .fas {
  margin-right: .3em;
}
.navi-in > ul > .menu-item-has-children > a::after{
  right: 10px;
}

/*ヘッダーサブメニューのデザインを変更*/
.navi-in > ul .sub-menu {
  opacity: .9;
}
/*ナビが下に来てしまう対応*/
#header-container .navi, #navi .navi-in>.menu-header .sub-menu {
  z-index: 10;
}

/* スマホヘッダー */
.mobile-menu-buttons > li {
  padding-top: 0;
}
.mobile-menu-buttons .navi-menu-icon {
  margin-top: 5px;
}
/* スマホハンバーガーメニュー */
.menu-drawer .fas {
  margin-right: .5em;
}

/* トップページメインビジュアル */
.top-main-visual {
  position: relative;
}
.top-main-visual .eye-catch-wrap {
  font-size: 0;
}
.top-main-visual .eye-catch {
  margin-bottom: 0;
}
.top-main-visual .eye-catch-image {
  max-height: 600px;
  object-fit: cover;
  object-position: top center;
}
.top-main-visual__title {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  text-align: center;
}
.top-main-visual__title > span {
  display: block;
  font-size: min(4vw, 40px);
  line-height: 1.5;
  background: rgba(255,255,255,.8);
  font-family: serif;
  font-weight: bold;
  padding: 0 1em;
  white-space: nowrap;
}
.top-main-visual__title > span + span {
  margin-top: .5em;
}
.top-main-visual__target {
  position: absolute;
  bottom: 1em;
  right: 1em;
  z-index: 1;
  font-size: 1.5vw;
  color: white;
  text-shadow: 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333, 0 0 3px #333;
}

/* メインビジュアル */
.main-visual {
  position: relative;
  overflow: hidden;
}
.main-visual::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff8000;
  opacity: .2;
  z-index: 1;
}
.main-visual .eye-catch-wrap {
  font-size: 0;
}
.main-visual .eye-catch {
  width: 100%;
  margin-bottom: 0;
}
.main-visual .eye-catch img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: bottom;
  font-family: 'object-fit: cover; object-position: bottom;';
}
.main-visual.eye-catch-pos-shogaku .eye-catch img {
  object-position: 0% 90%;
  font-family: 'object-fit: cover; object-position: 0% 90%;';
}
.main-visual.eye-catch-pos-chugaku .eye-catch img {
  object-position: 0% 34%;
  font-family: 'object-fit: cover; object-position: 0% 34%;';
}
.main-visual.eye-catch-pos-koko .eye-catch img {
  object-position: 0% 20%;
  font-family: 'object-fit: cover; object-position: 0% 20%;';
}
.main-visual.eye-catch-pos-lecturer .eye-catch img {
  object-position: 0% 30%;
  font-family: 'object-fit: cover; object-position: 0% 30%;';
}
.main-visual.eye-catch-pos-access .eye-catch img {
  object-position: 0% 50%;
  font-family: 'object-fit: cover; object-position: 0% 50%;';
}
.main-visual.eye-catch-pos-faq .eye-catch img {
  object-position: 0% 55%;
  font-family: 'object-fit: cover; object-position: 0% 55%;';
}
.main-visual.eye-catch-pos-price .eye-catch img {
  object-position: 0% 40%;
  font-family: 'object-fit: cover; object-position: 0% 40%;';
}
.main-visual.eye-catch-pos-trial .eye-catch img {
  object-position: 0% 25%;
  font-family: 'object-fit: cover; object-position: 0% 25%;';
}
.main-visual.eye-catch-pos-howto .eye-catch img {
  object-position: 0% 50%;
  font-family: 'object-fit: cover; object-position: 0% 50%;';
}
.main-visual .wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}
.main-visual__title {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translate(0, -50%);
  z-index: 2;
  text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
}

/* トップ体験授業バナー */
.trial-box {
  background: #ff8000;
  color: #fff;
  text-align: center;
}
.trial-box__inner {
  position: relative;
  padding: 20px 0;
}
.trial-box__title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
}
.trial-box__description {
  font-size: 16px;
  line-height: 1.5;
}
.trial-box__description strong {
  font-weight: bold;
  font-size: 1.4em;
}
.trial-box__btn {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translateY(-50%);
  padding: .3em 1em;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: color .3s, background .3s;
}
.trial-box__btn:hover {
  color: #ff8000;
  background: #fff;
}

/* 東京進学会とは */
.article h2.heading-nayami {
  border-left: 0;
  padding: 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  line-height: 2;
}
.article h3.heading-nayami {
  border: none;
  padding: 0;
  position: relative;
  padding-left: 1.5em;
}
.article h3.heading-nayami::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0a4";
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
}

/*SPのみ表示させる対応*/
.only-sp {
  display: none;
}

/*見出しのデザインを追加*/
.article h2 {
  padding: 0 0 0 10px;;
  background-color: transparent;
  position: relative;
  line-height: 1.4;
  border-left: 7px solid currentColor;
}

.logo-menu-button img {
  margin: 0;
}

/*サイドバー調整*/
.sidebar h3 {
  font-size: 16px;
  background: #333333;
  color: #FFFFFF;
  padding: 3px 12px;
  border-radius: 3px
}

.sidebar-scroll {
  top: 60px;
}

.widget-entry-card {
  color: #000;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}
.widget-entry-card-content {
  display: block;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}
.widget-entry-cards figure {
  margin: 0;
  height: 100%;
}
.widget-entry-cards figure img {
  vertical-align: bottom;
}

/* サブカラム体験授業バナー */
.trial-side-box {
  display: block;
  width: 100%;
  background: #ff8000;
  text-align: center;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  transition: .3s;
  position: relative;
}
.trial-side-box:hover {
  color: #fff;
  opacity: .8;
}
.trial-side-box__title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: .05em;
  margin-bottom: .3em;
}
.trial-side-box__description {
  font-size: 14px;
  line-height: 1.5;
}
.trial-side-box__description strong {
  font-weight: bold;
}
.trial-side-box::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #fff;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  margin: 5px;
  box-sizing: border-box;
}
.trial-side-box::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/*個別スタイル*/
.mail-system {
  background-color: #FFFCEE;
  padding: 1em 1em .5em;
  margin: 4em 0 2em;
}
.mail-system h2 {
  border-top: 0;
  border-bottom: 0;
  padding: .5em 0 0;
  margin: 0;
  border-left: 0;
}
.mail-system h2::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0e0";
  font-weight: 900;
  margin-right: .5em;
}
.mail-system p {
  padding: .5em;
}
.pass-record h4 {
  border-top: 0;
  border-bottom: 0;
  padding: .5em 0;
}
.pass-record h4 .note {
  font-size: 16px;
}

.navi-footer-in a:hover {
  background-color: rgba(255,255,255,.2);
}

/* 料金 */
figure.wp-block-table.price-table table {
  min-width: 100%;
  text-align: center;
  margin-bottom: 0;
}
.price-table thead {
  border-bottom: 3px solid #000;
}
.price-table tbody {
  white-space: nowrap;
}

/* FAQ */
.article dd {
  margin-left: 0;
}
.faq_block .faq_q::before,
.faq_block .faq_a::before {
  color: #fff;
  box-shadow: none;
  border-radius: 50%;
  position: absolute;
  top: .75em;
  left: 0;
  display: block;
  width: 2em;
  line-height: 2;
  text-align: center;
  font-family: Arial,sans-serif;
}
.faq_block .faq_q::before {
  font-weight: 400;
  content: "Q";
  background-color: #d55656;
}
.faq_block .faq_a::before {
  content: "A";
  background-color: #6599b7;
}
.faq_block .faq_q,
.faq_block .faq_a {
  position: relative;
  padding: 0.75em 1em 1em 3em;
  line-height: 1.8;
}
.faq_block .faq_a:not(:last-child) {
  margin-bottom: 1em;
  padding-bottom: 2em;
  border-bottom: solid 1px rgba(200,200,200,.5);
}
.faq_block .faq_q {
  font-weight: 700;
}

/* 講師陣 */
.lecturer-box {
  border: 1px solid #000;
  margin-bottom: 1em;
}
.lecturer-box div,
.lecturer-box p {
  margin-top: 0;
  margin-bottom: 0;
}
.lecturer-box__header {
  background: #eee;
  padding: .5em 1em;
}
.lecturer-box__header .wp-block-group__inner-container,
.lecturer-box__header .block-editor-block-list__layout {
  display: flex;
  align-items: baseline;
}
.editor-styles-wrapper .lecturer-box__header .wp-block-group__inner-container > * {
  width: 100%;
}
.lecturer-box__header .block-editor-block-list__layout > *:nth-child(3) {
  margin-left: auto;
}
h2.lecturer-box__name {
  padding: 0;
  line-height: inherit;
  border-left: 0;
  margin: 0;
  font-size: inherit;
  white-space: nowrap;
}
.lecturer-box__name strong {
  font-size: 1.3em;
}
.lecturer-box__shozoku {
  margin: 0;
  margin-left: 1em;
  margin-right: 1em;
}
.lecturer-box__icon {
  color: #fff;
  line-height: 1.5;
  padding: .2em .5em;
  border-radius: 5px;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}
.lecturer-box__icon + .lecturer-box__icon {
  margin-left: .5em;
}
.lecturer-box__icon::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: .2em;
}
.lecturer-box__icon.\--male { background: #19448e; }
.lecturer-box__icon.\--male::before { content: "\f183"; }
.lecturer-box__icon.\--female { background: #ff5050; }
.lecturer-box__icon.\--female::before { content: "\f182"; }
.lecturer-box__icon.\--rikei { background: #008000; }
.lecturer-box__icon.\--rikei::before { content: "\f0c3"; }
.lecturer-box__icon.\--bunkei { background: #ff8000; }
.lecturer-box__icon.\--bunkei::before { content: "\f518"; }
.lecturer-box__description {
  padding: 1em;
}

/* toc */
.toc .toc-list ul, .toc .toc-list ol {
  padding: 0 .5em;
}

/* footer */
.footer-bottom-content {
  padding-right: 60px;
}
.footer-bottom-logo .logo-image {
  max-width: initial;
}
.footer-bottom-logo img {
  height: auto;
  transform: translateY(-5px);
}

/* 問い合わせメニュー */
.contact-menu {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.contact-menu__item {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  -webkit-text-orientation: upright;
  text-orientation: upright;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  padding: 1em .5em;
  text-decoration: none;
  transition: opacity .3s;
  border: 1px solid #fff;
  border-right: 0;
}
.contact-menu__item:hover {
  opacity: .7;
}
.contact-menu__item.-tel {
  background: rgb(255, 128, 0);
  margin-bottom: 1em;
}
.contact-menu__item.-mail {
  background: rgb(255, 80, 80);
}
.contact-menu__item > .fas {
  margin-bottom: .3em;
}

/* 自習室状況 */
.study-header {
  text-align: center;
  padding: 1em;
  border-bottom: 1px solid #333;
  margin-bottom: 1em;
}
.entry-content {
  padding: 0 1em;
}
.study-footer {
  border-top: 1px solid #333;
}
.study-footer p {
  margin: 0;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){

  /*ヘッダー電話番号を非表示*/
  .add-header-contents {
    display: none;
  }

  /*1023px以下でナビを非表示*/
  .navi {
    display: none;
  }

  /* トップページメインビジュアル */
  .top-main-visual__title {
    left: 15px;
  }
  .top-main-visual__target {
    font-size: 1.8vw;
  }

  /*SPのみ表示させる対応*/
  .only-sp {
    display: block;
  }

  .pass-record h4 .note {
    font-size: 14px;
  }

  /* footer */
  .footer-bottom-logo img {
    transform: translateY(-15px);
  }
}

/*834px以下*/
@media screen and (max-width: 834px){

  /* トップページメインビジュアル */
  .top-main-visual__target {
    font-size: 2vw;
    text-shadow: 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333, 0 0 1.5px #333;
  }

  /* メインビジュアル */
  .main-visual.eye-catch-pos-faq .eye-catch img {
    object-position: 0% 0%;
  }

  /*ヘッダー電話番号を非表示*/
  .add-header-contents {
    display: none;
  }

  /* トップ体験授業バナー */
  .trial-box__title {
    font-size: 22px;
  }
  .trial-box__description {
    font-size: 15px;
  }
  .trial-box__btn {
    position: static;
    display: block;
    width: 50%;
    transform: translateY(0);
    margin: 10px auto 0;
    font-size: 15px;
    padding: 0;
  }

  /* 本文 */
  .entry-content {
    padding: 0;
  }

  /*テーブルの文字サイズを変更*/
  table th,
  table td {
    font-size: 1em;
  }

  /*SPのみ表示させる対応*/
  .only-sp {
    display: block;
  }

  .pass-record h4 .note {
    font-size: 14px;
  }

  /* footer */
  .footer-container {
    padding-bottom: 60px;
  }
  .footer-bottom-content {
    padding-right: 0;
  }
  .go-to-top {
    bottom: 60px;
  }

  /* 料金 */
  .price-table thead th {
    padding: 1em .2em;
  }
  .price-table tbody th,
  .price-table tbody td {
    padding: 1em .3em;
  }

  /* 講師陣 */
  .lecturer-box__header .wp-block-group__inner-container,
  .lecturer-box__header .block-editor-block-list__layout {
    flex-wrap: wrap;
  }
  .lecturer-box__shozoku {
    order: 1;
    width: 100%;
    margin-left: 0;
  }

  /* 問い合わせメニュー */
  .contact-menu {
    top: auto;
    bottom: 0;
    flex-direction: row;
    width: 100%;
    transform: translateY(0);
  }
  .contact-menu__item {
    writing-mode: horizontal-tb;
    -ms-writing-mode: lr-tb;
    -webkit-text-orientation: upleft;
    text-orientation: upleft;
    width: 50%;
    text-align: center;
    border: 0;
  }
  .contact-menu__item.-tel {
    margin-bottom: 0;
  }
  .contact-menu__item .fas {
    margin-bottom: 0;
    margin-right: .3em;
  }

}

/*480px以下*/
@media screen and (max-width: 480px){

  /* メインビジュアル */
  .main-visual .eye-catch img {
    height: 27vw;
  }
  .main-visual.eye-catch-pos-access .eye-catch img {
    object-position: 0% 40%;
  }
  .main-visual.eye-catch-pos-faq .eye-catch img {
    object-position: 0% 25%;
  }
  .main-visual__title {
    font-size: 6vw;
  }

  /*ヘッダー電話番号を非表示*/
  .add-header-contents {
    display: none;
  }

  /* トップ体験授業バナー */
  .trial-box__title {
    font-size: 18px;
  }
  .trial-box__description {
    font-size: 14px;
  }
  .trial-box__btn {
    width: 90%;
    font-size: 14px;
  }

  /*テーブルの文字サイズを変更*/
  table th,
  table td {
    font-size: 1em;
  }

  /*SPのみ表示させる対応*/
  .only-sp {
    display: block;
  }

  .pass-record h4 .note {
    font-size: 14px;
  }

}
