/* リセットCSS読み込み
--------------------------------------------------------------------------- */
@import url("./reset.css");


@import url(https://fonts.googleapis.com/css?family=Sniglet|Raleway:900);

/* CSSカスタムプロパティ（サイト全体の色・間隔・フォントサイズ管理）
--------------------------------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-primary: #fef8e4;
  --color-bg-accent2: #fbeff3;  /* ポップなピンク */
  --color-text: #29323D;
  --color-subtext: #555555;

  --color-logo: #f7ff0e;
  --color-primary: #ff9800; /* 元気なオレンジ */
  --color-accent1: #03a9f4;  /* 楽しい水色 */
  --color-accent2: #e91e63;  /* ポップなピンク */
  --color-accent3: #1ebc6d;  /* ポップなグリーン */
  --color-primary-dark: #1e40af;
  --color-secondary: #f97316;   /* CTAオレンジ */
  --color-accent: #e0f2fe;      /* 吹き出し背景 */
  --color-accent-text: #034076; /* 吹き出し文字 */

  --color-fun-class: #03a9f4;
  --color-middle-class: #00b894;
  --color-master-class: #e84393;
  --color-athlete-class: #6c5ce7;


    --color-bg-faq: #e0f2fe; /* FAQセクションの背景色 (水色系) */
    --color-primary: #ff9800; /* 元気なオレンジ */
    --color-accent1: #03a9f4;  /* 楽しい水色 */
    --color-text: #29323D;
    --color-subtext: #555555;
    
    --color-q-bg: #ffffff; /* 質問の吹き出し背景 */
    --color-a-bg: #dcf8c6; /* 回答の吹き出し背景 (LINE風グリーン) */
    --color-card-shadow: rgba(41, 50, 61, 0.1);

    --font-display: "Lilita One", sans-serif;
    --font-body: "M PLUS Rounded 1c", sans-serif;



  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0,0,0,0.08);

  --color-faq-bg: #ffffff;
  --color-faq-shadow: rgba(0,0,0,0.05);

  --color-footer-bg: #1e293b;
  --color-footer-text: #ffffff;

  --white: #ffffff;
  --black: #000000;
  --gray-8: rgba(17, 24, 39, 0.8);
  --gray-6: rgba(17, 24, 39, 0.6);
  --gray-4: rgba(17, 24, 39, 0.4);
  --gray-3: rgba(17, 24, 39, 0.3);
  --gray-2: rgba(17, 24, 39, 0.2);
  --gray-1: rgba(17, 24, 39, 0.1);

  /* 余白などはそのまま */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
  --space-5: 3rem;

  /* フォントサイズ */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;

  /* グローバル */
  --global-space: var(--space-5);
}

/* =====================
  全体基本設定
===================== */
html{
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Geneva,
      Verdana, sans-serif;
  font-size: calc((100vw - 320px) / 220 + 16px);
  margin: 0;
}
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .1em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.85;
  font-feature-settings: "palt";
	-webkit-text-size-adjust: 100%;
}
.font-en{
    font-family: "Lilita One", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Geneva,
      Verdana, sans-serif;
}
section {
  padding: 2.5rem 1rem;  
}

/* 交互背景色 */
section:nth-child(even) {
  background-color: var(--color-accent);
}
section:nth-child(odd) {
  background-color: var(--color-bg-primary);
  position: relative;
}

/* =====================
  section境界線ギザギザ設定
===================== */
main section:nth-child(odd)::before,
main section:nth-child(odd)::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  background-repeat: no-repeat;
  background-size: 100% 120px;
  background-color: transparent;
  z-index: 0;
}
/* 上の波 */
main section:nth-child(odd)::before {
  top: -80px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20700%20150'%20preserveAspectRatio='none'%3E%3Cpath%20d='M%200%2075%20L%2017.5%2050%20L%2035%2075%20L%2052.5%20100%20L%2070%2075%20L%2087.5%2050%20L%20105%2075%20L%20122.5%20100%20L%20140%2075%20L%20157.5%2050%20L%20175%2075%20L%20192.5%20100%20L%20210%2075%20L%20227.5%2050%20L%20245%2075%20L%20262.5%20100%20L%20280%2075%20L%20297.5%2050%20L%20315%2075%20L%20332.5%20100%20L%20350%2075%20L%20367.5%2050%20L%20385%2075%20L%20402.5%20100%20L%20420%2075%20L%20437.5%2050%20L%20455%2075%20L%20472.5%20100%20L%20490%2075%20L%20507.5%2050%20L%20525%2075%20L%20542.5%20100%20L%20560%2075%20L%20577.5%2050%20L%20595%2075%20L%20612.5%20100%20L%20630%2075%20L%20647.5%2050%20L%20665%2075%20L%20682.5%20100%20L%20700%2075%20L%20700%20150%20L%200%20150%20Z'%20fill='%23fef8e4'/%3E%3C/svg%3E");
}
/* 上の波 */
main section:nth-child(odd)::after {
  bottom: -80px;
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20700%20150'%20preserveAspectRatio='none'%3E%3Cpath%20d='M%200%2075%20L%2017.5%2050%20L%2035%2075%20L%2052.5%20100%20L%2070%2075%20L%2087.5%2050%20L%20105%2075%20L%20122.5%20100%20L%20140%2075%20L%20157.5%2050%20L%20175%2075%20L%20192.5%20100%20L%20210%2075%20L%20227.5%2050%20L%20245%2075%20L%20262.5%20100%20L%20280%2075%20L%20297.5%2050%20L%20315%2075%20L%20332.5%20100%20L%20350%2075%20L%20367.5%2050%20L%20385%2075%20L%20402.5%20100%20L%20420%2075%20L%20437.5%2050%20L%20455%2075%20L%20472.5%20100%20L%20490%2075%20L%20507.5%2050%20L%20525%2075%20L%20542.5%20100%20L%20560%2075%20L%20577.5%2050%20L%20595%2075%20L%20612.5%20100%20L%20630%2075%20L%20647.5%2050%20L%20665%2075%20L%20682.5%20100%20L%20700%2075%20L%20700%20150%20L%200%20150%20Z'%20fill='%23fef8e4'/%3E%3C/svg%3E");
}
/* =====================
  sectionタイトル
===================== */
section h2 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  padding-top: 1.5rem;
  white-space: pre;
}
section h2::before {
  content: attr(data-en);
  display: block;
  font-family: "Lilita One", sans-serif;
  font-size: 2.8rem;
  color: var(--color-accent2);
  letter-spacing: 0;
  line-height: 1;
  font-weight: 900;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #eee;
  margin-bottom: 0.2em;
}
section h3 {
  font-size: 1.6rem;
  color: var(--color-accent2); /* ポップなピンク系 */
  text-align: center;
  position: relative;
  margin: 2.5rem 0 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-secondary); /* 補色のオレンジ系ライン */
  letter-spacing: 0.1em;
  user-select: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* =====================
  ふわっと表示
