/* ランスタとは */
.subtitle{
  width: 80%;
}
h1.title-36 {
  position: relative;
  padding: 1rem;
  font-family: 'Noto Sans JP', serif;
  font-size: 2em;
  letter-spacing: 0.1em;
  color: #5b5b5b;
  font-weight: 800;
  display: block;
  box-sizing: border-box;
  max-width: 90%;
  text-align: center; 
  margin: 5%;
  margin-inline: auto;
}

.title-36::before {
  content:'';
  position: absolute;
  left:50%;
  transform: translateX(-50%);
  width: 13%;
  height: 100%;
  display: inline-block;
  rotate: 45deg;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #ff753e;
  z-index: -999;
}


/* コースのポイント */
.RunningStudy {
  text-align: center;
}

/* 見出し */
.RSh2 {
  position: relative;
  display: inline-block;
  padding: 0 45px;
  margin: 1rem;
  font-weight: bold;
}

/* 左右の装飾ライン */
.RSh2:before,
.RSh2:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44px;
  height: 2px;
  background-color: rgb(255, 20, 20);
  transform: translateY(-50%) rotate(-60deg);
}

.RSh2:before {
  left: 0;
}

.RSh2:after {
  right: 0;
}
.RunningStudy {
  margin: 0 auto;
  text-align: center;
  position: relative; /* ←追加：子背景を閉じ込める */
  overflow: hidden;   /* ←セクション外にはみ出さないように */
}

/* 背景アニメ */
.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, rgb(249, 138, 138) 50%, rgb(255, 181, 117) 50%);
  bottom: 0;
  left: -50%;
  opacity: .5;
  position: absolute; /* fixed → absolute に変更 */
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

/* 白背景コンテンツ */
.content {
  background-color: rgba(255,255,255,.8);
  border-radius: .25em;
  box-shadow: 0 0 .25em rgba(0,0,0,.25);
  box-sizing: border-box;
  padding: 0.1em;       /* 余白を調整 */
  position: relative;       /* fixed → relative に変更 */
  margin: 0.5rem auto 1rem auto;        /* センターに自然配置 */
  max-width: 900px;
  transform: none;          /* fixed用の transform を削除 */
  left: auto;               /* 不要なのでリセット */
  top: auto;                /* 不要なのでリセット */
}

#RSp {
  font-family:monospace;
  text-align: left;
}

@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}

.RunningStudy p {
  font-size: 1.05rem;          /* 少し大きめの文字 */
  line-height: 2.1;            /* 行間を広くして読みやすく */
  margin: 20px auto;           /* 上下にゆとり */
  max-width: 800px;            /* 横幅を制限（中央揃え） */
  padding: 0 20px;             /* 左右に余白を追加 */
  text-align: center;            
}

/* -------------------------
   スマホ向けレスポンシブ対応
------------------------- */
@media (max-width: 768px) {
  h1.title-36{
  font-size: 1.44em;
  }
  .title-36::before {
  width:15%;
  height:81%;
  }
}
@media (max-width: 600px) {
  .RSh2 {
    padding: 0 25px; /* 左右余白を縮める */
  }

  .RSh2:before,
  .RSh2:after {
    width: 25px; /* ラインを短く */
  }
    .RunningStudy p {
    font-size: 1rem;       /* スマホでは少し調整 */
    line-height: 1.8;
    padding: 0 15px;
  }
    .highlightP {
    padding: 18px 15px;
    font-size: 1rem;
  }
}

/* =========================
ランスタ基本情報（RunningStudy内）
========================= */

/* セクション内の横幅を既存コンテンツと統一 */
.RunningStudy .rs-info-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* カードデザイン（サイトに合わせてシンプル） */
.RunningStudy .rs-info-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  border-top: 4px solid #ff7a00; /* サイトのアクセントカラー */
}

