/* 
Theme Name:understrap-child
Template:understrap
*/
body {
    font-family: "Arial", "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif !important;
    font-size: 15px !important;
    color: #000 !important;
    font-weight: normal !important;
}

.site a {
    color: #000 !important;
}

a {
    transition: all 0.5s ease;
}

a:hover {
}

ul {
    list-style: none;
    padding: 0;
}

.container-xl {
    padding: 0 !important;
}

.row {
    margin: 0 !important;
}

.col-12 {
    padding: 0 !important;
}

header {
    background-color: #FFF;
}

#header {
    padding: 15px 30px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header-left a:hover {
    text-decoration: none;
}

#header-left img {
    vertical-align: bottom;
}

#header-left span {
    font-size: 13px;
}

#main-nav {
    width: 100%;
    background-color: #000A41;
}

#main-menu {
    margin: 8px;
}

#main-menu li + li {
    border-left: 1px solid #FFF;
}

#main-menu > li > a {
    color: #FFF !important;
    font-weight: bold;
    padding: 0.5rem 2.2rem;
}

#main-menu > li > a:hover {
    color: #FA7D14 !important;
}

.slash {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slash::before,
.slash::after {
    content: "";
    width: 25px;
    height: 2px;
    background-color: #FA7D14;
    margin: 0px 2px 4px;
}

.slash::before {
    transform: rotate(45deg);
}

.slash::after {
    transform: rotate(-45deg);
}

.list {
    width: -moz-fit-content;
    width: fit-content;
    text-align: center;
    background-color: #FA7D14;
    color: #FFF !important;
    font-size: 14px;
    font-weight: bold;
    padding: 9px 15px;
    border-radius: 23px;
    white-space: nowrap;
}

main {
    padding-bottom: 60px;
}

#main .container-xl {
    padding: 30px 30px 60px !important;
}

.arrow {
    width: -moz-fit-content;
    width: fit-content;
    text-align: center;
    margin: 0 auto;
    padding-right: 30px !important;
    background: url("img/arrow.png") no-repeat right;
    background-size: 1.2em 1.2em;
}

.link-block {
    background-color: #FFF;
    border: 1px solid #000;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    margin: 0 auto;
}

.link-blocks > div {
    padding: 15px;
}

.link-blocks .link-block {
    border: none;
}

.link-block a {
    display: block;
}

.link-block a:hover {
    text-decoration: none;
    opacity: 0.5;
}

.link-block > a > div {
    padding: 15px 20px;
}

.link-block img {
    width: 100%;
}

.link-block-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.link-block-text {
    line-height: 2;
}

.section-title {
    position: relative;
    margin: 0 auto;
}
   
.section-title h1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    padding: 30px 0;
}

.section-title div {
    position: absolute;
    display: inline-block;
    font-style: italic;
    font-size: 80px;
    font-weight: bold;
    color: rgba(250, 125, 20, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: -moz-fit-content;
    width: fit-content;
}

.scale-x-80 {
    width: 125%;
    transform: scaleX(0.8);
    margin-left: -12.5%;
}

.arrow.scale-x-80 {
    background-size: 1.5em 1.2em;
}

.scale-x-95 {
    width: 105%;
    transform: scaleX(0.95);
    margin-left: -2.5%;
}

.arrow.scale-x-95 {
    background-size: 1.26em 1.2em;
}

.blocks > div {
    padding: 25px;
}

.block {
    text-align: center;
}

.block-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.block-text {
    text-align: left;
    font-size: 17px;
    line-height: 2;
}

.overlay {
    color: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    margin: 0;
    padding: 0 20px;
    width: -moz-fit-content;
    width: fit-content;
}

.overlay h1 {
    font-weight: bold;
    font-size: 30px;
}

.bg-dark {
    background-color: #000;
}

.bg-dark > img,
.bg-dark > a > img {
    opacity: 0.8;
}

#info > div:nth-of-type(2) > div:nth-of-type(1) {
    font-size: 17px;
    line-height: 1.5;
}

#info > div:nth-of-type(2) .list {
    font-size: 15px;
    width: auto;
}

#info > div:nth-of-type(2) > div:nth-of-type(3) img {
    height: 54px;
    margin: 10px;
}

#map iframe {
    width: 100%;
    height: 400px;
}

.footer-menu > div:nth-of-type(1) {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-menu li {
    font-size: 13px;
    line-height: 2;
}

#footer-info {
    font-weight: bold;
}

