/* ===== 共通設定 ===== */


/* ===== 別ページとも共通 ===== */
:not(#about) #fv .section-title .ja { font-size: 1.375em; }
:not(#about) #fv .section-title .en { 
    font-size: 3.25em;
    font-weight: 700;
}


/* ========================================
// 上部　navigation
=========================================== */
.sub-nav-wrap {
    --sub-nav-bg: var(--main-color);
    --sub-nav-h: 60px;
}
.sub-nav::before {
    --sub-nav-left: calc(50% + -130px);
    --sub-nav-img: url(../_img/header/nav-bubble-green.svg);
}
.sub-nav ul { height: inherit; }
.sub-nav li {
    width: 173px;
    height: 50%;
    border-right: var(--border-base);
    border-width: 1px;
}
.sub-nav li a {
    display: block;
    width: 100%;
    height: 100%;
}
.sub-nav li a:hover { color: var(--color-white); }

/* ===== #fv ===== */
#fv {
    height: 360px;
    background: url(../_img/about/common/fv-bg.webp) no-repeat -20px 40% / cover;
    overflow: hidden;
    z-index: 0;
}
#fv::before, #fv::after {
    content: '';
    display: block;
    position: absolute;
}
#fv::before {
    --size: 100%;
    width: var(--size);
    height: var(--size);
    background-color: rgba(255, 255, 255, .5);
    inset: 0;
    margin: auto;
    z-index: 0;
}
#fv::after {
    --size: 697px;
    max-width: var(--size);
    width: 100%;
    height: var(--size);
    background: url(../_img/about/common/fv-bg.webp) no-repeat center / 100%;
    background-position: -90px 50%;
    border-radius: var(--radius-inner);
    right: -100px;
    top: -200px;
    z-index: 1;
}

/* ===== #fv - 各ページのタブデザイン about.html以外 ===== */
:not(#about) #fv {
    border-bottom: var(--border-base);
}
:not(#about) .page-tab {
    width: 250px;
    height: 58px;
    font-size: 20px;
    background-color: var(--color-white);
    border-radius: 20px 20px 0 0 ;
    border: var(--border-base);
    border-bottom: none;
    gap: var(--gap-1);
    position: absolute;
    bottom: 0;
    z-index: 0;
}
:not(#about) .page-tab::after {
    content: '';
    display: block;
    width: 100%;
    height: 18px;
    background-color: var(--color-white);
    position: absolute;
    bottom: -10px;
    z-index: 1;
}
:not(#about) .page-tab span, :not(#about) .page-tab figure { z-index: 5;}
:not(#about) .page-tab figure {
    width: 35px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* ===== #fv aboutのタイトル ===== */
/* ===== #fv -　見出し ===== */
#fv > .width-limiter { height: 100%; }
#fv .title-group {
    --border-w: 6px;
    --border-h: 40px;
    --shift: -2px;
    z-index: 3;
    height: 100%;
}
#fv .title-group h2 .h2-inner {
    width: 240px;
    height: 120px;
    font-size: 1rem;
    background-color: var(--color-white);
    gap: var(--gap-1);
}
#fv .title-group h2 .en {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: normal;
}
#fv .title-group h2 .ja { 
    font-size: 1.5em;
}
/* ===== #fv 見出しのカッコ部分 ===== */

#fv .title-group [class*="brackets"]::before,
#fv .title-group [class*="brackets"]::after {
    content: '';
    display: block;
    width: var(--border-w);
    height: var(--border-h);
    border-radius: var(--radius-inner);
    background-color: var(--color-black);
    position: absolute;
    z-index: 1;
}
#fv .title-group [class*="brackets"]::after {
    width: var(--border-h);
    height: var(--border-w);
}
#fv .title-group .brackets-top::before,
#fv .title-group .brackets-top::after {
    top: var(--shift);
    left: var(--shift);
}
#fv .title-group .brackets-top--right,
#fv .title-group .brackets-bottom--right {
    display: block;
    width: var(--border-h);
    height: var(--border-h);
    position: absolute;
    top: var(--shift);
    right: var(--shift);
}
#fv .title-group .brackets-top--right::before { right:0; }

#fv .title-group .brackets-bottom::before,
#fv .title-group .brackets-bottom::after {
    bottom: var(--shift);
    left: var(--shift);
}
#fv .title-group .brackets-bottom--right {
    top: unset;
    bottom: var(--shift);
}
#fv .title-group .brackets-bottom--right::before {
    top: 0;
    right:0;
}
#fv .title-group .brackets-bottom--right::after { bottom: 0; }
#fv .concept-block .catch-text {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5em;
}

