@charset "utf-8";

/*
 * TOP first-view trial (test environment, final tuning).
 * Loaded only on is_home() by header.php.
 */

.home #header-middle > .container {
    position: relative;
}

.home .ngm-top-intro {
    padding: 6px 12px 7px;
    background: #f9ec00;
    color: #4f382f;
    text-align: center;
}

.home .ngm-top-intro #header-top {
    display: inline;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    font-synthesis: weight;
    line-height: 1.45;
}

.home .voice-box .ngm-top-voice-list-link {
    display: block;
    margin-top: 18px;
    text-align: center;
}

.home .voice-box .ngm-top-voice-list-link a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #d9782f;
    border-radius: 8px;
    background: #fffaf1;
    color: #5b432e;
    font-weight: 700;
    text-decoration: none;
}

.home .ngm-top-intro-note {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.45;
}

.home .ngm-top-intro-note::before {
    content: " ／ ";
}

.home .ngm-brand-link {
    display: block;
    line-height: 0;
}

.home .ngm-brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.home .header-middle-center {
    background: #fff;
}

.home .ngm-header-features {
    width: 100%;
    margin: 0 0 6px;
}

.home .ngm-header-features ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(190, 149, 80, 0.58);
    border-radius: 8px;
    background: #f6e5bd;
    list-style: none;
}

.home .header-middle-center .ngm-header-features li {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3px 2px;
    border: 1px solid rgba(184, 139, 65, 0.64);
    border-radius: 5px;
    background: #fffdf7;
    color: #513c2d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
}

.home .ngm-feature-saturday {
    color: #2563a6;
}

.home .ngm-feature-sunday,
.home .ngm-feature-holiday {
    color: #d84a3a;
}

.home .ngm-feature-label-short {
    display: none;
}

.home #header-bottom {
    width: 100%;
    background: linear-gradient(to bottom, #fff 0, #fff 10px, #fff9bd 56px, #fef47c 100%);
}

.home #header-bottom .ngm-hero-layout {
    margin-top: 0;
    background: transparent;
}

.home #header-main {
    position: relative;
    background-image: url(../images/header-background.png);
    background-repeat: no-repeat;
    background-position: top center;
}

.home #header-description {
    position: absolute;
    z-index: 2;
    top: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #4f382f;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    -webkit-text-stroke: 2.3px rgba(255, 255, 255, 0.98);
    paint-order: stroke fill;
    text-shadow: 0 1px 1px rgba(79, 56, 47, 0.22);
    writing-mode: horizontal-tb;
    -ms-writing-mode: lr-tb;
    -webkit-writing-mode: horizontal-tb;
}

.home #header-description .header-description-line {
    display: block;
    font-family: inherit;
    line-height: inherit;
}

.home #header-description .header-description-line + .header-description-line {
    margin-top: 2px;
}

.home .ngm-hero-services ul {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .ngm-hero-services li {
    min-width: 0;
}

.home .ngm-hero-services a {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 9px 10px 9px 13px;
    border: 1px solid rgba(196, 157, 92, 0.92);
    border-left: 4px solid #d9782f;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(79, 56, 47, 0.17);
    color: #5b432e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.home .ngm-hero-services a:hover,
.home .ngm-hero-services a:focus-visible {
    border-color: #df8d45;
    background: #fffaf1;
    box-shadow: 0 6px 16px rgba(79, 56, 47, 0.2);
    transform: translateY(-2px);
}

.home .ngm-hero-services a:focus-visible {
    outline: 3px solid rgba(239, 156, 86, 0.4);
    outline-offset: 2px;
}

.home .ngm-hero-services__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff2e3;
    color: #d9782f;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.home .ngm-hero-voice {
    display: none;
}

.home.ngm-mobile-menu-open .sp-nav #sp-menu {
    z-index: 20003;
}

.home.ngm-menu-docked.ngm-mobile-menu-open .sp-nav #sp-menu {
    right: calc(8px + env(safe-area-inset-right, 0px) + var(--ngm-menu-scrollbar-gap, 0px));
}

.home.admin-bar.ngm-mobile-menu-open .sp-nav #sp-menu {
    z-index: 20003;
}