/* ラベル（小見出し） */
.RunningStudy .rs-info-label {
  font-size: 13px;
  font-weight: bold;
  color: #ff7a00;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* 内容 */
.RunningStudy .rs-info-text {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  line-height: 1.7;
}

/* 注意書き */
.RunningStudy .rs-note {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .RunningStudy .rs-info-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .RunningStudy .rs-info-text {
    font-size: 16px;
  }
}

/* =========================
   ランスタ特徴（中央・バランス修正版）
========================= */

/* 親セクション */
#course {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2列レイアウト */
.banner {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    /* ←これが重要（中央配置） */
    justify-items: center;
}

/* 各ブロック */
.banner li {
    width: 100%;
    max-width: 420px; /* PCでバランス良く */
}

/* 画像 */
.banner li img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   担当コーチボタン（オレンジ）
========================= */
.rs-coach-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #ff7d2d;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}

.rs-coach-btn:hover {
    background: #e6641f;
}

/* =========================
   スマホ（2列維持）
========================= */
@media (max-width: 768px) {
    .banner {
        gap: 15px;
    }

    .banner li {
        max-width: none;
    }

    .rs-coach-btn {
        font-size: 12px;
        padding: 8px 14px;
    }
}




/* =========================
   比較表
========================= */
.rs-compare-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.rs-compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

/* ヘッダー */
.rs-compare th {
  background-color: #ff7d2d;
  color: #fff;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  text-align: center; /* ←中央揃え */
  border: 1px solid #e5e5e5;
}

/* セル基本 */
.rs-compare td {
  padding: 14px;
  font-size: 15px;
  border: 1px solid #e5e5e5;
  text-align: center; /* ←中央揃え（人数・評価・内容） */
}

/* 左の項目列だけ左揃え */
.rs-compare td:first-child {
  text-align: center;
  font-weight: bold;
  background: #fafafa;
  width: 22%;
}

/* RUN & Study列（太字のみ強調・背景白） */
.rs-compare td.highlight-col {
  font-weight: bold;
  color: #d84300;
  background: #ffffff;
}

/* スマホ */
@media (max-width: 768px) {
  .rs-compare th,
  .rs-compare td {
    font-size: 12.5px;
    padding: 10px;
  }

  .rs-compare-message {
    font-size: 14px;
  }
}



/* スケジュール全体を中央寄せ */
.schedule {
    position: relative;
    font-size: 14px;
    max-width: 900px;
    margin: 0 auto 50px auto; /* 中央に配置 */
    padding: 0 20px;
    text-align: center; /* タイトルを中央寄せにするため */
}

/* 縦ライン */
.schedule::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6em; /* 時間の右端に沿わせる */
    width: 4px;
    height: 100%;
    background-color: #ff8754;
    z-index: 0;
}

/* 各項目 */
.schedule li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 3em;
    position: relative;
}

/* 時間表示 */
.schedule_time {
    flex-shrink: 0;
    width: 5em;
    height: 2em;
    border-radius: 6px;
    background-color: #ff800a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1em;
    position: relative;
    z-index: 1; /* 縦線より前に */
}

/* 時間右の丸 */
.schedule_time::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateX(-50%) translateY(-50%);
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #f48433;
    z-index: 1;
}

/* タイトル中央寄せ＋左右の短いライン */
.schedule_content_title {
    position: relative;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.5em;
    padding: 0 0.5em; /* ラインとの余白 */
    display: inline-block; /* ラインが中央寄せになるように */
}

/* タイトル左右のライン */
.schedule_content_title::before,
.schedule_content_title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px; /* 短め */
    height: 2px;
    background-color: #ff7d2d;
}

.schedule_content_title::before {
    left: -35px; /* 少し離す */
}

.schedule_content_title::after {
    right: -35px; /* 少し離す */
}

/* スケジュールの本文 */
.schedule_content {
    width: calc(100% - 6em);
    text-align: left;
}

/* 本文のp */
.schedule_content_detail p {
    margin: 0.3em 0 0 0;
    line-height: 1.6;
}

/* -------------------------
   スマホ対応
------------------------- */
@media (max-width: 768px) {
    .schedule li {
        flex-direction: column;
        align-items: flex-start; /* 左寄せ */
        text-align: left; /* テキストも左寄せ */
        margin-bottom: 2em;
    }

    .schedule_time {
        margin-bottom: 0.5em;
        position: relative;
    }

    .schedule_time::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0%; /* 丸を時間の右側に配置 */
        transform: translateX(-50%) translateY(-50%);
        width: 1em;
        height: 1em;
        border: 2px solid #fff;
        border-radius: 50%;
        background-color:  #ff800a;
        z-index: 1;
    }

    .schedule_content_title {
        font-size: 1rem;
        padding: 0 0.3em;
        text-align: center; /* タイトル中央寄せ */
        display: inline-block; /* ラインも中央に表示 */
        margin: 0.5em 0;
    }

    .schedule_content_title::before,
    .schedule_content_title::after {
        width: 20px;
        left: -25px;
        right: -25px;
    }

    .schedule_content {
        width: 100%;
        text-align: center; /* 本文を中央寄せ */
    }

    .schedule_content_detail p {
        text-align: center; /* 本文も中央寄せ */
    }

    /* 縦ラインを時間枠の左端に配置 */
    .schedule::before {
        left: 5%; /* 縦棒を時間の左端に配置 */
        transform: translateX(0);
    }
}


