@charset "utf-8";

html {
    font-size: 100%;
    scroll-padding-top: 100px;
}
img {
    max-width: 100%;
}
.zen-maru-gothic-regular {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
}
.big {
    font-size: 1.3rem;
}
.bold {
    font-weight: bold;
}
  
/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: calc(100vh);
    background-image: url(../img/top_img.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 50px;
}
header h1 {
    border-radius: 0 0 20px 0;
    height: 120px;
    z-index: 1;
}
header img {
    height: 100px;
    margin-left: 30px;
}

.nav {
    display: flex;
    position: fixed;
    right: 0;
    align-items: flex-end;
    background-color: #fdfdf9;
    border-radius: 0 0 0 20px;
    border-left:#999 solid 0.3px;
    border-bottom: #999 solid 0.3px;
    height: 90px;
    z-index: 100;
}
.nav ul {
    display: flex;
    margin-left: 20px;
    margin-bottom: 15px;
}
.nav li {
    padding: 13px 10px 10px 30px;
    margin-right: 10px;
}
.nav li:last-child {
    margin-right: 20px;
}
.nav li:hover {
    background-image: url(../img/navicon.png);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 5px 8px;
    background-color: #eeeeee;
    border-radius: 25px;
}
.nav_sns {
    display: none;
}
.navright {
    margin-right: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    padding-left: 30px;
    border-left: dotted black 2px;
}
.navright a {
    font-size: 2rem;
}
.topcomment {
    position: absolute;
    bottom: 70px;
    left: 50px;
    font-size: 2.5rem;
    text-shadow: 0 0 20px white;
    z-index: 2;
}
/* 他のページヘッダー */
#consultation header, #about header, #faq header {
    height: calc(100vh - 200px);
    background-image: url(../img/top_ai_dogcat.jpg);
    background-position: center;
}
#consultation .topcomment, #about .topcomment, #faq .topcomment {
    display: none;
}

/* フッター */
footer {
    background-color: #e9ffce;
}
.footer {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.footer_l {
    width: 400px;
}
footer .logo {
    width: 150px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.insta_box {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    line-height: 1.7;
}
footer .insta {
    width: 100px;
    margin-right: 30px;
}
.footer_r {
    width: 550px;
    position: relative;
}
.footer_r ul {
    display: flex;
}
.footer_r ul li {
    text-decoration: underline;
    padding: 20px;
}
.footer_r ul li:hover {
    opacity: 0.5;
}
.totop {
    position: absolute;
    right: 20px;
    top: 20px;
}    
.copy {
    font-size: 0.7rem;
    text-align: center;
    padding-bottom: 10px;
}

/* 複数ページ共通 */
main {
    max-width: 960px;
    margin: 0 auto;
}
body {
    color: #333333;
    background-color: #FFFEF8;
    line-height: 1.5;
}
h2 {
    font-size: 1.5rem;
}
section {
    margin-bottom: 100px;
}

.page_title {
    font-size: 2rem;
    text-align: center;
    width: fit-content;
    margin: 0 auto 30px; 
    padding: 0 35px 0 40px;
    background-image: url(../img/title_dog.png), url(../img/title_cat.png);
    background-repeat: no-repeat, no-repeat;
    background-size: 35px, 30px;
    background-position: left center, right center;
}
.subnavi {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    border-top: #333333 dotted 1px;
    border-bottom: #333333 dotted 1px;
    padding: 10px 0;
}
.subnavi li {
    font-size: 1.3rem;
    padding: 10px 20px;
    border-radius: 30px;
}
.subnavi li:hover {
    background-color: #666666;
    color: white;
}
.sec_title {
    text-align: center;
    margin-bottom: 20px;
}

/* トップページ */

#index header {
    margin-bottom: 70px;
}
.intro, #top_time, .navibox, #map{
    margin-bottom: 50px;
}
.intro {
    display: flex;
    width: 100%;
    justify-content: center;
}

.intro img {
    height: 200px;
    margin-top: 10px;
    margin-right: 50px;
}
.intro_right {
    width: 650px;
}
.balloon4 {
    position: relative;
    margin: 0 30px 30px;
    padding: 15px;
    background: #fff0c6;
    border-radius: 30px;
}
.balloon4:before {
    content: "";
    position: absolute;
    left: -38px;
    width: 13px;
    height: 12px;
    bottom: 0;
    background: #fff0c6;
    border-radius: 50%;
}
.balloon4:after {
    content: "";
    position: absolute;
    left: -24px;
    width: 20px;
    height: 18px;
    bottom: 3px;
    background: #fff0c6;
    border-radius: 50%;
}
.balloon4 p {
    margin: 0;
    padding: 10px 10px 5px;
    font-size: 1.7rem;
    text-align: center;
    line-height: 1.3;
}
.intro_rb {
    width: 500px;
    margin-left: 60px;
    line-height: 1.7;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
}

