/* ========================================
   グローバル設定
   ======================================== */

:root {
    /* カラーパレット */
    --primary-color: #2d5f4f;
    --primary-dark: #1e3f35;
    --primary-light: #4a8570;
    --secondary-color: #7fb069;
    --accent-color: #e6b566;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    
    /* グレースケール */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* タイポグラフィ */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* フォントサイズ */
    --fs-xs: 0.75rem;      /* 12px */
    --fs-sm: 0.875rem;     /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-lg: 1.125rem;     /* 18px */
    --fs-xl: 1.25rem;      /* 20px */
    --fs-2xl: 1.5rem;      /* 24px */
    --fs-3xl: 1.875rem;    /* 30px */
    --fs-4xl: 2.25rem;     /* 36px */
    --fs-5xl: 3rem;        /* 48px */
    --fs-6xl: 3.75rem;     /* 60px */
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* ボーダー半径 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* トランジション */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   リセット & ベーススタイル
   ======================================== */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   ユーティリティクラス
   ======================================== */

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

.section {
    padding: var(--spacing-3xl) 0;
}

.section--gray {
    background-color: var(--gray-50);
}

.section--dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* セクションヘッダー */
.section__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section__title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section--dark .section__title {
    color: var(--white);
}

.section__subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section__subtitle {
    color: var(--gray-300);
}

.section__cta {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-lg);
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: var(--fs-xl);
}

/* ========================================
   ヘッダー & ナビゲーション
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.header.scroll-header {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: var(--spacing-xl);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.nav__logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__item {
    list-style: none;
}

.nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav__link--teacher {
    color: var(--secondary-color);
    font-weight: 700;
}

.nav__link--teacher:hover,
.nav__link--teacher.active-link {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.nav__buttons .btn-primary {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-sm);
    white-space: nowrap;
    margin-left: var(--spacing-lg);
}

.nav__buttons--mobile {
    display: none;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: var(--fs-2xl);
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* PC版では完全に非表示 */
@media screen and (min-width: 769px) {
    .nav__toggle,
    .nav__close {
        display: none !important;
    }
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    padding-top: 140px;
    padding-bottom: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(45, 95, 79, 0.05) 0%, rgba(127, 176, 105, 0.05) 100%);
}

.hero__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* 上部：説明文・価格 */
.hero__top {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero__content {
    z-index: 2;
    max-width: 800px;
}

.hero__tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(45, 95, 79, 0.1);
    color: var(--primary-color);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.hero__description {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: var(--spacing-lg);
}

/* 統計カード */
.hero__stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    font-size: var(--fs-2xl);
    flex-shrink: 0;
}

.stat-text {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

/* 下部：CTA・ダウンロード・特徴 */
.hero__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 2;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ヒーロー価格ハイライト */
.hero__highlight {
    background: linear-gradient(135deg, rgba(45, 95, 79, 0.08), rgba(127, 176, 105, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    text-align: center;
}

.hero__price-info {
    margin: 0;
    line-height: 1.6;
}

.highlight-label {
    font-size: var(--fs-base);
    color: var(--gray-700);
    font-weight: 500;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.highlight-price {
    font-size: var(--fs-2xl);
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    margin-top: var(--spacing-xs);
}

/* アプリダウンロードボタン */
.hero__app-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.app-download__text {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    font-weight: 600;
}

.app-download__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.app-download__btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background-color: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.app-download__btn:hover {
    background-color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-download__btn i {
    font-size: var(--fs-3xl);
}

.app-download__btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-download__btn .small {
    font-size: var(--fs-xs);
    font-weight: 400;
}

.app-download__btn .large {
    font-size: var(--fs-base);
    font-weight: 600;
}

.app-download__btn--apple {
    background-color: var(--gray-900);
}

.app-download__btn--google {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

/* ヒーロー特徴アイコン・対応学年のラッパー */
.hero__features-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
}

/* ヒーロー特徴アイコン */
.hero__features {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: var(--fs-2xl);
    transition: var(--transition-base);
}

.hero__feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero__feature-item span {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-700);
}

/* 対応学年表示 */
.hero__grade-support {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--spacing-sm);
}

.grade-support__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.4rem 0.875rem;
    background-color: rgba(45, 95, 79, 0.08);
    border: 1px solid rgba(45, 95, 79, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition-base);
}

.grade-support__item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.grade-support__item:hover i {
    color: var(--white);
}

.grade-support__item i {
    color: var(--primary-color);
    font-size: var(--fs-sm);
    transition: var(--transition-base);
}

/* 背景装飾 */
.hero__bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decoration--1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -100px;
    right: -100px;
}

.decoration--2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: 100px;
    left: -50px;
}

