:root {
    --myblack: #595656;
    --mygreen: #EFB788;
}

.shippori-mincho-regular {
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-style: normal;
}

.jost-regular {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/**
*spmenu
 */

.p-spMenu__search {
    padding: 30px 4vw 10vw;
    position: relative;

    button {
        border: unset;
    }

    .c-searchForm__s {
        background-color: #f3f3f3;
        line-height: 2;
        padding: 4px 44px 4px 45px;
        width: 100%;
        border-radius: 45px;
        border: unset;
    }

    .c-searchForm__submit {
        border-radius: var(--swl-radius--4, 0);
        height: 100%;
        overflow: hidden;
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
    }

    .c-searchForm__submit::before {
        color: var(--mygreen);
        font-size: 20px;
        left: 50%;
        position: absolute;
        top: 50%;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        z-index: 1;
    }

    .u-bg-main {
        background-color: unset !important;
        color: #fff !important;
    }
}

.p-spMenu__inner {
    font-family: 'Shippori Mincho', serif;

    .l-header__logo {
        margin-right: auto;
        position: absolute;
        top: 15px;
        left: 20px;
        width: 150px;
    }

    button {
        color: #fff;
    }

    .p-spMenu__closeBtn .c-iconBtn__icon {
        font-size: 30px;
    }

    .c-widget__title.-spmenu {
        display: none;
    }

    .p-spMenu__closeBtn {
        top: 6px;
    }

    .c-submenuToggleBtn::after {
        border: unset;
    }

    .c-listMenu a {
        border-bottom: unset;
    }

    .c-listMenu>li>a {
        display: flex;
        align-items: center;
        padding: 1.2em .5em;
        border-bottom: 1px solid var(--color_border);
        font-weight: 700;
        font-size: 16px;
        line-height: 160%;
        letter-spacing: 0.05em;
        color: #ffffff;
    }

    .c-listMenu>li>a::before {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        background-color: #fff;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .c-listMenu li a {
        border-bottom: 1px solid var(--color_border);
        font-weight: 700;
        font-size: 16px;
        line-height: 160%;
        /* ボックスの高さと同一、または26px */
        letter-spacing: 0.05em;

        color: #ffffff;
    }

    .c-listMenu li ul li a {
        border-bottom: unset;
        padding: 0.65em 1em;
        font-weight: 400;
        font-size: 14px;
        line-height: 160%;
        letter-spacing: 0.05em;
        color: var(--myblack);
    }

    .footer-main-links {
        text-align: center;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        stroke: #fff;
        stroke-width: 2;
        fill: none;
    }

    /* Social Icons */
    .footer-socials {
        display: flex;
        gap: 15px;
    }

    .social-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--myblack);
        border-radius: 50%;
        color: var(--myblack);
        font-size: 18px;
    }

    /* Main Links */
    .footer-main-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        font-weight: 500;
    }

    .footer-branding {
        margin-top: 30px;
    }
}


/*

beauty menu

*/

/*
* MV
*/
#body_wrap.home {

    .is-style-more_btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 23px 50px 23px 57px;
        gap: 13px;
        width: 253px;
        height: 62px;
        background: #545253;
        border-radius: 71px;
        flex: none;
        flex-grow: 0;
        order: 3;
        flex-grow: 0;
        justify-content: center;

        a {

            background: unset;
            box-shadow: unset;
            color: #fff;
            display: block;
            font-size: unset;
            min-width: unset;
            padding: unset;
            position: unset;
            text-decoration: none;
            transition: unset;
            width: unset;

        }
    }

    .p-mainVisual__textLayer {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start !important;
        text-align: left !important;
        text-shadow: none !important;
        padding-left: min(46.5%, 844px) !important;
        padding-right: 0 !important;
        height: 100%;
        width: 1440px !important;
        max-width: 100vw !important;
        margin: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 0 !important;
        transform: translateX(-50%) !important;
    }

    .p-mainVisual__slideTitle {
        order: 1;
        font-family: "Shippori Mincho", serif;
        font-size: 70px;
        font-weight: 500;
        background: linear-gradient(132.89deg, #ee8196 0%, #efb788 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        margin-top: 0;
        line-height: 1.35;
        letter-spacing: 0.04em;

        &::after {
            content: "。";
        }
    }

    .p-mainVisual__slideText {
        order: 2;
        font-family: "Shippori Mincho", serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.6;
        color: #545253;
        letter-spacing: 0.05em;
        margin-top: 15px;
        padding: 0;
    }

    @media (max-width: 768px) {
        .p-mainVisual__slideTitle {
            font-size: 36px !important;
            text-align: center !important;
            margin-bottom: 0;
        }

        .p-mainVisual__slideText {
            font-size: 14px !important;
            text-align: center !important;
            margin-top: 10px !important;
        }

        .p-mainVisual__textLayer {
            padding-left: 0 !important;
            padding-right: 0 !important;
            align-items: center !important;
            justify-content: flex-start !important;
            padding-top: 70px !important;
            text-align: center !important;
            width: 100% !important;
        }
    }
}


