@charset "utf-8";
/* @media screen and (max-device-width:640px) { */
/* @media screen and (max-device-width:480px) { */
@media screen and (max-width:640px) {
    /*
        whole of site
    */
    body {
        width: 100%;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    html {
        scroll-padding-top: calc(78px + env(safe-area-inset-top, 0px));
    }
    :target,
    .ngm-mobile-anchor-scroll-target {
        scroll-margin-top: calc(78px + env(safe-area-inset-top, 0px));
    }
    .container {
        margin: 0 auto;
        width: 100%;
    }
    .top-page-title1 {
        border-radius: 0;
    }
    .top-page-title1:before {
        left: 0.25rem;
    }
    main .contain-box {
        font-size: 14px;
    }
    main img {
        max-width: 100%;
        height: auto;
    }
    .list-link-right {
        display: none;
    }
    .sp-list-link {
        margin: 1.5rem auto 1rem;
        text-align: center;
        display: block;
    }
    .sp-list-link a {
        padding: 0.5rem 0.88rem;
        background-color: #ffff99;
        border-radius: 12px;
        color: #996600;
    }
    .sp-only {
        display: block;
    }
    
    /*
        header
    */
    header {
        width: 100%;
    }
    
    /* header top */
    #header-top {
        padding: 0.25em;
        font-size: 12px;
    }

    /* header middle */
    .header-middle-left {
        padding: 0 1rem;
        height: 70px;
        display: block;
    }
    .header-middle-left img {
        width: 200px;
        text-align: center;
    }
    .header-middle-center {
        margin: 2rem auto 0;
        width: 100%;
    }
    .header-middle-center ul {
        margin: 0 auto 0.8rem;
        width: 96%;
        text-align: center;
    }
    .header-middle-center ul li {
        margin: 0 4px;
        padding: 0.15em 0.5em;
    }
    .header-middle-center dl {
        margin: 0.5rem 0 0.5rem 1.25rem;
        width: 93%;
        display: block;
    }
    table.header-middle-right {
        display: none;
    }
    
    /* header bottom */
    #header-main {
        background-size: contain;
        height: 280px;
    }
    
    /* header description */
    #header-description {
        padding: 0 0.5em;
        font-size: 0.85em;
        line-height: .85em;
        letter-spacing: 0;
        text-shadow: 2px 0 4px #fff, 0 2px 4px #fff, -2px 0 4px #fff, 0 -2px 4px #fff;
        top: 40px;
    }
    #header-description .header-description-line {
        font-family:'ヒラギノ角ゴ ProN' , 'Hiragino Kaku Gothic ProN' , 'ヒラギノ角ゴ Pro' , 'Hiragino Kaku Gothic Pro' , 'メイリオ' , 'Meiryo' , 'ＭＳ ゴシック' , 'MS Gothic' ,  'SinHei' , 'HiraKakuProN-W3' , 'STHeitiJ-Medium' , 'TakaoExゴシック' , 'TakaoExGothic' , 'Droid Sans Japanese' , 'Droid Sans Fallback' , monospace;
    }
    
    
    /* kuchikomi */
    .header-kuchikomi-container {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        background-color: #f9ec00;
        position: relative;
        top: auto;
        right: auto;
        display: block;
    }
    .header-kuchikomi-container .header-kuchikomi {
        margin-left: 50px;
        margin-bottom: 0.5rem;
        width: 35%;
        font-size: 0.85em;
        display: inline-block;
    }
    .header-kuchikomi-container .link-kuchikomi {
        margin: 0 auto 0.5rem;
        font-size: 1rem;
        text-align: center;
        display: block;
    }
    
    /* sp-contact-unit */
    .sp-contact-unit {
        padding: 0.5rem 1rem;
        width: 100%;
        display: block;
    }
    .sp-contact-unit td {
        padding: 0.5rem;
        text-align: center;
    }
    .sp-contact-unit td.td-left img,
    .sp-contact-unit td.td-right img {
        width: 100%;
    }

    /*
        main
    */
    #main {
        width: 100%;
        margin-left: inherit;
        display: inline-block;
    }

    /* privacy description */
    p.privacy-description {
        margin: 1rem;
    }

    /* news & colums */
    .news-box-list a,
    .colums-box-list a {
        width: 60%;
    }
    
    /* slide (calendar) */
    .calendar-box .prev-nikukyu,
    .calendar-box .prev-nikukyu-monthly {
        padding: 2px;
        width: 40px;
    }
    .calendar-box .next-nikukyu,
    .calendar-box .next-nikukyu-monthly {
        padding: 2px;
        width: 40px;
    }
    .calendar-box .prev-nikukyu a {
        left: auto;
    }
    .calendar-box .next-nikukyu a {
        right: auto;
    }
    .calendar-box .prev-nikukyu img,
    .calendar-box .prev-nikukyu-monthly img {
        width: 36px;
        height: auto;
    }
    .calendar-box .next-nikukyu img,
    .calendar-box .next-nikukyu-monthly img {
        width: 36px;
        height: auto;
    }
    
    /* manga */
    .manga-tab {
        text-align: center;
    }
    .manga-tab li {
        margin-right: 0;
        width: 102px;
        font-size: 0.5rem;
        font-weight: bold;
    }
    
    /* about nagomi */
    .about-nagomi {
        width: 100%;
        background-size: cover;
        background-position: 95%; 
    }
    .about-nagomi h2,
    .about-nagomi p,
    .about-nagomi .about-nagomi-point {
        font-size: 0.9rem;
        text-align: left;
    }
    
    /* system */
    .system-box-descrition img,
    .system-box-descrition li {
        margin: 0;
        width: 100%;
        display: block;
    }
    
    /* voice */
    .voice-box .voice {
        width: 65%;
        font-size: 0.9rem;
    }
    .voice-questionnaire-wrap {
        display: none;
    }
    .voice-comment {
        width: auto;
    }


    /* map */
    #map-container {
        padding-top: 360px;
    }
    #map {
        height: 360px;
        top: 0;
    }
    .map-info-box-wrap {
        margin: .5em auto 0;
        width: 180px;
    }
    .map-info-box-left {
        width: 180px;
        display: inline-block;
        vertical-align: top;
    }
    .map-info-box-left .map-info-box-logo {
        display: none;
    }
    .map-info-box-left .map-info-box-tel {
        width: 120px;
    }
    .map-info-box-right {
        display: none;
    }
    .map-link-wrap {
        text-align: center;
    }
    .map-link-wrap .float-right {
        float: none;
    }

    
    /* blog-box */
    .blog-thumbnail-wrap {
        padding: 0.5rem;
        width: 100%;
        text-align: center;
        display: block;
    }
    .blog-thumbnail-wrap img {
        width: auto;
        height: 160px;
    }
    .blog-excerpt {
        width: 100%;
        display: block;
    }

    /* related-blog-box */
    .related-blog-summary {
        width: 49%;
    }

    
    /*
        footer
    */
    #footer-container {
        margin-top: 50px;
        width: 100%;
    }
    ul#footer-body {
        padding: 1rem;
    }
    ul#footer-body .logo a img{
        width: 90%;
        height: auto;
    }
    ul#footer-body > li.footer-item {
        margin: 0 auto;
        padding: 1rem 0 1rem 3rem;
        float: none;
        display: block;
    }
    ul#footer-body > li.footer-item:nth-child(1) {
        padding: 50px 0 1rem;
        border-bottom: 2px dotted #d5cc5e;
    }
    ul#footer-body > li.footer-item:nth-child(2) {
        padding: 1rem 0 1rem 3rem;
        border-bottom: 2px dotted #d5cc5e;
    }
    ul#footer-body > li.footer-item:nth-child(3) {
        padding: 1rem 0 0 3rem;
    }
    ul#footer-body > li.footer-item:nth-child(4) {
        padding: 0 0 0 3rem;
    }
    #footer-sns {
        margin: 0.5rem auto;
        width: 308px;
        display: block;
        position: relative;
        right: auto;
    }
    #footer-sns li {
        margin: 0 10px;
    }


    /*
        sidebar
    */
    #sidebar {
        width: 100%;
        background-color: #fff;
    }
    .sidebar-body {
        padding-left: 1rem;
        padding-right: 1rem;
        background: #fff;
    }
    .sidebar-arrow,
    #sidebar dt,
    #sidebar dd {
        font-size: 1.1rem;
    }
    .sidebar-banner {
        width: 80%;
        height: auto;
        margin: 0 auto;
    }
    #sidebar aside {
        width: 100%;
        background-color: #fff;
    }
    #sidebar aside.blog img {
        width: 100%;
        height: auto;
    }

    
    /*
        sp nav menu
    */
    .sp-nav {
        width: 100%;
        background-color: #fff;
        display: block;
        position: absolute;
        right: 0;
        top: 10px
    }
    .sp-nav ul {
        background-color: #fff;
        font-size: 0;
        text-align: center;
    }
    .sp-nav li {
        background-color: #fff;
        margin-left: 8px;
        margin-right: 8px;
        vertical-align: top;
        display: inline-block;
    }
    .sp-nav img {
        width: 140px;
        height: auto;
        position: static;
        background-color: #fff;
    }
    .sp-nav #sp-top {
        width: 292px;
    }
    .sp-nav #sp-top img {
        width: 200px;
        height: auto;
        background-color: #fff;
    }
    .sp-nav #sp-menu img {
        padding-top: 4px;
        width: 44px;
        height: auto;
        background-color: #fff;
        text-align: right;
    }
    .sp-nav #sp-menu {
        margin: 0;
        width: 60px;
        height: 62px;
        background: transparent;
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        z-index: 19000;
        pointer-events: auto;
    }
    .sp-menu-trigger {
        box-sizing: border-box;
        width: 60px;
        height: 62px;
        margin: 0;
        padding: 7px 8px 6px;
        border: 1px solid #ed8a3b;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 8px rgba(51, 51, 51, 0.22);
        color: #e66f12;
        cursor: pointer;
        font: inherit;
        line-height: 1;
        overflow: visible;
        -webkit-appearance: none;
        appearance: none;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }
    .sp-menu-trigger:hover,
    .sp-menu-trigger:active {
        border-color: #d95f05;
        background: #fff7ef;
    }
    .sp-menu-trigger:focus {
        outline: 3px solid #17365d;
        outline-offset: 2px;
    }
    .sp-menu-trigger:focus:not(:focus-visible) {
        outline: none;
    }
    .sp-menu-trigger:focus-visible {
        outline: 3px solid #17365d;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(51, 51, 51, 0.22);
    }
    .sp-menu-icon {
        box-sizing: border-box;
        display: flex;
        width: 28px;
        height: 22px;
        margin: 0 auto 4px;
        flex-direction: column;
        justify-content: space-between;
        overflow: visible;
    }
    .sp-menu-icon span {
        box-sizing: border-box;
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
    }
    .sp-menu-label {
        display: block;
        height: 14px;
        color: currentColor;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 14px;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: visible;
    }
    body.admin-bar .sp-nav #sp-menu {
        top: calc(54px + env(safe-area-inset-top, 0px));
    }
    #ngm-yoyaku-table-sticky-header.ngm-show-sticky {
        top: env(safe-area-inset-top, 0px);
    }
    body.admin-bar #ngm-yoyaku-table-sticky-header.ngm-show-sticky {
        top: calc(54px + env(safe-area-inset-top, 0px));
    }
    body.ngm-booking-sticky-active .sp-nav #sp-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .ngm-yoyaku-navi-button {
        box-sizing: border-box;
        min-height: 44px;
    }
    .ngm-yoyaku-navi .ngm-yoyaku-navi-button:focus,
    .ngm-yoyaku-navi .ngm-yoyaku-navi-button:focus-visible {
        outline: 3px solid #17365d !important;
        outline-offset: 2px !important;
    }
    .sp-nav #sp-yoyaku,
    .sp-nav #sp-tel {
        display: none !important;
    }

    /* Mobile booking/phone CTA: separate from the upper MENU control. */
    .mobile-fixed-cta {
        box-sizing: border-box;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9000;
        display: flex;
        gap: 8px;
        align-items: stretch;
        min-height: 0;
        padding: 0 max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
        background: transparent;
        border-top: 0;
        box-shadow: none;
        pointer-events: none;
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }
    .mobile-fixed-cta a {
        box-sizing: border-box;
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 48px;
        padding: 8px 6px;
        border: 2px solid transparent;
        border-radius: 8px;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 2px 8px rgba(0, 0, 0, 0.22);
        pointer-events: auto;
    }
    .mobile-fixed-cta__icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .mobile-fixed-cta__booking {
        background-color: #ef7f16;
        border-color: #c86000 !important;
    }
    .mobile-fixed-cta__phone {
        background-color: #18883c;
        border-color: #0f672c !important;
    }
    .mobile-fixed-cta__contact {
        display: none !important;
    }
    .mobile-fixed-cta__booking:hover,
    .mobile-fixed-cta__booking:active {
        background-color: #d86d09;
        color: #fff;
    }
    .mobile-fixed-cta__phone:hover,
    .mobile-fixed-cta__phone:active {
        background-color: #116e30;
        color: #fff;
    }
    .mobile-fixed-cta a:focus,
    .mobile-fixed-cta a:focus-visible,
    .mobile-fixed-cta a.is-focus-visible {
        outline: 3px solid #172f63 !important;
        outline-offset: 2px !important;
        box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #172f63 !important;
        color: #fff;
    }
    .mobile-fixed-cta.is-hidden,
    body.ngm-mobile-menu-open .mobile-fixed-cta,
    body.ngm-mobile-form-focus .mobile-fixed-cta {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-fixed-cta {
            transition: none;
        }
    }

    
    /*
        header nav
    */
    .header-nav {
        display: none;
    }
    .header-nav {
        margin-top: 0;
        width: 100%;
        height: 100dvh;
        background-color: #333;
        background-color: rgba(51,51,51,0.9);
        position: fixed;
        top: 0;
        z-index: 20001;
        overflow-y: auto;
    }
    .header-nav ul {
        padding: 20px;
        width: 100%;
        height: auto;
        background-color: #fe7c17;
        font-size: 1.2rem;
        z-index: 101;
        overflow: hidden;
    }
    .header-nav li {
        margin: 0 auto;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #fe7c17;
        text-align: left;
    }
    .header-nav li a {
        border-bottom: 0px;
        margin-left: 2rem;
    }
    #btn-sp-menu-close {
        margin-top: -1px;
        padding: 0.5rem;
        padding-bottom: 1.5rem;
        width: 100%;
        background-color: #fe7c17;
        text-align: center;
    }
    #btn-sp-menu-close a,
    #btn-sp-menu-close button {
        margin-bottom: 2rem;
        padding: 0.88rem 4rem;
        border-radius: 12px;
        border: 0;
        background: #ffff99;
        color: #996600;
        font: inherit;
        cursor: pointer;
        z-index: 102;
    }
    #btn-sp-menu-close button:focus-visible {
        outline: 3px solid #17365d;
        outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
        .sp-menu-trigger {
            transition: none;
        }
    }
    
    
    /*
        Google Map
    */
    #google-map {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        height: auto;
        text-align: center;
    }
    
    
    /*
        common
    */
    .table-border-none th,
    .table-border-none td {
        width: 100%;
        display: block;
    }
    #main table.table-border-none {
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        table-layout: fixed;
    }
    #main .wpcf7-form table.contact-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    .wpcf7-form .wpcf7-form-control-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .wpcf7-form input:not([type="submit"]),
    .wpcf7-form select,
    .wpcf7-form textarea {
        width: 100%;
        max-width: 100%;
    }
    .mobile-fixed-cta {
        right: auto;
        width: 100vw;
        max-width: 100vw;
    }
    .bg-osteopathy,
    .bg-skill {
        width: 100%;
        display: block;
    }

    /*
        image float
    */
    img.float-left {
        padding: 1em;
        padding-top: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        display: block;
        float: none;
    }
    img.float-right {
        padding: 1em;
        padding-top: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        display: block;
        float: none;
    }
    
    .w-pc316-sp100per {
        width: 100%;
    }
    
    .sp-hide {
        display: none !important;
    }
    .pc-hide {
        display: block !important;
    }
    
    .vertical-align-pc-middle-sp-top {
        vertical-align: top;
    }
    
    .pc-mt-0 {
        margin-top: auto;
    }
    
    /* for access */
    .full-only-sp {
        width: 100%;
    }
    .nagomi-car {
        width: 200px;
        height: 200px;
    }
    .nagomi-train {
        width: 100%;
        height: auto;
    }

    .fs-lightbox.fs-light.fs-lightbox-mobile {
        z-index: 30001;
    }
    
    /* for faq */
    .box-orange,
    .box-green {
        margin: 0.5rem auto;
        padding: 0.5rem;
        width: 95%;
        overflow: hidden;
        display: block;
    }
    
}


