/* ========================================
   才適塾 LP - スタイルシート
   配色: ネイビー（信頼）× ゴールド（合格）× ブルー（AI）
   ======================================== */

/* ========================================
   リセット & 基本設定
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* メインカラー */
    --navy-900: #0a0f1f;
    --navy-800: #111827;
    --navy-700: #1a2744;
    --navy-600: #243352;
    --navy-500: #334566;

    /* ゴールド（アクセント） */
    --gold-500: #d4a853;
    --gold-400: #e4bc6a;
    --gold-300: #f0d08a;

    /* ブルー（AI・先進性） */
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;

    /* サブカラー */
    --cyan-500: #06b6d4;
    --green-500: #10b981;

    /* ニュートラル */
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --text-dark: #1f2937;

    /* グラデーション */
    --gradient-gold: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 100%);
    --gradient-blue: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-500) 100%);
    --gradient-navy: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    --gradient-hero: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--navy-800) 100%);

    /* フォント */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* スペーシング */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* その他 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 8px 32px rgba(212, 168, 83, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ユーティリティ */
.pc-only { display: inline; }
.sp-only { display: none; }

@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: inline; }
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
}

.logo-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 var(--space-sm);
}

.logo-company {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-300);
    letter-spacing: 0.05em;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--gradient-gold);
    color: var(--navy-900);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: var(--space-xs);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300);
}

.nav a:hover {
    color: var(--white);
}

.btn-nav {
    background: var(--gradient-gold);
    color: var(--navy-900) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.hero-title-highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-400);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
    line-height: 2;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray-400), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy-900);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy-800);
    border: 2px solid var(--navy-800);
}

.btn-outline-dark:hover {
    background: var(--navy-800);
    color: var(--white);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--navy-900);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-xlarge {
    padding: 20px 48px;
    font-size: 1.15rem;
}

/* ========================================
   セクション共通
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header.light {
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-500);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-header.light .section-label {
    color: var(--gold-400);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
}

.section-header.light .section-subtitle {
    color: var(--gray-300);
}

/* テキストユーティリティ */
.gold-text {
    color: var(--gold-500);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--gold-400);
}

/* ========================================
   2. お悩みセクション
   ======================================== */
.problems {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.problem-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.problem-item:hover {
    background: var(--navy-800);
    color: var(--white);
    transform: translateX(8px);
}

.check-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-blue);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.check-icon::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.problem-item p {
    font-size: 1.05rem;
    font-weight: 500;
}

.problems-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.solution-box {
    background: var(--gradient-navy);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    color: var(--white);
}

.solution-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.solution-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.solution-name {
    font-size: 1.2rem;
}

.solution-name .gradient-text {
    font-size: 2rem;
    font-weight: 900;
}

.solution-abbr {
    color: var(--gray-400);
    font-size: 1rem;
}

/* ========================================
   3. Features セクション
   ======================================== */
.features {
    padding: var(--space-3xl) 0;
    background: var(--gradient-navy);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 168, 83, 0.3);
}

.feature-number {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.feature-number .number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.feature-number .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.15em;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.feature-card.reverse .feature-content {
    direction: rtl;
}

.feature-card.reverse .feature-content > * {
    direction: ltr;
}

.feature-catch {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.feature-points {
    list-style: none;
}

.feature-points li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-points li:last-child {
    border-bottom: none;
}

.point-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-400);
}

.point-desc {
    font-size: 1rem;
    color: var(--gray-300);
    line-height: 1.7;
}

.feature-image {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-image-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

.feature-image-wrapper img {
    border-radius: var(--radius-md);
}

.feature-image-wrapper.large {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.feature-image-wrapper.large img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-reference {
    max-width: 200px;
    opacity: 0.7;
    transition: var(--transition);
}

.feature-reference:hover {
    opacity: 1;
    transform: scale(1.02);
}

.feature-reference img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* 画像グリッド（Feature 04用 - 大きめ表示） */
.feature-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
}

.grid-item {
    text-align: center;
}

.grid-label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-400);
    background: rgba(212, 168, 83, 0.15);
    padding: 10px 24px;
    border-radius: 25px;
    margin-bottom: var(--space-md);
}

.grid-item img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    width: 100%;
    max-width: 600px;
    height: auto;
    transition: var(--transition);
}

.grid-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 忘却曲線グラフ */
.forgetting-curve {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.curve-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: var(--space-lg);
}

