/* ==========================================
   Cocoon標準ヘッダーを非表示
========================================== */

#header-container,
.header-container,
#header,
.header,
#navi,
.navi,
.mobile-header-menu-buttons,
.mobile-menu-buttons {
    display: none !important;
}


/* ==========================================
   カラー設定
========================================== */

:root {
    --hm-brown: #713521;
    --hm-orange: #f28508;
    --hm-gold: #efa70b;
    --hm-ink: #2f2a27;
    --hm-line: #ece9e5;
    --hm-cream: #f7f4ed;
}


/* ==========================================
   共通
========================================== */

.hm-header,
.hm-header *,
.hm-drawer,
.hm-drawer * {
    box-sizing: border-box;
}


/* ==========================================
   ヘッダー全体
========================================== */

.hm-header {
    position: relative;
    z-index: 10020;

    width: 100%;
    height: 92px;

    background: #fff;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #eee;

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;
}

.hm-header__inner {
    display: flex;
    align-items: stretch;

    width: 100%;
    height: 100%;
}


/* ==========================================
   ロゴ
========================================== */

.hm-header__logo {
    display: flex;
    align-items: center;

    width: 37%;
    min-width: 370px;
    max-width: 690px;

    padding-left: 50px;

    text-decoration: none;
}

.hm-header__logo img {
    display: block;

    width: 350px;
    height: 58px;

    object-fit: contain;
    object-position: left center;
}


/* ==========================================
   メインナビ
========================================== */

.hm-nav {
    flex: 1;
    min-width: 575px;
}

.hm-nav__list {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-nav__item {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}

.hm-nav__item > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 24px;
    color: var(--hm-brown) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hm-nav__item > a:hover {
    color: var(--hm-orange) !important;
}

/* ==========================================
   メガメニュー矢印
========================================== */

.hm-has-mega > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    padding: 15px 22px 0;
}

.hm-has-mega > a::after{
    content:"";

    position:static;

    width:7px;
    height:7px;

    border-right:1px solid currentColor;
    border-bottom:1px solid currentColor;

    transform:rotate(45deg);

    margin-top:2px;
}

.hm-has-mega:hover > a::after{
    transform:rotate(225deg);
}
.hm-sub-toggle {
    display: none;
}


/* ==========================================
   右側アクション
========================================== */

.hm-header__actions {
    display: flex;
    align-items: stretch;

    flex: 0 0 auto;
}

.hm-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 91px;

    padding: 0;

    border: 0;

    text-decoration: none !important;

    cursor: pointer;
}

.hm-action small {
    margin-top: 6px;
    color: inherit;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}


/* お問い合わせ */

.hm-action--contact {
    width: 90px;

    background: var(--hm-gold);

    color: #fff !important;
}


/* MENU */

.hm-action--menu {
    position: relative;
    z-index: 10030;

    width: 92px;

    background: #fff;

    color: #333;

    border-left: 1px solid #eee;
}


/* ==========================================
   お問い合わせアイコン
========================================== */

.hm-mail-icon{
    display:block;
    width:30px;
    height:23px;
    margin-bottom:3px;
    flex-shrink:0;
}

/* ==========================================
   ハンバーガーメニュー
========================================== */

.hm-menu-lines {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 40px;
    height: 28px;
}

.hm-menu-lines i {
    position: absolute;
    left: 0;

    display: block;

    width: 100%;
    height: 2px;

    background: #333;

    transition:
        transform 0.25s,
        opacity 0.2s,
        top 0.25s;
}

.hm-menu-lines i:nth-child(1) {
    top: 1px;
}

.hm-menu-lines i:nth-child(2) {
    top: 13px;
}

.hm-menu-lines i:nth-child(3) {
    top: 25px;
}

.hm-action--menu small {
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 0.14em;
}


/* MENUオープン時 */

.hm-action--menu.is-open .hm-menu-lines i:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.hm-action--menu.is-open .hm-menu-lines i:nth-child(2) {
    opacity: 0;
}

.hm-action--menu.is-open .hm-menu-lines i:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

.hm-action--menu.is-open small {
    opacity: 0;
}


/* ==========================================
   ホバーで展開するメガメニュー
========================================== */

.hm-mega {
    position: absolute;
    top: 91px;
    right: 0;
    left: 0;
    z-index: 9999;

    background: #fff;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #e6e0d9;

    box-shadow: 0 12px 20px rgba(61, 39, 25, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-5px);

    transition:
        opacity 0.18s,
        transform 0.18s,
        visibility 0.18s;
}

.hm-has-mega:hover > .hm-mega,
.hm-has-mega:focus-within > .hm-mega,
.hm-has-mega.is-open > .hm-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
}

.hm-mega__inner {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 35px;

    max-width: 1120px;

    margin: 0 auto;
    padding: 32px 30px 38px;
}