.home.admin-bar.ngm-mobile-menu-open:not(.ngm-menu-docked) .sp-nav #sp-menu {
    transform: translateY(var(--ngm-admin-bar-height, 46px));
}

@media screen and (min-width: 1025px) {
    .home #header-middle > .container {
        display: grid;
        grid-template-columns: minmax(280px, 326px) minmax(355px, 1fr) 345px;
        gap: 6px;
        align-items: start;
        width: calc(100% - 32px);
        max-width: 1120px;
        margin-top: 20px;
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .home .header-middle-left,
    .home .header-middle-center,
    .home .header-middle-right {
        width: auto;
        margin: 0;
    }

    .home .header-middle-left {
        height: auto;
        overflow: visible;
    }

    .home .ngm-brand-logo {
        width: 100%;
    }

    .home .ngm-header-schedule {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        margin-top: 11px;
    }

    .home .ngm-header-schedule--tablet {
        display: none;
    }

    .home .ngm-header-schedule .ngm-info-row {
        display: flex;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
        margin: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    .home .ngm-header-schedule dt {
        box-sizing: border-box;
        display: flex;
        flex: 0 0 auto;
        width: auto;
        min-width: 52px;
        min-height: 21px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 3px 4px;
        line-height: 1.25;
    }

    .home .ngm-header-schedule dd {
        min-width: 0;
        margin: 0;
        line-height: 1.25;
    }

    .home .ngm-header-hours {
        flex: none;
    }

    .home .ngm-header-closed {
        flex: none;
    }

    .home .ngm-header-closed dd {
        position: relative;
        top: 3px;
    }

    .home .header-middle-center .ngm-header-features li {
        font-size: clamp(11px, 0.8vw, 12px);
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .home .header-middle-right {
        float: none;
    }

    .home .header-middle-right .ngm-header-action {
        padding: 0;
        vertical-align: middle;
    }

    .home .header-middle-right .ngm-header-action.td-left {
        padding-right: 3px;
    }

    .home .header-middle-right .ngm-header-action.td-left a {
        transform: translateX(1px);
    }

    .home .header-middle-right .ngm-header-action.td-right {
        padding-left: 3px;
    }

    .home .header-middle-right .ngm-header-action.td-right a {
        transform: translateX(-10px);
    }

    .home .header-middle-right .ngm-header-action a,
    .home .header-middle-right .ngm-header-action img,
    .home .header-middle-right .header-tel a,
    .home .header-middle-right .ngm-header-phone-image {
        display: block;
    }

    .home .header-middle-right .ngm-header-action a {
        display: flex;
        height: 57px;
        align-items: center;
        justify-content: center;
    }

    .home .header-middle-right .ngm-header-action img {
        width: auto;
        max-width: 100%;
        height: 57px;
        object-fit: contain;
    }

    .home .header-middle-right .header-tel {
        padding-right: 0;
        text-align: center;
    }

    .home .header-middle-right .header-tel a {
        width: max-content;
        margin: 0 auto;
    }

    .home .header-middle-right .ngm-header-phone-image {
        width: 230px;
        max-width: 100%;
        height: auto;
        margin: 5px auto 0;
    }

    .home #header-bottom .ngm-hero-layout {
        display: grid;
        grid-template-columns: minmax(210px, 250px) minmax(0, 677px) minmax(230px, 280px);
        gap: clamp(14px, 1.45vw, 22px);
        align-items: center;
        justify-content: center;
        width: calc(100% - 32px);
        max-width: 1300px;
        height: 426px;
    }

    .home #header-main {
        width: 100%;
        height: 100%;
        background-size: cover;
    }

    .home #header-description {
        right: 18px;
        bottom: 32px;
        left: 22px;
        width: auto;
        font-size: clamp(14px, 1.2vw, 18px);
        line-height: 1.42;
    }

    .home #header-description .header-description-line {
        white-space: nowrap;
    }

    .home .ngm-hero-services {
        display: flex;
        width: 100%;
        align-items: center;
        padding: 0;
        transform: translateY(2px);
    }

    .home .ngm-hero-services ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home .ngm-hero-services a {
        min-height: 62px;
        padding-right: 13px;
        padding-left: 16px;
        font-size: 16px;
    }

    .home .ngm-hero-voice {
        display: flex;
        min-width: 0;
        align-items: center;
    }

    .home .ngm-hero-voice .header-kuchikomi-container {
        position: static;
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .home .ngm-hero-voice .header-kuchikomi {
        box-sizing: border-box;
        width: calc(100% - 34px);
        height: 96px;
        margin: 0 0 0 34px;
        padding: 9px 9px 9px 43px;
        border: 1px solid #eee1c4;
        box-shadow: 0 2px 8px rgba(79, 56, 47, 0.08);
    }

    .home .ngm-hero-voice .header-kuchikomi + .header-kuchikomi {
        margin-top: 30px;
    }

    .home .ngm-hero-voice .header-kuchikomi p {
        height: 74px;
        font-size: clamp(11px, 0.86vw, 12.5px);
        line-height: 1.55;
    }

    .home .ngm-hero-voice .link-kuchikomi {
        align-self: flex-end;
        margin-top: 10px;
        color: #5b432e;
        font-size: clamp(11px, 0.86vw, 13px);
        line-height: 1.45;
        text-align: right;
    }

    .home #header-navigation {
        margin-top: -9px;
    }

    .home .ngm-page-shell {
        margin-top: 17px;
    }
}

