/* Static header and navigation */
.site-header {
    inset: 0 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    overflow: visible;
}

.site-header .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100%, 1200px);
    overflow: visible;
}

.site-logo {
    float: none;
    margin: 0;
    flex: 0 0 auto;
    line-height: 1;
}

.site-logo img {
    display: block;
    width: clamp(154px, 17vw, 220px);
    height: auto;
    margin: 0;
}

.site-header .site-nav,
.site-header .site-nav ul {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    overflow: visible;
}

.site-header .site-nav {
    flex: 1;
    justify-content: space-between;
    gap: 16px;
    padding-inline-start: clamp(0px, 4vw - 40px, 34px);
}

.site-header .site-nav li {
    float: none;
    white-space: nowrap;
}

.site-header .site-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-header .btn2 {
    flex: 0 0 auto;
    width: 180px;
    margin: 0;
    white-space: nowrap;
}

.sp_padding {
    height: 86px;
    padding: 0;
}

.mobile-menu {
    display: none;
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 8px 14px;
    background: #fff;
    color: #222;
}

:focus-visible {
    outline: 3px solid #006c5e;
    outline-offset: 3px;
}

main [id] {
    scroll-margin-top: 96px;
}

a[target="_blank"]:has(> img)::after {
    display: none;
}

/* Layouts retained by the exported page content */
.wp-block-columns {
    display: flex;
    gap: 2em;
}

.wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}

.wp-block-image img,
main img {
    max-width: 100%;
    height: auto;
}

.wp-block-button__link {
    display: inline-block;
    max-width: 100%;
    border-radius: 9999px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.hero-price {
    font-size: 28px;
}

.uploader-release-link {
    margin: 12px 0 24px;
}

.uploader-release-link .btn_b1,
.migration-notice .btn2 {
    width: auto;
    max-width: 100%;
    padding-inline: 24px;
}

.migration-notice p + p {
    margin-top: 24px;
}

@media (max-width: 1000px) {
    .site-header .site-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
        flex-shrink: 0;
    }

    .mobile-menu summary {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 4px;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        width: 22px;
        height: 2px;
        background: #333;
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .menu-icon::before {
        top: -7px;
    }

    .menu-icon::after {
        top: 7px;
    }

    .mobile-menu[open] .menu-icon {
        background: transparent;
    }

    .mobile-menu[open] .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .mobile-menu[open] .menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-header .mobile-nav {
        position: absolute;
        inset: 100% 0 auto;
        display: block;
        float: none;
        width: 100%;
        max-height: calc(100dvh - 86px);
        margin: 0;
        overflow: auto;
        padding: 10px 20px 20px;
        background: #fff;
        border-bottom: 1px solid #ddd;
        text-align: left;
    }

    .site-header .mobile-nav ul {
        display: block;
        margin-bottom: 14px;
    }

    .site-header .mobile-nav li {
        float: none;
        border-bottom: 1px solid #eee;
    }

    .site-header .mobile-nav li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
}

@media (max-width: 781px) {
    .wp-block-columns {
        display: block;
    }

    .wp-block-column + .wp-block-column {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 80px;
    }

    .sp_padding {
        height: 80px;
    }

    .site-header .mobile-nav {
        max-height: calc(100dvh - 80px);
    }

    .message-renew .hero-price {
        display: inline-block;
        font-size: clamp(1rem, 4.6vw, 1.125rem);
        line-height: 1.5;
    }
}

@media (max-width: 1239px) {
    main span[style*="width: 700px"] {
        width: auto !important;
        margin-left: 15px !important;
    }
}

@media (min-width: 769px) and (max-width: 1239px) {
    .contents_area,
    .message-renew,
    .contents-box,
    #breadcrumb > ul,
    .footerlink.is-renew,
    .copyright {
        max-width: calc(100% - 40px);
    }

    .contents_area .contents-box,
    .contents_area .txt_area,
    .feature-flex,
    .footerlink ul {
        max-width: 100%;
    }
}
