/*
Author: BLUE SEVEN
*/

@charset "utf-8";
/* CSS Document */

/*--------------------------------------------------------------
/* reset / base
---------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
:root {
  --fs-sec-title: clamp( 3.2rem, calc( 2.8307692307692307rem + 1.0256410256410255vw ), 4.8rem );
  --fs-34: clamp( 2.4rem, calc( 2.1692307692307693rem + 0.641025641025641vw ), 3.4rem );
  --fs-30: clamp( 2.4rem, calc( 2.2615384615384617rem + 0.38461538461538464vw ), 3rem );
  --fs-24: clamp( 2rem, calc( 1.9076923076923077rem + 0.2564102564102564vw ), 2.4rem );
  --fs-20: clamp( 1.6rem, calc( 1.5076923076923077rem + 0.2564102564102564vw ), 2rem );
  --fs-normal: clamp(1.4rem,calc(1.275rem + 0.3vw),1.6rem);
  --ff-maru: "Kiwi Maru", serif;
  --fc-base : #000;
  /* リボン束のジオメトリ */
  --tilt: -8deg; /* 束の傾き（負で左上→右下へ） */
  --h: 55px; /* 各リボンの高さ */
  --gap: 0px; /* リボン同士の縦間隔（上→下の素の距離） */
  --bleed: 12vw; /* 左へはみ出す量（画面左端の欠け防止） */
  --ribbonOffset: 0px; /* 束の上下オフセット（上下中央基準からの微調整） */

  /* アニメーション設定（順次再生） */
  --dur: 700ms; /* 1本あたりの再生時間（長く＝ゆっくり） */
  --stagger: 120ms; /* 遅延の刻み（上→下へ順番に遅延） */

  /* 横幅（最終的な長さ） */
  --wMax: 95vw; /* r1（最上段）の長さ＝最大値 */
  --wStep: 6vw; /* 段ごとの短くなる差（r2 は r1 - 6vw など） */
}
html{
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  color: var(--fc-base);
  font-family: 'Noto Sans JP', Meiryo, "メイリオ", YuGothic, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 400;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  position: relative;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin:0;
}
h2 {
  font-size: min(calc(1.325rem + 0.9vw),2rem);
}
h3 {
  font-size: min(calc(1.3rem + 0.6vw),1.75rem);
}
h4 {
  font-size: min(calc(1.275rem + 0.3vw),1.5rem);
}
h5{
  font-size: 1.25rem;
}
h6{
  font-size: 1rem;
}
p {
  font-size:var(--fs-normal);
  margin:0;
}
ol,
ul,
li,
dl,
dt,
dd,
th,
td,
figcaption{
  font-size: var(--fs-normal);
  margin: 0;
  padding: 0;
}
dt,
th{
  font-weight:700;
}
ol,
ul{
  list-style-type:none;
}

a{
  color: var(--fc-base);
  font-size: var(--fs-normal);
  text-decoration: none;
  transition-duration: 0.4s;
}
img {
  max-width:100%;
  height:auto;
}
table {
  border-collapse: collapse;
}
figure{
  margin:0;
}