#footer-info > div:nth-of-type(1) {
    font-size: 20px;
}

#footer-info > div:nth-of-type(2) {
    font-size: 14px;
}

#copyright {
    text-align: center;
    color: #FFF;
    background-color: #000A41;
    padding: 20px 0;
}

/* ホーム */
.home h2 {
    text-align: center;
    font-size: 24px !important;
    font-weight: bold !important;
}

#main-image {
    position: relative;
}

#main-overlay > div:nth-of-type(1) {
    margin-bottom: 10px;
}

#main-overlay-left > div:nth-of-type(1) {
    color: #FA7D14;
    font-weight: bold;
}

#main-overlay-left > div:nth-of-type(2) div {
    margin: 10px 5px;
}

#main-overlay-right {
    width: 200px;
    display: flex;
    justify-content: space-between;
}

#main-overlay-right > div:nth-of-type(1) {
    width: 80px;
}

#main-overlay-right > div:nth-of-type(2) {
    width: 115px;
    position: relative;
}

#main-overlay-right > div:nth-of-type(2) div {
    font-size: 11px;
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 100%;
    transform: translate(0, -50%);
}

.home #section1 .link-block-title {
    font-size: 20px;
    color: #000A41;
}

.home #section1 li span {
    font-weight: bold;
}

.home #section1 li + li {
    margin-top: 15px;
}

.home #section2 .section-title + div {
    font-size: 17px;
    line-height: 2;
}

.home #section4 .block > div:nth-of-type(1) {
    height: 100px;
    position: relative;
}

.home #section4 .block img {
    width: 85px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.home #section4 .blocks > div:nth-of-type(2) .block img {
    width: 95px;
}

.home #section5 {
    position: relative;
    margin: 30px auto 60px;
}

.home #section5 .section-title h1 {
    color: #FFF;
}

.home #section5 .section-title div {
    color: rgba(255, 255, 255, 0.21);
    width: -moz-fit-content;
    width: fit-content;
}

.home #section5 .section-title + div {
    font-size: 18px;
    line-height: 2;
    color: #FFF;
}

.home #section5 .overlay > div:nth-of-type(3) {
    margin: 30px auto;
}

.home #section5 .overlay > div:nth-of-type(3) img {
    width: 450px;
}

.home #section5 .overlay .link-block {
    width: 450px;
    margin: 0 auto;
    border: none;
}

.home #section5 .overlay .arrow {
    font-size: 16px;
    font-weight: bold;
    padding: 28px 0;
}

/* 下層ページ */
.breadcrumbs {
    margin-bottom: 30px;
}

#main-image .wp-post-image {
    height: 20.83vw;
    object-fit: cover;
}

#main-image.no-image {
    height: 20.83vw;
    background-color: #D3D3D3;
}

.page #main,
.archive #main,
.single #main {
    padding: 10px 20px 30px !important;
}

#content > * {
    margin-left: 20px;
    margin-right: 20px;
}

#content h1,
#main-footer h1 {
    color: #FFF;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    background: #000A41;
    padding: 10px;
    margin: 0 0 40px;
}

#content h1:after,
#main-footer h1:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -20px;
    left: 0;
    width: 0px;
    height: 0px;
    margin: auto;
    border-style: solid;
    border-color: #000A41 transparent transparent transparent;
    border-width: 30px 20px 0 20px;
}

#content h2,
#main-footer h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

#content h3 {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 3px dotted #000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#content h4 {
    font-size: 20px;
    font-weight: bold;
}

#content p {
    line-height: 2;
}

#content ul {
    list-style: disc;
    padding-left: 20px;
}

#content ul {
    list-style: none;
    padding-left: 0;
}

#content ul li {
    line-height: 2;
    background: url("img/checkbox.png") no-repeat left 7px;
    background-size: 20px 15px;
    padding-left: 2em;
}

#content ol {
    counter-reset: my-counter;
    list-style: none;
    padding: 0;
}
   
#content ol li {
    line-height: 2;
    padding-left: 30px;
    position: relative;
}

#content ol li:before {
    content: counter(my-counter);
    counter-increment: my-counter;
    color: #FA7D14;
    font-weight: bold;
    display: block;
    float: left;
    line-height: 15px;
    margin-top: 6px;
    margin-left: -30px;
    text-align: center;
    height: 17px;
    width: 17px;
    border: 1px solid #FA7D14;
    border-radius: 50%;
}

.wp-block-spacer {
    height: 30px !important;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 17px !important;
    color: #000A41 !important;
}

