/* =========================================
   1. ベースリセット（ここで<a>のストレスを無くす）
========================================= */
a {
    color: inherit;
    /* 親要素の色を継承する（超重要） */
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    /* ホバー時のフワッとしたアニメーション */
}

a:hover,
a:focus {
    opacity: 0.7;
    /* ホバー時は少し薄くする（お好みで変更してください） */
    text-decoration: none;
}

/* =========================================
   2. ヘッダー
========================================= */
.header_main {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
}

.header_main_wrap {
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header_logo {
    width: 20%;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.4));
}

.header_menu {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    position: relative;
}

.header_menu ul {
    display: flex;
    gap: 20px;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.4));
}

/* ボタンそのものを<a>タグにするか、<a>タグをブロック要素にするのがおすすめ */
.header_menu_btn_text {
    display: flex;
    /* リンクのクリック範囲を広げる */
    padding: 12px 36px;
    border-radius: 50px;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    background-color: #3C91E3;
    color: #ffffff;
    gap: 20px;
}

.btn_text {
    display: flex;
    /* リンクのクリック範囲を広げる */
    padding: 14px 24px;
    border-radius: 50px;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    background-color: #3C91E3;
    color: #ffffff;
    gap: 20px;
}

.news_content_img {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;

    img {
        width: 100%;
    }
}

.text {
    font-size: 16px;
}

.t-center {
    text-align: center;
}

.jocho {
    line-height: 2.4rem;
}

@media screen and (max-width:765px) {
    .text {
        font-size: 14px;
    }
}

