/* style2.css - 生徒向けページ(index.html)専用スタイル */

/* --- 基本設定 --- */
html {
    scroll-padding-top: 110px;
}

.body-light {
    position: relative;
    overflow-x: hidden;
    background-color: #ffffff; /* ← 変更：背景色を白(#ffffff)に指定 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent;
    overflow: hidden;
    flex: 1;
}

/* --- 派手な背景シェイプ装飾 --- */
.shape-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}
.bg-shape {
    position: absolute;
    border-radius: 45% 55% 70% 30% / 30% 70% 30% 70%;
    opacity: 0.15;
    /* ↓アニメーション時間を50秒に変更 */
    animation: morph-flow 50s ease-in-out infinite;
}
.bg-shape.color-main {
    background: var(--primary-gradient);
}
.bg-shape.color-green {
    background: var(--light-green);
}

/* シェイプのサイズと位置 (16個に増量・再配置) */
.bg-shape.s1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -180px;
    animation-delay: -3s; /* ← 追加 */
}
.bg-shape.s2 {
    width: 550px;
    height: 550px;
    top: 300px;
    right: -250px;
    animation-direction: reverse;
    animation-delay: -7s; /* ← 追加 */
}
.bg-shape.s3 {
    width: 500px;
    height: 500px;
    top: 1700px;
    left: -200px;
    animation-delay: -11s; /* ← 追加 */
}
.bg-shape.s4 {
    width: 450px;
    height: 450px;
    top: 2800px;
    right: -150px;
    animation-direction: reverse;
    animation-delay: -14s; /* ← 追加 */
}
.bg-shape.s5 {
    width: 250px;
    height: 250px;
    top: 1000px;
    left: -80px;
    animation-delay: -5s;
    animation-direction: reverse;
}
.bg-shape.s6 {
    width: 350px;
    height: 350px;
    top: 2100px;
    left: -150px;
    animation-delay: -10s;
    animation-direction: reverse;
}
.bg-shape.s7 {
    width: 180px;
    height: 180px;
    top: 1400px;
    left: 15%;
    animation-delay: -2s;
}
.bg-shape.s8 {
    width: 450px;
    height: 450px;
    top: 3200px;
    left: 10%;
    animation-delay: -8s;
}
.bg-shape.s9 {
    width: 280px;
    height: 280px;
    top: 600px;
    left: 5%;
    animation-delay: -12s;
}
.bg-shape.s10 {
    width: 320px;
    height: 320px;
    top: 2600px;
    left: 45%;
    animation-delay: -3s;
    animation-direction: reverse;
}
.bg-shape.s11 {
    width: 150px;
    height: 150px;
    top: 150px;
    left: 20%;
    animation-delay: -6s;
}
.bg-shape.s12 {
    width: 550px;
    height: 550px;
    top: 3600px;
    right: -180px;
    animation-delay: -1s;
}
.bg-shape.s13 {
    width: 220px;
    height: 220px;
    top: 100px;
    right: 5%;
    animation-delay: -15s;
}
.bg-shape.s14 {
    width: 120px;
    height: 120px;
    top: 2500px;
    left: 5%;
    animation-delay: -7s;
}
.bg-shape.s15 {
    width: 650px;
    height: 650px;
    top: 3000px;
    left: -300px;
    animation-delay: -4s;
}
.bg-shape.s16 {
    width: 160px;
    height: 160px;
    top: 1800px;
    right: 10%;
    animation-delay: -9s;
    animation-direction: reverse;
}

.bg-shape.s17 {
    width: 350px;
    height: 350px;
    top: 4000px; /* 既存の最大値(3600px)より下 */
    left: -150px;
    animation-delay: -5s;
    animation-direction: reverse;
}
.bg-shape.s18 {
    width: 450px;
    height: 450px;
    top: 4500px;
    right: -180px;
    animation-delay: -8s;
}
.bg-shape.s19 {
    width: 250px;
    height: 250px;
    top: 5000px;
    left: 10%;
    animation-delay: -3s;
}
.bg-shape.s20 {
    width: 200px;
    height: 200px;
    top: 5300px; /* ページの最下部付近を想定 */
    right: 5%;
    animation-delay: -6s;
    animation-direction: reverse;
}

.bg-shape.s21 {
    width: 400px;
    height: 400px;
    top: 5600px; /* 既存の最大値(5300px)より下 */
    left: -180px;
    animation-delay: -9s;
}
.bg-shape.s22 {
    width: 300px;
    height: 300px;
    top: 6000px;
    right: -100px;
    animation-delay: -4s;
    animation-direction: reverse;
}
.bg-shape.s23 {
    width: 200px;
    height: 200px;
    top: 6300px;
    left: 20%;
    animation-delay: -7s;
}
.bg-shape.s24 {
    width: 350px;
    height: 350px;
    top: 6500px; /* ページの最下部付近を想定 */
    left: 45%;
    animation-delay: -2s;
}