/* ===== #about コンテンツ小タイトル部分共通設定 ===== */
#about .bubble { 
    left: 500px;
    top: -25px;
}
#about h3.text {
    grid-template-columns: 110px 1fr;
    grid-template-rows: 1.5em 1fr;
    font-size: 1rem;
    font-weight: normal;
}
#about h3.text::before {/*ベース時計マーク*/
    content: '';
    display: inline-block;
    --size: 100px;
    width: var(--size);
    height: var(--size);
    background: url(../_img/index/icon-after-school.svg) no-repeat center / contain;
    top: -7px;
    grid-column: 1;
    grid-row: 1 / 3;
}
#about h3.text > span {
    display: block;
    font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",system-ui,sans-serif;
}
#about h3.text > span:first-child { text-indent: .3em; }
#about h3.text .large-text {
    display: inline-block;
    font-size: 2.78em;
    grid-column: 2;
    grid-row: 2;
}

#about .main-text { 
    margin-top: var(--space-2);
    line-height: 2.2;
    font-size: 14px;
}

/* ===== 1,800時間の有効活用 ===== */
#about #after-school { padding-bottom: var(--pad-3); }
#about #after-school section { 
    padding: 0;
    margin-top: var(--space-2);
}
#about #after-school .round-box {
    font-size: 1rem; 
    line-height: 1;
    padding-inline: 1.5rem;
}
#about #after-school .round-box > span:first-child { font-size: clamp(1em, calc(1em + 0.023vw), 1.45em); }
#about #after-school .round-box .number { 
    font-size: clamp(2em, calc(2em + 0.103vw), 3.12em);
    margin-right: 5px;
    letter-spacing: 0.05em; 
}
#about #after-school .round-box .text-small { font-size: 1.25em; }
#about #after-school .round-box .text-xsmall { font-size: 14px; }
#about #after-school .round-box .dot { top: -4px; }
#about #after-school .round-box + p {
    padding-right: 1.5em;
    line-height: 2;
}
#about #after-school .text-large { 
    font-size: 1.76em;
    letter-spacing: .08em;
    line-height: 1.8;
}
#about #after-school .pic-left {
    width: 135px;
    height: 91px;
}


#about #after-school .pic-right {
    width: clamp(250px, 26vw, 379px);
    height: auto;
    aspect-ratio: 379 / 245;
    position: absolute;
    top: calc(-245px + 55px);
    right: -30px;
    margin-top:0;
}

/* ===== #howtouse ===== */
#about #howtouse { 
    padding-block: var(--pad-3);
    font-size: 1.25em;
}
#about #howtouse .radius-box { padding: 2px 25px; }
/* ===== カドカクブロック ===== */
#about #howtouse .cut-block {
    width: 194px;
    height: 120px;
    background: url(../_img/about/cut-block.svg) no-repeat center / contain;
    font-size: clamp(.8em, 1.2vw, 1.25em);
}

#about #howtouse .pic-left {
    width: clamp(100px, 7vw, 127px);
    height: auto;
    aspect-ratio: 127 / 177;
    bottom: -50px;
    left: clamp(-80px, -3vw, -30px);
}
#about #howtouse .pic-right {
    width: 131px;
    height: 138px;
    position: absolute;
    top: -90px;
    right: -10px;
}


/* ===== #waokids-result ===== */
#waokids-result { padding-bottom: var(--pad-5);}
#waokids-result > .width-limiter > .flex { flex-direction: row-reverse; }
#waokids-result .bubble {
    left: unset;
    right: 0;
}
#waokids-result h4 { margin-top: var(--space-2); }
#waokids-result .main-text { margin-top: var(--space-1); }

#waokids-result .result-photo {
    --size: 625px;
    max-width: var(--size);
    width: clamp(450px, calc(450px + 0.3365vw), 625px);
    height: auto;
    aspect-ratio: 1 / 1;
    position: absolute;
    left: -250px;
    top: 0;
}
#waokids-result .pic-right {
    width: 150px;
    height: 185px;
    top: -60px;
}
#waokids-result .pic-bottom {
    width: 441px;
    height: 79px;
}
#waokids-result .radius-box { 
    max-width: 245px;
    margin-inline: auto;
    padding: var(--pad-2);
    line-height: 1;
}
#waokids-result .radius-box .text-middle { 
    font-size: 1.125em;
    text-transform: uppercase;
    top: -4px;
}
#waokids-result .radius-box .text-large { 
    font-size: 3.125em;
    font-weight: 600;
}
#waokids-result .radius-box .round-box {
    height: 41px;
    font-size: 1.91em;
    text-transform: uppercase;
    margin-top: calc(var(--space-1) / 2);
}
#waokids-result .result-text { font-size: 1.25em; }


/* ===== #about 共通フッター部分 ===== */

.about-common--footer {
    overflow: hidden;
    padding: var(--pad-7) 0;
    padding-bottom: calc(var(--section-space) * 2);
    z-index: 0;
}
.about-common--footer::before,
.about-common--footer::after {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    z-index: -10;
}
.about-common--footer::before {
    --size: 1650px;
    width: var(--size);
    height: var(--size);
    background-color: var(--color-white);
    border-radius: var(--radius-inner);
    z-index: -5;
    top: unset;
    bottom: 170px;
}
.about-common--footer::after {
    top: unset;
    bottom: -100px;
    height: 645px;
    background: url(../_img/index/about-bg.webp) no-repeat bottom center / cover;
}