/* 親コンテナのスタイル beauty Menu icons*/
#body_wrap.home .icon-menu-container {
    display: flex;
    flex-wrap: wrap;
    /* スマホ表示のために折り返しを許可 */
    justify-content: space-between;
    /* アイコン間のスペースを均等に */
    gap: 1em;
    padding: 0;
    margin: 0;
    list-style: none;

    /* ul要素の場合のデフォルトスタイルをリセット */
    @media screen and (max-width: 600px) {
        gap: 12px;
    }
}

/* 各アイコンアイテムのスタイル beauty Menu icons*/
#body_wrap.home .icon-menu-item {
    text-align: center;
    /* アイコンを中央揃え */
    box-sizing: border-box;
    /* paddingとborderを幅に含める */
    border: 1.5px solid rgba(89, 86, 86, 0.13);
    border-radius: 12px;
    height: 150px;
    width: 136px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;

    a .cap {
        transition: color 0.3s ease;
    }

    a svg path {
        transition: fill 0.3s ease;
    }

    a:hover .cap,
    a:hover svg path {
        color: #69AFB3;
        fill: #69AFB3;
    }

    @media screen and (max-width: 600px) {
        flex-basis: unset;
        height: 92px;
        width: calc((100% - 36px) / 4);
    }
}

/*   beauty Menu icons*/
#body_wrap.home .icon-menu-item a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: inherit;

    @media screen and (max-width: 600px) {
        padding: 4px;
    }

    .cap {
        font-weight: 600;
        font-size: 12px;
        line-height: 130%;
        /* ボックスの高さと同一、または16px */
        text-align: center;
        letter-spacing: 0.05em;
        color: var(--myblack);

        @media screen and (max-width: 600px) {
            font-size: 10px;
        }
    }

    svg {
        @media screen and (max-width: 600px) {
            width: 54px;
            height: 52px;
        }
    }
}

#body_wrap.home .icon-menu-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- PC表示 (幅768px以上) --- */
@media screen and (min-width: 768px) {
    #body_wrap.home .icon-menu-container {
        flex-wrap: nowrap;
        /* PCでは折り返さない */
    }

}

/*
ブログカード画像のホバーエフェクト
*/

/* 画像を囲むコンテナで、はみ出した部分を非表示にする */
#body_wrap.home .p-postList__item .c-postThumb__figure {
    overflow: hidden;
}

/* 画像にアニメーション効果を設定 */
#body_wrap.home .p-postList__item .c-postThumb__img {
    transition: transform 0.4s ease;
}

/* ホバー時に画像を1.1倍に拡大 */
#body_wrap.home .p-postList__item:hover .c-postThumb__img {
    transform: scale(1.1);
}

/* 
blog card post-list
*/

/* 　#カテゴリー　のリンクボタン　黒 */
#body_wrap.home .p-postListWrap.is-style-all-cats.bustia-black {

    .custom-cats-wrapper {
        a {
            border: 1px solid #545253;
            border-radius: 28.5px;
            padding: 7px 10px;
            color: #545253;
            font-size: 12px;
        }
    }
}