@keyframes morph-flow {
    0% {
        transform: rotate(0deg) scale(1) translate(0, 0);
        border-radius: 45% 55% 70% 30% / 30% 70% 30% 70%;
    }
    25% {
        /* 右下へ移動 */
        transform: rotate(90deg) scale(1.3) translate(20px, 30px); 
    }
    50% {
        /* 右上へ移動 */
        transform: rotate(180deg) scale(1.0) translate(30px, -20px);
        border-radius: 81% 19% 22% 78% / 30% 84% 16% 70%;
    }
    75% {
        /* 左上へ移動 */
        transform: rotate(270deg) scale(1.4) translate(-20px, -30px);
    }
    100% {
        /* 元の位置へ戻る */
        transform: rotate(360deg) scale(1) translate(0, 0);
        border-radius: 45% 55% 70% 30% / 30% 70% 30% 70%;
    }
}

/* --- 共通コンポーネント --- */
.title-light {
    margin-bottom: 30px;
    text-align: center;
}
.title-light.left-align {
    text-align: left;
}
.title-light h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px; 
    color: var(--heading-color);
    line-height: 1.4; 
}
.title-light p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7; 
}
.app-badges-light {
    display: flex;
    align-items: center;
    gap: 20px;
}
.app-badges-light img {
    height: 55px;
    width: auto;
    transition: transform 0.2s ease;
}
.app-badges-light img[src*="apple.com"] {
    height: 45px; 
}
.app-badges-light img:hover {
    transform: scale(1.05);
}

/* --- 各セクションの背景色設定 --- */
.hero-light,
.what-we-do,
.features-light,
.sports,
.how-to-light,
.faq-light,
.cta-light {
    position: relative;
    z-index: 1;
    padding: 35px 0;
    background-color: transparent;
}

/* --- ヒーローセクション --- */
.hero-light {
    position: relative;
    z-index: 1;
    background-color: transparent;
}
.hero-light-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    align-items: center;
    gap: 20px;
}
.hero-light-content h1 {
    font-size: 3.3rem; /* PCサイズ */
    font-weight: 700;
    line-height: 1.5; 
    color: rgb(30, 126, 181);
    margin-bottom: 0px;
    font-feature-settings: "palt"; 
    letter-spacing: 0.05em;
    max-width: 525px;
    
    text-shadow: 0 5px 8px rgba(30, 126, 181, 0.15);
}

.hero-light-content p {
    font-size: 1.1rem;
    line-height: 1.9; /* 行間を少し広げて読みやすく */
    color: var(--text-color);
    margin-bottom: 0;
    max-width: 420px; /* この幅を超えると自動で改行される */
    width: 100%;
    /*display: inline-block;  中央寄せ時などの挙動安定のため */
}

.hero-cta-text {
    font-weight: 700;
    margin-bottom: 15px !important;
    font-size: 1rem;
}

/* --- ① CTAボタン（リンクをボタン化） --- */
.cta-button-pro {
display: inline-block;
    margin-bottom: 30px;
    padding: 10px 30px; /* 横長にして安定感を出す */
    
    /* ▼ シンプルな単色塗り ▼ */
    background-color: rgb(0, 170, 255); 
    color: #fff !important;

    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px; /* 丸みは維持 */
    text-decoration: none;
    
    /* 影をなくしてフラットに */
    box-shadow: none; 
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* ホバー時の動き（少し沈む） */
.cta-button-pro:hover {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.4);
    color: #fff;
}

/* --- ② 配信予定（ピンク文字）のデザイン化 --- */
.hero-light-content h2 {
    /* ピンク色は維持 */
    color: rgb(210, 23, 141);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.5;
    
    /* ▼ プロ技：ただの文字ではなく「ラベル」に見せる ▼ */
    background-color: rgba(255, 255, 255, 0.9); /* 背景に白を敷く */
    border: 2px solid rgb(210, 23, 141); /* ピンクの枠線 */
    border-radius: 12px;
    padding: 15px 20px;
    display: inline-block; /* 箱のサイズを文字に合わせる */
    
    /* 少し影をつけて浮き上がらせる */
    box-shadow: 0 4px 15px rgba(210, 23, 141, 0.15);
}
.hero-light-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-light-image {
    width: 110%;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.404);
    z-index: 2;
}

/* --- What we do セクション --- */
.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.what-we-do-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden;
    background-color: #fbffff;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08); /* ← 追加 */
}
.what-we-do-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.what-we-do-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.what-we-do-card h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 25px 20px 15px;
}
.what-we-do-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 20px 30px;
}

/* --- 強みセクション --- */
.features-light-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card-light {
    background-color: #fbffff;
    border-radius: 16px;
    padding: 35px 30px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08);
    
    text-align: left;
}
.card-light:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.card-icon-light {
    width: 60px;
    height: 60px;
    background-color: #fbffff;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}
.card-light h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
    
    /* ▼▼▼ ここに青いラインを追加 ▼▼▼ */
    border-left: 5px solid var(--accent-color); /* 線の太さと色 */
    padding-left: 15px;                         /* 線と文字の間隔 */
}
.card-light p {
    color: var(--text-color);
    line-height: 1.7; 
}

