@charset "UTF-8";

/* 基本設定 */
*{padding:0;margin:0;}

.wrapper{
  width: 100%;
  background-image: url("../images/zentai-back-green.jpg");
  background-repeat: repeat;
  /* ここは全幅のまま */
}

.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;          /* ★白箱を固定（重要） */
}

html, body{
  margin: 0;
  padding: 0;
}



/* =========================
   Header variables fallback
   ========================= */
:root{
  --header-max: 1280px;
  --pc-header-h: 100px;
  --sp-header-h: 50px;
  --text: #404040;
  --border: #cccccc;
  --sp-bg: rgba(191, 255, 127, 0.3);
  --sp-panel-bg: rgb(250, 255, 244);
  --shadow: 0px 5px 8px -5px rgba(0,0,0,0.5);
  --font-serif: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
}

/* =========================
   PC 共通（デフォルト）
   ========================= */
.site-header{
  width: 100%;
  max-width: var(--header-max);
  height: var(--pc-header-h);
  background: #ffffff;
  box-shadow: var(--shadow);
  box-sizing: border-box;
  padding-top: 13px;
  overflow: visible;
  margin: 0 auto;
  position: relative; /* overlay/navをheader外に置いても安全 */
  z-index: 10;
}

/* 内部をflex化 */
.site-header .header-inner{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 左：教室名 */
.site-header .header-left{
  width: 50%;
  padding-top: 17px;
  box-sizing: border-box;
}
.site-header .header-left > a{
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  padding-left: 30px;
  font-family: var(--font-serif);
  font-weight: 500;
  display: inline-block;
  line-height: 1.2;
}

/* 右：PCナビ */
.site-header .header-nav-pc{
  width: 50%;
  padding-top: 20px;
  text-align: right;
  box-sizing: border-box;
  padding-right: 30px;
  white-space: nowrap;
}

.site-header .header-nav-pc > a{
  color: var(--text);
  border-right: 1px solid var(--border);
  text-decoration: none;
  padding-right: 10px;
  margin-right: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-family: var(--font-serif);
  font-weight: 500;
}
.site-header .header-nav-pc > a:last-child{
  margin-right: 0;
  border-right: 0;
  padding-right: 0;
}
.site-header .header-nav-pc > a:hover{
  text-decoration: underline;
}

/* SPナビボタンはPCで非表示 */
.site-header .header-nav-sp{
  display: none;
}

/* 中間幅対策 */
@media (max-width: 1100px){
  .site-header .header-left > a{ font-size: 20px; }
  .site-header .header-nav-pc{ padding-right: 20px; }
  .site-header .header-nav-pc > a{
    font-size: 12.5px; padding-right: 8px; margin-right: 8px;
  }
}
@media (max-width: 980px){
  .site-header .header-left > a{ font-size: 19px; padding-left: 20px; }
  .site-header .header-nav-pc{ padding-right: 15px; }
  .site-header .header-nav-pc > a{
    font-size: 12px; padding-right: 7px; margin-right: 7px;
  }
}

/* =========================
   SPヘッダー（整列＋SPナビ）
   ========================= */
@media (max-width: 767px){
  html, body{
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }

  /* ありがちな“スクロール用コンテナ”を解除（必要なら対象を追加） */
  .wrapper,
  .container,
  main,
  #main-content{
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }

  /* ヘッダー自体も念のため通常フローへ */
  .site-header{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: none;
    height: var(--sp-header-h);
    margin: 0;
	background: rgba(191, 255, 127, 0.1);  
    z-index: 1000; /* sp-nav(9999)より下でOK。通常表示で隠れない程度に */
	padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box; /* 念のため */  
  }

  /* ヘッダー内部を完全に中央揃え */
  .site-header .header-inner{
    display: flex;
    align-items: center !important;
    height: 100%;
  }

  /* タイトル部分もflexで中央に */
  .site-header .header-left{
    display: flex;
    align-items: center;
    height: 100%;
	padding-top: 0 !important;
    padding-bottom: 0 !important;  
  }

  /* テキスト自体もブロックにして安定 */
  .site-header .header-left > a{
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
  }


  .site-header .header-nav-pc{ display: none; }
  .site-header .header-nav-sp{ display: block; }

  /* トグルボタン（44pxタップ領域） */
  .site-header .sp-nav-toggle{
    width: 44px;
    height: var(--sp-header-h);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative; /* barsの基準 */
  }

  /* ハンバーガー線（安定版） */
  .site-header .sp-nav-toggle__bars{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: #4a4a4a;
    transform: translate(-50%, -50%);
  }

  .site-header .sp-nav-toggle__bars::before,
  .site-header .sp-nav-toggle__bars::after{
    content: "";
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: #4a4a4a;
  }
  .site-header .sp-nav-toggle__bars::before{ top: -8px; }
  .site-header .sp-nav-toggle__bars::after{  top:  8px; }

  /* オーバーレイ */
  .sp-nav-overlay{
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
  }
  .sp-nav-overlay.is-open{ opacity: 1; }

  /* スライドパネル */
  .sp-nav{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 92%;
    height: 100%;
    background: var(--sp-panel-bg);
    box-sizing: border-box;
    overflow: auto;
    transform: translateX(-105%);
    transition: transform 0.7s ease-in-out;
    -webkit-overflow-scrolling: touch;
  }
  .sp-nav.is-open{
    transform: translateX(0);
    box-shadow: 6px 0 25px rgba(0,0,0,.15);
  }

  .sp-nav__inner{
    padding: 5% 5% 24px;
    outline: none;
  }

  .sp-nav-close{
    position: sticky;
    top: 8px;
    margin-left: auto;
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
  }

  /* ul/liのデフォルト崩れ防止（重要） */
  .sp-nav-list{
    margin: 0 0 30px 0;
    padding: 0;
  }
  .sp-nav-list > li{
    list-style: none;              /* ← 黒丸を消す */
    position: relative;
    width: 95%;
    margin-bottom: 6px;
    line-height: 1.5;
    padding: 12px 0;
    border-bottom: 1px solid #d4d4d4;
    box-sizing: border-box;
  }
  .sp-nav-list > li::after{
    content: '';
    width: 6px;
    height: 6px;
    border-top: solid 1px #8a8a8a;
    border-right: solid 1px #8a8a8a;
    position: absolute;
    top: 50%;
    right: 25px;
    margin-top: -4px;
    transform: rotate(45deg);
  }
  .sp-nav-list > li > a{
    color: var(--text);
    text-decoration: none;
    display: block;
    padding-left: 10%;
    font-family: var(--font-serif);
    font-weight: 500;
  }

  /* SNS */
  .sp-menu-insta,
  .sp-menu-blog{
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    background-repeat: no-repeat;
    background-position: 0% center;
    background-size: 7%;
    display: flex;
    align-items: center;
  }
  .sp-menu-insta{ background-image: url("../images/insta.png"); }
  .sp-menu-blog{  background-image: url("../images/blog-aicon.svg"); }

  .sp-menu-insta > a,
  .sp-menu-blog > a{
    color: #404040;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 2px;
    padding-left: 38px;
    font-family: var(--font-serif);
    font-weight: 500;
    display: block;
  }

  /* フォーカス可視化 */
  .sp-nav-toggle:focus-visible,
  .sp-nav a:focus-visible,
  .sp-nav-close:focus-visible{
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 2px;
  }
}

/* 背景スクロール抑止 */
body.is-sp-nav-open{
  overflow: hidden;
  touch-action: none;
}


/* pcサイトで使っているCSS*/
/* pc見出しタグ */

/* pcトップメイン*/

/* =========================================================
   メインビジュアル（PC配置維持 / SPは画像下に タイトル→文章→ボタン）
   - ボタン色：サイトに合わせて #6b8e23
   - SPの文字コンテンツ背景：薄緑（透明）
   ========================================================= */