/* 固定ボタンのスタイル */
.fixed-button-link {
    position: fixed; /* 画面に固定 */
    bottom: 20px; /* 画面の下部に配置（20pxの余白を設ける） */
    left: 50%; /* 水平方向中央に配置 */
    transform: translateX(-50%); /* ボタンを中央に配置 */
    background-color: #d83d00; /* ボタンの背景色 */
    color: #fff; /* ボタン内文字色 */
    text-align: center; /* 文字を中央揃え */
    padding: 12px 30px; /* 上下に少し余白、左右に広い余白 */
    border-radius: 5px; /* 角を丸くする */
    font-size: 1.15rem; /* フォントサイズ */
    font-weight: bold;
    max-width: 100%; /* 親要素の幅を越えないように制限 */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
    text-decoration: none; /* テキストリンクの下線を消す */
    transition: background-color 0.3s ease; /* ホバー時に背景色をスムーズに変更 */
    z-index: 9999; /* 他のコンテンツより前面に表示 */
}

/* ホバー時の背景色 */
.fixed-button-link:hover {
    background-color: #fe8551; /* ホバー時の背景色 */
}

/* スマホ用のレスポンシブ対応 */
@media (max-width: 768px) {
    .fixed-button-link {
        width: 80%; /* 横幅を80%に設定 */
        margin: 0 auto; /* 中央に配置 */
        padding: 12px 0; /* 縦の余白を広めに、横の余白を0に */
    }
}

/* デスクトップ用のスタイル */
@media (min-width: 769px) {
    .fixed-button-link {
        width: 50%; /* デスクトップでは横幅を50%に */
        padding: 15px 30px; /* 余白を調整 */
        margin: 20px auto; /* 上下に少し余白を設定 */
    }
}


/* 料金表 */
/* 親要素のスタイリング */
.afterschool-fees {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto 3rem auto;
    padding: 10px 20px 20px 20px;
    max-width: 900px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* やわらかな影 */
    overflow-x: auto;
}

.afterschool-fees h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #FF6F00;  /* オレンジ色 */
    font-weight: bold;
    letter-spacing: 1px;
}

/* テーブルのスタイリング */
.afterschool-fees table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.afterschool-fees table th, .afterschool-fees table td {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #FF6F00; /* オレンジ色のボーダー */
}

.afterschool-fees table th {
    background-color: #FF6F00;  /* オレンジ色 */
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.afterschool-fees table tr:nth-child(even) {
    background-color: #FFFAF0; /* 薄いクリーム色 */
}

.afterschool-fees table tr:hover {
    background-color: #FFE0B2; /* ホバー時にオレンジの淡い色 */
}

/* 追加情報部分のスタイル */
.additional-fees {
    margin-top:0.5rem;
    padding: 0.3rem;
    background-color: #FFEBE0; /* 薄いオレンジ色 */
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.additional-fees p {
    margin: 5px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .afterschool-fees table th, .afterschool-fees table td {
        padding: 12px;
        font-size: 14px;
    }

    .afterschool-fees h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .afterschool-fees table th, .afterschool-fees table td {
        padding: 1rem;
        font-size: 1rem;
    }

    .afterschool-fees h2 {
        font-size: 2rem;
    }
}

/* flogo の li を中央寄せ */
.flogo li {
    margin: 0.5rem;
    display: flex;
    justify-content: center; /* 横方向中央揃え */
    gap: 20px;               /* 画像間の間隔 */
    align-items: center;     /* 縦方向中央揃え */
}

/* 画像サイズ統一 */
.flogo li a img {
    height: 60px;   /* 高さを揃える */
    width: auto;    /* 縦横比を維持 */
    display: block;
}