.curve-chart {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.curve-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 10px 0;
}

.curve-graph {
    flex: 1;
    background: linear-gradient(to bottom, rgba(212, 168, 83, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.curve-svg {
    width: 100%;
    height: 200px;
}

.curve-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
    padding-left: 40px;
}

.curve-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.gold {
    background: linear-gradient(135deg, var(--gold-500), var(--blue-500));
}

.curve-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .curve-x-axis {
        font-size: 0.6rem;
        padding-left: 30px;
    }

    .curve-y-axis {
        font-size: 0.65rem;
    }
}

/* ========================================
   4. チーム紹介セクション
   ======================================== */
.team {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.team-content {
    text-align: center;
}

.team-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--navy-800);
    color: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.team-description {
    max-width: 800px;
    margin: 0 auto;
}

.team-description p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: var(--space-md);
    color: var(--gray-600);
}

.team-description strong {
    color: var(--navy-800);
}

/* ========================================
   5. 入塾の流れセクション
   ======================================== */
.flow {
    padding: var(--space-3xl) 0;
    background: var(--gradient-navy);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.step-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-400);
    font-size: 1.5rem;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-500);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ========================================
   FAQ セクション
   ======================================== */
.faq {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-100);
}

.q-icon, .a-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.q-icon {
    background: var(--navy-800);
    color: var(--white);
}

.a-icon {
    background: var(--gradient-gold);
    color: var(--navy-900);
}

.faq-question p {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--gray-400);
    transition: var(--transition);
}

.toggle-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
    align-items: flex-start;
    gap: var(--space-md);
}