#body_wrap.home .p-postListWrap.is-style-all-cats {

    .custom-cats-wrapper {
        a {
            border: 1px solid #EE8196;
            border-radius: 28.5px;
            padding: 7px 10px;
            color: #EE8196;
            font-size: 12px;
        }
    }
}

/*
blog 3カード

*/
#body_wrap.home .p-postListWrap.u-scroll-wrapper {
    .p-postList__item {
        margin-bottom: 0;
    }
}

#body_wrap.home .p-postList .p-postList__title {
    font-family: 'Shippori Mincho';
    font-weight: 600;
    font-size: 18px;
    line-height: 160%;
    /* または29px */
    /* leading-trim and text-edge are draft CSS properties.

    Read more: https://drafts.csswg.org/css-inline-3/#leading-trim
    */
    leading-trim: both;
    text-edge: cap;
    letter-spacing: 0.02em;

    color: #545253;
}



/*
「もっと見る」ボタン
*/

/* ボタンを中央に配置するためのコンテナ */
#body_wrap.home .mionni-more-button-container {
    text-align: center;
    margin-top: 40px;
    /* ボタンの上の余白 */
}

/* 「もっと見る」ボタンのスタイル */
#body_wrap.home .mionni-more-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 241px;
    height: 54px;
    background-color: var(--myblack);
    /* 背景色（任意で変更してください） */
    color: #fff;
    /* 文字色（任意で変更してください） */
    text-decoration: none;
    font-weight: bold;
    border-radius: 27px;
    /* 角を丸くする */
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    border: 1px solid transparent;
    /* ホバー時のレイアウト崩れを防ぐ */
    position: relative;
    /* ::after疑似要素を絶対配置するための基準 */
}

/* ボタンの右矢印アイコン */
#body_wrap.home .mionni-more-button::after {
    content: '';
    display: inline-block;
    width: 16px;
    /* アイコンの幅 */
    height: 10px;
    /* アイコンの高さ */
    background-image: url('images/ico-arrow-btn.png');
    /* 画像ファイルのパス */
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.3s;
    position: absolute;
    /* 絶対配置 */
    right: 20px;
    /* 右から20pxの位置に配置 */
    top: 50%;
    /* 上下中央揃え */
    transform: translateY(-50%);
    /* 上下中央揃えのための調整 */
}

#body_wrap.home .mionni-more-button:hover {
    background-color: #fff;
    color: var(--myblack);
    border: 1px solid var(--myblack);
}

#body_wrap.home .mionni-more-button:hover::after {
    background-image: url('images/ico-arrow-btn-black.png');
    /* ホバー時の黒い矢印アイコン */
}

/*   beauty Menu icons 直後のSpacer */
#body_wrap.home .wp-block-spacer.beauty-menu-spacer {
    @media screen and (max-width: 600px) {
        height: 40px !important;
    }
}

/*


CLINIC

*/

/* H2 clinic  共通グループで定義*/


/*

Beauty report


*/

/*  beauty report container block*/
#body_wrap.home .wp-block-columns.beauty-report {
    box-sizing: border-box;
    background: rgba(105, 175, 179, 0.1);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 45px;
    padding-bottom: 70px;
    justify-content: center;

    @media screen and (max-width: 600px) {
        padding-right: 25px;
        padding-left: 25px;
    }

    .c-postThumb__figure .c-postThumb__img {
        border-radius: 12px;
    }

    .wp-block-column {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/*

Mionni Short

*/
#body_wrap.home .wp-block-columns.mionni-short {
    box-sizing: border-box;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 45px;
    justify-content: center;

    .wp-block-column {
        max-width: 1200px;
        margin: 0 auto;
    }
}


/*

Beauty

*/