.index_section_title {
    margin-bottom: 15px;
}

.timeflex {
    display: flex;
    justify-content: space-between;
}
.time_l {
    width: 45%;
    margin-right: 30px;
}
.timetable {
    border-collapse: collapse;
    margin-bottom: 50px;
}
.timetable th,.timetable td {
    border: 1px solid gray;
    padding: 10px 15px;
}
.timetable th {
    background-color: #EFD473;
    color: white;
    text-align: center;
}
.timetable .tblue {
    background-color: #7396EF;
}
.timetable .tred {
    background-color: #F16767;
}
.time_l p {
    margin-bottom: 15px;
}
.time_l p:nth-child(4) {
    margin-bottom: 80px;
}
.time_l a {
    color: white;
    background-color: #E4C143;
    font-size: 2rem;
    margin-left: 60px;
    padding: 10px 20px;
    border-radius: 20px;
}
#top_time .calendar {
    width: 45%;
}
#top_time .calendar iframe {
    width: 100%;
}

.navibox {
    display: flex;
    justify-content: space-around;
    margin-top: 80px;
    margin-bottom: 80px;
}
.button014 a {
    background: #eee;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 40px 50px 40px 40px;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button014 a::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid #8ABA29;
  transition: 0.2s;
}
.button014 a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid #333333;
  border-right: 3px solid #333333;
  transform: rotate(45deg);
}
.button014 a:hover::before {
  top: 0;
  left: 0;
}
.button014 a:hover {
  text-decoration: none;
  background-color: #e1eec0;
}

#map p {
    line-height: 1.5;
}
#map iframe {
    margin: 30px auto 100px;
}

/* 診療案内 */
section {
    width: 100%;
}
.consul_img {
    width: 50%;
    object-fit: contain;
}
.detail {
    display: flex;
    flex-direction: row-reverse;
}
.detail img {
    margin-left: 20px;
} 
.c_vet_box {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
}
.c_vet_box img {
    margin-right: 20px;
}
.c_vet_box p {
    margin-bottom: 20px;
}
.nintei {
    display: flex;
    justify-content: flex-end;
}
.nintei img {
    width: 130px;
    margin: 0 20px 0 0;
}
.nintei_box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.insurance_box {
    display: flex;
    flex-direction: row-reverse;
}
.insurance_r {
    width: 100%;
}
.insurance_r p:last-child {
    margin-top: 10px;
}
#insurance ul i {
    margin-right: 5px;
}
#insurance li {
    font-size: 1.2rem;
    line-height: 200%;
}

.consul_time {
    margin: 0 auto 40px;
}
#time p {
    text-align: center;
}
#time a {
    font-size: 1.1rem;
    text-decoration: underline;
    color: blue;
}
#time a:hover {
    opacity: 0.4;
}

/* 当院について */
.clinic {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
#clinic {
    margin: 20px;
}
#clinic figure {
    width: 40%;
    margin-bottom: 30px;
}
#clinic figure img {
    margin-bottom: 10px;
}
#clinic figcaption {
    font-size: 1.2rem;
    text-align: center;
}