@media screen and (max-width:360px) {
    .header-middle-left {
        padding: 0 .25rem;
        height: 60px;
    }
    .header-middle-left img {
        width: 180px;
        height: auto;
    }
    .header-middle-center ul li {
        margin: 0 4px 4px;
        padding: 0.15em 0.5em;
        width: 45%;
    }
    .sp-nav li {
        margin-left: 4px;
        margin-right: 4px;
    }
    .sp-nav #sp-top {
        width: 236px;
    }
    .sp-nav img {
        width: 120px;
    }
    .mobile-fixed-cta {
        gap: 6px;
        padding-right: max(6px, env(safe-area-inset-right, 0px));
        padding-left: max(6px, env(safe-area-inset-left, 0px));
    }
    .mobile-fixed-cta a {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 14px;
    }
    .header-kuchikomi-container .header-kuchikomi {
        margin-left: 40px;
    }
    .sp-list-link a {
        font-size: 14px;
    }
    .news-box-list a, .colums-box-list a {
        width: 85%;
    }
    .manga-tab .brown {
        width: 60px;
    }
    .manga-tab .green {
        width: 90px;
    }
    .voice-box .voice {
        width: 90%;
    }
}

/*
 * Tablet layout (device-width viewport)
 * Keep the existing desktop layout from 1024px and the established mobile
 * layout through 640px. This middle range removes the former 1020px scaling
 * dependency without changing the page structure.
 */
