/* ========================================
   CLASSY ヘッダー PC
======================================== */

.classy-new-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.classy-new-header__inner {
    width: 100%;
    max-width: 1440px;
    height: 82px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* ロゴ */
.classy-new-header__logo {
    flex: 0 0 auto;
    margin-right: 35px;
}

.classy-new-header__logo img {
    display: block;
    width: 150px;
    height: auto;
}

/* グローバルメニュー */
.classy-new-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.classy-new-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.classy-new-nav__list > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.classy-new-nav__list > li > a {
    display: block;
    padding: 30px 0;
    color: #333;
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.classy-new-nav__list > li > a:hover {
    color: #b65e72;
    background: none;
}

/* 電話 */
.classy-new-header__tel {
    flex: 0 0 auto;
    margin-left: 25px;
}

.classy-new-header__tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
}

.classy-new-header__tel-number {
    font-size: 15px;
    line-height: 1.25;
}

.classy-new-header__tel-time {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
}

/* LINE予約 */
.classy-new-header__line {
    flex: 0 0 auto;
    margin-left: 16px;
}

.classy-new-header__line a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 42px;
    box-sizing: border-box;
    background: #00ad72;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    text-decoration: none;
}

/* 旧グロナビCSSの影響を打ち消す */
.classy-new-header .classy-new-nav__list {
    width: auto;
}

.classy-new-header .classy-new-nav__list li {
    display: block;
    flex: none;
}

.classy-new-header .classy-new-nav__list li a {
    border-top: 0;
    border-bottom: 0;
}

/* サブメニューがある場合 */
.classy-new-nav__list .sub-menu {
    display: none;
}

/* ========================================
   ヘッダー 仕上げ調整
======================================== */

.classy-new-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #eee;
}

.classy-new-header__inner {
    max-width: 1540px;
    height: 76px;
    padding: 0 32px;
}

/* ロゴ */
.classy-new-header__logo {
    margin-right: 42px;
}

.classy-new-header__logo img {
    width: 165px;
    max-width: none;
}

/* メニュー */
.classy-new-nav__list {
    gap: 30px;
}

/* 旧テーマの選択中メニュー背景を解除 */
.classy-new-header .classy-new-nav__list > li,
.classy-new-header .classy-new-nav__list > li.current-menu-item,
.classy-new-header .classy-new-nav__list > li.current_page_item {
    background: transparent !important;
}

.classy-new-header .classy-new-nav__list > li > a,
.classy-new-header .classy-new-nav__list > li.current-menu-item > a,
.classy-new-header .classy-new-nav__list > li.current_page_item > a {
    background: transparent !important;
    color: #333;
    padding: 28px 0;
    font-size: 13px;
    font-weight: 400;
}

/* 電話 */
.classy-new-header__tel {
    margin-left: 28px;
}

.classy-new-header__tel-number {
    font-size: 15px;
    letter-spacing: .2px;
}

.classy-new-header__tel-time {
    font-size: 9px;
}

/* LINE */
.classy-new-header__line {
    margin-left: 18px;
}

.classy-new-header__line a {
    width: 108px;
    height: 44px;
    background: #00ad72;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   グローバルナビ：現在地表示
======================================== */

/* 現在のページ */
.classy-new-header .classy-new-nav__list > li.current-menu-item > a,
.classy-new-header .classy-new-nav__list > li.current_page_item > a,
.classy-new-header .classy-new-nav__list > li.current-menu-ancestor > a {
    position: relative;
    color: #2f2926 !important;
    font-weight: 500;
}

/* ゴールドのアンダーライン */
.classy-new-header .classy-new-nav__list > li.current-menu-item > a::after,
.classy-new-header .classy-new-nav__list > li.current_page_item > a::after,
.classy-new-header .classy-new-nav__list > li.current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 17px;
    width: 24px;
    height: 1px;
    background: #b89a67;
    transform: translateX(-50%);
}

/* ホバー */
.classy-new-header .classy-new-nav__list > li > a {
    position: relative;
    transition: color .25s ease;
}

.classy-new-header .classy-new-nav__list > li > a:hover {
    color: #a88752;
}

