@charset "utf-8";


/* ==================================================
   Header
================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 8000;

    width: 100%;
    height: 64px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}


/* ==================================================
   Header Inner
================================================== */

.header_inner {
    display: flex;
    align-items: stretch;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


/* ==================================================
   Logo
================================================== */

.header_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 220px;
    height: 100%;

    padding: 0 24px;

    background: #ffffff;

    text-decoration: none;
}

.header_logo img {
    display: block;

    width: 100%;
    max-width: 170px;
    height: auto;

    object-fit: contain;
}


/* ==================================================
   Navigation
================================================== */

.header_nav {
    flex: 1;

    min-width: 0;
    height: 100%;
}


/* ==================================================
   Menu
================================================== */

.header_menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
}


/* ==================================================
   Menu Link
================================================== */

.header_menu-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 1;

    min-width: 0;
    height: 100%;

    padding: 0 10px;

    color: #333333;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.header_menu-link p {
    margin: 0;
    padding: 0;

    color: inherit;

    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}


/* ==================================================
   Menu Dot
================================================== */

.header_menu-dot {
    display: block;
    flex-shrink: 0;

    width: 4px;
    height: 4px;

    background: #b79b14;

    border-radius: 50%;
}


/* ==================================================
   Menu Hover
================================================== */

.header_menu-link:hover {
    color: #a68b12;
    background: #faf9f5;
}


/* ==================================================
   Reservation Button
================================================== */

.header_menu-link-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    width: 100px;
    height: 100%;

    margin: 0;
    padding: 0 8px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.header_menu-link-contact p {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;

    white-space: nowrap;
}


/* ==================================================
   Contact Icon
================================================== */

.header_contact-icon {
    display: block;

    flex-shrink: 0;

    width: auto;
    height: auto;
    max-height: 24px;

    object-fit: contain;
}


/* ==================================================
   LINE
================================================== */

.header_menu-link-contact--line {
    background: #219b18;
}

.header_menu-link-contact--line:hover {
    color: #ffffff;

    background: #188410;
}


/* ==================================================
   WEB
================================================== */

.header_menu-link-contact--web {
    background: #a48d12;
}

.header_menu-link-contact--web:hover {
    color: #ffffff;

    background: #8b7710;
}


/* ==================================================
   Hamburger Button
   現時点では使用しないため非表示
================================================== */

