@charset "UTF-8";
html {
  height: 100%;
}
body {
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", 
               "Helvetica Neue", 
               Arial, 
               "Hiragino Kaku Gothic ProN", 
               "Hiragino Sans", 
               Meiryo, 
               sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1rem;       /* ★ここに追加！ */
  line-height: 1.7;      /* ★ここに追加！ */
  color: #333333;        /* ★全体の文字色もここで統一 */
  background-color: var(--color-text-rev);
}
.zen-kaku-gothic-new{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-style: normal;
}
.m-plus-1p{
  font-family: "M PLUS 1p", sans-serif;
  font-style: normal;
}
.m-plus-2{
  font-family: "M PLUS 2", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.montserrat {
  font-family: "Montserrat", sans-serif;  
  font-optical-sizing: auto;
  font-style: normal;
}
.italic{
  font-style: italic;  
}

/* =========================
   TYPOGRAPHY
========================= */
.small {
  /* 最小 2.4rem 〜 最大 4.4rem の間で画面幅に応じて変化 */
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.medium {
  /* 最小 4.8rem 〜 最大 6.2rem */
  font-size: clamp(4.8rem, 7vw, 6.2rem);
  font-weight: 900;
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.large {
  /* 最小 6.2rem 〜 最大 8.4rem */
  font-size: clamp(6.2rem, 10vw, 8.4rem);
  font-weight: 900;
  font-family: "Zen Kaku Gothic New", sans-serif;
}
/* タブレット専用（768px〜1024px）で .small だけを底上げ */
@media (min-width: 768px) and (max-width: 1024px) {
  .small {
    font-size: calc(clamp(2.8rem, 6vw, 4.8rem) * 1.4);
  }
}
/* スマホ時（768px以下）だけ改行を有効にする */
.sp-br {
  display: block;
}
.pc-br {
  display: none;
}
/* スマホ時に座布団の幅が窮屈にならないよう調整 */
.zabuton-text {
  padding: 8px 12px;
  width: 90%; /* 必要に応じて調整してください */
}
@media (min-width: 768px) {
  .sp-br {
    display: none;
  }
  .pc-br {
    display: block;
  }
  .zabuton-text {
    width:fit-content;
  }
}
/* =========================
   COPY
========================= */
.copy {
  color: var(--color-text-rev);
  line-height: 1.15;
}
/* =========================
   TAGS
========================= */


.tag-elem { background:#ff7aa2; color:#fff; }
.tag-mid { background:#4cd964; color:#fff; }
.tag-high { background:#4da3ff; color:#fff; }

.plain {
  background: transparent;
  color: var(--color-text);
}

/* =========================
   LOGO
========================= */
.logo img {
  width: 100%;
  height: auto;
}

.logo {
  width: 30%;
}
@media (min-width: 769px) {
  .logo img {
    width: unset;
  }
  
  .logo {
    width: unset;
  }
}
/* =========================
   HERO
========================= */


.hero-inner {
  width: 100%;
  padding: 0 16px;
  text-align: center;
}

/* =========================
   TEXT EFFECT（安定版）
========================= */
.medium .char {
  color: var(--color-text-rev);
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.large .char {
  /* color: var(--clr-pink-accent) */
  color:var(--clr-pink-accent);
  text-shadow:
    0 8px 20px rgba(0,0,0,0.4),
    0 0 10px rgba(255,77,141,0.25);
}

/* =========================
   ANIMATION
========================= */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  animation: pop 0.7s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.85); }
  60% { transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================
   PROBLEM SECTION（重要）
========================= */
.problem-section {
  background: #2f6fff;
  padding: 100px 0 0;
  color: var(--color-text-rev);
}

.problem-inner {
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* テキスト幅基準 */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
}

.problem-item {
  display: flex;
  gap: 1rem; /* 単位をremに統一 */
  /* スマホの1.3remからPCの2.4remの間を滑らかに補間します */
  font-size: clamp(1.3rem, 3.5vw, 2.4rem);
  font-weight: 600; /* スマホベース */
  line-height: 1.5;
  align-items: center;
  padding: 0.2rem 0; /* パディングも共通化 */
}

/* .problem-item img {
  width: 2rem;
  height: auto;
  margin-top: 3px;
} */
.problem-item img {
  width: clamp(2.4rem, 6vw, 3.2rem);
  height: auto;
  flex-shrink: 0;
  margin-top: 0;
}
/* 画像（テキスト幅追従） */
.problem-image {
  margin-top: 32px;
  width: fit-content;
  max-width: 100%;
}

.problem-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 769px) {

  .problem-section {
    padding: 150px 0 0;
  }
}


/* =========================
   SP CTA（固定フッター）
========================= */
.sp-footer {
  display: flex;
  flex-direction: row;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  padding: 10px;
  gap: 8px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.sp-footer .btn {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* CTA色 */
.sp-footer .primary {
  background: var(--clr-pink-accent);
  color: var(--color-text-rev);
  border: none;
}

.sp-footer .call {
  background: #111;
  color: var(--color-text-rev);
  border: none;
}

.sp-footer .ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
}

/* =========================
   DESKTOP OVERRIDE
========================= */
@media (min-width: 769px) {

  /* LAYOUT */
  .hero-inner,
  .problem-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* PROBLEM PC強化 */
  .problem-list {
    max-width: 650px;
  }

  .problem-item {
    font-weight: 700;
  }
  .btn {
    padding: 10px 14px;
    border: 1px solid #333;
    background: #fff;
    font-size: 0.9rem;
  }

  .btn.primary {
    background: var(--clr-pink-accent);
    color: var(--color-text-rev);
    border: none;
  }

  /* SP CTA非表示 */
  .sp-footer {
    display: none;
  }
}

/* =========================
   HEADER（PC安定化だけ修正）
========================= */
@media (min-width: 769px) {
  .btn {
    border-radius: 6px;
  }
}
/* =========================
 PROBLEM（画像サイズ）
========================= */
.problem-list {
width: fit-content;
max-width: 100%;
}

.problem-image {
  display: inline-block;
  max-width: 100%;
  width:650px;
}

.problem-image img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}

#problem {
  position: relative;
  background: #66aaf1;
}
/* triangle */
.problem-triangle{
  width:0;
  height:0;

  margin:0 auto;

  border-left:50vw solid transparent;
  border-right:50vw solid transparent;
  border-top:80px solid #66aaf1;
}

@media (min-width: 769px) {
  .problem-image {
    width:1000px;
  }
}
/* =========================
（横スクロール事故防止）
========================= */
html, body {
  overflow-x: hidden;
}

.sp-footer .btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 2px;

  padding: 10px 4px;

  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}

.sp-footer .material-icons {
  font-size: 20px;
  line-height: 1;
}
/* PC ヘッダーCTA */
@media (min-width: 769px) {

  .nav .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    padding: 12px 10px;
    gap: 4px;

    text-decoration: none;
    color: var(--color-text-rev);
  }

  .nav .material-icons {
    font-size: 24px;
  }

  .nav .label {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .btn.call {
    background: #333;
  }

  .btn.primary {
    background: var(--clr-pink-accent);
  }

  .btn.ghost {
    background: #2f6fff;
  }
}

/* SP CTA */
.sp-footer .btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

text-decoration: none;
color: var(--color-text-rev);

gap: 2px;
padding: 10px 4px;
}

.sp-footer .material-icons {
font-size: 20px;
}

.sp-footer span:last-child {
font-size: 0.75rem;
font-weight: 700;
}

.sp-footer .call {
background: #333;
}

.sp-footer .primary {
background: var(--clr-pink-accent);
}

.sp-footer .ghost {
background: #2f6fff;
}

.txtimg{display:flex;flex-direction:column;}
.inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 100px;
  /* padding: 0 16px 60px; */
}
/* =========================
   LEARNING SECTION
========================= */
#learning-section {
  background-color: var(--color-text-rev);
  padding-top:60px;
}



