/* ==========================================
       0. Root & 1rem = 10px 設定
       ========================================== */
    html {
      font-size: 62.5%; /* 1rem = 10px の基準設定 */
    }

    /* ==========================================
       1. デザイン変数 & ベース設定 (CSS Variables)
       ========================================== */
    :root {
      --bg-center: #0f0916;         /* メイン背景色：ダークパープル */
      --bg-side-pc: #34283A;        /* PC時の左右固定スペース背景色 */
      --bg-card: #180f24;           /* パネル・カード背景色 */
      --primary-gold: #f5d680;      /* 見出し・テキスト用ゴールド */
      --btn-gold-bg: linear-gradient(180deg, #fde48b 0%, #d89e1b 100%); /* CTAボタン用グラデーション */
      --faq-bg-gold: linear-gradient(180deg, #eae1a7 0%, #dfc378 100%);  /* FAQバー用 */
      --text-main: #ffffff;
      --text-dark: #1f1a10;         /* 黄色ボタン/FAQ質問バーの文字色 */
      --text-sub: #c3b8d0;
      --border-color: #311f42;
      
      /* 左右固定スペース・中央幅のサイズ定義 */
      --side-left-width: 436px;     /* PC時 左固定エリア幅 */
      --side-right-width: 436px;    /* PC時 右固定エリア幅 */
      --main-pc-width: 856px;       /* 1400px以上時の main-content 最大幅 */

      /* モデルコース用配色 (#886088) */
      --course-card-purple: #886088; 
      --course-tab-gold: #e5cd77;
      --course-tab-gold-hover: #dbbe60;

      /* 指定英字フォント */
      --font-limelight: 'Limelight', cursive, serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* 全体フォントサイズ設定 & 最小フォントサイズ規定（1.2rem = 12px以上） */
    body {
      font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
      background-color: var(--bg-center);
      color: var(--text-main);
      line-height: 1.6;
      font-size: 1.4rem; /* 基本テキスト 14px */
      padding-bottom: 8rem; /* SP用固定フッターのスペース確保 */
      overflow-x: hidden;
    }

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

    a {
      color: inherit;
      text-decoration: none;
    }

    /* 画像プレースホルダー共通クラス */
    .img-placeholder {
      background-color: #231633;
      border: 1px dashed #51336e;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      color: var(--text-sub);
      font-size: 1.3rem;
      overflow: hidden;
    }

    /* ==========================================
       2. さのまる ぴょんぴょんローディング画面
       ========================================== */
    #loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: var(--bg-center);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.6s ease, visibility 0.6s ease;
      /* ▼ 保険: 万一JSが止まっても2.5秒後には自動で消滅しタップ可能にする */
      animation: forceHideLoading 0.6s ease 2.5s forwards;
    }
    
    /* ==========================================
   ローディング画面：タップ遮断の完全防止
   ========================================== */
    #loading-screen.loaded {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }
    
    @keyframes forceHideLoading {
      to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
    }

    .loading-chara-wrapper {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 24px;
    }

    .loading-chara {
      width: 90px;
      height: 90px;
      animation: sanoBounce 0.6s ease-in-out infinite alternate;
    }

    .loading-chara img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .loading-shadow {
      width: 60px;
      height: 10px;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 50%;
      margin-top: 5px;
      animation: shadowScale 0.6s ease-in-out infinite alternate;
    }

    .loading-text {
      color: var(--primary-gold);
      font-size: 1.4rem;
      font-weight: bold;
      letter-spacing: 2px;
    }

    @keyframes sanoBounce {
      0% { transform: translateY(0) scale(1.05, 0.95); }
      100% { transform: translateY(-45px) scale(0.95, 1.05); }
    }

    @keyframes shadowScale {
      0% { transform: scale(1); opacity: 0.6; }
      100% { transform: scale(0.4); opacity: 0.15; }
    }

    /* ==========================================
       3. 全体構造・レイアウト設定 (1400px未満: SP表示時)
       ========================================== */
    .page-wrapper {
      width: 100%;
      margin: 0 auto;
      padding: 0;
      position: relative;
    }

    /* 1400px未満時：左右サイドバーおよび藤の花背景・PC用ページトップボタンは非表示 */
    .side-left-pc,
    .side-right-pc,
    .fuji-bg-left,
    .fuji-bg-right,
    .pagetop-wrapper {
      display: none;
    }

    /* SP用 モバイル下部固定バー */
    .sp-bottom-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #160a22;
      border-top: 1px solid #382150;
      padding: 10px 16px;
      display: flex;
      gap: 12px;
      align-items: center;
      z-index: 9000;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
    }

    /* SP用ドロップダウン */
    .sp-lang-dropdown {
      position: relative;
      display: inline-block;
      z-index: 9001 !important;
      pointer-events: auto !important;
    }

    .sp-lang-trigger {
      background-color: #251438;
      color: #fff;
      border: 1px solid #58337a;
      padding: 0 16px;
      height: 5rem; /* 50px */
      border-radius: 25px;
      font-size: 1.3rem;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      white-space: nowrap;
    }

    .sp-lang-trigger .select-icon {
      font-size: 1.8rem;
      color: #e3e3e3;
    }

    .sp-lang-trigger::after {
      content: "";
      display: inline-block;
      width: 6px;
      height: 6px;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(-135deg); /* 上向き矢印 */
      margin-left: 2px;
      transition: transform 0.2s ease;
    }

    .sp-lang-dropdown.is-open .sp-lang-trigger::after {
      transform: rotate(45deg); /* 開いている時は下向き */
    }

    .sp-lang-menu {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 0;
      background-color: #251438;
      border: 1px solid #58337a;
      border-radius: 12px;
      padding: 6px 0;
      margin: 0;
      list-style: none;
      min-width: 140px;
      box-shadow: 0 -6px 20px rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
      z-index: 9999 !important;
      pointer-events: auto !important;
    }

    .sp-lang-dropdown.is-open .sp-lang-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .sp-lang-option {
      padding: 10px 16px;
      font-size: 1.2rem;
      color: #ddd;
      cursor: pointer;
      transition: background-color 0.2s, color 0.2s;
    }

    .sp-lang-option:hover,
    .sp-lang-option.is-selected {
      background-color: #3f225e;
      color: var(--primary-gold);
      font-weight: bold;
    }

    /* SP用購入ボタン */
    .btn-buy-sp {
      flex: 1;
      background: var(--btn-gold-bg);
      color: var(--text-dark);
      font-weight: bold;
      font-size: 1.3rem;
      height: 5rem; /* 50px */
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 16px 0 20px;
      border-radius: 25px;
      box-shadow: 0 2px 8px rgba(243,208,120,0.3);
      text-decoration: none;
    }

    /* 統一丸型矢印アイコン枠 */
    .cta-arrow-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #210d33;
      color: #e3e3e3;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
      flex-shrink: 0;
    }

    .cta-arrow-btn .material-symbols-outlined {
      font-size: 2rem;
      line-height: 1;
    }

    /* ==========================================
       4. 中央メインコンテンツ
       ========================================== */
    .main-content {
      padding: 0;
      /* background-color: var(--bg-center); */
      background-image: linear-gradient(#15121e, #251c3b);
      overflow: hidden;
      margin: 0 auto;
      width: 100%;
    }

    .main-inner {
      padding: 20px 16px;
    }

    /* 4-1. ヒーローセクション */
    .hero-section {
      text-align: center;
      margin-bottom: 30px;
    }

    .hero-slider-container {
      position: relative;
      width: 100%;
      height: 380px;
      border-radius: 0;
      margin-bottom: 24px;
      background-color: #12081d;
      border: none;
      overflow: hidden;
    }

    .hero-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    }

    .hero-slide.is-active {
      opacity: 1;
      visibility: visible;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-text-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 5;
      padding: 20px;
      background: linear-gradient(180deg, rgba(15, 9, 22, 0.2) 0%, rgba(15, 9, 22, 0.6) 100%);
      pointer-events: none;
    }

    .catch-text {
      color: #ffffff;
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 8px;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-title {
      font-size: 2.2rem;
      line-height: 1.35;
      color: #ffffff;
      font-weight: bold;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .slider-dots {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .dot.is-active {
      background-color: var(--primary-gold);
      width: 20px;
      border-radius: 4px;
    }

    /* 4-2. リード文ボックス */
    .lead-box-container {
      position: relative;
      padding: 40px 60px;
      margin: 0 16px;
      text-align: center;
    }

    .sano-float {
      position: absolute;
      width: 80px;
      height: 80px;
      z-index: 10;
      animation: floatSanomaru 3s ease-in-out infinite alternate;
    }

    .sano-float.top-left {
      top: -15px;
      left: 0px;
      animation-delay: 0s;
    }

    .sano-float.bottom-right {
      bottom: -15px;
      right: 0px;
      animation-delay: 1.5s;
    }

    @keyframes floatSanomaru {
      0% { transform: translateY(0); }
      100% { transform: translateY(-10px); }
    }

    .sparkle-star {
      position: absolute;
      background-color: #ffffff;
      clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
      z-index: 5;
      filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
      animation: twinkleDelicate 2.4s ease-in-out infinite alternate;
    }

    .star-1 { top: 8%;  left: 20%; width: 14px; height: 14px; animation-delay: 0.1s; }
    .star-2 { top: 12%; right: 18%; width: 18px; height: 18px; animation-delay: 0.6s; }
    .star-3 { top: 48%; left: 8%;  width: 12px; height: 12px; animation-delay: 1.1s; }
    .star-4 { top: 52%; right: 6%;  width: 16px; height: 16px; animation-delay: 1.8s; }
    .star-5 { bottom: 8%; left: 22%; width: 18px; height: 18px; animation-delay: 0.4s; }
    .star-6 { bottom: 12%; right: 24%; width: 13px; height: 13px; animation-delay: 1.4s; }
    .star-7 { top: 30%; right: 3%;  width: 10px; height: 10px; animation-delay: 0.9s; }

    @keyframes twinkleDelicate {
      0% { opacity: 0.15; transform: scale(0.5) rotate(0deg); }
      50% { opacity: 1; transform: scale(1.1) rotate(10deg); }
      100% { opacity: 0.3; transform: scale(0.7) rotate(-5deg); }
    }

    /* .lead-main-title 常時 color: #E2CE7F; */
    .lead-main-title {
      font-size: 1.8rem;
      font-weight: bold;
      color: #E2CE7F !important;
      line-height: 1.55;
      margin-bottom: 24px;
      letter-spacing: 0.8px;
      position: relative;
      z-index: 6;
    }

    /* 指定フォントサイズ: 1.6rem (16px) */
    .lead-sub-text {
      font-size: 1.6rem !important;
      color: var(--text-sub);
      line-height: 1.85;
      position: relative;
      z-index: 6;
    }

    /* 特典・ノベルティ */
    .novelty-section {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 30px;
      text-align: center;
    }

    .badge-limited {
      display: inline-block;
      background-color: #e60012;
      color: #fff;
      font-size: 1.3rem;
      font-weight: bold;
      padding: 4px 14px;
      border-radius: 15px;
      margin-bottom: 12px;
    }

    .novelty-title {
      font-size: 1.5rem;
      color: var(--primary-gold);
      margin-bottom: 12px;
    }

    .novelty-img {
      min-height: 160px;
      margin-bottom: 10px;
    }

    .section-title {
      text-align: center;
      font-size: 1.8rem;
      color: var(--primary-gold);
      margin-bottom: 16px;
    }

    /* 4-3. エリアマップ */
    .map-section {
      margin: 30px 0;
    }

    .map-header-container {
      position: relative;
      text-align: center;
      padding: 20px 16px 28px;
    }

    .map-sano-float {
      position: absolute;
      top: -10px;
      right: 15%;
      width: 75px;
      height: 75px;
      z-index: 10;
      animation: floatSanomaru 3s ease-in-out infinite alternate;
    }

    .map-title-en {
      font-family: var(--font-limelight);
      font-size: 3.2rem;
      color: var(--primary-gold);
      letter-spacing: 3px;
      line-height: 1;
      position: relative;
      display: inline-block;
    }

    .map-title-ja {
      font-size: 1.3rem;
      color: var(--primary-gold);
      font-weight: bold;
      margin-top: 6px;
    }

    .map-star-left { top: 15px; left: 18%; width: 20px; height: 20px; animation-delay: 0.3s; }
    .map-star-right { top: 40px; right: 12%; width: 14px; height: 14px; animation-delay: 1.1s; }
    .map-star-sub { top: 55px; left: 28%; width: 10px; height: 10px; animation-delay: 0.7s; }

    .map-img-container {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    .map-img-container img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* 4-4. モデルコース */
    .course-section {
      margin-bottom: 40px;
      width: 100%;
    }

    .course-title-header {
      position: relative;
      text-align: center;
      padding: 30px 16px 36px;
    }

    .course-sano-float {
      position: absolute;
      top: -10px;
      left: 10%;
      width: 80px;
      height: 80px;
      z-index: 10;
      animation: floatSanomaru 3s ease-in-out infinite alternate;
    }

    .course-title-en {
      font-family: var(--font-limelight);
      font-size: 3.2rem;
      color: var(--primary-gold);
      letter-spacing: 1.5px;
      line-height: 1.1;
      position: relative;
      display: inline-block;
    }

    .course-title-ja {
      font-size: 1.3rem;
      color: var(--primary-gold);
      font-weight: bold;
      margin-top: 6px;
    }

    .course-star-left { top: 35px; left: 22%; width: 16px; height: 16px; animation-delay: 0.2s; }
    .course-star-right { top: 20px; right: 14%; width: 22px; height: 22px; animation-delay: 0.8s; }
    .course-star-sub1 { top: 65px; left: 18%; width: 12px; height: 12px; animation-delay: 1.4s; }
    .course-star-sub2 { top: 70px; right: 22%; width: 10px; height: 10px; animation-delay: 0.5s; }

    .course-tabs {
      display: flex;
      gap: 12px;
      position: relative;
      z-index: 2;
      padding: 0 16px;
    }

    .course-tabs.top-tabs {
      margin-bottom: -1px;
    }

    .course-tabs.bottom-tabs {
      margin-top: 0;
      background-color: transparent;
      padding: 0 16px;
    }

    /* タブボタンのタップ領域とイベント保証 */
    .course-tabs .tab-btn {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent; /* スマホタップ時のチラつき防止 */
      touch-action: manipulation; /* スマホでのタップ遅延解消 */
      position: relative;
      z-index: 10;
    }

    .tab-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 12px;
      font-size: 1.8rem !important;
      font-weight: bold;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
      line-height: 1.3;
    }

    .top-tabs .tab-btn {
      border-radius: 12px 12px 0 0;
    }

    .bottom-tabs .tab-btn {
      border-radius: 0 0 12px 12px;
    }

    .tab-btn.gold {
      background-color: var(--course-tab-gold);
      color: var(--text-dark);
    }

    .tab-btn.gold:hover {
      background-color: var(--course-tab-gold-hover);
    }

    .tab-btn.active {
      background-color: var(--course-card-purple); /* #886088 */
      color: var(--text-main);
    }

    .tab-arrow {
      width: 9px;
      height: 9px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
      transition: transform 0.3s ease;
      margin-left: 4px;
      flex-shrink: 0;
    }

    .top-tabs .tab-btn.active .tab-arrow,
    .bottom-tabs .tab-btn.active .tab-arrow {
      transform: rotate(-135deg);
    }

    .course-card {
      background-color: var(--course-card-purple); /* #886088 */
      padding: 36px 24px;
      width: 100%;
    }

    .course-content {
      display: none;
    }

    .course-content.active {
      display: block;
    }

    .course-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .course-title {
      font-size: 2.2rem;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 8px;
      letter-spacing: 1px;
    }

    .course-time {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 1.4rem;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 12px;
    }

    .time-icon {
      width: 18px;
      height: 18px;
    }

    .course-desc {
      font-size: 1.6rem !important;
      color: #ffffff;
      opacity: 0.95;
    }

    .timeline {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-bottom: 36px;
    }

    .timeline::before {
      content: "";
      position: absolute;
      top: 35px;
      bottom: 35px;
      left: 28px;
      width: 3px;
      background-color: var(--primary-gold);
      z-index: 1;
    }

    .timeline-item {
      position: relative;
      z-index: 2;
    }

    .time-badge {
      display: inline-block;
      background-color: #ffffff;
      color: var(--text-dark);
      font-weight: bold;
      font-size: 1.3rem;
      padding: 4px 16px;
      border-radius: 6px 6px 0 0;
      margin-left: 10px;
      position: relative;
      z-index: 3;
    }

    .step-card {
      position: relative; /* さのまるひょっこり用 */
      background-color: #ffffff;
      color: var(--text-dark);
      border-radius: 12px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      margin-top: -1px;
    }

    /* ★ NEW: スクロール時に step-card 右上から「ひょこっ」と顔を出すさのまる ★ */
    .step-card-sano-peek {
      position: absolute;
      top: -38px;
      right: 12px;
      width: 65px;
      height: 65px;
      z-index: 15;
      opacity: 0;
      transform: translate(15px, 25px) scale(0.4) rotate(15deg);
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
      pointer-events: none;
    }

    .step-card-sano-peek img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .step-card.is-peeked .step-card-sano-peek {
      opacity: 1;
      transform: translate(0, 0) scale(1) rotate(0deg);
    }

    .step-main-row {
      display: flex;
      gap: 18px;
      align-items: center;
      width: 100%;
    }

    .step-img-box {
      position: relative;
      width: 160px;
      height: 110px;
      flex-shrink: 0;
      border-radius: 8px;
      overflow: hidden;
      background-color: #555555;
    }

    .step-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    }

    .step-slide.is-active {
      opacity: 1;
      visibility: visible;
    }

    .step-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .step-slider-dots {
      position: absolute;
      bottom: 6px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 4px;
      z-index: 5;
    }

    .step-slider-dots.is-hidden {
      display: none !important;
    }

    .step-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      transition: all 0.3s ease;
    }

    .step-dot.is-active {
      background-color: var(--primary-gold);
      width: 12px;
      border-radius: 3px;
    }

    .step-info {
      flex: 1;
    }

    .step-title {
      font-size: 1.8rem;
      font-weight: bold;
      margin-bottom: 4px;
      line-height: 1.3;
      color: var(--text-dark);
    }

    .step-route {
      font-size: 1.3rem;
      color: #555555;
      margin-bottom: 6px;
    }

    .step-desc {
      font-size: 1.6rem;
      color: #555555;
      line-height: 1.5;
    }

    .step-details-box {
      background-color: #f7f5f9;
      border: none !important;
      border-radius: 8px;
      padding: 12px 16px;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 1.3rem;
      color: #333333;
    }

    .step-detail-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      line-height: 1.4;
    }

    .step-detail-row .material-symbols-outlined {
      font-size: 1.6rem;
      color: #613e73;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .step-detail-label {
      font-weight: bold;
      color: #51336e;
      white-space: nowrap;
      flex-shrink: 0;
      width: 90px;
    }

    .step-detail-value {
      flex: 1;
      color: #222222;
      word-break: break-all;
    }

    .step-detail-value a {
      color: #4a2d6e;
      text-decoration: underline;
    }

    .course-cta-box {
      text-align: center;
      margin-top: 10px;
    }

    .cta-sub-text {
      font-size: 1.3rem;
      color: #ffffff;
      margin-bottom: 6px;
      letter-spacing: 1px;
    }

    .cta-txt {
      margin: 0 auto;
      font-weight: 600;
    }

    /* ==========================================
   モデルコース内 CTAボタン & さのまるはみ出し・ふわふわアニメーション
   ========================================== */