/* ========================================
   CLASSY ヘッダー SP
======================================== */

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

    .classy-sp-header {
        width: 100%;
        background: #fff;
    }

    .classy-sp-header__inner {
        width: 100%;
        height: 64px;
        padding: 0 12px 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        background: #fff;
    }

    /* ロゴ */
    .classy-sp-header__logo {
        flex: 0 1 auto;
    }

    .classy-sp-header__logo a {
        display: block;
    }

    .classy-sp-header__logo img {
        display: block;
        width: 170px;
        max-width: 100%;
        height: auto;
    }

    /* 右側 */
    .classy-sp-header__actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    /* 電話 */
    .classy-sp-header__tel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #333 !important;
        text-decoration: none;
        line-height: 1;
    }

    .classy-sp-header__tel-icon {
        font-size: 21px;
        line-height: 1;
    }

    .classy-sp-header__tel-text {
        margin-top: 4px;
        font-size: 9px;
        letter-spacing: .5px;
    }

    /* ハンバーガー */
    .classy-sp-header #hamburger {
        float: none;
        width: 44px;
        height: 48px;
        margin: 0;
        padding: 5px 5px 12px;
        border: 0;
        background: transparent;
        box-sizing: border-box;
    }

    .classy-sp-header #hamburger .icn {
        width: 100%;
        height: 29px;
    }

    .classy-sp-header #hamburger .icn span.line {
        width: 24px;
        height: 2px;
        margin-left: -12px;
        background: #555;
    }

    .classy-sp-header #hamburger .icn span:nth-of-type(1) {
        top: 4px;
    }

    .classy-sp-header #hamburger .icn span:nth-of-type(2) {
        top: 12px;
    }

    .classy-sp-header #hamburger .icn span:nth-of-type(3) {
        top: 20px;
    }

    .classy-sp-header #hamburger span.menu {
        display: block;
        position: relative;
        top: -1px;
        font-size: 9px;
        line-height: 1;
        letter-spacing: .5px;
        white-space: nowrap;
        text-align: center;
        color: #555;
    }
}

/* ========================================
   SPヘッダー 仕上げ
   固定ヘッダー + MENU開閉対応
======================================== */

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

.classy-sp-header {
    position: fixed !important;
    top: var(--classy-sp-h1-height, 0px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #fff;
    transition: top .15s ease;
}

.classy-sp-header__inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 14px 0 16px;
    box-sizing: border-box;
    background: #fff;
}

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

.classy-sp-header__logo {
    flex: 0 1 auto;
    margin: 0;
}

.classy-sp-header__logo img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
}

/* ========================================
   右側：TEL + アクセス + MENU
======================================== */

.classy-sp-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

/* ========================================
   SPヘッダー
   TEL + アクセス
======================================== */

.classy-sp-header__tel,
.classy-sp-header__access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 48px;
    margin: 0;
    padding: 0;

    box-sizing: border-box;

    color: #555 !important;
    text-decoration: none !important;
}

/* ----------------------------------------
   TEL
---------------------------------------- */

.classy-sp-header__tel {
    width: 38px;
}

.classy-sp-header__tel-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #555;
    transform: none;
}

.classy-sp-header__tel-icon svg {
    display: block;
    width: 27px;
    height: 27px;
    overflow: visible;
}

.classy-sp-header__tel-icon::before {
    display: none;
    content: none;
}

.classy-sp-header__tel-text {
    display: block;
    height: 11px;
    margin: 0;

    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
    letter-spacing: .5px;

    color: #555;
}

/* ----------------------------------------
   アクセス
---------------------------------------- */

.classy-sp-header__access {
    width: 46px;
}

.classy-sp-header__access-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #555;
}

.classy-sp-header__access-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

.classy-sp-header__access-text {
    display: block;
    height: 11px;
    margin: 0;

    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
    letter-spacing: 0;

    white-space: nowrap;
    color: #555;
}

/* ========================================
   MENU
======================================== */

.classy-sp-header #hamburger {
    float: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 48px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
}