#body_wrap.home .wp-block-columns.beauty-card-head {
    gap: 0 !important;

    .wp-block-heading {
        font-family: 'Shippori Mincho';
        font-style: normal;
        font-weight: 400;
        font-size: 40px;
        line-height: 160%;
        color: #111111;
        border-left: unset;

        @media screen and (max-width: 600px) {
            font-size: 20px;
            /* ボックスの高さと同一、または48px */
        }
    }

    .beauty-lead {
        font-size: 16px;
        line-height: 160%;
        /* ボックスの高さと同一、または26px */
        letter-spacing: 0.05em;
        color: var(--mygreen);
    }

    &.sp_only {
        .wp-block-heading {
            font-family: 'Shippori Mincho';
            font-style: normal;
            font-weight: 400;
            font-size: 20px;
            line-height: 160%;
            color: #111111;
            border-left: unset;
            padding-left: 0;

            @media screen and (max-width: 600px) {
                font-size: 20px;
                /* ボックスの高さと同一、または48px */
            }
        }

        .beauty-lead {
            font-size: 10px;
            line-height: 160%;
            /* ボックスの高さと同一、または26px */
            letter-spacing: 0.05em;
            color: var(--mygreen);
        }
    }
}

/*

h2 共通スタイル

*/
#body_wrap.home .wp-block-heading.h-beauty-menu,
#body_wrap.home .wp-block-heading.h-clinic,
#body_wrap.home .wp-block-heading.h-beauty,
#body_wrap.home .wp-block-columns.beauty-report .wp-block-heading,
#body_wrap.home .wp-block-columns.mionni-short .wp-block-heading,
#body_wrap.home .toph2lead-heading {
    font-family: 'Jost', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 50px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
    padding: 0;
    background: linear-gradient(173.688deg, #ee8196 0%, #efb788 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    border: none;

    &::before {
        display: none;
    }

    &::after {
        display: none;
    }

    @media screen and (max-width: 600px) {
        font-size: 30px;
    }
}

#body_wrap.home .wp-block-heading.h-clinic,
#body_wrap.home .wp-block-heading.h-beauty {
    margin-top: 0;
}

/*
  リード文 共通スタイル
*/
#body_wrap.home .h-beauty-menu-lead,
#body_wrap.home .h-clinic-lead,
#body_wrap.home .h-beauty-lead,
#body_wrap.home .beauty-report .h-beautyreport-lead,
#body_wrap.home .wp-block-columns.mionni-short .h-mionni-short-lead,
#body_wrap.home .toph2lead-lead {
    font-family: 'Shippori Mincho', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: #545253;
    text-align: center;

    @media screen and (max-width: 600px) {
        font-size: 12px;
        margin-top: 20px;
    }
}


/* treatment の　見出し */
#body_wrap.home {

    /* 1. SWELL標準のH2装飾（::before）をこのブロック内だけ無効化 */
    .toptreatment-block h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
        content: none !important;
    }

    /* 2. もし::after（下線など）も出ている場合はこれも追加 */
    .toptreatment-block h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::after {
        content: none !important;
    }

    /* 3. SWELL標準のパディングや枠線が自作デザインを邪魔する場合の補正 */
    .toptreatment-block .toptreatment-section-title {
        border: none !important;
        background-color: #545253 !important;
        /* 自作の色を優先 */
        padding: 6px 30px !important;
        /* 自作の余白を優先 */
    }
}



/* トップページの特定リストをスマホで横スクロールさせる */
@media screen and (max-width: 767px) {

    /* SWELLのブロックラッパーが内包コンテンツに合わせて伸長するのを防ぐ */
    #body_wrap.home .swell-block-latest-posts {
        display: block;
    }

    /* JSで付与するスクロール用のラッパークラス */
    #body_wrap.home .p-postListWrap.u-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* iOSでの慣性スクロール */
        /* スクロール領域を画面端まで広げるための調整 */
        padding-left: 15px;
        padding-right: 15px;
        margin-left: -15px;
        margin-right: -15px;
        /* スクロールバーを非表示にする (Firefox) */
        scrollbar-width: none;
    }

    /* 横スクロールさせたいリスト本体 */
    #body_wrap.home .p-postListWrap.u-scroll-wrapper .p-postList.-type-card.-pc-col3.-sp-col1 {
        /* SWELLのflexをgridで上書き */
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        /* 1枚あたりのカード幅（画面幅の80%） */
        margin: 0;
        /* 親テーマのマージンをリセット */
    }

    /* スクロールバーを非表示にする (Chrome, Safari) */
    #body_wrap.home .p-postListWrap.u-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
}


/* swell-block-dl の dt に番号を振る */
.swell-block-dl {
    counter-reset: swell-dt-counter;
    /* カウンターをリセット */
}

