@font-face {
    font-family: 'check-point';
    src: url('./CP\ Font.woff2') format('woff2');
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes jukuchu-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    30% {
        transform: translateY(-10%) rotate(-4deg);
    }
    60% {
        transform: translateY(0) rotate(3deg);
    }
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* section#choice のアーチ文字（.symbol-arc .char）専用の連続ウェーブ。
   各文字は自分の回転角 --rot を保ったまま、半径方向(=アーチの外向き)へ
   わずかに浮き沈みする。animation-delay を1文字ずつずらすことで、
   波がアーチ上を左から右へ流れていくように見える */
@keyframes choiceArcWave {
    0%, 100% {
        transform: rotate(var(--rot)) translateY(0);
    }

    50% {
        transform: rotate(var(--rot)) translateY(-12%);
    }
}

/* 動きを減らす設定では波アニメを止める */
@media (prefers-reduced-motion: reduce) {
    .choice-symbol .symbol-arc .char {
        animation: none !important;
    }
}


:root {
    --backgroundColor: #f2ece2;
    --backgroundColor-dark: #ebdcc4;
    --size-smartphone: 600px
}

* {
    font-family: "Zen Kaku Gothic New", sans-serif;
}

html {
    scroll-behavior: smooth;
    /* scroll-snap-type: y mandatory; */

    &:has(.modal.is-open) {
        overflow: hidden;
    }
}

dialog {
    position: fixed;
    opacity: 0;
    border: 1px solid #ababab;
    border-radius: .5rem;
    translate: 0 20px;
    overflow: hidden;
    width: 90%;
    max-width: 1350px;
    transition:
        opacity 1s,
        translate 1s,
        overlay 1s allow-discrete,
        display 1s allow-discrete;

    &[open] {
        opacity: 1;
        translate: 0 0;

        @starting-style {
            opacity: 0;
            translate: 0 20px;
        }
    }

    &::backdrop {
        opacity: 0;
        transition: opacity 1s;
    }

    &[open]::backdrop {
        opacity: 1;

        @starting-style {
            opacity: 0;
        }
    }

    & .custom-close-button {
        position: absolute;
        top: 0rem;
        right: 0rem;
        z-index: 9999;
    }

    &.notice-letter {
        max-width: 760px;
        line-height: 1.8;
    }

    & .dialog-container {
        padding: 1.5rem;
        overflow: auto;
        height: fit-content;
        max-height: calc(100vh - 4rem);

        & h2,
        & .title {
            /* text-align: center; */
            margin-inline: auto;
            max-inline-size: max-content;
            font-weight: bold;
            font-size: 20px;
            margin-bottom: .5rem;
        }

        & h2+p,
        & .text {
            border-top: 1px solid #ccc;
            padding-top: .5rem;
        }

        & dt {
            width: 4rem;
            float: left;
            clear: both;

            &::before {
                content: '・';
            }

            &::after {
                content: '：';
            }
        }

        & dd {
            margin-left: 4rem;
        }

        & p {
            margin-bottom: 1rem;

            & a {
                color: var(--symbol-skyblue);
                font-weight: bold;
            }

            & img {
                display: block;
                width: 100%;
                max-width: 800px;
                height: auto;
                margin: .25rem auto;
            }

            & span.bold {
                font-weight: bold;
            }
        }

        & .img-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: .5rem;
            width: 98%;
            margin: .5rem auto;

            & img {
                width: 100%;
                height: auto;
            }

            &.img-one {
                display: flex !important;
                justify-content: center;
                align-items: center;

                & img {
                    max-width: 500px;
                }
            }
        }

        /* 文書形式のお知らせ（日付・差出人は右寄せ） */
        & .notice-date,
        & .notice-sender {
            text-align: right;
            border-top: 0;
            padding-top: 0;
        }

        & .notice-contact {
            width: fit-content;
            margin: 1.5rem auto 0;
            padding: 1rem 1.5rem;
            border: 1px solid #ccc;
            border-radius: .5rem;

            & h3 {
                font-weight: bold;
                margin-bottom: .5rem;
            }

            & p {
                margin-bottom: 0;
            }
        }

        & .event-tab {
            display: flex;
            gap: 1rem;
            justify-content: center;
            align-items: center;
            border-bottom: 1px solid #ccc;

            & h2 {
                font-size: clamp(1.25rem, 1.5vw, 1.75rem);
                border: 0 !important;
                margin: 0;

                & span {
                    display: inline-block;
                }
            }
        }
    }
}