===================== */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
  スクロールヒント
===================== */
.scroll-hint-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 24px;
  color: #3498db;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  user-select: none;
}

/* 非表示時 */
.scroll-hint-arrow.hidden {
  opacity: 0;
}


/* =====================
  ヒーローセクション
===================== */
  .hero {
    position: relative;
    height: 70vh;
    background: url('../images/mainview.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--color-logo);
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .deco1, .deco2 {
    display: flex;
    gap: 0.01em;
    font-weight: 900;
    cursor: default;
  }
  .deco1 {
    font-size: 4.5rem;
  }
  .deco2 {
    font-size: 2.8rem;
  }
  /* 簡単アニメーション（左フェード） */
  .deco1 span, .deco2 span {
    opacity: 0;
    transform: translateX(-20px);
    animation-fill-mode: forwards;
    animation-name: fadeInLeft;
    animation-duration: 0.6s;
  }
  /* 遅延差を適宜調整 */
  .deco1 span:nth-child(1) { animation-delay: 0.3s; }
  .deco1 span:nth-child(2) { animation-delay: 0.4s; }
  .deco1 span:nth-child(3) { animation-delay: 0.5s; }
  .deco1 span:nth-child(4) { animation-delay: 0.6s; }
  .deco1 span:nth-child(5) { animation-delay: 0.7s; }

  .deco2 span:nth-child(1) { animation-delay: 1.1s; }
  .deco2 span:nth-child(2) { animation-delay: 1.2s; }
  .deco2 span:nth-child(3) { animation-delay: 1.3s; }
  .deco2 span:nth-child(4) { animation-delay: 1.4s; }
  .deco2 span:nth-child(5) { animation-delay: 1.5s; }
  .deco2 span:nth-child(6) { animation-delay: 1.6s; }
  .deco2 span:nth-child(7) { animation-delay: 1.7s; }
  .deco2 span:nth-child(8) { animation-delay: 1.8s; }
  .deco2 span:nth-child(9) { animation-delay: 1.9s; }
  .deco2 span:nth-child(10) { animation-delay: 2.0s; }
  .deco2 span:nth-child(11) { animation-delay: 2.1s; }

  @keyframes fadeInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

.hero-subtitle {
  font-size: 1.1rem;
  margin-top: 1rem;
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
h3.section-title {
  font-family: "Lilita One", cursive, sans-serif;
  font-size: 1.6rem;
  color: var(--color-accent2); /* ポップなピンク系 */
  text-align: center;
  position: relative;
  margin: 2.5rem 0 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-secondary); /* 補色のオレンジ系ライン */
  letter-spacing: 0.1em;
  user-select: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* =====================
  ヘッダー&CTAリンク
===================== */
/* ヘッダー上段：h1とCTA横並び */
.header-top {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);

background:repeating-linear-gradient(
  -45deg,
  #fff 0 28px,
  #feffef 28px 56px
);
}
header h1 {
  margin: 0;
  font-size: 1.5rem;

  letter-spacing: 0em;
  color: var(--color-primary);
  text-shadow: 2px 2px 0px #fff, 3px 3px 0px rgba(255, 152, 0, 0.3);
}

.cta-area{
  position: fixed;
  right: 10px;
  top:10px;
  z-index: 1000;
}

.header-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #ff9a8b, #ff6a88, #ff99ac);
  color: #fff;
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 105, 135, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: gentlePulse 2s infinite;
  opacity: 0.95;
}
.cta-inner {
  text-align: center;
}
.cta-main {
  font-size: 1rem;
  line-height: 1.2;
}
.cta-sub {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}
.price {
  font-size: 1.1rem;
  font-weight: 700;
}

.header-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 105, 135, 0.6);
}

/* やさしく呼吸するようなアニメーション */
@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 105, 135, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(255, 105, 135, 0.5);
  }
}


/* =====================
  ナビゲーション
===================== */
.main-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.3rem 0;

  background: var(--color-bg-accent2);
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.main-nav a i {
  font-size: 1.2rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--color-accent2);
}

/*JSでのメニュー固定用*/
#main-nav {
  transition: transform .6s ease, opacity .6s ease;
}

