/* 医師一覧・詳細：サイトのCSS変数に連動 */
.l-archive_doctor-list .layout-main {
    max-width: 1250px;
}
.l-archive_doctor-list .c-doctor-list__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5rem 4rem;
    padding: 0;
    list-style: none;
}
.l-archive_doctor-list .c-doctor-list__item {
    position: relative;
    display: flex;
    flex: 0 1 250px;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: var(--color_text_white, #fff);
    box-shadow: var(--theme-shadow);
}
.l-archive_doctor-list .c-doctor-list__thumbnail {
    display: block;
    margin: 0;
    overflow: hidden;
    text-decoration: none;
}
.l-archive_doctor-list .c-doctor-list__thumbnail .is-zoom {
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 100%;
}
.l-archive_doctor-list .c-doctor-list__thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity .3s, transform .3s;
}
.l-archive_doctor-list .c-post__info {
    display: flex;
    flex: 1;
    padding: .5rem 1rem 2.5rem;
}
.l-archive_doctor-list .c-post__overview {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}
.l-archive_doctor-list .c-doctor-list__name {
    position: relative;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--color_theme_sub);
    font-size: 2rem;
    text-align: center;
}
.l-archive_doctor-list .c-doctor-list__name::before {
    position: absolute;
    bottom: -2px;
    left: 40%;
    width: 20%;
    height: 2px;
    background: var(--color_theme_main);
    content: "";
}
.l-archive_doctor-list .c-doctor-list__name span {
    white-space: nowrap;
}
.l-archive_doctor-list .c-doctor-list__cat {
    color: var(--color_theme_main);
    text-align: center;
}
.l-archive_doctor-list .c-doctor-list__cat ul {
    margin: .75rem 0;
    padding: 0;
    list-style: none;
}
.l-archive_doctor-list .c-doctor-list__place {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.l-archive_doctor-list .c-doctor-list__place-text {
    padding-left: 1.6rem;
    font-size: 1.6rem;
}
.l-archive_doctor-list .c-doctor-list__actions {
    display: grid;
    gap: 1rem;
    margin-top: auto;
}
.l-archive_doctor-list .c-doctor-list__button {
    position: relative;
    display: block;
    width: 165px;
    margin: 0 auto;
    padding: 10px 40px 10px 1em;
    border-radius: 5px;
    background-color: var(--color_theme_main);
    color: var(--color_text_white, #fff);
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: opacity .3s;
}
.l-archive_doctor-list .c-doctor-list__button::before {
    position: absolute;
    top: calc(50% - 4px);
    right: 20px;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}
.l-archive_doctor-list .c-doctor-list__button--reservation {
    background-color: var(--color_theme_emphasis);
    color: var(--color_text);
}
.l-archive_doctor-list .c-doctor-list__button:hover,
.l-archive_doctor-list .c-doctor-list__thumbnail:hover img {
    opacity: .7;
}
.l-archive_doctor-list .c-doctor-list__thumbnail:hover img {
    transform: scale(1.1);
}

/* 医師詳細 */
.layout-doctor-detail .doctor-page-title {
    position: relative;
    margin-top: 0;
    padding: .25em 1rem;
    border: 1px solid var(--color_theme_main);
    color: var(--color_theme_main);
    font-weight: bold;
}
.layout-doctor-detail .doctor-page-title::before,
.layout-doctor-detail .doctor-page-title::after {
    position: absolute;
    display: block;
    width: 1em;
    height: 1em;
    content: "";
}
.layout-doctor-detail .doctor-page-title::before {
    top: -5px;
    left: -5px;
    border-top: 1px solid var(--color_theme_main);
    border-left: 1px solid var(--color_theme_main);
}
.layout-doctor-detail .doctor-page-title::after {
    right: -5px;
    bottom: -5px;
    border-right: 1px solid var(--color_theme_main);
    border-bottom: 1px solid var(--color_theme_main);
}
.layout-doctor-detail .post-doctor-default-space {
    display: flex;
    gap: 3rem;
    margin-bottom: 0;
}
.layout-doctor-detail .post-doctor-default-space-img {
    flex: 0 0 300px;
    height: 300px;
}
.layout-doctor-detail .post-doctor-default-space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.layout-doctor-detail .post-doctor-default-space-profile {
    width: 100%;
}
.layout-doctor-detail .post-doctor-default-space-profile h3 {
    margin-block-start: 0;
}
.layout-doctor-detail .post-doctor-default-space-profile ul {
    padding: 0;
    list-style: none;
}
.layout-doctor-detail .post-doctor-default-space-profile a,
.layout-doctor-detail .post-doctor-default-space-profile-category {
    color: var(--color_theme_main);
    font-size: 17px;
    text-decoration: none;
}

@media screen and (max-width: 950px) {
    .l-archive_doctor-list .c-doctor-list__list {
        justify-content: center;
    }
}
@media screen and (max-width: 767px) {
    .l-archive_doctor-list .layout-main,
    .l-archive_doctor-list .l-post__archive {
        padding: 1rem 0;
    }
    .l-archive_doctor-list .c-doctor-list__item {
        flex-basis: 85%;
    }
    .layout-doctor-detail .doctor-page-title {
        text-align: center;
    }
    .layout-doctor-detail .post-doctor-default-space {
        display: block;
    }
    .layout-doctor-detail .post-doctor-default-space-img {
        width: 250px;
        height: 300px;
        margin: 0 auto 1.5rem;
    }
}

/* 医師情報一覧：色はサイトのテーマ変数を継承 */
.l-archive_doctor-list .layout-main {
    max-width: 1250px;
}
.l-archive_doctor-list .c-doctor-list__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5rem 4rem;
    padding: 0;
    list-style: none;
}
.l-archive_doctor-list .c-doctor-list__item {
    position: relative;
    display: flex;
    flex: 0 1 250px;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: var(--color_text_white, #fff);
    box-shadow: var(--theme-shadow);
}
.l-archive_doctor-list .c-doctor-list__thumbnail {
    display: block;
    margin: 0;
    overflow: hidden;
    text-decoration: none;
    margin-right: 0!important;
}
.l-archive_doctor-list .c-doctor-list__thumbnail .is-zoom {
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 100%;
}
.l-archive_doctor-list .c-doctor-list__thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity .3s, transform .3s;
}
.l-archive_doctor-list .c-post__info {
    display: flex;
    flex: 1;
    padding: .5rem 1rem 2.5rem;
}
.l-archive_doctor-list .c-post__overview {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}
.l-archive_doctor-list .c-doctor-list__name {
    position: relative;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--color_theme_sub);
    font-size: 2rem;
    text-align: center;
}
.l-archive_doctor-list .c-doctor-list__name::before {
    position: absolute;
    bottom: -2px;
    left: 40%;
    width: 20%;
    height: 2px;
    background: var(--color_theme_main);
    content: "";
}
.l-archive_doctor-list .c-doctor-list__name span {
    white-space: nowrap;
}
.l-archive_doctor-list .c-doctor-list__cat {
    color: var(--color_theme_main);
    text-align: center;
}
.l-archive_doctor-list .c-doctor-list__cat ul {
    margin: .75rem 0;
    padding: 0;
    list-style: none;
}
.l-archive_doctor-list .c-doctor-list__place {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.l-archive_doctor-list .c-doctor-list__place-text {
    padding-left: 1.6rem;
    font-size: 1.6rem;
}
.l-archive_doctor-list .c-doctor-list__actions {
    display: grid;
    gap: 1rem;
    margin-top: auto;
}
.l-archive_doctor-list .c-doctor-list__button {
    position: relative;
    display: block;
    width: 165px;
    margin: 0 auto;
    padding: 10px 40px 10px 1em;
    border-radius: 5px;
    background-color: var(--color_theme_main);
    color: var(--color_text_white, #fff);
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: opacity .3s;
}
.l-archive_doctor-list .c-doctor-list__button::before {
    position: absolute;
    top: calc(50% - 4px);
    right: 20px;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}
.l-archive_doctor-list .c-doctor-list__button--reservation {
    background-color: var(--color_theme_emphasis);
    color: var(--color_text);
}
.l-archive_doctor-list .c-doctor-list__button:hover,
.l-archive_doctor-list .c-doctor-list__thumbnail:hover img {
    opacity: .7;
}
.l-archive_doctor-list .c-doctor-list__thumbnail:hover img {
    transform: scale(1.1);
}

/* 医師詳細 */
.layout-doctor-detail .doctor-page-title {
    position: relative;
    margin-top: 0;
    padding: .25em 1rem;
    border: 1px solid var(--color_theme_main);
    color: var(--color_theme_main);
    font-weight: bold;
}
.layout-doctor-detail .doctor-page-title::before,
.layout-doctor-detail .doctor-page-title::after {
    position: absolute;
    display: block;
    width: 1em;
    height: 1em;
    content: "";
}
.layout-doctor-detail .doctor-page-title::before {
    top: -5px;
    left: -5px;
    border-top: 1px solid var(--color_theme_main);
    border-left: 1px solid var(--color_theme_main);
}
.layout-doctor-detail .doctor-page-title::after {
    right: -5px;
    bottom: -5px;
    border-right: 1px solid var(--color_theme_main);
    border-bottom: 1px solid var(--color_theme_main);
}
.layout-doctor-detail .post-doctor-default-space {
    display: flex;
    gap: 3rem;
    margin-bottom: 0;
}
.layout-doctor-detail .post-doctor-default-space-img {
    flex: 0 0 300px;
    height: 300px;
}
.layout-doctor-detail .post-doctor-default-space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.layout-doctor-detail .post-doctor-default-space-profile {
    width: 100%;
}
.layout-doctor-detail .post-doctor-default-space-profile h3 {
    margin-block-start: 0;
}
.layout-doctor-detail .post-doctor-default-space-profile ul {
    padding: 0;
    list-style: none;
}
.layout-doctor-detail .post-doctor-default-space-profile a,
.layout-doctor-detail .post-doctor-default-space-profile-category {
    color: var(--color_theme_main);
    font-size: 17px;
    text-decoration: none;
}

@media screen and (max-width: 950px) {
    .l-archive_doctor-list .c-doctor-list__list {
        justify-content: center;
    }
}
@media screen and (max-width: 767px) {
    .l-archive_doctor-list .layout-main,
    .l-archive_doctor-list .l-post__archive {
        padding: 1rem 0;
    }
    .l-archive_doctor-list .c-doctor-list__item {
        flex-basis: 85%;
    }
    .layout-doctor-detail .doctor-page-title {
        text-align: center;
    }
    .layout-doctor-detail .post-doctor-default-space {
        display: block;
    }
    .layout-doctor-detail .post-doctor-default-space-img {
        width: 250px;
        height: 300px;
        margin: 0 auto 1.5rem;
    }
}

/* 医師一覧：分類ごとのセクション */
.l-archive_doctor-list .c-doctor-category + .c-doctor-category {
    margin-top: 7rem;
}
.l-archive_doctor-list .c-doctor-category__title {
    position: relative;
    margin: 0 2rem 5rem;
    padding: .5em 1rem;
    border: 0;
    border-bottom: 3px solid var(--color_theme_lightgray);
    color: var(--color_text);
    font-size: 2.8rem;
    line-height: 1.5;
}
.l-archive_doctor-list .c-doctor-category__title::before {
    display: none;
    content: none;
}
.l-archive_doctor-list .c-doctor-category__title::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    display: block;
    width: 15%;
    border-bottom: 3px solid var(--color_theme_main);
    content: "";
}

@media screen and (max-width: 767px) {
    .l-archive_doctor-list .c-doctor-category + .c-doctor-category {
        margin-top: 5rem;
    }
    .l-archive_doctor-list .c-doctor-category__title {
        margin-right: 2rem;
        margin-bottom: 5rem;
        margin-left: 2rem;
        padding: .5em 1rem;
        font-size: 2rem;
    }
    .l-archive_doctor-list .c-doctor-category__title::after {
        width: 30%;
    }
}

/* LP用：ひざ(※使用する場合KISにご連絡ください)css */
body.page-template-page-landing2-img-2-knee.layout-landing {
    padding-top: 0px;
    overflow-x: hidden;
}
.page-template-page-landing2-img-2-knee .landing-page-main {
    margin-bottom: 0.83em;
}
@media screen and (max-width: 850px) {
    .page-template-page-landing2-img-2-knee .landing-page-main {
        padding-top: 80px;
    }
}
.lp-hip-ver .landing-footer-floating-menu-button-logo {
    line-height: 0;
}
.lp-hip-ver .landing-footer-floating-menu-button-logo img {
    max-height: 80px;
}
@media screen and (max-width: 500px) {
    .lp-hip-ver .landing-footer-floating-menu-button-logo img {
        max-width: 50vw;
    }
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-img-footer-floating-menu.lp-pc-footer {
    background-color: #ffffff;
	box-shadow: rgb(102, 102, 102) 1px 2px 5px 2px;
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-img-footer-floating-menu.lp-pc-footer {
    background-color: #ffffff;
	box-shadow: rgb(102, 102, 102) 1px 2px 5px 2px;
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-img-footer-floating-menu.lp-pc-footer .landing-footer-floating-menu-content {
    max-width: 1220px;
    background-color: #ffffff;
    margin: 0 auto;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px;
	box-shadow: none;
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-img-footer-floating-menu.lp-pc-footer .landing-footer-floating-menu-content {
    max-width: 1220px;
    background-color: #ffffff;
    margin: 0 auto;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px;
	box-shadow: none;
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-footer-floating-menu.sp-floating-menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    background-color: white;
    box-shadow: rgb(102, 102, 102) 1px 2px 5px 2px;
}
body.page-template-page-landing2-img-2-knee.layout-landing .landing-footer-floating-menu.sp-floating-menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    background-color: white;
    box-shadow: rgb(102, 102, 102) 1px 2px 5px 2px;
}
.lp-hip-ver .landing-footer-floating-menu-button-logo {
    line-height: 0;
}
.lp-hip-ver .landing-footer-floating-menu-button-logo img {
    max-height: 80px;
    vertical-align: bottom;
}
@media screen and (max-width: 500px) {
    .lp-hip-ver .landing-footer-floating-menu-button-logo img {
        max-width: 50vw;
    }
}
.lp-hip-ver .pc-floating-menu-left-upper {
    gap: 2rem;
}
.lp-hip-ver .landing-footer-floating-menu-content .landing-footer-floating-menu-button .landing-footer-floating-menu-button-link {
    max-width: 450px;
}
.landing-img-footer-floating-menu.lp-pc-footer.lp-hip-ver .landing-footer-floating-menu-content .landing-footer-floating-menu-button-link img {
    height: 80px;
}
.lp-hip-ver .landing-footer-floating-menu-content .landing-footer-floating-menu-button .landing-footer-floating-menu-button-link img {
    max-width: 450px;
}
.lp-hip-ver .lp-hip-ver-chart-link {
    display: block;
    text-align: center;
    max-width: 230px;
}
.lp-hip-ver .lp-hip-ver-chart-link img {
    height: 100%;
}
.lp-hip-ver .lp-hip-ver-reserve-link {
    display: block;
    text-align: center;
    max-width: 230px;
}
.lp-hip-ver .lp-hip-ver-reserve-link img {
    height: 100%;
}
.landing-img-footer-floating-menu.lp-pc-footer.lp-hip-ver .landing-footer-floating-menu-content a img {
    height: 80px;
}
.landing-footer-floating-menu.sp-floating-menu.lp-hip-ver {
    gap: 1rem;
    max-height: 100px;
}
body.page-template-page-landing2-img-2-hip.layout-landing .landing-page-footer {
    padding-bottom: 110px;
}
@media screen and (max-width: 849px) {
body.page-template-page-landing2-img-2-hip.layout-landing .landing-page-footer {
    padding-bottom: 85px;
}
}

/* Doctor list: keep long names and notes visible when they wrap. */
.c-doctor-list__name{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
.c-doctor-list__name_text{
  display:inline-block;
  max-width:100%;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* 医師一覧：羽田サイトと同じカード幅・グリッドへ最終調整 */
.l-archive_doctor-list .layout-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}
.l-archive_doctor-list .c-doctor-category {
    min-width: 0;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
    grid-auto-rows: 1fr;
    gap: 2rem;
    margin: 0 2rem;
    padding: 0;
    list-style: none;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__item {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list .c-doctor-list__item .c-doctor-list__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    color: var(--color_text);
    text-decoration: none;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list .c-doctor-list__item .c-doctor-list__link .c-doctor-list__thumbnail {
    flex: 0 0 auto;
    width: 100%;
    margin: 0!important;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list .c-doctor-list__item .c-doctor-list__link .c-doctor-list__thumbnail .is-zoom {
    aspect-ratio: 1 / 1;
    padding-top: 0;
    border-radius: 10px 10px 0 0;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list .c-doctor-list__item .c-doctor-list__link .c-post__info {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    padding: .5rem 1rem 1.5rem;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__name {
    height: auto;
    max-height: none;
    overflow: visible;
    line-height: 1.5;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__name .c-doctor-list__name_text {
    display: inline;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal!important;
    word-break: break-word;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__button {
    box-sizing: border-box;
    max-width: 100%;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__actions {
    padding: 0 1rem 2.5rem;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__linkbtn {
    width: 100%;
}
.l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__link:hover img {
    transform: scale(1.1);
}

@media screen and (max-width: 950px) {
    .l-archive_doctor-list .layout-main .l-post__archive .c-doctor-list__list {
        margin-right: 4rem;
        margin-left: 4rem;
    }
}
