@charset "UTF-8";

@charset "UTF-8";

/*------------------背景調整------------------*/
body::after {
    background: url(/common/upload_data/ohnishinaikacom/image/20240703105352.png) no-repeat center bottom/100% auto;
    z-index: -1;
}

#image_sp + section {
    display: none;
}
@media screen and (max-width: 600px) {
    #image_pc + section {
        display: none;
    }
    #image_sp + section {
        display: block;
    }
}

/*------------------リンクボタンカラー調整------------------*/
/*外来診察*/
#top_online_yoyaku + section .contents_btn01 a,
#top_online_shinsatsu + div .content_wrapper a {
    background-image: url(/common/upload_data/ohnishinaikacom/image/20240703130223.png);
}
#top_online_yoyaku + section .contents_btn01 a:hover,
#top_online_shinsatsu + div .content_wrapper a:hover {
    background: url(/common/upload_data/ohnishinaikacom/image/20240709100654.jpg) no-repeat center / cover;
}

/*------------------3カラムレイアウト調整------------------*/
#top_3col + div .inner_item {
    width: 250px;
    height: 250px;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
}
#top_3col + div .wrapper_item {
    justify-content: center;
    gap: 20px;
}
#top_3col + div .wrapper_item a {
    transition: 0.3s;
}
#top_3col + div .wrapper_item a:hover {
    opacity: .5;
}
#top_3col + div .inner_item:nth-of-type(1) > a {
    pointer-events: none;
}
#top_3col + div .inner_item_img,
#top_3col + div .inner_item_txt .heading {
    height: 100% !important;
    /*! pointer-events: none; */
}
#top_3col + div .inner_item_txt .heading:before {
    background: none;
}

@media screen and (max-width: 600px) {
    #top_3col + div .inner_item {
        width: 48%;
        height: 48%;
    }

}
@media screen and (max-width: 500px) {
    #top_3col + div .inner_item:first-of-type {
        width: 53% !important;
    }
    #top_3col + div .inner_item:nth-of-type(2),
    #top_3col + div .inner_item:nth-of-type(3) {
        width: 46% !important;
    }
}

/* top_doctor */
/*------------------TOP医師紹介背景調整------------------*/
#top_doctor + section:before,
#top_doctor + div:before,
#top_doctor_sp + div:before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 100%;
    height: 100%;
    background: url(/common/upload_data/ohnishinaikacom/image/20240709110848.png) no-repeat right 3.489vw bottom 2.434vw / 7.434vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709110855.png) no-repeat left bottom 4.27vw / 9.6875vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709110858.png) no-repeat center top -2.03125vw / 1212px 979px, url(/common/upload_data/ohnishinaikacom/image/20240709110851.jpg) no-repeat center bottom / 100% 100%;
}

@media screen and (max-width: 640px) {
    #top_doctor + section:before,
    #top_doctor + div:before,
    #top_doctor_sp + div:before {
        background: url(/common/upload_data/ohnishinaikacom/image/20240709110848.png) no-repeat right bottom 141px / 70px auto, url(/common/upload_data/ohnishinaikacom/image/20240709110855.png) no-repeat left 11px bottom 82px / 90px auto, url(/common/upload_data/ohnishinaikacom/image/20240709110851.jpg) no-repeat center bottom / 100% 100%;
    }
    #top_doctor + section,
    #top_doctor + div,
    #top_doctor_sp + div {
        padding-left: 10px;
        padding-right: 10px;
    }
    #top_doctor + section .content_wrapper,
    #top_doctor + div .content_wrapper,
    #top_doctor_sp + div .content_wrapper {
        background: #fff;
        padding: 20px;
        border-radius: 30px;
    }
}

/* 0712追記 */

#top_doctor + div .inner_item_img,
#top_doctor_sp + div .inner_item_img {
    border-radius: 20px;
}

