:root {
    --myblack: #595656;
    --mygreen: #69AFB3;
}

.marcellus-regular {
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-style: normal;
}

.alata-regular {
    font-family: "Alata", 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{
    .l-header__logo {
        margin-right: auto;
        position: absolute;
        top: 15px;
        left: 20px;
        width: 150px;
    }
    .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{
        padding: 1.2em .5em;
        border-bottom: 1px solid var(--color_border);
        font-weight: 700;
        font-size: 16px;
        line-height: 160%;
        /* ボックスの高さと同一、または26px */
        letter-spacing: 0.05em;

        color: var(--myblack);
    }

    .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{

.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: 5%;
    padding-right: 5%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.p-mainVisual__slideTitle {
    order: 2;
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.p-mainVisual__slideText {
    order: 1;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    color: #333;
    /*background: linear-gradient(transparent 65%, #bce0f2 65%);*/
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 5px;
}

@media (max-width: 768px) {
    .p-mainVisual__slideTitle {
        font-size: 2rem;
    }

    .p-mainVisual__slideText {
        font-size: 1rem;
    }

    .p-mainVisual__textLayer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
}


/* 親コンテナのスタイル 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 3カード

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


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

/* ボタンを中央に配置するためのコンテナ */
#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: 'Marcellus';
        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: 'Marcellus';
            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 {
    font-family: 'Marcellus';
    font-style: normal;
    font-weight: 400;
    font-size: 60px;
    line-height: 160%;
    /* ボックスの高さと同一、または96px */
    text-align: center;
    color: var(--myblack);
    margin-bottom: unset;
    background-color: unset;
    margin-bottom: 0;
    padding-bottom: 0;

    &::before {
        border-top: unset;
        border-bottom: unset;
    }

    @media screen and (max-width: 600px) {
        font-size: 30px;
        line-height: 160%;
        /* ボックスの高さと同一、または48px */
    }
}
#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 {
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 160%;
    letter-spacing: 0.05em;
    color: var(--mygreen);
    text-align: center;
    @media screen and (max-width: 600px) {
        font-weight: 600;
        font-size: 12px;
    }
}


/* トップページの特定リストをスマホで横スクロールさせる */
@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;
        }

    }

}
