@charset "utf-8";

/* =========================================
   First View (Top only)
========================================= */
.fv{
  position: relative;
  width: 100vw;
  height: 95vh;
  margin-left: calc(50% - 50vw); /* pageのmax-widthを突破 */
  overflow: hidden;
  padding: 0;
}
@media (max-width: 1100px){
  .fv{ height: 80vw; }
}
@media (max-width: 768px){
  /*.fv{ height: 90svh; }*/
}
@media (max-width: 540px){
  .fv{ height: 120vw; }
  .fv-bg{ background-position: center left 47%; }
}

/* 背景（メインビジュアル）：画面幅いっぱい */
.fv-bg{
  position: absolute;
  inset: 0;
  background: url("../images/top/main-visual_pc.webp") center / cover no-repeat;
  z-index: 1;
}
@media (max-width: 1100px){
  .fv-bg{
    background-size: auto 110%;
    background-position: center bottom -3vw;
  }
}
@media (max-width: 540px){
  .fv-bg{
    background: url("../images/top/main-visual_sp.webp") no-repeat;
    background-size: auto 110%;
    background-position: center bottom -7vw;
  }
}
/* 中身：最大幅に制限 */
.fv-inner{
  position: relative;
  z-index: 2;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
}
/* 右サイドメニュー（Top only） */
.fv-menu{
  position: absolute;
  top: 140px;
  right: 24px;
  width: 220px;
}
.fv-menu__nav a{
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 10px;
  overflow: hidden;
}
/* 左の縦線 */
.fv-menu__nav a::before{
  content:"";
  position: absolute;
  left: 0;
  top: 12.5%;
  height: 75%;
  width: 1px;
  background: #000;
  z-index: 2;
}
/* 背景ハイライト */
.fv-menu__nav a::after{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hover-duration) var(--hover-ease);
  z-index: 1;
}
.fv-menu__nav a.free-trial-btn{
  border: 1px solid #000;
  margin-top: 20px;
}
.fv-menu__nav a.free-trial-btn::before{
  display: none;
}
.fv-menu__label,
.fv-menu__nav .arrow{
  position: relative;
  z-index: 3;
}
.fv-menu__nav a:hover::after,
.fv-menu__nav a:focus-visible::after{
  transform: scaleX(1);
}
.fv-menu__label{
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  flex: 1;
}
.fv-menu__label small{
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.arrow{
  font-size: 30px;
  opacity: .55;
}

/* FV下メニュー（タブレット・スマホ用）*/
.fv-below-nav {
  display: none;
}
@media (max-width: 1100px){
  .fv-menu{
    display: none;
  }
  .fv-below-nav {
    display: block;
    padding-bottom: 0;
  }
  .fv-below-nav__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: calc(100% - 40px);
    margin: 0 auto;
  }
  .fv-below-nav__nav a{
    color: var(--aqua-green);
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 10px;
    overflow: hidden;
    border: 1px solid var(--aqua-green);
  }
  .fv-below-nav .fv-menu__label{
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
  }
}
@media (max-width: 540px){
  .fv-below-nav__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* FV CTA（Top only） */
.fv-menu__cta{
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 14px 20px 18px;
  background: rgba(255,255,255,.9);
  border-radius: 8px 0 0 0;
  font-size: 20px;
  font-weight: 500;
}
.fv-menu__cta span::after{
  content:"";
  display:inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  background: url("../images/common/arrow_green_circle_right.svg") no-repeat center / contain;
  vertical-align: -4px;
}
.fv-menu__cta:hover{
  background: rgba(40,153,139,.3);
}

/* FVのレスポンシブ */
@media (max-width: 1100px){
  .fv-menu{
    top: 120px;
    right: 16px;
    width: 210px;
  }
  .fv-menu__label{ font-size: 16px; }
  .arrow{ font-size: 28px; }
  .fv-menu__cta{
    right: 16px;
    bottom: max(0px, env(safe-area-inset-bottom));
    border-radius: 10px 10px 0 0;
  }
}
@media (max-width: 900px){
  .fv-menu{
    top: 110px;
    right: 12px;
    width: 190px;
  }
  .fv-menu__nav a{ padding: 12px 8px; }
  .fv-menu__label{ font-size: 15px; }
  .fv-menu__label small{ font-size: 11px; }
  .arrow{ font-size: 26px; }
  .fv-menu__cta{
    font-size: 17px;
    padding: 12px 14px;
    right: 12px;
    bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* =========================================
   Top only: Shibuya-method banner
========================================= */
.shibuya-method{
  padding: 60px 0;
}
.shibuya-method-inner{
  display: block;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #669999;
}
.shibuya-method-banner img{
  width: 100%;
  display: block;
}
.shibuya-method-banner img:hover{
  opacity: .7;
}
@media (max-width: 1100px){
  .shibuya-method{
    padding: 40px 0 0 0;
  }
}
@media (max-width: 540px){
  .shibuya-method{
    padding: 20px 0 20px 0;
  }
}

/* =========================================
  Top only: Topics
========================================= */
#topics {
  border-top: none;
}
.topic-inner{
  width: 100%;
  background: #f5f5f5;
  padding: 50px;
}
#topics h4{
  font-size: 1.05em;
  font-family: var(--font-sans);
  margin: 0 0 1em;
}
table.topic-list{
  width: 100%;
  background: #fff;
  border: none;
  border-collapse: collapse;
}
table.topic-list th,
table.topic-list td {
  padding: 0.85em 1.5em;
}
table.topic-list tbody tr:first-child th,
table.topic-list tbody tr:first-child td {
  padding-top: 1.5em;
}
table.topic-list tbody tr:last-child th,
table.topic-list tbody tr:last-child td {
  padding-bottom: 1.5em;
}
table.topic-list th{
  width: 7em;
}
@media (max-width: 768px){
  .topic-inner{
    padding: 30px 20px;
  }
}
@media (max-width: 540px){
  .topic-inner{
    padding: 24px 12px;
  }
  table.topic-list th,
  table.topic-list td,
  table.topic-list tbody tr:first-child td {
    display: block;
    width: 100%;
    padding: 0.2em 1.0em 0.7em;
  }
  table.topic-list th { padding-right: 0.2em; padding-bottom: 0; }
  table.topic-list tbody tr:last-child th {
    padding-bottom: 0.5em;
  }
}
/* カテゴリタグ（共通） */
#topics .category{
  display:inline-block;
  margin-right:.5em;
  padding:.12em .55em;
  border-radius:4px;
  font-size:.78em;
  line-height:1.2;
  color:#fff;
}
#topics .cat-info   { background:#28998b; }
#topics .cat-experience  { background:#e06a00; }
#topics .cat-voice-child  { background:#6a5acd; }
#topics .cat-voice-kids   { background:#99cc33; }
#topics .cat-voice-jr { background:#f32a5e; }
#topics .cat-uncategorized { background:#666; }
#topics .new{
  display:inline-block;
  color: var(--caution);
  font-weight:600;
  margin-right:.5em;
}