#top_doctor + div .inner_item:nth-of-type(1) .inner_item_txt .heading.block_header_4 .h,
#top_doctor_sp + div .inner_item:last-of-type .inner_item_txt .heading.block_header_4 .h {
    font-size: 2.6rem !important;
    color: var(--i_txt_color);
    background: url("/common/upload_data/ohnishinaikacom/image/greeting_tit_wave.png") no-repeat left bottom / contain;
    padding-bottom: 20px;
    letter-spacing: 0.2rem;
}
#top_doctor + div .inner_item:nth-of-type(1) .inner_item_txt p {
    line-height: 2.5;
}
#top_doctor + div .inner_item:last-of-type .heading .h,
#top_doctor_sp + div .inner_item:first-of-type .heading .h {
    text-align: center;
    color: var(--i_txt_color);
}

#top_doctor + div .inner_item:last-of-type .inner_item_img,
#top_doctor_sp + div .inner_item:first-of-type .inner_item_img {
    position: relative;
    max-width: 450px;
}
#top_doctor + div .inner_item:last-of-type .inner_item_img::before,
#top_doctor_sp + div .inner_item:first-of-type .inner_item_img::before {
    position: absolute;
    display: block;
    content: "";
    background: url("/common/upload_data/ohnishinaikacom/image/icon1.png") no-repeat right bottom /18% auto;
    width: 100%;
    height: 100%;
    bottom: -30px;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

#top_doctor + .composite_box01 .inner_item_img img,
#top_doctor_sp + .composite_box01 .inner_item_img img {
    border-radius: 20px;
    max-height: 300px;
    object-position: 50% 0%;
}


#top_doctor + div .inner_item_txt p > a,
#top_doctor_sp + div .inner_item_txt p > a {
    background-image: url("/common/upload_data/ohnishinaikacom/image/20240703130231.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    transition: .4s ease-in-out;
    border-radius: 50px;
    text-decoration: none;
    text-decoration-color: currentcolor;
    padding: 8px 15px;
    min-width: 200px;
    font-size: 1.6rem;
    font-family: "Zen Maru Gothic", serif;
}

#top_doctor + div .inner_item_txt p > a::before,
#top_doctor_sp + div .inner_item_txt p > a::before {
    position: absolute;
    content: " ";
    width: 7px;
    height: 7px;
    top: calc(50% - 3px);
    left: 5px;
    border-top: 1px solid #fff !important;
    border-right: 1px solid #fff !important;
    transform: rotate(45deg);
    transition: all 0.3s ease;
    z-index: 10;
}

#top_doctor + div .inner_item_txt p > a:hover::before,
#top_doctor_sp + div .inner_item_txt p > a:hover::before {
    left: 10px;
}

#top_doctor + div .inner_item_txt p > a:hover,
#top_doctor_sp + div .inner_item_txt p > a:hover {
    background: url("/common/upload_data/ohnishinaikacom/image/20240709100654.jpg") no-repeat center / cover;
}

#top_doctor + div .inner_item_txt p > a[href="/doctor/"] {
    margin-bottom: 30px;
}
#top_doctor_sp + div .inner_item_txt p > a[href="/doctor/"] {
    margin-bottom: 20px;
    margin-top: 10px;
}
#top_doctor + div .inner_item:last-of-type .heading,
#top_doctor_sp + div .inner_item:last-of-type .heading {
    margin-bottom: 5px;
}
#top_doctor + div .inner_item:last-of-type .inner_item_txt p,
#top_doctor_sp + div .inner_item:first-of-type .inner_item_txt p {
    font-size: 2.1rem;
    font-family: "Zen Maru Gothic", serif;
    font-weight: bold;
}
#top_doctor + div .inner_item_txt p span,
#top_doctor_sp + div .inner_item_txt p span {
    display: block;
    color: #ef9348;
    font-size: 1.3rem;

}
#top_doctor + div .gretting_bnr,
#top_doctor_sp + div .gretting_bnr {
    text-align: center;
}