.decoration--3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 50%;
    left: 30%;
}

/* ========================================
   ミッションセクション
   ======================================== */

.mission__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
}

.mission__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.mission__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.mission__image {
    width: 100%;
    max-width: 280px;
    height: 180px;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.mission__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.mission__card:hover .mission__image {
    box-shadow: var(--shadow-xl);
}

.mission__card:hover .mission__image img {
    transform: scale(1.05);
}

.mission__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.mission__description {
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.mission__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-100);
}

.mission__list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--fs-base);
    color: var(--gray-700);
    text-align: left;
}

.mission__list i {
    color: var(--primary-color);
    font-size: var(--fs-base);
    flex-shrink: 0;
}

/* ========================================
   特徴セクション
   ======================================== */

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature__card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.feature__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: var(--fs-3xl);
}

.feature__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.feature__description {
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.feature__link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--fs-base);
    margin-top: auto;
}

.feature__link:hover {
    gap: var(--spacing-sm);
}

/* ========================================
   アプリ画面紹介セクション
   ======================================== */

.app-screens__single {
    max-width: 1200px;
    margin: 0 auto var(--spacing-md);
}

.app-screens__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.app-screens__note {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    font-style: italic;
}

.app-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.app-feature__item {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.app-feature__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.app-feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: var(--fs-2xl);
}

.app-feature__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.app-feature__description {
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.7;
}

.app-screens__showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.app-screens__device {
    position: relative;
}

.app-screen__img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.app-screens__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.screen-feature {
    display: flex;
    gap: var(--spacing-md);
}

.screen-feature__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: var(--fs-xl);
    font-weight: 700;
    border-radius: var(--radius-lg);
}

.screen-feature__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.screen-feature__text {
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.7;
}

/* アプリダウンロードCTA */
.app-download-cta {
    text-align: center;
    padding: var(--spacing-3xl);
    background: linear-gradient(135deg, rgba(45, 95, 79, 0.05), rgba(127, 176, 105, 0.05));
    border-radius: var(--radius-2xl);
}

.app-download-cta__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.app-download-cta__text {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   成功事例セクション
   ======================================== */

.success-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.story__card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.story__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.story__header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--white);
}

.story__avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(45, 95, 79, 0.2);
}

.story__student-info {
    flex: 1;
    min-width: 0;
}

.story__student-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story__student-location {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

.story__badge {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: var(--gray-900);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-weight: 700;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.badge-from,
.badge-to {
    padding: 0.625rem 1.125rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    border: 1px solid var(--gray-300);
    white-space: nowrap;
    min-width: 130px;
    text-align: center;
    font-weight: 600;
}

.badge-to {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 2px 8px rgba(45, 95, 79, 0.2);
}

.story__badge i {
    color: var(--gray-600);
    font-size: var(--fs-base);
}

.story__content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story__text {
    font-size: var(--fs-base);
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.story__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: auto;
}

.story__tag {
    padding: 0.4rem 1rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.story__period {
    color: var(--primary-color);
    font-size: var(--fs-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.story__period i {
    font-size: 0.9em;
}

.story__author {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-100);
    font-size: var(--fs-sm);
    color: var(--gray-500);
    font-style: italic;
    text-align: right;
}

/* ========================================
   料金プランセクション
   ======================================== */

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.pricing__card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-300);
}

.pricing__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.pricing__card--featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.25);
}

