@charset "UTF-8";

/* ----------------------------小児歯科治療ページ------------------------------ */
body {
    background: none !important;
}

body:not(.index) header.over + #lv_outer #lv {
    max-height: none !important;
    width: 100%;
}
@media screen and (min-width: 901px) {
    body:not(.index) header.over + #lv_outer #lv {
        padding-top: 0 !important;
    }
}
/*  */
.parallax_img[style*="background-image: url(/images/convert/yamada-dtcom/01_fv_pc.jpg/image.webp);"] {
    background-image: url("/common/upload_data/yamada-dtcom/image/01_fv_pc.jpg") !important;
}

#lv {
    background: none;
}
#lv div {
    opacity: 1;
}

#lv_outer {
    padding-left: 0;
    width: auto;
}

#lv p {
    display: block;
    padding: 0 80px 0;
    text-align: left;
}

#lv p span {
    color: var(--i_txt_color);
    font-size: clamp(3.2rem, 6vw, 6rem);
    line-height: 1.4;
    position: relative;
    text-align: left;
    padding-top: 200px;
    border-bottom: 3px solid var(--i_txt_color);
    display: inline;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}

#lv p span::before {
    position: absolute;
    display: block;
    content: "";
    background: url("/common/upload_data/yamada-dtcom/image/point_pc.png") no-repeat top left / contain;
    width: 600px;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

#lv_txt + section {
    padding: 0 60px;
    top: -250px;
}
#lv_txt + section .inner_item_txt p {
    font-size: clamp(1.6rem, 1.8vw, 2rem);
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
@media screen and (min-width: 901px) {
    body:not(.index) header.over + #lv_outer #lv {
        height: 100vh !important;
    }
}
@media screen and (max-width: 900px) {
    #lv_outer {
        padding-top: 80px;
    }
    #lv:not(.parallax) .parallax_img {
        background-position: 85% 50% !important;
    }

    #lv p {
        padding: 140px 20px 0;
    }
    #lv p span {
        padding-top: 20vw;
    }
    #lv p span::before {
        background-size: 60vw;
    }
    #lv_txt + section {
        padding: 0;
        top: 0;
    }

}
@media screen and (max-width: 600px) {
    #lv p span {
        padding-top: 30vw;
    }
    #lv p span::before {
        background-size: 80vw;
    }
}
/*  */
#pan {
    padding: 0 var(--i_padding, 20px);
    border-bottom: 1px solid var(--i_border_color);
    display: none;
}

#pan ul,
#pan ol {
    justify-content: flex-end;
    margin-left: auto;
}

#pan li {
    padding: 5px 0 3px 30px;
}

/*  */
main {
    overflow: hidden;
}

body:not(.index) main > section:first-of-type {
    background: none !important;
}

body:not(.index) main > section:first-of-type .content_wrapper::before,
body:not(.index) main > section:first-of-type::after {
    background: none;
}

body:not(.index) main > section:nth-of-type(2):not(.news_archive):not(.gallery_archive) {
    margin-top: 0;
}

.dec1_1:not(.block_images_21) > .content_wrapper {
    background: var(--i_bg_color);
}

/* 見出し */
.heading.block_header_1 p,
.heading.block_header_6 .h {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 2vw, 2.3rem) !important;
}
.heading.block_header_1 .h,
.heading.block_header_6 p {
    font-size: clamp(2.8rem, 3vw, 4rem);
    line-height: 1.3;
}
.heading.block_header_2 .h {
    font-size: clamp(2.2rem, 2.5vw, 3rem) !important;
}

a[id$="_ttl"] + section .inner_item_txt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    line-height: 1.2;
}


/* コンテンツ */
#thougt_ttl + section .content_wrapper {
    position: relative;
}
#thougt_ttl + section .content_wrapper:before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    top: -50px;
    left: 0;
    background: url("/common/upload_data/yamada-dtcom/image/02_img01_pc.png") no-repeat top left / 300px;
    pointer-events: none;
}

#thougt_ttl + section .inner_item_txt p.point {
    font-size: clamp(2.6rem, 3vw, 4rem);
    color: var(--i_main_color);
    line-height: 1.5;
    width: fit-content;
    border-bottom: 3px dotted var(--i_main_color);
    margin: 0 auto 15px;
}