/* 固定表示時 */
.nav-fixed {
  background: var(--color-bg-accent2);
  box-shadow: 0 -2px 10px rgb(174, 172, 173);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;       /* 横幅をビューポートいっぱいに */
  display: flex;     /* 中のメニューをflexで並べる */
  justify-content: space-around;
  z-index: 1000;
}

/* ナビがスライドインして戻る状態 */
.nav-slide-in {
  transform: translateY(0);
  opacity: 1;
}

/* =====================
  上へ戻るボタン
===================== */
#backToTop {
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 1000;
  background: var(--color-accent2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--color-accent1);
  transform: translateY(-2px);
}

/* =====================
  フッター
===================== */
  footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
  }
  .footer-logo {
    font-family: "Lilita One", sans-serif;
    color: var(--color-logo);
    font-size: 2rem;
    margin: 0 0 10px;
  }
  .footer-branches {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .branch {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
  }
  .branch h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent2);
    display: inline-block;
    padding: 0 1rem;
    border: 2px solid var(--color-accent2);
    border-radius: 10px;
  }
  .footer-nav {
    margin: 20px 0;
  }
  .footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
  }
  .footer-nav a:hover {
    text-decoration: underline;
  }
  .copyright {
    font-size: 0.8rem;
    margin-top: 20px;
  }

  /* ========== 「ボルダリングって？」 ========== */
  .bouldering-intro-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 50px;
  }
  .bouldering-card {
  border-radius: 20px;
  font-size: .9rem;
  background: #fff;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border: 3px solid var(--color-accent1);

  /* 水玉パターン */
  background-image: 
    radial-gradient(rgba(173, 216, 230, 0.2) 20%, transparent 20%),
    radial-gradient(rgba(173, 216, 230, 0.2) 20%, transparent 20%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px; /* ずらして交互に配置 */
  }

  .bouldering-card h4 {
    font-family: "Lilita One", sans-serif;
    font-size: 1.3rem;
    color: var(--color-accent1);
    text-align: center;
    margin: 0 0 15px;
  }
  .bouldering-card strong{
    color: var(--color-accent2);
  }


  /* ========== 「ボルダリングの効果」 ========== */
.bouldering-benefits-fa {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toggle-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toggle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card-title {
  background: #ffcdc1;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  color: #a14f4f;
  transition: background 0.3s ease;
}

.card-title:hover {
  background: #ffa899;
}

/* アイコンゆらゆら */
.icon {
  animation: floatRotate 3.2s linear infinite;
  font-size: 1.3rem;
  color: var(--color-primary);
}
@keyframes floatRotate {
  0% , 100%{
      transform: rotate(10deg);
  }
  50%{
      transform: rotate(-10deg);
  }
}


.card-detail {
  display: none;
  padding: 0.6rem 1rem;
  background: #fffdf9;
  color: #555;
  font-size: 0.95rem;
}

.toggle-card.open .card-detail {
  display: block;
}


  /* ========== 「こんなお子さまにぴったり！」 ========== */
  /* グリッドレイアウト */
  .osusume-grid {
    display: grid;
    gap: 15px;
  }

  /* チェックボックス非表示 */
  .osusume-item input[type="checkbox"] {
    display: none;
  }

  /* 各アイテムの基本スタイル */
  .osusume-item {
    position: relative;
    display: block;
    width: 100%;
  }

  /* ラベルの基本スタイル */
  .osusume-item label {
    display: block;
    background-color: #fff;
    padding: 15px 20px 15px 60px; /* アイコン分のスペース */
    border-radius: 50px; /* カプセル型 */
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
  }

  /* ラベルのホバー効果 */
  .osusume-item label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }

  /* ラベルの疑似要素（星アイコン）*/
  .osusume-item label::before {
    content: "★";
    font-size: 24px;
    color: #ffca28;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0); /* 最初は見えない */
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }

  /* アイテム全体の疑似要素（光のライン）*/
  .osusume-item::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 100%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 10%,
      rgba(255, 255, 255, 0.5) 100%,
      rgba(255, 255, 255, 0) 0%
    );
    opacity: 0; /* 最初は非表示 */
  }

  /* チェックされているラベルのスタイル */
  .osusume-item input[type="checkbox"]:checked + label {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--color-primary);
  }

  /* アニメーション定義 */
  @keyframes fadeUp {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes starTwinkle {
    0% {
      opacity: 0;
      transform: translateY(-50%) scale(0) rotate(0deg);
      filter: brightness(1);
    }
    40% {
      opacity: 1;
      transform: translateY(-50%) scale(1.2) rotate(360deg);
      filter: brightness(2);
    }
    55% {
      transform: translateY(-50%) scale(1.4) rotate(450deg);
      filter: brightness(3);
    }
    70% {
      transform: translateY(-50%) scale(1.1) rotate(540deg);
      filter: brightness(1.8);
    }
    100% {
      opacity: 1;
      transform: translateY(-50%) scale(1) rotate(720deg);
      filter: brightness(1);
    }
  }

  @keyframes gentleGlow {
    from {
      filter: brightness(1);
    }
    to {
      filter: brightness(2);
    }
  }

  @keyframes shiny {
    0% {
      left: -20%;
      opacity: 0;
    }
    10% {
      left: -10%;
      opacity: 1;
    }
    30% {
      left: 120%;
      opacity: 1;
    }
    100% {
      left: 120%;
      opacity: 0;
    }
  }

  /* visibleクラスが付いた時に適用されるアニメーション */
  .osusume-item.visible label {
    animation: fadeUp 0.6s ease-out forwards;
  }

  .osusume-item.visible label::before {
    animation: starTwinkle 0.9s 0.4s ease-out forwards, gentleGlow 4s 2s infinite alternate;
  }

  .osusume-item.visible::after {
    opacity: 1;
    animation: shiny 1.8s ease-in-out 1s forwards;
  }


  
  /* チェックされたらラベルのスタイルも変更 */
  .osusume-item input[type="checkbox"]:checked + label {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--color-primary);
  }