/* タイトルスタイル */
.header-text {
  text-align: center;
  margin-bottom: 40px;
}

/* --- 基本設定（スマホ～PC全体に適用） --- */
.header-text h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  color: #2f6fff;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  margin-bottom: clamp(36px, 5vw, 60px);
}

p.sub-lead {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.header-text .main-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  color: var(--clr-pink-accent);
  line-height: 1.2;
  font-size: clamp(3.0rem, 6vw, 6.0rem);
  margin-bottom: clamp(36px, 10vw, 120px);
}

/* --- タブレット用（768px～1024pxの範囲で1.4倍にする） --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-text h2 { font-size: calc(clamp(2.2rem, 4.5vw, 4.5rem) * 1.4); }
  p.sub-lead { font-size: calc(clamp(1.6rem, 2.8vw, 2.8rem) * 1.4); }
  .header-text .main-title { font-size: calc(clamp(3.3rem, 6vw, 6.0rem) * 1.4); }
}


/* --- 共通レイアウト --- */
.content-wrapper {
  display: flex;
  /* タブレット（約768px）以上で横並びに切り替える */
  flex-direction: column; 
  gap: clamp(24px, 5vw, 48px);
  margin-bottom: clamp(24px, 5vw, 120px);
}

@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

.image-box {
  flex: 1;
}

.image-box img {
  width: 100%;
  border-radius: 12px;
}

.text-box {
  flex: 1;
}

.text-box p {
  /* スマホの1.1remからPCの2.0remの間を画面幅に応じて滑らかに変化させる */
  font-size: clamp(1.1rem, 2.2vw, 2.0rem);
  line-height: 1.7;
  font-weight: 600;
}