/*--------------------------------------------------------------
# common-css
--------------------------------------------------------------*/
.no_scroll {
  overflow: hidden;
  height: 100vh;
}
.content_wrap {
  width: 93%;
  margin: 0 auto;
}
.section_title {
  font-family: var(--ff-maru);
  font-size: var(--fs-sec-title);
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 7rem;

  &::after {
    display: block;
    content: attr(data-title);
    font-size: var(--fs-normal);
    margin: 1em auto 2.6em;
    @media (min-width:768px) {
      margin: 1em auto 4.6em;
    }
  }
}
.btn_wrap {
  margin-top: 3.4rem;

  .btn{
    display: flex;
    color: #FFF;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 1.2em 2em;
    gap: 0 0.5em;
    border-radius: 999rem;
    @media (min-width:768px) {
      &:hover {
        transform: scale(1.1);
      }
    }
  }
}
.inline_block {
  display: inline-block;
}
@media (min-width:400px) {
  .sp2 {
    display: none;
  }  
}
@media (min-width:768px) {
  .sp {
    display: none;
  }  
}
/*--------------------------------------------------------------
# header
--------------------------------------------------------------*/
header {
  width: 100%;
  height: 9rem;
  background: rgba(255,255,255,0.6);
  position: fixed;
  z-index: 9999;
  @media (min-width:992px) {
    height: 10.2rem;
  }
}
header .content_wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width: auto;
  height: 100%;
  margin: 0 0 0 auto;
  gap: 3rem;
  @media (min-width:992px) {
    margin-right: 27rem;
  }
}
header .header_logo {
  width: 17rem;
  margin-left: 5%;
}
header .g_nav{
  display:none;
  @media (min-width:992px) {
    display:block;
    flex-grow: 1;
    max-width: 80rem;
  }
}
@media (min-width: 992px) {
  header .nav_list {
    display:flex;
    flex-wrap:wrap;
    gap: 0.7em 2em;

    & li {
      font-family: var(--ff-maru);
    }
  }
}
header .tel_wrap {
  display:none;
  @media (min-width:992px) {
    display: block;
    flex-shrink: 0;
  }
  .tel {
    & dt {
      font-size: 1.8rem;
      font-weight: 400;
      font-family: var(--ff-maru);
    }
    & dd {
      font-size: clamp( 2.4rem, calc( 1.7586206896551722rem + 0.646551724137931vw ), 3rem );
      font-family: var(--ff-maru);
      line-height: 1.5;
    }
  }
  .time {
    display: flex;
    & dt {
      font-size: 1.4rem;
      font-weight: 400;
      font-family: var(--ff-maru);
      letter-spacing: 0.02em;
    }
    & dd {
      font-size: 1.4rem;
      font-family: var(--ff-maru);
    }
  }
}
header .btn_wrap {
  display: none;
  @media (min-width:992px) {
    display: flex;
    margin: 0;
    position: absolute;
    top: 0;
    right: 0;
  }
  .soroban {
    & img {
      display: block;
    }
  }
  .contact {
    font-family: var(--ff-maru);
    width: 12.4rem;
    text-align: center;
    background: #11C4F4;
    
    & a {
      display: flex;
      flex-direction: column;
      color: #FFF;
      font-size: 1.4rem;
      justify-content: center;
      height: 100%;

      &::before {
        display: block;
        content:"";
        width: 3.4rem;
        height: 2.5rem;
        margin: 2em auto 3rem;
        background: url(img/icon_mail.png) no-repeat center / contain;
      }
    }
  }
}
.hamburger {
  @media (min-width: 992px) {
    display: none;
  }

  & summary {
    display: block;
    list-style: none;
    width: 10rem;
    height: 10rem;
    background: linear-gradient(0, transparent, transparent 2%, #FFF 2%, #FFF 98%) no-repeat center / 6rem 0.2rem,#11C4F4;
    border-bottom-left-radius: 3rem;
    cursor: pointer;
    position: relative;

    &::before,
    &::after {
      content: '';
      display: block;
      height: 0.2rem;
      width: 6rem;
      background: #FFF;
      position: absolute;
      left: 2rem;
      z-index: 3;
      transition: 0.4s all ease;
    }
    &::before {
      top: 37%;
    }
    &::after {
      top: 60%;
    }
    & span {
      display: none;
    }
  }
  .sp_nav {
    width: 100%;
    height: 100vh;
    padding-top: 12rem;
    background: #11C4F4;
    border-bottom-left-radius: 3rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    transform: scale(0);
    transform-origin: top right;
    transition: all 0.7s;

    & li {
      margin-bottom: 1em;

      &:last-child {
        border-bottom: none;
      }
      & a {
        display: block;
        color: #FFF;
        font-size: 1.8rem;
        text-decoration :none;
        padding: 0.7em 0.7em 0.7em 2em;
      }
      .btn{
        display: flex;
        color: #FFF;
        justify-content: center;
        align-items: center;
        width: fit-content;
        margin: 4rem auto;
        padding: 1.2em 2em;
        gap: 0 0.5em;
        border: 0.2rem solid #FFF;
        border-radius: 999rem;
        &::before {
          display: block;
          content: "";
          width: 1em;
          height: 1em;
          flex-shrink: 0;
          background: url(img/icon_mail.png) no-repeat center/ contain;
        }
      }
    }
  }
  &[open] {
    & summary {
      background: #11C4F4;

      &::before {
        top: 50%;
        transform: rotate(45deg);
      }
      &::after {
        top: 50%;
        transform: rotate(-45deg);
      }
    }
    .sp_nav {
      transform: scale(1);
    }
  }
}

/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
footer {
  padding-bottom: 6rem;
  background: #95DEEF;
}
footer .content_wrap {
  padding-top: 5.4rem;
  @media (min-width:768px) {
    display: flex;
    justify-content: space-between;
    padding-top: 15rem;
    border-bottom: 0.1rem solid #808080;
  }
}
footer .img_wrap {
  text-align: center;
  margin-bottom: 3rem;
}
footer address {
  font-style: normal;
  font-family: var(--ff-maru);
  line-height: 1.7;
  width: fit-content;
  margin: 0 auto 2.3rem;
  padding-bottom: 4.2rem;
  border-bottom: 0.1rem solid #808080;
  @media (min-width:768px) {
    margin-left: 4rem ;
    border-bottom: none;
  }
}
.copyright {
  text-align: center;
  margin-top: 6.5rem;
}

/*--------------------------------------------------------------
# メインビジュアル
--------------------------------------------------------------*/
.main_visual {
  aspect-ratio: 375 / 700;
  background: url(img/main_visual_sp.jpg) no-repeat top center / cover;
  position: relative;
  @media (min-width:768px) {
    aspect-ratio: 1920 / 960;
    background: url(img/main_visual.jpg) no-repeat top right / cover;  
  }
  .banner_eigo {
    width: min(79.4vw,454px);
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%,50%);
    @media (min-width:768px) {
      width: min(30.2vw,454px);
      bottom: 4%;
      left: 3%;
      transform: translate(0,0);
    }
  }
  .banner_soroban {
    width: min(78.6vw,336px);
    position: absolute;
    bottom: -13%;
    right: 50%;
    z-index: 3;
    transform: translateX(50%);
    @media (min-width:768px) {
      width: min(22.4vw,336px);
      bottom: 4%;
      right: 3%;
      transform: translateX(0);
    }
  }
}
/*--------------------------------------------------------------
# 教育理念
--------------------------------------------------------------*/
#philosophy {
  background: #F9F9E8;
  overflow: hidden;
  position: relative;
  padding-top: 20rem;
  @media (min-width:768px) {
    padding-top: 17rem;
  }
}
#philosophy .content_wrap {
  height: 500px;
  @media (min-width:768px) {
    height: 640px;
  }
}
#philosophy .philosophy_title {
  font-family: var(--ff-maru);
  font-size: var(--fs-24);
  font-weight: 400;
  width: fit-content;
  margin: 0 auto 8.5rem;
  padding: 0.5em 1em;
  background: #FFF;
  border-radius: 999rem;
  position: relative;
  z-index: 100;
}
#philosophy .lead {
  color: #FFF;
  font-family: var(--ff-maru);
  font-size: clamp( 3.2rem, calc( 3.0153846153846153rem + 0.5128205128205128vw ), 4rem );
  line-height: 2;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}