/* 三本線を置くエリア */
.classy-sp-header #hamburger .icn {
    position: relative;
    display: block;
    width: 40px;
    height: 22px;
    margin: 0;
    padding: 0;
}

/* 三本線 共通 */
.classy-sp-header #hamburger .icn span.line {
    position: absolute;
    left: 50%;
    display: block;
    width: 24px;
    height: 1.5px;
    margin: 0 0 0 -12px;
    padding: 0;
    background: #555;
    transform-origin: center;
    transition:
        top .25s ease,
        transform .25s ease,
        opacity .2s ease;
}

/* 閉じている状態 */
.classy-sp-header #hamburger .icn span.line:nth-of-type(1) {
    top: 2px;
}

.classy-sp-header #hamburger .icn span.line:nth-of-type(2) {
    top: 9px;
}

.classy-sp-header #hamburger .icn span.line:nth-of-type(3) {
    top: 16px;
}

/* MENU文字 */
.classy-sp-header #hamburger span.menu {
    display: block;
    position: static;
    width: 40px;
    height: 11px;
    margin: 0;
    padding: 0;
    font-size: 9px;
    line-height: 11px;
    font-weight: 400;
    letter-spacing: .5px;
    white-space: nowrap;
    text-align: center;
    color: #555;
}

/* ========================================
   MENUオープン時：三本線 → ×
   親テーマは #hamburger.on で開閉
======================================== */

.classy-sp-header #hamburger.on .icn span.line:nth-of-type(1) {
    top: 9px !important;
    transform: rotate(-45deg) !important;
}

.classy-sp-header #hamburger.on .icn span.line:nth-of-type(2) {
    top: 9px !important;
    opacity: 0 !important;
}

.classy-sp-header #hamburger.on .icn span.line:nth-of-type(3) {
    top: 9px !important;
    transform: rotate(45deg) !important;
}

/* 開いた時もMENU文字の位置・大きさを変えない */
.classy-sp-header #hamburger.on span.menu {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 11px !important;
}

/* ========================================
   SP 下部固定メニュー
   新デザイン案準拠
   WEB予約を除いた2ボタン版
======================================== */

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

    .classy-sp-fixed {
        position: fixed;
        left: 6px;
        right: 6px;
        bottom: 6px;
        z-index: 9998;

        display: flex;
        gap: 6px;

        width: auto;
        height: 54px;

        margin: 0;
        padding: 0;
    }

    /* ========================================
       ボタン共通
    ======================================== */

    .classy-sp-fixed__item {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 1 1 0;
        min-width: 0;
        height: 54px;

        margin: 0;
        padding: 0;

        box-sizing: border-box;
        border-radius: 6px;

        color: #fff !important;
        text-decoration: none !important;
    }

    /* ========================================
       電話予約
    ======================================== */

    .classy-sp-fixed__tel {
        background: #625a50;

        gap: 8px;
        padding: 4px 10px;
    }

    .classy-sp-fixed__tel-icon {
        display: block;

        width: 22px;
        height: 22px;
        flex: 0 0 22px;

        margin: 0;
        padding: 0;

        color: #fff;
    }

    .classy-sp-fixed__tel-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .classy-sp-fixed__tel-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        margin: 0;
        padding: 0;
    }

    /* ========================================
       LINE予約
    ======================================== */

    .classy-sp-fixed__line {
        background: #00ad72;
    }

    /* ========================================
       ボタン名
    ======================================== */

    .classy-sp-fixed__title {
        display: block;

        margin: 0;
        padding: 0;

        color: #fff !important;

        font-size: 15px;
        font-weight: 400;
        line-height: 1.15;
        letter-spacing: .02em;

        white-space: nowrap;
    }

    /* ========================================
       電話受付時間
    ======================================== */

    .classy-sp-fixed__time {
        display: block;

        margin: 2px 0 0;
        padding: 0;

        color: #fff !important;

        font-size: 7px;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: 0;

        white-space: nowrap;
    }

    /* 旧3行構成が残っていても非表示 */
    .classy-sp-fixed__holiday {
        display: none;
    }

    /* ========================================
       固定ボタンで本文最下部を隠さない
    ======================================== */

    body {
        padding-bottom: 66px;
    }
}