.ttl-normal_01 {
    font-size: 32px;
    font-family: "Shippori Mincho", serif;
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.ttl-normal_01::before {
    content: url(/_wp/wp-content/themes/man-gata/assets/img/icon_ttl-normal_01.svg);
    display: flex;
    margin-right: 20px;
}

.ttl-normal_01::after {
    content: url(/_wp/wp-content/themes/man-gata/assets/img/icon_ttl-normal_01.svg);
    display: flex;
    margin-left: 20px;
}

.ttl-normal_02 {
    font-size: 20px;
    display: flex;
    align-items: center;
    font-family: "Shippori Mincho", serif;
}

.ttl-normal_02::before {
    content: "";
    width: 15px;
    height: 3px;
    background-color: #F0A5C4;
    display: flex;
    margin-right: 8px;
}

.ttl-normal_03 {
    font-size: 24px;
    font-family: "Shippori Mincho", serif;
    margin: 0 auto 20px;
    text-align: center;
    padding: 0 20px;
}

.ttl-normal_04 {
    color: #BCBCBC;
    font-size: 18px;
    text-align: center;
    font-family: "Shippori Mincho", serif;
}

.ttl-normal_05 {
    color: #F0A5C4;
    font-size: 18px;
    font-family: "Shippori Mincho", serif;
    text-align: center;
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.ttl-normal_05::before,
.ttl-normal_05::after {
    content: "";
    width: 100px;
    height: 1px;
    background-color: #F0A5C4;
}

.normal_text-content {
    font-size: 16px;
    margin: 32px 0px;
    text-align: center;
}



@media screen and (max-width:765px) {
    .ttl-normal_01 {
        font-size: 18px;
        margin: 0 auto 16px;
    }

    .ttl-normal_02 {
        font-size: 16px;
        margin: 0 auto;
    }

    .ttl-normal_03 {
        font-size: 20px;
        font-family: "Shippori Mincho", serif;
        margin: 0 auto 24px;
        text-align: center;
        padding: 0;
    }

    .normal_text-content {
        font-size: 14px;
        margin: 20px 0px;
    }

    .ttl-normal_04 {
        color: #BCBCBC;
        font-size: 14px;
        text-align: center;
        font-family: "Shippori Mincho", serif;
    }
    .ttl-normal_05{
        font-size: 16px;
    }
    .ttl-normal_05::before,.ttl-normal_05::after{
    content: "";
    width: 60px;
    height: 1px;
    background-color: #F0A5C4;
}
}

/* =========================================
   3. ニュースページ共通
========================================= */


.page_ttl_bg {
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

._gradation-p-b {
    background: linear-gradient(135deg, #ACAAD2, #FFA4C1);
}

._gradation-smink-b {
    background: url(/_wp/wp-content/themes/man-gata/assets/img/smink_bg.png);
}

.page-ttl_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 40px;
}

.page-ttl_jp {
    font-size: 48px;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
}

.page-ttl_en {
    font-size: 23px;
    opacity: 0.48;
    font-family: "Marcellus", serif;
    font-weight: 400;
}

.page-news_content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px 100px;
}

.page-news_content_ttl {
    font-size: 80px;
    color: #E2B8C5;
    font-family: "Marcellus", serif;
    font-weight: 400;
    letter-spacing: 6.2;
    line-height: 1.2;
}

.page-news_content_ttl-jp {
    font-size: 20px;
    color: #E2B8C5;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    margin-bottom: 8px;
}


.page-company_identitty_ttl {
    color: #2A2428;
    opacity: 0.06;
    font-size: 80px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    text-align: center;
}

.philosophy {
    margin-top: 40px;
    margin-bottom: 60px;
}

.ttl_negativemargin {
    margin-top: -6%;
}

@media screen and (max-width:765px) {
    .page-company_identitty_ttl {
        color: #2A2428;
        font-size: 40px;
        line-height: 1.1;
        font-family: "Marcellus", serif;
        font-weight: 400;
        text-align: center;
    }

    .ttl_negativemargin {
        margin-top: 0;
    }

    .philosophy {
        margin-top: 20px;
        margin-bottom: 40px;
    }


}


/* =========================================
   4. ニュースカテゴリーボタン
========================================= */
.page-news_category-list {
    display: flex;
    gap: 8px;
}

/* 通常時のボタン：青背景 × 白文字 */
.page-news_category-item {
    display: inline-block;
    background-color: #3C91E3;
    color: #ffffff;
    /* <--- aタグがinheritするので自動的に白になります */
    border-radius: 64px;
    text-align: center;
    max-width: 120px;
    font-size: 14px;
    padding: 8px 16px;
}

/* アクティブ時のボタン：白背景 × 青文字 */
.page-news_category-item_active {
    display: inline-block;
    background-color: #ffffff;
    color: #3C91E3;
    /* <--- aタグがinheritするので自動的に青になります */
    border-radius: 64px;
    border: 1px solid #3C91E3;
    text-align: center;
    max-width: 120px;
    font-size: 14px;
    padding: 8px 16px;
}

.is-active {
    background-color: #3C91E3;
    color: #ffffff;
}

.news-category-filter {
    margin: 0px auto 36px;
}

.news-list {
    margin-bottom: 60px;
    border-bottom: 1px solid #C3C3C3;
    ;
    color: #272125;
}

.news-item {
    border-top: 1px solid #C3C3C3;
    padding: 36px 0px;
}

.news-meta {
    font-family: "Marcellus", serif;
    font-weight: 400;
    letter-spacing: -0.02;
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-category-labels {
    display: flex;
    gap: 16px;
}

.nav-links {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.news-pagination {
    margin-top: 40px;
}

.news-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* ページ番号（共通） */
.news-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: start;
    font-family: "Marcellus", serif;
    font-size: 18px;
    color: #272125;
    text-decoration: none;
    padding: 4px;
    min-width: 32px;
    height: 40px;
}

/* 現在のページ（下線） */
.news-pagination .page-numbers.current {
    border-bottom: 4px solid #3C91E3;
}

/* 「前へ」「次へ」ボタン */
.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    background-color: #3C91E3;
    color: #ffffff !important;
    /* ベースリセットの継承より優先 */
    border-radius: 50px;
    padding: 0 24px;
    font-size: 18px;
    align-items: center;
    margin: 0 16px;
    /* 数字群との間隔を少し広げる */
    border-bottom: none;
    /* currentクラスとの干渉防止 */
}

/* 「前へ」「次へ」ホバー時 */
.news-pagination .page-numbers.prev:hover,
.news-pagination .page-numbers.next:hover {
    opacity: 0.7;
    color: #ffffff;
}

/* 省略記号 (...) */
.news-pagination .page-numbers.dots {
    min-width: auto;
    padding: 4px;
}

/* WordPressが出力する不要な「ページナビゲーション」というテキストを隠す */
.news-pagination .screen-reader-text {
    display: none;
}

.news-title .blank-icon {
    display: inline-block;
    width: 16px;
    /* アイコンの大きさに合わせて調整してください */
    height: auto;
    margin-left: 4px;
    /* 文字との隙間 */
    vertical-align: middle;
    transform: translateY(-2px);
    /* 縦位置の微調整用 */
}

/* =========================================
   5. パンくずリスト
========================================= */
.breadcrumb {
    font-size: 10px;
    padding: 10px 15px;
    border-radius: 4px;
}

.breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #ffffff;
    /* これを<a>タグが継承します */
    text-align: left;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
}

.breadcrumb a:hover {
    text-decoration: underline;
    /* パンくずだけはホバーで下線を出す */
}

.base_page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px 100px;
}