/* --- 背景：リボン束キャンバス --- */
#philosophy .ribbons {
  position: absolute;
  top: 31rem;
  left: 0;
  pointer-events: none; /* 背景なのでクリック無効化 */
  @media (min-width:768px) {
    top: calc(27rem + 7vw);
  }
}
#philosophy .ribbons-stack {
  /* 束を上下中央に置いてから微調整（--ribbonOffset） */
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform-origin: left center;
  transform: translateY(calc(-50% + var(--ribbonOffset))) translateX(calc(-1 * var(--bleed))) rotate(var(--tilt));
}

/* --- リボン本体（初期幅0で待機） ---
スクロールと同期せず、IntersectionObserver で一度だけ再生。
*/
#philosophy .ribbon {
  position: absolute;
  left: 0;
  height: var(--h);
  width: 0%;
  animation: none; /* 発火まではアニメ停止 */
}
@keyframes grow {
  from {
    width: 0%;
  }
  to {
    width: calc(var(--w) + var(--bleed));
  } /* 左のはみ出し分も加味 */
}

/* --- 発火後（#philosophy.play が付与されたら実行） ---
上から順に遅延して伸びる（r1→r5）。「一度だけ」再生。
*/
#philosophy.play .ribbon {
  animation: grow var(--dur) ease-out forwards;
}
#philosophy.play .r1 {
  animation-delay: calc(var(--stagger) * 0);
}
#philosophy.play .r2 {
  animation-delay: calc(var(--stagger) * 1);
}
#philosophy.play .r3 {
  animation-delay: calc(var(--stagger) * 2);
}
#philosophy.play .r4 {
  animation-delay: calc(var(--stagger) * 3);
}
#philosophy.play .r5 {
  animation-delay: calc(var(--stagger) * 4);
}

