/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p {
    padding: 0;
}
.g-nav, .mv-wrap, .main-content, .treatment-categories {
    font-family: 'Meiryo', 'Hiragino Sans', 'Yu Gothic', 'MS PGothic', sans-serif;
    line-height: 1.6;
    color: #281614;
    background-color: #FFFFFF;
}
.g-nav {
    margin-top: 40px;
}
/* ヘッダー */
.faq-header {
    margin-bottom: 16px;
}

.faq-header-inner {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
}
.faq-header-menu {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    align-items: center;
}
.faq-header__title {
    max-width: 40%;
}
.faq-header__logo {
    display: block;
    width: 100%;
    height: auto;
}
.faq-header-menu__list {
    display: flex;
    gap: 16px;
}
.faq-header-menu__item {
    padding: 8px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    font-family: "Noto Serif JP", serif;
    line-height: 1.2;
    flex: 0 0 214px;
    border-radius: 4px;
}

.faq-header-menu__tel {
    border: 1px solid #5A3B36;
}

.faq-header-menu__tel-text {
    color: #666;
}
.faq-header-menu__tel-number {
    color: #5A3B36;
    font-size: 20px;
    font-family: "Noto Sans JP", sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.faq-header-menu__tel-number::before {
    content: '';
    display: inline-block;
    width: auto;
    height: 1em;
    aspect-ratio: 15 / 20;
    background-image: url('/faq-portal/wp-content/themes/blog-renew/images/icon_faq_tel.svg');
    background-size: cover;
}
.faq-header-menu__web {
    background-color: #A28080;
    color: #fff;
}
.faq-header-menu__web-ttl {
    font-size: 17px;
}
.faq-header-menu__web-ttl-en {
    font-size: 12px;
}

.g-nav-list {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.g-nav-list__item {
    text-decoration: none;
    color: #fff;
    background-color: #BDA75A;
    padding: 1em;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
    width: min(230px, 25%);
    text-align: center;
}

.g-nav-list__item:nth-child(even) {
    background-color: #A28080;
}
.drawer-menu-wrap {
    display: none;
}
.mv-img {
    height: auto;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.top .mv-img {
    height: min(569px, 40vw);
}
.sub .mv-img {
    height: min(320px, 30vw);
}/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.container {
    width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* メインコンテンツエリア */
.faq-main-content {
    flex: 1;
}

/* FAQセクション共通 */
.faq-section {
    margin-bottom: 60px;
}

.answers-to-questions {
    margin-bottom: 80px;
}

.faq-section__header {
    margin-bottom: 30px;
    display: flex;
    justify-content: start;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #ccc;
    gap: 24px;
}
.faq-section__header.faq-section__wakaba > .faq-section__title {
    display: flex;
    gap: 24px;
    align-items: center;
}
.faq-section__header.faq-section__wakaba > .faq-section__title::before {
    content: "";
    background: url(/faq-portal/wp-content/themes/blog-renew/images/icon_faq_wakaba.png) no-repeat;
    width: 50px;
    height: 78px;
    display: block;
    background-size: cover;
}
.faq-section__title {
    font-size: 31px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    position: relative;
    font-family: Yu Mincho;
    margin: 0;
    padding: 0;
}

.faq-questions-question-wrap {
    margin-bottom: 40px;
}
.faq-questions-question {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 24px;
    border: 1px solid #5A3B36;
    border-radius: 8px;
    position: relative;
}
.faq-questions-question::before, .faq-questions-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 0;
    height: 0;
    transform: translateY(100%);
}
.faq-questions-question::before {
    bottom: 0;
    border-style: solid;
    border-color: #5A3B36 transparent transparent  transparent;
    border-width: 40px 0 0 40px;
}

.faq-questions-question::after {
    bottom: 1px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    border-width: 39px 0 0 39px;
    z-index: 10;
}

.faq-questions-question-wrap .faq-questions-list__date {
    justify-content: end;
    margin-top: 8px;;
}

.faq-questions-answer-wrap p {
    margin-bottom: 1em;
}

.relation-questions__title {
    color: #fff;
    background-color: #5A3B36;
    padding: 24px 40px;
    margin-bottom: 24px;
    position: relative;
    line-height: 1.4;
    font-weight: 300;
}

.relation-questions__title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #B1A198;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.faq-questions-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.relation-questions__list {
    grid-template-columns: 1fr;
}
.faq-questions-list__item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: #281614;
    transition: all 0.3s ease;
    min-height: 120px;
}

.relation-questions-list__item {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #aaa;
}

.faq-questions-list__item:hover {
    background-color: #F9F9F9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-questions-list__icon-wrap {
    margin-right: 20px;
}
.faq-questions-list__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.faq-ranking .faq-questions-list__content {
    align-self: end;
}
.faq-questions-list__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-questions-list__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 10px;
}