@media screen and (min-width:641px) and (max-width:1023px) {
    html,
    body,
    #wrapper {
        width: 100%;
        max-width: 100%;
    }

    .container,
    #footer-container {
        width: calc(100% - 32px);
        max-width: 1000px;
    }

    #header-middle > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px 24px;
    }

    .header-middle-left {
        flex: 0 1 273px;
        max-width: 273px;
    }

    .header-middle-left img {
        max-width: 100%;
        height: auto;
    }

    .header-middle-center {
        flex: 1 1 300px;
        width: auto;
        margin-left: 0;
    }

    table.header-middle-right {
        float: none;
        flex: 0 0 243px;
        margin-left: auto;
    }

    table.header-middle-right tr:first-child {
        display: none;
    }

    .header-kuchikomi-container {
        display: none !important;
    }

    #header-main {
        background-position: top center;
        background-size: min(677px, 100%) auto;
    }

    /*
     * Reuse the approved smartphone MENU control and overlay through tablet
     * widths. The desktop logo remains in the header, so only the fixed MENU
     * item from the smartphone navigation row is exposed here.
     */
    .sp-nav {
        width: 100%;
        background-color: #fff;
        display: block;
        position: absolute;
        right: 0;
        top: 10px;
    }

    .sp-nav ul {
        background-color: #fff;
        font-size: 0;
        text-align: center;
    }

    .sp-nav li {
        background-color: #fff;
        margin-left: 8px;
        margin-right: 8px;
        vertical-align: top;
        display: inline-block;
    }

    .sp-nav #sp-top {
        display: none;
    }

    .sp-nav #sp-menu {
        margin: 0;
        width: 60px;
        height: 62px;
        background: transparent;
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        z-index: 19000;
        pointer-events: auto;
    }

    .sp-menu-trigger {
        box-sizing: border-box;
        width: 60px;
        height: 62px;
        margin: 0;
        padding: 7px 8px 6px;
        border: 1px solid #ed8a3b;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 8px rgba(51, 51, 51, 0.22);
        color: #e66f12;
        cursor: pointer;
        font: inherit;
        line-height: 1;
        overflow: visible;
        -webkit-appearance: none;
        appearance: none;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }

    .sp-menu-trigger:hover,
    .sp-menu-trigger:active {
        border-color: #d95f05;
        background: #fff7ef;
    }

    .sp-menu-trigger:focus {
        outline: 3px solid #17365d;
        outline-offset: 2px;
    }

    .sp-menu-trigger:focus:not(:focus-visible) {
        outline: none;
    }

    .sp-menu-trigger:focus-visible {
        outline: 3px solid #17365d;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(51, 51, 51, 0.22);
    }

    .sp-menu-icon {
        box-sizing: border-box;
        display: flex;
        width: 28px;
        height: 22px;
        margin: 0 auto 4px;
        flex-direction: column;
        justify-content: space-between;
        overflow: visible;
    }

    .sp-menu-icon span {
        box-sizing: border-box;
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
    }

    .sp-menu-label {
        display: block;
        height: 14px;
        color: currentColor;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 14px;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: visible;
    }

    body.admin-bar .sp-nav #sp-menu {
        top: calc(54px + env(safe-area-inset-top, 0px));
    }

    #ngm-yoyaku-table-sticky-header.ngm-show-sticky {
        top: env(safe-area-inset-top, 0px);
    }

    body.admin-bar #ngm-yoyaku-table-sticky-header.ngm-show-sticky {
        top: calc(54px + env(safe-area-inset-top, 0px));
    }

    .ngm-yoyaku-table-sticky-header-container,
    .ngm-yoyaku-table-sticky-header-wrap {
        width: 100%;
    }

    body.ngm-booking-sticky-active .sp-nav #sp-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .sp-nav #sp-yoyaku,
    .sp-nav #sp-tel {
        display: none !important;
    }

    /* Tablet fixed CTA: the approved phone CTA remains unchanged below 641px. */
    .mobile-fixed-cta.sp-only {
        box-sizing: border-box;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9000;
        display: flex !important;
        gap: 10px;
        align-items: stretch;
        width: 100%;
        min-height: 0;
        padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        background: transparent;
        border-top: 0;
        box-shadow: none;
        pointer-events: none;
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }

    .mobile-fixed-cta a {
        box-sizing: border-box;
        display: inline-flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 52px;
        padding: 9px 10px;
        border: 2px solid transparent;
        border-radius: 9px;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 2px 9px rgba(0, 0, 0, 0.24);
        pointer-events: auto;
    }

    .mobile-fixed-cta__icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-fixed-cta__booking {
        background-color: #ef7f16;
        border-color: #c86000 !important;
    }

    .mobile-fixed-cta__phone {
        display: none !important;
    }

    .mobile-fixed-cta__contact {
        display: inline-flex !important;
        background-color: #1673a8;
        border-color: #0d567f !important;
    }

    .mobile-fixed-cta__booking:hover,
    .mobile-fixed-cta__booking:active {
        background-color: #d86d09;
        color: #fff;
    }

    .mobile-fixed-cta__contact:hover,
    .mobile-fixed-cta__contact:active {
        background-color: #0d5d8c;
        color: #fff;
    }

    .mobile-fixed-cta a:focus,
    .mobile-fixed-cta a:focus-visible,
    .mobile-fixed-cta a.is-focus-visible {
        outline: 3px solid #172f63 !important;
        outline-offset: 2px !important;
        box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #172f63 !important;
        color: #fff;
    }

    .mobile-fixed-cta.is-hidden,
    body.ngm-mobile-menu-open .mobile-fixed-cta,
    body.ngm-mobile-form-focus .mobile-fixed-cta {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    .header-nav {
        display: none;
        margin-top: 0;
        width: 100%;
        height: 100dvh;
        background-color: #333;
        background-color: rgba(51,51,51,0.9);
        position: fixed;
        top: 0;
        z-index: 20001;
        overflow-y: auto;
    }

    .header-nav ul {
        padding: 20px;
        width: 100%;
        max-width: none;
        height: auto;
        background-color: #fe7c17;
        font-size: 1.2rem;
        z-index: 101;
        overflow: hidden;
    }

    .header-nav li,
    .header-nav li:last-child {
        margin: 0 auto;
        padding: 16px;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #fe7c17;
        text-align: left;
    }

    .header-nav li a {
        border-bottom: 0;
        margin-left: 2rem;
    }

    #btn-sp-menu-close {
        display: block !important;
        margin-top: -1px;
        padding: 0.5rem 0.5rem 1.5rem;
        width: 100%;
        background-color: #fe7c17;
        text-align: center;
    }

    #btn-sp-menu-close button {
        margin-bottom: 2rem;
        padding: 0.88rem 4rem;
        border-radius: 12px;
        border: 0;
        background: #ffff99;
        color: #996600;
        font: inherit;
        cursor: pointer;
        z-index: 102;
    }

    #btn-sp-menu-close button:focus-visible {
        outline: 3px solid #17365d;
        outline-offset: 2px;
    }

    article.container {
        display: flex;
        flex-direction: column;
    }

    #main,
    #sidebar {
        width: 100%;
        float: none;
    }

    .about-nagomi {
        width: min(640px, 100%);
        margin-inline: auto;
    }

    #sidebar {
        margin-top: 40px;
    }

    #main img,
    #sidebar img,
    #footer-container img,
    #main video,
    #main embed,
    #main object {
        max-width: 100%;
        height: auto;
    }

    #main iframe,
    #google-map,
    .google-map {
        max-width: 100%;
    }

    #main table,
    #main input,
    #main select,
    #main textarea {
        max-width: 100%;
    }

    html #footer ul#footer-body.footer-layout {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 32px !important;
        row-gap: 32px !important;
        padding: 40px 24px 24px !important;
    }

    html #footer ul#footer-body.footer-layout > li.footer-item,
    html #footer ul#footer-body.footer-layout > li.footer-item:first-child,
    html #footer #footer-body.footer-layout .footer-info,
    html #footer #footer-body.footer-layout .footer-menu,
    html #footer #footer-body.footer-layout .footer-symptom-col-1,
    html #footer #footer-body.footer-layout .footer-symptom-col-2 {
        grid-column: auto !important;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
        position: static !important;
        top: auto !important;
    }

    html #footer #footer-body.footer-layout .footer-symptom-col li {
        white-space: normal !important;
    }

    #footer-sns {
        position: relative;
        right: auto;
        bottom: auto;
        display: flex;
        justify-content: center;
        clear: both;
    }
}

/* The fixed four-column footer is 1118px wide inside a 1000px container.
 * Compress only that component until the original grid fits in the viewport;
 * the 1000px desktop body remains unchanged. */
@media screen and (min-width:1024px) and (max-width:1235px) {
    html #footer ul#footer-body.footer-layout {
        grid-template-columns: 300px 170px 150px 170px !important;
        column-gap: 50px !important;
    }
}
