/* ================================== 01 FV ================================== */

.section-fv {
    position: relative;
    height: 100vh;
    padding: 72px 0 0;
    background: no-repeat center url('../images/img_fv.png');
    background-size: cover;
    color: var(--color-background);

    overflow: hidden;
}


.fv-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 3rem;

    padding-bottom: 6rem;

}

.fv-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    position: relative;

    z-index: 10;
}

.fv-title img {
    width: 100%;
    max-width: 200px;
}

.fv-title h1 {
    font-size: 6vh;
    text-align: center;
}

.fv-title p {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.mincho {
    font-family: serif;
}


.ctaArea {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;

    position: relative;

    z-index: 10;
}


.slash {
    font-size: 3rem;
    line-height: 0.5;
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-on-primary);
    /* ← ここを変えるとSVGの色も変わります */
    cursor: pointer;
    user-select: none;
    z-index: 999;
    font: 600 12px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* テキストだけ90°回転 */
.scroll-text {
    position: absolute;
    display: inline-block;
    transform: rotate(90deg);
    bottom: 32px;
    left: 0;
}

/* SVGのサイズ＆アニメ（任意） */
.scroll-icon {
    display: block;
    width: 12px;
    /* ← 好みで変更可 */
    height: 74px;
    /* ← 好みで変更可 */
    animation: arrow-bounce 1.2s ease-in-out infinite;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-icon {
        animation: none;
    }
}




.img-fv {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    width: 100%;
    height: calc(100vh - 80px);

}

.img-fv img {
    width: 100%;
    max-width: 1200px;

}


#why {
    background: var(--color-background);
    margin-bottom: 6rem;
}

#why .bg-title {
    color: var(--color-surface);
}



/* ================================== 02 HOW ================================== */

#how {
    background: var(--color-background);
    margin-bottom: 6rem;
}

#how .bg-title {
    color: var(--color-surface);
}


.how-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;

    margin-top: 6rem;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1rem;
    align-items: center;
}

.step img {
    padding: 1rem;
}

.step-num {
    position: absolute;
    top: -64px;
    left: 24px;


    color: #A3A4AA;
    font-size: 80px;
}

.step-caption {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 2rem;
}



.how-circle {
    position: absolute;
    top: -12vh;
    left: -6vw;
    color: var(--color-surface);
    width: 20vw;
    max-width: 240px;
    z-index: -1;
}



/* ================================== 03 STRENGTH ================================== */


#strength {
    background: var(--color-background);
    margin-bottom: 6rem;
}


#strength .bg-title {
    color: var(--color-surface);
}


.strength-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2rem;

    padding-bottom: 3rem;
}



.strength-content p {
    max-width: 800px;
}


/* ラッパー：レスポンシブ（横幅に追従） */
.lv-wrap {
    position: relative;
    max-width: 720px;
    margin: auto
}

.lv-video {
    display: block;
    width: 100%;
    height: auto;
    background: var(--color-background);
    cursor: pointer;
    border-radius: var(--radius-card);
}

/* 中央ボタン：丸く大きめ、再生中はフェードアウト */
.lv-center-toggle {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity .2s ease;
}

.lv-wrap.is-playing .lv-center-toggle {
    opacity: 0;
    pointer-events: none
}

/* モバイルでのタップしやすさ */
.lv-center-toggle:focus {
    outline: 2px solid #fff8
}



/* ================================== 04 EXPANSION ================================== */
#expansion {
    background: var(--color-surface);
    padding-bottom: 6rem;
}

#expansion .bg-title {
    color: var(--color-background);
}



.expansion-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}



.expansion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


.expansion-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.tri-arrows {
    --radius: 240px;
    /* 中心→円の中心までの距離（調整可） */
    --circle: 240px;
    /* 円の直径（72前後の想定） */
    --line-w: 2px;
    /* 矢の太さ */
    --line-color: var(--color-border);
    /* 矢の色 */

    position: relative;
    width: min(80vw, 640px);
    aspect-ratio: 1 / 1;
    margin: 40px auto;
    isolation: isolate;
    /* 矢と要素の重なり安定化 */
}

/* 3本の矢（中心から伸ばす） */
.tri-arrows .line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    width: calc(var(--radius) - var(--circle) / 2);

    /* ここを変更 */
    height: 0;
    /* ← 高さ0にして */
    border-top: var(--line-w) dashed var(--line-color);
    /* ← 破線 */
    transform: rotate(var(--angle));
}



/* 円＋ラベルを矢先へ配置（内容は回転させない） */
.tri-arrows .item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
    text-align: center;
    width: max(var(--circle), 8ch);
    /* ラベルの折返し余裕 */
}

/* 画像入りの正円 */
.tri-arrows .circle {
    width: var(--circle);
    height: var(--circle);
    border-radius: 50%;
    overflow: hidden;
    margin-inline: auto;
}

.tri-arrows .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像をはみ出さず塗り */
    display: block;
}

/* 円の下のテキスト */
.tri-arrows .label {
    margin-top: 8px;
    color: var(--color-on-background);
    white-space: nowrap;
    /* 必要なら折返しを許可に変更：normal */
}

