@charset "UTF-8";

/* --- 変数定義 --- */
:root {
    --color-primary: #4f46e5;      /* indigo-600 */
    --color-primary-hover: #4338ca; /* indigo-700 */
    --color-primary-bg: #E0E7FF;   /* お悩み背景 */
    --color-text-main: #1f2937;    /* gray-800/900 */
    --color-text-sub: #4b5563;     /* gray-600 */
    --color-bg-gray: #f9fafb;      /* gray-50 */
    --color-white: #ffffff;
    --color-border: #e5e7eb;       /* gray-200 */
    
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --container-width: 80rem;      /* max-w-7xl */
    --header-height: 4rem;         /* h-16 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, background-color 0.2s;
}

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

/* --- ユーティリティ --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-primary { color: var(--color-primary); }
.block { display: block; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
}

/* レスポンシブ表示切り替え */
.hidden-md-up { display: none; }
@media (max-width: 767px) { .hidden-md-up { display: inline; } }

.visible-sm { display: none; }
@media (max-width: 639px) { .visible-sm { display: inline; } }

/* --- ボタンコンポーネント --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover { background-color: #3730a3; }

.btn-white {
    background-color: white;
    color: #4338ca;
    border: 1px solid transparent;
}
.btn-white:hover { background-color: #cbd7ff; }

.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.btn-md { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 0.75rem 2rem; font-size: 1.125rem; }


/* --- ヘッダー --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* PCメニュー */
.desktop-menu { display: none; }
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-sub);
}
.nav-link:hover { color: var(--color-primary); }

/* モバイルメニュートグル */
.mobile-menu-toggle { display: block; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

#mobile-menu-button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.375rem;
}
#mobile-menu-button:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}
.icon { width: 1.5rem; height: 1.5rem; }

/* モバイルメニュー本体 */
.mobile-menu {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 40;
}

.mobile-menu-inner {
    padding: 0.5rem 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background-color: transparent;
}
.mobile-nav-link:hover { background-color: #f3f4f6; }

.mobile-btn {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    margin-top: 0.5rem;
}
.mobile-btn:hover { background-color: var(--color-primary-hover); }


/* --- メインコンテンツ共通 --- */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.875rem;
    color: #111827;
    line-height: 1.2;
}
@media (min-width: 640px) { h2 { font-size: 2.25rem; } }


/* --- ヒーローセクション --- */
.hero-section {
    background-color: var(--color-bg-gray);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .hero-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 4rem;
        align-items: center;
    }
}

.hero-content { text-align: left; }
@media (min-width: 1024px) { .hero-content { grid-column: span 6; } }

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.025em;
    line-height: 1;
}
@media (min-width: 640px) { .hero-content h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero-content h1 { font-size: 3.75rem; } }

.hero-lead {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--color-text-sub);
}
@media (min-width: 640px) { .hero-lead { font-size: 1.25rem; } }

.hero-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-cta { margin-top: 2rem; }

.hero-image { width: 100%; }
@media (min-width: 1024px) { .hero-image { grid-column: span 6; margin-top: 0; } }

.image-wrapper {
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) { .image-wrapper { height: 24rem; } }
@media (min-width: 1024px) { .image-wrapper { height: 100%; } }

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- お悩みセクション --- */
.problems-section { background-color: white; }

.problems-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems-grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
    background-color: var(--color-primary-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    text-align: center;
    transition: box-shadow 0.3s;
}
.problem-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.problem-card h3 {
    margin: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}


/* --- 特徴セクション --- */
.features-section { background-color: white; }

.features-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background-color: var(--color-bg-gray);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }

.feature-card h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.feature-card p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-text-sub);
}


/* --- 動画セクション --- */
.video-section { background-color: var(--color-bg-gray); }

.video-wrapper-outer {
    max-width: 56rem;
    margin: 3rem auto 0;
}

.video-container {
    padding: 56.25% 0 0 0;
    position: relative;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- CTAセクション --- */
.academic-cta { 
    margin-top: 1.5rem; /* 上のボタンとの間に少しスペースを開けます */
}

/* PCでボタンを横並びにするための調整 */
@media (min-width: 768px) {
    .cta-button-wrapper {
        display: inline-block; /* ボタンを横並びにできるようにします */
        margin-left: 1rem; /* ボタン間の間隔 */
        margin-right: 1rem; /* ボタン間の間隔 */
    }
    
    .academic-cta {
        margin-top: 2rem; /* PCでは上と合わせます */
    }
}
.cta-section {
    background-color: #4338ca; /* indigo-700 */
    padding: 0; /* 外側の余白はなしのままにします */
}

.cta-container {
    max-width: 56rem;
    margin: 0 auto;
    
    /* ★高さ調整: 3remから5remに増やしました（程よい高さになります） */
    padding: 5rem 1rem; 
    
    text-align: center;
}

/* ★文字色修正: h2の色を強制的に白(#ffffff)にします */
.cta-container h2 {
    color: #ffffff;
    font-size: 1.875rem;
}

@media (min-width: 640px) { 
    .cta-container h2 { 
        font-size: 2.25rem; 
    } 
}

@media (min-width: 768px) { 
    .cta-container { 
        /* ★高さ調整(PC): 4remから6remに増やしました */
        padding: 6rem 1.5rem; 
    } 
}

.cta-button-wrapper { 
    margin-top: 2rem; 
}

/* --- フッター --- */
.site-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-info, .footer-links, .footer-menu { flex: 1; }

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-address a { color: inherit; }
.footer-address a:hover { color: white; }

.site-footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.site-footer a:hover { color: white; }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 1rem;
}


/* --- モーダル --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    z-index: 101;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-height: 90vh;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.close-button {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}
.close-button:hover { background-color: rgba(0, 0, 0, 0.8); }

/* --- Swiper カスタマイズ --- */
.swiper-button-next,
.swiper-button-prev { color: #ffffff; }
.swiper-pagination-bullet-active { background-color: #ffffff; }
.swiper-pagination-bullet { background-color: #ffffff; opacity: 0.7; }