@media (min-width: 641px) {
  .pc-frame {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
  }

  .bouldering-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
  }

  .bouldering-card {
    padding: 30px;
    border-width: 4px;
  }

  .bouldering-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .bouldering-benefits-fa {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    margin-bottom: 50px;
  }

  .toggle-card {
    margin-bottom: 1.2rem;
  }

  .card-title {
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
  }

  .card-detail {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .osusume-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
  }

  .osusume-item label {
    padding: 20px 25px 20px 60px;
    font-size: 1.1rem;
    border-radius: 60px;
  }
}

  /* ========== スクールの特徴  ========== */
  .frame-cloud {
    background: var(--color-card-bg);
    border-radius: 40px; /* 雲のベースの丸み */
    padding: 30px;
    margin: 0 auto 30px;
    max-width: 360px;
    position: relative;
    box-shadow: 0 10px 30px var(--color-card-shadow);
    /* 浮遊アニメーション */
    animation: float 6s ease-in-out infinite;
    position: relative;
  }

/* 上下の雲部分 */
.frame-cloud::before,
.frame-cloud::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  width: auto;
  height: 40px;
  background-repeat: repeat-x;
  background-size: 40px 40px; /* <- 円のサイズと間隔を同じに */
  z-index: 1;
}

/* 上のモコモコ */
.frame-cloud::before {
  top: -16px;
  background-image: radial-gradient(
    circle at 20px 40px,
    #fff 70%,
    transparent 71%
  );

}

/* 下のモコモコ */
.frame-cloud::after {
  bottom: -16px;
  background-image: radial-gradient(
    circle at 20px 0px,
    #fff 70%,
    transparent 71%
  );
}
  
  
  /* アニメーションに変化をつける */
  .frame-cloud:nth-child(even) {
      animation-delay: -3s; /* 周期をずらす */
      margin-left: -10px;
  }
  .frame-cloud:nth-child(odd) {
      margin-right: -10px;
  }
  
  /* 雲のコンテンツ */
  .frame-cloud strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
    position: relative; /* アイコン配置のため */
    z-index: 1; /* 雲のもこもこの上に表示 */
    padding-left: 40px; /* アイコン用のスペース */
  }


  .frame-cloud p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--color-subtext);
    margin: 0;
    position: relative;
    z-index: 1;
  }

  /* 浮遊アニメーションの定義 */
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }

  @media (min-width: 641px)  {
    .frame-cloud{
      max-width: 600px;
    }
  }

  /* ========== クラスについて ========== */  
  /* セクションの導入文 */
  #class-section > p {
    font-size: 1.1rem;
    color: var(--color-subtext);
    max-width: 600px;
    margin: 0 auto 40px; /* 中央寄せ */
    line-height: 1.8;
  }

  /* ========== クラスカードデザイン ========== */
  .course-cards {
    display: flex;
    flex-direction: column; /* 縦積み */
    align-items: center; /* 中央寄せ */
    gap: 30px; /* カード間のスペース */
  }

  .course-card {
    background: var(--color-card-bg);
    border-top-left-radius: 20px; 
    border-bottom-right-radius: 20px; 
    border-top-right-radius: 0; 
    border-bottom-left-radius: 0; 
    padding: 30px 20px;
    width: 100%;
    max-width: 300px; /* カードの最大幅 */
    box-shadow: 0 10px 30px var(--color-card-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .course-card:hover {
    transform: translateY(-8px); /* ホバーで少し浮き上がる */
    box-shadow: 0 15px 40px rgba(41, 50, 61, 0.25);
  }

  /* カードの番号を左上に配置 */
  .course-card::before {
    content: '';
    position: absolute;
    top: -15px; /* カードの角をまたぐ位置 */
    left: -15px;
    background: var(--color-primary); /* デフォルトはオレンジ */
    color: #fff;
    font-family: "Lilita One";
    font-size: 2.4rem;
    width: 65px;
    height: 65px;
    padding-top:5px;
    padding-left:5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1;
  }

  /* 各クラスの番号と背景色 */
  .course-card:nth-of-type(1)::before { content: '1'; background-color: var(--color-fun-class); } /* ファンクラス: 水色 */
  .course-card:nth-of-type(2)::before { content: '2'; background-color: var(--color-middle-class); } /* ミドルクラス: 緑 */
  .course-card:nth-of-type(3)::before { content: '3'; background-color: var(--color-master-class); } /* マスタークラス: オレンジ */
  .course-card:nth-of-type(4)::before { content: '4'; background-color: var(--color-athlete-class); } /* アスリートクラス: ピンク */
  .course-card:nth-of-type(5)::before { content: '5'; background-color: var(--color-accent-text); } /* パーソナル: ピンク */

  /* クラス名の見出し */
  .course-card h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 10px;
    margin-top: 0;
    padding-left: 30px; /* 番号との重なり防止 */
    position: relative;
    z-index: 1;
    text-align: left; /* 左寄せに戻す */
  }
  /* クラス名の強調色 */
  .course-card:nth-of-type(1) h4 { color: var(--color-fun-class); }
  .course-card:nth-of-type(2) h4 { color: var(--color-middle-class); }
  .course-card:nth-of-type(3) h4 { color: var(--color-master-class); }
  .course-card:nth-of-type(4) h4 { color: var(--color-athlete-class); }
  .course-card:nth-of-type(5) h4 { color: var(--color-accent-text); }

  /* クラスの説明文 */
  .course-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-subtext);
    margin: 0;
    text-align: left; /* 左寄せに戻す */
    position: relative;
    z-index: 1;
  }


  /* ========== 2. パーソナルレッスン紹介 ========== */
