/* レイアウト微調整用CSS */
.mt-10 {margin-top: 10px !important;}
.mt-20 {margin-top: 20px !important;}
.mt-30 {margin-top: 30px !important;}
.mt-40 {margin-top: 40px !important;}

.mb-10 {margin-bottom: 10px !important;}
.mb-20 {margin-bottom: 20px !important;}
.mb-30 {margin-bottom: 30px !important;}
.mb-40 {margin-bottom: 40px !important;}

.img-sp {display: none;}
.img-pc {display: block;}

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

/* 本文はWordPressの標準ブロックで編集可能。 */

.p-box__content .box-subjects, .p-box__content .box-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 24px 0;
}
.p-box__content .box-subjects>.wp-block-group__inner-container, .p-box__content .box-row>.wp-block-group__inner-container {
    display: contents;
}
.p-box__content .box-subjects p {
    text-align: center;
    color: #00658c;
    background: #f3f3f3;
    border-radius: 15px;
    padding: 24px;
    font-family: 'Noto Serif JP', serif;
    font-size: 23px;
    margin: 0;
}
/* 紹介先・提携病院：見出し＋本文をひとつのグレーカードにまとめる */
.p-box__content .box-referral {
    background: #f3f3f3;
    padding: 36px 40px;
    border-radius: 8px;
    margin: 24px 0;
}
.p-box__content .box-referral h3 {
    margin-top: 0;
}
.p-box__content .box-referral .box-row {
    margin: 0;
    align-items: center;
}
.p-box__content .box-referral ul {
    list-style: none;
    padding-left: 0;
}
.p-box__content .box-referral li {
    position: relative;
    padding-left: 1.0em;
    margin-bottom: 12px;
    color: #333;
}
.p-box__content .box-referral li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 42%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
}
.p-box__content .box-referral li.h3 {
	padding-left: 0;
}
.p-box__content .box-referral li.h3::before {
	display: none;
}
.p-box__content .box-row>.wp-block-group__inner-container>* {
    margin-block-start: 0;
    min-width: 0;
}
.p-box__content .box-row h3 {
    margin-top: 0;
}
.p-box__content .box-equipment {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 40px;
    margin: 30px 0 40px;
}
.p-box__content .box-equipment ul {
    list-style: disc;
    padding-left: 1.3em;
}
.p-box__content .box-equipment li strong {
    color: #00658c;
	display: block;
}
.p-box__content .box-placeholder {
    margin: 0;
	padding: 0 15px 0;
}
.p-box__content .box-placeholder img {
    width: auto;
	height: auto;
	max-height: 380px;
	display: block;
    height: auto;
    border-radius: 0;
	margin: 20px auto 0;
}
/* 診療費用の目安：テーブル・ご注意事項ボックス */
.p-box__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 32px;
    font-size: 16px;
}
.p-box__content table td {
    padding: 18px 20px;
    border: 1px solid #d9d9d9;
    color: #424242;
}
.p-box__content table td:last-child {
    text-align: right;
    white-space: nowrap;
}
.p-box__content .box-notice {
    border: 1px solid #c11920;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px 0;
}
.p-box__content .box-notice__title {
    color: #c11920;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
}
.p-box__content .box-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}
.box-gallery {
    margin: 24px 0 70px;
    padding: 0;
}
.box-gallery__stage {
    position: relative;
    background: #dedede;
    overflow: visible;
    aspect-ratio: 3/2;
    border-radius: 8px;
}
.box-gallery__stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.box-gallery__caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: rgba(255, 255, 255, .8);
    padding: 8px 20px;
    text-align: center;
    color: #1c3d47;
    font-family: 'Noto sans JP', sans;
    font-weight: 500;
    font-size: 22px;
	width: 45%;
	max-width: 320px;
	border-radius: 0 15px 0 0;
}
.box-gallery__arrow {
    position: absolute;
    top: 45%;
    background: rgb(255, 255, 255);
    padding-bottom: 22px;
    font-size: 45px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0px 5px rgba(0, 0, 0, 0.3));
}
.box-gallery__prev {
    left: 15px;
}
.box-gallery__next {
    right: 15px;
}
.box-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-top: 25px;
}
.box-gallery__thumb {
    padding: 0;
    border: 1px solid #efefef;;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2.5;
}
.box-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.box-gallery__thumb span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #555;
    background: #eee;
    font-size: 11px;
    line-height: 1.5;
}
.box-gallery__thumb[aria-pressed='true'] {
    border-color: #0085ab;
}
.box-gallery button:focus-visible {
    outline: 3px solid #005d8c;
    outline-offset: 3px;
}
@media(max-width:767px) {
    .p-box__content .box-heading {
        margin-top: 48px;
    }
    .p-box__content .box-heading p {
        font-size: 27px;
    }
    .p-box__content .box-subjects {
        gap: 12px;
    }
    .p-box__content .box-subjects p {
        font-size: 18px;
        padding: 18px 8px;
    }
    .p-box__content .box-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .p-box__content .box-referral {
        padding: 22px;
    }
    .p-box__content table td {
        padding: 12px 14px;
        font-size: 14px;
    }
    .box-gallery {
        padding: 0;
    }
    .box-gallery__stage {
        border-radius: 4px;
    }
    .box-gallery__thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .box-gallery__caption {
        font-size: 16px;
        padding: 6px;
    }
    .box-gallery__arrow {
        font-size: 38px;
		width: 40px;
		height: 40px;
    }
    .box-gallery__prev {
        left: -8px;
    }
    .box-gallery__next {
        right: -8px;
    }
}