/* ===== PC基準 ===== */
.hero{
  width: 100%;
  padding-top: 10px;
  margin-bottom: 80px;
  background-image: url("../images/pc-main-back-gakuhu-green1.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-position: 0 0;
  box-sizing: border-box;
}

.hero-inner{
  width: 92%;              /* ←少し締める */
  margin: 0 auto;
  padding: 30px 0 30px;    /* ←縦余白を小さく */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;               /* ←間隔を小さく */
  box-sizing: border-box;
}

/* 画像カラム */
.hero-media{
  width: 55%;              /* ←右を小さくする分、左を少しだけ広げる */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative; /* SPで重ね要素を使う場合の基準（今回はSPで非表示にするが害なし） */
}

/* 画像を「枠ごと」作る（元デザインの白枠を維持） */
.hero-media img{
  width: 432px;
  max-width: 100%;
  height: auto;
  display: block;

  border: 10px solid #ffffff;
  box-sizing: border-box;

  opacity: 0;
  animation: hero-media-in 1.5s ease-out forwards;
}

@keyframes hero-media-in{
  0%{ transform: translateX(-40px); opacity: 0; }
  100%{ transform: translateX(0); opacity: 1; }
}

/* 右ボックス（PC：小さく調整） */
.hero-box{
  width: 45%;              /* ←50%→45% */
  padding: 45px 30px;      /* ←70/40→45/30 */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-sizing: border-box;
}

/* catchcopy（共通の文字スタイル） */
.hero-catchcopy{
  color: #2c2c2c;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
  font-weight: 500;
}

/* PC用：右ボックス内の大見出し（必要に応じて小さく） */
.hero-catchcopy--pc{
  font-size: 28px;         /* ←35→28 */
  letter-spacing: 3px;     /* ←4→3 */
  line-height: 1.2;        /* ←1→1.2（詰まりすぎ防止） */
  text-align: center;
  padding-bottom: 12px;    /* ←15→12 */
}

/* SP用：PCでは非表示（SPでも要件上使わない） */
.hero-catchcopy--sp{
  display: none;
}

.hero-text{
  width: 90%;              /* ←83→90（小さい箱でも窮屈にならない） */
  margin: 0 auto;
  padding-top: 14px;       /* ←20→14 */
  font-size: 15px;         /* ←17→15 */
  color: #383838;
  letter-spacing: 1px;
  line-height: 1.7;        /* ←180%→1.7 */
  font-family: "Arial Rounded MT Bold", Helvetica, sans-serif;
  box-sizing: border-box;
  text-align: center;
}

/* ===== ボタン（PC：コンテンツ左右中央 / サイト色） ===== */
.hero-btn{
  display: block;
  width: fit-content;
  min-width: 200px;        /* ←220→200 */

  margin: 22px auto 0;     /* ←26→22 */
  padding: 10px 28px;      /* ←12/34→10/28 */

  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;         /* ←追加（全体の縮小に合わせる） */

  background: #6b8e23;     /* ←サイト色に合わせる */
  color: #ffffff;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;

  border-radius: 999px;
  box-sizing: border-box;

  box-shadow: 0 0 0 3px #6b8e23;
  border: 1px solid #ffffff;
}

/* テキスト（ここを動かす） */
.hero-btn__text{
  display: inline-block;
  transition: transform 0.2s ease;
}

/* PCのみ hover */
@media (hover:hover){
  .hero-btn:hover .hero-btn__text{
    transform: translateY(-5px);
  }
}

/* ===== 中間幅（タブレット） ===== */
@media (max-width: 1100px){
  .hero-inner{
    width: 94%;
    gap: 18px;
    padding: 26px 0 10px;
  }

  .hero-box{
    padding: 40px 26px;    /* ←タブレットでも重くならないように */
  }

  .hero-catchcopy--pc{
    font-size: 26px;
    letter-spacing: 2px;
  }

  .hero-text{
    font-size: 14.5px;
  }

  .hero-btn{
    min-width: 190px;
    padding: 10px 26px;
  }
}
/* =========================================================
   SP（固定ヘッダー50px前提）
   画像の下に：タイトル → 文章 → ボタン
   ========================================================= */
@media (max-width: 767px){

  /* SPではPC背景を無効化 */
  .hero{
    background-image: none;
    background-color: #ffffff;
    margin-bottom: 30px;
    padding-top: 0;
  }

  /* 2カラム解除 */
  .hero-inner{
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
  }

  .hero-media{
    width: 100%;
    height: auto;          /* ★固定300pxをやめる */
    margin-top: 50px;      /* 固定ヘッダー高さ */
    overflow: visible;     /* ★hiddenをやめる（切れ防止） */
    box-sizing: border-box;
  }

  /* 画像：全体が見えるようにする */
  .hero-media img{
    width: 100%;
    max-width: 100%;
    height: auto;          /* ★100%をやめる */
    display: block;

    object-fit: contain;   /* ★cover→contain：全体を収める */
    border: 0;

    animation: none;
    opacity: 1;
    transform: none;
  }

  /* ★SP要件：画像に重ねる帯は使わないので非表示 */
  .hero-catchcopy--sp{
    display: none !important;
  }

  /* ★SPでは文字コンテンツを画像下に表示（サイトに合う薄緑背景） */
  .hero-box{
    display: block;
    width: 100%;
    padding: 26px 16px;

    border-radius: 0;
    background: rgba(191,255,127,0.25); /* ←薄緑（透明） */
    border-top: 1px solid #bfe595;

    box-shadow: none;
    box-sizing: border-box;
  }

  /* タイトル（SP用にサイズ調整） */
  .hero-catchcopy--pc{
    display: block;
    font-size: 22px;
    letter-spacing: 2px;
    padding-bottom: 12px;
  }

  .hero-text{
    display: block;
    width: min(520px, 100%);
    margin: 0 auto;
    padding-top: 10px;
    font-size: 14px;
    line-height: 1.8;
  }

  /* ★SPボタン：100%で安全に収める（色はPCと統一） */
  .hero-btn{
    display: block;
    width: min(520px, 100%);
    max-width: 100%;
    min-width: 0;

    height: auto;
    padding: 12px 16px;
  font-weight: 500;	  
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
    margin: 18px auto 0;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 帯用の線アニメは使わない */
  .hero-line{
    display: none;
  }
}
/* =========================================
   見出しコンポーネント（統一版）
   ========================================= */

.section-heading{
  position: relative;
  box-sizing: border-box;
  overflow: visible; /* 装飾が外に出ても切らない */
scroll-margin-top: 70px;
  width: min(900px, 92%);
  margin: 60px auto 60px;
}

/* 中身（テキスト側）だけをレイアウト対象にする */
.section-heading__content{
  position: relative;
  z-index: 1;
  box-sizing: border-box;

  /* 旧版の “padding-top: 30px” 相当 */
  padding-top: 30px;
  padding-bottom: 10px;
}

/* ===== 左上葉っぱ（旧版に寄せる） ===== */
.section-heading::before{
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;

  background-image: url("../images/pc-midashi-kazari-ue.svg");
  background-repeat: no-repeat;
  background-size: contain;

  /* 旧版(12%相当)に寄せる：やや大きめ */
  width: 108px;
  height: 108px;

  left: 0;
  top: 0; /* 旧版 background-position: 0% 0% に寄せる */
}

/* ===== 右下葉っぱ（旧版に寄せる） ===== */
.section-heading::after{
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;

  background-image: url("../images/pc-midashi-kazari-shita.svg");
  background-repeat: no-repeat;
  background-size: contain;

  width: 108px;
  height: 108px;

  right: 0;
  bottom: 0; /* 旧版 background-position: 100% 100% に寄せる */
}

/* ===== 見出し本文（共通） ===== */
.section-heading__main{
  width: 85%;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  line-height: 1;
  letter-spacing: 3px;
  padding-bottom:12px;
  color: #404040;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

.section-heading--h1 .section-heading__main{ font-size: 24px; }
.section-heading--h2 .section-heading__main{ font-size: 24px; }

.section-heading__subInH1{
  display: inline-block;
  font-size: 14px;
  letter-spacing: 4px;
  padding-bottom: 5px;
}

.section-heading__name{
  display: inline-block;
  font-size: 24px;
  letter-spacing: 3px;
}

/* 横線 */
.section-heading__line{
  width: 85%;
  max-width: 750px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 英語表記（ここで見出し下の余白を作る） */
.section-heading__en{
  width: 100%;
  text-align: center;
  margin: 10px 0 30px; /* ← 旧版の “10px 0 30px” に戻す */

  font-size: 30px;
  color: #404040;
  letter-spacing: 2px;
  font-family: "Tangerine", cursive;
}

/* =========================================
   SP（スマホ）
   ========================================= */
@media (max-width: 767px){

  .section-heading{
    width: 100%;
    margin: 80px auto 60px;
  }

  .section-heading__content{
    padding-top: 28px;
    padding-bottom: 0;
  }

  /* SPの葉っぱサイズ */
  .section-heading::before,
  .section-heading::after{
    width: 78px;
    height: 78px;
  }

  /* 右下葉っぱの位置（上下はここで動かす） */
  .section-heading::after{
    bottom: -30px;  /* ← 右側を上げたいなら 18→24 など */
  }

  .section-heading__main{
    width: 85%;
    max-width: 700px;
    padding-bottom:10px;	  
  }

  .section-heading--h1 .section-heading__main,
  .section-heading--h2 .section-heading__main{
    font-size: 20px;
  }


  .section-heading__name{ font-size: 20px; }

  .section-heading__subInH1{
    font-size: 15px;
    letter-spacing: 2px;
  }

  .section-heading__en{
    width: 70%;
    margin: 10px auto 10px;
    font-size: 24px;
    color: #2a2a2a;
  }

  .section-heading .title-sen1{
    width: 85%;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* ★要望：h2だけ左葉っぱをもう少し上 */
  .section-heading--h2::before{
    top: -6px; /* ← -2pxより少し上。-10pxなどでもOK */
  }
}


/* =========================================
   トップページ 教室紹介（レスポンシブ統一版）
   ========================================= */

.top-shoukai{
  width: 100%;
  margin-bottom: 100px;
  box-sizing: border-box;
}

.top-shoukai-inner{
  width: 100%;
  max-width: 700px;        /* ← PC横幅 */
  margin: 0 auto;          /* 中央寄せ */
  padding: 0 20px;         /* ← SP左右余白 */
  box-sizing: border-box;
}

.top-shoukai-inner > p{
  font-size: 16px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* =========================================
   SP微調整
   ========================================= */

@media (max-width: 767px){

  .top-shoukai{
    margin-bottom: 80px;
  }

  .top-shoukai-inner{
    padding: 0 18px;   /* 少しだけ余白を調整 */
  }

  .top-shoukai-inner > p{
    font-size: 15px;
    line-height: 185%;
  }
}

/* =========================================
   トップページ 教室風景（レスポンシブ統一版）
   ========================================= */

.lesson-scenes{
  width: 100%;
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 40px 0;
  background: #fff4ea;
  box-sizing: border-box;
}

.lesson-scenes__inner{
  width: 100%;
  max-width: 1180px;     /* PCの外枠（元の1180を踏襲） */
  margin: 0 auto;
  padding: 0 20px;       /* 画面が狭い時の保険 */
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;             /* カラム間 */
}

.lesson-scenes__item{
  box-sizing: border-box;
}

.lesson-scenes__photo{
  width: 100%;
  max-width: 300px;
  margin: 0 auto 30px;
  aspect-ratio: 4 / 3;   /* ←表示比率を固定 */
  overflow: hidden;
  border-radius: 10px;	
}

.lesson-scenes__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ←トリミング表示 */
  display: block;
}

.lesson-scenes__text{
  width: 100%;
  max-width: 300px;      /* 元の300px感を維持 */
  margin: 0 auto;
}

.lesson-scenes__text > p{
  font-size: 15px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* =========================================
   中間幅（タブレット）: 2カラム
   ========================================= */
@media (max-width: 960px){
  .lesson-scenes{
    margin-bottom: 40px;
  }

  .lesson-scenes__inner{
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

/* =========================================
   スマホ: 1カラム + 左右余白をしっかり
   ========================================= */
@media (max-width: 767px){

  .lesson-scenes{
    margin-bottom: 40px;
    padding: 60px 0;
    background: #fffaf4;   /* 元のSP背景に寄せる */
  }

  .lesson-scenes__inner{
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 18px;       /* ←スマホ左右余白 */
    max-width: 600px;      /* 読みやすさ優先 */
  }

  .lesson-scenes__photo{
    max-width: 95%;
    aspect-ratio: 4 / 3;  /* PCと同じ比率に固定 */
    overflow: hidden;
    border-radius: 10px;	  
  }

  .lesson-scenes__photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lesson-scenes__text{
    max-width: 85%;
  }

  .lesson-scenes__text > p{
    font-size: 16px;
    color: #3f3f3f;
    line-height: 180%;
  }
}

/* =========================
   トップ：各レッスン（統合レスポンシブ）
========================= */

.top-kakulessen-zentai{
  width: 100%;
  padding: 40px 0;
  background: #ffffff;
  margin-bottom: 120px;
}

.top-kakulessen-inner{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 4枚カード：PCは2カラム、狭くなると1カラム */
.top-kakulessen-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  /* 5枚目が1枚だけの行になる時、中央寄せにしたい場合は有効化 */
  /* justify-content: center; */
}

.top-kakulessen-card{
  /* ★ 余った1枚が横幅いっぱいに伸びないように変更（grow=0） */
  flex: 0 1 calc((100% - 20px) / 2); /* 2カラム（gap=20px前提） */
  min-width: 320px;                  /* ここを下回ると折り返して1カラムへ */
  box-sizing: border-box;
}

/* カード本体（PC/SPで共通化） */
.top-kakulessen-card-inner{
  width: 100%;
  padding: 20px 10px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  box-shadow: 3px 3px 6px #cccccc;
  background: #ffffff;
  background-image: url("../images/lesson-back.jpg");
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 100%;
  box-sizing: border-box;
}

/* 本文 */
.top-kakulessen-bun{
  width: 90%;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 17px;
}

.top-kakulessen-bun > p{
  width: 98%;
  font-size: 16px;
  padding: 10px;
  letter-spacing: 1px;
  line-height: 180%;
  color: #404040;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

/* 見出しブロック */
.top-lessen-midashi{
  position: relative;
  width: 95%;
  margin: 0 auto 20px;
  text-align: center;
  --icon-w: 22px;
}

/* アイコン */
.top-lessen-midashi::before{
  content: "";
  position: absolute;
  width: var(--icon-w);
  aspect-ratio: 32 / 100;
  height: auto;
  top: 14%;
  left: 0;
  background-image: url("../images/gkref.svg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 102%;
  pointer-events: none;
}

/* ===== このブロック専用：h2-midashi を上書き ===== */
.top-lessen-midashi > .h2-midashi{
  width: auto;
  max-width: none;
  margin: 0;
  text-align: left;
  letter-spacing: 1px;
  padding-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #cccccc;

  font-size: 20px;
  color: #404040;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
  font-weight: 500;

  padding-left: 50px; /* アイコン分 */
}

/* =========================
   SP（1カラム化＋微調整）
========================= */
@media (max-width: 767px){
  .top-kakulessen-zentai{
    padding: 0px 0 20px;
    margin-bottom: 100px;
  }

  .top-kakulessen-grid{
    gap: 30px;
  }

  .top-kakulessen-card{
    flex: 1 1 100%;
    min-width: 0;
  }

  .top-lessen-midashi{
    width: 90%;
    margin: -10px auto 0px; /* 既存SPの雰囲気を踏襲 */
    --icon-w: 20px;
  }

  .top-lessen-midashi::before{
    top: 14%;
    transform: none;
  }

  .top-lessen-midashi > .h2-midashi{
    padding-left: 30px;        /* SPはアイコン分を小さく */
    font-size: 20px;           /* 既存SPに合わせて20px維持 */
  }

  .top-kakulessen-bun{
    width: 90%;
    padding-bottom: 20px;
  }

  .top-kakulessen-bun > p{
    font-size: 16px;
  }
}

/* =========================================
   特長：完全レスポンシブ（HTML1つ）
   ========================================= */

.tokuchou{
  width: 100%;
  margin-bottom: 120px;
}

.tokuchou__inner{
  width: min(800px, 92%);
  margin: 0 auto;
}

/* 1行（01 + 内容） */
.tokuchou__item{
  display: flex;
  align-items: stretch;
  margin: 0 0 20px;
}

/* 背景色（元デザイン踏襲） */
.tokuchou__item--1{ background: rgba(191, 234, 149, 0.7); }
.tokuchou__item--2{ background: rgba(255, 213, 213, 1); }
.tokuchou__item--3{ background: rgba(213, 234, 255, 1); }

/* 左：番号 */
.tokuchou__num{
  flex: 0 0 200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tokuchou__num > p{
  margin: 0;
  font-size: 150px;
  line-height: 1;
  color: #ffffff;
  padding-top: 30px;
  text-align: center;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

/* 右：本文（アニメーション用ラッパーが来ても崩れないように） */
.image-left-all{
  flex: 1 1 auto;
  min-width: 0; /* ←折り返し崩れ防止 */
}

.tokuchou__body{
  padding: 20px 0;
}

/* タイトル */
.tokuchou__title{
  width: min(500px, 88%);
  margin: 0 auto;
  color: #404040;
  font-size: 22px;
  letter-spacing: 2px;
  text-align: left;
  border-bottom: 1px solid #4f4f4f;
  padding-left: 25px;
  padding-bottom: 10px;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
  box-sizing: border-box;
}

/* 本文 */
.tokuchou__text{
  margin: 0;
  font-size: 16px;
  line-height: 160%;
  padding: 10px 50px;
  color: #404040;
  letter-spacing: 1px;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
  box-sizing: border-box;
}

/* =========================================
   SP：縦積み
   ========================================= */
@media (max-width: 767px){

  .tokuchou{
    margin-bottom: 100px;
  }

  .tokuchou__inner{
    width: 100%;
  }

  .tokuchou__item{
    flex-direction: column;
    margin: 0 0 25px;
  }

  .tokuchou__num{
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
    padding-left: 3%;
    box-sizing: border-box;
    margin-bottom: 25px;  /* ← 数字とタイトルの間の余白 */ 
  }

  .tokuchou__num > p{
    font-size: 60px;
    padding-top: 16px;
  }

  .tokuchou__body{
    padding: 0 0 18px;
  }

  .tokuchou__title{
    width: 94%;
    margin: 0 auto;
    font-size: 19px;
    padding-left: 12px;
    padding-bottom: 8px;
  }

  .tokuchou__text{
    padding: 14px 18px 0;
    line-height: 180%;
    font-size: 16px;
  }
}

/* =========================================
   Profile（完全レスポンシブ・上書き対策版）
   ========================================= */

.profile{
  width: 100%;
  box-sizing: border-box;
}

/* ---- PC（769px以上）：必ず2カラム ---- */
.profile__inner{
  width: min(800px, 92%);
  margin: 0 auto 80px;
  box-sizing: border-box;

  display: grid !important;                 /* ★ここが効いてない可能性が高いので強制 */
  grid-template-columns: 300px 1fr !important;
  column-gap: 30px;
  align-items: start;
}

/* 左：写真＋名前 */
.profile__media{
  text-align: center;
  box-sizing: border-box;
}

.profile__photo img{
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.profile__name{
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: 1px;
  color:#404040;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
  line-height: 190%;
}

/* 右：本文＋リンク */
.profile__body{
  box-sizing: border-box;
}

.profile__text{
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 180%;
  color:#404040;
  letter-spacing: 1px;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

/* PCリンク：2列 */
.profile__links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;	
}

/* リンク共通（アイコン＋上下中央） */
.profile-link{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding-left: 37px;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.2;
  color: #404040;
  text-decoration: none;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;

  background-repeat: no-repeat;
  background-position: 0% 50%;
  background-size: 11%;

  white-space: nowrap; /* ★インスタ改行防止 */
  box-sizing: border-box;
}

.profile-link:hover{ text-decoration: underline; }

.profile-link--blog{ background-image: url("../images/blog-aicon.svg"); }
.profile-link--insta{
  background-image: url("../images/insta.png");
  background-size: 10%;
}

/* =========================================
   あいさつボタン
   ========================================= */
.aisatsu-button{
  background-color: #6b8e23;
  width: 300px;
  margin: 30px auto 120px;
  text-align: center;
  padding: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 3px #6b8e23;
  box-sizing: border-box;
}

.aisatsu-button > a{
  display: block;
  position: relative;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN",
               "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  font-weight: 400;
}

.aisatsu-button > a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-top: 6px solid #ffffff;
  border-left: 6px solid transparent;
  transform: rotate(45deg);
}

/* =========================================
   SP（767px以下）：縦積み
   ========================================= */
@media (max-width: 767px){

  .profile__inner{
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 18px;
    display: block !important;
  }

  .profile__media{
    width: 100%;
    margin-bottom: 18px;
  }

  .profile__photo img{
    max-width: 260px;
  }

  .profile__links{
    width: 90%;
    margin: 18px auto 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-link{
    padding-left: 40px;
    background-size: 10%;
  }
}

/* さらに狭い端末用の保険 */
@media (max-width: 360px){
  .profile-link{
    font-size: 15px;
    letter-spacing: 1px;
  }
}

/* =========================================
   あいさつ文（レスポンシブ統一版）
   ========================================= */

.aisatsu{
  width: 100%;
  margin-bottom: 100px;
  box-sizing: border-box;
}

.aisatsu-inner{
  width: 100%;
  max-width: 700px;        /* ← PC横幅 */
  margin: 0 auto;          /* 中央寄せ */
  padding: 0 20px;         /* ← SP左右余白 */
  box-sizing: border-box;
}

.aisatsu-inner > p{
  font-size: 16px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* =========================================
   SP微調整
   ========================================= */

@media (max-width: 767px){

  .aisatsu{
    margin-bottom: 80px;
  }

  .aisatsu-inner{
    padding: 0 18px;   /* 少しだけ余白を調整 */
  }

  .aisatsu-inner > p{
    font-size: 15px;
    line-height: 185%;
  }
}


/* =========================
   料金（完全レスポンシブ）
========================= */

.lesson-fee{
  width: 100%;
  max-width: 750px;
  margin: 0 auto 180px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 3px 3px 6px #cccccc;
  overflow: hidden; /* 見出し角丸を綺麗に */
}

/* 見出し */
.lesson-fee__heading{
  width: 100%;
  padding: 10px 0;
  background: #eaffd5;
}
.lesson-fee__heading > p{
  margin: 0;
  font-size: 18px;
  text-align: center;
  color:#404040;
  letter-spacing: 4px;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
  font-weight: 500;
}

/* テーブル（PCデフォルト：2列） */
.lesson-fee__table{
  width: 98%;
  max-width: 650px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
}

.lesson-fee__table tr{
  background: #ffffff;
}

.lesson-fee__table th,
.lesson-fee__table td{
  border-bottom: 1px dotted #a8b7c5;
  vertical-align: middle;
}

.lesson-fee__table th{
  width: 50%;
  text-align: left;
  padding: 20px 0;
  letter-spacing: 2px;
  font-weight: 400;
}

.lesson-fee__table th > p{
  margin: 0;
  padding-left: 70px;
  padding-right: 10px;
  font-size: 16px;
  color:#404040;
  letter-spacing: 2px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

.lesson-fee__table td{
  width: 50%;
  text-align: left;
  font-size: 16px;
  padding: 10px 20px;
  color:#404040;
  letter-spacing: 1px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* コースの注記 */
.lesson-fee__note{
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  color:#404040;
}

/* 備考 */
.lesson-fee__bikou{
  width: 98%;
  max-width: 650px;
  margin: 18px auto 0;
  padding: 12px 0 18px;
}
.lesson-fee__bikou > p{
  margin: 0;
  font-size: 14px;
  color:#404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* =========================
   SP：縦積み（SPデザイン再現）
========================= */
@media (max-width: 767px){

  .lesson-fee{
    width: 92%;
    margin: 0 auto 120px;
    border-radius: 10px;
  }

  .lesson-fee__heading > p{
    font-size: 18px;
    letter-spacing: 2px; /* SPは詰める */
  }

  .lesson-fee__table{
    width: 90%;
    max-width: none;
    border-collapse: collapse; /* SPは詰めてOK */
    margin:30px auto 30px;
  }

  /* 1行（tr）をカード化 */
  .lesson-fee__table tr{
    display: block;
    margin-bottom: 12px;
    border: 0;
  }

  /* th（タイトル）を上段の帯に */
  .lesson-fee__table th{
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background: #e8ffd1;
    border-bottom: 0;
  }

  .lesson-fee__table th > p{
    padding: 0;
    text-align: center;
    font-size: 16px;
    letter-spacing: 3px;
    color:#3f3f3f;
  }

  /* td（料金）を下段に */
  .lesson-fee__table td{
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 12px;
    background: #ffffff;
    border-bottom: 0;
    color:#3f3f3f;
    letter-spacing: 2px;
  }

  /* 注記は改行してSPの見た目に寄せる */
  .lesson-fee__note{
    display: block;
    margin: 6px 0 0;
    font-size: 14px;
    letter-spacing: 1px;
    color:#3f3f3f;
  }

  /* 備考：SPの箱っぽさを再現 */
  .lesson-fee__bikou{
    width: 90%;
    max-width: none;
    margin: 10px auto 40px;
    border: 1px solid #cccccc;
    padding: 15px;
    box-sizing: border-box;
  }

  .lesson-fee__bikou > p{
    font-size: 14px;
    color:#3f3f3f;
  }
}

/* =========================
   開講時間（完全レスポンシブ）
========================= */

.lesson-hours{
  width: 100%;
  max-width: 750px;
  margin: 0 auto 180px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 3px 3px 6px #cccccc;
  overflow: hidden;
}

/* 見出し */
.lesson-hours__heading{
  width: 100%;
  padding: 10px 0;
  background: #eaffd5;
}
.lesson-hours__heading > p{
  margin: 0;
  font-size: 18px;
  text-align: center;
  color:#404040;
  letter-spacing: 4px;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
  font-weight: 500;
}

/* テーブル（PCデフォルト：2列） */
.lesson-hours__table{
  width: 98%;
  max-width: 650px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
}

.lesson-hours__table th,
.lesson-hours__table td{
  background: #ffffff;
  border-bottom: 1px dotted #a8b7c5;
  vertical-align: middle;
}

/* 左：曜日 */
.lesson-hours__table th{
  width: 50%;
  padding: 20px 0;
  text-align: left;
  font-weight: 400;
}

.lesson-hours__table th > p{
  margin: 0;
  padding-left: 25%;
  font-size: 16px;
  color:#404040;
  letter-spacing: 2px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* 右：時間 */
.lesson-hours__table td{
  width: 50%;
  padding: 10px 0 10px 10%;
  text-align: left;
  font-size: 16px;
  color:#404040;
  letter-spacing: 4px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* 備考（PC） */
.lesson-hours__bikou{
  width: 98%;
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 0 30px;
  box-sizing: border-box;
}
.lesson-hours__bikou > p{
  margin: 0;
  font-size: 14px;
  color:#404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}
.lesson-13{
font-size:13px;	
}
/* =========================
   SP：縦積み（SPデザイン再現）
========================= */
@media (max-width: 767px){

  .lesson-hours{
    width: 92%;
    margin: 0 auto 120px;
  }

  .lesson-hours__heading > p{
    letter-spacing: 2px;
  }

  .lesson-hours__table{
    width: 90%;
    max-width: none;
    border-collapse: collapse;
    margin-top:30px;  
    margin-bottom: 10px;
  }

  /* 1行（tr）をカード化 */
  .lesson-hours__table tr{
    display: block;
    margin-bottom: 12px;
  }

  /* thを帯（タイトル）に */
  .lesson-hours__table th{
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background: #e8ffd1;
    border-bottom: 0;
  }

  .lesson-hours__table th > p{
    padding-left: 0;
    text-align: center;
    font-size: 16px;
    letter-spacing: 3px;
    color:#3f3f3f;
  }

  /* tdを値ブロックに */
  .lesson-hours__table td{
    display: block;
    width: 100%;
    padding: 20px 12px;
    text-align: center;
    background: #ffffff;
    border-bottom: 0;
    letter-spacing: 2px;  /* SPは読みやすく */
    color:#3f3f3f;
  }

  /* 備考（SPは箱っぽく） */
  .lesson-hours__bikou{
    width: 90%;
    max-width: none;
    margin: 10px auto 40px;
    border: 1px solid #cccccc;
    padding: 15px;
  }

  .lesson-hours__bikou > p{
    font-size: 14px;
    color:#3f3f3f;
  }
}

/* =========================
   保護者の声（完全レスポンシブ）
========================= */

.hogosha-voice{
  width: 100%;
}

.hogosha-voice__inner{
  width: 92%;
  max-width: 650px;      /* PCの基準幅 */
  margin: 0 auto;
  padding: 20px;         /* PCの余白感を維持 */
  box-sizing: border-box;
}

.hogosha-voice__text{
  width: 100%;
  margin-bottom: 20px;
}

.hogosha-voice__text > p{
  margin: 0;
  font-size: 16px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

.hogosha-voice__meta{
  width: 100%;
  margin-bottom:70px;		
}

.hogosha-voice__meta > p{
  margin: 0;
  font-size: 16px;
  text-align: right;
  color:#404040;
  letter-spacing: 1px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* ボタンの置き位置（余白だけ管理） */
.hogosha-voice__cta{
  margin-top: 60px;
}

/* =========================
   SP調整
========================= */
@media (max-width: 767px){

  .hogosha-voice__inner{
    width: 85%;
    max-width: none;
    padding: 0;          /* SPは箱っぽさを消して、あなたの既存SPに合わせる */
  }

  .hogosha-voice__text{
    margin-bottom: 30px;
  }

  .hogosha-voice__text > p,
  .hogosha-voice__meta > p{
    color:#3f3f3f;       /* SP側の色味に寄せる */
  }

  .hogosha-voice__cta{
    margin-top: 60px;
    margin-bottom: 100px; /* 元SPの下余白 */
  }
}

/* =========================
   Q&A Accordion（レスポンシブ微調整込み）
========================= */

.card-accordion{
  margin: 18px 0;
}

/* ===== ボタン（質問） ===== */
.card-accordion-btn{
  position: relative;
  width: 92%;
  max-width: 750px;
  margin: 0 auto 20px;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  padding: 16px 56px 16px 18px;
  background: #ffffff;
  color: #404040;

  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 160%;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;

  text-align: left;
  border: 1px solid #55aa00;
  border-radius: 12px;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-accordion-btn:hover{
  box-shadow: 3px 3px 6px rgba(0,0,0,0.12);
}

.card-accordion-btn:focus-visible{
  outline: 2px solid rgba(85,170,0,0.45);
  outline-offset: 3px;
}

.card-accordion-text{
  display: block;
  width: 100%;
  padding-right: 10px;
}

.card-accordion.is-open .card-accordion-btn{
  border-color: #2e8b57;
}

/* ＋／×アイコン */
.card-accordion-icon{
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
}

.card-accordion-icon::before,
.card-accordion-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1px;
  background: #404040;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease;
}

.card-accordion-icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.card-accordion.is-open .card-accordion-icon::before{
  transform: translate(-50%, -50%) rotate(45deg);
}
.card-accordion.is-open .card-accordion-icon::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===== 開閉エリア ===== */
.card-accordion-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.card-accordion-inner{
  width: 92%;
  max-width: 750px;
  margin: 0 auto 25px;
  padding: 14px 18px 18px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

.qa-answer{
  margin: 0;
  font-size: 16px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

/* ===== SP微調整（必要に応じて） ===== */
@media (max-width: 767px){
  .card-accordion{
    margin: 14px 0;
  }

  .card-accordion-btn{
    width: 92%;
    padding: 14px 50px 14px 16px; /* 少しだけ詰める */
    font-size: 15px;
  }

  .card-accordion-icon{
    right: 14px;
    width: 18px;
    height: 18px;
  }

  .card-accordion-icon::before,
  .card-accordion-icon::after{
    width: 18px;
  }

  .card-accordion-inner{
    width: 92%;
    padding: 12px 16px 16px;
    margin-bottom: 20px;
  }

  .qa-answer{
    font-size: 15px;
  }
}

/* 動きを減らす */
@media (prefers-reduced-motion: reduce){
  .card-accordion-btn,
  .card-accordion-icon::before,
  .card-accordion-icon::after,
  .card-accordion-content{
    transition: none;
  }
}

/* =========================================
   Q&Aボタン
   ========================================= */
.qa-button{
  background-color: #6b8e23;
  width: 300px;
  margin: 50px auto 120px;
  text-align: center;
  padding: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 3px #6b8e23;
  box-sizing: border-box;
}

.qa-button > a{
  display: block;
  position: relative;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN",
               "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  font-weight: 400;
}

.qa-button > a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-top: 6px solid #ffffff;
  border-left: 6px solid transparent;
  transform: rotate(45deg);
}

/* =========================
   アクセス（完全レスポンシブ）
========================= */

.access{
  width: 100%;
  margin: 0 auto 100px;
  box-sizing: border-box;
}

/* GoogleMap：比率固定（PC/SPで崩れない） */
.access__map{
  width: min(800px, 92%);
  margin: 0 auto 20px;
  position: relative;

  /* 16:9にしたい場合 */
  aspect-ratio: 16 / 9;

  /* 見た目が既存の雰囲気に合うなら */
  border-radius: 10px;
  overflow: hidden;
}

/* iframeを枠にフィット */
.access__map > iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 文章 */
.access__text{
  width: min(800px, 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

.access__text > p{
  margin: 0;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 180%;
  color: #404040;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* SP微調整（必要なら） */
@media (max-width: 767px){
  .access{
    margin-bottom: 100px;
  }

  .access__map{
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 0;          /* 端まで使うなら0に */
    aspect-ratio: 4 / 3;       /* スマホは縦を少し高めにしたい場合 */
  }

  .access__text{
    width: 85%;
  }

  .access__text > p{
    font-size: 16px;
    color: #3f3f3f;            /* 既存SPの色に寄せるなら */
  }
}

/* =========================
   体験レッスン + お問い合わせ（完全レスポンシブ）
========================= */

/* 体験レッスン本文 */
.trial{
  width: 100%;
  margin: 0 auto 50px;
  box-sizing: border-box;
}

.trial__inner{
  width: min(650px, 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

.trial__text{
  margin: 0;
  font-size: 16px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}


/* =========================================
   体験レッスンページ用ボタン
   ========================================= */

.trial-button{
  background-color: #6b8e23;
  width: 300px;
  margin: 50px auto 100px; /* ★ 下に60px */
  text-align: center;
  padding: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 3px #6b8e23;
  box-sizing: border-box;
}

.trial-button > a{
  display: block;
  position: relative;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: "游ゴシック Medium", YuGothic, YuGothicM,
               "Hiragino Kaku Gothic ProN",
               "Hiragino Kaku Gothic Pro",
               メイリオ, Meiryo, sans-serif;
  font-weight: 400;
}

.trial-button > a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-top: 6px solid #ffffff;
  border-left: 6px solid transparent;
  transform: rotate(45deg);
}

/* =========================================================
   体験レッスンの流れ（縦1列カード + 下向き三角）
   - 数字は単独要素（.taiken-flow__num）なので後から差し替え容易
   ========================================================= */

:root{
  /* 既存の基調変数に寄せる（必要なら上書きOK） */
  --tf-text: var(--text, #404040);
  --tf-border: var(--border, #cccccc);
  --tf-card-bg: #ffffff;

  /* 「右と下に影」 */
  --tf-shadow: 4px 4px 0 rgba(0,0,0,0.10);
  /* 既存カード影に寄せたい場合は下を使う
     --tf-shadow: 3px 3px 6px #cccccc;
  */

  /* 数字（あとでデザイン変更しやすいよう変数化） */
  --tf-num-size: 50px;
  --tf-num-bg: rgba(191, 255, 127, 0.35); /* 既存のSP背景系の雰囲気に寄せる */
  --tf-num-color: #6abf4b;
  --tf-num-border: var(--tf-border);

  /* 三角（流れ矢印） */
  --tf-arrow-size: 12px;
  --tf-arrow-color: var(--tf-num-color);

  /* ★PCでの数字位置微調整（必要ならここだけ触る） */
  --tf-num-shift-y: 7px;
}

.taiken-flow{
  width: 100%;
  margin-bottom: 120px;
  box-sizing: border-box;
}

.taiken-flow__inner{
  width: min(800px, 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

.taiken-flow__list{
  margin: 0;
  padding: 0;
}

.taiken-flow__item{
  list-style: none;
}

.taiken-flow__card{
  position: relative;
  background: var(--tf-card-bg);
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  box-shadow: var(--tf-shadow);
  box-sizing: border-box;

  padding: 22px 18px 18px;
}

.taiken-flow__num{
  position: absolute;
  top: 6px;
  left: 12px;

  width: var(--tf-num-size);
  height: var(--tf-num-size);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: none;

  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  font-size: calc(var(--tf-num-size) * 0.9);
  line-height: 1;

  color: var(--tf-num-color);

  text-shadow: 1px 1px 0 rgba(0,0,0,0.10);

  transform-origin: center;

  /* ★PCで上にずれる分を下に合わせる（見た目の字面調整） */
  transform: translateY(var(--tf-num-shift-y));
}

.taiken-flow__num::after{
  content: ".";
  margin-left: 2px;
}

/* タイトル */
.taiken-flow__title{
  margin: 0;
  padding: 6px 0 10px;

  /* 数字の分だけ左に余白 */
  padding-left: calc(var(--tf-num-size) + 14px);

  font-size: 24px;
  letter-spacing: 1px;
  color: var(--tf-text);
  font-family: var(--font-serif, "Noto Serif JP", serif);
  font-weight: 500;

  border-bottom: 1px solid var(--tf-border);
}

/* 本文 */
.taiken-flow__text{
  margin: 0;
  padding-top: 12px;

  font-size: 16px;
  line-height: 180%;
  letter-spacing: 1px;
  color: var(--tf-text);
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* カード間の下向き三角 */
.taiken-flow__arrow{
  width: 0;
  height: 0;
  margin: 30px auto 18px;

  border-left: var(--tf-arrow-size) solid transparent;
  border-right: var(--tf-arrow-size) solid transparent;
  border-top: calc(var(--tf-arrow-size) + 4px) solid var(--tf-arrow-color);
}

/* 最後の項目は矢印を出さない（HTML上も置いていないが保険） */
.taiken-flow__item:last-child .taiken-flow__arrow{
  display: none;
}

/* SP微調整 */
@media (max-width: 767px){
  :root{
    --tf-num-shift-y: 0px; /* SPはズレないなら0にする */
  }

  .taiken-flow{
    margin-bottom: 100px;
  }

  .taiken-flow__inner{
    width: 100%;
    padding: 0 18px;
  }

  .taiken-flow__card{
    padding: 20px 16px 16px;
  }

  .taiken-flow__title{
    font-size: 19px;
  }

  .taiken-flow__text{
    font-size: 16px;
  }

  .taiken-flow__arrow{
    margin: 12px auto 16px;
  }
}








/* お問い合わせ全体 */
.contact{
  width: 100%;
  margin: 0 auto 120px;
  box-sizing: border-box;
}

.contact__inner{
  width: min(800px, 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

/* 各ブロック */
.contact__block{
  margin: 0 0 70px;
}

/* 見出し帯（アイコン + 文字を上下中央に） */
.contact__title{
  background: #eaffd6;
  padding: 10px 18px;
  margin: 0 0 35px;
  box-sizing: border-box;
}

.contact__title > h3{
  margin: 0;
  display: flex;
  align-items: center;          /* ★上下中央 */
  gap: 12px;

  font-size: 24px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 1.6;
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", "MS P明朝", serif;
  font-weight: 500;
}

/* アイコン（疑似要素で確実に中央揃え） */
.contact__title > h3::before{
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 種別ごとにアイコン差し替え */
.contact__title--tel  > h3::before{ background-image: url("../images/denwa.svg"); }
.contact__title--line > h3::before{ background-image: url("../images/line.png"); }
.contact__title--mail > h3::before{ background-image: url("../images/mail.svg"); }

/* メイン（番号/ボタン/アドレス） */
.contact__main{
  width: 100%;
  box-sizing: border-box;
  margin-bottom:35px;	
}

.contact__main--center{
  text-align: center;
}

/* 電話番号 */
.contact__tel{
  font-size: 34px;
  color: #404040;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;

  /* 小さい画面で溢れにくく */
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact__time{
  font-size: 18px;
  color: #404040;
  margin-left: 6px;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* LINEボタン画像 */
.contact__lineBtn{
  display: inline-block;
  max-width: 150px;
  width: 100%;
}

.contact__lineBtn img{
  width: 100%;
  height: auto;
  display: block;
}

/* メール */
.contact__mail{
  font-size: 25px;
  color: #0000ff;
  text-decoration: none;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;

  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;  /* ★長いアドレスでもはみ出さない */
}

.contact__mail:hover,
.contact__tel:hover{
  text-decoration: underline;
}

/* 注意文ボックス（PC/SP共通で同じ見た目） */
.contact__note{
  width: min(600px, 92%);
  margin: 22px auto 0;
  border: 1px solid #bfbfbf;
  box-sizing: border-box;
}

.contact__note > p{
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 170%;
  color: #404040;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;
}

/* =========================
   SP調整
========================= */
@media (max-width: 767px){

  .trial__inner{ width: 85%; }
  .contact__inner{ width: 100%; }

  .contact__title{
    background: #e2ffc6;   /* 既存SPの色味に寄せるなら */
    padding: 10px 14px;
    margin-bottom: 35px;
  }

  .contact__title > h3{
    font-size: 18px;
    letter-spacing: 2px;
  }

  .contact__title > h3::before{
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .contact__tel{
    font-size: 20px;
  }

  .contact__time{
    font-size: 14px;
    display: inline-block;
    margin-left: 4px;
  }

  .contact__mail{
    font-size: 18px;
  }

  .contact__note{
    width: 85%;
    margin-top: 18px;
  }

  .contact__note > p{
    font-size: 13px;
    line-height: 160%;
  }

  .contact__block{
    margin-bottom: 60px;
  }
}

/* pcごあいさつ*/
.pc-aisatu{
  width: 650px;
  margin:auto;
  margin-bottom:0px;	
}
.pc-aisatu > p{
  font-size:16px;
  letter-spacing: 1px;
  color:#404040;
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;	
}

.clear { clear:both; }

/* spごあいさつ*/
.sp-aisatu{
  width: 90%;
  margin:auto;
  margin-bottom:0px;	
}
.sp-aisatu > p{
  font-size:16px;
  letter-spacing: 1px;
  color:#3f3f3f;
  line-height: 180%;	
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 400;	
}

/* ===== フッター：PC/SP出し分け（これがレスポンシブの核） ===== */
.site-footer .footer-sp{ display:none; }
.site-footer .footer-pc{ display:block; }

@media (max-width: 767px){
  .site-footer .footer-pc{ display:none; }
  .site-footer .footer-sp{ display:block; }
}

/* =========================
   フッター共通（必要最低限）
   ========================= */
.site-footer{
  width: 100%;
}

/* =========================
   PCフッター（現状デザイン維持）
   ========================= */
.site-footer .pc-footer-2{
  width: 100%;
  max-width: 1280px;
  padding-top: 40px;
  padding-bottom: 20px;
  background: #f9fff4;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-footer table.pc-footer-2-table{
  width: 100%;
  max-width: 1280px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 auto;
}

.site-footer table.pc-footer-2-table td{
  width: 33.3333%;
  padding: 0 20px;
  vertical-align: top;
  box-sizing: border-box;
}

.site-footer .pc-footer-2-table-title{
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 15px;
  border-bottom: 1px solid #cccccc;
  line-height: 100%;
  box-sizing: border-box;
}

.site-footer .pc-footer-2-table-title > p{
  font-size: 17px;
  letter-spacing: 2px;
  color: #404040;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

.site-footer table.pc-footer-2-jouhou-table{
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px auto 10px;
}

.site-footer table.pc-footer-2-jouhou-table th{
  width: 30%;
  font-size: 14px;
  letter-spacing: 1px;
  color: #404040;
  text-align: left;
  vertical-align: top;
  padding-bottom: 13px;
  line-height: 140%;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

.site-footer table.pc-footer-2-jouhou-table td{
  width: 70%;
  font-size: 14px;
  letter-spacing: 1px;
  color: #404040;
  vertical-align: top;
  padding-bottom: 13px;
  line-height: 140%;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

/* PC：ボタン */
.site-footer .pc-footer-2-botan{
  background: #5c821a;
  width: 230px;
  margin: 25px auto 0;
  text-align: center;
  padding: 3px;
  border-radius: 20px;
  box-sizing: border-box;
}

.site-footer .pc-footer-2-botan:hover{ opacity: 0.8; }

.site-footer .pc-footer-2-botan > a{
  display: block;
  position: relative;
  font-size: 13px;
  color: #ffffff;
  padding: 2px 0;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

.site-footer .pc-footer-2-botan > a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 0;
  height: 0;
  margin: -3px 0 0 0;
  border-top: 7px solid #ffffff;
  border-left: 7px solid transparent;
  transform: rotate(45deg);
}

/* PC：メニュー（HTMLを ul に修正した前提の完全対応） */
.site-footer ul.pc-footer-2-table-menu{
  width: 100%;
  padding-left: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}

.site-footer ul.pc-footer-2-table-menu > li{
  width: 100%;
  list-style: none;
  padding: 3px 0;
  border-bottom: 1px solid #cccccc;
  box-sizing: border-box;
}

.site-footer ul.pc-footer-2-table-menu > li > a{
  position: relative;
  font-size: 14px;
  letter-spacing: 1px;
  color: #404040;
  text-decoration: none;
  padding-left: 20px;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
  display: inline-block;
}

.site-footer ul.pc-footer-2-table-menu > li > a:hover{ text-decoration: underline; }

.site-footer ul.pc-footer-2-table-menu > li > a::before{
  content: "";
  position: absolute;
  top: 40%;
  left: 0;
  width: 0;
  height: 0;
  margin: -3px 0 0 0;
  border-top: 8px solid #8a8a8a;
  border-left: 8px solid transparent;
  transform: rotate(45deg);
}

/* PC：アクセス（地図） */
.site-footer .pc-footer-2-access{
  width: 100%;
  margin-top: 20px;
}

.site-footer .pc-footer-2-copyright{
  width: 100%;
  max-width: 1280px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #d3ffa8;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-footer .pc-footer-2-copyright > p{
  font-size: 14px;
  color: #404040;
  text-align: center;
  letter-spacing: 1px;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

/* =========================
   SPフッター（現状デザイン維持）
   ※ HTMLは「table撤廃版」に対応
   ========================= */
.site-footer .sp-footer-taikenlesson{
  width: 100%;
  padding: 30px 0;
  background: #f7ffef;
}

.site-footer .sp-footer-taikenlesson-title{
  width: 95%;
  margin: auto;
  padding-bottom: 5px;
}

.site-footer .sp-footer-taikenlesson-title > p{
  font-size: 17px;
  color: #404040;
  text-align: center;
  letter-spacing: 1px;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

.site-footer .sp-sp-footer-taikenlesson-sen{
  width: 95%;
  margin: auto;
  margin-bottom: 20px;
}

.site-footer .sp-footer-taikenlesson-bun{
  width: 85%;
  margin: auto;
  margin-bottom: 30px;
}

.site-footer .sp-footer-taikenlesson-bun > p{
  font-size: 15px;
  color: #404040;
  letter-spacing: 1px;
  line-height: 180%;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

/* SP：体験ボタン */
.site-footer .sp-taiken-botan{
  background-color: #6b8e23;
  width: 70%;
  margin: 0 auto 20px;
  text-align: center;
  padding: 10px 0;
  border: 1px solid #ffffff;
  box-shadow: 0px 0px 0px 6px #6b8e23;
  box-sizing: border-box;
}

.site-footer .sp-taiken-botan > a{
  display: block;
  position: relative;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: "Noto Sans JP","Yu Gothic","メイリオ",sans-serif;
  font-weight: 400;
}

.site-footer .sp-taiken-botan > a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  margin: -3px 0 0 0;
  border-top: 6px solid #ffffff;
  border-left: 6px solid transparent;
  transform: rotate(45deg);
}

/* SP：メニュー枠 */
.site-footer .sp-fotter-menu{
  width: 100%;
  background: #f7ffef;
  padding: 30px 0;
}

/* 旧：ul.sp-footer-menulist → 新：div.sp-footer-menulist */
.site-footer .sp-footer-menulist{
  width: 95%;
  margin: auto;
  padding: 0;
  display: flex;
  box-sizing: border-box;
}

/* 2列 */
.site-footer .sp-footer-list-col{
  width: 50%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.site-footer .sp-footer-list-col--right{
  border-left: 1px solid #cccccc;
}

/* li（既存デザイン維持） */
.site-footer li.sp-footer-list{
  list-style: none;
  position: relative;
  padding-left: 40px;
  padding-bottom: 15px;
  box-sizing: border-box;
}

.site-footer li.sp-footer-list > a{
  font-size: 14px;
  color: #404040;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

.site-footer li.sp-footer-list::before{
  content: "";
  position: absolute;
  top: 35%;
  left: 10px;
  width: 4px;
  height: 4px;
  border-top: 1px solid #404040;
  border-right: 1px solid #404040;
  transform: rotate(45deg);
}

/* SP：コピーライト */
.site-footer .spfooter{
  width: 100%;
  clear: both;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 60px;
  background-color: rgb(213, 241, 184);
}

.site-footer .spfooter p{
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #4a4a4a;
  line-height: 140%;
  padding: 10px 0;
  font-family: "Noto Serif JP","Yu Mincho","ヒラギノ明朝 ProN","MS P明朝",serif;
  font-weight: 500;
}

/* =========================
   追加：PC側の安全策（狭い画面で崩れにくく）
   ========================= */
@media (max-width: 1100px){
  .site-footer table.pc-footer-2-table td{
    padding: 0 14px;
  }
}

@media (max-width: 900px){
  .site-footer table.pc-footer-2-table td{
    padding: 0 10px;
  }
}


*, *:before, *:after {
  box-sizing: border-box;
}

/* =========================================================
   SP固定CTA（体験レッスンのみ / 上品グラデーション版）
   - スクロール時に位置が変わって見える問題を抑制（safe-areaと下余白を同期）
   ========================================================= */

:root{
  /* CTAバーの“実占有”高さの目安（バー上下padding + ボタンmin-height）
     padding-top 10 + padding-bottom 10 + min-height 50 = 70px */
  --sp-fixed-cta-space: 70px;
}

/* 固定CTA（SPのみ表示） */
#sp-fixed-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 99;

  padding: 10px 12px;
  box-sizing: border-box;

  /* 背景：ほんのり紙感 + 透明感 */
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* 端末の安全領域（iPhoneホームバー）対応 */
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));


}

/* CTA本体リンク */
#sp-fixed-cta .sp-fixed-cta__link{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 50px;
  box-sizing: border-box;

  text-decoration: none;
  border-radius: 14px;

  /* 上品オレンジグラデ */
  background: linear-gradient(135deg, #ff8a4a 0%, #ff6a2a 55%, #ff8740 100%);

  /* 立体感（控えめ） */
  box-shadow:
    0 10px 22px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.35);

  /* 枠は薄く */
  border: 1px solid rgba(255,255,255,0.22);

  /* タップ感 */
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;

  /* 文字 */
  font-family: "Noto Sans JP", "Yu Gothic", "メイリオ", sans-serif;
  letter-spacing: 0.08em;
  color: #fff;
}

/* 五線譜っぽい細線（うっすら） */
#sp-fixed-cta .sp-fixed-cta__link::before{
  content: "";
  position: absolute;
  inset: 8px 12px;
  border-radius: 12px;
  pointer-events: none;

  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.18) 2%,
      rgba(255,255,255,0) 2%,
      rgba(255,255,255,0) 24%,
      rgba(255,255,255,0.18) 24%,
      rgba(255,255,255,0.18) 26%,
      rgba(255,255,255,0) 26%,
      rgba(255,255,255,0) 48%,
      rgba(255,255,255,0.18) 48%,
      rgba(255,255,255,0.18) 50%,
      rgba(255,255,255,0) 50%,
      rgba(255,255,255,0) 72%,
      rgba(255,255,255,0.18) 72%,
      rgba(255,255,255,0.18) 74%,
      rgba(255,255,255,0) 74%,
      rgba(255,255,255,0) 100%
    );
  opacity: 0.55;
}

/* ラベル */
#sp-fixed-cta .sp-fixed-cta__label{
  position: relative;
  padding-right: 36px; /* 右矢印分 */
  padding-left: 30px;  /* 左音符分 */
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* 左：音符 */
#sp-fixed-cta .sp-fixed-cta__label::before{
  content: "♪";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  font-size: 18px;
  opacity: 0.9;
}

/* 右：矢印 */
#sp-fixed-cta .sp-fixed-cta__label::after{
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255,255,255,0.95);
  border-right: 2px solid rgba(255,255,255,0.95);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

/* hover / active */
#sp-fixed-cta .sp-fixed-cta__link:hover{
  filter: brightness(1.02);
}
#sp-fixed-cta .sp-fixed-cta__link:hover .sp-fixed-cta__label::after{
  transform: translateY(-50%) rotate(45deg) translateX(3px);
}
#sp-fixed-cta .sp-fixed-cta__link:active{
  transform: translateY(1px) scale(0.995);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.30);
}

/* フォーカス可視化 */
#sp-fixed-cta .sp-fixed-cta__link:focus-visible{
  outline: 3px solid rgba(255,255,255,0.95);
  outline-offset: 3px;
}

/* CTA分の下余白（コンテンツが隠れないように） */
body{
  padding-bottom: calc(var(--sp-fixed-cta-space) + env(safe-area-inset-bottom, 0px));
}

/* PCでは非表示 + 余白解除 */
@media (min-width: 768px){
  .for-sp{ display: none; }
  body{ padding-bottom: 0; }
}

/* 動きを減らす（ユーザー設定に配慮） */
@media (prefers-reduced-motion: reduce){
  #sp-fixed-cta .sp-fixed-cta__link,
  #sp-fixed-cta .sp-fixed-cta__label::after{
    transition: none;
  }
}


/* ===== 文字アニメ：今回HTMLで使用しているものだけ ===== */

/* 初期状態（JSで文字を<span>分割して入る想定） */
.mojianime1 span,
.mojianime2 span,
.mojianime3 span,
.mojianime7 span{
  display: inline-block;
  opacity: 0;
  transform: translate(0, 0) rotateY(0deg);
  will-change: transform, opacity;
  backface-visibility: visible;
  transform-style: preserve-3d;
}

/* アニメーションごとの初期位置 */
.mojianime1 span{ transform: translate(-10px, -10px) rotateY(0deg); }
.mojianime2 span{ transform: translate(0, -10px) rotateY(0deg); }
.mojianime3 span{ transform: translate(0, 10px) rotateY(0deg); }
.mojianime7 span{ opacity: 0; transform: translateY(0); }


/* ===== ラインアニメ：title-sen1のみ使用 ===== */
.title-sen1{
  width: 100%;
  max-width: 750px;
  margin: auto;
  border-bottom: 1px solid #848484;
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 1.3s ease-out;
}
.title-sen1.title-sen1-active{
  transform: scaleX(1);
}


/* ===== 左からスライド：image-left-allのみ使用 ===== */
.image-left-all{
  opacity: 0;
  transform: translateX(-30px);
  transition: transform 1s ease-out, opacity 1s ease-out;
}
.image-left-all-active{
  transform: translateX(0);
  opacity: 1;
}


/* ふわっと下から（初期） */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1s ease-out, opacity 1s ease-out;
  will-change: transform, opacity;
}

/* 表示状態 */
.reveal.is-active{
  opacity: 1;
  transform: translateY(0);
}

/* 動きが苦手な人向け（推奨） */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   SP固定メニュー PC非表示
=========================== */
@media (min-width: 768px){
  #sp-fixed-menu{
    display: none;
  }
}

@media (max-width: 767px){
  body{
    padding-bottom: 20px; /* 固定メニューの高さに合わせる */
  }
}