.private-lesson {
  padding: 40px 20px;
  border-radius: 12px;
}

.private-lesson-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.private-lesson-text p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.lesson-info {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.lesson-info li {
  margin-bottom: 0.5em;
  font-weight: bold;
}

.lesson-note {
  margin-top: 1em;
  font-size: 0.9em;
  color: #d35400; /* 目立つけど強すぎないアクセントカラー */
  font-weight: bold;
}

.private-lesson-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


@media (min-width: 641px) {

  /* コース全体の幅と中央配置 */
  .course-area {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
  }

  /* カードを横並びに */
  .course-cards {
    flex-direction: row; /* 縦→横へ */
    flex-wrap: wrap; /* 折り返し許可 */
    justify-content: center; /* 中央寄せ */
    align-items: stretch; /*横並びのカードの高さを揃える*/
    gap: 40px 30px; /* 横→縦のゆとり */
  }

  /* カード幅調整（レスポンシブ対応） */
  .course-card {
    flex: 1 1 calc(50% - 20px);
    max-width: none;
    box-sizing: border-box;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* hover効果強化 */
  .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(41, 50, 61, 0.25);
  }

  /* パーソナルレッスンだけ2フレーム分に拡張 */
  .course-card:last-child {
    flex: 1 1 calc(66.666% - 40px);
    max-width: none; /* 最大幅制限解除 */
  }

  /* パーソナルレッスン内のコンテンツ横並び */
  .private-lesson-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }
  .private-lesson-text {
    flex: 1 1 60%;
  }
  .private-lesson-image {
    flex: 1 1 40%;
  }
  .private-lesson-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
}


  /* ========== レッスンの流れ ========== */
  .flow-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    margin-top: 1rem;
  }
  .flow-container::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(0deg, var(--color-accent2), var(--color-accent2) 10px, transparent 10px, transparent 20px);
  }
  .flow-content h4 {
    font-size: 1.5rem;
    color: var(--color-accent2);
    margin: 0 0 8px;
  }
  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  .flow-number {
    background-color: var(--color-accent2);
    color: #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Lilita One", sans-serif;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px var(--color-accent2);
    z-index: 1;
    line-height: 1rem;
  }
  .flow-number span { font-size: 2.5rem; line-height: 1; }
  .flow-image  {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }


  /* ========== 残席情報 ========== */
/* 場所切替ボタン */
.location-switch {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.location-btn {
  background-color: #fff;
  color: #444;
  border: 2px solid var(--color-primary);
  padding: 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  width: 48%;
  margin: 1rem auto;
}

.location-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.location-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
}

/* テーブルコンテナ */
.timetable-container {
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 10px;
}

/* テーブル基本 */
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.timetable thead {
  display: none; /* モバイルはヘッダー非表示 */
}
.timetable tbody tr {
  display: block;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: var(--color-bg);
}
.timetable tbody td {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  padding: 12px 15px;
}
.timetable tbody td:first-child {
  background-color: var(--color-primary);
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  padding: 15px;
}

/* 時間表示 */
.time {
  font-size: 1.2em;
  font-weight: bold;
}

/* クラス情報 */
.class-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.availability{
  position: relative;
  width: 80%;
  margin-left: 1rem;
}
/* カテゴリバッジ色 */
.class-badge {
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}
.fun { background-color: var(--color-fun-class); }
.middle { background-color: var(--color-middle-class); }
.master { background-color: var(--color-master-class); }
.athlete { background-color: var(--color-athlete-class); }

.seats {
  position: absolute;
  top:0;
  bottom: 0;
  right: 0;
  width: 5rem;
  height: auto;
  background-color: #fff;
  opacity: 0.8;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  padding-left: .8rem;
  font-size: 0.9em;
}
.seat-number {
  font-size: 1.4em;
  font-weight: 900;
}
.full {
  color: red;
  font-weight: bold;
}

/* モバイル用タブスタイル */
.day-tabs {
  display: flex;
  justify-content: space-between;  /* 均等配置 */
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-primary);
}

.day-tab {
  flex: 1;                           /* 均等幅にする */
  text-align: center;                /* テキスト中央揃え */
  padding: 0.6rem 0;                 /* 横paddingは不要 */
  border: 1px solid var(--color-primary);
  background-color: #fff;
  color: var(--color-text);
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 0;                  /* 丸ボタンではなくフラットに */
  cursor: pointer;
  transition: 0.25s background;
}

.day-tab + .day-tab {
  border-left: none;                 /* 隣接境界が重ならないように */
}

.day-tab.active {
  background-color: var(--color-primary);
  color: #fff;
}



