/*
Theme Name: tc-clinic v2
Theme URI: https://tc-clinic.jp
Author: 株式会社NewBeat
Author URI: https://newbeat.co.jp/
Description: 東京センタークリニック
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tc-clinic
*/

/* 共通のヘッダースタイル */
body {
    font-family:  "DNP ShueiGoGinStd", "din-2014", sans-serif;
    margin: 0;
}
.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: none;

    .site-header-container {
        /* padding: 30px 90px; */
        padding: 30px 30px;
        margin: 0 auto;
        display: flex;
        gap: 15px;
        /* justify-content: space-between; */
        justify-content: center;
        max-width: 1260px;

        @media (max-width: 1250px) {
            gap: 2vw;
        }

        .site-header-main {
            padding: 25px 29px 23px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 1120px;

            .site-logo a img {
                max-width: 456px;
            }
            .pc-header-logo {
                @media (max-width: 750px) {
                    display: none;
                }
            }
            .sp-header-logo {
                display: none;
                @media (max-width: 750px) {
                    width: 55vw;
                    height: 13.7vw;
                    display: flex;
                    align-items: center;
                    margin-left: 9.3vw; 
                    img {
                        width: 100%;
                        /* margin-top: 3vw; */
                    }
                }
            }
            .site-nav {
                display: flex;
                gap: 22px;
                /* width: 400px; */
                justify-content: space-between;
                padding-left: 20px;

                li {
                    display: inline-block;
                }
                a {
                    text-decoration: none;
                    color: #575153;
                }
                a:hover {
                    color: #A17F51;
                }

                .site-nav-li {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    line-height: 1.8;

                    .site-nav-list-icon {
                        height: 34.22px;
                    }
                }

                /* メニューの親 */
                .has-submenu {
                    position: relative;
                }

                /* サブメニューのデフォルト状態（非表示） */
                .submenu {
                    visibility: hidden; /* 初期状態では見えない */
                    opacity: 0;
                    position: absolute;
                    top: 100%;
                    left: 0;
                    background: #F4F4F4;
                    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
                    list-style: none;
                    padding: 30px 25px;
                    width: 346px;
                    border-radius: 5px;
                    transition: visibility 0.2s, opacity 0.2s ease-in-out;
                    color: #7C7C7C;
                    font-size: 12px;
                }
                
                /* 親要素 (`.has-submenu`) または `.submenu` に `hover` している間は表示 */
                .has-submenu:hover .submenu,
                .submenu:hover {
                    visibility: visible;
                    opacity: 1;
                }

                /* サブメニューのリンク */
                .submenu li {
                    padding: 5px 10px;
                }

                .submenu a {
                    text-decoration: none;
                    color: #7C7C7C;
                    display: block;
                }

                .submenu a:hover {
                    opacity: 0.7;
                }

                @media (max-width: 1250px) {
                    display: none;
                }
            }

            @media (max-width: 750px) {
                /* display: none; */
                padding: 0;
            }   
        }

        .header-mobile-menu-button {
            display: none;
            z-index: 1003;
            /* @media (max-width: 1250px) {
                display: flex;
                align-items: end;

            } */
            @media (max-width: 750px) {
                display: flex;
                align-items: center;
                svg {
                    width: 100%;
                    height: auto;
                }
            }
        }
        .header-research-button {
            height: 106px;
            z-index: 1003;
            @media (max-width: 750px) {
                
                /* height: 14vw; */
                a img {
                    width: 16.6vw;
                    height: 14vw;
                    min-width: 58px;
                    min-height: 49px;
                }
            }

            a:hover {
                opacity: 0.7;
            }
        }

        .header-job-button {
            display: flex;
            justify-content: center;
            height: 25px;
            margin-top: -5px;
            @media (max-width: 750px) {
                display: none;
            }
        }
        .header-job-button:hover {
            opacity: 0.7;
        }

        @media (max-width: 750px) {
            justify-content: end;
            padding: 0;
            /* background-color: transparent; */
            height: 14vw;
            min-height: 49px;
        }

    }

    @media (max-width: 750px) {
        /* background-color: transparent; */
    }
}
.site-header.menu-open {
    z-index: 1002;
}
.site-header.header-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.9); */
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.site-header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    /* background-color: transparent; */
}

.mobile-menu {
    position: fixed;
    top: 0;
    width: 100%;
    right: -100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(0);
    transition: right 0.3s ease-in-out;

    overflow-y: auto; /* 縦スクロールを有効化 */
    scrollbar-width: thin; /* Firefox用 */
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent; /* Firefox用 */
    z-index: 1002;

    a {
        text-decoration: none;
        color: #575153;
    }

    @media (min-width: 750px) {
        display: none;
    }

    /* padding: 0 9.3vw; */

    .mobile-menu-logo-container {
        width: 55vw;
        height: 13.7vw;
        /* min-height: 85px; */
        display: flex; align-items: end;
        img {
            width: 100%;
            
        }
    }
    .mobile-menu-info-container {
        padding-top: 2.13vw;
        font-family: DNP ShueiGoGinStd;
        /* font: normal normal normal 18px/24px DNP ShueiGoGinStd; */
        font-size: clamp(9px, 2.4vw, 18px);
        line-height: 1.33;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
        gap: 1.3vw;
    }
    .mobile-menu-list-container {
        display: flex;
        padding-top: 8vw;
        justify-content: space-between;
        
        
    }
    .mobile-menu-nav-list {
        width: calc(38vw);
        display: flex;
        /* gap: 10px; */
        justify-content: space-between;
        /* font: normal normal normal 28px/28px DNP ShueiGoGinStd; */
        font-size: clamp(14px, 3.7vw, 28px);
        line-height: 1;
        align-items: center;
        text-decoration: none;
        color: #575153;
        font-weight: bold;

        .mobile-menu-nav-list-content {
            display: flex;
            gap: 10px;
            div {
                display: flex;
                align-items: center;
                line-height: 1.3;
            }

            img {
                height: 4.8vw;
            }
        }
    }
    .mobile-nav-bottom {
        margin-top: 5vw;
        display: flex;
        justify-content: center;
        margin-bottom: 6vw;
        font-size: clamp(10px, 3.2vw, 24px);
    }
    .mobile-nav-bottom-container {
        display: flex;
        gap: 2vw;
        .mobile-nav-bottom-bar {
            /* border: 0.25px solid #CECECE;
            height: 100%;
            width: 0px; */

            width: 1px;
            height: 100%;
            background: #CECECE;
        }
    }
    .mobile-nav-list-text {
        font-size: clamp(12px, 3.2vw, 24px);
    }
}
.mobile-menu::-webkit-scrollbar {
    width: 5px; /* スクロールバーの幅 */
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* スクロールバーの色 */
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent; /* 背景を透明に */
}

/* メニュー表示時のスタイル */
.mobile-menu.open {
    right: 0;
}

.close-icon {
    display: none;
    margin-bottom: -20px;
}

