/* ===================================
   W-Wellness カスタムヘッダー
   =================================== */

/* ヘッダーコンテナ */
.l-header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    height: 80px;
    width: 100%;
    background-color: white;
    z-index: 9999 !important;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* WordPress管理バーがある時の調整 */
.admin-bar .l-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .l-header {
        top: 46px !important;
    }
}

/* ロゴ */
.l-header__logo {
    margin: 0;
    line-height: 1;
}

.l-header__logo a {
    display: block;
    line-height: 1;
}

.l-header__logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ナビゲーション */
.l-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.l-header__ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.l-header__ul li {
    margin: 0;
    padding: 0;
    position: relative;
}

.l-header__ul > li > a {
    color: #545454;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.l-header__ul > li > a:hover {
    color: #e91e63;
}

/* サブメニュー */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    margin: 0;
    padding: 0;
}

.sub-menu li a {
    color: #545454;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px 20px;
    transition: background 0.3s ease;
}

.sub-menu li a:hover {
    background: #f5f5f5;
    color: #e91e63;
}

/* お問い合わせボタン（PC） */
.l-header__inquiry {
    display: inline-block;
    padding: 12px 24px;
    background: #e91e63;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.l-header__inquiry:hover {
    background: #c2185b;
    color: #fff !important;
}

/* ハンバーガーメニューボタン */
.l-header__button {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    color: #545454;
    font-weight: 500;
}

/* モバイル用表示/非表示 */
.sp {
    display: none !important;
}

.pc {
    display: inline-block;
}

/* レスポンシブ: タブレット */
@media (max-width: 1280px) {
    .l-header {
        padding: 15px 20px;
    }

    .l-header__ul {
        gap: 20px;
    }

    .l-header__ul > li > a {
        font-size: 14px;
    }
}

/* レスポンシブ: モバイル */
@media (max-width: 768px) {
    .l-header {
        padding: 10px 15px;
        height: 60px;
    }

    .l-header__logo img {
        height: 40px;
    }

    /* PC用ナビを非表示 */
    .l-header__nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }

    .l-header__nav.active {
        right: 0;
    }

    .l-header__ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .l-header__ul > li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .l-header__ul > li > a {
        padding: 16px 0;
        font-size: 15px;
    }

    /* サブメニューをモバイル用に調整 */
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        margin: 0;
        padding: 0;
    }

    .menu-item-has-children.active .sub-menu {
        display: block;
    }

    .sub-menu li a {
        padding: 12px 20px;
    }

    /* ハンバーガーメニューボタンを表示 */
    .l-header__button {
        display: block;
    }

    /* モバイル用表示/非表示 */
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
        width: 100%;
    }

    .l-header__inquiry {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}

/* オーバーレイ */
.l-header-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0,0,0,0.5);
    z-index: 98;
}

.l-header-overlay.active {
    display: block;
}

/* JINRデフォルトヘッダーを非表示 */
#commonHeader {
    display: none !important;
}

/* JINRの情報バーも非表示 */
.a--information-bar,
#information-bar,
.o--information-bar {
    display: none !important;
}

/* メインコンテンツのマージン調整 */
body {
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
}

/* WordPress管理バーがある時のコンテンツ調整 */
.admin-bar body {
    padding-top: 112px !important; /* 80px (header) + 32px (admin bar) */
}

@media screen and (max-width: 782px) {
    .admin-bar body {
        padding-top: 106px !important; /* 60px (header) + 46px (admin bar) */
    }
}

/* ラッパーの余白を削除 */
#wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ===================================
   パン屑リストのリンク色
   =================================== */

#breadCrumb a {
    color: #0066cc;
    text-decoration: none;
}

#breadCrumb a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* パンくずの＞を黒く */
#breadCrumb .a--breadcrumb-parts {
    color: #000;
}

/* ===================================
   吹き出しアイコンを円形に
   =================================== */

/* .sayブロックのアイコンを円形にクロップ */
.say .img-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.say .img-inner img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}