.swell-block-dl__dt {
    display: flex;
    /* 番号とテキストを横並びにする */
    align-items: baseline;
    /* テキストのベースラインを揃える */
}

.swell-block-dl__dt::before {
    color: var(--mygreen);
    counter-increment: swell-dt-counter;
    /* カウンターを1増やす */
    content: counter(swell-dt-counter, decimal-leading-zero) ".";
    /* "01." のように表示 */
    margin-right: 0.5em;
    /* 番号とテキストの間の余白 */
    font-weight: bold;
    /* 番号を太字にする（任意） */
}


/*
post width override sidebar -y
 */
#body_wrap.single-post .l-container {
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;

    @media (max-width: 600px) {
        padding-left: 20px;
        padding-right: 20px;
    }
}

#body_wrap.single-post main#main_content {
    width: 750px;
}

#body_wrap.single-post.-sidebar-on #sidebar {

    width: 380px;

}


/* H1：タイトルが入りますタイトルが入りますタイトルが入りますタイトルが入ります */
#body_wrap.single-post {
    h1 {
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 800;
        font-size: 22px;
        line-height: 170%;
        /* または37px */
        letter-spacing: 0.03em;

        color: var(--myblack);

        @media (min-width: 600px) {
            font-size: 32px;
        }

    }

}

/* ========================================================
   「施術から探す(.menu-item-19060)」のメガメニュー化
======================================================== */
@media screen and (min-width: 960px) {

    .c-gnav {
        font-family: "Shippori Mincho", serif;
        font-weight: 400;
        font-style: normal;
    }


}

/* 無料相談ボタン */
.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-19095 a span {
    border: 2px solid;
    padding: 10px 22px;
    border-radius: 21px;
}

.c-gnav>.menu-item.menu-item-19060:hover>.sub-menu {
    height: 370px;
}

.menu-item-19060 .sub-menu .sub-menu {
    left: unset;
    top: unset;
    opacity: 1;
}

.c-gnav .menu-item-19060:hover>.sub-menu .sub-menu {
    opacity: 1;
    visibility: visible;
    z-index: auto;
    max-width: 100%;
    height: 100%;

    li.menu-item a::before {
        left: unset;
        right: .5em;
    }
}

.c-gnav .menu-item-19060 .sub-menu {
    background-color: transparent;
    box-shadow: unset;
}

.c-gnav .menu-item .menu-item a::before {

    left: unset;
    right: unset;
    content: unset;

}


/* 1. メガメニューの大枠（サブメニュー全体）の設定 */
.menu-item-19060>.sub-menu {
    width: 650px !important;
    /* メニュー全体の幅（必要に応じて調整） */
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* 親メニューの中央に配置 */
    display: flex !important;
    /* 横並びにする */
    justify-content: space-between;
    gap: 28px;
    /* 3つのカラム間の隙間 */
    padding: 40px 50px !important;
    /* 枠内の余白(上下 左右) */
    box-sizing: border-box;

    /* 背景色・デザイン */
    background: linear-gradient(135deg, #fffcf9 0%, #f7f0e8 100%) !important;
    /* 暖かみのあるプレミアムなグラデーション */

    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    overflow: hidden !important;
    /* これを追加すると擬似要素も角で切り取られます */
    /* 全体の角丸 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    /* 柔らかい影 */
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* 2. カラム（「豊胸」「縮小・下垂」のまとまり）の設定 */
.menu-item-19060>.sub-menu>.menu-item {
    flex: 1;
    /* 3カラムを均等幅に */
    width: 28%;
    border-bottom: none !important;
    /* SWELLデフォルトの下線を消す */
    padding: 0 !important;
}

/* 3. 見出し部分（豊胸、縮小・下垂など）のスタイル */
.menu-item-19060>.sub-menu>.menu-item>a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    border: 1px solid #d8d1c9;
    /* デザインに合わせた落ち着いた枠線 */
    border-radius: 4px;
    /* 見出しの角丸 */
    padding: 8px 10px !important;
    margin-bottom: 25px;
    /* 下のリストとの間の余白 */
    font-weight: 500;
    color: #545253 !important;
    background-color: transparent !important;
    letter-spacing: 0.15em;
    /* 文字間隔を少し広げる */
    pointer-events: none;
    /* 見出しをクリックできなくする（リンクとして使いたい場合はこの行を削除） */
}

/* 見出し右側のSWELLデフォルト矢印アイコンを消す */
#menu-item-19060>.sub-menu>.menu-item>a::after {
    display: none !important;
}

