/* --- Reset & Global --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- Layout & Background --- */
.hero-container {
    position: relative;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: flex-start;
    background-size: cover;
    background-position: center;
    overflow: hidden; 
    background-image: url("images/room.png");
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* 白の半透明 */
  z-index: 1;
}

.content-wrapper {
    width: 100%;
    height: 100dvh;
    text-align: center;
    z-index: 3; 
    position: relative;
}

.hero-container,
.content-wrapper {
  min-height: 100dvh;
  height: auto; /* 明示的に上書きしておくと安心 */
}
/* --- Character Images --- */
.teacher-image, .student-image {
    position: absolute;
    bottom: 0;
    height: 100vh; /* Increase image height */
    width: auto;
    z-index: 3;
}

.teacher-image {
    left: -10vw; /* Move partially off-screen */
}

.student-image {
    right: -12.5vw; 
}


/* --- Header & Features --- */
.main-header h1 {
    font-weight: bold;
    color: #000000;
    display: flex; /* Flexbox for alignment */
    align-items: baseline; /* Align text along the baseline */
    justify-content: center; /* Center the headline */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    white-space: nowrap; /* Prevent line breaks */
    z-index: 3;
}
 .logo-main { font-size: clamp(4rem, 6.5vw, 8rem); }                                                                                                       
 .logo-no { font-size: clamp(2rem, 3.5vw, 4rem); }                                                                                                          
 .logo-online { font-size: clamp(3.5rem, 6vw, 6.5rem); }                                                                                                     
 .logo-tutor { font-size: clamp(4.5rem, 7.5vw, 8.75rem); }

.main-header .text-orange {
    color: #FF9900; /* オレンジ色 */
    z-index: 3;
}

.light-overlay {
  position: absolute;
  top: -20%;
  left: 0;
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 60%);
  opacity: 0.5; 
  z-index: 2; 
  pointer-events: none; /
}

.features {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    margin-top: clamp(-1.5rem, -5vw, -1rem);
    z-index: 3; /* Ensure features are above images */

}

.feature-box {
    width: 50vw;
    height: 23vh;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    box-shadow: 0 20px 18px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3; 
}