/* メニューが開いたときにアイコンを切り替え */
.menu-open .menu-icon {
    display: none;
}
.menu-open .close-icon {
    display: block;
}


/* footer */
footer {
    padding: 85px 90px 30px 90px;
    margin: 0 auto;
    background: #F5F5F5;

    @media (max-width: 800px) {
        /* padding: 90px 40px 30px 40px; */
        padding: 90px 5.3% 30px;
    }

    .site-footer-container {
        display: flex;
        flex-direction: column;
        max-width: 1260px;
        margin: 0 auto;
        .site-footer-logo {
            img {
                max-width: 440px;
                @media (max-width: 800px) {
                    width: 58%;
                    min-width: 200px;
                }
            }
        }

        a {
            text-decoration: none;
            color: #575153;
        }
        a:hover {
            opacity: 0.7;
        }

        .site-footer-main {
            display: flex;
            justify-content: space-between;
            gap: 30px;
            padding: 30px 0;

            @media (max-width: 800px) {
                flex-direction: column;
            }

            .site-footer-nav {
                display: flex;
                justify-content: space-between;
                flex: 1;

                @media (max-width: 800px) {
                    /* display: block; */
                }

                .site-footer-nav-left {
                    display: flex;
                    @media (max-width: 1300px) {
                        flex-direction: column;
                        gap: 5vw;
                    }
                }
                .site-footer-nav-right {
                    display: flex;
                    @media (max-width: 1300px) {
                        flex-direction: column;
                    }
                }

                .site-footer-nav-container {
                    .site-footer-nav-h2 {
                        font-size: 16px;
                        padding: 8px;
                        height: 16px;
                        line-height: 1;
                        display: flex;
                        align-items: center;
                        gap: 6px;
                        width: 130px;
                        justify-content: space-between;
                        font-weight: bold;
                        color: #575153;

                        @media (max-width: 800px) {
                            width: 38vw;
                            font-size: clamp(16px, 3.7vw, 28px);
                        }
                    }
                    .site-footer-nav-list {
                        font-size: 14px;
                        padding: 8px;
                        display: flex;
                        flex-direction: column;
                        width: 130px;
                        gap: 8px;

                        @media (max-width: 800px) {
                            width: 38vw;
                            font-size: clamp(12px, 3.2vw, 24px);
                            a {
                                padding-left: 2.6vw;
                            }
                        }

                        .site-footer-nav-bar {
                            border: 0.5px solid #DEDEDE;
                        }
                    }
                }
            }
            .site-footer-info {
                max-width: 480px;
                .site-footer-info-list {
                    display: flex;
                    gap: 15px;
                    padding: 7px 0;
                    @media (max-width: 800px) {
                        padding: 7px 30px;
                    }
                    .site-footer-info-name {
                        min-width: 70px;

                        @media (max-width: 800px) {
                            min-width: 18%;
                        }
                    }
                }

                @media (max-width: 800px) {
                    max-width: 100%;
                    font-size: clamp(12px, 3.2vw, 24px);
                }
            }
        }
        .footer-bottom {
            .footer-bottom-container {
                display: flex;
                align-items: center;
                gap: 13px;
                margin: 0 auto;
                justify-content: center;

                @media (max-width: 800px) {
                    flex-wrap: wrap;
                    font-size: clamp(12px, 3.2vw, 24px);
                }
            }
            .footer-bottom-bar {
                border: 0.5px solid #CECECE;
                height: 32px;
                width: 0px;
            }
            .footer-bottom-copy {
                font-size: 12px;
                display: flex;
                justify-content: center;
                padding: 10px 0;

                @media (max-width: 800px) {
                    padding: 30px 0;
                }
            }
        }
    }
}

/* トップページ用（スクリーン下部配置） */
.header-bottom {
    position: fixed;
    bottom: 0;
    top: auto;
    box-shadow: none;
}