.wp-block-media-text .wp-block-media-text__media {
    padding: 5px 20px;
    align-self: start;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 0 !important;
    align-self: start;
}

#main-footer {
    padding: 0 20px !important;
}

#main-footer section {
    margin: 30px 0;
}

#main-footer section:nth-of-type(1) {
    margin-bottom: 60px;
}

#main-footer .bg-dark {
    font-size: 16px;
    font-weight: bold;
}

#main-footer .link-block img {
    height: 120px;
    object-fit: cover;
}

/* 治療の流れ・料金一覧 */
.page-id-9 #content th {
    background-color: #D5D6D6;
    width: 50%;
}

.page-id-9 #content th,
.page-id-9 #content td {
    border: 1px solid #000;
}

/* 理念と方針・スタッフ紹介 */
.page-id-57 #content table {
    border: none;
}

.page-id-57 #content tr {
    border-bottom: 1px solid #000;
}

.page-id-57 #content th {
    width: 23%;
}

.page-id-57 #content th,
.page-id-57 #content td {
    border: none;
}

/* 患者様の声 */
.page-id-13 .wp-block-gallery {
    width: 90%;
}

.page-id-13 .wp-block-gallery .wp-block-image {
    width: calc(25% - 2em) !important;
    margin: 0 1em !important;
    flex-grow: 0 !important;
}

/* よくあるご質問 */
.wp-block-pb-accordion-item {
    background-color: #F5FDFF;
}

h2.c-accordion__title {
    font-size: 17px !important;
    padding: 30px !important;
    margin-bottom: 0 !important;
    line-height: 2;
}

h2.c-accordion__title span {
    display: inline-block;
    color: #FFF;
    background-color: #FA7D14;
    text-align: center;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

.c-accordion__title:after {
    font-family: 'FontAwesome';
    content: "\f107";
    font-size: 25px;
    font-weight: bold;
    margin-right: 30px;
}

.is-open > .c-accordion__title:after {
    content: "\f106";
}

.c-accordion__content p {
    font-size: 17px !important;
    padding: 30px 30px !important;
    margin-top: -30px !important;
    margin-bottom: 0 !important;
}

.wp-block-pb-accordion-item + .wp-block-pb-accordion-item {
    margin-top: 20px;
}

/* お問い合わせ */
.wpcf7 {
    max-width: 800px !important;
    font-size: 17px !important;
}

.wpcf7 .required {
    display: inline-block;
    font-size: 10px;
    color: #FFF;
    background-color: #C30000;
    padding: 2px 10px;
    margin-left: 10px;
    margin-bottom: 3px;
    vertical-align: middle;
}

.wpcf7 input[type=submit], 
.wpcf7 input[type=reset] {
    margin: 10px auto;
    width: 30% !important;
}

.wpcf7 input[type=submit] {
    color: #FFF !important;
    background-color: #686869 !important;
    border: 2px solid #686869 !important;
}

.wpcf7 input[type=reset] {
    color: #686869 !important;
    border: 2px solid #686869 !important;
}

.wpcf7-spinner {
    display: none !important;
}

/* お知らせ一覧 */
.breadcrumbs a.post-news-archive span:after {
    content: "一覧";
}

.post-list h2 {
    font-size: 20px;
    font-weight: bold;
}

.post-item {
    margin-bottom: 30px;
}

.pagination {
    justify-content: center;
    margin-top: 60px;
}

.pagination ul {
    display: flex;
}

.pagination li .page-numbers {
    display: inline-block;
    background-color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    margin: 0 5px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    font-weight: bold;
}

.pagination li .prev,
.pagination li .next {
    width: 15px;
    height: 15px;
    margin: 0 20px;
    box-shadow: none;
}

.pagination li .prev img {
    transform: scale(-1, 1);
}

.pagination a:hover {
    text-decoration: none;
    opacity: 0.5;
}

.pagination li .current {
    background-color: #FFE3CB;
}

/* お知らせ詳細 */
.breadcrumbs span.post-news-archive:after {
    content: "一覧";
}

.single-news h2.entry-title {
    font-size: 30px;
    font-weight: bold;
}

.single-news .post-date {
    font-size: 17px;
}

.single-news #content {
    margin-top: 30px;
}

.single-news #content p {
    margin-bottom: 1rem;
}

ul.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

ul.navigation li {
    flex-basis: 200px;
}