.p-privacy {
    line-height: 1.6;
    font-size: 14px;
}

.news-single-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    padding: 40px 0px 0px;
}

.news_content_text {
    font-size: 14px;
}

.news-back-btn {
    display: flex;
    justify-content: center;
    min-width: 300px;

    img {
        width: 12px;
    }
}

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

    /* 既存の記述 */
    .page-ttl_jp {
        font-size: 24px;
    }

    .page-ttl_en {
        font-size: 16px;
    }

    .breadcrumb {
        font-size: 0.65em;
    }

    .page-news_content_ttl {
        font-size: 40px;
    }

    .page-news_content_ttl-jp {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* -------------------------------------
       ▼ ここからカテゴリフィルターのスライダー用CSSを追加 ▼
       ------------------------------------- */
    .news-category-filter {
        margin: 0px -20px 20px;
        padding: 0 20px;
    }

    .page-news_category-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scrollbar-width: none;
    }

    .page-news_category-list::-webkit-scrollbar {
        display: none;
    }

    /* -------------------------------------
       ▲ ここまで追加 ▲
       ------------------------------------- */

    /* 既存の記述に flex-shrink: 0; を追加 */
    .page-news_category-item_active {
        font-size: 12px;
        padding: 8px;
        flex-shrink: 0;
        /* ★追加：横幅が狭くなってもボタンが潰れないようにする */
    }

    /* 以下、既存の記述 */
    .news-title {
        font-size: 14px;
    }

    .news-title .blank-icon {
        width: 10px;
        margin-left: 2px;
        margin-top: 2px;
    }

    .news-date {
        font-size: 12px;
    }

    .news-category-labels {
        font-size: 12px
    }

    .news-list {
        margin-bottom: 40px;
    }

    .news-item {
        padding: 20px 0px;
    }

    .news-pagination .nav-links {
        gap: 0px;
    }

    .news-pagination .page-numbers {
        padding: 0;
        font-size: 16px;
        min-width: 20px;
        height: 30px;
    }

    .news-pagination .page-numbers.prev {
        padding: 0 16px;
    }

    .news-pagination .page-numbers.next {
        padding: 0 16px;
    }

    .page-news_content {
        margin-top: 32px;
        padding: 40px 20px 80px;
    }

    .base_page-wrap {
        padding: 40px 20px 80px;
    }

    .news-single-body {
        gap: 24px;
        padding: 16px 0px 0px;
    }
}


.footer_main {
    background-color: #CDBDE2;
    padding: 80px 64px 20px;
}

.footer_main_wrap {
    display: flex;
    justify-content: space-between;
}

.footer_logo {
    img {
        width: 200px;
    }
}

.footer_disc {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 40px 0px 24px;
}

.footer_sns {
    display: flex;
    gap: 24px;
    align-items: center;
}

._f-normal_icon {
    width: 32px;
}

._note {
    width: 72px;
    height: auto;
}

.footer_menu {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    position: relative;
}

.footer_menu ul {
    display: flex;
    gap: 20px;
}

/* ボタンそのものを<a>タグにするか、<a>タグをブロック要素にするのがおすすめ */
.footer_menu_btn_text {
    display: inline-block;
    /* リンクのクリック範囲を広げる */
    padding: 12px 36px;
    border-radius: 50px;
    background-color: #3C91E3;
    color: #ffffff;
}