/* 左のボックスだけ右側に丸み */
.feature-box:first-child {
  border-top-right-radius: 65px;
  border-bottom-right-radius: 65px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* 右のボックスだけ左側に丸み */
.feature-box:last-child {
  border-top-left-radius: 65px;
  border-bottom-left-radius: 65px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
/* 数学・コスパ部分 */
.feature-title-left,
.feature-title-right {
  font-weight: 700;
  display: inline-block;
  font-size: clamp(3.5rem, 4.8vw, 5.8rem); /* 約96px～94px程度に調整 */
  text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
  line-height: 1.1;
}

/* 左のボックスだけ右寄せ */
.feature-box:first-child {
  text-align: right;
  padding-right: 2.5rem; /* 余白ちょっと右に足すといい感じ */
  padding-left: 1.5rem;
}

/* 右のボックスだけ左寄せ */
.feature-box:last-child {
  text-align: left;
  padding-left: 2.5rem;  /* 左に余白たっぷり */
  padding-right: 1.5rem;
}

.feature-box h2 {
  margin-bottom: 0.2rem; /* ← 0.5remから縮める */
  line-height: 0.1;       /* ← 行間も少し詰め気味に */
}

/* 特化型・最強（強調・シャドウあり） */
.feature-highlight {
  font-weight: 700;
  font-size: clamp(4.5rem, 5.3vw, 6.8rem); /* 約110pxに近い */
  color: #FF9900;
  text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
  margin-left: 0.3rem;
}

/* サブテキスト */
.feature-subtext {
  font-size: clamp(1.6rem, 2.3vw, 2.6rem); /* 約54pxに近づけた */
  font-weight: 700;
  letter-spacing: -0.04em;

}

/* --- CTA Section --- */
.cta-section {

     background: linear-gradient(
    to bottom,
    #1C3D5A 0%,
    #3C82C0 100%
  );
    color: #fff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 3.5rem; 
    height: 50dvh; /* 高さを50vhに設定 */
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  text-align: center;
  padding-bottom: 3rem; /* 下の余白を調整 */
  z-index: 1;
}

.catchphrase {
  line-height:1.2; 
}

.main-cta {
  line-height: 1.2; 
   color: #FBFF05;
  text-shadow: 0 0 17px rgba(251, 255, 5, 0.7);
}

.trial-offer {
  line-height: 1.1; 
}

.text-40 {
  font-size: clamp(1.1rem, 2.4vw, 30px);
  font-weight: 400;
}

.text-48 {
  font-size: clamp(1.3rem, 1.8vw, 30px);
}

.text-56 {
  font-size: clamp(1.4rem, 3.2vw, 56px);  
    position: relative; 
    z-index: 5;  
}

.tight {
  letter-spacing: -0.55em;
  display: inline-block;
}

.text-64 {
  font-size: clamp(1.6rem, 3.8vw, 64px);
}

.text-96 {
  font-size: clamp(2.4rem, 5.5vw, 94px);
  font-weight: bold;
}

.underline-highlight {
  position: relative;
  display: inline-block;
}

.underline-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.07em; 
  width: 100%;
  height: 14px;
  background-color: rgba(251, 255, 5, 0.9); 
  box-shadow: 0 0 18px rgba(251, 255, 5, 0.8); 
}

.text-128 {
  font-size: clamp(3rem, 6.9vw, 128px);
}

/* --- Buttons --- */
.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    background: linear-gradient(to bottom, #FF6600 0%, #FF8000 100%);
    padding: 0.05rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
  align-items: center; 
  /* gap: 0.3em; */
}

.btn::after {
  content: "";
  display: inline-block;
  margin-left: 0.7em;
  vertical-align: middle;
  border-top: 0.36em solid transparent;
  border-bottom: 0.36em solid transparent;
  border-left: 0.6em solid white;
}

/* problem-section */
.problem-section {
  background-color: #e9edf0; /* やさしいグレー背景 */
  padding: 4rem 1rem;
  text-align: center;
  position: relative; /* ::afterの位置の基準にするため */
  margin-bottom: 60px; /* 三角形の高さ分のスペースを確保 (40px -> 60px) */
  z-index: 1; /* 三角形が他の要素に隠れないようにするため */
}

/* 下に食い込む三角形を追加 */
.problem-section::after {
    content: "";
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-top: 60px solid #e9edf0; 
}

.problem-title {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.text-orange {
  color: #FF9900;
}

.problem-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.problem-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: clamp(280px, 40vw, 360px); /* カードの幅を少し広めに調整 */
}

.problem-card img {
  width: 100%;
  max-width: 160px;
  height: auto;
  /* HTMLの記述順（p -> img）のため、pタグ側でマージンを調整します */
}

.problem-card p {
  font-size: 1.2rem; /* フォントサイズを少し大きく調整 */
  color: #1C3D5A;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem; /* イラストとの間の余白を確保 */
}

@media (max-width: 768px) {
  .problem-title br.sp-only {
    display: inline;
  }
}
@media (min-width: 769px) {
  .problem-title br.sp-only {
    display: none;
  }
}

/* about-section */


.about-section {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.about-lead {
  font-size: 1.1rem;
  color: #1C3D5A;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.about-heading {
  display: flex;
  flex-direction: row; /* 横並びに変更 */
  justify-content: center;
  align-items: center;
  gap: 2.5rem; /* ロゴとタイトルの間の余白 */
  margin-bottom: 3rem;
}

.about-logo {
  width: 160px; /* ロゴサイズを大きくする */
  height: auto;
  flex-shrink: 0;
}

.about-title {
  font-weight: bold;
  color: #1C3D5A;
  text-align: left; /* タイトルブロック内のテキストを左揃えに */
}

.about-title .subtitle {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
}

.about-title .main-title {
  font-size: clamp(4rem, 7vw, 5.5rem); /* メインタイトルのサイズを大幅に大きく */
  border-bottom: none; /* 元の下線を削除 */
  display: inline-block;
  line-height: 1.1;
  position: relative; /* 二重線の基準位置とする */
  padding-bottom: 12px; /* 二重線のためのスペースを確保 */
  border-bottom: 4px solid #1C3D5A; /* 1本線に変更 */
}

.about-description {
  background-color: #f2f5f7;
  border-left: 4px solid #1C3D5A;
  padding: 2.5rem;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  color: #1C3D5A;
  font-weight:100;
  font-size: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.about-description p {
  margin-bottom: 1.5em; /* 段落の下に余白を追加 */
}

.about-description p:last-child {
  margin-bottom: 0; /* 最後の段落の下の余白は不要なため削除 */
}

/* 「数学」のハイライトをマーカー風に変更 */
.about-description .text-orange {
  color: #FF9900; /* 文字色を少し濃くする */
  font-weight: bold;
}

/* 「効率的な指導法」のハイライトをマーカー風に変更 */
.about-description .highlight {
  color: #1C3D5A;
  font-weight: bold;
}

/* 「合格する」「合格力」の下線を調整 */
.about-description .underline-main {
  font-weight: bold;
  border-bottom: 2.5px solid #1C3D5A;
  padding-bottom: 2px;
}

/* .highlight と .underline-main が両方指定された場合、下線の色をオレンジにする */
.about-description .highlight.underline-main {
  border-bottom:3px solid #f90;
  color: #f90;
}

.about-description .font-bold {
  font-weight: 700;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .about-heading {
    flex-direction: column; /* スマホでは縦並びに戻す */
    gap: 1.5rem;
  }

  .about-title {
    text-align: center;
  }

  .about-description {
    font-size: 1rem;
    padding: 1.5rem;
  }

  .sp-only {
    display: inline;
  }
}

/* cat */

.cta-final {
  background: linear-gradient(to bottom, #1C3D5A 0%, #204765 100%);
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.cta-final-title {
  font-size: clamp(1.5rem, 2.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-final-text {
  font-size: 1.7rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.cta-final-sub {
  font-size: 1rem;
  color: #E0ECF4;
  margin-bottom: 2rem;
}

.cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}


.cta-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.9rem 2.5rem 0.9rem 2rem; /* 右のpaddingを少し広げて矢印のスペースを確保 */
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  position: relative; /* 矢印の位置の基準 */
}

.cta-btn::after {
  content: '';
  position: absolute;
  right: 1em;
  top: 50%;
  margin-top: -4px; /* 矢印の垂直位置を中央に調整 */
  width: 8px; /* 矢印のサイズ */
  height: 8px; /* 矢印のサイズ */
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: right 0.3s ease; /* 矢印の移動をアニメーションさせる */
}

.cta-line {
  background: linear-gradient(to bottom, #FFB500 0%, #FF9800 100%);
  color: #fff;
   box-shadow: 0 0 17px rgba(255, 147, 5, 0.88); 
}

.cta-form {
  background: #fff;
  color: #1C3D5A;
}

.cta-btn:hover {
  transform: scale(1.1); /* ボタンを少し大きくする */
}

.cta-btn:hover::after {
  right: 0.8em; /* 矢印を少し右に動かす */
}


@media (max-width: 768px) {
  .cta-final-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .cta-btn {
    width: 90%;
    max-width: 400px;
    text-align: center;
    justify-content: center;
    font-size: 1.3rem;

  }

  .cta-final-text {
    font-size: 1.2rem;
  }

  .cta-final-sub {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .about-heading {
    flex-direction: column;
  }

  .about-description {
    font-size: 1rem;
  }

  .sp-only {
    display: inline;
  }
}

/* reason-section */

/* reason-section */

.reason-section {
  background-color: #f2f5f7;
  padding: 5rem 1rem; /* 上下の余白を少し広げました */
  text-align: center;
}

.reason-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* フォントサイズを調整 */
  font-weight: 700;
  margin-bottom: 3.5rem; /* カードとの余白を調整 */
}

.reason-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* カード間の余白を調整 */
  max-width: 960px;
  margin: 0 auto;
}

.reason-card {
  display: flex;
  align-items: center; /* 画像とテキストを垂直方向の中央に配置 */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 2.5rem; /* カード内の余白を調整 */
  gap: 2.5rem; /* 画像とテキストの間の余白を調整 */
  text-align: left;
}

.reason-img {
  flex-shrink: 0; /* コンテナが縮んでも画像サイズを維持 */
}

.reason-img img {
  width: 150px; /* 画像の幅を固定 */
  height: auto;
}

.reason-content h3 {
  font-size: 1.5rem; /* 見出しの基本フォントサイズ */
  font-weight: 700;
  line-height: 1.5;
  color: #1C3D5A;
  margin-bottom: 1rem; /* 説明文との余白 */
}

.reason-content .reason-number {
  font-size: 3rem; /* 番号を大きく */
  font-weight: 800;
  color: #1C3D5A;
  margin-right: 0.8rem; /* 番号とテキストの間の余白 */
  float: left; /* テキストを右側に回り込ませる */
  line-height: 1; /* 行の高さを調整して位置を微調整 */
}

.reason-content h3 .highlight {
  font-size: 1.5rem; /* 強調テキストを少し大きく */
  color: #FF9900; /* 強調テキストの色 */
  font-weight: bold;
}

/* floatの回り込みを解除 */
.reason-content h3::after {
  content: '';
  display: block;
  clear: both;
}

.reason-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0; /* p要素自体の下マージンをリセット */
}

/* ２つ目以降のpタグに区切り線を追加し、段落間を表現 */
.reason-content p + p {
  padding-top: 1rem; /* 区切り線からの上パディング */
  border-top: 1px solid #e9edf0; /* 区切り線 */
  margin-top: 0.8rem;
}

.reason-content .orange {
  color: #FF9900;
  font-weight: 600;
}

@media (max-width: 768px) {
.reason-title{
  font-size:1.5rem ;
}

  .reason-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1rem;
  }

  .reason-content h3,
  .reason-content p {
    text-align: left; /* スマホ表示でもテキストは左揃えに */
  }

  .reason-content h3 {
    font-size: 1.3rem;
  }

.reason-content h3 .highlight {
  font-size: 1.2rem;
}

  .reason-img img {
    width: 120px; /* スマホでは少し画像を小さく */
  }

  .reason-content p {
    font-size: 0.9rem;
  }

  .reason-content p:nth-of-type(2) {
    font-size: 0.78rem;
  }
}

/* feature-section */


.feature-section {
  padding: 5rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.feature-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 3.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* PC表示時（769px以上）のレイアウト調整 */
@media (min-width: 769px) {
  /* 【2段目のレイアウト指定】 */
  /* HTMLの記述順で4番目にあたる画像（忘却曲線の図）を、グリッドの「2行目の1列目」に配置 */
  .feature-grid > .feature-image:nth-of-type(2) {
    grid-row: 1;
    grid-column: 2;
  }
  /* HTMLの記述順で3番目にあたるカード（繰り返し学習のカード）を、グリッドの「2行目の2列目」に配置 */
  .feature-grid > .feature-card:nth-of-type(2) {
    grid-row: 2;
    grid-column: 1;
  }
}

.feature-card {
  position: relative;
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1C3D5A;
  background-color: #ffffff;
  border-left: 5px solid #1C3D5A;
  padding: 0.7rem 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.underline-accent {
  border-bottom: 8px solid #FF9900;
}

.feature-card p {
    margin-bottom: 1em;
}

.feature-card p:last-of-type {
    margin-bottom: 0;
}

.card-character {
  position: absolute;
  width: 100px;
  height: auto;
  top: -30px;
  right: -10px;
  z-index: 1;
}

.top-left {
  top: -30px;
  right: -10px;
  left: auto;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
}

 .feature-image-sp  {
display: none;
  }

.feature-summary {
  margin-top: 3.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1C3D5A;

}

.feature-summary .highlight {
  color: #FF9900;
  font-weight: bold;
}



@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-image {
    display: none;
  }

  .feature-image-sp {
    display: block;
    margin: 1.5rem 0;
  }

  .feature-image-sp img {
    width: 100%;
    border-radius: 8px;
  }
  
  /* スマホ表示では順番の入れ替えをリセットするため、PC用の指定を解除 */
  @media (min-width: 769px) {
    .feature-grid > .feature-image:nth-of-type(2) {
      grid-row: auto;
      grid-column: auto;
    }
    .feature-grid > .feature-card:nth-of-type(2) {
      grid-row: auto;
      grid-column: auto;
    }
  }

  .feature-card {
    padding: 2rem 1.5rem;
    height: auto;
  }
  
  .feature-card p {
    font-size: 0.78rem; /* スマホではフォントサイズを小さく */
  }
  .feature-card h3 {
    font-size: 1.1rem;
  }

.feature-summary{
  font-size: 1.2rem; /* スマホではフォントサイズを小さく */
}

  .card-character {
      width: 80px;
      top: -25px;
      right: 5px;
  }
  .top-left {
    top: -25px;
    right: 5px;
  }
}



/* flow-section */

.flow-section {
  background-color: #f2f5f7;
  padding: 5rem 1rem; /* 上下の余白を調整 */
  text-align: center;
}

.flow-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* フォントサイズを調整 */
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 3.5rem; /* タイムラインとの余白を調整 */
}

.flow-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem; /* 番号サークルのスペースを確保 */
  border-left: 3px solid #d6e0e8; /* タイムラインを少し細く */
}

.flow-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem; /* ステップ間の余白を調整 */
  position: relative;
}

/* 最後のステップの下の余白は不要なので削除 */
.flow-step:last-of-type {
  margin-bottom: 0;
}

.flow-number {
  position: absolute;
  left: -5rem; /* (幅の半分 + タイムラインからの距離) で中央に配置 */
  top: 0;
  background-color: #3A5F80; /* 番号サークルの色を変更 */
  color: #fff;
  font-weight: bold;
  width: 3.8rem; /* サークルのサイズを大きく */
  height: 3.8rem; /* サークルのサイズを大きく */
  line-height:3.3rem; /* 文字を垂直中央に */
  text-align: center;
  border-radius: 50%;
  font-size: 1.2rem; /* 番号のフォントサイズを大きく */
  z-index: 2;
  border: 4px solid #f2f5f7; /* 背景色と同じ色の枠線でタイムラインとの重なりを自然に */
}

.flow-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 2.2rem; /* カード内の余白を調整 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* 影を調整 */
  flex: 1;
  position: relative; /* 吹き出しの矢印の位置の基準に */
}

/* 吹き出しの矢印部分を疑似要素で作成 */
.flow-card::before {
  content: '';
  position: absolute;
  top: 1.2rem; /* 位置を微調整 */
  left: -10px; /* カードの外側へ配置 */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0; /* 右向きの三角形を作成 */
  border-color: transparent #fff transparent transparent; /* 三角形の色をカード背景と同じに */
}

.flow-card h3 {
  font-size: 1.5rem; /* 見出しのフォントサイズを調整 */
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 0.8rem;
  text-align: left;
}

.flow-card p {
  font-size: 1rem;
  line-height: 1.8; /* 行間を少し広げる */
  color: #333;
  text-align: left;
}

.flow-summary {
  margin-top: 3rem; /* タイムラインとの余白 */
  font-size: 1.25rem; /* フォントサイズを調整 */
  font-weight: 600;
  color: #1C3D5A;
  background-color: #e9f0f6; /* 背景色を指定 */
  border-left: 4px solid #3A5F80; /* 左のボーダーを指定 */
  padding: 1.5rem 1.8rem; /* 内側の余白 */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-radius: 8px; /* 角を少し丸める */
}

@media (max-width: 768px) {
  .flow-container {
    padding-left: 0; 
    border-left: none;
  }

  .flow-number {
     position: absolute;
    left: 1rem;
    top: -3rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
    line-height: 2.5rem; /* 文字を垂直中央に */
  }

  .flow-card{
    margin: 0.8rem 0; /* カード間の余白を調整 */
    padding: 1.2rem;
  }

  .flow-card::before {
    display: none;
  }
}

/*price-section */

.price-section {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.price-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 1rem;
}

.price-lead {
  font-size: 1.3rem;
  color: #1C3D5A;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.price-lead .highlight-orange {
  color: #FF9900;
  font-size: 1.8rem;
  font-weight: bold;
}

.price-table-wrapper {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  border-radius: 10px;
   border: 1px solid #000000;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;

}

.price-table thead {
  background-color: #1C3D5A;
  color: #fff;
  
}

.price-table th,
.price-table td {
  padding: 2rem;
  font-size: 1.2rem;
}

.price-table .sub {
  font-size: 0.8rem;
  color: #e0ecf4;
}

.price-table td strong {
  font-size: 1.6rem;
  color: #1C3D5A;
}

.price-note {
  background-color: #f2f5f7;
  padding: 1.2rem;
  font-size: 1rem;
  color: #1C3D5A;
  margin-bottom: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.price-trial-box {
  background-color: #e9f0f6;
  border-left: 4px solid #1C3D5A;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.price-trial-box h3 {
  font-size: 1.2rem;
  color: #1C3D5A;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.price-trial-box p {
  font-size: 1rem;
  color: #1C3D5A;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .price-lead {
    font-size: 1rem;
  }

  .price-table th,
  .price-table td {
    font-size: 0.7rem;
    padding: 0.7rem;
  }

  .price-trial-box h3 {
    font-size: 1rem;
  }

  .price-trial-box p {
    font-size: 0.9rem;
  }
.price-lead .highlight-orange{
    font-size: 1.4rem;
  }

  .price-table-wrapper {
    padding: 0 0rem; /* スマホでは左右の余白を追加 */
  }

  .price-note {
    text-align: left; /* スマホでは左揃えに */
    font-size: 1rem;
    padding: 1.5rem;
  }
}



/* campaign-section */


.campaign-section {
  background-color: #f2f5f7;
  padding: 5rem 1rem;
  text-align: center;
}

.campaign-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 1rem;
}