@media screen and (min-width: 767.01px) and (max-width: 1024px) {
    .home #header-middle > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px;
        margin-top: 12px;
        padding-top: 8px;
        padding-bottom: 7px;
    }

    .home .header-middle-left {
        position: relative;
        display: grid;
        grid-template-columns: clamp(236px, 29vw, 300px) minmax(0, 1fr) 64px;
        column-gap: 8px;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 68px;
        align-items: center;
        padding: 0;
        overflow: visible;
    }

    .home .header-middle-left > .ngm-brand-link {
        grid-column: 1;
        width: 100%;
    }

    .home .ngm-brand-logo {
        width: 100%;
    }

    .home .ngm-header-schedule--desktop {
        display: none;
    }

    .home .ngm-header-schedule--tablet {
        display: flex;
        grid-column: 2;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        width: max-content;
        max-width: 100%;
        justify-self: start;
        margin: 0;
        transform: translateY(6px);
    }

    .home .sp-nav {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 72px;
        background: transparent;
        pointer-events: none;
    }

    .home .sp-nav ul {
        height: 72px;
        margin: 0;
        background: transparent;
    }

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

    .home .sp-nav #sp-menu,
    .home.admin-bar .sp-nav #sp-menu {
        position: absolute;
        top: 4px;
        right: 0;
        width: 60px;
        height: 62px;
        z-index: 19000;
        pointer-events: auto;
    }

    .home.ngm-menu-docked .sp-nav #sp-menu {
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
    }

    .home.admin-bar.ngm-menu-docked .sp-nav #sp-menu {
        top: calc(var(--ngm-admin-bar-height, 32px) + 8px + env(safe-area-inset-top, 0px));
    }

    .home .header-middle-center {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .home .ngm-header-features {
        max-width: 760px;
        margin: 0 auto;
    }

    .home .ngm-header-schedule--tablet .ngm-info-row {
        display: flex;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
        margin: 0;
        font-size: clamp(11px, 1.42vw, 12px);
        white-space: nowrap;
    }

    .home .ngm-header-schedule--tablet dt {
        box-sizing: border-box;
        display: flex;
        flex: 0 0 auto;
        width: auto;
        min-width: 52px;
        min-height: 21px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 3px 4px;
        background: #8cb246;
        color: #fff;
        line-height: 1.3;
        text-align: center;
    }

    .home .ngm-header-schedule--tablet dd {
        min-width: 0;
        margin: 0;
        line-height: 1.3;
    }

    .home .ngm-header-schedule--tablet .ngm-header-closed dd {
        position: relative;
        top: 3px;
    }

    .home #header-navigation .ngm-desktop-menu {
        display: none !important;
    }

    .home .header-middle-center > dl {
        display: none;
    }

    .home table.header-middle-right {
        display: none;
    }

    .home #header-bottom {
        padding: 10px 0 12px;
    }

    .home #header-bottom .ngm-hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 16px;
        align-items: stretch;
    }

    .home #header-main {
        width: 100%;
        height: clamp(330px, 41.6vw, 426px);
        min-height: 0;
        background-size: min(677px, 100%) auto;
    }

    .home #header-description {
        right: 12px;
        bottom: 7px;
        left: 12px;
        width: auto;
        font-size: clamp(14px, 1.75vw, 17px);
        line-height: 1.42;
        text-align: center;
    }

    .home #header-description .header-description-line {
        white-space: nowrap;
    }

    .home .ngm-hero-services {
        display: flex;
        align-items: center;
    }

    .home .ngm-hero-services ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home .ngm-hero-services a {
        min-height: 54px;
        padding: 8px 9px 8px 12px;
        font-size: 14px;
    }

    .home .ngm-home-voice {
        display: none;
    }

    .home .ngm-page-shell {
        margin-top: 13px;
    }
}