/* 豊胸・縮小・下垂・乳頭・乳輪 カテゴリラベルのトグルボタン疑似要素を非表示 */
.menu-item-19060>.sub-menu>.menu-item .c-submenuToggleBtn::after,
.menu-item-19060>.sub-menu>.menu-item .c-submenuToggleBtn::before {
    content: unset !important;
    display: none !important;
}

/* 4. 孫メニュー（実際のリンクリスト）の大枠 */
#menu-item-19060>.sub-menu>.menu-item>.sub-menu {
    position: static !important;
    /* SWELLの絶対配置を解除 */
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    /* 常に表示 */
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: auto;
    /* 見出しで無効化したクリックを復活 */
}

/* 5. 孫メニューのリスト項目（下線など） */
.menu-item-19060>.sub-menu>.menu-item>.sub-menu>.menu-item {
    border-bottom: 1.5px solid #d8d1c9 !important;
    /* デザインに合わせた境界線 */
    padding: 0 !important;
}

/* 6. リンクテキストのスタイル */
.menu-item-19060>.sub-menu>.menu-item>.sub-menu>.menu-item>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px !important;
    color: #444 !important;
    font-size: 0.95em;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* ホバー時の挙動 */
.menu-item-19060>.sub-menu>.menu-item>.sub-menu>.menu-item>a:hover {
    padding-left: 8px !important;
    color: #ef8196 !important;
    background: transparent !important;
}


/* 7. 右側のスタイリッシュな矢印アイコン（SVG） */
.menu-item-19060>.sub-menu>.menu-item>.sub-menu>.menu-item>a::after {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545253' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: translate(0) !important;
    pointer-events: none;
}

/* ホバー時に矢印を少し横に動かす */
.menu-item-19060>.sub-menu>.menu-item>.sub-menu>.menu-item>a:hover::after {
    transform: translateX(5px) !important;
}

/* ========================================================
       「悩みから探す(.menu-item-19062)」のメガメニュー化
    ======================================================== */