/* タブレット時（768px〜1024px）のサイズ調整 */
@media (min-width: 768px) and (max-width: 1024px) {
  .text-box p {
    font-size: calc(clamp(1.1rem, 2.2vw, 2.0rem) * 1.3);
  }
}

/* リストボックス */
.training-box {
  padding: clamp(1.6rem, 3vw, 3.6rem);
  background-color: #ff85a2;
  border-radius: 12px;
  margin-top: 1.6rem;
}

.training-box h3 {
  /* スマホ1.4rem 〜 PC2.6rem の間で変化（大きすぎないよう2.6に調整） */
  font-size: clamp(1.4rem, 2.5vw, 2.6rem);
  margin-bottom: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--color-text-rev);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.pointbox {
  background-color: rgba(255, 255, 255, 0.4);
  padding: clamp(1.2rem, 2vw, 2rem);
}

.training-box li {
  text-align: justify;
  font-weight: 700;
  text-indent: -1em;
  padding-left: 1em;
  /* スマホ1.2rem 〜 PC1.8rem の間で変化 */
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  letter-spacing: 0.05rem;
  margin-bottom: 0.5rem; /* リスト間の余白を追加するとより綺麗です */
}

/* --- タブレット用のみ：少しだけ底上げして読みやすく --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .training-box h3 { font-size: calc(clamp(1.4rem, 2.5vw, 2.6rem) * 1.2); }
  .training-box li { font-size: calc(clamp(1.2rem, 1.5vw, 1.8rem) * 1.2); }
}

/* PC向け最適化 */
@media (min-width: 769px) {
  .inner {
    padding: 0 0 150px;
  }

  #learning-section {
    padding-top:150px;
  }

}


/* =========================
   HERO タイトル調整
========================= */
/* 「一人ひとりの～」のテキストサイズと座布団 */
.zabuton-text {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.3);
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  padding: 10px 20px;
  font-weight: bold;
  color: #333;
  margin: 1rem auto;
  
  /* 画面幅に応じてフォントサイズが自動変化 */
  font-size: clamp(1rem, 4vw, 1.6rem);
  line-height: 1.4;
}

/* PC時：「結果が出る！」を1行にする */
@media (min-width: 769px) {
  .copy .large {
    display: inline-block;
    white-space: nowrap; /* 1行にする */
  }
}

/* ボタンのスタイル */
.cta-button-wrapper {
 display:none;
}

.btn-trial {
  display: inline-block;
  background-color: var(--clr-pink-accent);
  color: var(--color-text-rev);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 77, 141, 0.4);
  transition: transform 0.2s;
}
.result-text {
  white-space: nowrap;
  display: inline-block;
}
/* PC向けの大きなサイズ調整 */
@media (min-width: 769px) {
  /* ボタンのスタイル */
  .cta-button-wrapper {
    display:block;
  }
  .copy .large {
    display: inline-block;
  }
  /* ボタンのスタイル */
  .cta-button-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
.catch-lead {
  color: var(--color-text-rev);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/*ファーストビュー*/
h1.brand {
  font-size: 0.7rem;
}
/* タブレット・PC問わず、画面サイズに応じて柔軟に変化 */
h2.target {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  justify-content: center;
  font-size: var(--txt-16);
  margin-bottom: 20px;
  padding-top: 60px;
}

/* タブレット専用（768px〜1024px）でサイズを底上げ */
@media (min-width: 768px) and (max-width: 1024px) {
  h2.target {
    font-size: calc(clamp(0.8rem, 2vw, 1.8rem) * 1.4);
  }
}

/* 小学生コース特徴セクション */
.features-wrapper {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  min-width: 32px;
  text-align: center;
}

.feature-text h3 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: #333;
  font-weight: bold;
}

.feature-text p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
/* このテーブル専用のスタイル */
.course-table {
  width: fit-content;
  border-collapse: collapse;
  font-size: 1.0rem;
  background: #ffffff;
  margin-bottom: 20px;
  width: 100%;
}

.course-table th {
  background: #f4f7fa;
  color: #333;
  padding: 12px 8px;
  border: 1px solid #dcdcdc;
  text-align: center;
  font-weight: bold;
}

.course-table td {
  padding: 12px 8px;
  border: 1px solid #dcdcdc;
  text-align: center;
  color: #555;
}

/* モバイルでの横スクロール対応 */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロール用 */
}

/* 全体を覆うheroセクションを整える */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height:90vh;
  padding: 20px 16px;
  background-image: url('../images/fv-sp.webp');
  background-size: cover;
  background-position: center;
  /* 画像の読み込み前に背景色を表示しておく */
  background-color: #f0f0f0;

}

