/* ===================================================
   index.css - そろばんサークル トップページ専用スタイル
   ===================================================
   
   目次 (Table of Contents)
   ---------------------------------------------------
   01. グローバル設定
   02. CSS3D ファーストビューセクション
   03. 生徒の声セクション
   04. クラス情報セクション
   05. 教室情報セクション
   06. アクセスセクション
   99. メディアクエリ
   
   =================================================== */


/* ===================================================
   01. グローバル設定
   =================================================== */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    color: #0056b3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}



/* ===================================================
   02. CSS3D ファーストビューセクション
   =================================================== */


/* ----- メインコンテナ ----- */

.hero-3d-section {
    position: relative;
    width: 100%;
    height: clamp(520px, 70vh, 700px);
    overflow: hidden;
    background-color: #ffffffc9;
    margin-top: var(--navbar-height);
    /* ヘッダー分のマージン */
    /* 右クリック防止 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}


/* ----- スライドショー ----- */

.hero-3d-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateZ(-800px) rotateY(25deg) scale(0.9);
    transition: all 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* 各スライドの背景画像 */

.slide[data-slide="0"] {
    background-image: url('/static/images/Index_01.webp');
}

.slide[data-slide="1"] {
    background-image: url('/static/images/features/IMG_Competition.webp');
}

.slide[data-slide="2"] {
    background-image: url('/static/images/features/IMG_4478.webp');
}

.slide[data-slide="3"] {
    background-image: url('/static/images/features/IMG_9602.JPG');
}


/* スライドの状態 */

.slide.lazy-bg {
    background-image: none !important;
    background-color: #f5f5f5;
}

.slide.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0) scale(1);
}

.slide.prev {
    transform: translateZ(200px) rotateY(-25deg) scale(1.05);
    opacity: 0;
}

.slide.next {
    transform: translateZ(-400px) rotateY(15deg) scale(0.95);
    opacity: 0.3;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(230, 245, 255, 0.3) 50%, rgba(200, 230, 255, 0.2) 100%);
    pointer-events: none;
}

/* ----- スライドインジケーター ----- */

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}


/* ----- メインコンテンツ ----- */

.hero-3d-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.content-wrapper {
    /* ガラスモーフィズム進化版 - 背景との一体感を演出 */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(248, 250, 255, 0.88) 100%
    );
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    padding: 2.5rem 2.5rem 2rem;
    /* 非対称角丸 - 左下を強調して「入口」感を演出 */
    border-radius: 16px 16px 40px 16px;
    /* シャドウを下部に集中 - 浮遊感の演出 */
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 -1px 0 0 rgba(0, 86, 179, 0.08) inset;
    transform: translateZ(50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 左側にアクセントライン */
    border-left: 3px solid transparent;
    border-image: linear-gradient(
        180deg, 
        rgba(255, 126, 95, 0.8) 0%, 
        rgba(0, 180, 180, 0.6) 100%
    ) 1;
}

.hero-3d-content .hero-content {
    min-width: unset;
    max-width: unset;
    width: 100%;
    text-align: center;
    padding: 0;
}

.hero-content {
    z-index: 2;
    text-align: left;
}
/* ----- ヒーロータイトル ----- */

.hero-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 3.84rem;
    font-weight: 700;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    letter-spacing: 0.05em;
    overflow: hidden;
    white-space: nowrap;  /* 改行を防ぐ */
}

.hero-3d-content .hero-title {
    background-color: transparent;
    font-size: 4rem;
    padding: 0;
    display: block;
    animation: none;
    white-space: nowrap;  /* 改行を防ぐ */
}

.hero-title::after {
    display: none;
}


/* タイトル文字アニメーション */

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: scale(0.8);
    animation: popEach 0.5s forwards;
    animation-fill-mode: forwards;
}

.hero-3d-content .hero-title span {
    animation: char3DIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    animation-delay: calc(var(--char-index, 0) * 0.1s);
}

.hero-title span:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title span:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-title span:nth-child(5) {
    animation-delay: 0.6s;
}

.hero-title span:nth-child(6) {
    animation-delay: 0.7s;
}

.hero-title span:nth-child(7) {
    animation-delay: 0.8s;
}

.hero-title span:nth-child(8) {
    animation-delay: 0.9s;
}

/* 文字装飾 */

.soro {
    color: white;
    text-shadow: -2px -2px 0 rgba(255, 115, 0, 1), 2px -2px 0 rgba(255, 115, 0, 1), -2px 2px 0 rgba(255, 115, 0, 1), 2px 2px 0 rgba(255, 115, 0, 1);
}

.circle {
    color: white;
    text-shadow: -2px -2px 0 rgba(0, 180, 180, 1), 2px -2px 0 rgba(0, 180, 180, 1), -2px 2px 0 rgba(0, 180, 180, 1), 2px 2px 0 rgba(0, 180, 180, 1);
}

/* ----- サブタイトル ----- */