@media screen and (max-width: 800px) {
    #top_doctor + div .inner_item:nth-of-type(1) .inner_item_txt .heading.block_header_4 .h,
    #top_doctor_sp + div .inner_item:last-of-type .inner_item_txt .heading.block_header_4 .h {
        font-size: 2.2rem !important;
        padding-bottom: 13px;
        text-align: left;
    }

    #top_doctor + div .inner_item:nth-of-type(1) .inner_item_txt p,
    #top_doctor_sp + div .inner_item:last-of-type .inner_item_txt p {
        line-height: 2.0;
    }

    #top_doctor + div .inner_item_txt p > a,
    #top_doctor_sp + div .inner_item_txt p > a {
        margin-bottom: 30px;
    }

}

@media screen and (max-width: 600px) {
    #top_doctor + div .inner_item_txt p > a,
    #top_doctor_sp + div .inner_item_txt p > a {
        min-width: 170px;
    }
    #top_doctor + div .inner_item:nth-last-of-type(1),
    #top_doctor_sp + div .inner_item:nth-last-of-type(1) {
        margin-bottom: 30px !important;
    }
}
@media screen and (min-width: 481px) {
    #top_doctor_sp + div {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    #top_doctor + div {
        display: none;
    }
}

/* news */
.block_news_1 li > p,
.block_news_1 li a > p {
    width: 130px;
}

/* 当院の特徴 */
a[id^="f_"] + section .inner_item_txt {
    position: relative;
}

a[id^="f_"] + section .inner_item_txt::before {
    position: absolute;
    display: block;
    font-size: 5rem;
    font-weight: 700;
    color: var(--i_main_color);
    top: 0;
    left: 50px;
    pointer-events: none;
    line-height: 1.3;
    letter-spacing: 0;
    text-shadow: 2px 2px 2px var(--i_bg_color);
    font-family: "Zen Maru Gothic", serif;
    content: "01";
}
#f_2 + section .inner_item_txt::before {
    content: "02";
    color: var(--i_btn_hover_color);
    left: 0;
}
#f_3 + section .inner_item_txt::before {
    content: "03";
}
#f_4 + section .inner_item_txt::before {
    content: "04";
    color: var(--i_btn_hover_color);
    left: 0;
}
#f_5 + section .inner_item_txt::before {
    content: "05";
}
#f_6 + section .inner_item_txt::before {
    content: "06";
    color: var(--i_btn_hover_color);
    left: 0;
}

a[id^="f_"] + section .heading.block_header_2 .h {
    border-bottom: none;
    font-size: 2.5rem;
    color: var(--i_txt_color);
    padding-left: 80px;
}
a[id^="f_"] + section .heading.block_header_2 .h::before {
    display: none;
}

a[id^="f_"] + section .contents_btn01 > .content_wrapper {
    text-align: end;
    position: relative;
}
a[id^="f_"] + section .contents_btn01 > .content_wrapper::before {
    position: absolute;
    display: block;
    content: "";
    border-bottom: 5px dotted rgba(104, 74, 29, 0.13);
    width: 60%;
    height: 100%;
    left: 0;
    transform: translateY(-50%);
    top: -5%;
}

@media screen and (min-width: 901px) {
    a[id^="f_"] + .contents_box01.block_image_text_3 .inner_item_txt {
        padding-left: 50px;
    }
    a[id^="f_"] + .contents_box01.block_image_text_4 .inner_item_txt {
        padding-right: 50px;
    }

}

@media screen and (max-width: 1000px) {
    [class*="dec2_"][class*="block_image_text_"]:not([class*="block_image_text_11"]):not([class*="block_image_text_12"]) .wrapper_item {
        padding: 2vw !important;
    }
}

@media screen and (max-width: 900px) {
    a[id^="f_"] + section .inner_item_txt::before {
        left: 0;
        font-size: 4rem;
        line-height: 1.0;
    }
    a[id^="f_"] + section .heading.block_header_2 .h {
        padding-left: 50px;
        padding-bottom: 0;
        line-height: 2.1;
    }
}
@media screen and (max-width: 600px) {
    a[id^="f_"] + section .inner_item_txt::before {
        font-size: 3.5rem;
        top: -2px;
    }
}