@media screen and (min-width: 1201px) {
    #thougt_ttl + section .content_wrapper:before {
        left: -100px;
    }
    #thougt_ttl + section .inner_item_txt p.point span br {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    #thougt_ttl + section .content_wrapper:before {
        display: none;
    }
    #pedodontics01_sp + div.composite_box01 .inner_item {
        width: 100% !important;
    }
    #pedodontics01_sp + div.composite_box01 .inner_item:last-of-type {
        margin-left: 0 !important;
        padding-top: 30px;
    }
    #pedodontics01_sp + div.composite_box01 .inner_item .heading .h {
        font-size: clamp(2.2rem, 2.5vw, 3rem) !important;
        color: var(--i_main_color);
    }
}

@media screen and (max-width: 800px) {
    #thougt_ttl + section .inner_item_txt p.point {
        border-bottom: none;
    }
    #thougt_ttl + section .inner_item_txt p.point span {
        border-bottom: 3px dotted var(--i_main_color);
        display: inline-block;
    }

}

/* PC時SP時表示分け */
@media screen and (min-width: 901px) {
    #pedodontics01_sp + div {
        display: none;
    }
}
@media screen and (max-width: 900px) {
    #pedodontics01_pc + section {
        display: none;
    }
}

/* 小児歯科が大切な理由 */
#important_ttl + section .wrapper_item {
    width: fit-content;
    margin: 0 auto;
}
#important_ttl + section .inner_item_txt p {
    background: linear-gradient(transparent 70%, #fff000 70%);
    display: block;
    line-height: 1.5;
    font-weight: bold;
    box-decoration-break: clone;
}
@media screen and (max-width: 900px) {
    #pedodontics02 + section + section > .content_wrapper .wrapper_item {
        display: flex;
        flex-direction: column-reverse;
    }
    #pedodontics02 + section + section.contents_box01 .inner_item_txt {
        margin-bottom: 20px;
    }
    #pedodontics02 + section + section.contents_box01 .inner_item_img {
        margin-bottom: 0;
    }
}
@media screen and (max-width: 600px) {
    #important_ttl + section .inner_item_txt p {
        /* display: inline; */
    }
}

/* 保護者の方へのお願い */
#please_ttl + section .wrapper_item {
    width: fit-content;
    margin: 0 auto;
}
#please_ttl + section .inner_item_txt p {
    background: linear-gradient(transparent 70%, #fff000 70%);
    display: block;
    line-height: 1.5;
    font-weight: bold;
    box-decoration-break: clone;
}

/* */
#please_2 + .dec2_3:not(.composite_box01):not(.block_text_6) .wrapper_item {
    border: 2px solid #f25946;
}
#please_2 + .contents_box01 .inner_item_txt .heading.block_header_2 .h {
    color: #f25946;
}
#please_3 + .dec2_3:not(.composite_box01):not(.block_text_6) .wrapper_item {
    border: 2px solid #7cc4ea;
}
#please_3 + .contents_box01 .inner_item_txt .heading.block_header_2 .h {
    color: #7cc4ea;
}

@media screen and (max-width: 900px) {
    #pedodontics04 + section > .content_wrapper .wrapper_item,
    #please_2 + section > .content_wrapper .wrapper_item,
    #please_3 + section > .content_wrapper .wrapper_item {
        display: flex;
        flex-direction: column-reverse;
    }
    #pedodontics04 + section.contents_box01 .inner_item_txt,
    #please_2 + section.contents_box01 .inner_item_txt,
    #please_3 + section.contents_box01 .inner_item_txt {
        margin-bottom: 20px;
    }
    #pedodontics04 + section.contents_box01 .inner_item_img,
    #please_2 + section.contents_box01 .inner_item_img,
    #please_3 + section.contents_box01 .inner_item_img {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 600px) {
    #please_ttl + section .inner_item_txt p {
        display: inline;
    }
}
/* 黒木歯科医院の小児歯科4つのポイント */
a[id^="pedodontics03"] + div .inner_item_img img {
    object-fit: contain;
}
a[id^="pedodontics03"] + div .inner_item {
    position: relative;
    padding: 2%;
}
a[id^="pedodontics03"] + div .inner_item:before {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: calc(100% - 80px);
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: var(--i_bg_color);
    z-index: -1;
}

/* 診療について */
#pedodontics05 + div .inner_item > a {
    padding-top: 20px;
}
#pedodontics05 + div .inner_item_img img {
    object-fit: contain;
    max-width: 250px;
    height: auto !important;
}

