@charset "utf-8";
@media print,
screen and (max-width: 1550px) {
    .header-container {
        width: 90%;
    }

    .container {
        width: 86%;
    }

}

@media print,
screen and (max-width: 1400px) {
    header.fixed {
        overflow: hidden;
    }

    /* ハンバーガーボタンのスタイル */
    .hamburger {
        position: fixed;
        top: 20px;
        right: 30px;
        width: 80px;
        cursor: pointer;
        z-index: 20;
        padding: 0 15px;
        transition: 0.2s;
    }

    .hamburger span {
        display: block;
        height: 5px;
        width: 100%;
        background-color: #ffffff;
        margin: 12px 0;
        transition: 0.4s;
        border-radius: 5px;
    }

    .overlay {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10;
        visibility: hidden;
        opacity: 0;
    }

    .fixed .hamburger {
        position: fixed;
        top: 12px;
    }

    .overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .header-container .top-nav.active {
        transform: translateX(-1vh);
    }

    /* バツ印に変化するスタイル */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(14px, -14px);
    }

    .header-container .top-nav>div {
        height: auto;
    }

    .header-container .top-nav .menu {
        flex-direction: column;
        gap: 0.8em;
        margin-top: 100px;
        align-items: flex-start;
        padding-left: 60px;
    }

    header {
        overflow-x: hidden;
    }

    .header-container .top-h1 {
        width: 50%;
    }

    .top-member {
        margin-right: 50px;
    }

    .header-container .top-nav {
        position: fixed;
        top: 1vh;
        right: 0;
        width: 265px;
        height: 98vh;
        background-color: #52b3e1;
        background-image: url("../img/menu_character.png");
        background-repeat: no-repeat;
        /* background-position: right -100px bottom -117px; */
        background-position: right -100px bottom calc(-600px + 60vh);
        background-size: 370px;
        border: solid 8px #ffffff;
        border-radius: 50px 5px 5px 50px;
        transform: translateX(100%);
        transition: 0.5s;
        z-index: 11;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .header-container .top-nav .sub-menu {
        display: none !important;
    }

    .header-container .top-nav .menu>li>a {
        color: #fff;
        font-size: 1.4em;
    }

    .footer-main-container {
        width: 100%;
    }

    .footer-title {
        width: 500px;
    }
}

@media print,
screen and (max-width: 1200px) {
    .naka-h1 {
        font-size: 2.2em;
    }

    .top-member {
        margin-right: 80px;
    }

    .footer-nav ul {
        gap: 0;
        flex-wrap: wrap;
        row-gap: 2em;
    }

    .footer-nav ul li {
        width: 50%;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {

    .header-container div.top-h1,
    .header-container h1.top-h1 {
        width: 55%;
    }

}

@media screen and (max-width: 680px) {
    .fixed .hamburger {
        position: fixed;
        top: 5px;
    }

    .fixed .top-member {
        max-height: 0;
    }

    .header-container div.top-h1,
    .header-container h1.top-h1 {
        width: 100%;
        margin-bottom: 1%;
    }

    .header-container {
        flex-direction: column;
    }

    .top-member {
        width: 100%;
        margin: 0;
        max-height: 100px;
        transition-duration: 0.2s;
    }

    .top-member ul.menu {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .container {
        width: 94%;
    }

    .footer-character {
        margin-bottom: 30px;
    }

    .footer-title-logo-box img {
        height: 2em;
    }

    .footer-title {
        width: 100%;
        flex-direction: column;
        row-gap: 30px;
    }

    .footer-title-text-box {
        font-size: 1.03em;
    }

    .footer-info {
        font-size: 1em;
    }

    .tel {
        flex-direction: column;
        gap: 0;
    }

    .footer-main-container {
        font-size: 1.1em;
    }

    .footer-btns {
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .footer-btns ul {
        flex-direction: column;
        gap: 5px;
        font-size: 1.3em;
    }

    .footer-btns .menu .menu-item a p {
        margin: 0;
    }

    .footer-member ul {
        flex-direction: column;
        width: 18em;
        align-items: stretch;
    }

    .footer-member ul li a {
        padding: 1em 1.5em;
        font-size: 1.1em;
    }

    #pagetop img {
        width: 130px;
    }
}

@media screen and (max-width: 480px) {
    .hamburger {
        top: 10px;
        right: 10px;
    }

    .header-container {
        width: 100%;
    }

    .top-h1 a {
        gap: 2%;
    }

    .top-h1-text-box {
        font-size: 8vw;
    }

    .top-h1-logo-box {
        margin-left: 2vw;
    }

    .header-container .top-h1-logo-box img {
        height: 11vw;
    }

    .top-member ul li a {
        font-size: 0.9em;
    }

    .top-member ul.menu {
        margin: 2% 0;
    }

}