.campaign-subtext {
  font-size: 1.1rem;
  color: #1C3D5A;
  margin-bottom: 3.5rem;
  display: inline-block; /* 下線のためにインラインブロック要素に */
  border-bottom: 1px solid #1C3D5A; /* 下線を追加 */
  padding-bottom: 0.3rem; /* テキストと下線の間の余白 */
}

.campaign-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.campaign-card {
  position: relative;
  background-color: #fff;
  border-radius: 16px; /* 角丸を大きく */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07); /* 影を調整 */
  width: clamp(350px, 40vw, 420px); /* カード幅を調整 */
  padding: 2rem; /* 内側の余白を調整 */
  text-align: left;
  overflow: hidden;
}

.card-icon svg {
  width: 60px; /* アイコンサイズを大きく */
  height: 60px;
}


.icon {
  color: #FF9900; 
}


.campaign-card h3 {
  font-size: 1.5rem; /* 見出しのフォントサイズを大きく */
  font-weight: bold;
  color: #1C3D5A;
  margin-top: 1.4rem;
}

.campaign-card p {
  font-size: 1rem; /* テキストのフォントサイズを調整 */
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
  letter-spacing: 2px; /* 文字間を広げる */
}

.card-note {
  background-color: #fff8ee;
  border: 1px solid #fddfb0;
  border-radius: 8px;
  font-size: 1rem; /* フォントサイズを調整 */
  color: #1C3D5A;
  padding: 1rem 1.2rem; /* パディングを調整 */
  line-height: 1.7;
  text-align: center;
}