.footer_awards {
    justify-content: flex-end;
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.copyright_text {
    text-align: right;
    font-size: 12px;
    margin-top: 40px;
    font-family: "Marcellus", serif;
    color: #ffffff;
}

.is_pc {
    display: block;
}

.is_sp {
    display: none;
}

@media screen and (max-width:765px) {
    .footer_main {
        background-color: #CDBDE2;
        padding: 60px 20px 20px;
    }

    .footer_main_wrap {
        flex-direction: column;
        gap: 40px;
    }

    .footer_menu {
        flex-direction: column;
        gap: 16px;
        align-items: baseline;
    }

    .copyright_text {
        text-align: center;
    }

    .footer_awards {
        justify-content: center;
        margin: 40px 0 0px;
    }

    .is_pc {
        display: none;
    }

    .is_sp {
        display: block;
    }

    .footer_disc {
        margin: 24px 0px 32px;
    }

}

.news-single-title {
    font-size: 24px;
    font-family: "Shippori Mincho", serif;
    font-weight: 300;
    padding-bottom: 20px;
    border-bottom: 1px solid #C3C3C3;
}

._bg-pink {
    background-color: #F5F2F7;
}


.catch-wrap {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0px 20px;
}


@media screen and (max-width:765px) {
    .catch-wrap {
        max-width: 1000px;
        margin: 60px auto;
    }
}

.content_main_wrap {
    padding: 80px 20px 100px;
}

.content_main_wrap2 {
    padding: 0px 20px 80px;
}

.content_main_wrap-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.service_box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0px 0px 40px;
}

.service_box a {}

.service_box_item {
    position: relative;
}

.service_box_item_img {
    border-radius: 16px;
}

.service_box_item_text {
    position: absolute;
    display: flex;
    bottom: 12px;
    left: 24px;
    color: #ffffff;
    font-size: 14px;
    align-items: center;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.65));
}

.service_box_item_text::after {
    content: url(/_wp/wp-content/themes/man-gata/assets/img/btn_arrow.svg);
    margin-left: 20px;
    margin-top: 2px;
}

.column_content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.column_content_img_box img {
    border-radius: 16px;
}

.column_content_text_box {
    width: 50%;
}

.normal_text02-content {
    font-size: 16px;
    margin: 16px 0px 20px;
}

.center_img {
    max-width: 680px;
    margin: 0 auto;
}

.smink_catch {
    font-size: 40px;
    font-family: "Shippori Mincho", serif;
    line-height: 3.8rem;
    margin-top: 32px;
    text-align: center;
}

.smink_gap {
    gap: 20px;
    display: grid;
    margin: 20px auto;
}

@media screen and (max-width:765px) {
    .service_box {
        flex-direction: column;
        gap: 8px;
    }

    .column_content {
        flex-direction: column-reverse;
    }

    ._reverse {
        flex-direction: column;
    }

    .column_content_text_box {
        width: 100%;
    }

    .content_text {
        font-size: 12px;
    }

    .content_main_wrap {
        padding: 60px 20px 60px;
    }

    .content_main_wrap2 {
        padding: 0px 20px 60px;
    }

    .normal_text02-content {
        font-size: 12px;
    }

    .service_box_item_img {
        border-radius: 8px;
    }

    .column_content_img_box img {
        border-radius: 8px;
    }

    .smink_catch {
        font-size: 17px;
        font-family: "Shippori Mincho", serif;
        line-height: 2rem;
        margin-top: 32px;
        text-align: center;
    }

}

.page-top_philosophy {
    background: url(/_wp/wp-content/themes/man-gata/assets/img/top_philosophy_bg-pc.jpg);
    background-position: bottom;
    background-repeat: no-repeat;
}

.page-top_philosophy_wrap {
    padding: 80px 20px 120px;
}

.page-top_identitty_ttl {
    color: #2A2428;
    opacity: 0.06;
    font-size: 80px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    text-align: center;
}

.page-top_identitty_ttl_jp {
    font-family: "Shippori Mincho", serif;
    font-size: 32px;
    line-height: 2.1;
    text-align: center;
    margin: 12px auto 48px;
}

.page-top_identitty_text {
    font-size: 16px;
    line-height: 2.6;
    text-align: center;
}

