/* Desktop rules stay in style.css; layout overrides apply below 1024px. */
.mobile-nav-toggle,
.mobile-nav-close,
.mobile-menu-contact {
    display: none;
}

.t-king-attachment {
    height: auto;
}

#foot_info a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #92619c;
    outline-offset: 3px;
}

#top_slide:not(.slick-initialized) > div:not(:first-child) {
    display: none;
}

.pagination {
    margin: 0 auto 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: #f9f4e7;
}

@media screen and (max-width: 1023px) {
    body {
        overflow-wrap: break-word;
        -webkit-text-size-adjust: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    div#head,
    div#headmenu ul,
    div#top_intro,
    div#top_recommend,
    div#top_content,
    div#breadnav,
    div#main,
    div#foot {
        width: calc(100% - 40px);
    }

    div#headmenu ul {
        display: flex;
    }

    div#headmenu ul li,
    div#headmenu ul li a {
        width: auto;
        flex: 1;
    }

    div#headmenu ul li {
        float: none;
    }

    div#mainvis_top,
    div#top_slide {
        width: 100%;
    }

    div#top_slide div img {
        height: 400px;
        object-fit: cover;
    }

    div#mainvis_top h2 {
        left: 24px;
        font-size: 3rem;
    }

    img#top_chara {
        right: 24px;
        width: 340px;
    }

    div#top_intro_content {
        width: 65%;
    }

    div#top_intro_photo {
        width: 31%;
    }

    div#top_recommend {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    div#top_recommend div.top_recommend_box,
    div#top_recommend div.top_recommend_box:first-child {
        width: auto;
        margin: 0;
        float: none;
        display: block;
    }

    div#top_menu {
        width: 55%;
    }

    div#top_facebook {
        width: 40%;
    }

    div#top_menu ul#top_content_menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    div#top_menu ul#top_content_menu li,
    div#top_menu ul#top_content_menu li:nth-child(2n+1) {
        width: auto;
        margin: 0;
        float: none;
    }

    div.top_media_title_area,
    div#top_menu dl {
        width: 100%;
    }

    div.top_media_title_area {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    div.top_media_title,
    div.top_media_more {
        width: auto;
        float: none;
    }

    div#top_menu dl {
        display: flex;
        gap: 16px;
    }

    div#top_menu dl dt {
        width: 28%;
        flex-shrink: 0;
        float: none;
    }

    div#top_menu dl dd {
        width: auto;
        min-width: 0;
        float: none;
    }

    .fb-page,
    .fb-page > span,
    .fb-page iframe {
        max-width: 100%;
    }

    div#foot_info {
        width: 48%;
    }

    div#foot_menu {
        width: 48%;
    }

    div#copyright {
        box-sizing: border-box;
        height: auto;
        min-height: 40px;
        padding: 10px 16px;
        line-height: 1.8;
    }

    div#breadnav {
        line-height: 1.8;
        padding-top: 10px;
    }

    div#mainvis_page_area,
    div#mainvis_page {
        width: 100%;
        height: auto;
    }

    div#mainvis_page img {
        display: block;
    }

    div#main ul#content_menu {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    div#main ul#content_menu li,
    div#main ul#content_menu li:first-child {
        width: auto;
        margin: 0;
        float: none;
    }

    /* Clearfix pseudo-elements must not become extra grid or flex items. */
    div#headmenu ul:after,
    div#top_recommend:after,
    div#top_menu ul#top_content_menu:after,
    div.top_media_title_area:after,
    div#top_menu dl:after,
    div#main ul#content_menu:after,
    div.menulist_photo_wrap ul:after {
        content: none;
    }

    div.pickup_photo,
    div.media_photo {
        width: 35%;
        margin-left: 2%;
    }

    div.pickup_content,
    div.media_content {
        width: 57%;
        margin-right: 2%;
    }

    div.menulist_photo_wrap ul.menulist_photo_3_3,
    div.menulist_photo_wrap ul.menulist_photo_3_2,
    div.menulist_photo_wrap ul.menulist_photo_1 {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    div.menulist_photo_wrap ul.menulist_photo_3_2 {
        max-width: 660px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    div.menulist_photo_wrap ul.menulist_photo_1 {
        max-width: 320px;
        grid-template-columns: minmax(0, 1fr);
    }

    div.menulist_photo_wrap ul[class] li,
    div.menulist_photo_wrap ul[class] li:first-child {
        width: auto;
        margin: 0;
        float: none;
    }

    div.rooms_wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    div.rooms_wrap:after {
        content: none;
    }

    div.rooms_wrap div.rooms_box,
    div.rooms_wrap div.rooms_box:nth-child(2n+1) {
        box-sizing: border-box;
        width: auto;
        margin: 0;
        padding: 16px;
        float: none;
    }

    #main iframe,
    #main video,
    #main embed,
    #main object {
        max-width: 100%;
    }

    #main figure {
        max-width: 100%;
    }

    table.about {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    html {
        scroll-padding-top: calc(80px + env(safe-area-inset-top));
    }

    body {
        font-size: 1.5rem;
        line-height: 1.8;
        padding-top: calc(80px + env(safe-area-inset-top));
    }

    .site-header {
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100000;
        width: 100%;
        height: calc(80px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        background: #fff;
    }

    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar #wpadminbar {
        position: fixed;
    }

    div#head,
    div#top_intro,
    div#top_recommend,
    div#top_content,
    div#breadnav,
    div#main,
    div#foot {
        width: calc(100% - 32px);
    }

    div#head {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    div#head h1 {
        position: static;
        width: min(60%, 190px);
        transform: none;
    }

    div#head h1 a,
    div#head h1 img {
        display: block;
    }

    div#head .head-phone,
    div#head .head-facebook {
        display: none;
    }

    .has-mobile-navigation .mobile-nav-toggle,
    .has-mobile-navigation .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #69397f;
        color: #fff;
        cursor: pointer;
    }

    .has-mobile-navigation .mobile-nav-toggle {
        position: static;
        flex-shrink: 0;
    }

    .mobile-nav-lines {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-nav-lines span {
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    div#headmenu {
        height: auto;
        background: #69397f;
        color: #fff;
        border: 0;
    }

    .has-mobile-navigation div#headmenu {
        display: none;
        box-sizing: border-box;
        position: fixed;
        inset: 0;
        z-index: 100000;
        width: 100%;
        height: 100%;
        height: 100dvh;
        padding: calc(80px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .has-mobile-navigation div#headmenu.is-open {
        display: block;
    }

    html.mobile-menu-open,
    html.mobile-menu-open body {
        overflow: hidden;
    }

    html.mobile-menu-open body {
        position: fixed;
        width: 100%;
    }

    .has-mobile-navigation .mobile-nav-close {
        position: fixed;
        top: calc(16px + env(safe-area-inset-top));
        right: calc(16px + env(safe-area-inset-right));
    }

    .mobile-nav-close span:before,
    .mobile-nav-close span:after {
        content: '';
        position: absolute;
        top: 23px;
        left: 13px;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transform: rotate(45deg);
    }

    .mobile-nav-close span:after {
        transform: rotate(-45deg);
    }

    div#headmenu ul {
        display: block;
        width: 100%;
        max-width: 480px;
        height: auto;
        margin: 0 auto;
    }

    div#headmenu ul li,
    div#headmenu ul li a {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 52px;
        float: none;
        display: block;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.5;
    }

    div#headmenu ul li a {
        padding: 13px 4px;
        color: #fff;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    div#headmenu ul li:first-child a {
        border-left: 0;
    }

    .mobile-menu-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin: 28px auto 0;
        padding-bottom: 8px;
    }

    .mobile-menu-phone {
        display: block;
        width: 260px;
        max-width: 100%;
    }

    .mobile-menu-phone img {
        width: 100%;
        height: auto;
    }

    .mobile-menu-facebook,
    .mobile-menu-facebook:link,
    .mobile-menu-facebook:visited {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-size: 3rem;
        color: #fff;
        text-decoration: none;
    }

    div#headmenu a:focus-visible,
    div#headmenu button:focus-visible {
        outline-color: #fff;
    }

    div#mainvis_top_area,
    div#mainvis_top,
    div#top_slide,
    div#top_slide div img {
        height: clamp(118px, 37vw, 260px);
    }

    div#mainvis_top h2 {
        box-sizing: border-box;
        width: calc(100% - 32px);
        left: 16px;
        top: 16px;
        font-size: clamp(1.7rem, 4.6vw, 2.8rem);
        line-height: 1.45;
        -webkit-text-stroke-width: 4px;
    }

    img#top_chara {
        width: min(32%, 200px);
        top: auto;
        right: 12px;
        bottom: 0;
    }

    div#top_intro {
        margin-top: 24px;
    }

    div#top_intro_content,
    div#top_intro_photo,
    div#top_menu,
    div#top_facebook,
    div#foot_info,
    div#foot_menu {
        width: 100%;
        float: none;
        display: block;
    }

    div#top_intro h3 {
        font-size: 1.8rem;
        line-height: 1.6;
        padding-left: 12px;
    }

    div#top_intro_photo {
        max-width: 300px;
        margin: 20px auto 0;
    }

    div#top_recommend {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        max-width: 480px;
    }

    div#top_recommend_area h3 {
        font-size: 1.9rem;
        letter-spacing: 0.3rem;
    }

    div.top_recommend_button,
    div.top_recommend_button a {
        width: calc(100% - 32px);
        max-width: 400px;
    }

    div.top_recommend_button a {
        width: 100%;
        height: auto;
        min-height: 48px;
        line-height: 48px;
        letter-spacing: 0.4rem;
    }

    div#top_content {
        margin-bottom: 40px;
    }

    div.top_media_more a {
        height: auto;
        min-height: 44px;
        line-height: 44px;
    }

    div.top_media_more {
        margin-left: auto;
    }

    div#top_facebook {
        margin: 32px auto 0;
        max-width: 500px;
        text-align: center;
    }

    div#foot_info {
        text-align: center;
    }

    div#foot_info h3 {
        margin: 0 auto 10px;
    }

    div#foot_menu {
        margin-top: 24px;
        text-align: center;
    }

    div#foot_menu ul {
        display: none;
    }

    div#main {
        padding-top: 20px;
    }

    div#main h2 {
        font-size: 2rem;
        line-height: 1.5;
    }

    div#main h3,
    div#main h4 {
        font-size: 1.7rem;
        line-height: 1.6;
    }

    div#main ul#content_menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    div.pickup_intro {
        padding: 16px;
    }

    div.pickup_box,
    div.media_box {
        padding: 16px;
        margin-bottom: 28px;
    }

    div.pickup_photo,
    div.pickup_content,
    div.media_photo,
    div.media_content {
        width: 100%;
        margin: 0;
        float: none;
        display: block;
    }

    div.media_photo {
        margin-bottom: 16px;
    }

    div#main div.media_content p.postinfo {
        text-align: left;
        font-size: 1.2rem;
    }

    div#main p.media_nav {
        margin-bottom: 40px;
    }

    div#main p.media_nav a {
        width: 100%;
        max-width: 300px;
        min-height: 44px;
        line-height: 44px;
    }

    div.menulist_l,
    div.menulist_r {
        width: 100%;
        float: none;
        display: block;
    }

    div.menulist_wrap > div.menulist_l > table.menulist_new {
        margin-bottom: 0;
    }

    div.menulist_wrap > div.menulist_l + div.menulist_r > table.menulist_new {
        margin-top: -1px;
    }

    div.menulist_wrap,
    div.menulist_photo_wrap {
        margin-bottom: 28px;
    }

    div.menulist_photo_wrap ul.menulist_photo_3_3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    div.menulist_photo_wrap ul.menulist_photo_3_3,
    div.menulist_photo_wrap ul.menulist_photo_3_2 {
        gap: 12px;
    }

    table.menulist,
    table.menulist_new,
    table.pickup_price,
    table.about {
        table-layout: fixed;
    }

    table.menulist th,
    table.menulist td,
    table.menulist_new th,
    table.menulist_new td,
    table.pickup_price th,
    table.pickup_price td,
    table.about th,
    table.about td {
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }

    table.about th {
        width: 24%;
    }

    div.rooms_wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    div.about_map iframe {
        height: 320px;
    }
}
