/* ================================================
 * LINO CLINIC 共通 Header / Footer CSS
 * 本体(lino.clinic)のデザインを再現
 * ================================================ */

/* ----------------------------------------
 * リセット・基本設定
 * ---------------------------------------- */
:root {
    --lino-color-text: #424141;
    --lino-color-accent: #f49cb1;
    --lino-color-footer-bg: #fff8fa;
    --lino-color-white: #ffffff;
    --lino-color-black: #000000;
    --lino-font-main: "游ゴシック", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "Noto Sans Japanese", Meiryo, sans-serif;
    --lino-header-height-pc: 80px;
    --lino-header-height-sp: 60px;
}

/* SWELLデフォルトヘッダー・フッターを非表示 */
.l-header,
.l-fixHeader,
.p-fixBtnWrap,
.l-footer,
.c-mvBtn,
.p-fixSideBtn {
    display: none !important;
}

/* 本体全体 */
#WRAPP {
    font-family: var(--lino-font-main);
    color: var(--lino-color-text);
    line-height: 1.8;
}

/* ----------------------------------------
 * レスポンシブ表示切り替え
 * ---------------------------------------- */
.visible_pc {
    display: block;
}
.visible_sp {
    display: none;
}
@media (max-width: 960px) {
    .visible_pc {
        display: none !important;
    }
    .visible_sp {
        display: block !important;
    }
}

/* ----------------------------------------
 * ヘッダー
 * ---------------------------------------- */
#siteheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--lino-color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* WP管理バーがある場合の調整 */
.admin-bar #siteheader {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar #siteheader {
        top: 46px;
    }
}

.header_main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--lino-header-height-pc);
}

/* ロゴ */
.lino-header__logo {
    flex-shrink: 0;
}
.lino-header__logo a {
    display: block;
}
.lino-header__logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* PC ナビゲーション */
.lino-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.lino-header__nav nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.lino-header__nav nav ul li {
    position: relative;
}
.lino-header__nav nav ul li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--lino-color-black);
    text-decoration: none;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color 0.3s;
}
.lino-header__nav nav ul li a:hover {
    color: var(--lino-color-accent);
}

/* サブナビ（Price等） */
.lino-header__subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lino-color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}
.lino-header__nav-has-child:hover .lino-header__subnav {
    opacity: 1;
    visibility: visible;
}
.lino-header__subnav ul {
    flex-direction: column !important;
    padding: 8px 0;
}
.lino-header__subnav ul li a {
    padding: 8px 20px;
    font-size: 12px;
    white-space: nowrap;
}

/* 電話・予約ボタンエリア */
.lino-header__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lino-header__tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--lino-color-text);
}
.lino-header__tel .tel {
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.lino-header__tel span {
    font-size: 10px;
    color: #888;
}

/* 予約ボタン */
.reserve_box a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}
.reserve_box a:hover {
    opacity: 0.8;
}
.reserve_box.mail a {
    background: var(--lino-color-accent);
    color: var(--lino-color-white);
}
.reserve_box.line a {
    background: #06C755;
    color: var(--lino-color-white);
}

/* ----------------------------------------
 * SP ヘッダー
 * ---------------------------------------- */
@media (max-width: 960px) {
    .header_main {
        height: var(--lino-header-height-sp);
        padding: 0 10px;
    }
    .lino-header__logo img {
        height: 40px;
    }
    .lino-header__sp-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .lino-header__sp-buttons .reserve_box.mail a {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 3px;
    }
}

/* ハンバーガーメニュー */
.lino-header__hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.navi_bt_inner {
    width: 24px;
    height: 18px;
    position: relative;
}
.navi_bt_inner span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lino-color-text);
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.nvline1 { top: 0; }
.nvline2 { top: 50%; transform: translateY(-50%); }
.nvline3 { bottom: 0; }