.modal {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(204, 204, 204, 0.3);
    transition: .5s;

    & .modal-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        width: 90%;
        height: 90%;
        background-color: #fff;
        border-radius: 1.25rem;
        border: 1px solid #ccc;
        box-shadow: 1px 1px 3px #ababab;
        overflow: hidden;

        & .custom-close-button {
            position: absolute;
            top: 0rem;
            right: 0rem;
            z-index: 9999;
        }
    }

    &.is-open {
        display: block;
        opacity: 1;
        z-index: 999;

        @starting-style {
            /* ここにdisplay:none;は書かない */
            opacity: 0;
        }
    }
}

#loading {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;

    &.is-hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* スピナー */
    & .spinner {
        width: 50px;
        height: 50px;
        border: 3px solid #eee;
        border-top-color: var(--school-image-color);
        /* 学校カラーに合わせて */
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
}



.flexible-center {
    margin-inline: auto;
    max-inline-size: max-content;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    /* ← 上下左右に20%はみ出させて、動いても隙間が出ないようにする */
    background-size: cover;
    background-position: center;
    will-change: transform;
    /* ← GPUアクセラレーションのヒント */
}

.dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 100%);
    z-index: 1;
}


.container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: fit-content;
    background-color: var(--backgroundColor);

    & .pulse {
        cursor: pointer;
        animation: pulse 1.5s ease-in-out infinite;
    }

    /* じゅくチューだけは弾むように揺れる専用アニメーション */
    & .jukuchu.pulse {
        animation: none;

        & img {
            animation: jukuchu-bounce 1.8s ease-in-out infinite;
            transform-origin: bottom center;
        }
    }

    /* overflow-x: hidden; */
    & .jukuchu {
        position: absolute;
        left: 1rem;
        bottom: 1rem;
        display: grid;
        place-items: center;
        width: 35vw;
        max-width: 200px;
        height: auto;

        z-index: 999;

        & .speech-bubble {
            position: relative;
            top: 10px;
            display: inline-block;
            width: 100px;
            margin-bottom: 12px;
            padding: 4px;
            border: 1px solid var(--backgroundColor-dark);
            border-radius: 9999px;
            background-color: #ffffff;
            text-align: center;
            font-size: 12px;
            font-weight: 400;
            line-height: 1.25;
            color: #000000;

            &::before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 30%;
                border-style: solid;
                border-width: 12px 8.5px 0 8.5px;
                border-color: var(--backgroundColor-dark) transparent transparent;
                translate: -50% 100%;
                transform: skew(21deg);
                transform-origin: top;
            }

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 30%;
                border-style: solid;
                border-width: 10.3px 7.3px 0 7.3px;
                border-color: #ffffff transparent transparent;
                translate: -50% 100%;
                transform: skew(21deg);
                transform-origin: top;
            }
        }

        & img {
            width: 100%;
            height: auto;
        }
    }

    & nav.header {
        position: absolute;
        top: .75rem;
        left: 1rem;
        display: flex;
        width: calc(100% - 2rem);
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        background-color: #ffffff88;
        /* border-radius: 10rem; */
        padding: 0 1rem;

        & img {
            width: auto;
            height: 70px;
        }

        & .menu-button {
            display: none;
        }

        & .navigation {
            display: flex;
            gap: 1rem;
            list-style: none;

            & li {
                line-height: 2rem;
                width: 5rem;
                text-align: center;
                /* background-color: var(--school-image-color); */
                border-radius: .5rem;
                transition: .3s;
                border: 1px solid transparent;

                & a {
                    color: var(--symbol-red);
                    display: block;
                    text-decoration: none;
                }

                &:hover {
                    /* background-color: #fff; */
                    /* border-color: var(--school-image-color); */

                    & a {
                        color: var(--school-image-color);
                        font-weight: bold;
                    }
                }
            }

        }
    }

    /* 重要なお知らせ（ヘッダー直下に表示。不要になったら index.html の button ごと消す） */
    & .top-notice {
        position: absolute;
        top: calc(.75rem + 70px + .75rem);
        left: 50%;
        translate: -50% 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: .5rem;
        width: max-content;
        max-width: calc(100% - 2rem);
        padding: .6rem 1.25rem;
        border: 2px solid var(--symbol-red);
        border-radius: .5rem;
        background-color: #fffffff0;
        box-shadow: 0 2px 8px #00000040;
        cursor: pointer;
        transition: .3s;

        &:hover {
            transform: scale(1.03);
        }

        & .top-notice-label {
            flex-shrink: 0;
            padding: .1rem .5rem;
            border-radius: .25rem;
            background-color: var(--symbol-red);
            color: #fff;
            font-size: 14px;
            font-weight: bold;
        }

        & .top-notice-text {
            color: var(--symbol-red);
            font-weight: bold;
            text-align: left;
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }

    & section {
        position: relative;
        width: 100%;
        height: 100vh;
        scroll-snap-align: start;
        overflow: hidden;

        /* NOW */
        & .now-wrap {
            display: flex;
            gap: 1rem;
            width: 100%;
            height: 100%;

            @media screen and (max-width: 1000px) and (orientation: portrait) {
                flex-direction: column;
            }

            & .now-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                flex: 1;
                height: 100%;

                @media screen and (max-width: 1000px) and (orientation: portrait) {
                    flex-direction: row;
                    height: calc(100% / 3);
                }

                & .now-heading {
                    display: grid;
                    place-items: center;
                    height: 30%;
                    padding-top: 1rem;
                }

                &>div {
                    /* display: grid; */
                    /* place-items: center; */
                    height: 70%;
                    width: 100%;

                    @media screen and (max-width: 1000px) and (orientation: portrait) {
                        height: 100%;
                    }

                    & img {
                        display: grid;
                        place-items: center;
                        max-width: 100%;
                        max-height: 100%;
                        object-fit: contain;
                        margin: 0 auto;
                        cursor: pointer;
                        transition: .3s;

                        &:hover {
                            transform: scale(1.1);
                            transform-origin: center;
                        }
                    }

                    &.now-circle img{
                        border-radius: 50%;

                    }

                    &.jukuchu-nice {
                        display: grid;
                        place-items: center;

                        & img {
                            max-width: 30vw;
                            max-height: 300px;
                        }

                    }
                }
            }
        }

        &.original {
            & .item-wrapper {
                display: flex !important;
                flex-direction: row !important;
                justify-content: center;
                align-items: start;

                @media (max-width: 600px) and (orientation: portrait) {
                    flex-direction: column !important;

                    & .item {
                        width: 100%;

                        &>img {
                            width: auto !important;
                            height: calc(100% - 1rem) !important;
                        }
                    }
                }

                & .item {
                    flex: 1;
                    position: relative;
                    flex-direction: column !important;
                    flex-wrap: nowrap !important;
                    gap: 0;
                    max-width: 630px;
                    max-height: calc(630px + 4rem);

                    & img {
                        cursor: pointer;
                        width: 100%!important;
                        transition: .3s;

                        &:hover {
                            transform: scale(1.1);
                        }
                    }

                    & .modal {
                        /* position: absolute; */
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%) !important;
                        background-color: #fff;
                        padding: 2rem;
                        border-radius: .5rem;
                        box-shadow: 0 0 2px #878787;
                        width: auto;
                        height: auto;

                        & .custom-close-button {
                            position: absolute;
                            top: .25rem;
                            right: .25rem;
                            z-index: 9999;
                        }

                        & h5 {
                            font-size: 1.75rem;
                            color: var(--symbol-red);
                            font-family: 'check-point';
                            text-align: center;

                            & img {
                                width: 300px;
                                display: block;
                                margin: 0 auto;
                            }
                        }

                        & p {
                            width: auto;
                            font-size: clamp(1rem, 1.25vw, 1.5rem);
                            text-align: left;
                            line-height: 1.6;
                        }

                        &:not(.goods-container) p {
                            word-break: keep-all;
                            text-align: center;
                        }

                        @media screen and (max-width: 600px) and (orientation: portrait) {
                            width: 99%;
                        }

                    }

                    & .marquee-wrap {
                        overflow: hidden;
                        width: 100%;
                        max-width: 600px;
                        & .marquee-track {
                            display: flex;
                            gap: 16px;
                            width: max-content;
                            animation: scroll-left 35s linear infinite;
                            & .marquee-item {
                                flex-shrink: 0;
                                width: 200px;
                                height: 200px;
                                & img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                    display: block;
                                    cursor: unset;
                                    &:hover{
                                        transform: none;
                                    }
                                }
                            }
                        }
                    }

                    & .goods-container {
                        & .img-container {
                            display: flex;
                            align-items: center;
                            margin-top: 2rem;

                            & img {
                                width: calc(100% / 3)!important;
                                cursor: unset;
                                &:hover{
                                    transform: none;
                                }
                            }
                        }
                    }
                }
            }
        }

        &:has(.section-symbol) {
            &::after {
                content: '';
            }

            & .background-image {
                position: absolute;
                top: 0;
                width: 80%;
                height: 100%;
                z-index: 1;

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            & .section-symbol {
                position: absolute;
                top: 5%;
                left: 5%;
                max-height: 70%;
                max-width: 40%;
                width: auto;
                height: auto;
                z-index: 2;

                &[data-href] {
                    cursor: pointer;
                }

                & img {
                    width: 100%;
                    height: auto;
                }

                &.center {
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%) !important;
                }
            }

            &:is(.choice, .uniform) {
                & .background-image {
                    left: 0;
                }

                & .section-symbol {
                    left: unset;
                    right: 5%;
                }
            }

            &.choice {
                & .choice-symbol {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 48%;
                    gap: .1rem;
                    padding-top: clamp(2.5rem, 7vw, 4.5rem);

                    & .symbol-arc {
                        /* アーチ全体のスケール。半径(transform-origin)を em 指定にしてあるので、
                           このフォントサイズを変えるとアーチ全体が相似で拡大縮小する */
                        font-size: clamp(1.3rem, 3vw, 2.4rem);
                        position: relative;
                        width: 100%;
                        height: 2.6em;
                        margin: 0 0 1.3em;
                    }

                    & .symbol-arc .char {
                        /* 中央(index=6)を頂点に、1文字ごとに6度ずつ回転させて弧を描く。
                           半径12emに対して1文字6度=約1.26em間隔になり、重ならずに並ぶ */
                        --rot: calc((var(--i, 0) - 6) * 6deg);
                        position: absolute;
                        top: 0;
                        left: 50%;
                        margin-left: -.5em;
                        transform-origin: 50% 12em;
                        transform: rotate(var(--rot));
                        font-family: 'check-point';
                        font-size: 1em;
                        color: var(--school-image-color);
                        line-height: 1;
                        opacity: 1;
                        /* data-scroll-chars の一発ポップ(スライドインと被って静止する)は使わず、
                           常時ゆるく波打つ連続アニメにして「いつ見ても動いている」状態にする */
                        animation: choiceArcWave 2.8s ease-in-out infinite;
                        animation-delay: calc(var(--i, 0) * .11s);
                    }

                    & .symbol-title {
                        font-family: 'check-point';
                        font-size: clamp(3.2rem, 9vw, 7rem);
                        color: #fff;
                        -webkit-text-stroke: 6px var(--school-image-color);
                        paint-order: stroke;
                        line-height: 1;
                        margin: 0;
                        text-align: center;
                    }

                    & .symbol-tagline {
                        font-family: 'check-point';
                        font-size: clamp(1.4rem, 3.4vw, 2.4rem);
                        color: var(--school-image-color);
                        margin: .3em 0 0;
                        text-align: center;
                        text-decoration: underline wavy var(--school-image-color);
                        text-underline-offset: .2em;
                    }

                    & .symbol-mascot {
                        width: auto;
                        max-width: 42%;
                        height: auto;
                        max-height: 30%;
                        align-self: flex-end;
                        margin-top: auto;
                        margin-right: 1rem;
                        object-fit: contain;
                        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
                    }
                }

                & .header {
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 2rem;
                    width: 100%;
                    font-family: 'check-point';
                    margin: 0;
                    padding: 2rem 1rem;
                    z-index: 2;

                    & h2 {
                        font-family: inherit;
                        font-size: clamp(2.2rem, 5.5vw, 5.5rem);
                        -webkit-text-stroke: 4px var(--school-image-color);
                        paint-order: stroke;
                        color: #fff;
                        margin: 0;
                    }

                    & h3 {
                        font-family: inherit;
                        font-size: clamp(1.8rem, 2.8vw, 3.6rem);
                        color: var(--school-image-color);
                        line-height: 1.3;
                        margin: 0;
                        text-align: center;

                        & small {
                            display: block;
                            font-family: inherit;
                            color: #fff;
                            -webkit-text-stroke: 2px var(--school-image-color);
                            paint-order: stroke;

                        }
                    }
                }

                & .choice-example-list {
                    width: 80%;
                    max-width: 700px;
                    background-color: #ffffff80;
                    border-radius: 2rem;
                    color: #fff;
                    z-index: 2;
                    position: absolute;
                    /* top: 50%; */
                    bottom: 5%;
                    left: 50%;
                    transform: translateX(-50%);

                    & ul {
                        padding: 0;
                        margin: 0 auto;
                        width: auto;
                        list-style: none;

                        & li {
                            font-size: clamp(1.25rem, 3vw, 2.5rem);
                            font-weight: bold;
                            text-align: center;
                            text-shadow: 0 0 2px #000;
                        }

                    }

                    & img {
                        width: 100%;
                    }

                    & h4 {
                        font-size: clamp(1.15rem, 2.2vw, 1.7rem);
                        text-align: center;
                        text-shadow: 0 0 2px #000;

                        & span {
                            display: inline-block;
                        }
                    }
                }
            }

            &.uniform {
                & .parallax-bg {
                    inset: -10%;
                    background-position: top -10% center;
                }

                & .background-image {
                    background-image: url(../main_img/section/uniform/uniform.jpg);
                    background-size: contain;
                    background-position: left center;
                    background-repeat: no-repeat;

                    @media (max-width: 600px) and (orientation: portrait) {
                        background-image: url(../main_img/section/uniform/uniform_sp.png);
                        background-size: cover;
                        background-position: center;
                    }
                }

                & :not(.page-cover) .section-symbol {
                    transition-duration: 1200ms;
                    top: 50%;
                    right: 0;
                    transform: translateY(-50%) !important;

                    @media screen and (max-width: 600px) and (orientation: portrait) {
                        transform: translateY(10%) !important;
                    }
                }
            }

            &.ryo {
                & .background-image img {
                    @media screen and (max-width: 600px) and (orientation: portrait) {
                        object-position: 80%;
                    }
                }

                & .page-next {
                    & .image-container {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        flex-wrap: wrap;
                        height: 100%;

                        & div {
                            position: relative;
                            width: calc(100% / 3);
                            height: 50%;

                            &.introduction {
                                display: grid;
                                place-items: center;
                                text-align: justify;
                                background-color: #fff;
                                padding: 2rem;
                                font-size: clamp(1rem, 1.25vw, 1.5rem);
                            }

                            @media screen and (max-width: 600px) and (orientation: portrait) {
                                width: 50%;
                                height: calc(100% /3);

                                &.introduction {
                                    padding: 1rem;
                                    font-size: .75rem;
                                }
                            }

                            & img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                            }

                            & p {
                                position: absolute;
                                width: 100%;
                                text-align: center;
                                bottom: 0;
                                background-color: #ffffffcc;
                                padding: .75rem;
                            }
                        }
                    }
                }
            }

            & .page-next {
                & .main {
                    height: calc(100vh - 10rem);

                }
            }

            &.inquiry-activity {
                & .background-image {
                    right: 0;
                }

                & .section-symbol {
                    cursor: pointer;

                    &:hover img {
                        transition: .3s;
                        transform: scale(1.1);
                    }
                }
            }

            &.full-page {
                & .background-image {
                    left: 0;
                    width: 100%;
                }
            }

            &.donation {
                & .background-image {
                    right: 0;
                }
            }

            &.app-require {
                & .background-image {
                    left: 0;
                    width: 100%;
                }

                & .section-symbol {
                    left: unset;
                    right: 5%;
                    top: 8%;
                }
            }
        }

        & h1 {
            margin: 0;
            font-size: clamp(2rem, 6vw, 6rem);

            &:has(span) {
                font-family: 'check-point';
                font-weight: bold;
                text-align: center;

                /* -webkit-text-stroke: 8px var(--school-image-color); */
                /* paint-order: stroke; */
            }
        }

        &:has(.item-wrapper) {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem 1rem 1rem;

            & h1 {
                font-family: "Anton", sans-serif;
                font-weight: normal;
                color: var(--symbol-red);
            }

            & .item-wrapper {
                flex: 1;
                min-height: 0;
                width: 100%;
                margin: 0 auto;
                display: grid;
                /* 幅に応じて自動で列数が変わる。最小200px確保 */
                grid-template-columns: repeat(auto-fit, minmax(min(300px, 45%), 1fr));
                grid-template-rows: auto;
                align-content: center;
                /* 行全体を縦中央に */
                gap: clamp(0.3rem, 1vw, 1rem);

                & .item {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: .5rem;
                    padding: 0.4rem;
                    min-height: 0;
                    min-width: 0;

                    @media screen and (max-width: 960px) and (orientation: portrait) {
                        flex-direction: row;
                        flex-wrap: wrap;
                    }

                    &>img {
                        height: calc(100% - 1rem);
                        max-width: min(400px, 100%);
                        width: auto;
                        aspect-ratio: 1 / 1;
                        object-fit: cover;
                        border-radius: 50%;
                        transition: .3s;
                        background-color: #fff;

                        &:hover {
                            border: 2px solid gold;
                            transform: scale(1.1);
                            transform-origin: bottom;
                        }
                    }

                    & p {
                        text-align: center;
                        color: var(--school-image-color);
                        font-size: clamp(1rem, 3vw, 1.5rem);
                        width: 100%;
                        transition: .3s;
                        word-break: keep-all;

                        & span {
                            display: inline-block;
                        }
                    }

                    &[data-href] {
                        cursor: pointer;

                        & img {
                            opacity: .7;
                        }

                        &:hover {
                            & img {
                                transform: scale(1.1);
                                transform-origin: center;
                                opacity: 1;
                                z-index: 2;
                            }
                        }
                    }
                }
            }

            & .link-info-past {
                position: absolute;
                bottom: 0;
                margin-inline: auto;
                font-size: 12px;

                & a {
                    color: #222;
                    text-decoration: underline;
                }
            }

            &#news .item-wrapper .item img{
                width: 100%;
                border-radius: 1rem;
            }
        }

    }



    & .club-modal {
        & h4 {
            position: absolute;
            top: 2rem;
            left: 0;
            width: 100%;
            text-align: center;
            font-family: 'check-point';
            font-size: clamp(2rem, 4vw, 5rem);
            color: var(--symbol-red);
            -webkit-text-stroke: 8px #fff;
            paint-order: stroke;
            z-index: 9998;

            & span {
                display: inline-block;
            }
        }

        & .club-background-image {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: .5;

            & div {
                width: 50%;
                height: 100%;

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            @media screen and (max-width: 1000px) and (orientation: portrait) {
                flex-direction: column;

                & div {
                    width: 100%;
                    height: 50%;
                }

            }
        }

        & .floating-stage {
            width: 100%;
            height: 100%;
            overflow: hidden;

            & .floating-card {
                position: absolute;
                border-radius: 12px;
                overflow: visible;
                cursor: pointer;
                will-change: transform;

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    pointer-events: none;
                    user-select: none;
                }

                & .bubble {
                    position: absolute;
                    bottom: calc(100% + 10px);
                    left: 50%;
                    transform: translateX(-50%) scale(0.85);
                    transform-origin: bottom center;
                    background: #fff;
                    text-align: center;
                    color: #222;
                    line-height: 1.5;
                    white-space: nowrap;
                    padding: 6px 10px;
                    border-radius: 8px;
                    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
                    pointer-events: none;
                    opacity: 0;
                    transition: opacity .18s ease, transform .18s ease;
                    z-index: 100;

                    &::after {
                        content: '';
                        position: absolute;
                        top: 100%;
                        left: 50%;
                        transform: translateX(-50%);
                        border: 6px solid transparent;
                        border-top-color: #fff;
                    }
                }

                &:hover .bubble,
                &.active .bubble {
                    opacity: 1;
                    transform: translateX(-50%) scale(1);
                }
            }
        }
    }
}