.faq-item.active .faq-answer {
    display: flex;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   最終CTA セクション
   ======================================== */
.final-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-500);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    color: var(--navy-800);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.cta-note {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--navy-900);
    padding: var(--space-2xl) 0;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-logo-image {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========================================
   レスポンシブ
   ======================================== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .feature-card.reverse .feature-content {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .feature-image-wrapper img {
        max-height: 400px;
        margin: 0 auto;
    }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

    .feature-image-grid {
        max-width: 100%;
    }
}

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
    :root {
        --space-2xl: 2.5rem;
        --space-3xl: 3rem;
        --space-xl: 2rem;
        --space-lg: 1.25rem;
        --space-md: 1rem;
    }

    .container {
        padding: 0 20px;
    }

    /* ヘッダー */
    .header {
        padding: 12px 0;
    }

    .logo-image {
        height: 40px;
    }

    .logo-badge {
        display: none;
    }

    .logo-divider,
    .logo-company {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 31, 0.98);
        flex-direction: column;
        padding: var(--space-md);
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 14px var(--space-md);
        text-align: center;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: flex;
    }

    /* ヒーローセクション */
    .hero {
        padding: calc(70px + var(--space-xl)) 0 var(--space-xl);
        min-height: auto;
    }

    .hero-label {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: var(--space-md);
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.5;
        margin-bottom: var(--space-md);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: var(--space-md);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
        line-height: 1.8;
    }

    .hero-description br {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hero-scroll {
        display: none;
    }

    /* セクション共通 */
    .section-header {
        margin-bottom: var(--space-xl);
    }

    .section-label {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* お悩みセクション */
    .problems {
        padding: var(--space-2xl) 0;
    }

    .problems-grid {
        gap: 12px;
        margin-bottom: var(--space-xl);
    }

    .problem-item {
        padding: 16px 18px;
        gap: 14px;
    }

    .check-icon {
        width: 28px;
        height: 28px;
    }

    .check-icon::after {
        font-size: 0.9rem;
    }

    .problem-item p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .solution-box {
        padding: var(--space-xl);
        border-radius: var(--radius-lg);
    }

    .solution-label {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .solution-title {
        font-size: 1.25rem;
        margin-bottom: var(--space-md);
        line-height: 1.6;
    }

    .solution-name {
        font-size: 1.1rem;
    }

    .solution-name .gradient-text {
        font-size: 1.5rem;
    }

    .solution-abbr {
        font-size: 0.95rem;
    }

    /* Feature セクション */
    .features {
        padding: var(--space-2xl) 0;
    }

    .feature-card {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .feature-number {
        margin-bottom: var(--space-md);
    }

    .feature-number .number {
        font-size: 2.2rem;
    }

    .feature-number .label {
        font-size: 0.7rem;
    }

    .feature-content {
        gap: var(--space-lg);
    }

    .feature-catch {
        font-size: 1.15rem;
        margin-bottom: var(--space-md);
        line-height: 1.6;
    }

    .feature-catch br {
        display: none;
    }

    .feature-points li {
        padding: 12px 0;
    }

    .point-title {
        font-size: 0.95rem;
    }

    .point-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .feature-image-wrapper {
        padding: 10px;
    }

    .feature-image-wrapper img {
        max-height: 350px;
    }

    /* Feature 04 画像グリッド - 2カラム維持 */
    .feature-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .grid-label {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 10px;
    }

    .grid-item img {
        max-width: 100%;
    }

    /* 忘却曲線 */
    .forgetting-curve {
        padding: var(--space-lg);
    }

    .curve-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-md);
    }

    .curve-y-axis {
        font-size: 0.7rem;
        min-width: 36px;
    }

    .curve-x-axis {
        font-size: 0.65rem;
        padding-left: 36px;
        margin-top: 10px;
    }

    .curve-svg {
        height: 160px;
    }

    .curve-note {
        font-size: 0.85rem;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
    }

    /* チーム紹介 */
    .team {
        padding: var(--space-2xl) 0;
    }

    .team-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-bottom: var(--space-xl);
    }

    .badge-item {
        width: auto;
        padding: 14px 20px;
        border-radius: var(--radius-md);
    }

    .badge-icon {
        font-size: 1.3rem;
    }

    .badge-text {
        font-size: 1rem;
    }

    .team-description p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: var(--space-md);
    }

    .team-description br {
        display: none;
    }

    /* 入塾の流れ - 2カラム配置 */
    .flow {
        padding: var(--space-2xl) 0;
    }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .step-item {
        padding: var(--space-lg);
    }

    .step-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .step-content h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* FAQ */
    .faq {
        padding: var(--space-2xl) 0;
    }

    .faq-item {
        margin-bottom: 14px;
    }

    .faq-question {
        padding: 18px;
        gap: 14px;
    }

    .faq-question p {
        font-size: 1.05rem;
    }

    .q-icon, .a-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 0 18px 18px;
        gap: 14px;
    }

    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    /* CTA */
    .final-cta {
        padding: var(--space-2xl) 0;
    }

    .cta-label {
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: var(--space-md);
    }

    .cta-title br {
        display: none;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }

    .cta-description br {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: var(--space-md);
    }

    .btn-xlarge {
        width: 100%;
        max-width: 320px;
        padding: 18px 24px;
        font-size: 1.1rem;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        padding: 16px 22px;
        font-size: 1rem;
    }

    .cta-note {
        font-size: 0.9rem;
    }

    /* フッター */
    .footer {
        padding: var(--space-xl) 0;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo-image {
        height: 50px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* 小型スマートフォン (480px以下) */
@media (max-width: 480px) {
    :root {
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-xl: 1.75rem;
        --space-lg: 1rem;
        --space-md: 0.75rem;
    }

    .container {
        padding: 0 16px;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .problem-item p {
        font-size: 0.95rem;
    }

    .solution-title {
        font-size: 1.1rem;
    }

    .solution-name .gradient-text {
        font-size: 1.3rem;
    }

    .feature-catch {
        font-size: 1.05rem;
    }

    .feature-number .number {
        font-size: 1.8rem;
    }

    .point-title {
        font-size: 0.9rem;
    }

    .point-desc {
        font-size: 0.9rem;
    }

    .feature-image-wrapper img {
        max-height: 300px;
    }

    /* 入塾の流れ - 480px以下は1カラム */
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .step-number {
        font-size: 1.8rem;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.88rem;
    }

    .badge-item {
        width: 100%;
        max-width: 240px;
        padding: 12px 18px;
    }

    .badge-text {
        font-size: 0.95rem;
    }

    .team-description p {
        font-size: 0.95rem;
    }

    /* Feature 04 画像グリッド - 480px以下は1カラム */
    .feature-image-grid {
        grid-template-columns: 1fr;
    }

    .faq-question p {
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }

    .btn-xlarge {
        padding: 16px 22px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* タッチデバイス向け最適化 */
@media (hover: none) {
    .problem-item:hover,
    .feature-card:hover,
    .step-item:hover,
    .grid-item img:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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