.campaign-card .highlight-orange {
  font-size: 1.8rem; /* 強調文字をさらに大きく */
  color: #FF9900;
  font-weight: 900; /* フォントを太く */
  vertical-align:baseline; /* 周りのテキストと高さを合わせる */
}

.card-note .highlight-orange {
    font-size: 1rem;
    font-weight: bold;
}
.highlight-bold{
  font-weight: bold;
}

.card-note .card-note-free {
  font-size: 1.8rem;
  color: #FF9900;
  font-weight: 900;
  vertical-align: baseline;
}


/* カード上部のオレンジ色のグラデーション */
.card-bg-mist {
   position: absolute;
  top: 1.5rem;   
  right: 0.2rem;
  background-color: rgba(255, 153, 0, 0.2); 
  border-radius: 9999px; 
  filter: blur(1rem);
  z-index: 0;
   width: 100%; 
  height: 25%; 
}

.card-ribbon {
  position: absolute;
  top: 18px; /* 位置を調整 */
  right: -60px; /* 位置を調整 */
  background-color: #F39C12; /* リボン色を調整 */
  color: #fff;
  font-size: 0.8rem; /* フォントサイズを調整 */
  font-weight: bold;
  padding: 0.5rem 3rem; /* パディングを調整 */
  padding-right: 5rem;
  transform: rotate(10deg); /* 角度を調整 */
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



@media (max-width: 768px) {

  .campaign-section{
    padding: 3rem 0rem; /* スマホでは上下の余白を少し狭く */
  }
  .campaign-cards {
    flex-direction: column;
    align-items: center;
  }
.card-note {
  padding: 1rem 0.8rem; /* パディングを調整 */
}
.campaign-subtext{
  font-size: 1rem;
  padding: 0 0.5rem; /* パディングを調整 */
}

  .campaign-card {
    text-align: center;
  padding: 1rem;
}
  .campaign-card p {
    font-size: 1rem;
  }

}



/* enroll-flow-section */

.enroll-flow-section {
  background-color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.enroll-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 3rem;
}

.enroll-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
  border-left: 4px solid #d6e0e8;
}