/*===================== タブレット =====================*/
@media (max-width: 1000px) and (orientation: portrait) {
    .container {
        & section {
            &:has(.section-symbol) {
                & .background-image {
                    width: 100%;
                    height: 75%;
                    /* height: auto; */
                    /* aspect-ratio: 1 /1; */
                }

                & .section-symbol {
                    top: unset !important;
                    bottom: 3rem;
                    left: 1% !important;
                    right: 1% !important;
                    max-width: 100%;
                    width: 98%;
                    height: 50%;

                    &.center {
                        transform: unset !important;
                    }

                    & img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }
                }

                /* choice の choice-symbol 上書き。base 側が :has(.section-symbol) を含み
                   詳細度が高いため、この上書きも同じ :has ブロック内に置いて詳細度を揃える
                   （media query は詳細度を上げないので、外に出すと base の width:48% に負ける） */
                &.choice .choice-symbol {
                    width: 98%;
                    justify-content: center;

                    /* 狭い画面ではアーチ・タイトルを縮小して横はみ出しを防ぐ
                       （アーチは半径が em 基準なのでフォントを下げると全体が縮む） */
                    & .symbol-arc {
                        font-size: clamp(.85rem, 3.4vw, 1.6rem);
                    }

                    & .symbol-title {
                        font-size: clamp(2.4rem, 12vw, 4.5rem);
                    }

                    & .symbol-tagline {
                        font-size: clamp(1.1rem, 4vw, 1.8rem);
                    }

                    & .symbol-mascot {
                        width: auto;
                        height: auto;
                        max-width: 50%;
                        max-height: 45%;
                    }
                }
            }

            & .item-wrapper {
                grid-template-columns: repeat(auto-fit, minmax(min(160px, 45%), 1fr));
            }

            & .item img {
                width: min(100%, 12dvh);
            }
            &.donation .section-symbol {
                top: 1rem!important;
                bottom: unset!important;
            }
        }
    }
}



