@charset "UTF-8";
/**
 * front-renewalページ専用スタイル
 * クラス名はすべて .front 接頭辞。既存スタイルと衝突しません。
 * ブレイクポイントはサイト内の主要基準（769px）に合わせています。
 */

/* main.cssのbody基準フォントサイズをこのページ限定で上書き（front.cssはmain.cssより後に読み込まれるためこの記述で優先される）
   ※remは常にhtml（ルート）基準のため、他のrem指定を機能させるにはbodyではなくhtmlに設定する */
html {
  font-size: 16px;
}

@media screen and (min-width: 769px) {
  html {
    font-size: clamp(16px, 1.5vw, 22px);
  }
}

body {
  font-size: 1rem;
}

.front {
  --color-black: #000;
  --color-gray: #4c4c4c;
  --color-pink: #ea4e80;
  --color-green: #00bcb3;
  --font-futura: Futura, "Century Gothic", sans-serif;

  color: var(--color-gray);
  background: #fff;
}

.front__inner {
  width: auto;
  margin: 0 auto;
  padding: 0 20px;
}


@media screen and (min-width: 769px) {
  .front__inner {
    width: 80%;
  }
}


/*************************/
/* スクロールフェードイン */
/*************************/

.front-reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.front-reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .front-reveal {
    opacity: 1;
    transition: none;
  }
}

.front-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--color-gray);
}




/*************/
/* ボタン */
/*************/

.front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 14px 28px;
  border-radius: 10px;
  background-color: #fff;
  color: var(--color-gray);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.front-btn:hover {
  background-color: var(--color-pink);
}

.front-btn--outline {
  background-color: #fff;
  color: var(--color-pink);
  border: 2px solid var(--color-pink);
}

.front-btn--outline:hover {
  background-color: var(--color-pink);
  color: #fff;
}

.front-btn--sub {
  width: 100%;
  background-color: #fff;
}

.front-btn--sub:hover {
  background-color: var(--color-pink);
  color: #fff;
}

.front-detail-link-white {
  color: #fff;
  text-align: center;
}
.front-detail-link-white a {
  text-decoration: underline;
}

.front-detail-link-black {
  color: var(--color-black);
  text-align: center;
}
.front-detail-link-black a {
  text-decoration: underline;
}
.front-btn--text__point {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}


/*******************/
/* ファーストビュー */
/*******************/

.front-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 500px;
  padding: 40px 20px;
  overflow: hidden;
  text-align: center;
}

.front-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

/* 左上・右下のコピー画像。サイズ感は暫定 */
.front-hero__copy {
  position: absolute;
  z-index: 1;
  max-width: none;

}

.front-hero__copy--tl-sp {
  display: block;
  top: 70px;
  left: -2px;
  width: auto;
  height: 120px;
}
.front-hero__copy--br-sp {
  display: block;
  right: -2px;
  bottom: 90px;
  width: auto;
  height: 120px;
}
.front-hero__copy--tl-pc {
  display: none;
}
.front-hero__copy--br-pc {
  display: none;
}


/* fv-copy--tl の上に重ねる小さなバッジ */
.front-hero__badges {
  color: var(--color-black);
  position: absolute;
  z-index: 2;
  top: 200px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background-color: #fff;
  color: var(--color-black);
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  .front-hero {
    min-height: 600px;
  }

  .front-hero__copy {
    width: 110%;
  }

  .front-hero__copy--tl-sp {
    width: auto;
    height: 200px;
  }

  .front-hero__copy--br-sp {
    width: auto;
    height: 200px;
    bottom: 130px;
  }
  .front-hero__badges {
    top: 280px;
    left: 20px;
  }
  .front-hero__badge {
    font-size: 0.7rem;
  }

}


@media screen and (min-width: 1200px) {

  .front-hero__copy--tl-sp {
    display: none;
  }
  .front-hero__copy--br-sp {
    display: none;
  }

  .front-hero__copy--tl-pc {
    display: block;
    top: 80px;
    left: -2px;
    width: auto;
    height: 110px;
  }
  .front-hero__copy--br-pc {
    display: block;
    right: -2px;
    bottom: 130px;
    width: auto;
    height: 110px;
  }
  .front-hero__badges {
    top: 200px;
    left: 30px;
  }


}