/* --- 対応スポーツセクション --- */
.sports-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.sports-grid span {
    background-color: #edf4fa; /* 背景を少し濃い青系に */
    border: 1px solid #d8e3ec; /* ボーダーも背景に合わせて調整 */
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08); /* 控えめな影を追加 */
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--heading-color); /* テキスト色を少し濃くする */
}

/* --- 利用の流れセクション --- */
.how-to-light-grid {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    align-items: center;
    gap: 20px;
}
.how-to-light-image {
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow: hidden;
}

.how-to-light-image img {
    width: 100%;
    display: block;
    
    /* ▼▼▼ PC表示のサイズ調整 ▼▼▼ */
    max-width: 230px;      /* 横幅をスマホ端末くらいのサイズに制限 */
    height: auto;          /* 高さは比率に合わせて自動調整 */
    margin: 0 auto;        /* グリッド内で中央寄せ */
    
    object-fit: cover;
    object-position: center;
}

/* ステップリストのスタイル（カード型に修正） */
.steps-light-list {
    list-style: none;
    padding: 0;
}

.steps-light-list li {
    display: flex; 
    align-items: flex-start;
    gap: 20px;

    /* ▼▼▼ .card-light と同じ装飾設定 ▼▼▼ */
    background-color: #fbffff;
    margin-bottom: 20px;
    border-radius: 20px;     /* 角丸を20pxに統一 */
    padding: 30px;           /* 余白を少し広めに */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08); /* 控えめな影 */
    
    /* 動きの設定 */
    transition: transform 0.3s, box-shadow 0.3s;
}

.steps-light-list li:hover {
    transform: translateY(-10px); /* 大きく浮き上がる */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* 影を濃く広く */
}

.steps-light-list li:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 55px;  /* 少し大きく */
    height: 55px; /* 少し大きく */
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-color); /* 枠線強調 */
    color: var(--accent-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.steps-light-list li strong {
    font-size: 1.4rem; 
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    display: block;
    margin-bottom: 8px; 
}
.steps-light-list li p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
}

/* --- FAQセクション --- */
.faq-light-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-light-container details {
    background-color: #fbffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08); /* ← 追加 */
}
.faq-light-container summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    padding-right: 40px;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.faq-light-container summary::-webkit-details-marker {
    display: none;
}
.faq-light-container summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.faq-light-container details[open] > summary::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--light-green);
}
.faq-light-container .answer {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-color);
    margin: 0 20px;
}

/* --- CTAセクション --- */
.cta-container {
    position: relative;
    z-index: 1;
}
.cta-light h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    line-height: 1.5;
    text-align: center;
}
.cta-light .app-badges-light {
    justify-content: center;
}

/* --- レスポンシブ --- */
@media (max-width: 991px) {
    .hero-light-grid, .how-to-light-grid {
        grid-template-columns: 1fr;
    }
    .hero-light-grid {
        text-align: center;
    }
    .how-to-light-grid {
        text-align: center;
    }
    .hero-light-content h1 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }    
    .hero-light-content p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 350px; /* この幅を超えると自動で改行される */
    }
    .hero-light-image-wrapper {
        display: block;
        order: -1;
    }
    .hero-light-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: 50% 15%;
        border-radius: 10px;
    }
    .hero-light-content h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .hero-light-content h2 {
        text-align: center;
    }
    .features-light-grid, .what-we-do-grid {
        grid-template-columns: 1fr;
    }
    .how-to-light-image {
        margin-bottom: 10px;
    }
    .how-to-light-image img {
        height: 400px;
    }
    .title-light p {
        text-align: center;
        max-width: 330px; /* この幅を超えると自動で改行される */
        margin-left: auto;
        margin-right: auto;
    }
    .title-light.left-align{
        text-align: center;
    }
    .title-light.left-align p{
        text-align: center;
        max-width: 250px; /* この幅を超えると自動で改行される */
        margin-left: auto;
        margin-right: auto;
    }
    .steps-light-list li {
        text-align: left;
    }
}

/* --- スマホ表示調整 --- */
@media (max-width: 767px) {
    /* 1. ヒーローセクション（トップ画像部分）のタイトル調整 */
    .hero-light-content h1 {
        font-size: 1.6rem; /* タブレット(2rem)より少し小さく調整 */
        margin-bottom: 5px;
    }

    .title-light h2 {
        font-size: 1.8rem; /* タブレット(2rem)より少し小さく調整 */
    }

    /* コンテナ内のh2タグのフォントサイズを小さくする */
    .cta-light h2 {
        font-size: 1.7rem; /* PCの2.5remから縮小 (お好みで数値を調整してください) */
        line-height: 1.4;
        padding: 0 10px; /* 画面端ギリギリにならないよう少し余白を追加 */
    }

    .footer {
        display: none;
    }
}