/* ===================== スマートフォン =====================*/
@media (max-width: 600px) and (orientation: portrait) {
    .container {
        & .header {
            width: 98%;
            margin-left: 1%;
            justify-content: space-between;

            & .navigation {
                flex-wrap: wrap;
                justify-content: end;
                gap: .25rem .35rem !important;

                & li {
                    font-size: 14px;
                    line-height: 1 !important;
                }
            }

            /* & .menu-button{
                position: absolute;
                right: .5rem;
                top: 5px;
                display: block !important;
                width: 60px;
                height: 60px;
                border-radius: 50%;
                background-color: var(--school-image-color);
                border-radius: 30px;
                &::before{
                    content: '&#9776;';
                }
                & input{
                    opacity: 0;
                }
            } */
            /* & .navigation {
                display: none!important;
                flex-direction: column;
                background: #eee;
                position: absolute;
                top: 50px;
                left: 0;
                width: 100%;
            }

            /* 開いたとき */
            /* & .navigation.active {
                display: flex!important;
            }  */
        }

        section:has(.item-wrapper) {
            padding: 1rem 0.75rem;

            & .item-wrapper {
                grid-template-columns: 1fr 1fr;
                /* 2列固定 */
                align-content: center;
                gap: 0.4rem;

                & .item {
                    flex-direction: row;
                    /* 横並びに切り替え */
                    justify-content: center;
                    gap: 0;
                    /* gap: 0.6rem; */
                    padding: 0.3rem 0.5rem;

                    & img {
                        /* width: clamp(40px, 12vw, 80px); */
                        width: auto;
                        height: calc(100% - 1.5rem);
                        flex-shrink: 0;
                    }

                    & p {
                        /* text-align: left; */
                        /* font-size: clamp(0.85rem, 3.75vw, 1rem); */

                        & span {
                            display: inline;
                        }

                        /* スマホでは横に続ける */
                    }
                }
            }

            &.original {
                & .item-wrapper {
                    display: flex;
                    flex-direction: column;

                    & .item {
                        flex: 1;
                    }
                }
            }
        }

        section#information .item-wrapper{
            grid-template-columns: 1fr;
            & .item p{
                width: 8em;
                padding-left: 1rem;
                text-align: left;
            }
        }
    }
}