.faq-questions-list__date {
    font-size: 12px;
    color: #AAAAAA;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.faq-questions-list__date::before {
    content: '';
    display: inline-block;
    aspect-ratio: 1;
    width: auto;
    height: 1em;
    background-image: url('/faq-portal/wp-content/themes/blog-renew/images/icon_faq_clock.svg');
    background-size: cover;
    background-position: center;
}

/* サイドバー */
.faq-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.faq-sidebar-section + .faq-sidebar-section {
    margin-top: 80px;
}

.faq-sidebar-section__header {
    margin-bottom: 40px;
}
.appointment-info-link {
    padding: 40px 16px;
    background: linear-gradient(180deg, #EEE9E1 0%, #EEE9E1 100%);
}

.keyword-search .faq-sidebar-section__header {
    display: flex;
    justify-content: end;
    align-items: center;
}

.faq-sidebar-section__title {
    font-size: 28px;
    font-weight: 600;
    font-family: Yu Mincho;
    color: #333;
    text-align: right;
    position: relative;
    padding-bottom: 15px;
}

.faq-sidebar-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 108px;
    height: 1px;
    background-color: #CCCCCC;
}
.faq-sidebar-section__title-icon {
    display: inline-block;
    aspect-ratio: 44 / 45;
    margin-right: 8px;
}
/* ランキングリスト */
.faq-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-ranking-list__item {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    text-decoration: none;
    color: #281614;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid #CCC;
}

.faq-ranking-list__item:hover {
    background-color: #F9F9F9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-ranking-list__number {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #CBB630;
    color: #F2F8F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    flex-shrink: 0;
}

.faq-ranking-list__item:nth-child(2) .faq-ranking-list__number {
    background-color: #A8A8A8;
}

.faq-ranking-list__item:nth-child(3) .faq-ranking-list__number {
    background-color: #8C796A;
}

.faq-ranking-list__item:nth-child(n+4) .faq-ranking-list__number {
    background-color: #2D2D2D;
}

.faq-ranking-list__icon-wrap {
    background-color: #F8F2EA;
    aspect-ratio: 1;
    width: 72px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.faq-ranking-list__icon {
    width: auto;
    height: 36px;
}

.faq-ranking-list__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 10em;
}
.faq-ranking-list__text br {
    display: none;
}

/* キーワードタグ */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
}

.keyword-tags__item {
    padding: 5px 17px;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    text-decoration: none;
    color: #737373;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.keyword-tags__item:hover {
    background-color: #F8F2EA;
    border-color: #333;
    color: #333;
}


/* 診療内容カテゴリ（フッター的な配置） */
.treatment-categories {
    margin-top: 80px;
    padding: 120px 0;
    background-color: #5A3B36;
    border-top: 1px solid #5A3B36;
}
h2.faq-section__title, h3.faq-sidebar-section__title {
    color: #333;
    font-weight: 400;
    padding: 0;
}
h3.faq-sidebar-section__title {
    padding: 0 0 16px 0;
}
.treatment-categories-inner {
    max-width: 1200px;
    margin-inline: auto;
}
h3.treatment-categories-ttl {
    color: #fff;
    font-size: 32px;
    text-align: center;
    position: relative;
    margin-bottom: 64px;
    font-weight: 600;
    font-family: Yu Mincho;
    padding: 0;
}
h3.treatment-categories-ttl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #fff;
}
.treatment-categories-ttl__title {
    display: inline-block;
    padding-inline: 3em;
    background-color: #5A3B36;
    position: relative;
}

.treatment-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-categories__item {
    display: flex;
    align-items: center;
    background-color: #fff;
    text-decoration: none;
    color: #281614;
    transition: all 0.3s ease;
}