/* === タブレット〜PC用スタイル (641px以上) === */
@media (min-width: 641px) {

  .location-switch {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .location-btn {
    width: auto;
    font-size: 1.1rem;
    padding: 0.7rem 2rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  }

  .timetable-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
  }

  .timetable {
    border-collapse: collapse;
    width: 100%;
  }
  .timetable thead {
    display: table-header-group;
  }
  .timetable th, .timetable td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: top;
  }
  .timetable th {
    background-color: var(--color-primary);
    color: #fff;
  }
  .timetable tbody tr {
    display: table-row;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }
  .timetable tbody td {
    display: table-cell;
    width: auto;
    text-align: center;
    padding: 12px;
    border: 1px solid #ddd;
  }
  .timetable tbody td:first-child {
    background-color: var(--color-primary);
    color: #fff;
    font-size: .8rem;
    border-bottom: 1px solid #fff;
    padding: 12px;
    text-align: center;
  }
  .time{
    margin-bottom:0;
  }
  .availability{
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: .9rem;
    margin-left: 0;
    margin-bottom: 1.6rem;
    margin-top: -0.5rem;
    width: 100%;
  }
  .seats{
    position:static;
  }

  .day-tabs { display: none; }
}



  
/* ========== 3. 講師紹介 (チェキ風デザイン) ========== */
  .location {
    margin-bottom: 40px;
  }
  .location h4 {
    font-family: "Yusei Magic", sans-serif; /* 手書き風フォント */
    text-align: center;
    font-size: 1.6rem;
    background: #5d4037; /* 黒板風 */
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 4px #3e2723;
  }

/* ポラロイド風フレームの基本スタイル */
.polaroid-frame {
  position: relative;
  background: #fff;
  /* パディング: 上20px, 左右20px, 下80px (キャプション用にスペースを確保) */
  padding: 20px 20px 80px 20px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  max-width: 300px;
  margin: 20px auto; /* モバイルでの中央寄せ */
  width: 90vw; /* モバイルでは画面幅に合わせる */
  box-sizing: border-box;
  /* アニメーションを滑らかにする */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* h5がはみ出さないように */
}

/* フレーム内の画像 */
.polaroid-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid #eee;
}

/* キャプション（コメント） */
.caption {
  position: absolute;
  bottom: 10px; /* フレーム下からの位置を調整 */
  left: 20px;
  right: 20px;
  text-align: center;
  color: #5d4037;
}

/* コメントのテキスト */
.caption p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2rem;
  font-weight: 500;
}

/* 講師名の装飾 (写真の上に配置) */
.caption h5 {
  position: absolute; /* 親要素 .polaroid-frame に対して絶対配置 */
  top: -60px; /* 上からの位置 */
  right: -20px; /* 右からの位置（少しはみ出すように調整） */
  margin: 0;
  padding: 8px 15px 8px 30px; /* 内側の余白 */
  font-weight: 700;
  font-size: 1.1rem;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  color: #fff; /* 文字色を白に */
  background-color: rgba(197, 134, 103, 0.85); /* 半透明の背景色 */
  border-radius: 30px 0 0 30px; /* 右側は角丸、左側はストレート */
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2); /* 影を追加 */
  transform: rotate(3deg); /* 少し傾ける */
  z-index: 5; /* 画像より手前に表示 */
  white-space: nowrap; /* テキストの折り返しを防ぐ */
  transition: background-color 0.3s ease; /* ホバー時の変化を滑らかに */
}

/* 講師名にマウスを乗せた時のエフェクト */
.caption h5:hover {
  background-color: rgba(220, 150, 120, 0.9); /* 少し明るい色に */
}

/* 互い違いの効果とホバーエフェクト */
.polaroid-frame:nth-of-type(odd) {
  transform: rotate(-5deg); /* 奇数番目を左に傾ける */
}

.polaroid-frame:nth-of-type(even) {
  transform: rotate(4deg); /* 偶数番目を右に傾ける */
}

/* マウスを乗せた時のエフェクト */
.polaroid-frame:hover {
  /* 少し拡大して角度をリセット */
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 10; /* 他の要素より手前に表示 */
}


/* ===== PC用のレイアウト調整 (横幅641px以上) ===== */
@media (min-width: 641px) {
  .profiles-container {
    display: flex; /* Flexboxを有効化 */
    justify-content: center; /* 中央揃え */
    align-items: flex-start; /* 上端揃え */
    flex-wrap: wrap; /* コンテンツの折り返しを許可 */
  }

  .polaroid-frame {
    width: 280px; /* 幅を固定値に */
    margin: 20px; /* 周囲の余白を調整 */
  }
}

  /* ========== 料金と特典 ========== */
  .pricing-section {
    background-color: var(--color-bg-accent2);
    border-radius: 16px;
    padding: 2rem 1.2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    margin: 2em 0;
    text-align: center;
  }

    .pricing-section h3.section-title {
    font-size: 1.8rem;
    color: var(--color-accent2);
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    }

    /* 月謝制ハイライト */
    .monthly-fee-highlight {
    background: #ffedf4;
    padding: 20px 25px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    animation: popIn 0.6s ease forwards;
    }

    .monthly-fee-highlight i {
    color: var(--color-accent2);
    margin-bottom: 0.1rem;
    font-size: 3rem;
    }

    .highlight-price {
    color: var(--color-secondary);
    font-size: 3rem;
    font-weight: 900;
    }

    .highlight-subtext {
    font-size: 1rem;
    color: var(--color-primary-dark);
    opacity: 0.85;
    font-weight: 500;
    user-select: none;
    }

    /* その他特典グリッド */
    .pricing-highlight {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    }

    .tax{
        font-size: 1.3rem;
    }

    .highlight-item {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    color: var(--color-primary-dark);
    text-align: center;
    cursor: default;
    transition: transform 0.3s;
    }

    .highlight-item i {
    color: var(--color-accent2);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    }

    .highlight-item strong {
    font-weight: 800;
    font-size: 1.1rem;
    }

    .highlight-text {
    color: var(--color-secondary);
    font-weight: 800;
    }

    .highlight-item p {
    font-weight: 600;
    }

    .highlight-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
    }

    .note {
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    margin-top: 1.5rem;
    opacity: 0.75;
    user-select: none;
    }

    /* アニメーション */
    @keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
    }