/* ===== #about 共通フッター部分 / リンク6つぶん ===== */
.about-list {
    gap: var(--gap-3);
    margin-top: var(--space-4);
}
.about-list li * { margin-top: 0; }
.about-list li .button.button-circle {
    --size: 175px;
    font-weight: bold;
    font-size: 1.2em;
    --circle-bg: var(--color-white);
    justify-content: center;
    gap: 10px;
    padding-block: 0;
}
.about-list li figure.about {
    width: 44px;
    height: 36px;
}
.about-list li figure.benefit {
    width: 37px;
    height: 41px;
}
.about-list li figure.daily {
    width: 54px;
    height: 30px;
}
.about-list li figure.learning {
    width: 49px;
    height: 47px;
}
.about-list li figure.after-school {
    width: 38px;
    height: 38px;
}
.about-list li figure.staff {
    width: 46px;
    height: 40px;
    left: 8px;
}
.about-list li .button.button-small {
    --button-w: 66px;
    --button-h: 25px;
    line-height: var(--button-h);
    --font-size: 14px;
    padding: 0 .5em;
}
.about-list li .button.button-circle:hover span.trigger::before { transform: translateX(calc(-1 * (var(--trigger-button) / 4))); }
.about-list li .button.button-small:hover span.trigger::before { transform: unset; }

#about .button.button-default { --button-w: 360px; }


@media (max-width: 980px) {
    
    #waokids-result .result-photo {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }
}
@media (max-width: 920px) {
    /* ===== #fv 920 ===== */
    #fv .large-text {
        font-size: 1.45em !important;
        letter-spacing: 0;
    }

    #waokids-result > .width-limiter > .flex { flex-direction: column; }

    #about #after-school .pic-right { top: -110px;}
    /* ===== about センターリボンと文字 920 ===== */

    #about .center-text.last { order: 1;}
    .ribbon-block { order: 2;}
}

@media (max-width: 768px) {
    #about .bubble { left: 320px; }

    #about #after-school .round-box {
        flex-direction: column;
        font-size: 14px;
        line-height: 1;
        height: auto;
        padding-block: var(--pad-1);
    }
    #about #after-school .round-box > span:first-child { font-size: 1rem; }
    #about #after-school .round-box + p { 
        font-size: 14px;
        padding: 0;
        text-align: center !important;
    }

    #about #howtouse .radius-box { padding: var(--pad-3) var(--pad-2);}
    #about #howtouse .cut-block { flex: none; }

    #waokids-result .pic-right { top: 0;}

}

@media (max-width: 520px) {
    /* ===== subnav ===== */
    .sub-nav li { 
        border-right: 0;
    }
    .sub-nav li:not(:last-child, :nth-last-child(2)) {
        border-bottom: var(--border-base);
        border-width: 1px;
    }
    .sub-nav li a { padding: var(--pad-1);}

    /* ===== #fv 520 ===== */
    #fv .title-group h2 .h2-inner {
        width: 190px;
        height: 100px;
    }
    #fv .title-group h2 .ja { font-size: 1.2em;}
    #fv .concept-block { width: 100%; }
    #fv .concept-block .catch-text { letter-spacing: 0.07em; }
    #fv::after { display: none; }

    /* ===== about 520 ===== */
    #about::after {
        height: 620px;
        background: url(../_img/index/about-bg-s.webp) no-repeat;
        background-size: 150%;
        background-position: center top;
    }
    #about .bubble {
        top: -20px !important;
    }
    #about h3.text { 
        grid-template-columns: 70px 1fr; 
        grid-template-rows: 2.5em 1fr;
    }
    #about h3.text::before { 
        --size: 60px;
        top: 0;
    }
    #about h3.text > span:first-child { 
        font-size: 14px;
        text-indent: 0;
    }
    #about .large-text {
        font-size: 1.45em !important;
        letter-spacing: 0;
    }
    #about .small-text { font-size: 0.875em !important; }

    
    #about #after-school { padding-top: var(--pad-10); }
    #about #after-school .text-large { font-size: 1.5em;}

    #about #after-school .partition-vertical::before { display: none;}
    #about #after-school .pic-right {
        position: relative;
        max-width: 379px;
        top: 0;
    }
    
    /* ===== #howtouse 520 ===== */
    #about #howtouse .main-block { font-size: 1rem; }
    #about #howtouse .pic-right {
        top: -30px;
        right: -80px;
    }

    /* ===== #result 520 ===== */
    #about #waokids-result { padding-top: var(--pad-10); }

    #about #waokids-result h3.text { grid-template-rows: 1.5em 1fr; }
    #waokids-result .pic-bottom { width: 100%; }
    #waokids-result .result-text { 
        letter-spacing: 0; 
        font-size: 1.2em;
    }

    .about-list { margin-top: 0; }
    .about-list li .button.button-circle {
        --size: 150px;
        min-width: unset;
        font-size: 14px;
    }
    .about-common--footer::after {
        bottom: -20px;

    }

}