/* 小さな画面向け微調整 */
@media (max-width: 768px) {
    .tri-arrows {
        --radius: 36vw;
        /* 画面に応じて半径を調整 */
        --circle: 32vw;
    }

    .tri-arrows .label {
        font-size: 0.85rem;
    }
}

.expansion-caption {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-background);
    color: color-mix(in srgb, var(--color-on-background) 50%, transparent);
    text-align: center;
    border-radius: var(--radius-card);
    border: var(--border);

    width: 100%;
    max-width: 800px;
}





/* ================================== 05 PROBLEM ================================== */

#problem {
    background: var(--color-surface);
}

#problem .bg-title {
    color: var(--color-background);
}

.problem-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;

    padding-bottom: 4rem;
}

.problem-toeic {

    display: flex;
    flex-direction: column;
    gap: 1rem;

    color: var(--color-border);
}



.speculation-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;

    padding-bottom: 4rem;
}

.speculation {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 1rem;
}


.speculation p {
    width: 100%;
    padding: 1rem;
    background: var(--color-background);
    border-radius: var(--radius-card);
    border: var(--border);
}

.speculation-arrow {
    color: var(--color-border);
}


.solution-area {
    position: relative;
    width: 100%;
    background: #5A5C61;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-bottom: 4rem;
}

.solution-bg {
    width: 100%;
    transform: matrix(1, 0, 0, -1, 0, 0);
    height: 4rem;
    background: linear-gradient(0deg, #F0F1F1 19.61%, #CACBCE 65.6%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.solution-content {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;

    color: var(--color-background);
}

.solution-content h2 {
    text-align: center;
}

.solution-content h3 {
    max-width: 800px;
}






/* ================================== 06 EFFICACY ================================== */

#efficacy {
    z-index: 0;
    background: var(--color-background);
    padding-bottom: 6rem;
}


#efficacy .bg-title {
    color: var(--color-surface);
}


.efficacy-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}


.efficacy-chart-area {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 4rem;

    background: var(--color-surface);
    border: var(--border);
    border-radius: var(--radius-card);

    max-width: 800px;
}

.efficacy-chart-area h4 {
    text-align: center;
}


.efficacy-chart {
    display: flex;
    gap: 1rem;
}

.efficacy-chart img {
    width: 50%;
    max-width: 480px;
}

.efficacy-chart p {
    padding-top: 3rem;
}

.accordion {
    border: 1px solid var[--color-border];
    border-radius: var(--radius-btn);
    overflow: hidden;
    width: 90%;
    /* 必要ならサイズ調整 */
}

.accordion-title {
    background: var(--color-surface);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}








/* ================================== 07 NEXT ================================== */
#next {
    background: var(--color-surface);
    padding-bottom: 6rem;
}

#next .bg-title {
    color: var(--color-background);
}

.next-content h2 {
    text-align: center;
}


/* ================================== 08 COLLABORATE ================================== */

#collaborate {
    background: var(--color-surface);
    padding-bottom: 6rem;
    position: relative;
}

#collaborate .bg-title {
    color: var(--color-background);
}



.collaborate-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;

    width: 100%;
}


.insight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;

    background: var(--color-background);
    border-radius: var(--radius-card);
    border: var(--border);

    width: 100%;
}

.insight-content h3 {
    text-align: center;
}


.insight-card-wrap {
    margin-bottom: 1rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-card);

    background: var(--color-surface);
}

.insight-card img {
    max-width: 280px;
    width: 100%;
}

.insight-card p {
    text-align: center;
}


.insight-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;

    width: 100%;
    max-width: 960px;
}

.insight {
    display: flex;
    align-items: center;
    gap: 16px;
}







/* ================================== 09 ABOUT ================================== */

.companyArea {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 6rem;

    align-items: center;
}

.gyro-about {
    width: 100%;
}

.gyro-service {
    width: 100%;
}


@media (max-width: 768px) {

    .section-fv {
        background: no-repeat center url('../images/img_fv_m.png');
    }

    .fv-content {
        justify-content: flex-start;

        gap: 10vh;

        padding-top: 2rem;
    }

    .fv-title img {
        width: 100%;
        max-width: 160px;

        display: none;
    }

    .fv-title h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .fv-title p {
        height: 12rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 0.1rem;
    }

    .step img {
        padding: 0.5rem;
    }

    .step-caption {
        padding: 3rem 1rem;
    }

    .step-num {
        top: -48px;
        left: 0px;
        font-size: 64px;
    }

    .how-circle {
        top: -4vh;
        width: 32vw;
    }

    .expansion-caption {
        padding: 1rem;
    }

    .speculation {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }


    .speculation-caption {
        gap: 0.5rem;
    }

    .speculation-caption p {
        padding: 0.75rem;
    }

    .efficacy-chart-area {
        padding: 1rem 2rem;
    }

    .efficacy-chart p {
        padding-top: 2rem;
    }




    .companyArea {
        padding: 2rem;
    }


}