.treatment-categories__item:hover {
    background-color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.treatment-categories__icon-wrap {

    aspect-ratio: 1;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F2EA;
}
.treatment-categories__icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.treatment-categories__text {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0.5em;
}
.treatment-categories__text::after, .faq-ranking-list__item::after, .faq-questions-list__item::after {
    content: '';
    aspect-ratio: 13 / 22;
    width: auto;
    height: 1em;
    background-image: url('/faq-portal/wp-content/themes/blog-renew/images/icon_faq_carat.svg');
    background-size: cover;
}
h3.faq-blue-box-geading {
    margin: 0 0 8px;
    padding: 0;
    font-weight: 600;
}
.faq-blue-box {
    background: #F8F2EA;
    padding: 24px 24px 8px;
    margin: 40px auto;
}
.drawer-toggle {
    display: none;
}

.mv-wrap img {
    width: 100%;
    height: 553px;
    object-fit: cover;
    object-position: center;
}
.mv-wrap.faq-mv-sub img {
    height: 321px;
}
.wpp-no-data, .wpp-views {
    display: none;
}
.prev__link {
    padding-bottom: 20px;
}
.prev__link a {
    font-size: 17px;
    display: flex;
    background: #5A3B36;
    border: 1px solid #fff;
    text-decoration: none;
    width: 249px;
    height: 60px;
    font-weight: 600;
    line-height: 1;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
    color: #fff;
    border-radius: 60px;
    transition: all 0.3s ease;
}
.prev__link a:hover {
    color: #fff;
    background: #662f26;
}

/* レスポンシブデザイン */
@media (max-width: 1279px) {
.mv-wrap img {
    height: 43.203vw;
}
.mv-wrap.faq-mv-sub img {
    height: 25.098vw;
}
.content-wrapper {
        flex-direction: column;
        max-width: fit-content;
        margin-inline: auto;
    }
    .faq-sidebar {
    margin-inline: auto;
}
.faq-sidebar-section__title, .faq-sidebar-section__title {
    text-align: left;
}
.keyword-search .faq-sidebar-section__header {
    justify-content: start;
}
.keyword-tags {
    justify-content: start;
}
.faq-sidebar-section__title::after, .faq-sidebar-section__title::after {
    right: auto;
    left: 0;
}
.treatment-categories-inner {
    max-width: 800px;
    width: calc(100% - 32px);
    margin-inline: auto;
}
.treatment-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 40px 5vw;
}
}
@media (max-width: 799px) {
.faq-header {
        background-color: rgba(255, 255, 255, .8);
        position: sticky;
        top: 0;
        z-index: 9999;
        backdrop-filter: blur(3px);
        overflow: hidden;
    }

    .faq-header__logo {
    width: 83%;
}

    .scrolled .faq-header {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
    .faq-header__title {
        max-width: 80%;
    }
        .faq-header-menu {
            align-items: end;
        }
    .faq-header-menu__list {
        display: none;
    }

    .g-nav {
    display: none;
}
.drawer-toggle {
    display: flex;
    cursor: pointer;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.drawer-toggle__humburger {
    position: relative;
    width: 24px;
    height: 20px;
    margin-bottom: 10px;
}
.drawer-toggle__humburger-line {
    width: 100%;
    height: 2px;
    background-color: #222;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}
.drawer-toggle__humburger-line--top {
    top: 0;
}
.drawer-toggle__humburger-line--middle {
    top: calc(50% - 1px);
}
.drawer-toggle__humburger-line--bottom {
    top: auto;
    bottom: 0;
}
.drawer-active .drawer-toggle__humburger-line--top {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(405deg);
}
.drawer-active .drawer-toggle__humburger-line--middle {
    opacity: 0;
}
.drawer-active .drawer-toggle__humburger-line--bottom {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-405deg);
}
.drawer-toggle__text {
    font-size: 10px;
    color: #333;
    line-height: 1;
    transition: all 0.3s ease;
}
.drawer-toggle__text-close {
    font-size: 0;
}
.drawer-active .drawer-toggle__text-close {
    font-size: 10px;
}
.drawer-active .drawer-toggle__text-menu {
    font-size: 0;
}

.drawer-menu-wrap {
    display: block;
    width: min(375px, 90%);
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(1px);
    position: absolute;
    right: 0;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.3s ease;
    padding: 40px 16px;
}
.drawer-active .drawer-menu-wrap {
    transform: translateX(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.drawer-menu__list {
    margin-bottom: 40px;
}
.drawer-menu-wrap .faq-header-menu__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-menu-wrap .faq-header-menu__item {
    flex: 0 1 auto;
    max-width: 214px;
    width: 100%;
    margin-inline: auto;
}


.drawer-menu-wrap .g-nav-list {
    flex-direction: column;
    max-width: 214px;
    margin-inline: auto;
}
.drawer-menu-wrap .g-nav-list__item, .drawer-menu-wrap .g-nav-list__item:nth-child(even) {
    clip-path: none;
    width: 100%;
    background-color: #fff;
    color: #555;
    padding-bottom: .25em;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-menu-wrap .g-nav-list__item::after {
    content: '';
    aspect-ratio: 13 / 22;
    width: auto;
    height: 1em;
    background-image: url('/faq-portal/wp-content/themes/blog-renew/images/icon_faq_carat.svg');
    background-size: cover;
    display: inline-block;
}


.mv-img {
    height: auto;
}

        .main-content {
        padding: 30px 15px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
.faq-main-content {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}
    .faq-sidebar {
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
    }

    .faq-section {
        margin-bottom: 40px;
    }
.answers-to-questions {
    margin-bottom: 80px;
}

    .faq-section__title {
        font-size: 24px;
    }


    .faq-questions-question {
        padding: 24px 16px;
    }

    .faq-questions-list {
        grid-template-columns: 1fr;
    }

    .faq-questions-list__item {
    }

    .faq-questions-list__icon {
    }

    .faq-questions-list__content {
    }

    .faq-questions-list__text {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .faq-questions-list__date {
        margin-top: 0;
    }

    .faq-sidebar-section__title {
        font-size: 24px;
        text-align: left;
    }

    .faq-sidebar-section__title::after {
        left: 0;
        width: 108px;
    }

    .faq-ranking-list__item {
    }

    .faq-ranking-list__icon-wrap {
    }

    .faq-ranking-list__text {
        font-size: 16px;
        margin-bottom: 10px;
    }

        .appointment-info-link {
            border: 1px solid #5A3B36;
            background: linear-gradient(180deg, #f5f2ee 0%, #f5f2ee 50%, #EEE9E1 50%, #EEE9E1 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .appointment-info-link::after {
            content: "";
            display: inline-block;
            width: auto;
            height: 28px;
            aspect-ratio: 47 / 29;
            background-image: url('/faq-portal/wp-content/themes/blog-renew/images/icon_faq_arrow.svg');
            background-size: cover;
        }
.appointment-info-link__title {
    text-align: center;
    padding: 0;
    flex: 1;
}
.appointment-info-link__title::after {
    display: none;
}

    .treatment-categories {
        margin-top: 50px;
        padding: 80px 0;
    }

        .treatment-categories-inner {
            max-width: 500px;
        }

    .treatment-categories__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .treatment-categories__item {
    }

.treatment-categories__icon-wrap {
    width: 100px;
}
    .treatment-categories__icon {
        width: 60px;
        height: 60px;
    }

    .treatment-categories__text {
        font-size: 16px;
    }
        h3.treatment-categories-ttl {
            font-size: 24px;
        }
    .treatment-categories-ttl__title {
        padding-inline: 1em;
    }
    .mv-wrap {
        margin-top: 100px;
    }
}

    .u__pc-only {
        display: inline-block;
    }
    .u__sp-only {
        display: none;
    }

@media (max-width: 768px) {
    .u__pc-only {
        display: none;
    }
    .u__sp-only {
        display: block;
    }
    .mv-title .u__sp-only {
        display: inline-block;
    }
    .mv-wrap img, .sub .mv-img {
        height: auto;
    }
    .mv-wrap.faq-mv-sub img {
        height: auto;
    }
    .relation-questions__title {
        padding: 16px;
    }
}
@media (max-width: 575px) {
    .mv-wrap {
        margin-top: 8px;
    }
}
@media (max-width: 450px) {
    .faq-section__header.faq-section__wakaba > .faq-section__title::before {
        width: 36px;
        height: 56px;
        background-size: 100%;
    }
    .faq-section__header.faq-section__wakaba > .faq-section__title {
        gap: 8px;
    }
}