/* ボタン本体：さのまるが配置できるよう position: relative を指定 */
.cta-button-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between !important;
  background: var(--btn-gold-bg);
  color: var(--text-dark);
  font-size: 1.8rem !important;
  font-weight: bold;
  height: 72px; /* ボタン高さをしっかり確保 */
  padding: 0 16px 0 72px !important; /* 左側にさのまる用のスペースを確保 */
  border-radius: 50px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  max-width: 400px;
  width: 100%;
  margin: 16px auto 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible !important; /* はみ出しを許可 */
}

/* ボタンホバー時の浮き上がり */
.cta-button-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(216, 158, 27, 0.4);
  opacity: 1;
  color: var(--text-dark);
}

/* さのまる画像：ボタン左上に飛び出すように配置 */
.cta-chara-img {
  position: absolute;
  left: 4px;
  bottom: 0px; /* ボタンの底辺付近に基準を合わせる */
  width: 78px;
  height: 82px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
  z-index: 2;
}

/* ホバー時にさのまるがふわふわ揺れるアニメーション */
.cta-button-gold:hover .cta-chara-img {
  animation: sanoFluffy 1.4s ease-in-out infinite alternate;
}

@keyframes sanoFluffy {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
  100% {
    transform: translateY(-3px) rotate(2deg);
  }
}