/* --- 各リボンの最終幅（rootの wMax / wStep から計算） ---
長さは「最大値 - 段差×n」でテーパー。縦位置は高さ×段数 + gap を積み上げ。
“-1px, -2px, ...” はアンチエイリアスの白筋防止の微小重なり。
*/
#philosophy .r1 {
  --w: var(--wMax);
  top: 0;
  background: #37aee2;
}
#philosophy .r2 {
  --w: calc(var(--wMax) - var(--wStep) * 1);
  top: calc(var(--h) * 1 + var(--gap) * 1 - 1px);
  background: #c8c233;
}
#philosophy .r3 {
  --w: calc(var(--wMax) - var(--wStep) * 2);
  top: calc(var(--h) * 2 + var(--gap) * 2 - 2px);
  background: #1e8b45;
}
#philosophy .r4 {
  --w: calc(var(--wMax) - var(--wStep) * 3);
  top: calc(var(--h) * 3 + var(--gap) * 3 - 3px);
  background: #7e2b92;
}
#philosophy .r5 {
  --w: calc(var(--wMax) - var(--wStep) * 4);
  top: calc(var(--h) * 4 + var(--gap) * 4 - 4px);
  background: #ef1c71;
}

/*--------------------------------------------------------------
# ようこそ
--------------------------------------------------------------*/
#welcome {
  padding-bottom: 7rem;
  background: #F9F9E8;
  @media (min-width:768px) {
    padding-bottom: 19.7rem;
  }
}
#welcome .text_wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1em 1em 2em;
  background: #FFF;
  border-radius: 2.4rem;
  @media (min-width:768px) {
    max-width: 85rem;
    padding: 3em 1em 4em;
  }
  & p {
    font-size: var(--fs-20);
    letter-spacing: -0.05em;
    line-height: 2.7;
    max-width: 77rem;
    margin: 0 auto;
    @media (min-width:400px) {
      letter-spacing: 0;
      @media (min-width:768px) {
        text-align: center;
      }
    }

    & span {
      display: block;
      position: relative;
      &::after {
        display: block;
        content:"";
        width: min(calc(93vw - 2em),46rem);
        height: 0.2rem;
        background: #808080;
        position: absolute;
        top: 105%;
        left: 0;
        @media (min-width:768px) {
          width: min(86vw,77rem);
        }
      }
      &.sp {
        @media (min-width:768px) {
          display: none;
        }
      }
      &.sp2 {
        @media (min-width:400px) {
          display: none;
        }
      }
    }
  }
}
/*--------------------------------------------------------------
# そろばん教室
--------------------------------------------------------------*/
#soroban {
  background: #F9F9E8;
}
#soroban .soroban_visual {
  display: flex;
  flex-direction: column;
  justify-content: end;
  aspect-ratio: 375 / 700;
  background: url(img/soroban_visual_sp.jpg) no-repeat top center / cover;
  position: relative;
  @media (min-width:768px) {
    justify-content: flex-start;
    aspect-ratio: 1920 / 960;
    background: url(img/soroban_visual.jpg) no-repeat top center / cover;  
  }
  .img_wrap {
    width: min(74.5%,34.4rem);
    margin: 0 auto;
    padding-top: 5.3%;
    @media (min-width:768px) {
      margin: 0 auto 0 9%;
    }
  }
  .soroban_title {
    font-family: var(--ff-maru);
    font-size: clamp( 2.4rem, calc( 2.2153846153846153rem + 0.5128205128205128vw ), 3.2rem );
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    max-width: 14em;
    margin: 1em auto 4rem;
    @media (min-width:768px) {
      text-align: left;
      margin: 1em auto 0 9%;
    }
  }
}
#soroban .content_wrap p {
  line-height: 2;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 28em;
  margin: 4rem auto;
  @media (min-width:768px) {
    text-align: center;
  }
}
#soroban .point_list {
  max-width: 90rem;
  margin: 0 auto 3rem;
  padding: 1em;
  background: #FFF;
  border-radius: 2.4rem;
  border: 0.2rem solid #F0000B;
  @media (min-width:768px) {
    margin-bottom: 4.5rem;
    padding: 2em;
  }

  & li {
    font-size: clamp( 1.6rem, calc( 1.5538461538461538rem + 0.1282051282051282vw ), 1.8rem );
    line-height: 2;
    &::before {
      content: "・";
    }
  }
}
#soroban .content_wrap .img_wrap {
  text-align: center;
  padding-bottom: 9.2rem;
  @media (min-width:768px) {
    padding-bottom: 14.2rem;
  }
}
/*--------------------------------------------------------------
# 英語教室
--------------------------------------------------------------*/
#eigo {
  padding-bottom: 10.3rem;
  background: #F9F9E8;
  @media (min-width:768px) {
    padding-bottom: 12rem;
  }
}
#eigo .eigo_visual {
  display: flex;
  flex-direction: column;
  justify-content: end;
  aspect-ratio: 375 / 700;
  background: url(img/main_visual_sp.jpg) no-repeat top center / cover;
  position: relative;
  @media (min-width:768px) {
    aspect-ratio: 1920 / 960;
    background: url(img/main_visual.jpg) no-repeat top right / cover;  
  }
  .img_wrap {
    width: min(74.5%,34.4rem);
    margin: 0 auto;
    padding-top: 5.3%;
  }
  .eigo_title {
    font-family: var(--ff-maru);
    font-size: clamp( 2.4rem, calc( 2.2153846153846153rem + 0.5128205128205128vw ), 3.2rem );
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
    max-width: 18em;
    margin: 1em auto 4rem;
  }
}
#eigo .content_wrap:not(.season_lesson) {
  padding-bottom: 10rem;
  position: relative;
  top: -3rem;
  &::before {
    display: block;
    content: "";
    width: min(58.6%,31.5rem);
    aspect-ratio: 220 / 130;
    margin: 0 auto 3.8rem;
    background: url(img/eigo_img_abc.png) no-repeat center / contain;
    @media (min-width:992px) {
      width: min(18%,31.5rem);
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  &::after {
    display: block;
    content: "";
    width: min(52.5%,27.6rem);
    aspect-ratio: 197 / 117;
    margin: 3.1rem auto 0;
    background: url(img/eigo_img_123.png) no-repeat center / contain;
    @media (min-width:992px) {
      width: min(15.6%,27.6rem);
      margin-top: 0;
      position: absolute;
      top: 0;
      right: 0;
    }
  }
  & p {
    line-height: 2;
    @media (min-width:768px) {
      text-align: center;
      word-break: keep-all;
      overflow-wrap: anywhere;
      line-break: strict;
      max-width: 39em;
      margin: 0 auto;
      @media (min-width:992px) {
        &:nth-child(1) {
          padding-top: 9.1rem;
        }
      }
    }
  }
}
#eigo .class_list {
  display: flex;
  flex-wrap: wrap;
  & li {
    position: relative;
    @media (min-width:768px) {
      text-align: center;
      width: 50%;
    }
    &::before {
      display: block;
      content: "";
      position: absolute;
      top: -12%;
      left: 3%;
      z-index: 3;
      @media (min-width:768px) {
        top: max(-8%,-5rem);
        left: 5.4%;
      }
    }
    .title_wrap {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 100%;
      height: 15rem;
      padding: 0 3.5%;
      position: absolute;
      top: 0;
      left: 0;
      @media (min-width:768px) {
        text-align: center;
        height: 16.5rem;
      }
      .class_name {
        font-family: var(--ff-maru);
        font-size: var(--fs-34);
        margin: 1em 0 0.7em;
        @media (min-width:768px) {
          margin: 0 0 0.7em;
        }
      }
      & a {
        display: flex;
        font-family: var(--ff-maru);
        font-size: 1.2rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 6rem;
        aspect-ratio: 1 / 1;
        background: #FFF;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        right: 3.5%;
        transform: translateY(-50%);
        @media (min-width:992px) {
          font-size: 1.6rem;
          width: min(16%,10rem);
        }
        &::after {
          display: block;
          content: "";
          width: 1.7rem;
          height: 1.7rem;
          border-left: 0.1rem solid;
          border-bottom: 0.1rem solid;
          transform: rotate(-45deg);
          @media (min-width:992px) {
            margin-top: 0.5rem;
          }
        }
      }
    }
    &:nth-child(1) {
      &::before {
        width: min(22%,13rem);
        aspect-ratio: 130 / 97;
        background: url(img/eigo_class_01.png) no-repeat center / contain;
        @media (min-width:768px) {
          width: min(17.3%,13rem);
        }
      }
      .title_wrap {
        background: rgba(202,241,255,0.9);
      }
    }
    &:nth-child(2) {
      &::before {
        width: min(26.6%,15.7rem);
        aspect-ratio: 157 / 98;
        background: url(img/eigo_class_02.png) no-repeat center / contain;
        @media (min-width:768px) {
          width: min(21%,15.7rem);
        }
      }
      .title_wrap {
        background: rgba(255,255,110,0.9);
      }
    }
  }
}
.season_lesson {
  font-size: clamp( 1.3rem, calc( 1.1703703703703704rem + 0.43209876543209874vw ), 2rem );
  text-align: center;
  margin-top: 7.8rem;
  padding-top: 5em;
  position: relative;
  z-index: 3;
  @media (min-width:768px) {
    margin-top: 10rem;
    padding-top: 1.7em;
  }

  .schedule {
    display: flex;
    flex-flow: column wrap;
    font-family: var(--ff-maru);
    font-size: clamp( 1.3rem, calc( 1.1703703703703704rem + 0.43209876543209874vw ), 2rem );
    justify-content: center;
    align-items: center;
    min-width: 19em;
    padding: 1em;
    gap: 0.5em 1.5em;
    background: #FFFF6E;
    border-bottom: none;
    border-top-left-radius: 4.5rem;
    border-top-right-radius: 4.5rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    @media (min-width:768px) {
      flex-flow: row wrap;
      width: min(95%,68.5rem);
      min-width: auto;
      border-width: 0.4rem;
    }
    &.winter {
      border: 0.3rem solid #009245;
    }
    &.summer {
      border: 0.3rem solid #0071BC;
    }
    & span {
      font-size: 160%;
      letter-spacing: 0.1em;
    }
  }
}

