/*==============================================================
header
==============================================================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(115, 7, 217, 0.2);
    padding: 16px 24px;

    @media screen and (max-width: 991px) {
        padding: 8px 16px;
        height: 80px;
    }
}

.hdr-sp {
    display: none;

    @media screen and (max-width: 991px) {
        display: unset;
        width: 100%;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;

    @media screen and (max-width: 991px) {
        gap: 20px;
        width: 100%;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 10001;
}

.site-logo img {
    max-height: 48px;
    width: auto;
    height: auto;

    @media screen and (max-width: 991px) {
        max-height: 40px;
    }
}

.sp-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav-cont {
    display: flex;
    gap: 18px;
    align-items: center;
}

.global-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (min-width: 1201px) and (max-width: 1280px) {
        gap: 16px;
    }

    @media screen and (max-width: 991px) {
        flex-direction: column;
        width: 100%;
        gap: 0px;
    }
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    z-index: 10000;
}

@media screen and (max-width: 991px) {
    .global-nav {
        display: flex;
        flex-direction: column;
        gap: 24px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 100px 24px 40px;
        background-color: #ffffffe7;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 9999;
        pointer-events: none;
        align-items: flex-start;
    }

    .global-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 10000;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-open {
        overflow: hidden;
    }

    .nav-list li:last-child a {
        display: block;
        border-bottom: 1px solid #ccc;
        padding: 12px 16px;
    }

    .nav-list li a {
        display: block;
        padding: 12px 16px;
        border-top: 1px solid #ccc;
    }
}

.header-contact {
    @media (min-width: 992px) and (max-width: 1280px) {
        position: absolute;
        top: 120%;
        right: 24px;
    }

    @media screen and (max-width: 991px) {
        display: none;
    }
}

.header-contact .contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #020266, #8A71B2);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.header-contact .contact-button:hover {
    background: linear-gradient(135deg, #020266, #8A71B2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(7, 168, 217, 0.1);
}

.header-contact-sp {
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-contact-sp .contact-button {
    display: block;
    background: linear-gradient(135deg, #020266, #8A71B2);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.header-contact-sp .contact-button:hover {
    background: linear-gradient(135deg, #020266, #8A71B2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(7, 168, 217, 0.1);
}

.header-tell {
    display: block;

    @media screen and (max-width: 991px) {
        z-index: 1000;
    }
}

.tel-contact {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    gap: 6px;
}

.tel-contact-sp {
    z-index: 10001;
}

.tel-icon img {
    width: 40px;
    height: 40px;
}

.tel-number-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}

.tel-number {
    font-size: 22px;
    font-weight: bold;
    color: #020266;
}

.tel-hours {
    font-size: 14px;
    color: #666;
}

@media screen and (max-width: 991px) {
    .tel-contact {
        display: none;
    }
}

.sp .tel-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 15000;
}

.header-sp {
    display: none;

    @media screen and (max-width: 991px) {
        display: unset;
    }
}

.nav-list li a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #a72d3d;
}


/* ───────────── PC用ドロップダウン ───────────── */
@media screen and (min-width: 992px) {
    .nav-list .menu-item-has-children {
        position: relative;
    }

    .nav-list .menu-item-has-children>.sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        min-width: 180px;
        flex-direction: column;
        padding: 8px 0;
        border-radius: 8px;
        z-index: 999;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-list .menu-item-has-children>.sub-menu {
        display: none;
    }

    .nav-list .menu-item-has-children:hover>.sub-menu {
        display: flex;
    }

    .nav-list .sub-menu li a {
        padding: 10px 16px;
        white-space: nowrap;
        color: #000;
        font-weight: normal;
        text-decoration: none;
        display: block;
        font-size: 14px;
        border-top: 1px solid #CCC;
        font-weight: 500;
    }

    .nav-list .sub-menu li:last-child a {
        border-bottom: 1px solid #CCC;
    }

    .nav-list .sub-menu li a:hover {
        background-color: #9436ff79;
    }
}

/* ───────────── SP用 子メニュー開閉 ───────────── */
@media screen and (max-width: 991px) {
    .nav-list .menu-item-has-children>.sub-menu {
        flex-direction: column;
        padding-left: 8px;
    }

    .nav-list .menu-item-has-children.open>.sub-menu {
        display: flex;
    }

    /* サブメニューの最後だけ線を消す */
    .nav-list .sub-menu li:last-child a {
        border-bottom: none;
    }

    .nav-list .menu-item-has-children>.sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: flex;
        flex-direction: column;
        padding-left: 8px;
    }

    .nav-list .menu-item-has-children.open>.sub-menu {
        max-height: 500px;
        /* 十分に大きな値（サブメニューが収まる程度） */
    }
}

/*==============================================================
Footer
==============================================================*/
.footer {
    background-color: #333333;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding: 200px 16px 24px;
    font-size: 14px;
    max-width: 1820px;
    margin: 0 auto;

    @media screen and (max-width: 991px) {
        gap: 16px;
        padding: 32px 16px 16px;
    }
}

.footer-left {
    width: 30%;

    @media screen and (max-width: 991px) {
        width: 100%;
    }
}

.footer-right {
    max-width: 45%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;

    @media screen and (max-width: 991px) {
        width: 100%;
        max-width: unset;
        align-items: unset;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 280px;

    @media screen and (max-width: 991px) {
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }
}

.footer-logo img {
    width: 100%;
    display: block;
    margin-bottom: 8px;
    max-height: 100px;

    @media screen and (max-width: 991px) {
        max-height: 50px;
    }
}

.footer-info p {
    margin: 4px 0;
    font-size: 15px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: flex-end;

    @media screen and (max-width: 991px) {
        display: none;
        flex-wrap: none;
        gap: none;
        padding: none;
        margin: none;
        list-style: none;
        justify-content: none;
    }
}

.footer-nav .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;

    @media screen and (max-width: 991px) {
        list-style: none;
        padding: 0;
        margin: 0 0 24px;
        flex-direction: column;
        gap: 0px;
        flex-wrap: wrap;

        li {
            border-top: 1px solid #ccc;
            padding: 8px;
        }

        li:last-child {
            border-bottom: 1px solid #ccc;
        }
    }
}

.footer-menu li a {
    text-decoration: none;
    color: #fff;

    @media screen and (max-width: 991px) {
        font-weight: 600;
    }
}

.footer-copy {
    font-size: 14px;
    color: #777;

    @media screen and (max-width: 991px) {
        margin-top: 16px;
        text-align: center;
    }
}

.footer-info.sp {
    width: 100%;
    max-width: 60%;
    margin: 0 auto 0 0;

    @media screen and (max-width: 991px) {
        margin: 0 auto;
        max-width: 80%;
    }
}

.footer-info p {
    @media screen and (max-width: 991px) {
        text-align: center;
    }
}

.produced-by {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.produced-by:hover {
    color: #ff7300;
    text-decoration: none;
}

.other-menu {
    margin-bottom: 16px;

    @media screen and (max-width: 991px) {
        text-align: center;
    }
}

.other-menu a {
    margin-bottom: 16px;
    color: #a3a3a3;
    font-size: 14px;
    border-bottom: 1px solid #666;
    padding: 0 0 4px 0;
}