/* 1. サブメニュー全体（背景・レイアウト） */
.menu-item-19062>.sub-menu {
    width: 462px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 60px;
    /* 左右のカラム間の余白 */
    padding: 40px 60px !important;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fffcf9 0%, #f7f0e8 100%) !important;
    /* 暖かみのあるプレミアムなグラデーション */
    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* 2. リスト項目（下線と余白） */
.menu-item-19062>.sub-menu>.menu-item {
    width: auto !important;
    border-bottom: 1.5px solid #d8d1c9 !important;
    /* 画像に合わせた落ち着いた色の境界線 */
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. リンクテキストのスタイル */
.menu-item-19062>.sub-menu>.menu-item>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px !important;
    /* 項目が押しやすく、見栄えの良い余白 */
    color: #444 !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* ホバー時のアニメーション・色変化 */
.menu-item-19062>.sub-menu>.menu-item>a:hover {
    padding-left: 8px !important;
    /* 少し右に移動させる微細な演出 */
    color: #ef8196 !important;
    /* 見出しにも使われているアクセントカラー */
    background: transparent !important;
}

/* 4. 右側のスタイリッシュな矢印アイコン（SVG） */
/* SWELL基準の transform: scaleX(0) を上書きするため !important が必須 */
/* background-color を透明にすることで矩形の塗りを消去 */
.c-gnav li.menu-item-19062 .sub-menu li>a::after {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545253' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: translate(0) !important;
    pointer-events: none;
}

/* SWELL標準のアイコン（::before）が干渉しないようにリセット */
.c-gnav li.menu-item-19062 .sub-menu li>a::before {
    content: none !important;
    display: none !important;
}

/* ホバー時に矢印を少し横に動かす */
.c-gnav li.menu-item-19062 .sub-menu li>a:hover::after {
    transform: translateX(5px) !important;
}

/* ========================================================
       「クリニック(.menu-item-19063)」「基礎知識(.menu-item-19064)」のメガメニュー化
    ======================================================== */

/* 1. サブメニュー全体（背景・レイアウト） */
.menu-item-19063>.sub-menu,
.menu-item-19064>.sub-menu {
    width: 462px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 60px;
    /* 左右のカラム間の余白 */
    padding: 40px 60px !important;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fffcf9 0%, #f7f0e8 100%) !important;
    /* 暖かみのあるプレミアムなグラデーション */
    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* 2. リスト項目（下線と余白） */
.menu-item-19063>.sub-menu>.menu-item,
.menu-item-19064>.sub-menu>.menu-item {
    width: auto !important;
    border-bottom: 1.5px solid #d8d1c9 !important;
    /* 画像に合わせた落ち着いた色の境界線 */
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. リンクテキストのスタイル */
.menu-item-19063>.sub-menu>.menu-item>a,
.menu-item-19064>.sub-menu>.menu-item>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px !important;
    /* 項目が押しやすく、見栄えの良い余白 */
    color: #444 !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

/* ホバー時のアニメーション・色変化 */
.menu-item-19063>.sub-menu>.menu-item>a:hover,
.menu-item-19064>.sub-menu>.menu-item>a:hover {
    padding-left: 8px !important;
    /* 少し右に移動させる微細な演出 */
    color: #ef8196 !important;
    /* 見出しにも使われているアクセントカラー */
    background: transparent !important;
}

/* 4. 右側のスタイリッシュな矢印アイコン（SVG） */
.c-gnav li.menu-item-19063 .sub-menu li>a::after,
.c-gnav li.menu-item-19064 .sub-menu li>a::after {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545253' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: translate(0) !important;
    pointer-events: none;
}

/* SWELL標準のアイコン（::before）が干渉しないようにリセット */
.c-gnav li.menu-item-19063 .sub-menu li>a::before,
.c-gnav li.menu-item-19064 .sub-menu li>a::before {
    content: none !important;
    display: none !important;
}

/* ホバー時に矢印を少し横に動かす */
.c-gnav li.menu-item-19063 .sub-menu li>a:hover::after,
.c-gnav li.menu-item-19064 .sub-menu li>a:hover::after {
    transform: translateX(5px) !important;
}


/* ========================================================
   グローバルナビゲーション（#gnav）の装飾
   - 文字列後部に下向きアローを追加
   - ホバー時にアローを上に向け、色を変更
======================================================== */
@media screen and (min-width: 960px) {

    /* ナビゲーション全体のテキストスタイル */
    #gnav .c-gnav>li>a {
        color: #545253 !important;
        font-family: "Shippori Mincho", serif !important;
        font-size: 16px !important;
        letter-spacing: 0.05em !important;
        transition: color 0.3s ease !important;
        margin-right: 14px;
    }

    /* ホバー時・カレント表示の色 */
    #gnav .c-gnav>li:hover>a,
    #gnav .c-gnav>li.-current>a {
        color: #ff5475 !important;
    }

    /* 子要素を持つメニューにアローを追加 */
    #gnav .c-gnav>li.menu-item-has-children>a .ttl {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    #gnav>.c-gnav>.menu-item:nth-child(-n+4)>a::after {
        left: unset;
        transform: scaleX(1);
        /* swell override */
        content: '';
        display: block;
        width: 12px;
        height: 6px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' fill='none' stroke='%23545253' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1L6 5L11 1'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: transform 0.3s ease, background-image 0.3s ease !important;
        position: absolute;
        top: 50%;
        opacity: 0.8;
        right: -8px !important;
        background-color: unset;
    }

    /* ホバー時にアローを回転させ、色を変更（上向き） */
    #gnav>.c-gnav>.menu-item:nth-child(-n+4):hover>a::after {
        transform: rotate(180deg);
        /* 上向き矢印（SVG - ピンク） */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' fill='none' stroke='%23ff5475' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1L6 5L11 1'/%3E%3C/svg%3E");
    }
}