.lino-hamburger--active .nvline1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.lino-hamburger--active .nvline2 {
    opacity: 0;
}
.lino-hamburger--active .nvline3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* SP ドロワーナビ */
.lino-sp-nav {
    position: fixed;
    top: var(--lino-header-height-sp);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--lino-header-height-sp));
    background: var(--lino-color-white);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.3s;
    z-index: 9998;
}
.admin-bar .lino-sp-nav {
    top: calc(var(--lino-header-height-sp) + 46px);
    height: calc(100vh - var(--lino-header-height-sp) - 46px);
}
.lino-sp-nav--open {
    right: 0;
}
.lino-sp-nav .nav_area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lino-sp-nav .nav_area ul li a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--lino-color-text);
    text-decoration: none;
    font-size: 14px;
}
.lino-sp-nav .nav_area ul li a span {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* SP ナビ内 連絡先 */
.lino-sp-nav__contact {
    padding: 20px;
    border-top: 1px solid #eee;
}
.lino-sp-nav__tel-label {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin: 0 0 4px;
}
.lino-sp-nav__tel-number {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--lino-color-text);
    text-decoration: none;
    margin-bottom: 4px;
}
.lino-sp-nav__tel-hours {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin: 0 0 16px;
}
.lino-sp-nav__buttons {
    display: flex;
    gap: 8px;
}
.lino-sp-nav__btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--lino-color-white);
}
.lino-sp-nav__btn--reserve {
    background: var(--lino-color-accent);
}
.lino-sp-nav__btn--line {
    background: #06C755;
}

/* ----------------------------------------
 * メインコンテンツ余白
 * ---------------------------------------- */
#lino-main {
    margin-top: var(--lino-header-height-pc);
    min-height: 60vh;
}
@media (max-width: 960px) {
    #lino-main {
        margin-top: var(--lino-header-height-sp);
    }
}

/* SWELLのコンテンツ幅を維持 */
#lino-main .l-mainContent,
#lino-main .l-content,
#lino-main .post_content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ----------------------------------------
 * パンくずリスト
 * ---------------------------------------- */
.lino-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 12px;
}
.lino-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.lino-breadcrumb__item {
    display: flex;
    align-items: center;
}
.lino-breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #ccc;
}
.lino-breadcrumb__item a {
    color: var(--lino-color-accent);
    text-decoration: none;
}
.lino-breadcrumb__item a:hover {
    text-decoration: underline;
}
.lino-breadcrumb__item--current span {
    color: var(--lino-color-text);
}

/* ----------------------------------------
 * フッター
 * ---------------------------------------- */
#sitefooter {
    background: var(--lino-color-footer-bg);
    padding: 60px 0 0;
    color: var(--lino-color-text);
    font-size: 13px;
}
#sitefooter .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
#sitefooter .box_wrapp {
    /* 全体レイアウト */
}

/* フッターロゴ */
.lino-footer__logo {
    text-align: center;
    margin-bottom: 40px;
}
.lino-footer__logo img {
    height: 60px;
    width: auto;
}

/* フッターナビ */
.lino-footer__menu .box_inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8d8dc;
}
.lino-footer__menu .nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lino-footer__menu .nav li {
    margin-bottom: 8px;
}
.lino-footer__menu .nav li a {
    color: var(--lino-color-text);
    text-decoration: none;
    font-size: 13px;
    display: block;
    transition: color 0.3s;
}
.lino-footer__menu .nav li a:hover {
    color: var(--lino-color-accent);
}
.lino-footer__menu .nav li a span {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

/* 施術メニュー詳細 */
.treat_detail_wrapp {
    padding-top: 30px;
}
.lino-footer__heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--lino-color-text);
}
.lino-footer__heading span {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}
.lino-footer__subheading {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8d8dc;
    color: var(--lino-color-text);
}
.treat_detail ul.treat {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.treat_detail ul.treat li a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}
.treat_detail ul.treat li a:hover {
    color: var(--lino-color-accent);
}

/* コピーライト */
.lino-footer__copyright {
    text-align: center;
    padding: 24px 0;
    margin-top: 30px;
    border-top: 1px solid #e8d8dc;
    font-size: 11px;
    color: #999;
}
.lino-footer__copyright a {
    color: var(--lino-color-accent);
    text-decoration: none;
    margin-left: 12px;
}

/* SP フッター */
@media (max-width: 960px) {
    #sitefooter {
        padding: 40px 0 80px;
    }
    .lino-footer__menu .box_inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .treat_detail ul.treat {
        gap: 4px 12px;
    }
    .treat_detail ul.treat li a {
        font-size: 11px;
    }
}

/* ----------------------------------------
 * SP固定電話ボタン
 * ---------------------------------------- */
.lino-fixed-tel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--lino-color-accent);
    text-align: center;
    padding: 10px;
    z-index: 9990;
    display: none;
}
.lino-fixed-tel img {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
}
@media (max-width: 960px) {
    .lino-fixed-tel.visible_sp {
        display: block !important;
    }
}

/* ----------------------------------------
 * トップへ戻るボタン
 * ---------------------------------------- */
.lino-pagetop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--lino-color-accent);
    color: var(--lino-color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9989;
}
.lino-pagetop--visible {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 960px) {
    .lino-pagetop {
        bottom: 70px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 9px;
    }
}