.page-top_content_ttl {
    font-size: 80px;
    color: #E2B8C5;
    font-family: "Marcellus", serif;
    font-weight: 400;
    letter-spacing: 6.2;
    line-height: 1.2;
}

.page-top_content_ttl-jp {
    font-size: 20px;
    color: #E2B8C5;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    margin-bottom: 8px;
}

.page-top_company_content_column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
}

.page-top_company_catch {
    font-size: 32px;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    width: 100%;
}

.news-top-wrap {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.btn_01 {
    display: flex;
    justify-content: center;
    min-width: 300px;
    margin-top: 32px;

    img {
        width: 12px;
    }
}

.btn_r {
    justify-content: flex-end;
}

.btn_l {
    justify-content: flex-start;
}

.reward_section {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.logo_wrap {
    display: flex;
    justify-content: space-around;
    gap: 32px 40px;
    flex-wrap: wrap;
    margin-top: 32px;

    li {
        img {
            height: 40px;
        }
    }
}

.logo_wrap_2 {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;

    li {
        img {
            height: 100px;
        }
    }
}

.is_sp_logo {
    display: none;
}



@media screen and (max-width:765px) {
    .page-top_philosophy {
        background: url(/_wp/wp-content/themes/man-gata/assets/img/top_philosophy_bg-sp.jpg);
        background-position: center;
    }

    .page-top_identitty_ttl {
        color: #2A2428;
        font-size: 40px;
        line-height: 1.1;
        font-family: "Marcellus", serif;
        font-weight: 400;
        text-align: center;
    }

    .page-top_identitty_ttl_jp {
        font-family: "Shippori Mincho", serif;
        font-size: 20px;
        line-height: 2.1;
        text-align: center;
        margin: 12px auto 16px;
    }

    .page-top_identitty_text {
        font-size: 13px;
        line-height: 2.4;
    }

    .page-top_company_content_column {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .page-top_content_ttl {
        font-size: 40px;
    }

    .page-top_content_ttl-jp {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .news-top-wrap {
        flex-direction: column;
    }

    .page-top_company_catch {
        font-size: 24px;
    }

    .btn_r {
        justify-content: center;
    }

    .reward_section {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* ラッパー：SPの時だけはみ出しを隠す */
    .marquee_area {
        width: 100%;
        margin-top: 32px;

        @media (max-width: 767px) {
            overflow: hidden;
        }
    }

    /* トラック：SPの時だけ横幅を広げてアニメーションさせる */
    .marquee_track {
        @media (max-width: 767px) {
            display: flex;
            width: max-content;
            animation: marquee-scroll 25s linear infinite;
        }
    }

    /* 1つ目のリスト（元のリスト） */
    .logo_wrap {
        /* PC用（元々のスタイル） */
        display: flex;
        justify-content: space-around;
        gap: 32px;
        flex-wrap: wrap;
        margin: 0;
        list-style: none;

        li {
            img {
                height: 32px;
                width: auto;
                max-width: none;
            }
        }

        /* SP用（自動再生のための横一列スタイル） */
        @media (max-width: 767px) {
            flex-wrap: nowrap;
            justify-content: flex-start;
            padding-right: 32px;
            /* 繋ぎ目を自然にするため gap と同じ値を設定 */
        }
    }

    /* 2つ目のリスト（ループ用の複製）：PCでは非表示、SPのみ表示 */
    .marquee_track .logo_wrap[aria-hidden="true"] {
        display: none;

        @media (max-width: 767px) {
            display: flex;
        }
    }

    /* 受賞歴はそのまま */
    .logo_wrap_2 {
        flex-direction: column;
        padding: 0px 60px;

        li {
            img {
                width: 100%;
                height: auto;
            }
        }
    }

    /* 左へ流れるアニメーションキーフレーム */
    @keyframes marquee-scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

/* 文字の初期状態 */
.page-top_identitty_ttl .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    /* 少し下からスタート */
    filter: blur(4px);
    /* ぼかしを入れることで情緒的に */
}

/* JavaScriptで .is-active が付与されたらアニメーション開始 */
.page-top_identitty_ttl.is-actived .char {
    /* 1.5秒かけて、ゆっくり滑らかに変化 */
    animation: fadeInEmotion 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* アニメーションの動き */
@keyframes fadeInEmotion {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 文字の初期状態（両方のクラスに適用） */
.page-top_identitty_ttl .char,
.page-top_content_ttl .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
}

/* JavaScriptで .is-active が付与されたらアニメーション開始 */
.page-top_identitty_ttl.is-actived .char,
.page-top_content_ttl.is-actived .char {
    animation: fadeInEmotion 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* アニメーションの動き（変更なし） */
@keyframes fadeInEmotion {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* --- 要素全体フェードイン（追加：トンマナ合わせ） --- */
.fade_in_main {
    opacity: 0;
    transform: translateY(30px);
    /* 下から上への動きを少し大きく */
    filter: blur(8px);
    /* 情緒的なぼかしを少し強く */
    will-change: opacity, transform, filter;
    /* パフォーマンス向上のためのヒント */
    z-index: 20
}

.fade_in_main.is-actived {
    /* 一文字ずつと同じ時間（1.5s）とイージング（cubic-bezier）を使用 */
    animation: fadeInUpEmotion 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 要素全体用のキーフレーム */
@keyframes fadeInUpEmotion {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* =========================================
   ハンバーガーメニュー関連 (PCでは非表示)
========================================= */
.hamburger_btn {
    display: none;
}

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

    /* 1. ハンバーガーボタンのスタイリング */
    .hamburger_btn {
        display: block;
        position: relative;
        z-index: 10000;
        /* メニューより上に配置 */
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.65));
    }


    /* 3本線の設定 */
    .hamburger_btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        /* 線の色（サイトのトーンに合わせて変更してください） */
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger_btn span:nth-of-type(1) {
        top: 0;
    }

    .hamburger_btn span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger_btn span:nth-of-type(3) {
        bottom: 0;
    }

    /* 開いた時（×ボタン）のアニメーション */
    .hamburger_btn.is-open span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        background-color: #ffffff;
        /* メニュー展開時の色 */
    }

    .hamburger_btn.is-open span:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger_btn.is-open span:nth-of-type(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
        background-color: #ffffff;
        /* メニュー展開時の色 */
    }

    /* 2. SP時のメニュー本体（ドロワー）のスタイリング */
    .header_menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        box-sizing: border-box;
        /* ★超重要：paddingを含めて幅・高さを100%に収める */
        background: url(/_wp/wp-content/themes/man-gata/assets/img/top_philosophy_bg-sp.jpg) no-repeat center center;
        background-size: cover;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;

        padding: 80px 32px 60px;

        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9998;
    }

    /* 開いた時のクラス */
    .header_menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* -------------------------------------
       リストの修正（margin, paddingをリセット）
       ------------------------------------- */
    .header_menu ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        /* ★追加：デフォルトの上下余白を消す */
        padding: 0;
        /* ★追加：デフォルトの左余白（ズレの原因）を消す */
        border-top: 1px solid rgba(255, 255, 255, 0.4);
    }

    .header_menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        list-style: none;
        /* ★念のためリストマークを消す */
    }

    .header_menu ul li a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        /* ★追加：念のため */
        padding: 24px 0;
        font-size: 20px;
        text-align: center;
        /* これで完全にど真ん中になります */
    }

    /* -------------------------------------
       CONTACTボタンの修正
       ------------------------------------- */
    .header_menu .header_menu_btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 40px;
    }

    .header_logo {
        width: 30%;
    }
}

._bg-pink_half {
    background: linear-gradient(180deg, #F5F2F7 50%, #ffffff 50%);
}


.company_name_box {
    padding: 40px 20px 60px;
    box-shadow: 0px 0px 12px #c2c2c2;
    border-radius: 16px;
    background-color: #ffffff;
}

.company_name_box_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}



.member {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.member_name {
    font-size: 16px;
    font-family: "Shippori Mincho", serif;
    margin: 16px 0px;
}

.member_text {
    font-size: 12px;
}

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

    .company_name_box_grid {
        grid-template-columns: 1fr;
    }

    .member {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member_name {
        font-size: 14px;
        margin: 8px 0px;
    }

}

.company_info_item {
    display: grid;
    padding: 20px 0px;
    grid-template-columns: 20% 1fr;
    border-bottom: 1px solid #C3C3C3;

}

.company_info_content {
    display: flex;
    gap: 8px;

    img {
        width: 200px;
        height: auto;
    }
}

@media screen and (max-width: 765px) {
    .company_info_item {
        display: grid;
        padding: 16px 0px;
        grid-template-columns: 1fr;
        gap: 8px;
        border-bottom: 1px solid #C3C3C3;
    }

    .company_info_content {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;

        img {
            width: 100%;
        }
    }
}

/* フォーム全体のラッパー */
.custom-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* 各項目の余白 */
.form-row {
    margin-bottom: 30px;
}

/* ラベルとバッジの横並び */
.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* 必須・任意バッジの共通スタイル */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-left: 12px;
    color: #fff;
    font-weight: normal;
    line-height: 1;
}

/* 必須バッジの色 */
.badge.required {
    background-color: #f67295; /* 画像に近いピンク */
}

/* 任意バッジの色 */
.badge.optional {
    background-color: #b3b3b3; /* 画像に近いグレー */
}

/* 入力欄の基本スタイル */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #BBD5ED; /* ご指定の水色枠 */
    border-radius: 6px; /* 角丸 */
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

/* フォーカス時の枠線強調 */
.form-input input[type="text"]:focus,
.form-input input[type="email"]:focus,
.form-input input[type="tel"]:focus,
.form-input select:focus,
.form-input textarea:focus {
    border-color: #8ab6df;
}

/* プルダウン（select）の矢印カスタマイズ */
.form-input select {
    appearance: none;
    -webkit-appearance: none;
    /* 右側に水色の三角形を配置 */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BBD5ED'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    cursor: pointer;
}

/* テキストエリアの高さ調整 */
.form-input textarea {
    resize: vertical;
    min-height: 160px;
}

/* エラーメッセージ（MW WP Formデフォルトクラス） */
.error {
    color: #f67295; /* 画像のエラーテキスト色に近いピンク */
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

/* プライバシーポリシーエリア */
.privacy-row {
    text-align: center;
    margin-top: 50px;
}

.privacy-box {
    display: inline-block;
    background-color: #edf2f7; /* 薄い水色の背景 */
    padding: 20px 40px;
    border-radius: 6px;
}

/* MW WP Formが出力するチェックボックスのラベル調整 */
.privacy-box label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.privacy-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid #BBD5ED;
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit input[type="submit"],
.form-submit input[type="button"] {
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    background-color:#3C91E3 ; /* ボタン色はお好みに合わせて変更してください */
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.form-submit input[type="submit"]:hover,
.form-submit input[type="button"]:hover {
    opacity: 0.8;
}

/* 送信ボタンエリア（複数ボタンの横並び・中央寄せ） */
.form-submit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* フォーム全体のラッパー */
.custom-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* 各項目の余白 */
.form-row {
    margin-bottom: 30px;
}

/* ラベルとバッジの横並び */
.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* バッジスタイル */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-left: 12px;
    color: #fff;
    font-weight: normal;
    line-height: 1;
}

.badge.required {
    background-color: #f67295; /* 必須：ピンク */
}

.badge.optional {
    background-color: #b3b3b3; /* 任意：グレー */
}

/* 入力欄の基本スタイル */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #BBD5ED; /* 指定の水色枠 */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
    border-color: #8ab6df;
}

/* プルダウンの矢印調整 */
.form-input select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BBD5ED'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    cursor: pointer;
}

/* プライバシーポリシーエリア */
.privacy-row {
    text-align: center;
    margin-top: 50px;
}

.privacy-box {
    display: inline-block;
    background-color: #edf2f7;
    padding: 20px 40px;
    border-radius: 6px;
}

.privacy-box .wpcf7-list-item {
    margin: 0;
}

.privacy-box label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.privacy-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* 送信ボタンエリア（既存の .btn_01 に合わせる） */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit input[type="submit"].btn_01.btn_text {
    border: none;
    cursor: pointer;
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Contact Form 7 のデフォルトエラーメッセージの装飾 */
.wpcf7-not-valid-tip {
    color: #f67295;
    font-size: 13px;
    margin-top: 6px;
    font-weight: normal;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}