.pricing__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.pricing__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pricing__name {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.pricing__target {
    font-size: var(--fs-sm);
    color: var(--gray-600);
}

.pricing__price {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.price__currency {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--gray-700);
}

.price__amount {
    font-size: var(--fs-5xl);
    font-weight: 900;
    color: var(--primary-color);
}

.price__period {
    font-size: var(--fs-lg);
    color: var(--gray-600);
}

.pricing__per-session {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.pricing__divider {
    text-align: center;
    font-size: var(--fs-base);
    color: var(--gray-900);
    font-weight: 600;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.pricing__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: var(--fs-base);
    color: var(--gray-700);
}

.pricing__features li.feature-included i {
    color: var(--success-color);
    margin-top: 0.25rem;
}

.pricing__features li.feature-release {
    color: var(--gray-500);
}

.pricing__features li.feature-release i {
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.pricing__features li.disabled {
    color: var(--gray-400);
}

.pricing__features li.disabled i {
    color: var(--gray-400);
}

.pricing__card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* 追加オプション */
.pricing__options {
    margin-top: var(--spacing-3xl);
}

.options__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

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

.option__card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition-base);
}

.option__card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.option__name {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.option__price {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.option__price span {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--gray-600);
}

.option__description {
    font-size: var(--fs-sm);
    color: var(--gray-600);
}

/* ========================================
   利用の流れセクション
   ======================================== */

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

.flow__step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.flow__step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.flow__step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: var(--fs-3xl);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.flow__step-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.flow__step-description {
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
}

.flow__step-time {
    font-size: var(--fs-sm);
    color: var(--primary-color);
    font-weight: 600;
}

.flow__step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    color: var(--primary-color);
    font-size: var(--fs-3xl);
    border-radius: 50%;
    flex-shrink: 0;
}

.flow__arrow {
    text-align: center;
    font-size: var(--fs-3xl);
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
}

/* Flow CTA */
.flow__cta {
    margin-top: var(--spacing-3xl);
}

.cta__card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta__description {
    font-size: var(--fs-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta__card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

/* ========================================
   FAQセクション
   ======================================== */

.faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq__item:hover {
    box-shadow: var(--shadow-md);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq__question:hover {
    background-color: var(--gray-50);
}

.faq__question h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.faq__question i {
    font-size: var(--fs-xl);
    color: var(--primary-color);
    transition: var(--transition-base);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq__answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: var(--fs-base);
    color: var(--gray-600);
    line-height: 1.8;
}

.faq__item.active .faq__question i {
    transform: rotate(45deg);
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.cta__text {
    text-align: center;
    font-size: var(--fs-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   カウンセリングCTAセクション
   ======================================== */

.counseling-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
    overflow: hidden;
}

.counseling-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.counseling-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.counseling-cta__title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.counseling-cta__description {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.counseling-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.counseling-cta__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
}

.counseling-cta__features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.counseling-cta__features .feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-base);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.counseling-cta__features .feature-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer__logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    /* 暗い背景で映えるように明度とコントラストを上げる */
    filter: brightness(1.3) contrast(1.2) saturate(1.3);
}

.footer__description {
    font-size: var(--fs-base);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.social__link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-800);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition-base);
}

.social__link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__links a {
    font-size: var(--fs-base);
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: var(--spacing-xs);
}

.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer__copyright {
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

/* ========================================
   トップに戻るボタン
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: var(--z-fixed);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top.show-scroll {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media screen and (max-width: 1024px) {
    .hero__container,
    .app-screens__showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission__grid,
    .success-stories__grid,
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    /* タイポグラフィ調整 */
    .hero__title {
        font-size: var(--fs-4xl);
    }
    
    .section__title {
        font-size: var(--fs-3xl);
    }
    
    .counseling-cta__title {
        font-size: var(--fs-3xl);
    }
    
    /* ナビゲーション */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-2xl);
        padding: var(--spacing-3xl) var(--spacing-lg);
        transition: var(--transition-base);
        z-index: var(--z-fixed);
        overflow-y: auto;
        display: block;
        flex: none;
        justify-content: flex-start;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .nav__item {
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .nav__link {
        display: block;
        width: 100%;
        padding: var(--spacing-xs) 0;
        font-size: var(--fs-base);
        line-height: 1.8;
        color: var(--gray-700);
        position: static !important;
        white-space: normal;
    }
    
    .nav__link::after {
        display: none !important;
    }
    
    .nav__toggle,
    .nav__close {
        display: flex;
    }
    
    .nav__close {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .nav__buttons {
        display: flex;
        align-items: center;
    }
    
    .nav__buttons .btn-primary {
        display: none;
    }
    
    .nav__buttons--mobile {
        display: flex;
        width: 100%;
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--gray-200);
        margin-top: var(--spacing-md);
    }
    
    .nav__buttons--mobile .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* グリッドレイアウト */
    .features__grid,
    .mission__grid,
    .app-features__grid,
    .success-stories__grid,
    .pricing__grid,
    .options__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    /* ヒーロー */
    .hero__title {
        font-size: var(--fs-3xl);
    }
    
    .hero__stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
        justify-content: center;
    }
    
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* モバイル：特徴アイコンを2列グリッド */
    .hero__features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero__feature-item {
        width: 100%;
    }
    
    .hero__feature-item:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    /* モバイル：対応学年を縦並び */
    .hero__grade-support {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: var(--spacing-xs);
    }
    
    .grade-support__item {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }
    
    .app-download__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .app-download__btn {
        width: 100%;
        justify-content: center;
    }
    
    /* モバイル：アプリダウンロードCTA */
    .app-download-cta {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .app-download-cta__title {
        font-size: var(--fs-xl);
    }
    
    .app-download-cta__text {
        font-size: var(--fs-base);
    }
    
    /* 成功事例 */
    .story__header {
        padding: var(--spacing-md);
    }
    
    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: var(--fs-xl);
    }
    
    .story__student-name {
        font-size: var(--fs-base);
    }
    
    .story__badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: var(--spacing-sm);
    }
    
    .badge-from,
    .badge-to {
        width: 100%;
        text-align: center;
    }
    
    .story__badge i {
        transform: rotate(90deg);
    }
    
    .story__content {
        padding: var(--spacing-md);
    }
    
    .story__text {
        font-size: var(--fs-sm);
    }
    
    /* フロー */
    .flow__steps {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .flow__step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .flow__step:hover {
        transform: translateY(-5px);
    }
    
    .flow__step-number {
        width: 50px;
        height: 50px;
        font-size: var(--fs-2xl);
        margin: 0 auto;
    }
    
    .flow__step-content {
        order: 2;
    }
    
    .flow__step-icon {
        width: 50px;
        height: 50px;
        font-size: var(--fs-2xl);
        margin: 0 auto;
        order: 3;
    }
    
    .flow__step-title {
        font-size: var(--fs-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .flow__step-description {
        font-size: var(--fs-sm);
        line-height: 1.6;
    }
    
    .flow__step-time {
        font-size: var(--fs-xs);
        margin-top: var(--spacing-xs);
    }
    
    .flow__arrow {
        font-size: var(--fs-2xl);
        margin: var(--spacing-sm) 0;
    }
    
    .cta__card {
        padding: var(--spacing-xl);
    }
    
    .cta__title {
        font-size: var(--fs-xl);
    }
    
    .cta__description {
        font-size: var(--fs-base);
    }
    
    /* CTA */
    .counseling-cta__buttons {
        flex-direction: column;
    }
    
    .counseling-cta__features {
        gap: var(--spacing-md);
    }
    
    .counseling-cta__features .feature-item {
        font-size: var(--fs-sm);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .app-download__buttons {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: var(--fs-3xl);
    }
    
    .section__title {
        font-size: var(--fs-2xl);
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .btn-lg,
    .btn-xl {
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-base);
    }
}