/* --- PC用（画面が広い時だけ切り替える） --- */
@media (min-width: 769px) {
  .hero {
    background-image: url('../images/fv-pc.webp');
    align-items:flex-start;
    min-height:100vh;
  }
}
.header {
  width: 100%;
  margin-bottom: 0;
}
.header .nav {
  display: none;
}
@media (min-width: 769px) {
  .header {
    margin-bottom: 20px;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
  }
  
  .header .nav {
    display: flex;
    gap: 15px;
  }
  .hero{
    justify-content:flex-start;
    padding:0;
  }
  
}
.tag {
  padding: 0 0.2rem;
  border-radius: 3px;
}

/*reason*/
 #reason .reason-title{
  background: var(--clr-green-theme);
  padding: 60px 0;
  text-align: center;
  margin-bottom:60px;
}
.reason-title-inner{
  position:relative;
}
.reason-title-inner h2{
  position:relative;
}

#reason .chiiki{
  padding-left: 4.6em;
  color:#fff;
}
.reason-title-inner h3{
  line-height:1.2;
  font-size:3.6rem;
}

#reason span.reason4 {
  position:relative;
  font-size: 4rem;
  color:#ff0;
  top: -5.5rem;
}
#reason span.num1{
  font-size: 6.8rem;
  letter-spacing:-0.1em;
}
.reason-title h2 {
  margin-bottom: -6.6rem;
}
.reason-title h3{
  color:#fff;
  font-weight:600;
  font-size:1.8rem;
} 

/**/
.reasonbox-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.one-reason {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.reason-subtitle {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.reason-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--clr-green-theme);
  background: #fff;
  border: 5px solid var(--clr-green-theme);
  width: clamp(6rem, 8vw, 7rem);
  height: clamp(6rem, 8vw, 7rem);
  min-width: clamp(6rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.reason-num span {
  display: inline-block;
  transform: scaleX(0.85);
  font-size: clamp(3rem, 5vw, 5rem);
}

.r-sub-title {
  color: var(--color-text-rev);
  background: var(--clr-green-theme);
  height: clamp(6rem, 8vw, 7rem);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 1.2rem;
  box-sizing: border-box;
  font-size: clamp(1.3rem, 1.4vw, 1.6rem);
}

.reason-content {
  padding: 1.6rem;
}

.reason-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
  font-weight: 500;
  letter-spacing: 0.1rem;
}

.reason-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* タブレット（768px〜1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
  .r-sub-title {
    font-size: 1.2rem;
  }
}

/* パソコン（1025px以上） */
@media (min-width: 1025px) {
  .r-sub-title {
    font-size: 1.6rem;
  }
}

/* グリッドレイアウト（768px以上） */
@media (min-width: 768px) {
  .reasonbox-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2.5rem;
  }

  .one-reason {
    height: 100%;
  }

  .reason-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 1.5rem;
  }

  .reason-content img {
    margin-top: auto;
  }
}
.r-sub-title.kakko {
  text-indent: -0.5em; /* カギカッコの1行目を左に半文字分引き出す */
}
.header-buttons {
  position: absolute;
  top: 10px;  /* 必要に応じて調整 */
  left: 10px; /* 左上に配置 */
  display: flex;
  flex-direction: column; 
  z-index: 100;
}

/* ---  画面幅が広いとき（パソコン・タブレット）の設定 --- */
@media screen and (min-width: 768px) {
  .header-buttons {
      position: absolute;
      top: 20px;   /* パソコンでの元の位置に戻す */
      right: 20px; /* 右側に戻す */
      left: auto;  /* left設定を解除 */
      flex-direction: row; /* パソコンでは横並びに戻す */
      gap: 10px;
  }
}
/*-------------------
他塾との違い
--------------------*/
#difference-other{
  padding:100px 0 0 ;
  background:var(--clr-green-theme);
}
#difference-other .inner{
  padding-bottom:100px;
}
#difference-other h2 {
  font-weight: 900;
  color: var(--color-text-rev);
  text-align: center;
  font-size: 1.7rem;
  padding-bottom: 1.6rem;
}
#difference-other .table-container{
  position:relative;
}

/* 横スクロール */
.table-wrapper{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* テーブル本体 */
table{
  width:100%;
  border-collapse:collapse;
  background:var(--bg-body);

  font-size:13px;
  line-height:1.5;
}
#difference-other table{
  min-width:900px;
}
/* セル共通 */
#difference-other th,
#difference-other td{
  border:1px solid #ddd;
  padding:10px;
  text-align:left;
  vertical-align:top;
  word-break:break-word;
}

/* thはセンタリング */
#difference-other th{
  background:#f5f5f5;
  font-weight:700;
  text-align:center;
  vertical-align:middle;
}

/* 左列（項目名） */
#difference-other td.row-label{
  white-space:nowrap;   /* 改行禁止 */
  font-weight:700;
  background:#f9f9f9;
}

/* ★寺子屋ケイセツ列（強調） */
#difference-other th:nth-child(2){
  background: #fb91be;   /* やさしいピンク */
  color: var(--color-text);
  font-weight:700;
  border: 1px solid #fb91be;
  letter-spacing:0.03em;
}