/* 診療時間テーブル */
div[class*="block_table_"]:not([style*=" color:"]) table {
    background: none;
}
.block_table_5 table thead {
    background: none;
}
.block_table_5 table thead > tr {
    border-bottom: none;
}
.block_table_5 table td:not(:first-child) {
    color: var(--i_main_color);
}
.block_table_5 table thead th:first-child {
    /*border-radius: 100px 0 0 100px;*/
}
.block_table_5 table thead th:last-child {
    /*border-radius: 0 100px 100px 0;*/
}
.block_table_5 table th,
.block_table_5 table td {
    border: none;
}
.block_table_5 table tr {
    border-bottom: 1px dashed rgba(114, 92, 60, 0.4);
}

/* mv */
@media screen and (min-width: 1900px) and (min-height: 1000px) {
    #mv {
        min-height: 680px !important;
    }
}
@media screen and (max-width: 768px) {
    #mv .mv_text {
        bottom: 7% !important;
    }
}

/*------------------MVイラスト調整------------------*/
#mv:before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 100%;
    height: 100%;
    z-index: 3;
    background: url(/common/upload_data/ohnishinaikacom/image/20240709103711.png) no-repeat left bottom / 17vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103715.png) no-repeat right bottom / 17vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103705.png) no-repeat left 20vw bottom 2.5vw / 7vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103708.png) no-repeat right 20vw bottom 1vw / 7vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103702.png) repeat-x center bottom -4.5vw / contain;
}
@media screen and (min-width: 901px) and (max-width: 1500px) {
    #mv:before {
        background-position: left bottom, right bottom, left 20vw bottom 2.5vw, right 20vw bottom 1vw, center bottom -5vw;
        background-size: 13vw auto, 13vw auto, 7vw auto, 7vw auto, contain;
    }
}
@media screen and (min-width: 901px) and (min-height: 700px) {
    #mv:before {}
}
@media screen and (max-width: 640px) {
    #mv:before {
        background: url(/common/upload_data/ohnishinaikacom/image/20240709103711.png) no-repeat left bottom / 17vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103715.png) no-repeat right bottom / 17vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103705.png) no-repeat left 21vw bottom 6vw / 10vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103708.png) no-repeat right 21vw bottom 1.5vw / 12vw auto, url(/common/upload_data/ohnishinaikacom/image/20240709103702.png) no-repeat center bottom / 100% auto;
    }
}

/*----------------MVテキスト調整------------------------*/
body:not(.edit_view).done #mv.mv_mp4_pv .mv_text {
    opacity: 1;
}

#mv .mv_text {
    display: grid;
    place-content: center;
    height: 100%;
    bottom: 0% !important;

}
#mv .mv_text h2 {
    text-align: center;
    font-size: min(4rem, 3.6vw) !important;
    color: var(--i_txt_color);
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 1), 1px 1px 8px rgba(255, 255, 255, 1), -1px -1px 8px rgba(255, 255, 255, 1);
    white-space: nowrap;
}

@media screen and (max-width: 1200px) {
    #mv .mv_text h2 {
        font-size: 3.0vw !important;
    }
}
@media screen and (max-width: 600px) {
    #mv .mv_text h2 {
        font-size: min(6vw) !important;
    }
}

/*------------------MVテキストイラスト追加------------------*/

#mv .mv_text > div::before {
    position: absolute;
    bottom: -37px;
    left: -73px;
    content: "";
    width: 61px;
    height: 35px;
    background: url("/common/upload_data/ohnishinaikacom/image/maincatch_deco01.png") no-repeat center/cover;
    z-index: -1;
}
#mv .mv_text > div::after {
    position: absolute;
    top: -55px;
    right: -104px;
    content: "";
    width: 161px;
    height: 88px;
    background: url("/common/upload_data/ohnishinaikacom/image/maincatch_deco02.png") no-repeat center/cover;
    z-index: -1;
}
@media screen and (max-width: 600px) {
    #mv .mv_text > div::before {
        bottom: -30px;
        left: -40px;
        width: 49px;
        height: 28px;
    }
    #mv .mv_text > div::after {
        top: -35px;
        right: -50px;
        width: 115px;
        height: 63px;
    }
}