ul.navigation li a {
    display: inline-block;
    background-color: #fff;
    padding: 15px;
    width: 200px;
    text-align: center;
    line-height: 40px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    font-weight: bold;
}

ul.navigation li:nth-of-type(2) a {
    background-color: #FFE3CB;
}

ul.navigation li a:hover {
    text-decoration: none;
    opacity: 0.5;
}

ul.navigation li img {
    width: 15px;
    height: 15px;
}

ul.navigation li:nth-of-type(1) img {
    transform: scale(-1, 1);
}

@media (min-width: 1200px) {
    .sp {
        display: none !important;
    }

    #header img {
        height: 50px;
        width: auto;
    }

    #info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #info > div:nth-of-type(1) {
        width: 660px;
    }
    
    #info > div:nth-of-type(2) {
        width: 380px;
    }

    #footer {
        padding: 60px 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-menu > div:nth-of-type(2) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-menu ul {
        margin-right: 90px;
    }

    #main-overlay {
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        margin: 0;
        padding: 20px 40px;
        width: 800px;
        background-color: #FFF;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    }

    #main-overlay > div:nth-of-type(1) {
        font-size: 34px;
    }

    #main-overlay > div:nth-of-type(2) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wpcf7 textarea {
        height: 301px !important;
    }
}

@media (max-width: 1199.98px) {
    .pc {
        display: none !important;
    }

    .mob-menu-header-holder {
        background: #FFF !important;
        padding: 5px 0;
    }

    .mobmenur-container i {
        color: #000 !important;
        margin-top: 5px;
    }

    .mobmenu-right-panel li, .rightmbottom, .rightmtop {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-title h1 {
        font-size: 4vw;
    }
    
    .section-title div {
        font-size: 10vw;
    }

    #info > div:nth-of-type(2) > div:nth-of-type(1) {
        margin-top: 10px;
    }

    #footer {
        text-align: center;
        padding: 60px 0 20px !important;
    }

    .footer-menu > div > ul:nth-of-type(1) {
        margin-bottom: 0;
    }

    #main-overlay {
        font-weight: bold;
        padding: 20px;
    }

    #main-overlay > div:nth-of-type(1) {
        font-size: 30px;
    }

    #main-overlay-left > div:nth-of-type(2) div {
        margin: 10px auto;
    }

    #main-overlay-right {
        margin: 10px auto;
    }

    #main-overlay > div:nth-of-type(2) > div:nth-of-type(3) img {
        height: 54px;
        margin: 10px;
    }

    #main .container-xl {
        padding: 30px 10px 60px !important;
    }

    .home #section1 {
        background-color: #EEE;
    }

    .home #section1 .link-block {
        width: 300px;
    }

    .home #news {
        width: 520px;
        margin: 20px auto 30px;
    }

    .home #section2 .link-block-text {
        text-align: center;
    }

    .home #section5 > img {
        width: 100%;
        height: 200vw;
        object-fit: cover;
    }

    .home #section5 .overlay > div:nth-of-type(3) img {
        width: 90%;
    }

    .home #section5 .overlay .link-block {
        width: 90%;
    }

    #main-image .wp-post-image {
        height: 30vw;
    }

    #main-image.no-image {
        height: 30vw;
    }
    
    #main-footer .link-block-text {
        text-align: center;
    }

    ul.navigation li {
        flex-basis: 25vw;
    }

    ul.navigation li a {
        width: 25vw;
    }
}

@media (min-width: 768px) {
    #main-overlay-left > div:nth-of-type(2) {
        width: 510px;
        display: flex;
        justify-content: space-between;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .section-title h1 {
        font-size: 6vw;
    }
    
    .section-title div {
        font-size: 11vw;
    }

    .home #news {
        width: 520px;
        margin: 20px auto 30px;
    }

    .wp-block-gallery .wp-block-image {
        width: 100% !important;
        margin: 0 0 16px !important;
    }

    ul.navigation {
        display: block;
    }

    ul.navigation li {
        width: 80%;
        margin: 0 auto;
    }

    ul.navigation li a {
        width: 100%;
    }

    ul.navigation li + li {
        margin-top: 15px;
    }

    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100% !important;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
    }

    .page-id-9 #content th,
    .page-id-9 #content td {
        display: block;
        border-bottom: none;
        width: 100%;
        text-align: center;
    }

    .page-id-9 #content tr:last-child td:last-child {
        border-bottom: 1px solid #000;
    }
	
	.page-id-49 .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    	flex-basis: 45% !important;
	}
}