@media screen and (max-width: 767px) {
    .home .ngm-header-schedule {
        display: none;
    }

    .home .ngm-top-intro {
        padding: 4px 7px 5px;
    }

    .home .ngm-top-intro #header-top,
    .home .ngm-top-intro-note {
        display: block;
        white-space: nowrap;
    }

    .home .ngm-top-intro #header-top {
        font-size: clamp(11.25px, 2.9vw, 12.5px);
        line-height: 1.35;
    }

    .home .ngm-top-intro-note {
        margin-top: 1px;
        font-size: clamp(10.25px, 2.65vw, 11.5px);
        line-height: 1.35;
    }

    .home .ngm-top-intro-note::before {
        content: none;
    }

    .home #header-middle > .container {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .home .header-middle-left {
        position: relative;
        width: 100%;
        max-width: none;
        height: clamp(66px, calc((100vw - 98px) / 4.68 + 8px), 84px);
        flex: none;
        padding: 3px 7px 2px;
        overflow: visible;
    }

    .home .header-middle-left > .ngm-brand-link {
        display: none !important;
    }

    .home .sp-nav {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 100%;
        background: #fff;
    }

    .home .sp-nav ul {
        position: relative;
        width: 100%;
        height: 100%;
        margin: 0;
        background: #fff;
        text-align: left;
    }

    .home .sp-nav li {
        margin: 0;
    }

    .home .sp-nav #sp-top {
        display: block;
        width: calc(100% - 66px);
        height: 100%;
    }

    .home .sp-nav #sp-top .ngm-brand-link {
        width: min(360px, calc(100vw - 98px));
    }

    .home .sp-nav #sp-top .ngm-brand-logo {
        width: min(360px, calc(100vw - 98px));
        max-width: none;
        height: auto;
        background: transparent;
    }

    .home .sp-nav #sp-menu,
    .home.admin-bar .sp-nav #sp-menu {
        position: absolute;
        top: 3px;
        right: 0;
        width: 60px;
        height: 62px;
        z-index: 19000;
        pointer-events: auto;
    }

    .home.ngm-menu-docked .sp-nav #sp-menu {
        position: fixed;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
    }

    .home.admin-bar.ngm-menu-docked .sp-nav #sp-menu {
        top: calc(var(--ngm-admin-bar-height, 46px) + 8px + env(safe-area-inset-top, 0px));
    }

    .home .sp-menu-trigger {
        width: 60px;
        height: 62px;
        padding: 7px 8px 6px;
    }

    .home .header-middle-center {
        width: 100%;
        min-width: 0;
        flex: none;
        margin: 6px auto 11px;
        padding: 0 6px;
    }

    .home .ngm-header-features {
        margin: 0;
    }

    .home .ngm-header-features ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        border-radius: 7px;
    }

    .home .header-middle-center .ngm-header-features li {
        min-height: 27px;
        padding: 3px 1px;
        border-radius: 4px;
        font-size: 11px;
        line-height: 1.15;
        letter-spacing: -0.035em;
        white-space: nowrap;
    }

    .home .ngm-feature-label-full {
        display: none;
    }

    .home .ngm-feature-label-short {
        display: inline;
    }

    .home #header-bottom {
        padding: 0;
        background: linear-gradient(to bottom, #fff8ad 0, #fef47c 64%, #f9ec00 100%);
    }

    .home #header-bottom .ngm-hero-layout {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .home #header-main {
        width: 100%;
        height: clamp(258px, calc(62.9vw + 32px), 408px);
        min-height: 0;
        background-position: top center;
        background-size: min(677px, 100%) auto;
    }

    .home #header-description {
        right: 11px;
        bottom: 14px;
        left: 11px;
        width: auto;
        font-size: clamp(12px, 3.15vw, 14px);
        line-height: 1.42;
        letter-spacing: -0.015em;
        text-align: center;
        -webkit-text-stroke-width: 1.9px;
    }

    .home #header-description .header-description-line {
        white-space: nowrap;
    }

    .home #header-description .header-description-line + .header-description-line {
        margin-top: 1px;
    }

    .home .ngm-hero-services {
        display: none;
    }

    .home .ngm-hero-services ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home .ngm-hero-services a {
        min-height: 52px;
        padding: 8px 9px 8px 11px;
        border-radius: 9px;
        background: #fff;
        font-size: 14px;
    }

    .home .ngm-home-voice {
        display: none;
    }

    .home .voice-box .sp-list-link {
        display: block;
        margin-top: 14px;
        text-align: center;
    }

    .home .voice-box .sp-list-link a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 9px 16px;
        border: 1px solid #d9782f;
        border-radius: 8px;
        background: #fffaf1;
        color: #5b432e;
        font-weight: 700;
        text-decoration: none;
    }

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