.hamBtn {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 72px;
    height: 72px;

    padding: 0;

    background: #ffffff;

    border: 0;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


/* ==================================================
   Hamburger Lines
================================================== */

.hamBar {
    position: relative;

    display: block;

    width: 30px;
    height: 22px;
}

.hamBar > span {
    position: absolute;
    left: 0;

    display: block;

    width: 100%;
    height: 2px;

    background: #333333;

    transition:
        top 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.hamBar > span:nth-child(1) {
    top: 0;
}

.hamBar > span:nth-child(2) {
    top: 10px;
}

.hamBar > span:nth-child(3) {
    top: 20px;
}


/* ==================================================
   Hamburger Active
================================================== */

.hamBtn.active .hamBar > span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.hamBtn.active .hamBar > span:nth-child(2) {
    opacity: 0;
}

.hamBtn.active .hamBar > span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}


/* ==================================================
   画面幅調整
   PCデザインを維持するための縮小対応
================================================== */

@media screen and (max-width: 1400px) {

    .header_logo {
        width: 190px;

        padding-right: 18px;
        padding-left: 18px;
    }

    .header_logo img {
        max-width: 155px;
    }

    .header_menu-link {
        gap: 6px;

        padding-right: 7px;
        padding-left: 7px;

        font-size: 12px;
    }

    .header_menu-link-contact {
        width: 92px;

        gap: 6px;

        font-size: 12px;
    }

}


/* ==================================================
   SP用
   今回は未実装
   後からハンバーガーメニューを使用する場合に有効化
================================================== */

/*

@media screen and (max-width: 1080px) {

    .header_nav {
        display: none;
    }

    .hamBtn {
        display: flex;
    }

}

*/

/* SP header layout */
@media screen and (max-width: 767px) {
  .header { height: 60px; }
  .header_inner { height: 60px; padding: 0 12px; align-items: center; justify-content: space-between; gap: 8px; }
  .header_logo { flex: 0 0 auto; width: auto; max-width: 34%; }
  .header_logo img { display: block; width: auto; max-width: 100%; max-height: 42px; object-fit: contain; }
  .header_nav { display: flex; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .header_menu { display: flex; width: 100%; align-items: center; justify-content: flex-end; gap: 6px; }
  .header_menu-link:not(.header_menu-link-contact) { display: none !important; }
  .header_menu-link-contact { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 38px; padding: 0 8px; gap: 4px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
  .header_contact-icon { width: 16px; height: 16px; object-fit: contain; }
  .hamBtn { display: flex !important; }
}
@media screen and (max-width: 360px) {
  .header_inner { padding-right: 8px; padding-left: 8px; gap: 5px; }
  .header_menu { gap: 4px; }
  .header_menu-link-contact { min-height: 36px; padding-right: 6px; padding-left: 6px; }
}


/* ==================================================
   Updated global navigation: desktop mega menu + SP drawer
   Required markup hooks: header_inner--redesign, header_nav--drawer
   ================================================== */
.header_inner--redesign { position: relative; z-index: 8001; }
.header_inner--redesign .header_logo { flex: 0 0 auto; }
.header-menu-toggle, .header-menu-close { display: none; }
.header_nav--drawer { position: relative; z-index: 8000; display: flex; align-items: stretch; justify-content: flex-end; flex: 1 1 auto; min-width: 0; height: 100%; }
.header_nav--drawer .header_menu { display: flex; align-items: stretch; justify-content: flex-end; width: 100%; height: 100%; gap: 0; }
.header_nav--drawer .header-menu-item { position: relative; display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.header_nav--drawer .header_menu-link { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 100%; padding: 0 10px; color: #404040; font-size: 12px; text-align: center; text-decoration: none; white-space: nowrap; }
.header_nav--drawer .header_menu-link:hover, .header_nav--drawer .header-menu-item:focus-within > .header_menu-link { color: #a18b1e; }
.header_nav--drawer .header_menu-link p { margin: 0; color: inherit; font-size: inherit; line-height: 1.5; }
.header_nav--drawer .header_menu-dot { flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: #a18b1e; }
.header-reservation-actions { display: flex; flex: 0 0 auto; height: 100%; }
.header-reservation-actions .header_menu-link-contact { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; width: 125px; height: 100%; padding: 8px; color: #fff; text-decoration: none; }
.header-reservation-actions .header_menu-link-contact--line { background: #219b18; }
.header-reservation-actions .header_menu-link-contact--web { background: #a48d12; }
.header-reservation-actions .header_contact-icon { display: block; width: 20px; height: 20px; object-fit: contain; }
.header-reservation-actions p { margin: 0; color: #fff; font-size: 12px; line-height: 1.3; }
.header-mega-menu { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 8010; display: grid; grid-template-columns: 1fr 1.5fr 2fr 1fr; width: min(900px, calc(100vw - 40px)); padding: 20px 24px; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px rgb(50 40 20 / 14%); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.header-menu-item--medical:hover .header-mega-menu, .header-menu-item--medical:focus-within .header-mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.header-mega-group { min-width: 0; padding: 0 22px; border-right: 1px solid #a18b1e; }
.header-mega-group:first-child { padding-left: 0; }
.header-mega-group:last-child { padding-right: 0; border-right: 0; }
.header-mega-toggle { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #a18b1e; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; }
.header-mega-toggle::before { content: "- "; }
.header-mega-links { display: flex; flex-direction: column; gap: 8px; }
.header-mega-links a { color: #404040; font-size: 12px; line-height: 1.5; text-decoration: none; }
.header-mega-links a:hover { color: #a18b1e; }
.header-mega__mobile-heading, .header-reservation-actions--drawer { display: none; }
@media (max-width: 1100px) and (min-width: 768px) {
  .header_nav--drawer .header_menu-link { gap: 5px; padding-inline: 5px; font-size: 11px; }
  .header-reservation-actions .header_menu-link-contact { width: 94px; gap: 5px; }
  .header-mega-menu { grid-template-columns: 1fr 1.4fr 1.8fr .9fr; padding: 18px; }
  .header-mega-group { padding-inline: 14px; }
}
@media (max-width: 767px) {
  .header_inner--redesign { height: 64px; padding-inline: 12px; }
  .header_inner--redesign .header_logo { width: min(42vw, 180px); }
  .header-menu-toggle { position: relative; z-index: 8020; display: flex; flex: 0 0 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 6px; padding: 0; border: 0; background: transparent; }
  .header-menu-toggle span { display: block; width: 24px; height: 2px; background: #a18b1e; transition: transform .2s ease, opacity .2s ease; }
  .header-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .header-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header_nav--drawer { position: fixed; inset: 0; z-index: 8010; display: block; width: 100%; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; padding: 145px 10vw 52px; background: #fff; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .28s ease, opacity .28s ease, visibility .28s; }
  .header_nav--drawer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
  .header_nav--drawer .header_menu { display: flex; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; height: auto; }
  .header_nav--drawer .header-menu-item { display: block; flex: none; min-width: 0; }
  .header_nav--drawer .header_menu-link { justify-content: flex-start; width: 100%; height: auto; min-height: 32px; padding: 4px 0; color: #a18b1e; font-size: clamp(19px, 2.7vw, 24px); line-height: 1.5; text-align: left; white-space: normal; }
  .header_nav--drawer .header_menu-dot { display: none; }
  .header-menu-toggle[aria-expanded="true"] { visibility: hidden; }
  .header-reservation-actions--bar { display: none; }
  .header-reservation-actions--drawer { position: fixed; top: 0; right: 0; z-index: 8030; display: flex; height: clamp(56px, 10.8vw, 84px); }
  .header-reservation-actions--drawer .header_menu-link-contact { flex-direction: column; gap: 2px; width: clamp(72px, 16.5vw, 130px); height: 100%; padding: 5px 3px; }
  .header-reservation-actions--drawer .header_contact-icon { width: 23px; height: 23px; }
  .header-reservation-actions--drawer p { font-family: var(--top-serif, serif); font-size: clamp(12px, 2.1vw, 17px); }
  .header-menu-close { position: fixed; top: 0; right: clamp(144px, 33vw, 260px); z-index: 8031; display: block; width: clamp(52px, 11.5vw, 90px); height: clamp(56px, 10.8vw, 84px); padding: 0; border: 0; background: transparent; }
  .header-menu-close::before, .header-menu-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 2px; background: #a18b1e; }
  .header-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .header-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .header-menu-item--medical { margin-top: 12px; }
  .header-mega__mobile-heading { display: block; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #a18b1e; color: #a18b1e; font-size: 20px; line-height: 1.5; }
  .header-mega-menu { position: static; display: flex; flex-direction: column; gap: 0; width: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
  .header-mega-group { padding: 0; border: 0; }
  .header-mega-toggle { position: relative; margin: 0; padding: 17px 48px 17px 0; border-bottom: 1px solid #777; color: #a18b1e; font-size: clamp(18px, 2.5vw, 22px); line-height: 1.5; cursor: pointer; }
  .header-mega-toggle::before { content: "- "; }
  .header-mega-toggle::after { content: ""; position: absolute; top: 50%; right: 4px; width: 24px; height: 2px; background: #444; transform: translateY(-50%); }
  .header-mega-toggle .header-mega-plus { position: absolute; top: 50%; right: 15px; width: 2px; height: 24px; background: #444; transform: translateY(-50%); transition: transform .2s ease; }
  .header-mega-toggle[aria-expanded="true"] .header-mega-plus { transform: translateY(-50%) rotate(90deg); }
  .header-mega-links { display: none; gap: 0; padding: 7px 0 12px 18px; }
  .header-mega-group.is-open .header-mega-links { display: flex; }
  .header-mega-links a { padding: 9px 0; color: #404040; font-size: 12px; }
  .header-reservation-actions--desktop { display: none; }
  body.header-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .header_nav--drawer, .header_nav--drawer *, .header-menu-toggle span { transition: none !important; }
}


/* Header redesign: final layout rules */
.header_inner--redesign { position: relative; }
.header_nav--drawer { display: flex; align-items: center; justify-content: flex-end; }
.header_nav--drawer .header_menu { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-evenly; }
.header-reservation-actions--desktop { display: flex; align-items: stretch; }
.header-reservation-actions--bar, .header-reservation-actions--drawer, .header-menu-close, .header-menu-toggle { display: none; }
.header-menu-item--medical { position: relative; }
.header-mega-menu { display: flex; }
.header-mega__mobile-heading, .header-mega-toggle { display: none; }
.header-menu-item--medical:hover .header-mega-menu, .header-menu-item--medical:focus-within .header-mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.header-menu-close::before, .header-menu-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 2px; background: #a18b1e; }
.header-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.header-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.header-menu-open { overflow: hidden; }
@media (max-width: 767px) {
 .header_inner--redesign { display: flex; align-items: center; }
 .header_inner--redesign .header_logo { margin-right: auto; }
 .header_nav--drawer { position: fixed; inset: 0; z-index: 8020; display: block; overflow-y: auto; width: 100%; height: 100dvh; padding: 96px 10vw 48px; background: #fff; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .3s ease, opacity .3s ease, visibility .3s ease; }
 .header_nav--drawer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
 .header_nav--drawer .header_menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
 .header_nav--drawer .header-menu-item { width: 100%; }
 .header_nav--drawer .header_menu-link { display: flex; justify-content: flex-start; width: 100%; min-height: 32px; height: auto; padding: 8px 0; color: #a18b1e; font-size: clamp(19px, 2.7vw, 24px); line-height: 1.5; text-align: left; white-space: normal; }
 .header_nav--drawer .header_menu-dot { display: none; }
 .header-reservation-actions--desktop { display: none; }
 .header-reservation-actions--bar { position: fixed; top: 0; right: clamp(56px, 11.5vw, 90px); z-index: 8010; display: flex; height: clamp(56px, 10.8vw, 84px); }
 body.header-menu-open .header-reservation-actions--bar { display: none; }
 .header-reservation-actions--bar .header_menu-link-contact { flex-direction: column; gap: 2px; width: clamp(72px, 16.5vw, 130px); height: 100%; padding: 5px 3px; }
 .header-reservation-actions--bar .header_contact-icon { width: 23px; height: 23px; }
 .header-reservation-actions--bar p { font-family: var(--top-serif, serif); font-size: clamp(12px, 2.1vw, 17px); }
 .header-menu-toggle { position: fixed; top: 0; right: 0; z-index: 8011; display: flex; width: clamp(56px, 11.5vw, 90px); height: clamp(56px, 10.8vw, 84px); flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0; border: 0; background: #fff; }
 .header-menu-toggle span { display: block; width: 28px; height: 2px; background: #a18b1e; transition: transform .2s ease; }
 .header-menu-toggle[aria-expanded="true"] { visibility: hidden; }
 .header-reservation-actions--drawer { position: fixed; top: 0; right: 0; z-index: 8030; display: none; height: clamp(56px, 10.8vw, 84px); }
 .header_nav--drawer.is-open .header-reservation-actions--drawer { display: flex; }
 .header-reservation-actions--drawer .header_menu-link-contact { flex-direction: column; gap: 2px; width: clamp(72px, 16.5vw, 130px); height: 100%; padding: 5px 3px; }
 .header-reservation-actions--drawer .header_contact-icon { width: 23px; height: 23px; }
 .header-reservation-actions--drawer p { font-family: var(--top-serif, serif); font-size: clamp(12px, 2.1vw, 17px); }
 .header-menu-close { position: fixed; top: 0; right: clamp(144px, 33vw, 260px); z-index: 8031; display: block; width: clamp(52px, 11.5vw, 90px); height: clamp(56px, 10.8vw, 84px); padding: 0; border: 0; background: transparent; }
 .header-menu-item--medical { margin-top: 12px; }
 .header-mega__mobile-heading { display: block; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #a18b1e; color: #a18b1e; font-size: 20px; line-height: 1.5; }
 .header-mega-menu { position: static; display: flex; flex-direction: column; gap: 0; width: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
 .header-mega-group { padding: 0; border: 0; }
 .header-mega-toggle { position: relative; display: block; width: 100%; margin: 0; padding: 17px 48px 17px 0; border: 0; border-bottom: 1px solid #777; background: transparent; color: #a18b1e; font-size: clamp(18px, 2.5vw, 22px); line-height: 1.5; text-align: left; cursor: pointer; }
 .header-mega-toggle::before { content: "- "; }
 .header-mega-toggle::after { content: ""; position: absolute; top: 50%; right: 4px; width: 24px; height: 2px; background: #444; transform: translateY(-50%); }
 .header-mega-toggle .header-mega-plus { position: absolute; top: 50%; right: 15px; width: 2px; height: 24px; background: #444; transform: translateY(-50%); transition: transform .2s ease; }
 .header-mega-toggle[aria-expanded="true"] .header-mega-plus { transform: translateY(-50%) rotate(90deg); }
 .header-mega-links { display: none; flex-direction: column; gap: 0; padding: 7px 0 12px 18px; }
 .header-mega-group.is-open .header-mega-links { display: flex; }
 .header-mega-links a { padding: 9px 0; color: #404040; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .header_nav--drawer, .header_nav--drawer *, .header-menu-toggle span { transition: none !important; } }

/* Medical mega menu: desktop preview and layout */
@media (min-width: 768px) {
  .header_nav .header-menu-item--medical { position: static; }
  .header_nav .header-menu-item--medical > .header_menu-link { position: relative; }
  .header_nav .header-mega-menu { position: fixed; top: 64px; left: 50%; z-index: 8010; display: grid; grid-template-columns: 1fr 1.45fr 1.7fr .85fr; width: min(900px, calc(100vw - 48px)); padding: 24px 26px; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px rgb(50 40 20 / 14%); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .header_nav .header-menu-item--medical:hover > .header-mega-menu,
  .header_nav .header-menu-item--medical:focus-within > .header-mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
  .header_nav .header-mega-group { min-width: 0; padding: 0 20px; border-right: 1px solid #c8b66a; }
  .header_nav .header-mega-group:first-child { padding-left: 0; }
  .header_nav .header-mega-group:last-child { padding-right: 0; border-right: 0; }
  .header_nav .header-mega-toggle { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #a18b1e; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; cursor: default; }
  .header_nav .header-mega-toggle::before { content: '- '; }
  .header_nav .header-mega-links { display: flex; flex-direction: column; gap: 7px; padding: 0; }
  .header_nav .header-mega-links a { display: block; padding: 2px 0; color: #404040; font-size: 12px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
  .header_nav .header-mega-links a:hover, .header_nav .header-mega-links a:focus-visible { color: #a18b1e; }
}
@media (max-width: 767px) {
  .header_nav .header-menu-item--medical { margin-top: 12px; }
  .header_nav .header-mega-menu { position: static; transform: none; }
  .header_nav .header-mega-toggle::before { content: '- '; }
  .header_nav .header-mega-group.is-open .header-mega-links { display: flex; }
}

/* SP: hover alone must not expose the medical submenu. */
@media (max-width: 767px) {
  .header_nav:not(.is-open) .header-menu-item--medical > .header-mega-menu { display: none; }
  .header_nav.is-open .header-menu-item--medical > .header-mega-menu { display: flex; }
}

/* SP: larger logo and div-based hamburger bars */
@media (max-width: 767px) {
  .header_inner .header_logo { max-width: 42%; }
  .header_inner .header_logo img { max-height: 48px; }
  .header-menu-toggle { position: fixed; }
  .header-menu-toggle > div { position: absolute; left: 50%; width: 28px; height: 2px; background: #a18b1e; transform: translateX(-50%); }
  .header-menu-toggle > div:first-child { top: calc(50% - 5px); }
  .header-menu-toggle > div:last-child { top: calc(50% + 5px); }
}

/* SP logo: fill the wider logo slot */
@media (max-width: 767px) {
  .header_inner--redesign .header_logo img { width: 100%; max-width: none; max-height: 48px; }
}

@media (max-width: 767px) { .header_inner--redesign .header_logo { padding: 0; } }


/* SP menu matching supplied reference */
@media (max-width: 767px) {
.header-reservation-actions--bar{position:fixed;top:0;right:60px;z-index:8010;display:flex;height:56px}
.header-reservation-actions--bar .header_menu-link-contact{display:flex;width:84px;height:56px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px}
.header-reservation-actions--bar .header_contact-icon{width:18px;height:18px}
.header-reservation-actions--bar p{margin:0;color:#fff;font-size:12px;line-height:1.2;white-space:nowrap}
.header-menu-toggle{position:fixed;top:0;right:0;z-index:8032;display:flex;width:60px;height:56px;align-items:center;justify-content:center;background:#fff}
.header-menu-toggle>div{position:absolute;left:50%;width:28px;height:2px;background:#a18b1e;transform:translateX(-50%)}
.header-menu-toggle>div:first-child{top:calc(50% - 5px)}
.header-menu-toggle>div:last-child{top:calc(50% + 5px)}
.header_nav--drawer{position:fixed;inset:0;z-index:8020;display:block;width:100%;height:100vh;height:100dvh;overflow-x:hidden;overflow-y:auto;padding:96px 10.25vw 44px;background:#fff;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(100%);transition:transform .28s ease,opacity .28s ease,visibility .28s ease}
.header_nav--drawer.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0)}
.header_nav--drawer .header_menu{display:flex;width:100%;height:auto;flex-direction:column;align-items:stretch;gap:0}
.header_nav--drawer .header-menu-item{display:block;width:100%;flex:none}
.header_nav--drawer .header_menu-link{display:flex;width:100%;min-height:46px;height:auto;align-items:center;padding:7px 0;color:#a18b1e;font-size:23px!important;font-weight:600;line-height:1.5;text-align:left;white-space:normal}
.header_nav--drawer .header_menu-dot{display:none}
.header_nav--drawer .header-menu-item--medical{margin-top:24px}
.header_nav--drawer .header-mega-menu{position:static;display:block;width:100%;padding:0;background:transparent;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;transform:none}
.header_nav--drawer .header-mega__mobile-heading{display:block;margin:0 0 8px;padding:0 0 12px;border-bottom:1px solid #a18b1e;color:#a18b1e;font-size:16px;font-weight:600}
.header_nav--drawer .header-mega-group{min-width:0;padding:0 0 10px;border:0;border-bottom:1px solid #666}
.header_nav--drawer .header-mega-toggle{position:relative;display:block;width:100%;margin:0;padding:22px 32px 12px 0;border:0;background:transparent;color:#a18b1e;font-size:16px;line-height:1.5;text-align:left}
.header_nav--drawer .header-mega-toggle:after{position:absolute;top:50%;right:0;color:#444;content:'+';font-family:Arial,sans-serif;font-size:28px;font-weight:300;line-height:1;transform:translateY(-50%)}
.header_nav--drawer .header-mega-group.is-open .header-mega-toggle:after{content:'-'}
.header_nav--drawer .header-mega-links{display:none;flex-direction:column;gap:0;padding:0 0 4px}
.header_nav--drawer .header-mega-group.is-open .header-mega-links{display:flex}
.header_nav--drawer .header-mega-links a{display:block;padding:7px 0;color:#444;font-size:20px;line-height:1.5;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.header_nav--drawer .header-menu-close{position:fixed;top:0;right:0;z-index:8033;display:block;width:60px;height:56px}
.header_nav--drawer .header-menu-close>div{position:absolute;top:27px;left:16px;width:29px;height:2px;background:#a18b1e}
.header_nav--drawer .header-menu-close>div:first-child{transform:rotate(45deg)}
.header_nav--drawer .header-menu-close>div:last-child{transform:rotate(-45deg)}
.header-menu-open{overflow:hidden}
.header-menu-open .header-reservation-actions--bar{display:none}
}

@media (max-width: 767px) { .header-reservation-actions--bar { z-index: 8030; } .header-menu-open .header-reservation-actions--bar { display: flex; } }

/* Tablet and phone: compact bar; navigation opens in the same menu container. */
@media (max-width: 1024px) {
  .header { height: 60px; }
  .header_inner { height: 60px; padding: 0 0 0 12px; align-items: center; }
  .header_inner .header_logo { flex: 0 0 auto; width: clamp(110px, 23vw, 180px); max-width: none; height: 60px; margin-right: auto; padding: 0; }
  .header_inner .header_logo img { width: 100%; max-width: 170px; max-height: 48px; }
  .header_inner .header_nav { flex: 0 0 0; width: 0; min-width: 0; height: 0; }
  .header_inner .header_nav .header_menu { width: 0; height: 0; }
  .header_inner .header_nav .header_menu > .header-menu-item,
  .header_inner .header_nav .header_menu > .header-reservation-actions--desktop { display: none !important; }
  .header_inner .header_nav .header_menu > .header-reservation-actions--bar { position: fixed; top: 0; right: 60px; z-index: 8022; display: flex !important; height: 60px; }
  .header_inner .header_nav .header-reservation-actions--bar .header_menu-link-contact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: clamp(78px, 12vw, 104px); height: 60px; padding: 3px; }
  .header_inner .header_nav .header-reservation-actions--bar .header_contact-icon { width: 19px; height: 19px; }
  .header_inner .header_nav .header-reservation-actions--bar p { font-size: 12px; line-height: 1.2; }
  .header_inner .header_nav .header_menu > .header-menu-toggle { position: fixed; top: 0; right: 0; z-index: 8023; display: flex !important; width: 60px; height: 60px; align-items: center; justify-content: center; background: #fff; cursor: pointer; visibility: visible !important; }
  .header_inner .header_nav .header-menu-toggle > div { transition: transform .2s ease, top .2s ease; }
  .header_inner .header_nav .header-menu-toggle[aria-expanded="true"] > div:first-child { top: 50%; transform: translateX(-50%) rotate(45deg); }
  .header_inner .header_nav .header-menu-toggle[aria-expanded="true"] > div:last-child { top: 50%; transform: translateX(-50%) rotate(-45deg); }
  .header_inner .header_nav.is-open .header_menu { position: fixed; inset: 0; z-index: 8020; display: flex; width: 100%; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 84px 8vw 40px; background: #fff; }
  .header_inner .header_nav.is-open .header_menu > .header-menu-item { display: block !important; width: 100%; flex: none; }
  .header_inner .header_nav.is-open .header_menu > .header-menu-item > .header_menu-link { display: flex !important; justify-content: flex-start; width: 100%; min-height: 46px; height: auto; padding: 8px 0; color: #a18b1e; font-size: clamp(19px, 2.5vw, 24px); text-align: left; white-space: normal; }
  .header_inner .header_nav.is-open .header_menu-dot { display: none; }
  .header_inner .header_nav.is-open .header-menu-item--medical { margin-top: 16px; }
  .header_inner .header_nav.is-open .header-mega-menu { position: static; display: flex; width: 100%; flex-direction: column; padding: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .header_inner .header_nav.is-open .header-mega__mobile-heading { display: block; }
  .header_inner .header_nav.is-open .header-mega-toggle { display: block; width: 100%; padding: 14px 30px 14px 0; border-bottom: 1px solid #777; color: #a18b1e; font-size: 16px; text-align: left; }
  .header_inner .header_nav.is-open .header-mega-links { display: none; flex-direction: column; }
  .header_inner .header_nav.is-open .header-mega-group.is-open .header-mega-links { display: flex; }
  .header_inner .header_nav.is-open .header-mega-links a { white-space: normal; }
  body.header-menu-open { overflow: hidden; }
}

/* SP medical accordion: a compact plus when closed, minus when expanded. */
@media (max-width: 1024px) {
  .header_nav .header-mega-group .header-mega-toggle {
    position: relative;
    padding: 12px 28px 12px 0;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
  }
  .header_nav .header-mega-group .header-mega-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 12px;
    height: 12px;
    background: linear-gradient(#444, #444) center / 12px 2px no-repeat,
                linear-gradient(#444, #444) center / 2px 12px no-repeat;
    transform: translateY(-50%);
  }
  .header_nav .header-mega-group.is-open .header-mega-toggle::after {
    background: linear-gradient(#444, #444) center / 12px 2px no-repeat;
  }
}


/* Header reservation button hover feedback */
.header_menu-link-contact--line,
.header_menu-link-contact--web {
  transition: opacity 0.25s ease;
}

.header_menu-link-contact--line:hover,
.header_menu-link-contact--web:hover,
.header_menu-link-contact--line:focus-visible,
.header_menu-link-contact--web:focus-visible {
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  .header_menu-link-contact--line,
  .header_menu-link-contact--web {
    transition: none;
  }
}


/* Desktop reservation button typography */
@media (min-width: 1025px) {
  .header-reservation-actions--desktop .header_menu-link-contact {
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  }

  .header-reservation-actions--desktop .header_menu-link-contact p {
    font-family: inherit;
    font-size: 15px;
  }
}


/* Mega menu links: underline grows in from the left on hover/focus. */
.header .header-mega-menu .header-mega-links a {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 3px;
  text-decoration: none;
}

.header .header-mega-menu .header-mega-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #A18B1E;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease;
}

@media (hover: hover) {
  .header .header-mega-menu .header-mega-links a:hover::after {
    transform: scaleX(1);
  }
}

.header .header-mega-menu .header-mega-links a:focus-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .header .header-mega-menu .header-mega-links a::after {
    transition: none;
  }
}


/* Keep the desktop mega menu available while moving the pointer into it. */
@media (min-width: 1025px) and (hover: hover) {
  .header_nav:not(.header_nav--drawer) .header-menu-item--medical > .header-mega-menu {
    pointer-events: auto;
    transition: opacity .16s ease .32s, transform .16s ease .32s, visibility 0s linear .48s;
  }
  .header_nav:not(.header_nav--drawer) .header-menu-item--medical:hover > .header-mega-menu,
  .header_nav:not(.header_nav--drawer) .header-menu-item--medical:focus-within > .header-mega-menu {
    transition-delay: 0s;
  }
}

/* The linked medical item is the sole heading in the mobile menu. */
.header .header-mega__mobile-heading {
  display: none !important;
}