/* td側（読みやすく軽く目立たせる） */
#difference-other td:nth-child(2){
  background: #ffdceb;   /* ほんのりピンク背景 */
  color:#222;
  font-weight:600;
}
/* 親要素 */
.scroll-hint-wrapper {
  position: relative;
}

/* スクロールヒント */
.scroll-hint {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,0,0,.45);
  color: var(--color-text-rev);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  animation: swipeHint 1.5s infinite;
  transition: opacity .4s ease;
}

.scroll-hint.hide {
  opacity: 0;
  visibility: hidden; /* 完全に消す */
}

@keyframes swipeHint {
  0% { transform: translate(-50%, -50%) translateX(0); }
  50% { transform: translate(-50%, -50%) translateX(10px); }
  100% { transform: translate(-50%, -50%) translateX(0); }
}
/* PC */
@media (min-width:768px){
  #difference-other .inner{
    padding:0;
  }
  #difference-other{
    padding: 150px 1.6rem 0;
  }
  #difference-other h2 {
    font-size: 3.6rem;
    padding-bottom: 60px;
}

  #difference-other table{
    font-size:15px;
  }

  #difference-other th,
  #difference-other td{
    padding:12px;
  }

  /* PCではヒント非表示 */
  .scroll-hint{
    display:none;
  }
}

.teacher-intro {
  padding-top: 1.6rem;
  overflow: hidden;
}

.teacher-intro img {
  float: right;
  width: clamp(140px, 45vw, 520px);
  height: auto;
  margin: 0 0 0 15px;
  shape-outside: url("../images/teacher02.png");
  shape-image-threshold: 0.1;
}
.teacher-intro p {
  /* line-height: 1.3; */
  color: var(--color-text-rev);
  font-weight: 600;
  font-size:clamp(0.9rem, calc(0.9rem + 0.5vw), 1.0rem);
  /* font-size:var(--txt-16); */
}
/*タブレット*/

@media (min-width: 768px) {
  .teacher-intro p {
    line-height: 2.4;
    font-size: clamp(1.4rem, 0.9rem + 0.5vw, 1.4rem);
  }
}
/* PC（1025px以上）の時だけ、文字サイズを大きく変更 */
@media (min-width: 1025px) {
  .teacher-intro {
    padding-top: 60px;
    padding: 60px 1.6rem 0;
  }
  .teacher-intro img {
    width: 400px;
    height: auto;
    margin: 0 0 0 40px;
  }

  .teacher-intro p {
    /* PCの時だけ、このサイズに変更 */
    font-size: 1.8rem;
    line-height: 2.5;
  }
}
/*=============================
//コース案内
=============================*/
#course-section {
  padding-top: 60px;
  background: #f1f1f1;
}

#course-section h2 {
  text-align: center;
  font-size: 2.4rem;
}
/* カード全体 */
.course-card {
  margin: 60px auto 20px; /* 写真のはみ出し分、上の余白を確保 */
  /* border-radius: 20px; */
  position: relative;
  overflow: visible; /* 写真をはみ出させるために必須 */
}

.course-card:last-child {
  margin-bottom:0;
}
/* タイトル */
.course-header {
  border-top-left-radius:2.4rem;
  padding: 2.4rem 0 2.4rem 1rem;
  /* border-radius: 17px 17px 0 0; */
  position: relative; /* 写真の基準点 */
  z-index:5;
}
#elementary-course .course-header {
  background: var(--clr-pink-elem);
}
#middle-course .course-header {
  background: var(--clr-green-theme);
}
#high-course .course-header {
  background: var(--clr-blue-high);
}
/* 小学生コースの文字 */
.course-subtitle h3 {
  color: var(--color-text-rev);
  display: block;
  font-size: clamp(1.5rem, 4vw, 3.6rem);
}

/* 上にはみ出す写真 */
#elementary-course .header-img {
  position: absolute;
  right: 0; 
  width: 53vw;
  height: auto; 
  z-index: 10;
  bottom: 0;
}
#middle-course .header-img {
  position: absolute;
  right: 1em;
  width: 30vw; 
  height: auto; 
  bottom: 0;
}

#high-course .header-img {
  position: absolute;
  right: 1em;
  width: 40vw;
  height: auto;
  z-index: 10;
  bottom: 0;
}
/* ボディ（白背景） */
.course-body {
  padding: 2.4rem 1.6rem;
  background:var(--bg-body);
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
}