@media screen and (min-width: 1600px) {


  .front-hero__copy--tl-pc {

    height: 120px;
  }
  .front-hero__copy--br-pc {

    height: 130px;
  }
  .front-hero__badges {
    top: 210px;
  }

}

/*************/
/* 概要 */
/*************/

.front-overview {
  padding: 2rem 0 4rem;
  text-align: center;
}

.front-overview__lead {
  width: auto;
  margin: 0 auto 36px;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
}

.front-overview .front-heading {
  margin: 0 auto 1rem;
  width: auto;
  font-size: 1rem;
}

.front-overview__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  width: auto;
  margin: auto;
  padding: 0;
}

/* 1つ目（マイクラ）だけ横幅100%、残りは50%（2カラム） */
.front-overview__list li:first-child {
  grid-column: 1 / -1;
}

.front-overview__list .front-btn {
  width: 100%;
  height: 100%;
  min-height: 64px;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.6875rem;
  padding: 8px;
  border-radius: 0.5rem;
}

/* 文字色はそれぞれのアイコンSVGの色に合わせる */
.front-btn--mc { color: #00af3c; }
.front-btn--ga { color: #0a82dc; }
.front-btn--sc { color: #ffaa00; }
.front-btn--rb { color: #f03c6e; }
.front-btn--rs { color: #ff6e28; }

/* ホバー時は背景色をそれぞれのテキスト色にし、文字は白に */
.front-btn--mc:hover { background-color: #00af3c; color: #fff; }
.front-btn--ga:hover { background-color: #0a82dc; color: #fff; }
.front-btn--sc:hover { background-color: #ffaa00; color: #fff; }
.front-btn--rb:hover { background-color: #f03c6e; color: #fff; }
.front-btn--rs:hover { background-color: #ff6e28; color: #fff; }

.front-btn__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.front-overview__list .front-btn:hover .front-btn__icon {
  border-color: #fff;
}

.front-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.front-btn__en {
  font-family: var(--font-futura);
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.7;
  text-transform: uppercase;
}

@media screen and (min-width: 769px) {
  .front-overview {
    padding: 4rem 0;
  }

  .front-overview .front__inner {
    width: 70%;
  }


  .front-overview__lead {
    font-size: 1.2rem;
    margin: 0 auto 50px;
  }
  .front-overview__list {
    gap: 10px;
  }

  .front-overview__list .front-btn {
    min-height: 70px;
    font-size: 12px;
  }

  .front-btn__en {
    font-size: 9px;
  }

}

@media screen and (min-width: 1200px) {
  .front-overview .front__inner {
    width: 50%;
  }
  .front-overview__list {
    grid-template-columns: repeat(4, 1fr);
  }
}


/*******************/
/* セクション区切り */
/*******************/

.front-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.front-divider::before,
.front-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-gray);
}

.front-divider__text {
  flex: 0 0 auto;
  font-family: var(--font-futura);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--color-gray);
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  .front-divider {
    gap: 20px;
  }

  .front-divider__text {
    font-size: 1rem;
  }
}


/*************/
/* キャンペーン */
/*************/

.front-campaign {
  padding: 4rem 0;
  text-align: center;
}

.front-campaign__logo {
  margin: 0 0 1rem
}

.front-campaign__logo img {
  margin: 0 auto;
  height: auto;
}

.front-campaign__logo .sp {
  width: 280px;
}
.front-campaign__logo .pc {

}

.front-campaign__label {
  text-align: left;
  margin: 0 0 1rem;
}

.front-campaign__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
}

.front-campaign__item {
  box-sizing: border-box;
  padding: 16px 8px;
  background: #fff;
  border-radius: 16px;
  border: 0.35rem solid var(--color-gray);
}

.front-campaign__item--pink {
  border-color: var(--color-pink);
}

.front-campaign__lead {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-gray);
}

.front-campaign__item--pink .front-campaign__lead {
  color: var(--color-pink);
}

.front-campaign__num {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gray);
}

.front-campaign__item--pink .front-campaign__num {
  color: var(--color-pink);
}

.front-campaign__num span {
  font-size: 0.75rem;
  font-weight: 700;
}

.front-campaign__sub {
  margin: 0 0 14px;
  font-size: 0.625rem;
  color: var(--color-gray);
}

.front-campaign__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-campaign__rows li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* バッジSVGはwidth/height属性を持たずviewBoxのみのため、明示的な幅を与えないと
   flex-direction: row の並びで幅の基準がなくなり画像が0幅に潰れて消えてしまう */
.front-campaign__rows li img {
  width: 100%;
  height: auto;
}

@media screen and (min-width: 769px) {
  .front-campaign__rows li img {
    width: 100%;
  }
}

.front-campaign__badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gray);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.front-campaign__item--pink .front-campaign__badge {
  background: var(--color-pink);
}

.front-campaign__arrow {
  flex: 0 0 auto;
  font-size: 0.625rem;
  color: var(--color-gray);
}

.front-campaign__result {
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray);
}

.front-campaign__note {
  margin: 0 0 2rem;
  font-size: 0.75rem;
}

.front-campaign__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: var(--color-pink);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.front-campaign__cta:hover {
  transform: translateY(-6px);
}



.front-campaign__cta-icon {
  position: relative;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
}

.front-campaign__cta-icon-base,
.front-campaign__cta-icon-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.front-campaign__cta-icon-ring {
  animation: front-campaign-cta-spin 12s linear infinite;
}

@keyframes front-campaign-cta-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-campaign__cta-icon-ring {
    animation: none;
  }
}

.front-campaign__cta-text {
  flex: 1 1 auto;
}

.front-campaign__cta-sub {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
}

.front-campaign__cta-main {
  display: block;
  font-size: 1.4rem;
}

@media screen and (min-width: 769px) {
  .front-campaign {
    padding: 80px 0;
  }

  .front-campaign .front__inner {
    width: 70%;
  }

  .front-campaign__grid {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    gap: 1rem;
  }

  .front-campaign__item {
    padding: 24px 16px;
  }

  .front-campaign__lead {
    font-size: 0.8125rem;
  }

  .front-campaign__num {
    font-size: 2.25rem;
  }

  .front-campaign__num span {
    font-size: 0.875rem;
  }

  .front-campaign__sub {
    font-size: 0.75rem;
  }

  .front-campaign__badge {
    width: 56px;
    height: 56px;
    font-size: 0.75rem;
  }

  .front-campaign__result {
    font-size: 1.875rem;
  }

  .front-campaign__cta {
    padding: 0.7rem 2rem 0.7rem 0.7rem;
  }
}

@media screen and (min-width: 1200px) {
  .front-campaign .front__inner {
    width: 50%;
  }

  .front-campaign__lead img {
    width: 70%;
    margin: 0 auto;
  }


  .front-campaign__rows {
    flex-direction: row;
    justify-content: center;
  }
}


/***********************/
/* カルーセル（共通） */
/***********************/

.front-pickup {
  padding: 4rem 0;
  text-align: center;
}

.front-interview__text {
  margin: 0 auto 28px;
  color: var(--color-gray);
}

.front-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.front-carousel__track::-webkit-scrollbar {
  display: none;
}

.front-carousel__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  background: #f6f6f6;
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  scroll-snap-align: start;
}