/* お子さまのための予防プラン */
#plan_1 + section .heading.block_header_3 {
    background: var(--i_main_color);
    color: #fff;
}
#plan_1 + section .heading.block_header_3 .h {
    font-size: clamp(2.2rem, 2.5vw, 2.6rem) !important;
}
a[id*="plan"] + section,
a[id*="plan"] + div .wrapper_item {
    overflow: visible;
}
a[id*="plan"] + section > .content_wrapper,
a[id*="plan"] + div > .content_wrapper {
    border-left: 3px solid var(--i_txt_color);
    border-right: 3px solid var(--i_txt_color);
    width: calc(100% - 20px);
}
#plan_1 + section > .content_wrapper {
    border-top: 3px solid var(--i_txt_color);
    padding-top: 30px;
    border-radius: 20px 20px 0 0;
}
a[id*="plan"] + div > .content_wrapper {
    padding: 30px var(--i_padding, 20px);
}
#plan_3 + section > .content_wrapper {
    border-bottom: 3px solid var(--i_txt_color);
    padding-bottom: 30px;
    border-radius: 0 0 20px 20px;
}

a[id*="plan"] + section .heading.block_header_2 .h,
a[id*="plan"] + div .heading.block_header_4 .h {
    font-size: clamp(1.8rem, 2.3vw, 2.6rem) !important;
    background: var(--i_bg_color);
    color: var(--i_main_color);
    padding: 5px 10px 5px 10px !important;
}
a[id*="plan"] + div .heading.block_header_4 .h {
    margin-bottom: 30px;
}

a[id*="plan"] + section .inner_item_img,
a[id*="plan"] + div .inner_item {
    position: relative;
}
a[id*="plan"] + div .inner_item {
    margin-top: 20px;
}
a[id*="plan"] + section .inner_item_img:before,
a[id*="plan"] + div .inner_item:before {
    position: absolute;
    display: block;
    content: '';
    width: 56px;
    height: 56px;
    top: -20px;
    left: -10px;
    pointer-events: none;
    z-index: 3;
}
#plan_1 + section .inner_item_img:before {
    background: url("/common/upload_data/yamada-dtcom/image/plan01.png") no-repeat left top / contain;
}
#plan_2 + div .inner_item:nth-of-type(1):before {
    background: url("/common/upload_data/yamada-dtcom/image/plan02.png") no-repeat left top / contain;
}

#plan_2 + div .inner_item:nth-of-type(2):before {
    background: url("/common/upload_data/yamada-dtcom/image/plan03.png") no-repeat left top / contain;
}
#plan_2 + div .inner_item:nth-of-type(3):before {
    background: url("/common/upload_data/yamada-dtcom/image/plan04.png") no-repeat left top / contain;
}
#plan_3 + section .inner_item_img:before {
    background: url("/common/upload_data/yamada-dtcom/image/plan05.png") no-repeat left top / contain;

}
/* 医院紹介 */
#pedodontics06 + section .inner_item_txt ul {
    background: var(--i_bg_color);
    padding: 20px;
}
#pedodontics06 + section .inner_item_txt ul li {
    list-style: none;
    font-weight: bold;
}
#pedodontics06 + section .inner_item_txt ul li:first-child {
    color: var(--i_main_color);
}

#pedodontics06 + section .inner_item_img img {
    box-shadow: 20px 20px 0 var(--i_btn_color);
    border-radius: 20px;
}
@media screen and (min-width: 901px) {
    #pedodontics06 + section .inner_item_txt {
        padding-left: 8% !important;
    }
}
@media screen and (max-width: 900px) {
    #pedodontics06 + section .inner_item_img {
        margin-bottom: 30px;
    }
    #pedodontics06 + section .inner_item_img img {
        box-shadow: 10px 10px 0 var(--i_btn_color);
    }
}

/*-----------------------20251208追加------------------------------*/
@media screen and (min-width: 901px) {
        #lv_outer {
          padding-top: 165px;
}
}

@media screen and (min-width: 901px) and (max-width: 911px) {
    #lv_outer {
        padding-top: 220px;
    }
}

@media screen and (max-width: 1024px) and (min-width: 778px) {
	a#btn+div .content_wrapper {
    max-width: 600px !important;
}
}