/* ===================== sticky-wrap =====================*/
.sticky-wrap {
    position: relative;
    height: 200dvh;
    scroll-snap-align: none;
    /* wrap自体はスナップ対象外 */

    /* スナップアンカー */
    & .snap-point {
        position: absolute;
        left: 0;
        width: 100%;
        height: 1px;
        scroll-snap-align: start;

        &:nth-child(1) {
            top: 0;
        }

        &:nth-child(2) {
            top: 100vh;
        }
    }

    /* ===== sticky section ===== */
    &>section {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;

        &:has(.is-scroll-out) .page-next {
            opacity: 1;
            transition: 1.25s cubic-bezier(0.22, 1, 0.36, 1);

        }
    }

}


.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    background-color: #000;
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: .5rem 0;

    & .footer-top {
        width: 80%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 8 / 3;
        background-image: url('../main_img/message.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top 1rem center;
    }

    & .sitemap {
        flex: 1;

        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem;

        &::after {
            content: '';
            display: block;
            width: 100%;
            max-width: 350px;
            height: auto;
            aspect-ratio: 5 / 2;
            background-image: url('../main_img/footer.png');
            background-repeat: no-repeat;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: bottom center;
        }

        & .school-info {
            width: 20rem;
            margin: 1rem auto;
            border-top: 1px solid #ffffff40;

            & h3 {
                font-size: 1.25rem;
            }

            & p {
                font-size: 1rem;
                line-height: 1.75;
            }
        }

        & .flex-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;

            & h6 {
                text-align: left;
                font-size: 1.25rem;
                margin: 1rem 0 .5rem;
                border-bottom: 1px solid #fff;

                &+ul {
                    margin: 0;
                    padding-left: 2rem;

                    & li {
                        text-align: left;
                        font-size: 1rem;
                        line-height: 1.75;

                        & a {
                            text-decoration: none;
                            color: inherit;

                            &:hover {
                                border-bottom: 1px solid #fff;
                            }
                        }
                    }
                }
            }
        }

        /* PC等の幅広画面では、挿絵イラストと学校情報を横並びにする */
        @media screen and (min-width: 601px) {
            display: grid;
            grid-template-columns: 330px minmax(280px, 500px);
            grid-template-areas:
                "links links"
                "info illustration";
            align-items: center;
            justify-content: center;
            gap: 2rem;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;

            & .flex-container {
                grid-area: links;
                justify-content: center;
            }

            & .school-info {
                grid-area: info;
                width: auto;
                margin: 0;
                padding-right: 1rem;
                text-align: left;
                border-top: none;
            }

            &::after {
                grid-area: illustration;
                width: 100%;
                max-width: 100%;
                margin: 0;
            }
        }
    }

    &>p {
        padding: .5rem 0 .25rem;
        background-color: #000;
    }

    @media screen and (max-width: 600px) and (orientation: portrait) {
        background-size: 100%;

        & .sitemap {
            & :is(h6, h3) {
                font-size: 1.25rem;
            }

            & :is(p, li) {
                font-size: .75rem;
            }
        }
    }
}