.front-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カルーセルごとにアスペクト比が異なるためセクション単位で個別指定する */
.front-pickup .front-carousel__slide {
  aspect-ratio: 5 / 2;
}

.front-pickup .front-carousel__slide img {
  transition: transform 0.3s ease;
}

.front-pickup .front-carousel__slide:hover img {
  transform: scale(1.05);
}

.front-interview .front-carousel__slide {
  aspect-ratio: 1 / 1;
}

.front-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.front-carousel__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-gray);
  color: #fff;
  cursor: pointer;
}

.front-carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.front-carousel__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.front-carousel__arrow[hidden],
.front-carousel__dots[hidden] {
  display: none;
}

.front-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.front-carousel__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-gray);
  cursor: pointer;
}

.front-carousel__dot[aria-current="true"] {
  background: var(--color-pink);
}

@media screen and (min-width: 769px) {
  .front-pickup,
  .front-interview {
    padding: 4rem 0;
  }

  .front-carousel__track {
    grid-auto-columns: calc((99% - 33px) / 3);
  }
}


/*************/
/* 特徴（バナー） */
/*************/

.front-feature {
  padding: 4rem 0;
}

.front-feature__banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.front-feature__banners li {
  flex: 0 1 100%;
  aspect-ratio: 5 / 2;
}