@media screen and (max-width: 360px) {
    .home .header-middle-left {
        height: 66px;
    }

    .home .sp-nav #sp-top .ngm-brand-link,
    .home .sp-nav #sp-top .ngm-brand-logo {
        width: min(252px, calc(100vw - 80px));
    }

    .home .header-middle-center .ngm-header-features li {
        font-size: 11px;
    }

    .home #header-description {
        right: 8px;
        left: 8px;
        font-size: 11.5px;
    }

    .home .ngm-hero-services a {
        padding-right: 8px;
        padding-left: 10px;
        font-size: 13px;
    }
}

/* TOP sidebar: keep the phone image size and tighten only its surrounding whitespace. */
.home #sidebar .ngm-sidebar-phone-label,
.home #sidebar .ngm-sidebar-phone-link {
    padding-bottom: 8px;
}

/* Keep the footer logo fixed and open a little more space before the address block. */
.home #footer ul#footer-body .footer-info > .logo + address {
    margin-top: 10px;
}

/* The 1025-1235px footer grid has a 300px first track; let its info content use
   the spare column gap so the hours label and main time stay on one row at
   100%/110% browser zoom without moving the existing link columns. */
@media screen and (min-width: 1025px) and (max-width: 1235px) {
    .home #footer ul#footer-body.footer-layout > li.footer-info {
        width: 330px !important;
    }
}

@media screen and (min-width: 641px) and (max-width: 1024px) {
    .home #footer ul#footer-body .footer-info dl {
        margin-left: 0.5rem;
    }
}

/* TOP footer: keep the information block fixed and give the three link columns more breathing room. */
@media screen and (min-width: 1025px) and (max-width: 1235px) {
    .home #footer ul#footer-body.footer-layout > li.footer-menu,
    .home #footer ul#footer-body.footer-layout > li.footer-symptom-col-1,
    .home #footer ul#footer-body.footer-layout > li.footer-symptom-col-2 {
        transform: translateX(clamp(45px, calc(45px + (100vw - 1025px) * 0.14), 60px)) !important;
    }
}

@media screen and (min-width: 1236px) {
    .home #footer ul#footer-body.footer-layout > li.footer-menu,
    .home #footer ul#footer-body.footer-layout > li.footer-symptom-col-1,
    .home #footer ul#footer-body.footer-layout > li.footer-symptom-col-2 {
        transform: translateX(65px) !important;
    }
}