@media (min-width: 641px) {

  /* 月謝制ハイライトは幅固定で見やすく */
  .monthly-fee-highlight {
    margin: 0 auto 40px;
    padding: 25px 30px;
    background: #ffedf4;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    border-radius: 16px;
    font-size: 1.6rem;
  }

  /* その他特典2列レイアウト */
  .pricing-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 30px;
    justify-content: center;
  }

  .highlight-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    color: var(--color-primary-dark);
    text-align: center;
    cursor: default;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .highlight-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
  }
  .highlight-item i {
    font-size: 2rem;
    color: var(--color-accent2);
    margin-bottom: 0.6rem;
  }
  .highlight-item strong {
    font-weight: 800;
    font-size: 1.2rem;
  }
  .highlight-item p {
    font-weight: 600;
    margin-top: 0.25rem;
  }
  .highlight-text {
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 1.1rem;
  }

  /* 注意書き */
  .note {
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    margin-top: 1.8rem;
    opacity: 0.75;
    text-align: center;
    user-select: none;
  }
}


  /* ========== よくある質問 - チャット風 ========== */
.qa-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.qa-item {
  display: flex;
  flex-direction: column;
  position: relative;
  /* アイコン配置の基準にするため、左右に余白を追加 */
  padding: 0 70px; 
}

.qa-question, .qa-answer-inner {
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.7;
  max-width: 100%; /* 横幅を100%に広げる */
  position: relative;
  box-shadow: 0 4px 10px var(--color-card-shadow);
}

.qa-question h3, .qa-answer p {
  margin: 0;
  border: none;
}

/* === 質問 === */
.qa-question {
  align-self: flex-start;
  background: var(--color-q-bg);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  padding-right: 65px;
  width: 90%; /* 幅を調整 */
}

/* 質問アイコン */
.qa-question::before {
  content: '';
  position: absolute;
  left: -70px; /* qa-itemのpaddingと合わせる */
  bottom: 0;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #f0f0f0; /* アイコンの背景色（任意） */
  /*background-image: url('../images/icon_questioner.svg');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;*/
}

.qa-question::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-bottom-color: var(--color-q-bg);
  transform: rotate(5deg);
}

/* === 回答 === */
.qa-answer {
  align-self: flex-end;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
  margin-top: 0;
  width: 100%; /* 幅を調整 */
  padding-right: 70px;/* qa-itemのpaddingと合わせる */
}

.qa-answer-inner {
  background: var(--color-a-bg);
  position: relative;
}

/* 回答アイコン */
.qa-answer-inner::before {
  content: '';
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #f0f0f0; /* アイコンの背景色（任意） */
  background-image: url('../images/icon_answer.svg');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 100;
}

.qa-answer-inner::after {
  content: '';
  position: absolute;
  bottom: 15px;
  right: -10px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-bottom-color: var(--color-a-bg);
  transform: rotate(-15deg);
}

.qa-item.active .qa-answer {
  max-height: 1000px;
  margin-top: 15px;
}

/* === 開閉アイコン === */
.qa-question .toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url('../images/icon_chevrondown.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.qa-item.active .qa-question .toggle-icon {
  transform: translateY(-50%) rotate(180deg);
}




  /* ========== 体験レッスンお申し込み ========== */
#form {
  height: 100%;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(3, 64, 118, 0.1);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ==== フォーム本体 ==== */

/* ========== 入力フォームエラー時のガイド枠 ========== */
.information {
  margin: 1rem;
  padding: 12px 18px;
  border-radius: 8px;
  background-color: #fff4f4; /* やや薄いピンク背景 */
  color: #c53030; /* 落ち着いた赤文字 */
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  border: 1px solid #feb2b2; /* 優しい赤の枠線 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: none; /* 初期は非表示 */
  transition: all 0.3s ease;
}