/* スマホ表示時のサイズ微調整 */
@media (max-width: 600px) {
  .cta-button-gold {
    font-size: 1.5rem !important;
    height: 60px;
    padding: 0 12px 0 64px !important;
    max-width: 100%;
  }

  .cta-chara-img {
    width: 68px;
    height: 72px;
    left: 4px;
    bottom: -2px;
  }
}

    /* 4-5. FAQ アコーディオン */
    .faq-section {
      margin-bottom: 40px;
    }

    .faq-header {
      position: relative;
      text-align: center;
      padding: 24px 16px 28px;
      margin-bottom: 12px;
    }

    .faq-sano-float {
      position: absolute;
      top: -10px;
      right: 12%;
      width: 80px;
      height: 80px;
      z-index: 10;
      animation: floatSanomaru 3s ease-in-out infinite alternate;
    }

    .faq-title-en {
      font-family: var(--font-limelight);
      font-size: 3.2rem;
      color: var(--primary-gold);
      letter-spacing: 2.5px;
      line-height: 1;
      position: relative;
      display: inline-block;
    }

    .faq-title-ja {
      font-size: 1.3rem;
      color: var(--primary-gold);
      font-weight: bold;
      margin-top: 6px;
    }

    .faq-star-left { top: 20px; left: 16%; width: 18px; height: 18px; animation-delay: 0.4s; }
    .faq-star-right { top: 40px; right: 8%; width: 14px; height: 14px; animation-delay: 1.2s; }
    .faq-star-sub1 { top: 60px; left: 26%; width: 10px; height: 10px; animation-delay: 0.8s; }
    .faq-star-sub2 { top: 15px; right: 28%; width: 12px; height: 12px; animation-delay: 0.2s; }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .faq-item {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .faq-question {
      width: 100%;
      background: var(--primary-gold) !important;
      color: var(--text-dark);
      border: none;
      padding: 16px 20px;
      font-size: 2rem !important;
      font-weight: bold;
      text-align: left;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      border-radius: 12px;
      transition: border-radius 0.2s ease, background 0.2s ease;
    }

    .faq-item.is-open .faq-question {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    .faq-question-text {
      flex: 1;
      line-height: 1.4;
    }

    .faq-icon {
      position: relative;
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .faq-icon::before {
      content: "";
      position: absolute;
      top: 3px;
      right: 3px;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--text-dark);
      border-bottom: 2px solid var(--text-dark);
      transform: rotate(45deg);
      transition: transform 0.3s ease;
    }

    .faq-item.is-open .faq-answer {
      max-height: 1000px;
      transition: max-height 0.35s ease-in-out;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      background-color: #ffffff;
      color: var(--text-dark);
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    }

    .faq-answer-inner {
      padding: 20px;
      font-size: 1.6rem !important;
      line-height: 1.7;
    }

    /* ==========================================
       5. 1400px以上 (PC表示時) のレイアウト & パディング調整
       ========================================== */
    @media (min-width: 1400px) {
      body {
        padding-bottom: 0;
        background-color: var(--bg-side-pc);
      }

      .sp-bottom-bar {
        display: none;
      }

      .fuji-bg-left,
      .fuji-bg-right {
        display: block;
        position: fixed;
        top: 0;
        height: auto;
        aspect-ratio: 533 / 282;
        background: url("../images/bg_fuji.png") no-repeat center top / cover;
        z-index: 80;
        pointer-events: none;
        animation: dropFujiHeader 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        z-index: -1;
      }

      .fuji-bg-left {
        left: 0;
        width: calc(50vw - (var(--main-pc-width) / 2) + 5px);
      }

      .fuji-bg-right {
        left: calc(50vw + (var(--main-pc-width) / 2) - 15px);
        width: calc(50vw - (var(--main-pc-width) / 2) + 20px);
      }

      @keyframes dropFujiHeader {
        0% { opacity: 0; top: -100px; }
        70% { opacity: 1; top: 10px; }
        100% { opacity: 1; top: 0; }
      }

      .lead-main-title {
        font-size: 3.6rem !important;
      }

      .course-tabs,
      .course-tabs.bottom-tabs {
        padding: 0 4.8rem !important;
      }

      .course-card {
        padding: 3.6rem 4.8rem !important;
      }

      .page-wrapper {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        width: 100%;
        min-height: 100vh;
      }

      .side-left-pc {
        display: block;
        position: sticky;
        top: 50vh;
        transform: translateY(-50%);
        width: var(--side-left-width);
        padding: 2.4rem 4.8rem !important;
        flex-shrink: 0;
        z-index: 100;
      }

      .side-left-img-wrapper {
        position: relative;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 2.4rem;
        border-radius: 1.6rem;
        overflow: visible;
      }

      .side-left-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        border-radius: 1.6rem;
        box-shadow: none !important;
      }

      .side-left-sparkle {
        position: absolute;
        background-color: #ffffff;
        clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
        z-index: 10;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
        animation: sideTwinkle 2.2s ease-in-out infinite alternate;
      }

      .s-star-1 { top: -12px; left: -10px; width: 22px; height: 22px; animation-delay: 0.1s; }
      .s-star-2 { top: 15px; right: -15px; width: 18px; height: 18px; animation-delay: 0.7s; }
      .s-star-3 { bottom: -10px; left: 20px; width: 20px; height: 20px; animation-delay: 1.3s; }
      .s-star-4 { bottom: 30px; right: -12px; width: 16px; height: 16px; animation-delay: 0.4s; }
      .s-star-5 { top: -15px; right: 80px; width: 14px; height: 14px; animation-delay: 1.1s; }
      .s-star-6 { top: 50%; left: -18px; width: 16px; height: 16px; animation-delay: 1.6s; }
      .s-star-7 { bottom: -14px; right: 60px; width: 24px; height: 22px; animation-delay: 0.9s; }

      @keyframes sideTwinkle {
        0% { opacity: 0.2; transform: scale(0.6) rotate(0deg); }
        50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
        100% { opacity: 0.3; transform: scale(0.8) rotate(-10deg); }
      }

      .pc-logo {
        font-size: 2.2rem;
        font-weight: bold;
        letter-spacing: 2px;
        margin-bottom: 24px;
      }

      .pc-left-catch {
        color: var(--primary-gold);
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 6px;
      }

      .pc-left-title {
        font-size: 1.8rem;
        line-height: 1.4;
      }

      .main-content {
        width: 100%;
        max-width: var(--main-pc-width);
        margin: 0;
        padding: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        min-height: 100vh;
        flex-shrink: 1;
      }

      .main-inner {
        padding: 32px;
      }

      .side-right-pc {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 50vh;
        transform: translateY(-50%);
        width: var(--side-right-width);
        padding: 2.4rem 4.8rem !important;
        flex-shrink: 0;
        z-index: 100;
        align-self: flex-start;
      }

      .pagetop-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: calc(50vw + (var(--main-pc-width) / 2) + 4.8rem);
        width: calc(var(--side-right-width) - 9.6rem);
        text-align: center;
        z-index: 200;
        pointer-events: none;
      }

      #pagetop-btn {
        display: inline-block;
        width: 120px;
        height: 120px;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: auto;
        transform: translateY(40px) scale(0.6);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
      }

      #pagetop-btn.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
      }

      #pagetop-btn:hover {
        transform: translateY(-4px) scale(1.08);
      }

      #pagetop-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .lang-box-pc {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 4.8rem 0 !important;
        text-align: center;
        margin-bottom: 0;
        width: 100%;
      }

      .lang-title {
        font-family: var(--font-limelight);
        font-size: 3.2rem !important;
        color: var(--primary-gold);
        margin-bottom: 2.4rem !important;
        letter-spacing: 1px;
      }

      .lang-btns {
        display: flex;
        flex-direction: column;
        gap: 1.6rem !important;
      }

      .lang-btn {
        background-color: #201331;
        border: 1px solid #4a2d6e;
        color: #ffffff;
        padding: 1.6rem 0 !important;
        border-radius: 5rem !important;
        font-size: 2rem !important;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.25s ease;
        width: 100%;
      }

      .lang-btn:hover,
      .lang-btn.active {
        background-color: #ffffff;
        color: #1a0f26;
        border-color: #ffffff;
        box-shadow: 0 2px 10px rgba(255,255,255,0.2);
      }

      .cta-wrapper-pc {
        position: relative;
        width: 100%;
        text-align: center;
      }

      .cta-outer-sub {
        font-size: 1.3rem;
        font-weight: bold;
        color: #ffffff;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
      }

      .cta-peek-sanomaru {
        position: absolute;
        top: -30px;
        left: 6px;
        width: 100px;
        height: 100px;
        z-index: 1;
        opacity: 0;
        transform: translate(20px, 20px) scale(0.4) rotate(-15deg);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        pointer-events: none;
      }

      .cta-peek-sanomaru img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .cta-box-pc:hover ~ .cta-peek-sanomaru,
      .cta-wrapper-pc:hover .cta-peek-sanomaru {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
      }

      .cta-box-pc {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 2;
        background: var(--btn-gold-bg);
        color: var(--text-dark);
        border-radius: 50px !important;
        padding: 16px 24px !important;
        text-align: left;
        box-shadow: 0 10px 25px rgba(216,158,27,0.35);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        width: 100%;
        text-decoration: none;
        gap: 12px;
      }

      .cta-box-pc:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(216,158,27,0.5);
        opacity: 1;
      }

      .cta-title {
        font-size: 1.8rem !important;
        font-weight: bold;
        line-height: 1.35;
        color: var(--text-dark);
        flex: 1;
      }

      .hero-slider-container {
        height: 500px;
      }

      .hero-title {
        font-size: 2.3rem;
      }

      .sano-float {
        width: 90px;
        height: 90px;
      }

      .map-sano-float,
      .course-sano-float,
      .faq-sano-float {
        width: 90px;
        height: 90px;
      }
    }

    /* スマートフォン表示時 (600px以下) のレスポンシブ適用 */
    @media (max-width: 600px) {
      .step-card {
        flex-direction: column;
        align-items: flex-start;
      }

      .step-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .step-img-box {
        width: 100%;
        height: 180px;
      }

      .timeline::before {
        left: 18px;
      }

      .tab-btn {
        padding: 8px 6px;
        font-size: 1.2rem !important; /* 最小12px遵守 */
      }

      .lead-box-container {
        padding: 24px 20px;
      }

      .course-sano-float {
        left: 5%;
      }

      .sano-float,
      .map-sano-float,
      .course-sano-float,
      .faq-sano-float {
        width: 55px;
        height: 55px;
      }

      .lead-main-title {
        font-size: 2rem;
      }

      .map-title-en,
      .course-title-en,
      .faq-title-en {
        font-size: 2.4rem;
      }
    }


  /* ==========================================
   sticky固定が流れてしまう問題を解決する設定
   ========================================== */

/* 1. 親要素・祖先要素での overflow 解除 */
html, body, .page-wrapper {
  overflow: visible !important; /* overflow: hidden による sticky 解除を防止 */
}

/* 2. サイドバーの親コンテナ（page-wrapper）の高さをメインコンテンツと統一 */
@media (min-width: 1400px) {
  .page-wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start; /* 必須：サイドバーが上揃えになり、スクロール空間を確保 */
    width: 100%;
    min-height: 100vh;
  }

  /* 3. 左右固定サイドバーの sticky 定義再確認 */
  .side-left-pc,
  .side-right-pc {
    position: -webkit-sticky; /* iOS Safari 互換 */
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    align-self: flex-start; /* flexアイテムとして高さ固定を妨げない設定 */
    z-index: 100;
  }
}