/* 次のページ（下に敷く） */
.page-next {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}


/* カバー（scroll-anim でインしてくる要素を含む） */
.page-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* アウト後は下のページを操作できるように */
}

/* アウト完了後はポインターイベントを復活 */
.page-cover:has(.is-scroll-out) {
    pointer-events: none;
}



/*パララックス用の背景レイヤー*/
section:has(.bgImage-clip) {
    & .bgImage-clip {
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 500px;
        clip-path: inset(0);
    }

    & .bgImage-fixed {
        position: fixed;
        top: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    &.choice .bgImage-fixed,
    &.inquiry-activity .bgImage-fixed{
        background-position: center right 28%;
    }

    &.admission-result .bgImage-fixed,
    &.ryo .bgImage-fixed {
        background-position: center right 18%;
    }

    &.uniform .bgImage-fixed,
    &.app-require .bgImage-fixed {
        background-position: center left 40%;
    }
}

/* 各背景の画像 */
.app-require .bgImage-fixed {
    background-image: url('../main_img/section/app_require.jpg');
}

.uniform .bgImage-fixed {
    background-image: url('../main_img/section/uniform/background.jpg');
}

.choice .bgImage-fixed {
    background-image: url('../main_img/section/choice.jpg');
}

.inquiry-activity .bgImage-fixed {
    background-image: url('../main_img/section/inquiry_activity.webp');
}

.admission-result .bgImage-fixed {
    background-image: url('../main_img/section/admission_results.jpg');
}

.donation .bgImage-fixed {
    background-image: url('../main_img/section/donation.jpg');
}

.ryo .bgImage-fixed {
    background-image: url('../main_img/section/ryo/ryo.jpg');
}


