@charset "UTF-8";
@media screen and (max-width: 1024px) {
/*aimate.min.css無効化*/
    .animated {
      animation-duration: 0s !important;
      /* 他の必要なスタイルをここに追加 */
    }

    html {
        scroll-padding-top: 70px;
    }
    body {
        font-size: 1.5rem;
    }
    .inner {
        width: 88%;
    }
    .col2 {
        display: block !important;
    }
    .col2 .left {
        width: 100% !important;
        margin: 0 0 3rem !important;
    }
    .col2 .right {
        width: 100% !important;
    }
    .read {
        line-height: 2.2 !important;
    }
    .read br {
        display: none;
    }

    /*見出し*/
    :is(.titleA, .titleB) h3 {
        font-size: 2.6rem;
        line-height: 1.5;
    }
    :is(.titleA, .titleB) p {
        font-size: 1.5rem;
    }

    /*ボタン*/
    .buttonA {
        width: 100%;
        max-width: 30rem;
    }
    .buttonB {
        max-width: 100%;
    }

    /*header*/
    .header {
        height: 6rem;
    }
    .header .catch {
        display: none;
    }
    .header .logo {
        width: 13.5rem;
        top: 0.6rem;
        left: 4%;
    }
    .header .nav .li p a {
        font-size: 1.6rem;
        line-height: 1;
    }
    .header .nav .li.home {
        display: block;
    }
    .header .nav .li.contact {
        margin: 0;
    }
    .header .nav .li.contact p a {
        width: 24rem;
        line-height: 4.6rem;
        border-radius: 2.3rem;
        margin: 1rem auto 0;
    }
    .header .side {
        top: auto;
        bottom: 0;
        left: 0;
        display: flex;
    }
    .header .side p {
        width: 50%;
    }
    .header .side a {
        width: 100%;
        height: 5rem !important;
        justify-content: center;
        writing-mode: horizontal-tb;
        font-size: 1.4rem;
        padding: 0 !important;
    }

    /*-----以下ハンバーガーメニュー-----*/
    #wrapper .nav.globalMenuSp {/*管理画面用*/
        position: initial;
        transform: initial;
    }
    /*common.cssでnavに高さが与えられている場合はheight:initial;を追加*/
    .nav.globalMenuSp {
        position: fixed !important;
        z-index: 20;
        top: 0 !important;
        left: 0;
        right: auto !important;
        background: #f3f0eb url(/system_panel/uploads/images/bg.jpg) repeat left top;
        color: #000;
        text-align: center;
        transform: translateY(-100%);
        transition: all 0.6s;
        width: 100%;
        padding: 7rem 0 3rem;
    }
    .nav.globalMenuSp .ul {
        display: block !important;
    }
    .nav.globalMenuSp .li {
        border-bottom: 0.1rem solid #e5e3db;
        padding: 1.8rem 0;
    }
    .nav.globalMenuSp .li.contact {
        border: none;
    }


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


    .navToggle {
        display: block;
        position: fixed;
        /* bodyに対しての絶対位置指定 */
        right: 13px;
        top: 5px;
        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 #2d1208;
        -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: #2d1208;
        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);
    }

    /* 4番目（menu）は消す */
    .navToggle.active span:nth-child(4) {
        display: none;
    }

    /*main*/
    .main {
        padding: 6rem 0 0;
    }
    /*下層ページのタイトル*/
    .maintitle .inner {
        width: 88%;
        padding: 3.5rem 0 0;
    }
    .maintitle h2 {
        font-size: 2.4rem;
        line-height: 1.5;
        margin: 0 0 1rem;
    }
    .maintitle p {
        font-size: 1.4rem;
        margin: 0 0 2rem;
    }
    .maintitle p:last-child {
        margin: 0;
    }
    .maintitle .pic {
        aspect-ratio: 16/7;
    }

    /*下部の相談（下層共通）*/
    .bottom {
        height: auto;
        padding: 6rem 0 6rem;
    }
    .bottom h3 {
        font-size: 2.4rem;
        line-height: 1.5;
        margin: 0 0 2rem;
    }
    .bottom .read {
        line-height: 2 !important;
        margin: 0 0 3rem;
    }
    .bottom .links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /*ブロマル用*/
    .blogdetail .webgene-blog .webgene-item .cmt h2 {
        font-size: 2rem;
        line-height: 1.5;
        border-left-width: 0.6rem;
        padding: 0.2rem 0 0.2rem 1rem;
        margin: 4rem 0 1.2rem;
    }
    .blogdetail .webgene-blog .webgene-item .cmt h3 {
        font-size: 1.8rem;
    }

    /*ページネーション*/
    .webgene-pagination ul {
        gap: 0.6rem;
    }
    .webgene-pagination li {
        width: 3.6rem;
        height: 3.6rem;
    }
    .webgene-pagination li.prev {
        margin: 0 1rem 0 0;
    }
    .webgene-pagination li.next {
        margin: 0 0 0 1rem;
    }

    /*footer*/
    .footer {
        padding: 6rem 0 7rem;
    }
    .footer .col2 {
        margin: 0 0 4rem;
    }
    .footer .col2 .left {
        margin: 0 0 4rem !important;
    }
    .footer .area {
        flex-wrap: wrap;
    }
    .footer .right {
        margin: 0;
    }
    .footer .nav .ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 4.4rem);
    }
    .footer .copyright {
        font-size: 1.3rem;
    }

    /*pagetopボタン用*/
    .pagetop,
    .index ~ .footer .pagetop {
        right: 1.5rem;
    }
}