#elementary-course .course-body{
  border: 3px solid var(--color-elem);
  border-top:none;
}
#middle-course .course-body{
  border: 3px solid var(--clr-green-theme);
  border-top:none;
}
#high-course .course-body{
  border: 3px solid var(--clr-blue-high);
  border-top:none;
}
.catchphrase{
  text-align:center;
  font-weight:900;
  font-size:7vw;
  line-height:1.2;
  margin-bottom:2.4rem;
}
#elementary-course .catchphrase{
  color:var(--color-elem);
}
#middle-course .catchphrase{
  color:var(--clr-green-theme);
}
#high-course .catchphrase{
  color:var(--clr-blue-high);
}
#elementary-course ul.feature-list {
  background: #ffe9f2;
}
#middle-course ul.feature-list {
  background: #e6fff2;
}
#high-course ul.feature-list {
  background: #c5e6ff;
}

@media screen and (min-width: 768px) {
  #course-section {
    padding-top: 150px;
  }
  .course-header {
    border-top-left-radius:90px;
    padding: 2.4rem 0 2.4rem 3.6rem;
  }
  #course-section h2 {
    font-size: 4.5rem;
    margin-bottom: 150px;
  }
  /* カード全体 */
  .course-card {
    margin: 60px auto 150px;
  }
  .course-card:last-child{
    margin-bottom:0;
  }
  #elementary-course .header-img {
    width: 40%;
  }
  #middle-course .header-img {
    width: 20%;
  }
  #high-course .header-img {
    width:25%;
  }
  .course-body {
    padding: 4.8rem;
    background:var(--bg-body);
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
  }
  .note01{
    font-size:1rem;
    width:80%;
    margin:0 auto;
  }
}

#elementary-course .course-body{
  border: 6px solid var(--color-elem);
  border-top:none;
}
#middle-course .course-body{
  border: 6px solid var(--clr-green-theme);
  border-top:none;
}

#high-course .course-body{
  border: 6px solid var(--clr-blue-high);
  border-top:none;
}

/* タブレット時のみ余白を調整 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .course-card {
    margin-bottom: 100px; 
  }
}

/* --- パソコン（1024px以上） --- */
@media screen and (min-width: 1024px) {

  .catchphrase {
    font-size: 4.8rem;
    margin-bottom: 5.2rem;
    letter-spacing: 0.1rem;
  }
}
/* --- 箇条書き（主役） --- */
ul.feature-list {
  padding: 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 2.4rem;
}

/* --- 説明文（脇役） --- */
.description {
  /* 最大値を 1.4rem に絞り、箇条書き(最大2.4rem)より明らかに小さくする */
  font-size: clamp(1.0rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.1rem;
  text-align: justify;
  margin: 0 auto 2.5rem;
  color: #555;
}

/* タブレット（768px〜1023px） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  ul.feature-list {
    padding: 1.4rem 2rem;
    width: 85%;
    margin-bottom: 3rem;
  }
  .description {
    width: 85%;
    /* 箇条書きより一回り小さく固定 */
    font-size: 1.4rem; 
  }
}

/* パソコン（1024px以上） */
@media screen and (min-width: 1024px) {
  ul.feature-list {
    padding: 1.6rem 2rem;
    width: 80%;
    margin-bottom: 3.6rem;
  }
  .description {
    width: 80%;
    /* PCでも箇条書きより確実に小さく */
    font-size: 1.4rem; 
  }
}
/* --- 共通の装飾（かっこよさと密度感） --- */
ul.feature-list {
  padding: 1.0rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  list-style: none;
  /* 左側のアクセントラインは共通化 */
  border-left: 4px solid #333;
}

ul.feature-list li {
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}
ul.feature-list li:last-child{
  margin-bottom:0;
}

/* --- 個別の背景色とライン色 --- */

/* 小学生：ピンク系 */
#elementary-course ul.feature-list {
  background: #ffe9f2;
  border-left-color: #d63384;
}
#elementary-course ul.feature-list li { color: #882244; }

/* 中学生：グリーン系 */
#middle-course ul.feature-list {
  background: #e6fff2;
  border-left-color: #28a745;
}
#middle-course ul.feature-list li { color: #1e5a2d; }

/* 高校生：ブルー系 */
#high-course ul.feature-list {
  background: #c5e6ff;
  border-left-color: #1a4f78;
}
#high-course ul.feature-list li { color: #1a4f78; }

/*----------------------------
体験までのフロー
------------------------------*/
.experience-section {
  padding-top:100px;
}
.flow-container {
  background-color: #b8e9ff;
  border-radius: 2.4rem;
  border: 6px solid var(--color-brand);
}
/*上部先生写真とコメント*/
.flow-hero {
  display: flex;
  flex-direction: row;
  margin-bottom:-2.4rem;
}
.teacher-img{
  width: 45%;
  position: relative;
  top: -2.4rem;
  height:auto;
  padding-left: 0.6rem;
}
.teacher-img img{
  width:100%;
  height:auto;
}
.teacher-message{
  width: 55%;
  text-align:justify;
  font-size: 1.0rem;
  font-weight:600;
  padding-top: 1rem;
  padding-right: 1.6rem;
}

