@charset "UTF-8";
@media screen and (max-width: 1300px) {
    /*header*/
    .header {
        display: block;
    }
    .header .right {
        width: 100%;
    }
    .header .right .nav {
        width: 100%;
        display: block;
        background: rgba(255, 255, 255, 0.8);
        padding: 5rem 0;
    }
    .header .right .nav .ul {
        width: 100%;
        display: block;
    }
    .header .right .nav .ul .li:first-of-type {
        display: inherit;
    }
    .header .right .nav .info {
        width: 100%;
        display: block;
    }
    .header .right .nav .info :is(.recruit, .contact) {
        margin: auto;
    }
    .header .right .nav .info .recruit {
        margin: 1rem auto;
    }
    /*-----以下ハンバーガーメニュー-----*/
    #wrapper .nav.globalMenuSp {
        /*管理画面用*/
        position: initial;
        transform: initial;
    }
    /*common.cssでnavに高さが与えられている場合はheight:initial;を追加*/
    .nav.globalMenuSp {
        position: fixed;
        z-index: 20;
        top: 0;
        left: 0;
        /*background:rgba(0,0,0,0.8);*/
        color: #000;
        text-align: center;
        transform: translateY(-100%);
        transition: all 0.6s;
        width: 100%;
    }


    /* このクラスを、jQueryで付与・削除する */
    .nav.globalMenuSp.active {
        transform: translateY(0%);
    }


    .navToggle {
        display: block;
        position: fixed;
        /* bodyに対しての絶対位置指定 */
        right: 13px;
        top: 12px;
        width: 42px;
        height: 51px;
        cursor: pointer;
        z-index: 30;
        /*background: #666;*/
        text-align: center;
    }

    .navToggle span {
        display: block;
        position: absolute;
        /* .navToggleに対して */
        width: 30px;
        border-bottom: solid 3px #000;/*3a3288*/
        -webkit-transition: .35s ease-in-out;
        -moz-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
        left: 6px;
    }

    .navToggle span:nth-child(1) {
        top: 9px;
    }

    .navToggle span:nth-child(2) {
        top: 18px;
    }

    .navToggle span:nth-child(3) {
        top: 27px;
    }

    .navToggle span:nth-child(4) {
        border: none;
        /*color: #3a3288;*/
      color: #000;
        font-size: 1.2rem;
        font-weight: bold;
        top: 3.5rem;
    }


    /* 最初のspanをマイナス45度に */
    .navToggle.active span:nth-child(1) {
        top: 18px;
        left: 6px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    /* 2番目と3番目のspanを45度に */
    .navToggle.active span:nth-child(2),
    .navToggle.active span:nth-child(3) {
        top: 18px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

}
@media screen and (max-width: 1024px) {
    /*aimate.min.css無効化*/
    .animated {
        animation-duration: 0s !important;
        /* 他の必要なスタイルをここに追加 */
    }
    body {
        font-size: 1.4rem !important;
    }
    h2 {
        font-size: 2.4rem !important;
    }
    h3 {
        font-size: 2.4rem !important;
    }
    h4 {
        font-size: 2rem !important;
    }



    /*汎用*/
    .inner {
        width: 90%;
    }
    .col2 {
        display: block !important;
    }
    .col2 :is(.left, .right) {
        width: 100% !important;
    }
    .col2 .left {
        margin: 0 0 3rem !important;
    }
    .grid {
        display: block !important;
    }









    /*main*/






    /*footer*/
    .footer .inner .col2 .right {
        display: none;
    }
    .footer {
        padding: 5rem 0 3rem;
    }
    .footer .inner .col2 {
        display: block !important;
        margin: 0 auto 4rem;
    }
    .footer .inner .col2 .left {
        width: 100% !important;
    }
    .footer .inner .col2 .left .logo {
        max-width: 22rem;
        margin: 0 auto 2rem;
    }


    /* ===== ↓スマホ最適化 追加（共通） ===== */

    /*横スクロール・はみ出し防止*/
    html,
    body {
        overflow-x: hidden;
    }
    .main {
        overflow-x: hidden;
    }
    html {
        scroll-padding-top: 7rem;
    }
    img {
        max-width: 100%;
    }

    /*見出し（titleA）*/
    .titleA {
        gap: 0.5rem 1rem !important;
        margin: 0 0 3rem;
        flex-wrap: wrap;
    }
    .titleA h3 {
        font-size: 2.6rem !important;
    }
    .titleA p {
        font-size: 1.7rem;
    }

    /*ヘッダー（高さ圧縮）*/
    .header {
        height: 7rem;
        padding: 0;
    }
    .header .left {
        width: auto;
    }
    .header .left .logo {
        top: 1.6rem;
        left: 4%;
        max-width: 4rem;
    }

    /*メインビジュアル*/
    .mainimg {
        height: auto !important;
        padding: 9rem 5% 3rem !important;
    }
    .mainimg .pic {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .mainimg .maintitle {
        position: static;
        left: auto;
        bottom: auto;
        margin: 2rem 0 0;
    }
    .mainimg .maintitle h2 {
        font-size: 2.8rem;
        line-height: 1.4;
        -webkit-text-stroke: 0.1rem #fff;
    }
    .mainimg .maintitle p {
        font-size: 2rem;
        -webkit-text-stroke: 0.16rem #5fbadc;
    }

    /*下部CTA（bottom）*/
    .bottom {
        width: 90%;
        margin: 5rem auto;
        padding: 3rem 2rem;
    }
    .bottom .col2 {
        gap: 2rem;
    }
    .bottom .col2 .left h3 {
        font-size: 2.4rem;
    }
    .bottom .col2 .left .tel a {
        font-size: 3.2rem;
        justify-content: center;
    }
    .bottom .col2 .left .tel a::before {
        width: 2.8rem;
        min-width: 2.8rem;
        height: 2.8rem;
    }
    .bottom .col2 .right {
        padding: 2.5rem 2rem;
    }
    .bottom .col2 .right h3 {
        font-size: 2.4rem;
    }
    .bottom .col2 .right p:not(.buttonC) {
        font-size: 1.5rem;
    }
    .bottom::before {
        width: 20vw;
        min-width: 14rem;
        left: -1rem;
        top: -3vw;
    }

    /*pagetopボタン*/
    .pagetop {
        display: none;
    }

    /*装飾の左右イラストは小画面で非表示（重なり/はみ出し防止）*/
    .main::before,
    .main::after {
        display: none !important;
    }
}

/* ===== スマホ（〜600px）細部調整 ===== */
@media screen and (max-width: 600px) {
    .mainimg .maintitle h2 {
        font-size: 2.4rem;
    }
    .titleA h3 {
        font-size: 2.2rem !important;
    }
    .bottom .col2 .left .tel a {
        font-size: 2.8rem;
    }
    .footer .inner .col2 .left .logo {
        max-width: 18rem;
    }
}