.hm-mega__title {
    margin: 0;

    color: var(--hm-brown);

    border-right: 1px solid #e4ded7;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
}

.hm-mega__title span {
    display: block;

    color: var(--hm-orange);

    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
}

.hm-mega__links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.hm-mega__links--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 0 24px;
}

.hm-mega__links li {
    border-bottom: 1px solid #e9e4dd;
}

.hm-mega__links a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 48px;

    padding: 13px 25px 13px 3px;

    color: #4b403a !important;
    text-decoration: none !important;

    font-size: 13px;
}

.hm-mega__links a::after {
    content: "";

    position: absolute;
    right: 8px;

    width: 7px;
    height: 7px;

    border-top: 1px solid var(--hm-orange);
    border-right: 1px solid var(--hm-orange);

    transform: rotate(45deg);
}

.hm-mega__links a:hover {
    color: var(--hm-orange) !important;
}


/* ==========================================
   MENUクリック時
   フルスクリーンオーバーレイ
========================================== */

.hm-drawer {
    position: fixed;
    top: 92px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10010;

    overflow: auto;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(1px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease;

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;
}

.hm-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hm-drawer__panel {
    width: 100%;
    min-height: 100%;

    background: transparent;

    transform: none;
}

.hm-drawer__body {
    max-width: 1030px;

    margin: 0 auto;
    padding: 110px 30px 90px;
}

.hm-drawer__columns {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;

    gap: 78px;
}


/* ==========================================
   ドロワー見出し
========================================== */

.hm-drawer__section h2 {
    margin: 0 0 26px;

    color: var(--hm-brown);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
}


/* ==========================================
   CLINICメニュー
========================================== */

.hm-drawer__section--clinic nav {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.hm-drawer__section--clinic a,
.hm-drawer__menu-grid a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;

    transition: color 0.15s;
}

.hm-drawer__section--clinic a {
    padding: 10px 0;
}

.hm-drawer__section--clinic a:hover,
.hm-drawer__menu-grid a:hover {
    color: var(--hm-orange) !important;
}


/* ==========================================
   MENU一覧
========================================== */

.hm-drawer__menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    column-gap: 70px;
    row-gap: 0;
}

.hm-drawer__menu-grid a {
    padding: 10px 0;
}


/* メニューオープン中はスクロール禁止 */

body.hm-menu-open {
    overflow: hidden;
}


/* ==========================================
   1380px以下
========================================== */

@media (max-width: 1380px) {

    .hm-header__logo {
        flex: 1;

        width: auto;
        min-width: 370px;
    }

    .hm-nav__item > a {
        padding-right: 27px;
        padding-left: 17px;

        font-size: 13px;
    }

    .hm-has-mega > a::after {
        right: 12px;
    }

    .hm-action--contact {
        width: 84px;
    }

    .hm-action--menu {
        width: 86px;
    }

}


/* ==========================================
   1150px以下
========================================== */

@media (max-width: 1150px) {

    .hm-nav {
        display: none;
    }

    .hm-header {
        height: 76px;
    }

    .hm-header__logo {
        min-width: 0;
    }

    .hm-header__logo img {
        width: 310px;
        max-width: calc(100vw - 100px);
        height: 54px;
    }

    .hm-action {
        height: 75px;
    }

    .hm-action--contact {
        display: none;
    }

    .hm-action--menu {
        width: 76px;
    }

    .hm-drawer {
        top: 76px;
    }

    .hm-drawer__body {
        padding-top: 60px;
    }

    .hm-drawer__columns {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hm-drawer__menu-grid {
        column-gap: 35px;
    }

}


/* ==========================================
   600px以下
========================================== */

@media (max-width: 600px) {

    .hm-header {
        height: 68px;
    }

    .hm-header__logo {
        padding-left: 10px;
    }

    .hm-header__logo img {
        max-height: 30px;
    }

    .hm-action {
        height: 67px;
    }

    .hm-action--menu {
        width: 68px;
    }

    .hm-menu-lines {
        width: 32px;
        height: 24px;
    }

    .hm-menu-lines i:nth-child(1) {
        top: 1px;
    }

    .hm-menu-lines i:nth-child(2) {
        top: 11px;
    }

    .hm-menu-lines i:nth-child(3) {
        top: 21px;
    }

    .hm-action--menu.is-open .hm-menu-lines i:nth-child(1),
    .hm-action--menu.is-open .hm-menu-lines i:nth-child(3) {
        top: 11px;
    }

    .hm-drawer {
        top: 68px;
    }

    .hm-drawer__body {
        padding: 60px 24px 60px;
    }

    .hm-drawer__section h2 {
        font-size: 26px;
    }

    .hm-drawer__columns {
        gap: 38px;
    }

    .hm-drawer__menu-grid {
        grid-template-columns: 1fr;
    }
.hm-action--contact,
.hm-action--menu {
    border-bottom: 1px solid #eee;
}
}