/* タブレット〜PC未満 (768px〜1023px) */
@media screen and (min-width: 768px) {
  .experience-section{
    padding-top:100px;
  }
  .flow-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom:-40px;
  }
  .teacher-img {
    width: 35%;
    top: -40px;
    padding-left: 2.0rem;
    flex-shrink: 0; /* 画像が潰れるのを防ぐ */
  }
  .teacher-message {
    width: 65%;
    font-size: 1.6rem;
    padding-top: 2.0rem; /* 中央揃えにするので少し調整 */
    padding-right: 3.0rem;
    padding-left: 2.0rem;
    line-height: 1.5;
    position: relative;
    top: -2.4rem;
  }

}

/* PCサイズ（1024px以上）の調整 */
@media screen and (min-width: 1024px) {
  .experience-section{
    padding-top:150px;
  }
  .flow-hero {
    align-items: center; 
    margin-bottom:-60px;
  }
  .teacher-img {
    width: 30%;
    top: -60px;
    padding-left: 2.4rem;
  }
  .teacher-message {
    width: 70%;
    font-size: 2.0rem;
    padding-top: 0;
    padding-right: 4.8rem;
    padding-left: 3.2rem;
    line-height: 1.7;
  }
}
.step-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 1.6rem 1.6rem;
}

.step-card {
  background: var(--bg-body);
}

.step-header {
  background:var(--color-brand);
  color: var(--color-text-rev);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.step-num {
  font-weight: bold;
  background: #fff;
  color:var(--color-brand);
  padding: 5px 10px;
  border-radius: 3em;
}

.step-body {
  padding: 1rem;
}

.time-label {
  background: #ffffffc2;
  padding: 2px 8px;
  font-weight: bold;
  position: absolute;
}

.step-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.step-card-total .step-header-total {
  background: var(--color-brand);
  color: var(--color-text-rev);
  text-align: center;
  padding: 10px;
  margin-bottom: 0;
}
.step-card-total .step-title {
  font-size: 1.2rem;
}

.step-card-total .step-desc {
  margin-bottom: 0;
}
@media screen and (min-width: 768px) {
  
  .step-card-wrap {
    flex-direction: row;
    justify-content: center;
    padding:0 1.6rem 1.6rem;
  }
}
/* PCサイズ（横並び） */
@media screen and (min-width: 1024px) {
  
  .step-card-wrap {
    padding:0 4.8rem 4.8rem;
  }
  .step-card {
    /* width: 30%; */
  }
}
.header-step-wrap {
  display: flex;
  flex-direction: column;
}

p.step-desc {
  color: var(--color-brand);
  width: 100%;
  padding: 1rem 1rem 0;
  font-weight: 600;
}


/*-------------------
入力フォーム
--------------------*/
#trial{
  padding-top:0;
}
#trial .inner {
  padding-bottom: 0;
}

#trial h2{
  font-size:var(--txt-48);
  text-align:center;
  line-height:1.2;
  margin-bottom:1.6rem;
  font-weight: 900;
  letter-spacing: 0.1rem;
  color: var(--color-high);
}
.form-wrapper {
  background: #ffffff;
  padding: var(--sp-md);
  border-radius: 16px;
  border: 3px solid var(--color-brand);
  box-shadow: 0 10px 25px rgba(0,33,102,0.08);
}
.form-note{
  font-size: var(--txt-14);
  margin-bottom: var(--sp-md);
}
.form-group {
  margin-bottom: 1.6rem;
}
.form-group label {
  display: block;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-tex);
}
.form-control {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 3px solid #cbd5e0;
  border-radius: 8px;
  background-color: #fcfdfd;
}

/* 💡 フォーム内専用の「送信ボタン」 */
.form-btn {
  display: block;
  width: 100%;            
  background: linear-gradient(180deg, #2ecc71 0%, var(--btn-send) 100%); 
  color: #ffffff;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 0 #00994d, 0 6px 12px rgba(0, 204, 102, 0.15);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  transition: all 0.1s;
  border: none;           
  cursor: pointer;        
}
.form-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #00994d, 0 2px 6px rgba(0, 204, 102, 0.15);
}

/* 💡 スマホ固定追従フッター */
.bottom-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 34, 68, 0.96); 
  padding: 10px 15px 12px;
  text-align: center;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  border-top: 3px solid var(--green1);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.bottom-sticky-cta.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bottom-sticky-cta p {
  color: #ffffff; 
  font-size: 0.8rem;
  margin-bottom: 6px;
  font-weight: normal;
  letter-spacing: 0.05em;
}
.bottom-sticky-cta .btn {
  padding: 11px 20px;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 #b34700;
}
.form-group {margin-bottom: var(--sp-sm);}
.form-control { width: 100%; padding: 0.5rem; }
.field-wrapper {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}
.field-wrapper {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}
@media screen and (min-width: 768px) {
  .form-wrapper { max-width: 650px; margin: 0 auto; padding: 45px; }
  .bottom-sticky-cta { display: none; }
  .form-note{text-align:center;}
}
/*資料請求モーダル*/
/* --- モーダル用CSS --- */