.information.active {
  display: block; /* JSからactiveを付けて表示 */
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

      /* ========== フォーム全体 ========== */
      #form-container {
        background: var(--color-bg);
        border-radius: 24px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        max-width: 700px;
        margin: 0 auto;
        padding: 10px 20px 40px;
      }
      
      form {
        counter-reset: form-step; /* ステップ番号カウンター */
      }

      .error-msg{
        color:red; 
        font-size:0.9em
      }

      /* ========== フォーム項目 ========== */
      .formgroup {
        margin-bottom: 25px;
        padding: 25px 0;
        border-bottom: 2px dashed #e0e0e0; /* 項目の区切り線 */
        position: relative;
      }
      .formgroup:last-of-type {
          border-bottom: none;
      }

      /* 説明用スタイル */
      .formgroup p {
        font-size: 0.9rem;
        color: var(--color-subtext);
        margin: 0 0 18px 44px; /* 上マージンを0に統一 */
        padding: 12px 16px; /* パディング増やして余裕を */
        line-height: 1.5;
        max-width: 100%; /* 幅調整 */
        box-sizing: border-box;
      }

      /* 小画面用に余白やパディングを調整 */
      @media (max-width: 600px) {
        .formgroup p {
          margin-left: 12px; /* 側の空き縮小 */
          padding: 10px 12px;
          font-size: 0.85rem;
        }
      }

      /* ステップ番号 */
      .formgroup > label::before {
        counter-increment: form-step;
        content: counter(form-step);
        background: var(--color-primary);
        color: #fff;
        font-family: var(--font-display);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-right: 12px;
        font-size: 1.2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
      }

      label {
        font-family: var(--font-display);
        font-size: 1.5rem;
        color: var(--color-text);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
      }
      label span { /* 必須マーク */
        color: var(--color-accent2);
        font-size: 1rem;
        margin-left: 8px;
      }
      
      input, textarea, select {
        display: block;
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
        font-family: var(--font-body);
        color: var(--color-subtext);
        background-color: #f8f9fa;
        border: 2px solid #e0e0e0;
        border-radius: 16px;
        transition: all 0.3s ease;
      }
      input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.2);
      }
      input[readonly] {
        cursor: pointer;
        background-color: #fff;
      }
      textarea {
        min-height: 120px;
        resize: vertical;
      }
      select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff9800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        background-size: 20px;
        cursor: pointer;
      }
      
      /* ========== ラジオボタン（クラス・時間選択） ========== */
      #class-radio-container, #time-options {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding-left: 44px;
      }
      .class-radio-input, .time-radio-input {
        display: none;
      }
      .class-radio-label, .time-radio-label {
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 999px;
        border: 2px solid #e0e0e0;
        background-color: #f8f9fa;
        user-select: none;
        font-weight: 800;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        padding-left: 40px; /* チェックマーク用のスペース */
      }

      /* チェックマーク */
      .class-radio-label::before, .time-radio-label::before {
        content: '✔';
        font-size: 1rem;
        color: var(--color-check);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      }
      .class-radio-input:checked + .class-radio-label,
      .time-radio-input:checked + .time-radio-label {
        background-color: var(--color-accent3);
        color: #fff;
        border-color: var(--color-accent3);
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(30, 188, 109, 0.3);
      }
      .class-radio-input:checked + .class-radio-label::before,
      .time-radio-input:checked + .time-radio-label::before {
        transform: translateY(-50%) scale(1);
      }

      /* ========== ハニーポット ========== */
      #phone-form{
        display: none;
      }


      /* ========== 確認エリア ========== */
      .confirm {
        background: #f7f5f2;
        padding: 1rem .5rem 1rem; /* 下に余裕 */
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #333;
        font-size: .9rem;
      }

      .letter-body {
        background: #fff;
        border-radius: 12px;
        padding: 1rem 1rem 1.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.07);
        border: 1px solid #eee;
        margin-top: 1rem;
      }

      .letter-header p:first-child {
        font-weight: bold;
        font-size: 1.2rem;
        text-align: center;
        margin: 0;
      }

      .note {
        font-size: 0.9rem;
        color: #666;
        text-align: center;
        margin: 0.5rem 0 1.5rem;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 1rem;
      }

      .letter-body dl {
        margin: 0;
      }

      .letter-body dt {
        font-size: 0.75rem;
        color: #888;
        margin-top: 1rem;
        font-weight: normal;
      }

      .letter-body dd {
        font-size: 1rem;
        border-bottom: 1px solid #f2f2f2;
        overflow-wrap: break-word;
        word-break: break-word;
      }

      .letter-body dd:last-child {
        border-bottom: none;
      }

      .unselected {
        color: #e74c3c;
        font-weight: bold;
      }

      
      /* ========== 確認チェック ========== */
      .confirmation-check {
        text-align: center;
        margin: 1.5rem 0 0;
        background: #f7f5f0;
        padding: 0.7rem;
        border-radius: 8px;
        font-size: 0.8rem;
        color: #333;
      }

      .confirmation-check input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 0.5rem;
        width: 3rem;
      }
      
      /* ========== 送信ボタン ========== */
      input[type="submit"] {
        font-family: var(--font-display);
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 16px 0;
        border-radius: 999px;
        cursor: pointer;
        margin-top: 20px;
        width: 100%;
        box-shadow: 0 5px 0 #c26d00;
        transition: all 0.2s ease;
      }
      input[type="submit"]:not(:disabled):hover {
        transform: translateY(2px);
        box-shadow: 0 3px 0 #c26d00;
      }
      input[type="submit"]:not(:disabled):active {
        transform: translateY(5px);
        box-shadow: none;
      }
      input[type="submit"]:disabled {
        background: #616467;
        box-shadow: 0 5px 0 #7b7f82;
        cursor: not-allowed;
        opacity: 0.7;
      }

      
      /* ========== カレンダー ========== */
      .hidden { display: none !important; }
      #calendar {
        position: absolute;
        z-index: 1000;
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        padding: 15px;
        font-family: var(--font-body);
      }
      .calendar-header {
        display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
      }
      .calendar-header span {
        font-family: var(--font-display); font-size: 1.3rem; color: var(--color-text);
      }
      .calendar-header button {
        background: none; border: none; font-size: 1.5rem; color: var(--color-primary); cursor: pointer;
      }
      #calendar table { width: 100%; border-collapse: collapse; }
      #calendar th { font-family: var(--font-display); color: var(--color-accent1); padding-bottom: 10px; }
      #calendar td { padding: 2px; }
      #calendar .day {
        width: 36px; height: 36px; border-radius: 50%; text-align: center; line-height: 36px;
        transition: all 0.2s ease;
      }
      #calendar .day.available { background-color: #d0f0c0; cursor: pointer; }
      #calendar .day.available:hover { background-color: var(--color-accent3); color: #fff; transform: scale(1.1); }
      #calendar .day.holiday { color: #ccc; cursor: not-allowed; position: relative; }
      #calendar .day.holiday::after { content:'✗'; color: #f00; opacity: 0.5; position: absolute; top: 0; bottom: 0; left: 0; right: 0; }
      
