@media screen and (max-width: 700px) {
    body {
        font-size: 4vw;
    }

    .br-sp {
        display: block;
    }

    .menu-btn {
        display: block;
    }

    /* ====== ナビゲーション全体 ====== */
    nav {
        width: 3em;
        height: 3em;
        background: #fff;
        transition: all 0.6s;
        z-index: 1000;
        padding: 0;
        cursor: pointer;
        position: relative;
    }

    /* 展開時 */
    nav.active {
        cursor: auto;
    }

    /* ====== ハンバーガーボタン ====== */

    .menu-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
    }


    .hamburger {
        position: relative;
        bottom: 0;
        right: 0;
        width: 2.5em;
        height: 1.5em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1002;
        /* ← ボタンを一番上 */
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }

    .hamburger span {
        position: absolute;
        display: block;
        width: 100%;
        height: 0.3em;
        background: var(--main-color);
        border-radius: 2px;
        transition: all 0.4s ease;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    nav .hamburger span:nth-child(1) {
        top: 0;
    }

    nav .hamburger span:nth-child(2) {
        top: 50%;
    }

    nav .hamburger span:nth-child(3) {
        top: 100%;
    }

    /* ボタンがアクティブのとき（×マーク） */
    nav.active .hamburger span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(35deg);

    }

    nav.active .hamburger span:nth-child(2) {
        opacity: 0;
    }

    nav.active .hamburger span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-35deg);

    }

    .menu-btn_text {
        width: 100%;
        height: 1em;
        text-align: center;
        white-space: nowrap;
        position: relative;
    }

    .menu-btn_text span {
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, -50%);
        font-weight: bold;
        font-size: 1em;
        color: var(--main-color);
        transition: 0.2s all;
    }

    .menu-btn_text-open {
        opacity: 1;
    }

    .menu-btn_text-close {
        opacity: 0;
    }

    nav.active .menu-btn_text-open {
        opacity: 0;
    }

    nav.active .menu-btn_text-close {
        opacity: 1;
    }

    /* ====== メニュー一覧 ====== */
    nav ul {
        position: fixed;
        right: 0;
        top: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        transition: all 0.3s;
        transition-delay: 0s;
        pointer-events: none;
        height: 100%;
        width: 14em;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 1.5em;
        background-color: white;
        z-index: 0;
        box-shadow: 0 0 0.4em rgba(0, 0, 0, 0);
        padding: 1em;
        transform: translateX(14.3em);
    }

    nav.active ul {
        pointer-events: auto;
        transform: translateX(0em);
        box-shadow: 0 0 0.4em rgba(0, 0, 0, 0.2);
    }

    nav li {
        white-space: nowrap;
    }

    nav a {
        color: var(--main-color);
        font-weight: bold;
        text-decoration: none;
        font-size: 1.3em;
        padding: 0.3em;
        position: relative;

    }

    .contact .container {
        padding: 1.5em 1em;
        border-radius: 1em;
        width: calc(100% - 2em);
    }

    .contact-btns {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5em;
    }

    .contact-btns .tel-btn {
        width: 100%;
    }

    .mail-btn,
    .line-btn {
        width: calc(100% / 2 - 0.3em);
    }

    #period {
        margin: 2em auto;
    }

    #period h2 {
        font-size: 2.5em;
    }

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

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

    .period_wrap {
        font-size: 18px;
        gap: 1em;
    }

    .period_item {
        gap: 0.5em;
    }

    .section-title {
        border-radius: 0.5em 0.5em 0 0;
    }

    .target_items {
        flex-wrap: wrap;
        gap: 2em;
        padding: 1em;
    }

    .target-item img {
        border: none;
    }

    .registration img {
        margin-top: 1em;
    }

    .application-1 img {
        width: calc(100% - 2em);
    }

    .application-2 img{
        width: 100%;
        margin: 3em auto;
    }

    .banner-special {
        margin: 1.5em;
    }

    .products img {
        width: 100%;
    }

    .footer_info {
        flex-direction: column;
        font-size: 1em;
    }

    .btn {
        font-size: 2.2em;
        width: calc(100% - 0.5em);
        margin: 0 auto;
        border-radius: 0.5em;
    }

    .btn::before {
        display: none;
    }

    .btn::after {
        right: 0.3em;
        border-top: 0.15em solid white;
        border-right: 0.15em solid white;
        height: 0.5em;
        width: 0.5em;
    }

    .btn-top-text {
        font-size: 1.75em;
    }
}