.hero-content .subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    padding-right: 20%;
    animation: fadeIn 1.5s ease-in-out;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.hero-3d-content .subtitle {
    padding-right: 0;
    animation: fadeInUp3D 1s ease-out 0.8s both;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ===== Hero Tagline - 専門家設計 ===== */
.hero-tagline {
    margin-bottom: 1.5rem;
    animation: fadeInUp3D 1s ease-out 0.8s both;
}

.hero-tagline__main {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

/* 9段強調 - ティール系で差別化（CTAオレンジと競合回避） */
.hero-tagline__emphasis {
    color: #0D9488;
    font-weight: 700;
    position: relative;
    padding: 0 0.1em;
}

.hero-tagline__emphasis::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0D9488, #14B8A6);
    border-radius: 1px;
}

/* 立地情報 - アイコン付きで視認性向上 */
.hero-tagline__sub {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #555;
    letter-spacing: 0.03em;
}

.hero-tagline__icon {
    width: 14px;
    height: 14px;
    color: #F97316;
    flex-shrink: 0;
}

/* テキストリンク矢印アニメーション */
.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-text-link:hover {
    color: #F97316;
}

.hero-text-link__arrow {
    width: 16px;
    height: 16px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

.hero-content .sub-text {
    font-size: 1.1rem;
    color: rgba(102, 102, 102, 1);
    display: block;
    margin-top: 8px;
}


/* ----- CTAボタン - コンバージョン最適化版 ----- */

.hero-content .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 20%;
    gap: 0.75rem;
    /* CTAエリアを視覚的に分離 */
    margin-top: 1.5rem;
}

.hero-3d-content .cta-buttons {
    padding-right: 0;
    animation: fadeInUp3D 1s ease-out 1s both;
    /* CTAエリア上部に微細な装飾線 */
    position: relative;
}

.hero-3d-content .cta-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 126, 95, 0.5) 50%,
        transparent 100%
    );
    border-radius: 1px;
}

.hero-content .cta-buttons .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(
        135deg, 
        rgba(255, 126, 95, 1) 0%, 
        rgba(255, 100, 80, 1) 50%,
        rgba(254, 160, 100, 1) 100%
    );
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    width: 75%;
    max-width: 320px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 強調シャドウ */
    box-shadow: 
        0 6px 20px rgba(255, 126, 95, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 0 0 rgba(255, 126, 95, 0);
}