/* 背景（オーバーレイ） */
.modal-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow-y: auto; /* フォームが長い場合に対応 */
  padding: var(--sp-sm);
  box-sizing: border-box;
}

/* モーダルの中身 */
.modal-content {
  background: #fff;
  margin: 40px auto;
  padding: var(--sp-md);
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
}

/* モーダル内フォームの余白調整 */
.modal-content .form-group {
  margin-bottom: var(--sp-sm);
}

.modal-content .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.modal-content .form-btn {
  width: 100%;
  padding: 15px;
  background-color: #007bff; /* サイトのデザインに合わせて変更してください */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
/*プライバシーポリシー*/
.privacy-scroll-box {
  height: 6rem;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  font-size: var(--txt-14);
}
.pvpbtn {
  margin-bottom: var(--sp-md);
}
@media screen and (min-width: 768px) {
  .privacy-scroll-box {

    width: 80%;
    margin: 0 auto;
  }
	.pvpbtn {
    margin:0 auto;
    width:80%;
    margin-bottom: var(--sp-md);
	}
}

/*-------------------
校舎案内
--------------------*/
#school-info .inner{
  padding-bottom:0;
}
.school-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border: 1rem solid var(--color-brand);
  border-radius: 8px;
  background: #fff;
  margin-top:100px;
}

.school-name {
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-align: center;
  font-weight:700;
  color:var(--color-brand);
  letter-spacing: 0.1rem;
}

.contact-info {
  text-align: left;
  margin-bottom: 24px;
}
.contact-title{
  display:inline-block;
  padding:0.2rem 1rem;
  border:2px solid var(--color-brand);
  border-radius:3em;
  font-weight:600;
  color:var(--color-brand);
}
.contact-address {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size:1.2rem;
}
.contact-tel{
  font-size:1.2rem;
  margin-bottom: 8px;
}
.tel-link,
.instagram-link{
  display: inline-block;
  color: #333;
  text-decoration: underline;
  font-weight: bold;
}

.visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding:1rem;
}

.visual-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* --- タブレット以上（600px以上）で横並び --- */
@media (min-width: 600px) {
  
  .school-card{
    padding:2rem;
  }
  .school-name {
    font-size: 2.0rem;
  }
  .visual-wrapper {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }
  
  .visual-img {
    width: 45%; 
    max-width: 350px;
  }
  
}


  /* ==========================================================
   キャンペーン用追従バナー
   ========================================================== */

/* 1. スマホ用（横並び＋テキスト全幅） */
.cam-sticky-banner-wrap {
  position: fixed;
  bottom: 90px;
  left: 0px;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cam-sticky-banner-card {
  background-color: #fff;
  border: 6px solid #ff9fb8;
  border-left:none;
  padding: 10px 12px;
  display: flex;
  flex-direction: row; 
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

/* スマホ用：7月中入塾で */
.cam-text-top {
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: #333;
  margin-bottom: 2px;
}

.cam-banner-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cam-banner-icon { font-size: 22px; }

.cam-text-main {
  font-size: 16px;
  font-weight: 900;
  color: #d6336c;
  line-height: 1.2;
}
/* --- タブレット専用（768px～1024px） --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .cam-sticky-banner-wrap {
    bottom: 120px; 
    left: 20px;
  }
  
  .cam-sticky-banner-card {
    padding: 12px 20px; /* PC版より少しコンパクトに */
  }

  .cam-text-main {
    font-size: 20px; /* 文字サイズを少し抑えて高さを稼ぐ */
  }
}

/* PC用（縦並び・今のレイアウトを再現） */
@media (min-width: 768px) {
  .cam-sticky-banner-wrap {
    bottom: 30px;
    left: 30px;
    right: auto;
  }

  .cam-sticky-banner-card {
    border: 8px solid #ff9fb8;
    padding: 20px 30px; 
    border-radius: 12px;   /* 角を丸くするだけで一気に洗練されます */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    flex-direction: column;
    gap: 12px;
  }

  .cam-text-top {
    font-size: 16px;
    border-bottom: 1px solid #ffccd8; /* 枠線よりさらに淡いピンクに */
    padding-bottom: 8px;
    width: 100%;
    color: #444; /* 文字色を真っ黒ではなくグレーにして馴染ませる */
  }

  .cam-banner-icon { font-size: 35px; }

  .cam-text-main {
    font-size: 24px;
    font-weight: 800; /* 900だと太すぎて野暮ったくなるので800に調整 */
    color: #d6336c;   /* ピンクを少し暗め（落ち着いた色）に */
    text-align: center;
  }
}