.enroll-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.enroll-number {
  position: absolute;
  left: -5rem; /* (幅の半分 + タイムラインからの距離) で中央に配置 */
  top: 0;
  background-color: #3A5F80; /* 番号サークルの色を変更 */
  color: #fff;
  font-weight: bold;
  width: 3.8rem; /* サークルのサイズを大きく */
  height: 3.8rem; /* サークルのサイズを大きく */
  line-height:3.3rem; /* 文字を垂直中央に */
  text-align: center;
  border-radius: 50%;
  font-size: 1.2rem; /* 番号のフォントサイズを大きく */
  z-index: 2;
  border: 4px solid #f2f5f7; /* 背景色と同じ色の枠線でタイムラインとの重なりを自然に */
}

.enroll-card {
  background-color: #f9fbfc;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1;
  text-align: left;
}

.enroll-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 0.8rem;
}

.enroll-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.enroll-card ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.enroll-card li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  list-style:none;
}

.enroll-note {
    background-color: #e9f0f6;
  border-left: 4px solid #1C3D5A;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .enroll-container {
    padding: 0 1rem; 
    border-left: none;
  }

  .enroll-number {
    position: absolute;
    left: 1rem;
    top: -1.9rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
    line-height: 2.5rem;
  }

  .enroll-card {
    padding: 1.2rem 1.2rem;
     margin: 0.9rem 0; 
  }

  .enroll-card h3 {
    font-size: 1.2rem;
  }

  .enroll-card p,
  .enroll-card li {
    font-size: 0.9rem;
  }

  .enroll-note {
  padding: 1rem;
}

}