/* スクロール後に固定 */
.header-fixed {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    /* background: rgba(255, 255, 255, 1); */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

/* TOPページ */
.top-page {
    color: #575153;
    .hero {
        position: relative;
        margin: 30px;
        padding-bottom: 30px;
        height: calc(100vh - 230px);
        width: calc(100vw - 60px);
        /* overflow: hidden; */
        @media (max-width: 750px) {
            width: calc(100vw - 10.6vw);
            margin: 5.3vw 5.3vw 0;
            height: calc(100svh - 21.3vw);
            padding-bottom: 0;
        }
    }

    .header-sp-logo {
        display: none;
        @media (max-width: 750px) {
            display: block;
            height: 16vw;
            width: 55vw;
            display: flex;
            align-items: center;
            margin-left: 9.3vw;
            margin-bottom: 5.3vw;
            transition: all 0.3s ease-in-out;
            img {
                width: 100%;
            }
        }
    }
    .header-sp-logo.fixed {
        position: fixed;
        top: 0vw;
        /* left: 9.3vw; */
        width: 55vw;
        z-index: 1001;
    }
    .header-sp-logo.fixed.menu-open {
        z-index: 1000 !important; /* メニューが開いたとき */
    }
    .top-site-header {
        @media (max-width: 750px) {
            background-color: transparent;
        }
    }
    
    
    .hero-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        @media (max-width: 750px) {
            display: none;
        }
    }
    
    .hero-image-container img {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translate(-50%, -50%);
    }

    .mobile-hero-image-container {
        display: none;
        @media (max-width: 750px) {
            display: block;
        }
		height: calc(100svh - 21.3vw);
		width: 100%;
		overflow: hidden;
		position: relative;

        img {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
/*             height: 100%; */
/* 			height: calc(100vh - 21.3vw); */
			height: auto;
			min-height: calc(100vh - 21.3vw);
            object-fit: cover;
            object-position: top;
            transform: translate(-50%, -50%);
        }
    }

    .hero-book-button {
        position: fixed;
        right: calc(50vw - 630px);
        top: 65vh;
        z-index: 1010;

        @media (max-width: 1320px) {
            right: 30px;
        }

        img {
            width: 120px;
            height: 120px;
        }

        @media (max-width: 750px) {
            right: 8vw;
            top: auto;
			bottom: calc(3vw + env(safe-area-inset-bottom, 0));
/* 			bottom: auto; */
/* 			top: calc(100lvh - 25vw); */
            z-index: 1000;
            position: fixed;

            img {
                width: 20vw;
                height: 20vw;
            }
        }   
    }
    .hero-book-button img:hover {
        filter: brightness(0.96);
        transition: all 0.3s ease;
    }

    .top-hero-title {
        background-color: #FFF;
        position: absolute;
        top: 30vh;
        left: 6.2vw;
        padding: 10px 30px;
        margin: 0 auto;
        /* font-family: "DNP ShueiGoGinStd"; */
        /* font: normal normal normal 41px/59px DNP ShueiGoGinStd; */
        font-size: clamp(36px, 2.8vw, 41px);
        line-height: 1.5;
        @media (max-width: 750px) {
            padding: 2.4vw 3.6vw;
            left: 4vw;
            top: 62.5vh;
            transform: translate(0, -50%);
            font-size: clamp(17px, 4.5vw, 34px);
        }
    }
    .top-hero-title-second {
        background-color: #FFF;
        position: absolute;
        top: 43vh;
        left: 6.2vw;
        padding: 10px 30px;
        margin: 0 auto;
        font-size: clamp(36px, 2.8vw, 41px);
        line-height: 1.5;
        @media (max-width: 750px) {
            padding: 2.4vw 3.6vw;
            left: 4vw;
            top: calc(62.5vh + 13.3vw);
            transform: translate(0, -50%);
            font-size: clamp(17px, 4.5vw, 34px);
        }
    }
	
	.top-hero-banner {
        position: absolute;
        top: 2vh;
        left: 2vh;
        width: 17%;
        max-width: 200px;
        max-height: 200px;
        @media (max-width: 750px) {
            width: 40%;
        }
    }
    .top-hero-banner a {
        display: block;
        width: 100%;
        height: 100%;
    }  
    .top-hero-banner a > div {
        background: white;
        padding: 0.5vh;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .top-hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .top-main {
        padding: 0 70px;
        max-width: 980px;
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        margin-top: 170px;

        .top-main-bar {
            max-width: 980px;
            border: 1px dashed #CECECE;
            margin: 64px 0;
            @media (max-width: 750px) {
                margin: 8vw 0;
            }
            
        }

        @media (max-width: 750px) {
            padding: 0 9.3vw;
            margin-top: 10.6vw;
            .top-main-invisual {
                display: none;
            }

        }
    }

    h2 {
        font-weight: normal;
        margin: 0 0 30px;
        .h2-sub {
            color: #B19467;
            font-size: 18px;
            @media (max-width: 750px) {
                font-size: clamp(10px, 2.6vw, 20px);
            }
        }
        .h2-main {
            font-size: 35px;
            color: #575153;
            @media (max-width: 750px) {
                font-size: clamp(20px, 5vw, 38px);
            }
        }
        @media (max-width: 750px) {
            margin: 0 0 6.6vw;
        }
    }

    h3 {
        font-weight: normal;
        font-size: 20px;
        margin: 0 0 20px;
        @media (max-width: 750px) {
            font-size: clamp(14px, 3.7vw, 28px);
            margin: 0 0 2.6vw;
        }
    }

    .news {
        display: flex;
        justify-content: space-between;

        @media (max-width: 750px) {
            display: block;
        }

        h2 {
            min-width: 155px;
        }

        .news-list {
            width: 680px;
            letter-spacing: 0.6px;
            @media (max-width: 750px) {
                width: 100%;
                font-size: clamp(16px, 3.2vw, 24px);
            }
        }
        .sticky-post-container {
            padding: 25px 35px;
            background: #F4F4F4;
            border: 1px solid #575153;
            position: relative;
            @media (max-width: 750px) {
                padding: 5.3vw;
            }
            .sticky-post {
                .sticky-post-title {
                    font-weight: bold;
                    margin-top: 20px;
                    color: #575153;
                    text-decoration: none;
                }
                .sticky-post-content {
                    line-height: 28px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2; /* 2行まで表示 */
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: normal;
                    color: #575153;
                    text-decoration: none;
                }
                @media (max-width: 750px) {
                    font-size: clamp(12px, 3.2vw, 24px);

                }
            }
        }
        .sticky-post-container:hover {
            opacity: 0.7;
        }

        .posts-container {
            .post-item {
                padding: 30px 20px;
                @media (max-width: 750px) {
                    padding: 5.3vw 0;
                }
                a {
                    text-decoration: none;
                    color: #575153;
                }
                .post-top {
                    display: flex;
                    gap: 10px;
                    @media (max-width: 750px) {
                        flex-direction: column;
                    }
                }
                .post-date {
                    color: #898989;
                    @media (max-width: 750px) {
                        font-size: clamp(12px, 3.2vw, 24px);
                    }
                }
                .post-title {
                    line-height: 1;
                    font-weight: bold;
                    /* font: normal normal normal 16px/24px DNP ShueiGoGinStd; */
                    font-size: 16px;
                    line-height: 1.5;
                    margin-top: 5px;

                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 1; /* 2行まで表示 */
                    overflow: hidden;
                    text-overflow: ellipsis;

                    @media (max-width: 750px) {
                        font-size: clamp(12px, 3.2vw, 24px);
                    }
                    
                }
                .post-category {
                    border: 1px solid #687C92;
                    color: #687C92;
                    padding: 5px 10px;
                    font-size: 13px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 20px;
                    a {
                        color: #687C92;
                    }
                    @media (max-width: 750px) {
                        font-size: clamp(9px, 2.4vw, 18px);
                        height: 4vw;
                    }
                }
                .post-category:hover {
                    background: #B19467;
                    color: #FFF;
                    border-color: #B19467;
                    a {
                        color: #FFF;
                    }
                }
                .post-content {
                    line-height: 28px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2; /* 2行まで表示 */
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: normal;
                }
                @media (max-width: 750px) {
                    font-size: clamp(12px, 3.2vw, 24px);
                }
            }
        }
    }

    .medical-subject {
        h3 {
            /* font: normal normal normal 20px/26px DNP ShueiGoGinStd; */
            font-size: 20px;
            line-height: 1.3;
            @media (max-width: 750px) {
                font-weight: bold;
                font-size: clamp(14px, 3.7vw, 28px);
            }
        }
        .medical-subject-list {
            display: flex;
            gap: 20px;
            /* justify-content: center; */
            /* flex-wrap: wrap; */
            a {
                text-decoration: none;
            }

            @media (max-width: 1050px) {
                flex-wrap: wrap;
            }
            @media (max-width: 750px) {
                flex-direction: column;
                gap: 2.6vw;
            }
        }
        
        .medical-subject-container {
            border: 1px dashed #B19467;
            height: 128px;
            width: 180px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px 24px 22px;
            justify-content: space-between;
            position: relative;

            .medical-subject-img {
                flex: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;

                img {
                    width: 100%;
                }

                @media (max-width: 750px) {
                    flex: initial;
                    /* margin: 2vw 4vw; */
                    width: 18vw;
                    img {
                        object-fit: cover;
                        height: 100%;
                        width: 100%;

                    }

                }
            }

            .naika-img {
                width: 77px;
                img {
                    @media (max-width: 750px) {
                        width: 8.6vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                }
            }
            .hihuka-img {
                width: 100px;
                img {
                    @media (max-width: 750px) {
                        width: 10.4vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                }
            }
            .seishinka-img {
                width: 81px;
                margin-right: 10px;
                img {
                    @media (max-width: 750px) {
                        width: 9vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                    margin: 0;
                }
            }
            .sonota-img {
                width: 64px;
                height: 99px;
                margin-right: 10px;
                margin-top: -15px;
                img {
                    @media (max-width: 750px) {
                        width: 6.6vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                    margin: 0;
                }
            }
            .yobou-img {
                width: 76px;
                img {
                    @media (max-width: 750px) {
                        width: 8.6vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                }
            }
            .syouni-img {
                width: 60px;
                img {
                    @media (max-width: 750px) {
                        width: 6.6vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                }
            }
            .saisei-img {
                width: 76px;
                img {
                    @media (max-width: 750px) {
                        width: 8.5vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                    margin: 0;
                }
            }
            .aging-img {
                width: 84px;
                margin-top: -10px;
                margin-left: 10px;
                img {
                    @media (max-width: 750px) {
                        width: 9.3vw;
                        height: auto;
                    }
                }
                @media (max-width: 750px) {
                    width: 18vw;
                    margin: 0;
                    img {
                        margin-left: 5px;
                    }
                }
            }

            .medical-subject-name {
                color: #B19467;
                /* font: normal normal normal 24px/20px DNP ShueiGoGinStd; */
                font-size: 24px;
                line-height: 0.83;

                @media (max-width: 750px) {
                    font-size: clamp(14px, 3.7vw, 28px);
                }
            }

            
            @media (max-width: 750px) {
                padding: 0;
                flex-direction: row;
                justify-content: start;
                width: 100%;
                height: 16vw;
            }
        }
        .medical-subject-container:hover {
            opacity: 0.7;
        }
        .aging-container {
            padding: 16px 16px 22px;
            width: 196px;
            @media (max-width: 750px) {
                padding: 0;
                width: 100%;
            }
        }
    }

    .medical-hours {
        .medical-hours-container {
            display: flex;
            justify-content: space-between;

            @media (max-width: 750px) {
                display: block;
                font-size: clamp(12px, 3.2vw, 24px);

                img {
                    width: 100%;
                    padding-top: 30px;
                }
            }
        }
    }

    .access {
        .access-text {
            padding: 10px 0;
            display: flex;
            gap: 40px;
            color: #575153;

            @media (max-width: 750px) {
                flex-direction: column;
                gap: 30px;
                font-size: clamp(12px, 3.2vw, 24px);
            }
        }
    }

    .greeting {
        .greeting-container {
            display: flex;
            gap: 40px;
            @media (max-width: 1000px) {
                flex-direction: column;
            }

            .greeting-left {
                justify-content: center;
                .greeting-img {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    max-width: 300px;

                    @media (max-width: 1000px) {
                        justify-content: center;
                    }
                }
                .greeting-buttons {
                    padding-top: 18px;
                    display: flex;
                    flex-direction: column;
                    gap: 18px;
                    align-items: end;
                }

                @media (max-width: 1000px) {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    .greeting-buttons {
                        display: none;
                    }
                }

                
            }
            .greeting-right {
                max-width: 640px;
                @media (max-width: 1000px) {
                    max-width: 100%;
                    font-size: clamp(12px, 3.2vw, 16px);
                }
            }
            .sp-greeting-buttons {
                display: none;
                @media (max-width: 750px) {
                    display: flex;
                    gap: 24px;
                    justify-content: end;
                }
            }
        }
    }

    .link-button {
        background: #575153;
        color: #FFF;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        gap: 24px;
        padding: 18px 20px 15px 30px;
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
            gap: 1.4vw;
            padding: 2vw 2.6vw;
        }
    }
    .link-button:hover {
        opacity: 0.7;
    }
}

.background-gray {
    margin-top: 12px;
    background: #F5F5F5;
    padding: 30px 35px;
    line-height: 28px;
    @media (max-width: 750px) {
        padding: 4vw 4.8vw;
        line-height: 2;

        div {
            font-size: clamp(12px, 3.2vw, 24px);
        }
    }
}

/* フェードインの基本スタイル（初期状態で透明） */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* フェードイン適用時（表示されたとき） */
.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.page-main {
    padding: 0 90px;
    margin: 190px 0 auto;

    @media (max-width: 1440px) {
        padding: 0 30px;
        margin: 190px auto 0;
        max-width: 1260px;
    }

    @media (max-width: 750px) {
        /* margin-top: 140px; */
        margin-top: 18vw;
        margin-top: clamp(50px + 4vw, 18vw, 18vw);
        padding: 0 5.3vw;
    }

    .hero-container {
        width: 100%;
        position: relative;
        img {
            width: 100%;
            height: 215px;
            object-fit: cover;

            @media (max-width: 750px) {
                height: 28.6vw;
            }
        }
        .pc-hero-img {
            @media (max-width: 750px) {
                display: none;
            }
        }
        .sp-hero-img {
            display: none;
            @media (max-width: 750px) {
                display: block;
            }
        }

        .hero-title {
            background-color: #FFF;
            position: absolute;
            top: 30%;
            left: 140px;
            padding: 15px 20px;
            margin: 0 auto;
            /* font: normal normal normal 24px/59px DNP ShueiGoGinStd; */
            font-size: 24px;
            font-weight: 400;
            line-height: 1.5;
            @media (max-width: 750px) {
                padding: 2vw 4vw;
                left: 4vw;
                top: 50%;
                transform: translate(0, -50%);
                font-size: clamp(14px, 3.7vw, 28px);
            }
        }
        @media (max-width: 750px) {
            margin-bottom: 8vw;;
        }
    }

    .breadcrumbs {
        padding: 24px 0;
        display: flex;
        justify-content: end;
        line-height: 1.5;

        .breadcrumbs-underline {
            text-decoration: underline;
            text-decoration-thickness: 1px; /* 線の太さ */
            text-underline-offset: 5px;
        }
        .breadcrumbs-link {
            text-decoration: none;
            color: #575153;
        }

        a:hover {
            opacity: 0.7;
        }

        .breadcrumbs-post-title {
            max-width: 350px;
            white-space: nowrap;         /* 改行を禁止 */
            overflow: hidden;            /* はみ出した部分を非表示 */
            text-overflow: ellipsis;     /* "..." で省略 */
            display: block;
        }

        @media (max-width: 750px) {
            font-size: clamp(12px, 2.13vw, 16px);
            display: none;
        }
    }

    .main-container {
        padding: 0 30px;
        margin: 0 auto;
        max-width: 980px;
        /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
        font-size: 16px;
        line-height: 1.75;

        @media (max-width: 750px) {
            padding: 0 4vw;
        }

        

        .main-bar {
            margin: 40px 0;
            border: 1px dashed #CECECE;
            height: 0px;

            @media (max-width: 750px) {
                margin: 5.3vw 0;
            }
        }

        h2 {
            font-weight: normal;
            .h2-sub {
                color: #B19467;
                /* font: normal normal normal 18px/27px DIN 2014; */
                font-size: 18px;
                line-height: 1.5;
                @media (max-width: 750px) {
                    font-size: clamp(10px, 2.6vw, 20px);
                    line-height: 2;
                }
            }
            .h2-main {
                font-size: 35px;
                color: #575153;
                /* font: normal normal normal 28px/70px DNP ShueiGoGinStd; */
                font-size: 28px;
                line-height: 2.5;
                @media (max-width: 750px) {
                    font-size: clamp(20px, 5vw, 38px);
                    line-height: 2;
                }
            }
            @media (max-width: 750px) {
                font-size: clamp(20px, 3.7vw, 28px);
            }

            .h2-pc {
                display: block;
                @media (max-width: 750px) {
                    display: none;
                }
            }
            .h2-sp {
                display: none;
                @media (max-width: 750px) {
                    display: block;
                    line-height: 1.5;
                }
            }
        }
    
        h3 {
            font-weight: normal;
            font-size: 20px;
            @media (max-width: 750px) {
                font-size: clamp(13px, 3.2vw, 24px);
            }
        }

        p {
            /* font: normal normal normal 16px/38px DNP ShueiGoGinStd; */
            font-size: 16px;
            line-height: 2.375;

            @media (max-width: 750px) {
                font-size: clamp(13px, 3.2vw, 24px);
            }
        }

        .affiliated-hospital-link {
            font-size: 20px;
            @media (max-width: 750px) {
                font-size: clamp(14px, 3.7vw, 28px);
            }

            a {
                text-decoration: none;
                color: #575153;
            }
            a:hover {
                color: #B19467;
            }
        }

        .image-gallery {
            text-align: center;
            max-width: 980px;
            margin: auto;
        }
        
        .main-image img {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            transition: opacity 0.3s ease-in-out;
        }
        
        .thumbnail-container {
            display: flex;
            /* justify-content: center; */
            gap: 4px;
            margin-top: 20px;
            margin-bottom: 60px;
            flex-wrap: wrap;
        }
        
        .thumbnail {
            width: 94px;
            height: 63px;
            object-fit: cover;
            cursor: pointer;
            transition: transform 0.2s;
            @media (max-width: 750px) {
                width: calc((100% - 16px) / 5);
            }

        }
        
        .thumbnail:hover {
            transform: scale(1.05);
        }

        .flow-container {
            padding: 50px 0;
            display: flex;
            gap: 20px;
            width: 100%;

            @media (max-width: 750px) {
                flex-direction: column;
                gap: 50px;
            }

            .flow-img-container {
                min-width: 32.65%;
                display: flex;
                justify-content: center;
                align-items: center;
                @media (max-width: 750px) {
                    max-width: 100%;
                }
            }

            .flow-text {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            h3 {
                /* font: normal normal normal 20px/28px DNP ShueiGoGinStd; */
                font-size: 20px;
                line-height: 1.4;
                margin: 0;
            }
            p {
                /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
                font-size: 16px;
                line-height: 1.4;
                margin: 0;
            }
        }

        .hours-pc {
            @media (max-width: 750px) {
                display: none;
            }
        }
        .hours-sp {
            display: none;
            @media (max-width: 750px) {
                display: block;
            }
        }

        .message-content {
            /* font: normal normal normal 16px/38px DNP ShueiGoGinStd; */
            font-size: 16px;
            line-height: 2.375;
            @media (max-width: 750px) {
                font-size: clamp(12px, 3.2vw, 24px);
                line-height: 2;
            }
        }

        .message-doctor-name {
            @media (max-width: 750px) {
                font-size: clamp(12px, 3.2vw, 24px);
            }
        }

        .card-container {
            display: flex;
            gap: 12px;
            width: 100%;
            padding-top: 36px;

            @media (max-width: 750px) {
                flex-wrap: wrap;
            }

            .card-img-container {
                max-width: 122px;
                img {
                    width: 100%;
                }

                @media (max-width: 750px) {
                    width: calc((100% - 40px) / 4);
                }
            }
        }

        .doctor-container {
            padding-bottom: 20px;
            .doctor-name {
                /* font: normal normal normal 24px/60px DNP ShueiGoGinStd; */
                font-size: 24px;
                line-height: 2.5;
                @media (max-width: 750px) {
                    font-size: clamp(20px, 4.2vw, 32px);
                }
            }
            .doctor-content {
                display: flex;
                gap: 40px;
                @media (max-width: 750px) {
                    flex-direction: column;
                    gap: 6px;
                }
            }
            .doctor-profile-container {
                width: calc(50% - 20px);
                padding-top: 30px;
                @media (max-width: 750px) {
                    width: 100%;
                }
            }
            .doctor-profile-name {
                /* font: normal normal normal 20px/60px DNP ShueiGoGinStd; */
                font-size: 20px;
                line-height: 3;
                @media (max-width: 750px) {
                    font-weight: bold;
                    font-size: clamp(14px, 3.7vw, 28px);
                    line-height: 1;
                }
            }
            .doctor-profile {
                margin-top: 12px;
                background: #F5F5F5;
                padding: 27px 21px;
                /* font: normal normal normal 16px/26px DNP ShueiGoGinStd; */
                font-size: 16px;
                line-height: 1.625;
                @media (max-width: 750px) {
                    font-size: clamp(12px, 3.2vw, 24px);
                    line-height: 2;
                    margin-top: 2.6vw;
                    padding: 5.3vw 4vw; 
                }
            }
        }

        .manager-container {
            display: flex;
            justify-content: space-between;
            padding-top: 75px;
            @media (max-width: 750px) {
                flex-direction: column;
                gap: 7.4vw;
                padding-top: 0;
            }
        }

        .manager {
            /* font: normal normal normal 24px/30px DNP ShueiGoGinStd; */
            font-size: 24px;
            line-height: 1.25;
            min-width: 200px;
            @media (max-width: 750px) {
                display: flex;
                gap: 16px;
                font-size: clamp(20px, 4.2vw, 32px);
            }
        }
        .manager-message {
            max-width: 680px;
            /* font: normal normal normal 16px/26px DNP ShueiGoGinStd; */
            font-size: 16px;
            letter-spacing: 0.6px;
            line-height: 1.625;
            @media (max-width: 750px) {
                font-size: clamp(12px, 3.2vw, 24px);
            }
        }

        .price-text {
            @media (max-width: 750px) {
                font-size: clamp(12px, 3.2vw, 24px);
            }
        }
        

        .map{
            height: 550px;
            filter: grayscale(100%);
            @media (max-width: 800px) {
                height: 350px;
            }
        }
        .map-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            .map-info-list {
                display: flex;
                gap: 15px;
                padding: 7px 0;
                @media (max-width: 750px) {
                    padding: 7px 30px;
                    font-size: clamp(12px, 3.2vw, 24px);
                }
                .map-info-name {
                    min-width: 70px;

                    @media (max-width: 750px) {
                        min-width: 18%;
                    }
                }
            }
        }

        .privacy-container {
            /* font: normal normal normal 16px/38px DNP ShueiGoGinStd; */
            font-size: 16px;
            line-height: 2.375;
            @media (max-width: 750px) {
                font-size: clamp(16px, 3.2vw, 24px);
            }

            h2 {
                padding-top: 45px;
                /* font: normal normal normal 20px/38px DNP ShueiGoGinStd; */
                font-size: 20px;
                line-height: 1.9;
                font-weight: bold;
            }
            h3 {
                padding-top: 45px;
                /* font: normal normal normal 20px/38px DNP ShueiGoGinStd; */
                font-size: 20px;
                line-height: 1.9;
                font-weight: bold;
            }
        }

        .symptoms {
            .symptoms-lists {
                display: flex;
                flex-direction: column;
                gap: 60px;
                @media (max-width: 750px) {
                    gap: 8vw;
                }
            }
            .symptoms-list {
                display: flex;
                gap: 20px;
                flex-wrap: wrap;

                a {
                    text-decoration: none;
                    color: #575153;
                }
    
                @media (max-width: 750px) {
                    flex-direction: column;
                    gap: 2.6vw;
                }
            }
            .symptom-container {
                border: 1px dashed #575153;
                height: 50px;
                width: 180px;
                display: flex;
                align-items: center;
                padding: 24px;
                justify-content: center;
                position: relative;
                /* margin-bottom: 30px; */
    
                .symptom-name {
                    /* font: normal normal normal 24px/30px DNP ShueiGoGinStd; */
                    font-size: 24px;
                    line-height: 1.25;
                    text-align: center;
    
                    @media (max-width: 750px) {
                        font-size: clamp(14px, 3.7vw, 28px);
                        margin-left: 3.6vw;
                    }
                }
    
                @media (max-width: 750px) {
                    height: 12.8vw;
                    width: 100%;
                    padding: 0;
                    flex-direction: row;
                    justify-content: start;

                    
                }
            }
            .symptom-container:hover {
                opacity: 0.7;
            }

            @media (max-width: 750px) {
                h3 {
                    font-size: clamp(16px, 3.7vw, 28px);
                }
            }
            

        }

        .news {
            display: block;
            .sticky-post-container {
                padding: 25px 35px;
                background: #F4F4F4;
                border: 1px solid #575153;
                position: relative;
                @media (max-width: 750px) {
                    padding: 5.3vw;
                }
                .sticky-post {
                    .sticky-post-title {
                        font-weight: bold;
                        margin-top: 20px;
                        color: #575153;
                        text-decoration: none;
                    }
                    .sticky-post-content {
                        line-height: 28px;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2; /* 2行まで表示 */
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: normal;
                        color: #575153;
                        text-decoration: none;
                    }
                    @media (max-width: 750px) {
                        font-size: clamp(12px, 3.2vw, 24px);

                    }
                }
            }
            .sticky-post-container:hover {
                opacity: 0.7;
            }
            .category-list {
                display: flex;
                gap: 20px;
                padding-bottom: 40px;
                flex-wrap: wrap;

                @media (max-width: 750px) {
                    gap: 3.7vw
                }

                .post-category-all {
                    border: 1px solid #575153;
                    a {
                        color: #575153;
                        line-height: 1;
                    }
                }
                .post-category-all:hover {
                    background-color: #575153;
                    a {
                        color: #FFF;
                    }
                }

                .category-list-tag {
                    padding: 5px 10px;
                    font-size: 13px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    /* height: 20px; */
                    border: 1px solid var(--category-border, #575153);
                    color: var(--category-text, #575153);
                    transition: background-color 0.3s ease, color 0.3s ease;

                    @media (max-width: 750px) {
                        font-size: clamp(9px, 2.4vw, 18px);
                        height: 4vw;
                    }
                }
                .category-list-tag a {
                    color: inherit; /* 親の色を引き継ぐ */
                    text-decoration: none;
                    line-height: 1;
                }
                
                /* hover時に background-color を適用 */
                .category-list-tag:hover {
                    background-color: var(--category-bg, #575153);
                    color: white; /* テキスト色を変更（見やすくするため） */
                }
                
                .category-list-tag:hover a {
                    color: white; /* hover時にリンクの色も変更 */
                }

                .category-active {
                    background-color: var(--category-bg, #575153) !important;
                    color: white !important;
                }
                
                .category-active a {
                    color: white !important;
                }
            }
            .post-category {
                border: 1px solid #687C92;
                color: #687C92;
                padding: 5px 10px;
                font-size: 13px;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 20px;

                a {
                    text-decoration: none;
                    color: #687C92;
                }

                @media (max-width: 750px) {
                    font-size: clamp(9px, 2.4vw, 18px);
                    height: 4vw;
                }

                
            }
    
            .news-list {
                width: 100%;
                letter-spacing: 0.6px;
                @media (max-width: 750px) {
                    width: 100%;
                    font-size: clamp(16px, 3.2vw, 24px);
                }
            }
    
            .posts-container {
                .post-item {
                    padding: 30px 20px;
                    @media (max-width: 750px) {
                        padding: 5.3vw 0;
                    }
                    a {
                        text-decoration: none;
                        color: #575153;
                    }
                    .post-top {
                        display: flex;
                        gap: 10px;
                        @media (max-width: 750px) {
                            flex-direction: column;
                        }
                    }
                    .post-date {
                        color: #898989;
                        @media (max-width: 750px) {
                            font-size: clamp(12px, 3.2vw, 24px);
                        }
                    }
                    .post-title {
                        line-height: 1;
                        font-weight: bold;
                        /* font: normal normal normal 16px/24px DNP ShueiGoGinStd; */
                        font-size: 16px;
                        line-height: 1.5;
                        font-weight: bold;
                        margin-top: 5px;

                        @media (max-width: 750px) {
                            font-size: clamp(12px, 3.2vw, 24px);
                        }
                    }
                    .post-category {
                        border: 1px solid #687C92;
                        color: #687C92;
                        padding: 5px 10px;
                        font-size: 13px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        height: 20px;
                        line-height: 1;
                        @media (max-width: 750px) {
                            font-size: clamp(9px, 2.4vw, 18px);
                            height: 4vw;
                        }
                        a {
                            color: #687C92;
                        }
                    }
                    .post-category:hover {
                        background: #B19467;
                        color: #FFF;
                        border-color: #B19467;
                        a {
                            color: #FFF;
                        }
                    }
                    .post-content {
                        line-height: 28px;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 1; /* 2行まで表示 */
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: normal;

                        p {
                            @media (max-width: 750px) {
                                font-size: clamp(12px, 3.2vw, 24px);
                            }
                        }
                    }
                }
            }
            .no-truncate {
                display: block !important; /* -webkit-box の影響をなくす */
                -webkit-box-orient: initial !important;
                -webkit-line-clamp: unset !important;
                overflow: visible !important;
                text-overflow: clip !important;
                white-space: normal !important; /* 必要に応じて改行を許可 */
            }
        }

        .contact-top {
            display: flex;
            justify-content: space-between;

            .contact-top-button-container {
                display: flex;
                align-items: center;
                @media (max-width: 900px) {
                    display: none;
                }
            }

        }

        .nothing {
            h2 {
                font-weight: bold;
            }
            p {
                margin-left: 24px;
                @media (max-width: 750px) {
                    margin-left: 0;
                }
            }
        }
        
    }
}

.article {
    .article-top {
        display: flex;
        align-items: center;
        gap: 10px;
        @media (max-width: 750px) {
            flex-wrap: wrap;
        }
    }
    .post-date {
        color: #575153;
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
        }
    }
    .post-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1; /* 2行まで表示 */
        overflow: hidden;
        text-overflow: ellipsis;
        height: 16px;
        line-height: 1;
        font-weight: bold;
    }
    .post-category {
        border: 1px solid #687C92;
        color: #687C92;
        padding: 5px 10px;
        font-size: 13px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 20px;
        a {
            color: #687C92;
            line-height:1;
        }
        @media (max-width: 750px) {
            height: 4vw;
            font-size: clamp(9px, 2.4vw, 18px);
        }
    }
    .post-category:hover {
        background: #B19467;
        color: #FFF;
        border-color: #B19467;
        a {
            color: #FFF;
        }
    }

    h1 {
        margin: 40px 0;
        /* font: normal normal normal 20px/34px DNP ShueiGoGinStd; */
        font-size: 20px;
        line-height: 1.7;
        font-weight: bold;
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
            margin: 5.3vw 0;
            line-height: 1.6;
        }
    }

    p {
        @media (max-width: 750px) {
            font-size: clamp(16px, 3.2vw, 24px);
        }
    }
}

.qa-container {
    margin: auto;
    /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
    font-size: 16px;
    line-height: 1.75;
    @media (max-width: 750px) {
        font-size: clamp(12px, 3.2vw, 24px);
    }
}

.qa-item {
    margin: 20px 0;
    padding-bottom: 10px;
    padding: 0 40px;
    
    @media (max-width: 750px) {
        padding: 0 4vw;;
    }
}

.qa-question {
    border: none;
    padding: 16px 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1.2em;
    transition: 0.3s;
    background-color: #FFF;

    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    @media (max-width: 750px) {
        gap: 5.3vw;
    }

}


.qa-button {
    width: 23px;
    height: 23px;
    position: absolute;
    right: 40px;
    margin-top: 3px;
    img {
        width: 100%;
        height: auto;
    }

    @media (max-width: 750px) {
        right: 0;
    }
}

.qa-number {
    color:#575153;
    display: flex;
    font-size: 20px;
    font-family: "DNP ShueiGoGinStd", "din-2014", sans-serif;
    
}
.qa-question-content {
    color:#575153;
    /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
    font-family: "DNP ShueiGoGinStd", "din-2014", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    @media (max-width: 750px) {
        /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
        font-size: clamp(12px, 3.2vw, 24px);
        margin-right: 5vw;
    }
}

.qa-answer {
    display: none;
    padding: 10px;
    gap: 40px;
    margin-right: 90px;
    @media (max-width: 750px) {
        gap: 5.3vw;
        margin-right: 5vw;
    }
}

.back-to-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFF;
    border: none;
    /* font: normal normal normal 20px/18px DNP ShueiGoGinStd; */
    font-size: 20px;
    line-height: 18px;
    padding: 0;
}

.recruit-container {
    .recruit-text-top {
        /* font: normal normal normal 26px/44px DNP ShueiGoGinStd; */
        font-size: 26px;
        line-height: 1.7;
        font-weight: 400;
        @media (max-width: 750px) {
            font-size: clamp(16px, 4.2vw, 32px);
            line-height: 1.7;
        }
    }
    .recruit-text-bottom {
        /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
        font-size: 16px;
        line-height: 1.75;
        padding-top: 48px;
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
            line-height: 1.7;
        }
    }
}

.recruit-title {
    border: none;
    padding: 16px 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 1.2em;
    transition: 0.3s;
    background-color: #FFF;

    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    @media (max-width: 750px) {
        gap: 5.3vw;
    }

}
.recruit-button {
    width: 23px;
    height: 23px;
    position: absolute;
    right: 40px;
    margin-top: 3px;
    img {
        width: 100%;
        height: auto;
    }

    @media (max-width: 750px) {
        right: 0;
    }
}

.recruit-list {
    padding-top: 100px;
    @media (max-width: 750px) {
        padding-top: 13vw;
    }
}

.job-english-name {
    color:#B19467;
    /* font: normal normal normal 18px/27px DIN ShueiGoGinStd; */
    font-size: 18px;
    line-height: 1.5;
    @media (max-width: 750px) {
        font-size: clamp(10px, 2.6vw, 20px);
    }
}
.job-name {
    margin-top: 13px;
    color:#575153;
    /* font: normal normal normal 28px/44px DNP ShueiGoGinStd; */
    font-size: 28px;
    line-height: 1.57;
    @media (max-width: 750px) {
        font-size: clamp(20px, 5vw, 38px);
        line-height: 1;
        margin-top: 1.3vw;
    }
}

.back-to-top:hover {
    opacity: 0.7;
}

/* contact-form */
.contact-form-container {
    width: 100%;
    max-width: 980px;
    p {
        margin: 0;
    }
    @media (max-width: 750px) {
    }
}
.contact-container {
    display: flex;
    height: 48px;
    margin-bottom: 40px;
    width: 100%;

    @media (max-width: 750px) {
        flex-direction: column;
        height: 110px;
    }
}
.contact-label {
    min-width: 280px;
    height: 48px;
    /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
    font-size: 16px;
    line-height: 1.75;
    display: flex;
    align-items: center;
    .contact-necessary {
        border: 1px solid #B5A49B;
        color: #B5A49B;
        height: 22px;
        margin-left: 16px;
        padding: 0 15px;
        text-align: center;
        /* font: normal normal normal 13px/22px DNP ShueiGoGinStd; */
        font-size: 13px;
        line-height: 1.7;
    }
}
.contact-content {
    flex: 1;
    span {
        width: 100%!important;
        input {
            width: 100%;
            height: 44px;
            padding: 0 22px;
            border: 0.5px solid #CECECE;
            /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
            font-size: 16px;
            line-height: 1.75;
            color: #575153;
            box-sizing: border-box;
        }
        input::placeholder {
            color: #CECECE;
        }
        textarea {
            /* width: 654px; */
            width: 100%;
            height: 300px;
            border: 0.5px solid #CECECE;
            padding: 17px 22px;
            /* font: normal normal normal 16px/28px DNP ShueiGoGinStd; */
            font-size: 16px;
            line-height: 1.75;
            color: #575153;
            box-sizing: border-box;
        }
    }
}
.wpcf7-list-item {
    input {
        width: auto;
    }
}
.form-acceptance {
    display: flex;
    justify-content: center;
    p {
        margin: 0;
    }
    margin: 50px 0;
}
.form-submit {
    display: flex;
    justify-content: center;

    p {
        margin: 0;
    }

    .wpcf7-submit {
        background: #575153 0% 0% no-repeat padding-box;
        color: #EFF4FA;
        border: none;
        width: 100%;
        height: 45px;
        /* font: normal normal normal 16px/41px DNP ShueiGoGinStd; */
        font-size: 16px;
        line-height: 2.5;
    }
}
/* エラーメッセージのスタイル */
.contact-label .wpcf7-not-valid-tip {
    display: block;
    font-size: 14px;
    color: #d9534f; /* 赤色 */
    margin-top: 5px;
}

/* `contact-content` の下にはエラーメッセージを表示しない */
.contact-content .wpcf7-not-valid-tip {
    /* display: none; */
}



.pagination {
    display: flex;
    margin: 50px auto;
    justify-content: center;
    gap: 6px;
    .prev {
        margin-right: 50px;
    }
    .next {
        margin-left: 50px;
    }
    .current {
        text-decoration: underline;
        text-underline-offset: 5px;
    }
    a {
        color: #575153;
        text-decoration: none;
    }
}

/* header button */
/* ボタンのスタイル */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
    vertical-align: middle;
    border: 0;
    background: transparent;
    border-radius: 0;
    text-align: inherit;
}

button:hover {
    cursor: pointer;
}

/* ハンバーガーボタン */
.btn {
    width: 9.8vw;
    min-width: 35px;
    height: 4vw;
    /* margin-top: 1.8vw; */
    display: flex;
    align-items: end;
    
    z-index: 1003;
    padding-bottom: clamp(6px, 1.8vw, 13px);
}

/* バーガーボタンのライン */
.btn-line {
    width: 100%;
    height: 2px;
    background-color: #575153;
    position: relative;
    transition: .2s;
}

.btn-line::before,
.btn-line::after {
    content: "";
    position: absolute;
    height: 100%;
    background-color: #575153;
    transition: .2s;
}

.btn-line::before {
    width: 85%;
    /* transform: translateY(-1.8vw); */
    transform: translateY(clamp(-13px, -1.8vw, -6px));
}
.btn-line::after {
    width: 57%;
    /* transform: translateY(1.8vw); */
    transform: translateY(clamp(6px, 1.8vw, 13px));
}
.btn-line.open::before,
.btn-line.open::after {
    width: 100%;
}

.btn-line.open {
    background-color: transparent;
}

.btn-line.open::before {
    transform: rotate(165deg);
}

.btn-line.open::after {
    transform: rotate(-165deg);
}

@media screen and (min-width: 750px) {
    .btn {
        display: none;
    }
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

.article-content {
    h2 {
        margin-top: 40px;
        background-color: #F5F5F5;
        padding: 10px 20px;
		font-weight: bold!important;
    }

    h3 {
        line-height: 1.2;
        height: 24px;
        display: flex;
        align-items: center;
        margin-top: 36px;
        margin-bottom: 28px;
		font-weight: bold!important;
		@media (max-width: 750px) {
            font-size: clamp(16px, 3.2vw, 24px);
        }
    }
    h3::before {
        content: "";
        display: inline-block;
        width: 4px;  /* 太さを調整 */
        height: 24px; /* 高さを調整 */
        background-color: #4a4444; /* 色を調整 */
        margin-right: 8px; /* テキストとの間隔 */
        vertical-align: middle; /* テキストの中央に揃える */
    }

    h4 {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
            margin: 0 0 2.6vw;
        }
    }
    h4::before {
        content: "";
        display: inline-block;
        width: 18px; /* 横線の長さ */
        height: 2px; /* 横線の太さ */
        background-color: #4a4444; /* 色を調整 */
        margin-right: 8px; /* テキストとの間隔 */
        margin-left: 12px;
        vertical-align: middle; /* テキストの中央に揃える */
    }
	.h4-content {
        margin-left: 37px;
    }
	ul li {
        @media (max-width: 750px) {
            font-size: clamp(12px, 3.2vw, 24px);
        }
    }
	
	/* 目次コンテナのスタイル */
    .toc-container {
        background-color: #f2f2f2;
        border: 1px dashed #ccc;
        /* padding: 15px 20px; */
        padding: 50px;
        margin: 60px 0;
        border-radius: 4px;
        @media (max-width: 750px) {
			margin: 8vw 0;
            padding: 6.6vw;
        }
    }
    
    /* 目次タイトル */
    .toc-title {
        position: relative;
        font-weight: bold;
        font-size: 24px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        @media (max-width: 750px) {
            font-size: clamp(13px, 3.2vw, 24px);
        }
    }

    .toc-text {
        position: absolute;
        left: 50%;
        transform: translateX(-70%);
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    /* 目次リスト */
    .toc-list {
        list-style-type: disc;
        padding-left: 20px;
        font-size: 16px;
        @media (max-width: 750px) {
            font-size: clamp(13px, 3.2vw, 24px);
        }
    }
    
    /* ネストされたリスト */
    .toc-list ul {
        list-style-type: circle;
        padding-left: 20px;
        margin-top: 5px;
    }
    
    .toc-list ul ul {
        list-style-type: square;
    }
    
    /* リストアイテム */
    .toc-list li {
        margin-bottom: 5px;
    }

    .toc-list li ul {
        margin-top: 10px;
    }
    /* H3レベルの目次項目に「L字型」SVGを設定 */
    .toc-list li li::before {
        content: "";
        display: inline-block;
        width: 11.5px;
        height: 21px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.512' height='21.225' viewBox='0 0 11.512 21.225'%3E%3Cpath id='パス_121762' data-name='パス 121762' d='M16631.5-15709.716v20.725h11.012' transform='translate(-16631 15709.716)' fill='none' stroke='%23575153' stroke-width='1'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        left: 0;
        top: 5%;
        transform: translateY(-50%);
        /* margin-top: -10px; */
    }
    
    /* H4レベルの目次項目に「横棒」SVGを設定 */
    .toc-list li li li::before {
        content: "";
        display: inline-block;
        width: 18px;
        height: 2px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='2' viewBox='0 0 18 2'%3E%3Crect id='長方形_27711' data-name='長方形 27711' width='18' height='2' fill='%23575153'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
		@media (max-width: 750px) {
            height: 1px;
        }
    }
    
    /* 共通のスタイリング */
    .toc-list li li, .toc-list li li li {
        list-style: none;
        position: relative;
        padding-left: 20px; /* SVGの幅+余白 */
        margin: 5px 0;
    }
	
	.toc-list li li {
        margin-top: 15px;
    }
    
    /* H4レベルをさらにインデント */
    .toc-list li li li {
        padding-left: 25px;
        font-size: 16px;
        @media (max-width: 750px) {
            font-size: clamp(10px, 2.7vw, 20px);
        }
    }
    
    /* リンクスタイル */
    .toc-list a {
        text-decoration: none;
        color: #333;
    }
    
    .toc-list a:hover {
		opacity: 0.7;
    }
	
	.toc-toggle-button {
        font-size: 12px;
        padding: 4px 8px;
        cursor: pointer;
        text-decoration: underline;
        margin-left: 13em;
        /* background-color: #f5f5f5; */
        /* border: 1px solid #ccc; */
        /* border-radius: 4px; */
        @media (max-width: 750px) {
            font-size: clamp(10px, 2.1vw, 16px);
            margin-left: 10em;
        }
    }
}