/* =========================================
  Top only: Schools
========================================= */
#schools {
  border-top: none;
}

/* =========================================
  Content Blocks
========================================= */
.card{
  background: #fff;
  padding: 22px;
}
@media (max-width: 540px){
  .card {
    padding: 0;
  }
}
.class-title-group{
  padding-left: 30px;
  border-left: 2px solid #111;
  margin-bottom: 30px;
}
.class-title-group .course{
  font-size: 16px;
}
@media (max-width: 768px){
  .class-title-group{
    padding-left: 18px;
    margin-bottom: 18px;
  }
}
.card h3{
  font-family: var(--font-sans);
  margin: 0 0 5px;
  font-size: 32px;
  font-weight: 700;
}
@media (max-width: 1100px){
  .card h3{ font-size: 28px; }
}
@media (max-width: 425px){
  .card h3{ font-size: 24px; }
}
.card p{
  margin: 0 0 16px;
  color: #222;
  line-height: 1.8;
  font-size: 14px;
}
.card p.desc{
  margin: 0 0 30px;
}
.card .eyebrow{
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.btn::after{
  content: "";
  display:inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 4px);
  right: 10px;
}
.btn:hover{
  background: var(--muted);
}
#trial-title{
  padding-bottom: 15px;
  border-bottom: 2px solid #111;
  margin-bottom: 30px;
}
.school-card{
  background:#fff;
  border: 1px solid var(--line);
  padding: 30px 20px 20px;
  min-height: 150px;
  display:flex;
  flex-direction:column;
  gap: 24px;
  position: relative;
}
.school-card::before{
  content:"";
  width: 0;
  height: 0;
  border-right: 16px solid transparent;
  border-top: 16px solid #000;
  position: absolute;
  top: 0;
  left: 0;
}
.school-card h4{
  margin:0;
  padding: .3em .6em;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  text-align:center;
}
.school-card p{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.school-card .mini-btn{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  background:#fff;
  position: relative;
}
.school-card .mini-btn::after{
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 4px);
  right: 10px;
}
.school-card .mini-btn:hover{
  color: #fff;
  background: var(--muted);
}
.school-card .mini-btn:hover::after{
  border-top-color: #fff;
  border-right-color: #fff;
}
.contents-bottom-link{
  font-size: 14px;
  line-height: 1;
  text-align:right;
  padding: 16px 0;
}
.text-link{
  display: inline-block;
  padding-right: 20px;
  padding-bottom: 12px;
  position: relative;
}
.text-link::after{
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: url("../images/common/arrow_green_circle_right.svg") no-repeat;
  position: absolute;
  top: 0;
  right: 0;
}
.text-link::before{
  content: "";
  width:100%;
  height:1px;
  border-bottom: 1px solid #99cc33;
  position: absolute;
  bottom: 0;
  right: 0;
}
.text-link:hover{
  color: var(--hover);
}

/* =========================================
  Responsive
========================================= */
@media (max-width: 768px){
  .cols-3:has(.school-card){
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px){
  .cols-3:has(.school-card){
    grid-template-columns: 1fr;
  }
}