a {
    color: inherit;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

.header {

    display: flex;
    justify-content: flex-end;
}

.header.is-open .h_logo {
    display: none;
}



.header-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    border: 4px solid #000;
    border-right: none;
    border-top: none;
    background: #fff;
}

.header.is-open {
    justify-content: flex-end;
}

.header-item {
    width: 83px;
    height: 83px;
    border-left: 4px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 11px;
    transition: .3s ease;
}

.header-item p {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-size: clamp(0.75rem, 0.718rem + 0.13vw, 0.875rem);
    text-align: center;
    color: #000;
}

.header-item:hover {
    opacity: 50%;
}



.header-item:first-child {
    border-left: none;
}



.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}

.hamburger .line:nth-child(1) {
    display: block;
    width: 59px;
    height: 4px;
    background: #000;
    transition: 0.3s;
}

.hamburger .line:nth-child(2) {
    display: block;
    width: 45px;
    height: 4px;
    background: #000;
    transition: 0.3s;
}

/* ===== overlay menu ===== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 999;
}

.menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.menu-inner {
    padding-top: 120px;
    text-align: center;
}

.menu-inner a {
    display: block;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 36px;
    text-decoration: none;
    color: #000;
    transition: .4s ease;
}

.menu-inner a:hover {
    opacity: 50%;
}

/* ===== close icon ===== */
.hamburger.is-open .line:nth-child(1) {
    transform: rotate(-30deg) translate(-6px, 12px);
    width: 42px;
    height: 3px;
}

.hamburger.is-open .line:nth-child(2) {
    transform: rotate(33deg) translate(-2px, -4px);
    width: 42px;
    height: 3px;
}

.menu-inner .menu-contact {
    background-color: #000000;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    position: relative;
    transition: .4s ease;
}



.menu-inner .menu-contact .arrow {
    transition: .4s ease;
}

.menu-inner .menu-contact:hover .arrow {
    transform: translateX(8px);
}

.menu-inner .menu-contact::before {
    content: "";
    position: absolute;
    width: 33px;
    height: 130px;
    left: 20%;
    top: 0;
    background: url(/system_panel/uploads/images/20251230213020809386.svg) no-repeat center/contain;

}

.menu-inner .menu-contact .main {
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    font-size: 23px;
    color: #fff;
    margin-bottom: 22px;
}

.menu-inner .menu-contact .desc {
    margin-bottom: 32px;
}

.menu-inner .menu-contact .desc p {
    color: #fff;
    font-size: clamp(0.75rem, 0.718rem + 0.13vw, 0.875rem);
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .header-item {
        width: 70px;
        height: 70px;
        gap: 7px;
        border-left: 3px solid #000;
    }

    .hamburger {
        gap: 11px;
    }

    .hamburger .line:nth-child(1) {
        width: 44px;
        height: 3px;
    }

    .hamburger .line:nth-child(2) {
        width: 33px;
        height: 3px;
    }

    .hamburger.is-open .line:nth-child(2) {
        transform: rotate(33deg) translate(-1px, -5px);
    }

    .hamburger.is-open .line:nth-child(1) {
        transform: rotate(-30deg) translate(-3px, 9px);
    }
}

.page-header {
    align-items: flex-start;
    justify-content: space-between;
}

.page-header .h_logo {
    display: flex;
    align-items: center;
    gap: 30px;
}

.page-header .h_logo .text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header .h_logo .sub {
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 0.72rem + 0.13vw, 0.875rem);
    line-height: 23px;
    color: #000;
}

.page-header .h_logo .main {
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    font-size: clamp(1.063rem, 0.951rem + 0.46vw, 1.5rem);
    color: #000;
}

.page-header .h_logo img {
    max-width: 162px;
    width: 100%;
    height: auto;

}

@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column-reverse;
        gap: 13px;
        margin-bottom: 32px;
        padding-top: 80px;
    }

    .page-header .h_logo {
        margin: 0 auto;
    }

    .page-header .h_logo img {
        width: 92px;
    }

    .header-menu {
        margin-left: auto;
    }

    .page-header .h_logo .text, .page-header .h_logo {
        gap: 7px;
    }

    .menu-inner .menu-contact .desc {
        width: 64%;
        margin: 0 auto 32px;
    }

    .menu-inner .menu-contact::before {
        left: 12px;
    }
}

.gjs-dashed .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}