/*--------------------------------------------------------------
# 英検ジュニア,英検クラス,冬季夏季講習
--------------------------------------------------------------*/
.class_section {
  padding: 5rem 0;
  @media (min-width:768px) {
    padding: 10rem 0;
  }
}
#eiken_junior {
  background: #CAF1FF;
}
#eiken_senior {
  background: #FFFF6E;
}
.class_section.winter {
  background: #009245;
}
.class_section.summer {
  background: #0071BC;
}
.class_section .section_title {
  margin-bottom: 0.5em;
  &::after {
    display: none;
  }
}
#season_lesson .section_title {
  color: #FFF;
}
.class_section .target {
  font-family: var(--ff-maru);
  text-align: center;
  margin-bottom: 8rem;
}
#season_lesson .target {
  color: #FFF;
  margin-bottom: 5rem;
}
.class_section .content_wrap {
  @media (min-width:768px) {
    display: flex;
    gap: 6%;
    .box_left {
      width: 50%;
    }
    .box_right {
      width: min(44%,50.6rem);
    }
  }
}
.class_section .img_wrap {
  position: relative;
  &::before {
    display: block;
    content: "";
    position: absolute;
    top: -12%;
    left: 3%;
    z-index: 3;
    @media (min-width:768px) {
      top: max(-17%,-11.9rem);
      left: 5.4%;
    }
  }
}
#eiken_junior .img_wrap::before {
  width: min(43%,13rem);
  aspect-ratio: 130 / 97;
  background: url(img/eigo_class_01.png) no-repeat center / contain;
  @media (min-width:768px) {
    width: min(40.8%,28.6rem);
  }
}
#eiken_senior .img_wrap::before {
  width: min(47.6%,15.7rem);
  aspect-ratio: 157 / 98;
  background: url(img/eigo_class_02.png) no-repeat center / contain;
  @media (min-width:768px) {
    width: min(49.4%,34.3rem);
  }
}
.class_section img {
  width: 100%;
  border: 0.4rem solid #FFF;
  border-radius: 4rem;
  @media (min-width:768px) {
    border-width: 0.5rem;
    border-radius: 6rem;
  }
}
.class_section .box_left p {
  font-family: var(--ff-maru);
  font-size: clamp( 2.4rem, calc( 1.846153846153846rem + 1.5384615384615385vw ), 4.8rem );
  text-align: center;
  margin: 1em 0 4rem;
  @media (min-width:768px) {
    margin-bottom: 0;
  }
}
#eiken_junior .box_left p {
  color: #FFFF6E;
}
#eiken_senior .box_left p {
  color: #CAF1FF;;
}
#season_lesson .box_left .schedule {
  color: #FFFF6E;
  font-family: var(--ff-maru);
  font-size: clamp( 2.4rem, calc( 1.846153846153846rem + 1.5384615384615385vw ), 4.8rem );
  line-height: 1.5;
  margin: 1em 0 4rem;
  @media (min-width:768px) {
    margin-bottom: 0;
  }
  & dt {
    font-weight: 400;
    font-size: var(--fs-20);
    margin-bottom: 0.3em;
  }
  & dd {
    font-size: var(--fs-30);
    letter-spacing: 0.1em;
  }
}
.class_section dl.price_list .item {
  display: flex;
  font-family: var(--ff-maru);
  margin-bottom: 1.6rem;
  & dt {
    font-size: var(--fs-20);
    font-weight: 400;
    &::after {
      content: "：";
    }
    &.other::after {
      content:"　";
    }
  }
  & dd {
    font-size: var(--fs-20);
  }
}
#season_lesson ul.price_list li {
  color: #FFF;
  font-family: var(--ff-maru);
  font-size: var(--fs-20);
  margin-bottom: 1.6rem;
}
.class_section .note {
  display: flex;
  font-size: clamp( 1.2rem, calc( 1.1538461538461538rem + 0.1282051282051282vw ), 1.4rem );
  line-height: 2;
  margin-top: 2em;
  &::before {
    content: "※";
  }
}
.class_section .text {
  line-height: 2;
  margin: 3em 0;
}
#season_lesson .text {
  color: #FFF;
  margin-top: 0;
}
.class_section table  {
  width: min(100%,40rem);
  border-top: 1px solid;

  & caption {
    font-size: 1.4rem;
    text-align: left;
    padding-bottom: 0.5em;
  }
  & tr {
    border-bottom: 1px solid;
  }
  & td {
    font-size: 1.4rem;
    line-height: 1.7;
    padding: 1em;
  }
  & tr:nth-child(1) td {
    font-weight: 700;
  }
}
#eiken_junior table td:nth-child(1) {
  background: #83E5FF;
}
#eiken_senior table td:nth-child(1) {
  background: #F2E827;
}
.class_section .btn {
  margin: 0 auto;
  @media (min-width:768px) {
    margin: 0 auto 0 0;
  }
  &::before {
    display: block;
    content: "";
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background: url(img/icon_mail.png) no-repeat center/ contain;
  }
  &::after {
    display: block;
    content: "";
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background: url(img/icon_link.svg) no-repeat center/ contain;
  }
}
#eiken_junior .btn {
  background: #29ABE2;
}
#eiken_senior .btn {
  background: #D3CD00;
}
.class_section.winter .btn {
  color: #009245;
  background: #FFF;
  &::before {
    background: #009245;
    mask: url(img/icon_mail.png) no-repeat center/ contain;
    -webkit-mask: url(img/icon_mail.png) no-repeat center/ contain;
  }
  &::after {
    background: #009245;
    mask: url(img/icon_link.svg) no-repeat center/ contain;
    -webkit-mask: url(img/icon_link.svg) no-repeat center/ contain;
  }
}
.class_section.summer .btn {
  color: #0071BC;
  background: #FFF;
  &::before {
    background: #0071BC;
    mask: url(img/icon_mail.png) no-repeat center/ contain;
    -webkit-mask: url(img/icon_mail.png) no-repeat center/ contain;
  }
  &::after {
    background: #0071BC;
    mask: url(img/icon_link.svg) no-repeat center/ contain;
    -webkit-mask: url(img/icon_link.svg) no-repeat center/ contain;
  }
}
/*--------------------------------------------------------------
# 講師紹介
--------------------------------------------------------------*/
#teacher {
  padding-top: 5rem;
  background: #F9F9E8;
  @media (min-width:768px) {
    padding-top: 10rem;
  }
}
#teacher .section_title::after {
  margin: 0 auto 10rem;
}
#teacher .item {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  background: #FFF;
  border-radius: 3rem;
  @media (min-width:768px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 7rem 4%;
    border-radius: 6rem;
  }
  + .item {
    margin-top: 7.6rem;
    @media (min-width:768px) {
      padding: 5rem 4%;
    }
  }
}
#teacher .subject {
  position: relative;
  @media (min-width:768px) {
    width: 45%;
    order: 2;
  }
  & img {
    max-width: 150%;
    width: calc(100% + 2rem);
    margin-bottom: -3rem;
    position: relative;
    top: -6rem;
    left: -8%;
    @media (min-width:768px) {
      width: 100%;
      margin-bottom: 0;
      top: -9rem;
      left: 0;
    }
  }
  &.soroban img {
    margin-bottom: -5rem;
    position: relative;
    top: -8rem;
    @media (min-width:768px) {
      margin-bottom: 0;
      top: -9rem;
    }
  }
  &.eigo img {
    margin-bottom: -3rem;
    position: relative;
    top: -6rem;
    @media (min-width:768px) {
      margin-bottom: 0;
      top: -7rem;
    }
  }
}
#teacher .profile_wrap {
  @media (min-width:768px) {
    width: 50%;
    order: 1;
  }
}
#teacher .name {
  font-family: var(--ff-maru);
  font-size: 3.2rem;
  margin-bottom: 0.7em;
  .rep {
    display: block;
    font-size: var(--fs-normal);
    font-weight: 700;
    margin-bottom: 0.7em;
  }
  .last_name {
    display: inline-block;
    color: #29ABE2;
    letter-spacing: 0.1em;
  }
  .first_name {
    display: inline-block;
    color: #D3CD00;
    letter-spacing: 0.1em;
    margin-left: 0.5em;
  }
}
#teacher .license li {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.7em;
  &::before {
    content:"・";
  }
}
#teacher .carrer dt {
  font-size: 1.8rem;
  margin-bottom: 0.7em;
  &::before,
  &::after {
    content:"－";
  }
}
#teacher .carrer dd {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.7em;
  &::before {
    content:"・";
  }
}
#teacher .message {
  line-height: 2;
  width: 100%;
  order: 3;
  &.soroban {
    margin-top: 2em;
  }
  @media (min-width:768px) {
    &.eigo {
      margin-top: -2em;
    }
  }
}
/*--------------------------------------------------------------
# アクセス
--------------------------------------------------------------*/
#access {
  padding-top: 7rem;
  background: #F9F9E8;
  @media (min-width:768px) {
    padding-top: 17rem;
  }
}
#access .section_title {
  margin-bottom: 4rem;
}
#access .content_wrap {
  padding-bottom: 10rem;
  @media (min-width:768px) {
    display: flex;
    justify-content: space-between;
  }
  .box_left {
    margin-bottom: 4rem;
    @media (min-width:768px) {
      width: 51.8%;
      margin-bottom: 0;
    }
  }
  .box_right {
    @media (min-width:768px) {
      width: 43.2%;
    }
  }
}
#access .access_data {
  margin-top: 2rem;
  & dt {
    font-family: var(--ff-maru);
    font-size: var(--fs-24);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1em;
  }
  & dd {
    font-family: var(--ff-maru);
    font-size: 1.8rem;
    line-height: 1.7;
  }
}
#access .btn {
  width: min(100%,28rem);
  margin: 0 auto;
  background: #29ABE2;
  @media (min-width:768px) {
    margin: 0 auto 0 0;
  }
  &::after {
    display: block;
    content: "";
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background: url(img/icon_link.svg) no-repeat center/ contain;
  }
}
.top_btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 50;
  @media (min-width:768px) {
    bottom: 30px;
    right: 30px;
  }
  & a {
    display: flex;
    font-family: var(--ff-maru);
    font-size: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 7rem;
    background: #FFF;
    border-radius: 50%;
    @media (min-width:768px) {
      font-size: 1.2rem;
      width: 8.8rem;
      height: 8.8rem;
    }
    &::before {
      display: block;
      content: "";
      width: 1.7rem;
      height: 1.7rem;
      border-top: 0.1rem solid;
      border-left: 0.1rem solid;
      transform: rotate(45deg);
      @media (min-width:992px) {
        margin-bottom: 0.5rem;
      }
    }
  }
}