/* TOP見出しイラスト変更 */
#top_blog + div .heading.block_header_1,
#top_blog + div .heading.block_header_6,
a[id^="top_doctor"] + div .heading.block_header_1,
a[id^="top_doctor"] + div .heading.block_header_6,
a[id^="top_doctor"] + div .heading.block_header_1,
a[id^="top_hd"] + section .heading.block_header_1,
a[id^="top_hd"] + section .heading.block_header_6 {
    background: url(/common/upload_data/ohnishinaikacom/image/h_bt.png) no-repeat center bottom 5px / 35px auto, url(/common/upload_data/ohnishinaikacom/image/20240703112145.png) no-repeat right top / 60px auto, url(/common/upload_data/ohnishinaikacom/image/20240703112150.png) no-repeat left top 5px / 55px auto;
    width: fit-content;
    margin: 0 auto 45px;
    padding: 0px 5vw 20px;
}
#top_hd_c + section .heading.block_header_1,
#top_hd_c + section .heading.block_header_6 {
    padding: 0px 6vw 20px;
}

@media screen and (max-width: 950px) {
    #top_blog + div .heading.block_header_1,
    #top_blog + div .heading.block_header_6,
    a[id^="top_doctor"] + div .heading.block_header_1,
    a[id^="top_doctor"] + div .heading.block_header_6,
    a[id^="top_hd"] + section .heading.block_header_1,
    a[id^="top_hd"] + section .heading.block_header_6 {
        background-size: 35px auto, 80px auto, 45px auto;
    }
    #top_hd_c + section .heading.block_header_1,
    #top_hd_c + section .heading.block_header_6 {
        padding: 0px 12vw 20px;
    }

}
@media screen and (max-width: 500px) {
    #top_blog + div .heading.block_header_1,
    #top_blog + div .heading.block_header_6,
    a[id^="top_doctor"] + div .heading.block_header_1,
    a[id^="top_doctor"] + div .heading.block_header_6,
    a[id^="top_hd"] + section .heading.block_header_1,
    a[id^="top_hd"] + section .heading.block_header_6 {
        background-size: 35px auto, 70px auto, 40px auto;
        padding: 0px 10vw 20px;
    }
    #top_hd_c + section .heading.block_header_1,
    #top_hd_c + section .heading.block_header_6 {
        padding: 0px 20vw 20px;
    }
}

/* 診療時間テーブル */
.block_table_5 table thead > tr {
    back ground-color: var(--i_txt_color);
}
/*背景*/
@media screen and (max-width: 768px) {
body::after {
    background: url(/common/upload_data/ohnishinaikacom/image/20240724150123.png) no-repeat center bottom / 100% auto;
    z-index: -1;
}
}
/*イラスト追加*/
@media screen and (max-width: 500px) {
#top_3col + div .inner_item:first-of-type {
   posititon: relative;
}
#top_3col + div .inner_item:first-of-type::before,
#top_3col + div .inner_item:first-of-type::after  {
  content: "";
  background: url(/common/upload_data/ohnishinaikacom/image/20240724150120.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 23vw;
  height: 23vw;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#top_3col + div .inner_item:first-of-type::before{
  left: -23vw;
}
#top_3col + div .inner_item:first-of-type::after{
  right: -23vw;
}
}

/*TOP3カラム*/
#top_3col + div .inner_item:first-child .inner_item_txt{
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
}
#top_3col + div .inner_item:first-child .inner_item_txt a{
   color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 2rem;
    font-family: "Zen Maru Gothic", serif !important;
}
@media screen and (max-width: 900px) {
#top_3col + div .inner_item:first-child .inner_item_txt a {
    font-size: min(3.8vw,1.8rem);
}
#top_3col + div .inner_item .inner_item_txt h3{
    font-size: min(3.8vw,1.8rem)  !important;
}
}