.vet {
    display: flex;
    align-items: start;
}
.vet img {
    margin-right: 30px;
}
.vet_position {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.vet_name {
    font-size: 2.3rem;
    margin-bottom: 10px;
}
.gakkai {
    margin-bottom: 10px;
}
.gaiyou {
    display: flex;
}
.gaiyou img {
    width: 350px;
    margin-right: 30px;
}
.gaiyou dl {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.4;
}
.gaiyou p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.gaiyou dt {
    width: 80px;
    font-weight: bolder;
}
.gaiyou dd {
    width: 450px;
}

/* よくあるご質問 */
details {
    height: 10px;
    transition: 0.5s;
    margin-bottom: 20px;
    padding: 10px 20px 10px;
}
details[open] {
    height: auto;
    background: #eeeeee;
}
details:last-child {
    margin-bottom: 50px;
}
details a {
    text-decoration: underline;
}
summary {
    cursor: pointer;
    margin-bottom: 5px;
}
summary:hover {
    background-color: #eee;
}

/* スマホここから */

@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 50px;
    }
    main {
        max-width: 90%;
        margin: 0 auto;
    }
    .subnavi {
        flex-wrap: wrap;
        border: none;
        justify-content: flex-start;
    }
    .subnavi li {
        font-size: 1.1rem;
        color: #fff;
        background-color: #decb22;
        border-bottom: 5px solid #9f9218;
        padding: 10px 15px;
        margin: 0 10px 5px 0;
    }

    /* ヘッダーとファーストビュー */
    header {
        background-image: url(../img/top_img_sp.jpg);
        background-position: bottom;
    }
    header h1 img {
        height: 100px;
        margin-left: 5px;
    }
    .topcomment {
        left: 50%;
        transform: translate(-50%);
        bottom: 380px;
        font-size: 1.3rem;
        font-weight: 900;
        width: 90%;
        text-align: center;
    }
    #index header {
        height: 100dvh;
    }
    #consultation header, #about header, #faq header {
        height: 450px;
        background-image: url(../img/top_ai_dogcat_sp.png);
        background-position: center;
    }
    
    /* ハンバーガーメニュー */
    header .ham_container {
        position: fixed;
        right: 5px;
        top: 10px;
        z-index: 100;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        padding: 15px 10px;
    }
  
    /* アイコン変化前 */
    .ham_container span {
        width: 35px;
        height: 2px;
        display: block;
        background-color: black;
        border-radius: 4px;
        margin-bottom: 8px;
        transition: transform 0.5s;
    }
    .ham_container span:nth-child(3) {
        margin-bottom: 0;
    }
    /* アイコン変化後 */
    .btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(135deg);
    }
    .btn.active span:nth-child(2) {
        transform: translateX(-18px) scaleX(0);
    }
    .btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-135deg);
    }

    /* ナビメニュー */
    #hamburger {
        flex-direction: column;
        background-color: white;
        width: 80%;
        height: calc(100vh);
        top: 0;
        right: -80%;
        transition: all 0.5s;
        border-radius: 0;
    }
    #hamburger nav {
        width: 90%;
        margin: 60px auto 20px;
    }
    #hamburger nav ul {
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
    }
    #hamburger nav ul li {
        font-size: 1.2rem;
        border-bottom: #444 dotted 1px;
        padding: 10px 0;
    }
    .nav_sns {
        display: block;
    }
    .nav_sns img {
        width: 80px;
        height: auto;
    }
    #hamburger .navright {
        width: 80%;
        margin: 0 auto 40px;
        padding: 0;
        text-align: center;
        border: none;
    }
    #hamburger .navright a {
        font-size: 1.7rem;
    }
    /* 変化後 */
    #hamburger.active {
        right: 0;
    }
    /* ハンバーガーメニューここまで*/

    /* フッター */
    .footer {
        width: 90%;
        margin: 0 auto;
    }
  
    footer .logo {
        width: 80px;
        height: auto;
    }
    .footer_r .insta_box{
        display: none;
    }
    footer .sitemap {
        display: none;
    }
    .footer_r {
        width: 110px;
    }
    .totop {
        display: block;
        font-size: 0.9rem;
        margin-top: 10px;
        right: 0;
    }

   
    /* トップページ */
    .intro {
        position: relative;
        z-index: 10;
    }
    .intro img {
        height: 100px;
        width: auto;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 2;
    }
    .intro .intro_right {
        width: 100%;
        z-index: 1;
    }
    .balloon4 {
        padding: 10px;
        margin: 0 0 120px 60px;
        width: 80%;
        height: auto;
    }
    .balloon4:before {
        left: 60px;
        bottom: -40px;
    }
    .balloon4:after {
        left: 80px;
        bottom: -25px;
    }
    .balloon4 p {
        font-size: 1.1rem;
    }
    .intro_rb {
        width: 100%;
        margin: 0;
    }

    .timeflex {
        flex-direction: column;
    }
    .time_l {
        width: 100%;
        margin-bottom: 20px;
    }
    .timetable {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
    .timetable th,.timetable td {
        padding: 5px;
        text-align: center;
    }
    .time_l p:nth-child(4) {
        margin-bottom: 30px;
    }
    .time_l a {
        display: block;
        margin: 0 auto;
        width: 85%;
        margin-top: 50px;
        margin-bottom: 50px;
        text-align: center;
        font-size: 1.3rem;
    }
    #top_time .calendar {
        width: 100%;
    }
    

    .navibox {
        flex-direction: column;
        margin-bottom: 10px;
    }
    .button014 {
        margin-bottom: 20px;
    }

    #map iframe {
        height: 300px;
        margin-bottom: 20px;
    }


    /* 診療案内 */
    .detail {
        flex-direction: column;
    }
    #consultation .consul_img {
        /* margin: 0 auto 20px; */
        width: 100%;
        margin: 0;
    }
    .detail img {
        width: 100%;
        height: auto;
    }
    .c_vet_box {
        flex-direction: column;
    }
    .nintei {
        justify-content: space-between;
    }
    .nintei a {
        width: 47%;
    }
    .nintei img {
        margin: 0;
        width: 100%;
    }
    .insurance_box {
        flex-direction: column;
    }
    #insurance ul {
        flex-wrap: wrap;
    }
    #time p {
        text-align: left;
    }

    /* 当院について */
    #clinic {
        margin: 0;
    }
    #clinic figure {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    
    .vet {
        flex-direction: column;
        width: 100%;
    }
    .vet img {
        margin: 0 auto 10px;
    }
    .gaiyou {
        flex-direction: column;
    }
    .gaiyou img {
        margin-bottom: 10px;
    }
}