@charset "utf-8";

@media screen and (max-width: 890px) {

    /* pc端末--891px以上 */
    .pc {
        display: none;
    }

    /* タブレット&モバイル端末--890px以下 */
    .sp {
        display: block;
    }

    /* タブレット端末--890px以下651px以上 */
    .tb {
        display: block;
    }

    /* モバイル端末--650px以下 */
    .mb {
        display: none;
    }

    /* ==========　全体ここから ========== */
    body {
        font-size: 16px;
    }

    .wave-yellow {
        width: 100%;
        height: 30px;

        /* 下層ページ共通 */
        .page-top h2::after {
            top: -0.8em;
        }

        /* 体験申し込みボタンの位置調整 */
        .fixed-tab {
            top: 25vw;
        }

        /* ==========　front-pageここから ========== */
        background: url(../img/svg/wave-yellow__tb.svg) repeat-x bottom center / contain;
    }

    .wave-blue {
        background: url(../img/svg/wave-blue__tb.svg) repeat-x bottom center / contain;
    }

    .wave-gray {
        background: url(../img/svg/wave-gray__tb.svg) repeat-x bottom center / contain;
    }

    .wave-white {
        background: url(../img/svg/wave-white__tb.svg) repeat-x bottom center / contain;
    }

    .blue-btn,
    .white-btn {
        padding: 3% 0;
        width: 50%;
    }

    /* ==========　全体ここまで ========== */

    /* ==========　ヘッダーここから ========== */
    header {
        background: url(../img/svg/wave-header__sp.svg) no-repeat top center / cover;
        aspect-ratio: 10/1.6;
        background-color: #fff;
    }

    .header__right {
        flex-direction: row;
        width: auto;
        justify-content: flex-end;
        gap: 20px;
    }

    .header__contact-tel {
        display: none;
    }

    .contact-btn {
        display: block;
        width: 50px;
        aspect-ratio: 1/1;
        border-radius: 50%;
    }

    .tel-btn {
        display: block;
        width: 50px;
        aspect-ratio: 1/1;
        border-radius: 50%;

        background: url(../img/tel.png) no-repeat center center / 50%;
        background-color: #417CCE;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tel-btn:hover {
        background-color: #2E5B9F;
        transform: scale(1.1);
    }

    .tel-btn a {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .hmb-btn {
        display: block;
        width: 50px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        z-index: 1000;
        position: relative;
        cursor: pointer;
    }

    .header__nav {
        position: fixed;
        top: calc(100vw / 10 * 1.6);
        right: -300px;
        width: 300px;
        height: calc(100vh - 100vw / 10 * 1.6);
        background-color: white;
        transition: right 0.3s ease;
        padding-top: 20px;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav ul {
        flex-direction: column;
        height: calc(100vh - 100vw / 10 * 1.6 - 20px);
        justify-content: space-evenly;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .header__nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .header__nav ul li:last-child {
        display: block;
        border-bottom: none;
    }

    .header__nav ul li.contact-menu-item {
        display: block;
        /* モバイルで「お問い合せ」を表示 */
    }

    .header__nav ul li a {
        display: block;
        padding: 20px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        transition: background-color 0.3s ease;
    }

    .header__nav ul li a:hover {
        color: #417CCE;
    }

    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
    }

    .nav-toggle i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s ease;
    }

    .nav-toggle i:nth-child(1) {
        top: 0;
    }

    .nav-toggle i:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle i:nth-child(3) {
        bottom: 0;
    }

    /* hmb-btnクリック時 */
    .nav-toggle.active i:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle.active i:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active i:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* ==========　ヘッダーここまで ========== */

    /* ==========　footerここから ========== */
    .footer__nav ul li {
        font-size: clamp(15px, 1.5vw, 20px);
        white-space: nowrap;
    }

    .footer__nav ul li:nth-child(2) img,
    .footer__nav ul li:nth-child(3) img,
    .footer__nav ul li:last-child img {
        width: 20%;
    }

    /* ==========　footerここまで ========== */

    /* ==========　front-pageここから ========== */

    /* front-page全体ここから */
    .f-title {
        font-size: 28px;
    }

    h2.f-title>span {
        font-size: 13px;
        margin-left: 5px;
    }

    .front-link {
        font-size: 14px;
    }

    /* front-page全体ここまで */

    /* heroここから */
    .hero {
        padding-top: 15%;
    }

    .big-wave {
        bottom: 0;
    }

    .big-wave .front-link {
        font-size: clamp(13px, 1vw, 25px);
        padding-right: 10%;
    }

    /* heroここまで */

    /* INFORMATIONここから */
    .f-info__wrapper {
        margin: 0 auto;
    }

    .f-info__list {
        width: 100%;
    }

    /* INFORMATIONここまで */

    /* ABOUT YSCここから */
    .f-about__wrapper {
        padding: 30px 0;
    }

    .f-about__content {
        margin: 5% auto 0;
        width: 100%;
    }

    h3.f-about__subtitle {
        font-size: 26px;
    }

    h3.f-about__subtitle span {
        font-size: 14px;
    }

    h3.f-about__subtitle::before,
    h3.f-about__subtitle::after {
        width: 50px;
    }

    .f-about__point h4 img {
        width: 80px;
        left: -80px;
    }

    .f-about__list li:nth-child(even) .f-about__point h4 img {
        left: auto;
        right: -80px;
    }

    .f-about .blue-btn {
        padding-left: 2%;
    }

    /* ABOUT YSCここまで */

    /* PROGRAMここから */
    .f-program__wrapper {
        padding: 30px 0;
    }

    /* PROGRAMここまで */

    /* middle-navここから */
    .mid-nav ul {
        padding: 30px 0;
    }

    /* middle-navここまで */

    /* スタッフブログここから */
    .f-blog__wrapper {
        padding: 30px 0;
    }

    /* スタッフブログここまで */
    /* ==========　front-pageここまで ========== */

    /* ==========　下層ページここから ========== */
    /* 下層ページ共通ここから */
    .page-top {
        padding-top: 15%;
    }

    .page-top .wave-yellow {
        margin-top: 0.1em;
    }


    /* 下層ページ共通ここまで */

    /* aboutここから */
    .safety5__number {
        font-size: 25px;
    }

    .safety5__desc h4 {
        font-size: 17px;
    }

    .wonderful__list h4 {
        font-size: clamp(16px, ４vw, 22px);
    }

    .wonderful__list .note p {
        font-size: clamp(14px, 2.5vw, 18px);
    }

    /* aboutここまで */

    /* 保護者の皆様へここから */
    .safety5__number {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }

    .safety5__desc h4 {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        width: calc(100% - 80px);
        white-space: nowrap;
    }

    .safety5__text {
        display: block;
        margin-top: 15px;
        clear: both;
    }

    /* 保護者の皆様へここまで */

    /* 入会のご案内ここから */
    .entrance .page-top h2::before {
        background: url(../img/beatgirl.png) no-repeat center center / contain;
        aspect-ratio: 3/2.7;
    }

    .entrance__steps {
        gap: 50px;
    }

    .need__list li {
        margin-bottom: 8px;
    }

    .need__list li:nth-child(3) {
        line-height: 1.3;
    }

    /* 入会のご案内ここまで */

    /* プライバシーポリシーここから */
    .policy .contents__wrapper p {
        line-height: 1.8;
        margin-bottom: 1em;
    }

    /* プライバシーポリシーここまで */

    /* お知らせここから */
    .info__list li {
        font-size: 12px;
    }

    .info__list li a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .date-cat {
        width: 50%;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
    }

    /* お知らせここまで */

    /* ==========　下層ページここまで ========== */
}

@media screen and (max-width: 650px) {

    .mb {
        display: block;
    }

    .pc-tb {
        display: none;
    }

    h3 {
        font-size: 18px;
    }

    .blue-btn,
    .white-btn {
        padding: 4% 0;
        width: 65%;
    }

    .wave-yellow {
        width: 100%;
        height: 30px;
        background: url(../img/svg/wave-yellow__mb.svg) repeat-x bottom center / contain;
    }

    .wave-blue {
        background: url(../img/svg/wave-blue__mb.svg) repeat-x bottom center / contain;
    }

    .wave-gray {
        background: url(../img/svg/wave-gray__mb.svg) repeat-x bottom center / contain;
    }

    .wave-white {
        background: url(../img/svg/wave-white__mb.svg) repeat-x bottom center / contain;
    }

    .note {
        border-radius: 0 0 5px 5px;
    }

    /* 体験申し込みボタンの位置調整 */
    .fixed-tab {
        top: 40vh;
    }

    /* ==========　ヘッダーここから ========== */
    header {
        aspect-ratio: 5/1;
    }

    .site-title {
        width: 50%;
    }

    .header__nav {
        top: calc(100vw / 5);
        height: calc(100vh - 100vw / 5);
    }

    /* ==========　ヘッダーここまで ========== */

    /* ==========　footerここから ========== */
    .footer__nav ul {
        margin-top: 30px;
        flex-direction: column;
        text-align: center;
    }

    .footer__nav ul li {
        font-size: 15px;
        line-height: 2;
        text-align: center;
        font-weight: 600;
    }

    .footer__nav ul li img {
        display: none;
    }

    .footer__info {
        flex-direction: column-reverse;
        align-items: center;
    }

    .footer__access {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .footer__tel {
        margin-top: 8px;
        font-size: 18px;
    }

    iframe {
        width: 80%;
        height: 250px;
    }

    /* ==========　footerここまで ========== */


    /* ==========　front-pageここから ========== */
    /* heroここから */
    .hero {
        padding-top: 20%;
    }

    .big-wave {
        background: url(../img/svg/big-wave__mb.svg) no-repeat bottom center / contain;
        aspect-ratio: 7/1;
    }

    .big-wave .front-link {
        margin-top: 8%;
        font-size: 13px;
    }

    /* heroここまで */

    /* INFORMATIONここから */
    .f-info {
        background: url(../img/front/pairboy.png) no-repeat bottom right / 15%;
    }

    @media screen and (max-width: 400px) {
        .f-info {
            background: url(../img/front/pairboy.png) no-repeat bottom right / 28%;
        }
    }

    .f-info__wrapper {
        width: 90%;
    }

    .f-info__list li a {
        flex-direction: column;
        gap: 10px;
    }

    .f-info__cat {
        height: 25px;
        line-height: 25px;
        width: 100px;
        margin: auto 10px;
    }

    /* INFORMATIONここまで */

    /* ABOUT YSCここから */
    .f-about__list li,
    .f-about__list li:nth-child(even) {
        flex-direction: column-reverse;
    }

    .f-about__point h4 {
        text-align: center;
        font-size: 18px;
    }

    .f-about__point p {
        font-size: 15px;
    }

    .f-about__point h4 img.mb {
        position: static;
        display: flex;
        margin: auto;
    }

    .f-about__list li {
        margin-top: 8%;
    }

    .f-about__list li>img {
        display: block;
        margin: 3% auto 0;
        width: 90%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .f-about .blue-btn {
        margin-top: 10%;
        width: auto;
        padding: 4% 5%;
        text-align: center;
    }

    .f-about .blue-btn::after {
        display: none;
    }

    /* ABOUT YSCここまで */

    /* PROGRAMここから */
    .f-program__row-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .f-program__row-bottom {
        flex-direction: column;
        gap: 30px;
    }
    
    .f-program__row-top .f-program__item,
    .f-program__row-bottom .f-program__item {
        flex: 1;
        max-width: 100%;
    }

    /* PROGRAMここまで */

    /* middle-navここから */
    .mid-nav ul {
        width: 95%;
        padding-bottom: 30px;
    }

    /* middle-navここまで */

    /* スタッフブログここから */
    .f-blog__wrapper {
        padding-bottom: 50px;
    }

    .f-blog__list {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .f-blog__card {
        aspect-ratio: 1/1;
        max-width: 280px;
        margin: 0 auto;
    }

    /* スタッフブログここまで */
    /* ==========　front-pageここまで ========== */

    /* ==========　下層ページここから ========== */
    /* 下層ページ共通ここから */
    .page-top {
        padding-top: 25%;
        width: 100%;
        font-size: clamp(0px, 6vw, 32px);
    }

    .page-top h2 {
        position: relative;
        color: #417CCE;
        margin-left: 25%;
        margin-top: 1em;
        font-size: inherit;
        top: -0.8em;
    }

    .page-top h2::after {
        left: 0;
        width: 100%;
        max-width: 12em;
        background-position: left center;
    }

    .page-top .wave-yellow {
        margin-top: -0.1em;
    }

    /* page-top各下層ページ調整 */
    .info .page-top h2::before {
        background: url(../img/gogglebaby.png) no-repeat center center / contain;
        aspect-ratio: 3/3;
    }

    .contact .page-top h2::before {
        background: url(../img/banzaigirl.png) no-repeat center center / contain;
        aspect-ratio: 2/1;
        width: 7em;
        left: -6em;
        top: -0.7em;
    }

    /* 下層ページ共通ここまで */


    /*　スイミングスクール大原についてここから */
    .about .page-top h2 {
        font-size: clamp(20px, 3vw, 2.5rem);
    }

    .about .page-top h2::before {
        background: url(../img/girl.png) no-repeat center center / contain;
        aspect-ratio: 3/2.5;
    }

    .facility__intro {
        font-size: 13px;
    }

    .facility__tour ul {
        gap: 2% 3%;
    }

    .facility__tour li img {
        border-radius: 10px;
    }

    .facility__tour li figcaption {
        font-size: 13px;
    }

    .about__outline h3 {
        letter-spacing: 0.5em;
    }

    .about .page-top h2 {
        letter-spacing: -0.02em;
    }

    /* スイミングスクール大原についてここまで */

    /* 保護者の皆様へここから */
    .safety__intro p {
        font-size: clamp(14px, 3vw, 18px);
    }

    .parents h3 {
        width: 30%;
    }

    .safety5__list li,
    .safety5__list li:nth-child(even) {
        flex-direction: column;
        align-items: center;
    }

    .safety5__list li img {
        width: 100%;
    }

    .safety5__number {
        display: block;
        margin-top: 10px;
        text-align: center;
    }

    .safety5__desc h4 {
        display: block;
        margin: 0;
        text-align: center;
    }

    .safety5__desc h4 {
        display: block;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .wonderful__list h4 {
        font-size: clamp(14px, 5vw, 18px);
    }

    .wonderful__list p {
        font-size: clamp(12px, 3.5vw, 16px);
    }

    /* 保護者の皆様へここまで */

    /* 入会のご案内ここから */
    .entrance h3 {
        font-size: clamp(18px, 4vw, 24px);
        letter-spacing: 0.05em;
    }

    .entrance__steps h4 {
        font-size: clamp(16px, 3.5vw, 20px);
    }

    /* 入会のご案内ここまで */

    /* よくあるご質問ここから */
    .faq__cat ul {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cat-btn {
        padding: 12px 8px;
        font-size: 14px;
        line-height: 1.2;
    }

    .faq-question {
        font-size: 15px;
        padding: 10px 15px;
    }

    .faq-answer {
        line-height: 1.6;
        font-size: 14px;
    }

    /* よくあるご質問ここまで */

    /* お知らせここから */
    .info__list li {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .date-cat {
        width: 100%;
        justify-content: flex-start;
    }

    /* お知らせここまで */
    /* ==========　下層ページここまで ========== */

    /* テーブルレスポンシブ対応 */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    tr {
        margin-bottom: 15px;
    }

    th,
    td {
        text-align: center;
        padding: 20px 0 8px;
        margin-left: -8%;
    }

    th {
        font-weight: bold;
    }

    tr:first-child {
        border-top: none;
    }

    .outline__table tr:last-child {
        border-bottom: none;
    }

    /* テーブルレスポンシブ対応ここまで */

}