/* ========================================
   SP：TOPボタンを下部予約バーの直上へ配置
   親テーマJSのbottom:50pxを維持し、上方への移動を20pxに抑える
======================================== */

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

    #page_top {
        transform: translateY(-20px);
        z-index: 1000;
    }

}

/* ヘッダーの電話アイコンとSP固定LINEアイコンの統一 */
.classy-new-header__tel-number { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.classy-new-header__tel-icon { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; }
.classy-new-header__tel-icon svg { display: block; width: 100%; height: 100%; }
@media screen and (max-width: 767px) {
  .classy-sp-fixed__line { gap: 7px; }
  .classy-sp-fixed__line-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #fff; color: #06c755; font-size: 8px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
}


/* ========================================
   PC右側固定メニュー：LINE予約／TOP
   SP固定予約ボタンは変更しない
======================================== */
@media screen and (min-width: 768px) {
    .classy-pc-side-actions { right: 0; top: 205px; width: 60px; }
    .classy-pc-side-actions .p-fixedMenu__item { margin: 0 0 6px; }
    .classy-pc-side-actions__button {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        box-sizing: border-box; width: 60px; min-height: 88px; padding: 12px 4px;
        border-radius: 5px 0 0 5px; color: #fff; text-decoration: none;
        gap: 7px; transition: opacity .2s ease;
    }
    .classy-pc-side-actions__button:hover { opacity: .85; color: #fff; text-decoration: none; }
    .classy-pc-side-actions__line { background: #00ad72; }
    .classy-pc-side-actions__top { background: #b99a6c; min-height: 76px; }
    .classy-pc-side-actions__line-icon {
        display: flex; align-items: center; justify-content: center;
        width: 31px; height: 31px; border-radius: 50%; background: #fff;
        color: #06c755; font: 800 9px/1 Arial, sans-serif; letter-spacing: -.4px;
    }
    .classy-pc-side-actions__label { color: #fff; font-size: 13px; line-height: 1.3; font-weight: 600; text-align: center; }
    .classy-pc-side-actions__top svg { display: block; width: 25px; height: 25px; color: #fff; }
}
@media screen and (max-width: 767px) {
    .classy-pc-side-actions { display: none !important; }
}

/* ========================================
   【サイト内検索】固定ヘッダー共通・PC・SP
======================================== */
.classy-header-search {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
}
.classy-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 0 0 10px;
    border: 0;
    outline-offset: -2px;
    background: transparent;
    color: #333;
    font-size: 13px;
    box-shadow: none;
    box-sizing: border-box;
}
.classy-header-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    padding: 7px;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
}
.classy-header-search button svg,
.classy-sp-header__search-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}
.classy-header-search--pc {
    flex: 0 1 205px;
    width: 205px;
    margin-left: 16px;
}
@media (min-width: 769px) and (max-width: 1200px) {
    .classy-header-search--pc { flex-basis: 150px; width: 150px; margin-left: 10px; }
}
.classy-sp-header__search-toggle,
.classy-sp-search-panel { display: none; }
@media (max-width: 768px) {
    .classy-sp-header__search-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 48px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #555;
        cursor: pointer;
        font: inherit;
    }
    /* SP検索：TEL・アクセスとアイコンおよびラベルの縦位置を統一 */
    .classy-sp-header__search-toggle svg {
        display: block;
        width: 27px;
        height: 28px;
        flex: 0 0 28px;
    }
    .classy-sp-header__search-toggle span {
        display: block;
        height: 11px;
        margin: 0;
        font-size: 9px;
        font-weight: 400;
        line-height: 11px;
        letter-spacing: .5px;
    }
    .classy-sp-search-panel:not([hidden]) {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 2;
        padding: 10px 14px;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,.06);
    }
    .classy-header-search--sp { width: 100%; }
    .classy-sp-header__actions { gap: 10px; }
}
@media (max-width: 380px) {
    .classy-sp-header__actions { gap: 5px; }
    .classy-sp-header__inner { padding-right: 8px; padding-left: 10px; }
    .classy-sp-header__logo img { max-width: 135px; }
}