.hero-3d-content .btn-primary {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ホバー時のグラデーションアニメーション */
.hero-3d-content .btn-primary:hover {
    transform: translateY(-4px);
    background-position: 100% 50%;
    box-shadow: 
        0 12px 35px rgba(255, 126, 95, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 126, 95, 0.15);
}

.hero-content .cta-buttons .btn-primary:hover {
    transform: translateY(-4px);
    background-position: 100% 50%;
    box-shadow: 
        0 12px 35px rgba(255, 126, 95, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 126, 95, 0.15);
}

.hero-content .cta-buttons .btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 6px 20px rgba(255, 126, 95, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* パルスアニメーション改良版 */
.pulse-animation {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 6px 20px rgba(255, 126, 95, 0.35),
            0 2px 6px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(255, 126, 95, 0);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(255, 126, 95, 0.45),
            0 3px 8px rgba(0, 0, 0, 0.12),
            0 0 0 8px rgba(255, 126, 95, 0.08);
    }
}

/* btn-secondary - ゴーストボタン化 */
.hero-content .cta-buttons .btn-secondary {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(0, 86, 179, 1);
    text-decoration: none;
    padding: 10px 24px;
    border: 1.5px solid rgba(0, 86, 179, 0.3);
    border-radius: 8px;
    background: rgba(0, 86, 179, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.hero-content .cta-buttons .btn-secondary:hover {
    color: rgba(0, 86, 179, 1);
    border-color: rgba(0, 86, 179, 0.5);
    background: rgba(0, 86, 179, 0.08);
    transform: translateY(-2px);
}

.hero-content .cta-buttons .btn-secondary::after {
    content: '→';
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

.hero-content .cta-buttons .btn-secondary:hover::after {
    transform: translateX(3px);
}

/* ----- ヒーロースクロールボタン - 体験セクション誘導 ----- */

.hero-scroll-btn {
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    color: #1E293B !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(249, 115, 22, 0.3) !important;
    border-radius: 50px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    width: auto !important;
    max-width: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-scroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.hero-scroll-btn:hover {
    color: #F97316 !important;
    border-color: #F97316 !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(249, 115, 22, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.hero-scroll-btn:hover::before {
    left: 100%;
}

.hero-scroll-btn:active {
    transform: translateY(-1px);
}

.hero-scroll-btn .cta-sparkle {
    width: 18px;
    height: 18px;
    color: #F97316;
}

.hero-scroll-btn .inline-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* バウンスアニメーション */
.hero-scroll-btn .bounce-icon {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

.hero-scroll-btn:hover .bounce-icon {
    animation: none;
    transform: translateY(3px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-ripple.animate {
    width: 300px;
    height: 300px;
}

.hero-3d-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-abacus {
    position: absolute;
    opacity: 0.1;
    animation: float3D 6s ease-in-out infinite;
}

.floating-abacus i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.abacus-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.abacus-1 i {
    font-size: 4rem;
}

.abacus-2 {
    bottom: 10%;
    left: 5%;
    animation-delay: 3s;
}

.abacus-2 i {
    font-size: 3rem;
}
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 注: 子要素 .particle svg で色を指定 */
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: particleFloat 10s linear infinite;
}

.particle svg {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 1);
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 20px;
}
/* ===================================================
   03. カルーセルセクション
   =================================================== */


/* ----- メインコンテナ ----- */

.topics-row {
    position: absolute;
    /* clamp()で画面サイズに応じた安全な範囲を設定 */
    top: clamp(440px, calc(var(--navbar-height) + 70vh - 80px), 620px);
    min-height: 100px;
}

.carousel {
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* ----- 最新記事リンク ----- */

.carousel a {
    text-decoration: none;
    color: inherit;
    width: 200px;
    display: inline-block;
}

.carousel .latest-articles-link h3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
    width: 90%;
    max-width: 200px;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(33, 37, 41, 1);
    transition: color 0.3s ease;
}

.latest-articles-link h3 .fa-newspaper,
.latest-articles-link h3 .arrow-icon {
    font-size: 1.15rem;
}

.latest-articles-link h3 .arrow-icon {
    transition: transform 0.3s ease;
}

.carousel:hover h3 {
    color: rgba(13, 110, 253, 1);
}

.carousel:hover h3 .arrow-icon {
    transform: translateY(4px);
}

.carousel:active h3 {
    color: rgba(10, 88, 202, 1);
}


/* ----- カルーセル本体 ----- */

.carousel .inner {
    display: grid;
    grid-auto-columns: 10rem;
    grid-auto-flow: column;
    justify-items: center;
    animation: scroll 10s linear infinite;
    position: relative;
}

.carousel .inner img {
    height: 70px;
}


/* ----- カルーセルアイテム ----- */

.carousel .inner .carousel-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.carousel .carousel-item:hover {
    z-index: 1000;
}

.carousel .carousel-item img {
    transition: all 0.3s ease;
}

.carousel .carousel-item:hover img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.carousel .carousel-tooltip {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    min-width: 180px;
    max-width: 280px;
    z-index: 9999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    animation: tooltipFadeIn 0.3s ease-out;
}

.carousel .carousel-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.98);
}

.carousel .carousel-tooltip h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel .carousel-item:hover .carousel-tooltip {
    display: block;
}

.carousel .inner:has(.carousel-item:hover) {
    animation-play-state: paused !important;
}

.carousel .carousel-item:first-child .carousel-tooltip,
.carousel .carousel-item:nth-child(2) .carousel-tooltip {
    left: 0;
    transform: translateX(20px);
}

.carousel .carousel-item:first-child .carousel-tooltip::after,
.carousel .carousel-item:nth-child(2) .carousel-tooltip::after {
    left: 30px;
}

.carousel .carousel-item:nth-last-child(1) .carousel-tooltip,
.carousel .carousel-item:nth-last-child(2) .carousel-tooltip {
    left: auto;
    right: 0;
    transform: translateX(-20px);
}

.carousel .carousel-item:nth-last-child(1) .carousel-tooltip::after,
.carousel .carousel-item:nth-last-child(2) .carousel-tooltip::after {
    left: auto;
    right: 30px;
}
.carousel .carousel-item:focus {
    outline: 3px solid #4dabf7;
    outline-offset: 3px;
    z-index: 1000;
}

.carousel .carousel-item:focus .carousel-tooltip {
    display: block;
}

.carousel .inner:has(.carousel-item:focus) {
    animation-play-state: paused !important;
}


@supports not selector(:has(*)) {
    .carousel .inner:hover {
        animation-play-state: paused !important;
    }
}


/* ===================================================
   04. クラス情報セクション
   =================================================== */

.class-excuse .highlight-text {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}


/* ===================================================
   05. 教室情報セクション
   =================================================== */

.index-4th {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 体験セクションからの滑らかな接続 - 暖色系グラデーション */
    background: linear-gradient(
        180deg, 
        #FFF7ED 0%,           /* 体験セクション下部と同色 */
        #FFFBF7 15%,          /* 暖色系の明るいクリーム */
        #FAFBFC 50%,          /* 中性（ニュートラル）への遷移 */
        #F8FAFC 100%          /* 薄いグレー系で落ち着かせる */
    );
    padding: 50px 20px;
    text-align: center;
    width: 100%;
}

.index-4th header {
    margin-bottom: 30px;
}

.index-4th .info-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
}

.index-4th .info-box .info-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #EDE8E3;  /* 暖色系の微細なボーダー */
    padding: 20px;
    min-width: 250px;
    text-align: center;
}

/* ホバー効果なし - ユーザー要望 */

.index-4th .info-box .info-item .icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

.index-4th .info-box .info-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.index-4th .info-box .info-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* ===================================================
   統一強調スタイルシステム（マーカー風・改善版）
   
   デザイン原則:
   - 暖色(オレンジ)と寒色(ネイビー)で心理的カテゴリを分離
   - CTAボタンとの色彩連携でコンバージョン導線を強化
   - 40%/60%比率で視認性の高いマーカー表現
   =================================================== */

/* プライマリ強調: 独自価値・差別化要素（CTAと同系色）
   使用例: 9段資格、実践的な計算力 */
.index-4th .emphasis-primary {
    color: #d35400;
    font-weight: 700;
    background: linear-gradient(transparent 40%, rgba(255, 126, 95, 0.35) 40%);
    padding: 0 4px;
    margin: 0 -4px;
}

/* セカンダリ強調: 信頼性・安心材料（寒色系で落ち着き）
   使用例: 連盟加盟、検定準会場 */
.index-4th .emphasis-secondary {
    color: #0056b3;
    font-weight: 600;
    background: linear-gradient(transparent 40%, rgba(0, 86, 179, 0.22) 40%);
    padding: 0 4px;
    margin: 0 -4px;
}

/* 旧スタイルの後方互換性（非推奨） */
.index-4th .qualification {
    color: #d35400;
    font-weight: bold;
    background: linear-gradient(transparent 40%, rgba(255, 126, 95, 0.35) 40%);
    padding: 0 4px;
}

.index-4th .highlight {
    color: #d35400;
    font-weight: bold;
    background: linear-gradient(transparent 40%, rgba(255, 126, 95, 0.35) 40%);
    padding: 0 4px;
}

.index-4th .benefit {
    color: #0056b3;
    font-weight: 600;
    background: linear-gradient(transparent 40%, rgba(0, 86, 179, 0.22) 40%);
    padding: 0 4px;
}

.index-4th .additional-service {
    color: #0056b3;
    font-weight: 600;
    background: linear-gradient(transparent 40%, rgba(0, 86, 179, 0.22) 40%);
    padding: 0 4px;
}


/* ===================================================
   06. アクセス情報セクション - 洗練されたリデザイン
   
   デザイン原則:
   - 引き算の美学：装飾を最小限に
   - タイポグラフィ重視：色と太さで差別化
   - フラットデザイン：シャドウは控えめ
   - 情報の流れを尊重：読みやすさ優先
   =================================================== */

.index-5th {
    /* 教室情報からの滑らかな接続 */
    background: linear-gradient(
        180deg,
        #F8FAFC 0%,           /* 教室情報下部と同色 */
        #FFFFFF 30%,          /* 純白へ遷移 */
        #FFFFFF 100%
    );
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.index-5th h2 {
    margin-bottom: 20px;
}

.index-5th .access-container {
    display: flex;
    margin-top: 0rem;
    gap: 30px;
    align-items: stretch; /* 高さを揃える */
    width: 100%;
    max-width: 1100px;
}

.index-5th .access-container .map-container {
    flex: 1;
    min-height: 380px;
    overflow: hidden;
    background-color: #FFFBF7;  /* 暖色系の薄いクリーム */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.index-5th .access-container .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.map-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f5f5f5;
    padding: 2rem;
}

.map-error p {
    margin-bottom: 1rem;
    color: #666;
}

.map-error a {
    color: #0066cc;
    text-decoration: underline;
}

/* ----- アクセス情報カード ----- */

.index-5th .access-container .access-info {
    flex: 1;
    max-width: 420px;
    background: linear-gradient(135deg, #FFFBF7 0%, #ffffff 100%);  /* 暖色系グラデーション */
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid #EDE8E3;  /* 暖色系の微細なボーダー */
    color: #334155;
    display: flex;
    flex-direction: column;
}

/* info-labelはbase.cssで共通定義済み */

.index-5th .access-info > div {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.index-5th .access-info > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
}

.index-5th .access-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    text-align: left;
}

/* =====================================================
   最寄駅 - 洗練された強調表現
   ===================================================== */

.station-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.station-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #EDE8E3;  /* 暖色系ボーダー */
    transition: all 0.2s ease;
}

.station-item:hover {
    border-color: #f97316;
    background: #fffbf7;
}

.station-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.station-name small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.station-distance {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    color: #ea580c;
    font-weight: 600;
    font-size: 0.85rem;
}

.station-distance em {
    font-style: normal;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #ea580c;
}

/* =====================================================
   小学校リスト - 整理された情報表示
   ===================================================== */

.school-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.school-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #EDE8E3;  /* 暖色系ボーダー */
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.school-list li:hover {
    background: #FFFBF7;  /* 暖色系ホバー背景 */
    border-color: #D9D4CF;
}

.school-name {
    font-weight: 500;
    color: #334155;
}

.school-detail {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

/* 徒歩時間 - 控えめなタグ形式 */
.walking-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* 最も近い（2分）: エメラルドグリーン */
.walking-time.fastest {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* 近い（5分）: ライトグリーン */
.walking-time.fast {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 普通（6-7分）: ライトブルー */
.walking-time.normal {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}


/* ===================================================
   06-1. アクセス情報 レスポンシブ対応
   =================================================== */

/* タブレット（〜768px） */
@media (max-width: 768px) {
    .index-5th .access-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .index-5th .access-container .map-container,
    .index-5th .access-container .access-info {
        width: 100%;
    }
    
    .index-5th .access-container .map-container {
        height: 280px;
        min-height: 240px;
    }
    
    .index-5th .access-container .access-info {
        padding: 24px;
    }
    
    .station-item {
        padding: 10px 14px;
    }
    
    .station-distance em {
        font-size: 1.4rem;
    }
    
    .school-list li {
        padding: 8px 12px;
        gap: 10px;
    }
}

/* スマートフォン（〜480px） */
@media (max-width: 480px) {
    .index-5th {
        padding: 40px 16px;
    }
    
    .index-5th .access-container .access-info {
        padding: 20px 16px;
    }
    
    .index-5th .access-info > div {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .station-list {
        gap: 10px;
    }
    
    .station-item {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .station-name {
        font-size: 0.9rem;
    }
    
    .station-name small {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .station-distance {
        font-size: 0.85rem;
    }
    
    .station-distance em {
        font-size: 1.3rem;
    }
    
    .school-list {
        gap: 6px;
    }
    
    .school-list li {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 8px;
        padding: 10px 12px;
    }
    
    .school-name {
        font-size: 0.85rem;
        grid-column: 1;
        grid-row: 1;
    }
    
    .school-detail {
        font-size: 0.75rem;
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }
    
    .walking-time {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        min-width: 38px;
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* 極小スマートフォン（〜360px） */
@media (max-width: 360px) {
    .index-5th .access-container .access-info {
        padding: 16px 12px;
    }
    
    .station-item {
        padding: 8px 10px;
    }
    
    .station-name {
        font-size: 0.85rem;
    }
    
    .station-distance em {
        font-size: 1.2rem;
    }
    
    .school-list li {
        padding: 8px 10px;
    }
    
    .school-name {
        font-size: 0.8rem;
    }
    
    .walking-time {
        min-width: 34px;
        padding: 5px 8px;
        font-size: 0.73rem;
    }
}


/* ===================================================
   07. アニメーション定義
   =================================================== */


/* ----- 基本アニメーション ----- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popEach {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}


/* ----- 3Dアニメーション ----- */

@keyframes char3DIn {
    0% {
        opacity: 0;
        transform: translateZ(-100px) rotateY(90deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) rotateY(0) scale(1);
    }
}

@keyframes fadeInUp3D {
    0% {
        opacity: 0;
        transform: translateY(30px) translateZ(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes float3D {
    0%,
    100% {
        transform: translateY(0) rotateZ(0deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(5deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateZ(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateZ(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ----- カルーセル関連アニメーション ----- */

@keyframes scroll {
    to {
        transform: translateX(calc(10rem * -5));
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* ===================================================
   07-b. 体験セクション - 「はじめの一歩」
   ===================================================
   
   【デザイン哲学】
   ■ 芸術的基盤: 浮世絵の非対称構図、バウハウスの機能美
   ■ 心理学的設計: 感情先行、認知流暢性、マジックナンバー3
   ■ 独自性: そろばんの珠モチーフ、和紙のような温もり
   
   =================================================== */

/* ----- セクションコンテナ ----- */

.trial-experience {
    --trial-orange: #F97316;
    --trial-orange-soft: #FB923C;
    --trial-orange-pale: #FFF7ED;
    --trial-teal: #0D9488;
    --trial-teal-soft: #14B8A6;
    --trial-teal-pale: #F0FDFA;
    --trial-gold: #D97706;
    --trial-text-dark: #1E293B;
    --trial-text-mid: #475569;
    --trial-text-light: #94A3B8;
    
    position: relative;
    width: 100%;
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #FEFDFB 0%, #FFF9F5 50%, #FFF7ED 100%);
    overflow: hidden;
}

/* ----- 背景装飾 ----- */

.trial-experience__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.trial-bead {
    position: absolute;
    border-radius: 50%;
}

.trial-bead--orange {
    width: 200px;
    height: 200px;
    top: -30px;
    right: 10%;
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.04) 50%, transparent 70%);
    animation: bead-drift-1 18s ease-in-out infinite;
}

.trial-bead--teal {
    width: 140px;
    height: 140px;
    bottom: 10%;
    left: 4%;
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.1) 0%, rgba(13, 148, 136, 0.03) 50%, transparent 70%);
    animation: bead-drift-2 15s ease-in-out infinite 2s;
}

.trial-bead--gold {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 3%;
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0.02) 50%, transparent 70%);
    animation: bead-drift-3 20s ease-in-out infinite 5s;
}

.trial-bead--sm {
    width: 35px;
    height: 35px;
    opacity: 0.7;
}

.trial-bead--sm-1 {
    top: 22%;
    left: 12%;
    background: radial-gradient(circle at 35% 35%, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    animation: bead-drift-1 11s ease-in-out infinite 1s;
}

.trial-bead--sm-2 {
    bottom: 28%;
    right: 18%;
    background: radial-gradient(circle at 35% 35%, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
    animation: bead-drift-2 13s ease-in-out infinite 3s;
}

@keyframes bead-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -20px) scale(1.02); }
    66% { transform: translate(-8px, 12px) scale(0.98); }
}

@keyframes bead-drift-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, -12px) rotate(4deg); }
}

@keyframes bead-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(8px, -15px) scale(1.03); }
    75% { transform: translate(-12px, 8px) scale(0.97); }
}

/* ----- メインレイアウト ----- */

.trial-experience__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    text-align: center;
}

/* ----- 写真エリア ----- */

.trial-visual {
    position: relative;
}

.trial-visual__frame {
    position: relative;
    transform: rotate(-1.5deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-visual__frame:hover {
    transform: rotate(0deg) scale(1.015);
}

.trial-visual__frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 48px 20px;
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.18),
        0 8px 24px -8px rgba(249, 115, 22, 0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.trial-visual__frame:hover img {
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.22),
        0 10px 30px -8px rgba(249, 115, 22, 0.15);
}

.trial-visual__badge {
    position: absolute;
    bottom: -16px;
    right: 24px;
    background: linear-gradient(135deg, var(--trial-orange) 0%, var(--trial-orange-soft) 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px 12px 24px 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 
        0 8px 20px -4px rgba(249, 115, 22, 0.4),
        0 4px 8px -2px rgba(249, 115, 22, 0.2);
    transform: rotate(2deg);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.trial-visual__badge span {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.trial-visual__accent {
    position: absolute;
    width: 3px;
    height: 55%;
    right: -24px;
    top: 22%;
    background: linear-gradient(180deg, transparent 0%, var(--trial-orange) 25%, var(--trial-teal) 75%, transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
}

/* ----- テキストエリア ----- */

.trial-content {
    position: relative;
}

.trial-content__label {
    display: inline-block;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--trial-teal);
    background: var(--trial-teal-pale);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.trial-content__heading {
    font-family: "YuMincho", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 600;
    color: var(--trial-text-dark);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.trial-content__heading em {
    font-style: normal;
    color: var(--trial-orange);
    position: relative;
}

.trial-content__heading em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M2,4 Q15,2 30,4.5 T60,4 T90,4.5 T118,4' stroke='%23F97316' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='0.4'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.trial-content__sub {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--trial-text-mid);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ----- 3つの安心ポイント ----- */

.trial-points {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.trial-point {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trial-point__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.trial-point:hover .trial-point__icon {
    transform: translateY(-4px) scale(1.05);
}

.trial-point__icon--time {
    background: linear-gradient(145deg, #FFF7ED 0%, #FFEDD5 100%);
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.3);
}

.trial-point__icon--bag {
    background: linear-gradient(145deg, #F0FDFA 0%, #CCFBF1 100%);
    box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.3);
}

.trial-point__icon--tool {
    background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.3);
}

.trial-point__icon svg,
.trial-point__icon i {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.trial-point__icon--time svg,
.trial-point__icon--time i { color: #EA580C; }
.trial-point__icon--bag svg,
.trial-point__icon--bag i { color: #0D9488; }
.trial-point__icon--tool svg,
.trial-point__icon--tool i { color: #B45309; }

.trial-point__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trial-point__main {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--trial-text-dark);
}

.trial-point__desc {
    font-size: 0.85rem;
    color: var(--trial-text-light);
}

/* ----- CTAボタン ----- */

.trial-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.1rem 2.5rem;
    min-height: 56px;  /* タップ領域確保（44px以上） */
    background: linear-gradient(135deg, var(--trial-orange) 0%, #EA580C 100%);
    color: #fff;
    font-family: "YuMincho", "Yu Mincho", serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px 40px 40px 40px;
    box-shadow: 0 8px 24px -4px rgba(249, 115, 22, 0.45), 0 4px 8px -2px rgba(234, 88, 12, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(249, 115, 22, 0.5), 0 6px 12px -2px rgba(234, 88, 12, 0.3);
    color: #fff;
    text-decoration: none;
}

.trial-cta:active {
    transform: translateY(-1px);
}

.trial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.trial-cta:hover::before {
    left: 100%;
}

.trial-cta i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.trial-cta:hover i:last-child {
    transform: translateX(3px);
}

.trial-cta-note {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.875rem;
    font-size: 0.8rem;
    color: var(--trial-text-light);
}

.trial-cta-note span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trial-cta-note svg,
.trial-cta-note i {
    width: 14px;
    height: 14px;
    color: #22C55E;
}

.trial-cta:focus {
    outline: 3px solid rgba(249, 115, 22, 0.5);
    outline-offset: 3px;
}

.trial-cta:focus:not(:focus-visible) {
    outline: none;
}


/* ===================================================
   08. レスポンシブ対応
   =================================================== */


/* ----- タブレット（〜768px） ----- */

@media (max-width: 768px) {
    /* ヒーローセクション - タブレット最適化 */
    .hero-3d-section {
        height: clamp(480px, 70vh, 600px);
    }
    .hero-3d-content {
        top: 47%;  /* タブレットでは少し上に */
    }
    .hero-3d-content .hero-title {
        font-size: 3.5rem;  /* 4rem→3.5remに縮小 */
    }
    .topics-row {
        top: clamp(400px, calc(var(--navbar-height) + 70vh - 80px), 520px);
    }
    .hero-3d-title {
        font-size: 4rem;
    }
    
    /* ----- 体験セクション - タブレット ----- */
    .trial-experience {
        padding: 2.5rem 0 3rem;
    }
    .trial-experience__inner {
        padding: 0 1.5rem;
    }
    .trial-content__heading {
        font-size: 1.5rem;
    }
    .trial-points {
        gap: 1.5rem;
    }
    .trial-point__icon {
        width: 68px;
        height: 68px;
    }
    .trial-point__icon svg,
    .trial-point__icon i {
        width: 30px;
        height: 30px;
    }
    .trial-point__main {
        font-size: 1rem;
    }
    .trial-point__desc {
        font-size: 0.8rem;
    }
    .trial-cta {
        width: 100%;
        max-width: 320px;
        min-height: 54px;  /* タップ領域確保 */
    }
    .trial-bead--orange {
        width: 120px;
        height: 120px;
        opacity: 0.7;
    }
    .trial-bead--teal {
        width: 90px;
        height: 90px;
        opacity: 0.6;
    }
    .trial-bead--gold {
        display: none;
    }
    /* ----- 体験セクション終了 ----- */
    
    /* ----- ヒーロースクロールボタン - モバイル ----- */
    .hero-scroll-btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        min-height: 48px;
    }
    .hero-scroll-btn .cta-sparkle,
    .hero-scroll-btn .inline-icon {
        width: 16px;
        height: 16px;
    }
    /* ----- ヒーロースクロールボタン終了 ----- */
    
    .title-line {
        display: block;
        margin: 0.3rem 0;
    }
    .content-wrapper {
        padding: 2rem 1.5rem 1.5rem;
        /* モバイルでは角丸を控えめに */
        border-radius: 12px 12px 28px 12px;
        margin: 0 0.5rem;
    }
    .hero-3d-content .subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    /* Hero Tagline - タブレット */
    .hero-tagline__main {
        font-size: 1.05rem;
    }
    .hero-tagline__sub {
        font-size: 0.95rem;
    }
    .hero-tagline__icon {
        width: 15px;
        height: 15px;
    }
    .hero-text-link {
        font-size: 0.9rem;
    }
    .hero-text-link__arrow {
        width: 18px;
        height: 18px;
    }
    .hero-3d-content .sub-text {
        font-size: 0.95rem;
    }
    /* CTAボタン - モバイルでより大きく */
    .hero-3d-content .btn-primary {
        width: 95%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1.05rem;
        min-height: 56px;
    }
    .hero-content .cta-buttons .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .hero-content .cta-buttons {
        gap: 0.6rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    .slide {
        transform: translateZ(-400px) scale(0.9);
    }
    /* 装飾要素 */
    .floating-abacus i {
        font-size: 2rem;
    }
    .particle {
        width: 16px;
        height: 16px;
    }
    .particle i {
        font-size: 0.6rem;
        line-height: 16px;
    }
    .carousel .carousel-tooltip {
        min-width: 150px;
        max-width: 240px;
        padding: 10px 14px;
        bottom: 80px;
    }
    .carousel .carousel-tooltip h4 {
        font-size: 0.9rem;
    }
    .carousel .carousel-tooltip::after {
        border-width: 6px;
    }
    /* 教室情報セクション */
    .index-4th {
        padding: 2rem 1rem 3rem 1rem;
    }
    .index-4th .info-box {
        gap: 1.5rem;
    }
    .index-4th .info-box .info-item {
        min-width: 300px;
        margin: 0 auto;
    }
    .index-4th .info-box .info-item h3 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }
    .index-4th .info-box .info-item p {
        font-size: 0.95rem;
    }
    /* アクセス情報セクション */
    .index-5th {
        padding: 2rem 1rem 3rem 1rem;
    }
    .index-5th .access-container {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    .index-5th .access-container .map-container,
    .index-5th .access-container .access-info {
        width: 100%;
    }
    .index-5th .access-container .access-info:hover {
        transform: scale(1.02);
    }
    .index-5th .access-container .map-container {
        height: 300px;
        min-height: 250px;
    }
    .index-5th .access-info p,
    .index-5th .access-info li {
        font-size: 0.95rem;
    }
}


/* ----- 主流スマホ（〜600px） ----- */

@media (max-width: 600px) {
    .hero-3d-section {
        height: clamp(420px, 70vh, 520px);
    }
    .hero-3d-content {
        position: absolute;
        top: 40%;  /* 43%→40%に変更し、topics-rowとのマージンを確保 */
    }
    .hero-3d-content .hero-title {
        font-size: 3.1rem;
    }
    .hero-3d-content .subtitle {
        font-size: 1.1rem;
    }
    .hero-3d-content .sub-text {
        font-size: 0.9rem;
    }
    .topics-row {
        position: absolute;
        top: clamp(340px, calc(var(--navbar-height) + 70vh - 90px), 440px);
    }
    .hero-3d-content .cta-buttons .btn-primary {
        width: 92%;
        max-width: 290px;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 52px;  /* タップ領域確保 */
    }
    .hero-content .cta-buttons .btn-secondary {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .index-4th .info-box .info-item {
        width: 90vw;
        max-width: 340px;
        margin: 0 auto;
    }
}


/* ----- 小型スマホ（〜480px） ----- */
 @media (max-width: 480px) {
    /* ----- 体験セクション - モバイル ----- */
    .trial-experience {
        padding: 2rem 0 2.5rem;
    }
    .trial-experience__inner {
        padding: 0 1rem;
    }
    .trial-content__heading {
        font-size: 1.25rem;
    }
    .trial-content__sub {
        font-size: 0.9rem;
    }
    .trial-points {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .trial-point {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    .trial-point__icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .trial-point__icon svg,
    .trial-point__icon i {
        width: 28px;
        height: 28px;
    }
    .trial-point__main {
        font-size: 1.05rem;
    }
    .trial-point__desc {
        font-size: 0.85rem;
    }
    .trial-cta {
        width: 100%;
        max-width: 260px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;  /* タップ領域確保（44px以上） */
    }
    .trial-bead--orange {
        width: 80px;
        height: 80px;
        opacity: 0.5;
    }
    .trial-bead--teal {
        width: 60px;
        height: 60px;
        opacity: 0.4;
    }
    .trial-bead--sm {
        display: none;
    }
    /* ----- 体験セクション終了 ----- */
    
    /* ----- ヒーロースクロールボタン - 小型モバイル ----- */
    .hero-scroll-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        min-height: 44px;
        gap: 0.4rem;
    }
    .hero-scroll-btn .cta-sparkle,
    .hero-scroll-btn .inline-icon {
        width: 14px;
        height: 14px;
    }
    /* ----- ヒーロースクロールボタン終了 ----- */
    
    .header h1{
        font-size: 1.8rem;
    }
    .header nav img {
        margin-left: 10px;
    }
    .hero-3d-title {
        font-size: 3rem;
    }
    .content-wrapper {
        padding: 1.75rem 0.75rem;
        border-radius: 15px;
        margin: 0 0.15rem;  /* 幅を最大化 */
    }
    .hero-3d-content .hero-title span {
        font-size: 2.35rem;  /* 確実に1行に収まるサイズ */
    }
    .hero-3d-content .subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    /* Hero Tagline - スマホ最適化 */
    .hero-tagline {
        margin-bottom: 1.25rem;
    }
    .hero-tagline__main {
        font-size: 1rem;
    }
    .hero-tagline__emphasis::after {
        height: 3px;  /* 下線を太く */
    }
    .hero-tagline__sub {
        font-size: 0.9rem;
        gap: 0.35rem;
    }
    .hero-tagline__icon {
        width: 14px;
        height: 14px;
    }
    .hero-text-link {
        font-size: 0.9rem;
        gap: 0.4rem;
        padding: 0.5rem 0;  /* タップ領域拡大 */
    }
    .hero-text-link__arrow {
        width: 18px;
        height: 18px;
    }
    .hero-3d-content .sub-text {
        font-size: 0.85rem;
    }
    .hero-3d-content .cta-buttons .btn-primary {
        width: 85vw;
        max-width: 260px;
        font-size: 0.95rem;
        padding: 12px 18px;
        min-height: 48px;  /* タップ領域確保（44px以上） */
    }
    .carousel .carousel-tooltip {
        min-width: 130px;
        max-width: 200px;
        padding: 8px 12px;
        bottom: 75px;
    }
    .carousel .carousel-tooltip h4 {
        font-size: 0.85rem;
    }
    .index-4th .info-box .info-item {
        width: 90vw;
        max-width: 320px;
        margin: 0 auto;
        padding: 15px;
    }
    .index-4th .info-box .info-item .icon {
        font-size: 32px;
    }
    .index-4th .info-box .info-item h3 {
        font-size: 1.1rem;
    }
    .index-4th .info-box .info-item p {
        font-size: 0.9rem;
    }
    .index-5th header h1 {
        font-size: 1.8rem;
    }
    .index-5th .access-container .map-container {
        height: 250px;
        min-height: 200px;
    }
    .index-5th .access-info {
        padding: 15px;
    }
    .index-5th .access-info p {
        font-size: 0.85rem;
    }
    .index-5th .school-list li {
        font-size: 0.85rem;
        margin: 6px 0;
    }
    .station-name {
        font-size: 0.9rem;
    }
    .station-distance {
        font-size: 0.8rem;
    }
    .station-distance em {
        font-size: 1.1rem;
    }
    /* topics-row - スマホ最適化 */
    .topics-row {
        /* 小型デバイスでもcontent-wrapperとの最小50pxマージンを確保 */
        top: clamp(340px, calc(var(--navbar-height) + 70vh - 100px), 420px);
    }
}



/* ----- タッチデバイス対応 ----- */

@media (hover: none) and (pointer: coarse) {
    .carousel .carousel-tooltip {
        display: none !important;
    }
    .carousel .inner:has(.carousel-item:hover) {
        animation-play-state: running !important;
    }
}


/* ----- アクセシビリティ対応 ----- */

@media (prefers-reduced-motion: reduce) {
    .slide,
    .hero-3d-content .hero-title span,
    .floating-abacus,
    .particle,
    .carousel .carousel-tooltip,
    .trial-bead {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    .slide {
        transform: none !important;
    }
    .slide.active {
        opacity: 1;
    }
    .slide:not(.active) {
        opacity: 0;
    }
    .carousel .carousel-item img {
        transition: none;
    }
    /* 体験セクション - アニメーション無効化 */
    .trial-visual__frame,
    .trial-point__icon,
    .trial-cta {
        transition: none !important;
    }
}