.front-feature__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}

.front-feature__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 769px) {
  .front-feature {
    padding: 4rem 0;
  }

  .front-feature__banners {
    gap: 24px;
  }

  /* front-pickupのカルーセルと同じ3分割比率 */
  .front-feature__banners li {
    flex: 0 1 calc((100% - 48px) / 3);
  }
}

/* front__inner の外（section の直下）に置くことで自然に幅100%になる。vwは使わない（縦スクロールバー分だけ横にはみ出すため） */
.front-marquee {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  background: var(--color-green);
  /* 完全に装飾用の帯なので、iOS Safariのタッチ操作（長押しプレビューでファイル名が
     一瞬表示される等）を無効化する */
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.front-marquee__track {
  --marquee-gap: 0.6rem;
  display: flex;
  gap: var(--marquee-gap);
  width: calc(200% + var(--marquee-gap));
  animation: front-marquee 10s linear infinite;
}
@media screen and (min-width: 769px) {
  .front-marquee__track {
    animation: front-marquee 40s linear infinite;
  }
}

.front-marquee.pc .front-marquee__track {
  --marquee-gap: 1rem;
}

/* 同じ内容のグループを2つ並べる。groupの間・ループの継ぎ目の両方に
   --marquee-gap分の余白ができるよう、幅とアニメーションの移動量を
   CSS変数で連動させている（詳しくは@keyframes front-marqueeのコメント参照）。
   スマホ用(.sp)は10列×10行、PC用(.pc)は20列×5行で、どちらも正方形セルの
   パターンを2枚分敷き詰めることで拡大率を下げている（グループ数はどちらも2のまま） */
.front-marquee__group {
  display: grid;
  gap: 0.6rem;
  flex: 0 0 calc(50% - var(--marquee-gap) / 2);
  box-sizing: border-box;
}

/* スマホ：正方形セルで10行10列。一度に画面幅へ収まる列数は10列 */
.front-marquee.sp .front-marquee__group {
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  aspect-ratio: 1 / 1;
}

.front-marquee__block {
  background-color: #fff;
}

/* スマホ用だけ区割りを変更（PC用の--01等はそのまま共有のため上書き） */
.front-marquee.sp .front-marquee__block--01 {
  grid-column: 1 / 9;
  grid-row: 1 / 6;
}

.front-marquee.sp .front-marquee__block--02 {
  grid-column: 9 / 11;
  grid-row: 4 / 6;
}

.front-marquee.sp .front-marquee__block--04 {
  grid-column: 2 / 6;
  grid-row: 6 / 9;
}

.front-marquee.sp .front-marquee__block--03 {
  grid-column: 6 / 11;
  grid-row: 6 / 11;
}

/* PC：正方形セルで5行20列（従来通り）。一度に画面幅へ収まる列数は20列 */
.front-marquee.pc .front-marquee__group {
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(5, 1fr);
  aspect-ratio: 20 / 5;
  gap: 1rem;
}

.front-marquee__block {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.front-marquee__block.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .front-marquee__block {
    opacity: 1;
    transition: none;
  }
}

.front-marquee__block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PC用のベース配置（黄A・ピンクA・緑A・青。SPは.sp側の上書きを使うため無関係） */
.front-marquee__block--01 {
  grid-column: 1 / 4;
  grid-row: 2 / 5;
}

.front-marquee__block--02 {
  grid-column: 14 / 16;
  grid-row: 2 / 4;
}

.front-marquee__block--03 {
  grid-column: 5 / 11;
  grid-row: 3 / 6;
}

.front-marquee__block--04 {
  grid-column: 4 / 8;
  grid-row: 1 / 3;
}

/* PC用：黄B・緑B・ピンクB（20列グリッドの後半側に配置） */
.front-marquee__block--05 {
  grid-column: 11 / 14;
  grid-row: 1 / 4;
}

.front-marquee__block--07 {
  grid-column: 16 / 21;
  grid-row: 1 / 5;
}

.front-marquee__block--08 {
  grid-column: 13 / 16;
  grid-row: 4 / 6;
}

@keyframes front-marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* group1本体(-50%)に加えて、groupの間にある1つ分のgapも移動距離に含める。
       こうしてループの継ぎ目にも同じ幅の余白ができ、視覚的に途切れなくなる */
    transform: translateX(calc(-50% - var(--marquee-gap) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-marquee__track {
    animation: none;
  }
}

.front-marquee__note {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: left;
}


/*************/
/* 教育方針 */
/*************/

.front-green-wrap {
    position: relative;
    background: var(--color-green);
}

/* wave画像はwrapの下端からさらに外側（次のセクション側）へはみ出させる */
.front-green-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    aspect-ratio: 1000 / 100;
    background: url(../images/front/green-wave-sp.svg) top center no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

@media screen and (min-width: 769px) {
  .front-green-wrap::after {
      background: url(../images/front/green-wave-pc.svg) top center no-repeat;
  }
}

/* front-green-wrap配下の地のテキストは白に統一。
   front-btn/front-carousel__arrowは自前の白背景を持つボタン類のため、
   白文字にすると視認できなくなり対象外（背景色に応じた文字色を維持） */
.front-green-wrap .front-heading,
.front-green-wrap .front-policy__subtitle,
.front-green-wrap .front-policy__text,
.front-green-wrap .front-reason__text,
.front-green-wrap .front-interview__text,
.front-green-wrap .front-marquee__note {
  color: #fff;
}

.front-policy {
  padding: 4rem 0;
}

.front-policy .front-heading {
  text-align: left;
  margin: 0 0 0.8rem;
}

.front-policy__subtitle {
  text-align: left;
  margin: 0 0 1.4rem;
  font-weight: 800;
  color: var(--color-pink);
}

.front-policy__subtitle img {
  display: inline-block;
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0 0.8rem;
}

.front-policy__text {
  margin: 0 auto 3rem;
  text-align: left;
}

.front-policy .front-marquee {
  margin-bottom: 3rem;
}

.front-policy .front-detail-link-white {
  margin: 0 auto 4rem;
}

.front-policy__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


.front-about-ai {
  margin: 4rem auto 0;
  color: #fff;
}
.front-about-ai .front-heading {
  text-align: center;
  margin: 0 0 1.4rem;
}
.front-about-ai__bg {

    padding: 2rem 1rem  1rem;
    border-radius: 1rem;
    max-width: 500px;
    margin: auto;
    background: url(../images/front/ai-back.svg) center center / 15rem auto repeat #0d2b2b;
}

.front-about-ai__texts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.front-about-ai__texts a {
  border: 1px solid #fff;
    border-radius: 0.5rem;
    padding: 1rem;
}


@media screen and (min-width: 769px) {
  .front-policy {
    padding: 90px 0;
  }

  .front-policy__subtitle {
    font-size: 1.875rem;
  }

  .front-policy__subtitle img {
    height: 4rem;
  }

  .front-policy__actions {
    flex-direction: row;
    justify-content: center;
  }



  .front-about-ai__bg {
      padding: 2rem;
      width: 70%;
      max-width: 1000px;
  }

  .front-about-ai__texts {
    flex-direction: row;
  }

  .front-about-ai__text {
    flex: 1 1 0;
  }
}

.front-about-ai__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: underline;
  font-size: 0.75rem;
  line-height: 1.6;
  transition: background-color 0.2s ease;
}

.front-about-ai__link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.front-about-ai__link-img {
  flex: 0 0 auto;
  width: 3.5rem;
  height: auto;
}


/*****************/
/* 選ばれる理由 */
/*****************/

.front-reason {
  padding: 0 0 4rem;
}

.front-reason .front-heading {
  text-align: left;
}

.front-reason .front-heading span {
  display: inline-block;
  margin: 0 0 0.8rem;
}

.front-reason .front-heading img {
  display: inline-block;
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0 0.6rem;
}

.front-reason__text {
  text-align: left;
  margin: 0 auto 3rem;
}

.front-reason .front-marquee {
  margin-bottom: 3rem;
}



@media screen and (min-width: 769px) {
  .front-reason {
  }

  .front-reason .front-heading img {
    height: 4rem;
  }

}


/*******************/
/* 講師インタビュー */
/*******************/

.front-interview {
  padding: 0 0 4rem;
}
.front-interview .front-heading {
  text-align: left;
  margin: 0 0 1.4rem;
}

.front-interview .front-heading span {
  display: inline-block;
  margin: 0 0 0.8rem;
}

.front-interview .front-heading img {
  display: inline-block;
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0 0.6rem;
}

.front-interview__text {
  text-align: left;
  margin: 0 auto 3rem;
  color: var(--color-gray);
}


.front-interview__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.front-interview .front-detail-link-white {
  margin: 2rem auto 0;
}

@media screen and (min-width: 769px) {


  .front-interview .front-heading img {
    height: 4rem;
  }

  .front-interview__actions {
    flex-direction: row;
    justify-content: center;
  }
}


.front-gray-wrap {
  padding: 10vw 0 0;
  background: #f6f6f6 url(../images/front/courses-back.svg) top center repeat;
  background-size: 400px auto;
}
@media screen and (min-width: 769px) {
  .front-gray-wrap {
    padding: 5vw 0 0;
    background-size: 600px auto;
  }
}
/*************/
/* コース一覧 */
/*************/

/* マイクラだけの特設紹介枠。他ブロック同様、白カードに角丸・シャドウを付け、
   MCのブランドカラー（.courses__item.mcと同じ#00a83c）をアクセントにしている */
.front-mcintro {
  margin: 0 0 2rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.front-mcintro__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #00a83c;
}

.front-mcintro__lead {
  margin: 0 0 1.5rem;
  color: var(--color-gray);
}

.front-mcintro__subtitle {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.front-mcintro__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.front-mcintro__list li {
  position: relative;
  padding: 0 0 0 1.6rem;
  margin: 0 0 0.75rem;
  color: var(--color-gray);
}

.front-mcintro__list li:last-child {
  margin-bottom: 0;
}

.front-mcintro__list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.25rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #00a83c;
}

.front-mcintro__btn {
  display: inline-flex;
}

@media screen and (min-width: 769px) {
  .front-mcintro {
    padding: 3rem;
    margin-bottom: 3rem;
  }

  .front-mcintro__title {
    font-size: 1.75rem;
  }

  .front-mcintro__lead {
    font-size: 1rem;
  }

  .front-mcintro__subtitle {
    font-size: 1.25rem;
  }
}

.front-courselist {
  padding: 60px 0 90px;
  text-align: center;
}

/* front-reasonの見出しと同じスタイル */
.front-courselist .front-heading {
  text-align: left;
}

.front-courselist .front-heading span {
  display: inline-block;
  margin: 0 0 0.8rem;
}

.front-courselist .front-heading img {
  display: inline-block;
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0 0.6rem;
}

.front-courselist__text {
  margin: 0 auto 3rem;
  text-align: left;
}

@media screen and (min-width: 769px) {
  .front-courselist .front-heading img {
    height: 4rem;
  }
}

/* 以下、https://kids.proclass.jp/school/shijokarasuma/ の ul.courses__list をそのまま移植。
   元サイトの .courses セクション自体の背景パターン・上下の装飾SVG・
   スクロールリベアル(opacity/transformアニメーション)は移植対象外。
   画像はimages/front/にダウンロードして同梱している */
.courses__list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* スマホ時、.front__innerの右paddingだけ打ち消して右端まで伸ばす（左は現状維持） */
@media screen and (max-width: 768px) {
  .courses__list {
    margin-right: -20px;
    overflow-x: hidden;
  }
}

@media screen and (min-width: 769px) {
  .courses__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.courses__item {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 20px 0 0 20px;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* スマホ時、移植元サイトと同じく画面に入ったタイミングで右からスライドインさせる */
@media screen and (max-width: 768px) {
  .courses__item {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .courses__item.is-visible {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.courses__item::before {
  content: "";
  position: absolute;
  width: 2rem;
  height: 100%;
  top: 0;
  left: 0;
  background-position: center center;
  background-size: 1rem auto;
  background-repeat: repeat-y;
}

.courses__item.mc::before {
  background-color: #00a83c;
  background-image: url(../images/front/courses-en-mc-v.svg);
}
.courses__item.ga::before {
  background-color: #0a80d5;
  background-image: url(../images/front/courses-en-ga-v.svg);
}
.courses__item.sc::before {
  background-color: #ffa300;
  background-image: url(../images/front/courses-en-sc-v.svg);
}
.courses__item.rb::before {
  background-color: #e93c6e;
  background-image: url(../images/front/courses-en-rb-v.svg);
}
.courses__item.rs::before {
  background-color: #ff6e28;
  background-image: url(../images/front/courses-en-rs-v.svg);
}

@media screen and (min-width: 769px) {
  .courses__item {
    border-radius: 20px;
    padding: 4rem 1.5rem 1.5rem 1.5rem;
  }

  .courses__item::before {
    width: 100%;
    height: 2.5rem;
    background-size: auto 1.2rem;
    background-repeat: repeat-x;
  }

  .courses__item.mc::before { background-image: url(../images/front/courses-en-mc-h.svg); }
  .courses__item.ga::before { background-image: url(../images/front/courses-en-ga-h.svg); }
  .courses__item.sc::before { background-image: url(../images/front/courses-en-sc-h.svg); }
  .courses__item.rb::before { background-image: url(../images/front/courses-en-rb-h.svg); }
  .courses__item.rs::before { background-image: url(../images/front/courses-en-rs-h.svg); }
}

.courses__image {
  margin-bottom: 1rem;
}

.courses__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.625rem;
}

.courses__item.mc .courses__name { color: #00a83c; }
.courses__item.ga .courses__name { color: #0a80d5; }
.courses__item.sc .courses__name { color: #ffa300; }
.courses__item.rb .courses__name { color: #e93c6e; }
.courses__item.rs .courses__name { color: #ff6e28; }

.courses__desc {
  font-size: 0.8rem;
  color: #666;
}

.courses__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media screen and (min-width: 500px) {
  .courses__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.courses__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.courses__item.mc .courses__btn { background-color: #00a83c; }
.courses__item.ga .courses__btn { background-color: #0a80d5; }
.courses__item.sc .courses__btn { background-color: #ffa300; }
.courses__item.rb .courses__btn { background-color: #e93c6e; }
.courses__item.rs .courses__btn { background-color: #ff6e28; }

@media screen and (min-width: 769px) {
  .front-courselist {
    padding: 90px 0 120px;
  }
}


/* Price〜Columnの見出し・リードは
   https://kids.proclass.jp/school/shijokarasuma/ の .section-head__en / __title / __text に合わせる */
.front-eyebrow {
  margin: 0 0 0.5rem;
  text-align: left;
  font-family: var(--font-futura);
  font-size: 1.5rem;;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--color-green);
}

@media screen and (min-width: 769px) {
  .front-eyebrow {
    margin-bottom: 0.75rem;
  }
}

.front-price .front-heading,
.front-school .front-heading,
.front-flow .front-heading,
.front-voice .front-heading,
.front-faq .front-heading,
.front-blog .front-heading {
  margin: 0 0 1.5rem;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

/*************/
/* 料金・授業時間 */
/*************/

.front-price {
  padding: 4rem 0;
  text-align: center;
}

.front-price__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-price__table-wrap {
  margin: 0 0 2rem;
  overflow-x: auto;
}

.front-price__note {
  margin: 0 0 2rem;
  text-align: left;
  font-size: 0.75rem;
  color: var(--color-gray);
}

.front-price__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.front-price__table th,
.front-price__table td {
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}

.front-price__table th {
  width: 38%;
  background: var(--color-black);
  color: #fff;
  font-weight: 700;
}

.front-price__table td {
  background: #fff;
  color: var(--color-gray);
}

.front-price__table th span {
  display: block;
  margin-top: 0.2em;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.front-price__table td span {
  display: block;
  margin-top: 0.2em;
  font-size: 0.75rem;
  color: #999;
}

@media screen and (min-width: 769px) {
  .front-price__table {
    font-size: 1rem;
  }

  .front-price__table th {
    width: 30%;
  }
}


/*************/
/* 教室一覧 */
/*************/

.front-school {
  padding: 4rem 0;
  text-align: center;
}

.front-school__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-school__group {
  margin: 0 0 1.5rem;
  text-align: left;
}

.front-school__area {
  margin: 0 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-pink);
  font-size: 1rem;
  font-weight: 700;
}

.front-school__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-school__list a {
  display: block;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: var(--color-gray);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.front-school__list a:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media screen and (min-width: 500px) {
  .front-school__list {
    grid-template-columns: repeat(3, 1fr);
  }
}


/*************/
/* 無料体験の流れ */
/*************/

.front-flow {
  padding: 4rem 0;
  text-align: center;
}

.front-flow__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-flow__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.front-flow__item {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.front-flow__num {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.front-flow__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.front-flow__text {
  margin: 0;
  color: var(--color-gray);
}

@media screen and (min-width: 769px) {
  .front-flow__list {
    grid-template-columns: repeat(3, 1fr);
  }
}


/*************/
/* 保護者・生徒の声 */
/*************/

.front-voice {
  padding: 4rem 0;
  text-align: center;
}

.front-voice__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-voice .front-carousel__slide {
  aspect-ratio: auto;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--color-gray);
  text-align: left;
}

.front-voice__stars {
  margin: 0 0 0.5rem;
  color: var(--color-pink);
  letter-spacing: 0.1em;
}

.front-voice__text {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.front-voice__name {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-gray);
}

.front-voice__actions {
  margin-top: 2rem;
}


/*************/
/* よくある質問 */
/*************/

.front-faq {
  padding: 4rem 0;
  text-align: center;
}

.front-faq__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.front-faq__item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.front-faq__item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.front-faq__item summary::-webkit-details-marker {
  display: none;
}

.front-faq__q {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}

.front-faq__a {
  margin: 0;
  padding: 0 1.5rem 1.25rem 3.25rem;
  color: var(--color-gray);
}


/*************/
/* プログラミング教育コラム */
/*************/

.front-blog {
  padding: 4rem 0;
  text-align: center;
}

.front-blog .front-detail-link-black {
  margin-top: 2rem;
}

.front-blog__lead {
  margin: 0 auto 2rem;
  color: var(--color-gray);
  text-align: left;
}

.front-blog .front-carousel__slide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--color-gray);
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
}

.front-blog__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f6f6;
}

.front-blog__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-blog__date {
  margin: 1rem 1rem 0.25rem;
  font-size: 0.75rem;
  color: var(--color-pink);
}

.front-blog__title {
  margin: 0;
  padding: 0 1rem 1rem;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*************/
/* 最終CTA */
/*************/

.front-final {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: var(--color-pink);
  background-image: url(../images/school/cta-bg.svg);
  background-size: 150%;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.front-final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}

.front-final__heading {
  width: 100%;
}

.front-final__heading img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.front-final__title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
}

.front-final__lead {
  color: rgba(255, 255, 255, 0.85);
}

.front-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.front-final__btn-trial {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.front-final__btn-trial:hover {
  background: #fff;
  color: var(--color-pink);
}

.front-final__btn-contact {
  display: inline-block;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #fff;
  padding: 0 0 0.1rem;
  text-decoration: none;
}

@media screen and (min-width: 769px) {
  .front-final__title {
    font-size: 1.5rem;
  }

  .front-final__title-break {
    display: none;
  }
}

@media screen and (min-width: 1025px) {
  .front-final {
    background-size: 100%;
  }

  .front-final__heading {
    width: 60%;
    margin: 0 auto;
  }
}


/*********************/
/* フローティングボタン */
/*********************/

.front-floatnav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  transform: translateX(-50%);
  background: none;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.front-floatnav.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.front-floatnav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 60px;
  padding: 0 18px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.front-floatnav__btn--sub {
  background-color: var(--color-green);
}

.front-floatnav__btn--sub:hover {
  background-color: color-mix(in srgb, var(--color-green) 80%, white);
}

.front-floatnav__btn--primary {
  background-color: var(--color-pink);
}

.front-floatnav__btn--primary:hover {
  background-color: color-mix(in srgb, var(--color-pink) 80%, white);
}

@media screen and (min-width: 769px) {
  .front-floatnav {
    bottom: 24px;
  }

  .front-floatnav__btn {
    height: 80px;
    padding: 0 4vw;
    font-size: 1rem;
  }
}