/* FAQ */
.faq-section {
  background-color: #f2f5f7;
  padding: 4rem 1rem;
  text-align: center;
}

.faq-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #1C3D5A;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  padding: 1.5rem 3.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  gap: 1rem;
  text-align: left;
}

.faq-icon {
  font-weight: bold;
  color: #1C3D5A;
  font-size: 1.2rem;
  border: 2px solid #1C3D5A;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 24px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.faq-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.faq-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-list{
    padding: 0.4rem;
  }
}

/* フッターCTA */
.footer-cta {
  background-color: #1C3D5A;
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.footer-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-inner p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-orange,
.btn-white {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-orange {
  background-color: #FF9900;
  color: #fff;
}

.btn-white {
  background-color: #fff;
  color: #1C3D5A;
}

.btn-orange:hover,
.btn-white:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-orange,
  .btn-white {
    width: 90%;
    max-width: 360px;
  }

  .footer-inner h2 {
    font-size: 1.5rem;
  }
  .footer-inner p {
    font-size: 0.9rem;
  }
}

/* /* Copyright Footer  */

.copyright-footer {
background-color: #0A1F2E; 
color: rgba(255, 255, 255, 0.748); 
text-align: center;
padding: 2rem 1rem;
font-size: 0.85rem;
font-weight: bold;
}
.copyright-footer p {
margin: 0; 
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {


    .teacher-image, .student-image {
        top: 5vh;      /* さらに上に移動 */
        height: 45vh;
        opacity: 0.4;
        z-index: -1; /* 画像を背景として扱う */
        bottom: auto;
    }

    .teacher-image {
        left: -15vw;    /* 画像の8割が見えるように調整 */
    }

    .student-image {
        right: -20vw;   /* 画像の8割が見えるように調整 */
    }
}

@media (max-width: 768px) {
    .hero-container {
        background-size: contain;
    }

    .main-header h1 {
        justify-content: center;
        line-height: 1.3; /* 行間を詰める */
    }

    .logo-main { font-size: 3.5rem; }
    .logo-no { font-size: 1.8rem; }
    .logo-online { font-size: 3rem; }
    .logo-tutor { font-size: 4rem; }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0;
    }

    .feature-box {
        width: 90vw;
        max-width: 450px;
        height: auto;
        padding: 0.2rem; /* パディングをさらに縮小 */
        box-shadow: 0 8px 12px rgba(0,0,0,0.3);
    }

    .feature-box:first-child,
    .feature-box:last-child {
        border-radius: 30px;
        text-align: center;
        padding: 0.8rem; /* パディングをさらに縮小 */
    }

    .feature-title-left,
    .feature-title-right {
        font-size: 2.5rem;
    }

    .feature-highlight {
        font-size: 3.2rem;
    }

    .feature-subtext {
        font-size: 1.3rem; /* サイズを調整 */
    }

    .cta-section {
        height: auto;
        padding: 1.5rem 1rem;
        margin-top: 0.5rem; /* マージンを詰めて上に配置 */
          z-index: 1;
    }

    .main-cta {
        white-space: nowrap;
    }

    .no-wrap-group {
        display: inline-block;
        white-space: nowrap;
    }

    .text-56 { font-size: 1.8rem; }
    .text-96 { font-size: 3rem; }
    .text-64 { font-size: 2rem; }
    .text-128 { font-size: 11vw; } /* 画面幅に応じて調整 */
    .text-48 { font-size: 1.5rem; }
    .text-40 { font-size: 1.2rem; }

    .underline-highlight::after {
        height: 8px;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
        width: 90%;
        max-width: 400px;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1.3rem;
        text-align: center;
        justify-content: center; /* テキストを中央揃え */
    }

    /* problem-section for SP */
    .problem-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .problem-card {
        width: 90%;
        max-width: 400px;
    }

    /* faq-section for SP */
    .faq-section {
        padding: 3rem 1rem;
    }

    .faq-title {
        font-size: 1.4rem;
    }

    .faq-item {
        padding: 1rem;
        gap: 0.8rem;
        flex-direction: column;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
        line-height: 22px;
    }

    .faq-content h3 {
        font-size: 0.95rem;
    }

    .faq-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-main { font-size: 2.8rem; }
    .logo-no { font-size: 1.5rem; }
    .logo-online { font-size: 2.4rem; }
    .logo-tutor { font-size: 3.2rem; }

    .feature-title-left,
    .feature-title-right {
        font-size: 2.2rem;
    }

    .feature-highlight {
        font-size: 2.8rem;
    }

    .feature-subtext {
        font-size: 1.2rem;
    }

    .text-56 { font-size: 1.5rem; }
    .text-96 { font-size: 2.5rem; }
    .text-64 { font-size: 1.7rem; }
    .text-128 { font-size: 2.8rem; }
    .text-48 { font-size: 1.2rem; }
    .text-40 { font-size: 1.2rem; }
}

/* --- Keyframes for Animations (Optional) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

