@charset 'UTF-8';

/*
VARIABLES
================================================ */
:root {
    --middle-blue: #82C4D7;
    --light-blue: #E7F5F8;
    --hover-blue: #1F6597;
    --blue: #151E72;
    --black: #343434;
    --white: #fff;
    --grey: #D4D4D4;
}

/*
基本設定
================================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif JP";
    font-weight: 400;
    letter-spacing: 1.6px;
    color: var(--black);
}

.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0px;
}

.content {
    margin: 0 auto;
}

.det_btn {
    display: flex;
    padding: 10px 45px;
    align-items: center;
    gap: 10px;
    background: var(--middle-blue);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.9px;
    transition: all 0.3s;
}

.det_btn:hover {
    background-color: var(--hover-blue);
}

.subttl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 32px;
}

.subttl span {
    color: var(--blue);
    font-family: Overpass;
    font-size: 14px;
    letter-spacing: 0.7px;
}

/*
ヘッダー
================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.80);
}

.header_wrap {
    display: flex;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
}

.header_logo {
    display: flex;
    padding-left: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    letter-spacing: normal;
}

.header_logo:hover {
    color: var(--middle-blue);
}

.header_logo span {
    display: block;
    font-size: 14px;
    letter-spacing: normal;
}

.header_nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.gnav__item a:hover {
    color: var(--middle-blue);
}

.btn_tel {
    background: var(--middle-blue);
    height: 81px;
    transition: all 0.3s;
}

.btn_tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.btn_tel:hover {
    background-color: var(--hover-blue);
}

.btn_tel p {
    color: var(--white);
    font-size: 14px;
}

.btn_tel p.tel {
    color: var(--white);
    font-family: Overpass;
    font-size: 32px;
    font-weight: 400;
    padding-top: 7px;
}

.btn_tel p.tel span {
    color: var(--white);
    font-family: Overpass;
    font-size: 24px;
    font-weight: 400;
}

.nav_btn {
    display: flex;
    align-items: center;
    gap: 48px;
}

.btn-menu {
    display: none;
}

/*
メインビジュアル
================================================ */

.main_img {
    width: 100vw;
    height: 830px;
    background: url(../images/main_pc.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    top: -81px;
}

.scroll {
    color: var(--hover-blue);
    font-family: Overpass;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.6px;
    position: absolute;
    bottom: 20px;
    left: 50.7%;
}

.main_img svg {
    position: absolute;
    bottom: -33px;
    left: 50%;
}

/*
お知らせ
================================================ */

.info {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.info_wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

dl {
    border-bottom: 1px solid var(--grey);
}

dl a {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--grey);
    width: 720px;
    height: 83px;
    padding: 30px 0px;
    gap: 30px;
}

dl a:hover {
    color: var(--middle-blue);
}

dt {
    font-family: Overpass;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.7px;
}

dd {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.8px;
}

.info_btn_wrap {
    display: flex;
    justify-content: flex-end;
    width: 910px;
}


/*
当院について
================================================ */
.about_bg {
    background: var(--light-blue);
}

.about {
    width: 90vw;
    max-width: 1050px;
    display: flex;
    padding: 50px 80px;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    gap: 50px;
}

.text_img_wrap {
    display: flex;
    width: 890px;
    gap: 50px;
}

.text_wrap {
    display: flex;
    width: 418px;
    height: 260px;
    flex-direction: column;
    gap: 30px;
}

.about p {
    color: var(--black);
    text-align: justify;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.8px;
}

.about_img {
    /* width: 31vw; */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    max-width: 420px;
}


/*
診療案内
================================================ */
.medical_bg {
    background: url(../images/medical_pc.webp);
    width: 100vw;
    height: 676px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.medical {
    display: inline-flex;
    padding: 50px 80px;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    background: rgba(255, 255, 255, 0.95);
    width: 90vw;
    max-width: 1135px;
}

.medical ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
}

.medical ul li {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 1.2px;
}

.medical li button {
    width: 20vw;
    max-width: 300px;
    height: 60px;
    border: 1px solid var(--middle-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: all 0.3s;
}

.medical li button:hover {
    background-color: var(--light-blue);
    color: var(--hover-blue);
}

/*
医院紹介
================================================ */
.clinic_bg {
    border-bottom: 1px solid var(--grey);
}

.clinic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.clinic ul {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 42px;
}

.clinic li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.smallttl {
    color: var(--black);
    font-size: 24px;
    font-weight: 400;
}

.smallttl span {
    color: var(--black);
    font-family: Overpass;
    font-size: 24px;
    font-weight: 700;
    line-height: 160%;
    padding-right: 20px;
}

.clinic img {
    width: 26vw;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    max-width: 380px;
}

.clinic p {
    color: var(--black);
    text-align: justify;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.8px;
    width: 300px;
}

/*
診察時間
================================================ */
.hours_access {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
}

table th,
tr,
td {
    border: 1px solid var(--black);
    padding: 10px 10px;
}

tr {
    position: relative;
}

th {
    color: var(--black);
    text-align: center;
    vertical-align: middle;
    font-family: Overpass;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.7px;
}

td {
    color: var(--black);
    text-align: center;
    align-items: center;
    font-family: Overpass;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.28px;
}

.time {
    width: 156px;
    height: 38px;
    vertical-align: middle;
}

.day {
    width: 37px;
    height: 38px;
    position: relative;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--middle-blue);
    border-radius: 100vh;
}

.line {
    position: absolute;
    top: 50%;
    left: -25%;
    width: 53px;
    border: 0;
    border-top: 1px solid var(--black);
    margin: 0;
    padding: 0;
    transform: rotate(-45deg);
}

.hours_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hours_text p {
    padding: 0 10px;
    color: var(--black);
    text-align: center;
    font-family: Overpass;
    font-size: 16px;
    font-weight: 400;
}

.table_hours {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.big {
    height: 97px;
}

.big a {
    padding: 10px 33px;
}

.big p {
    font-size: 17px;
}

.btn_tel p.tel {
    font-size: 38px;
}

.btn_tel p.tel span {
    font-size: 29px;
}

/*
アクセス
================================================ */
.access {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.map_add {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.map_sp {
    display: none;
}

.address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.address p {
    display: flex;
    padding: 0px 10px;
    align-items: flex-start;
    gap: 10px;
    color: var(--black);
    font-family: Overpass;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.7px;
}

/*
フッター
================================================ */
.footer_logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 45.05px;
    font-weight: 400;
    letter-spacing: normal;
}

.footer_logo span {
    padding-top: 10px;
    color: var(--black);
    font-size: 19.71px;
    font-weight: 400;
    letter-spacing: normal;
}

small {
    display: flex;
    justify-content: center;
    color: var(---black);
    font-family: Overpass;
    font-size: 12px;
    font-weight: 400;
}

.footer {
    display: flex;
    flex-direction: column;
    gap: 37px;
}

.footer_wrap {
    background: var(--light-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 37px 0;
}

@media screen and (max-width: 1120px) {

    /*
    ヘッダー
    ================================================ */

    .gnav__list {
        display: flex;
        gap: 20px;
        list-style: none;
    }

    .btn_tel {
        display: none;
    }

    .header {
        height: 50px;
        background: var(--white);
        position: static;
    }

    .header_logo {
        padding: 7px 6.5px;
        font-size: 20.6px;
    }

    .header_logo span {
        font-size: 9px;
    }

    .gnav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10;
        width: 180px;
        height: 100%;
        background-color: var(--white);
    }

    .gnav__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 180px;
        padding: 90px 20px 20px 50px;
        row-gap: 25px;
    }

    .btn-menu {
        display: flex;
        /* この場合はabsolute だと固定されない */
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        text-align: center;
        padding: 21px 16px;
        border: none;
        outline: none;
        background: none;
        /* cursor: pointer; */
        appearance: none;
        background: var(--middle-blue);
    }

    .btn-menu__line {
        display: block;
        position: relative;
        left: 0;
        width: 100%;
        height: 2px;
        transition: all 0.4s;
        border-radius: 4px;
        background-color: var(--white);
    }

    .btn-menu__line::before,
    .btn-menu__line::after {
        display: block;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        transition: inherit;
        border-radius: 4px;
        background-color: var(--white);
    }

    .btn-menu__line::before {
        top: -8px;
    }

    .btn-menu__line::after {
        top: 8px;
    }

    .btn-menu.active .btn-menu__line {
        background-color: transparent;
    }

    .btn-menu.active .btn-menu__line::before,
    .btn-menu.active .btn-menu__line::after {
        top: 0;
        background-color: var(--white);
    }

    .btn-menu.active .btn-menu__line::before {
        transform: rotate(45deg);
    }

    .btn-menu.active .btn-menu__line::after {
        transform: rotate(-45deg);
    }

    /*
    メインビジュアル
    ================================================ */
    .main_img {
        height: 600px;
        top: 0;
    }

    .scroll,
    .main_img svg {
        display: none;
    }

    /*
    お知らせ
    ================================================ */

    .info_wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    dl a {
        width: 80vw;
        max-width: 720px;
    }

    .info_btn_wrap {
        justify-content: center;
        width: 80vw;
    }

    /*
    当院について
    ================================================ */

    .text_img_wrap {
        width: 80vw;
        display: block;
        min-width: 300px;
        gap: 20px;
    }

    .text_wrap {
        justify-content: center;
        width: 80vw;
        height: auto;
        gap: 50px;
    }

    .about p {
        padding-bottom: 20px;
    }

    .about_img {
        max-width: initial;
        width: 80vw;
        min-width: 300px;
    }

    /*
    診療案内
    ================================================ */
    .medical_bg {
        height: auto;
    }

    .medical {
        width: 90vw;
    }

    .medical li button {
        width: 60vw;
        min-width: 300px;
        gap: 20px;
    }

    /*
    医院紹介
    ================================================ */

    .clinic li {
        gap: 20px;
    }

    .clinic ul {
        flex-direction: column;
    }

    .clinic img {
        max-width: initial;
        width: 80vw;
        min-width: 300px;
    }

    .clinic p {
        width: 80vw;
    }

    /*
    診察時間
    ================================================ */
    .hours_access {
        display: block;
        gap: 0px;
    }

    .hours_bg {
        border-bottom: 1px solid var(--grey);
    }


    /*
    フッター
    ================================================ */
    .footer_logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 32px;
    }

    .footer_logo span {
        font-size: 14px;
    }

    small {
        font-size: 10px;
    }

}

@media screen and (max-width: 600px) {

    .section {
        padding: 30px 0px;
    }

    .subttl {
        gap: 0;
        font-size: 24px;
    }

    .subttl span {
        font-size: 12px;
    }

    /*
        メインビジュアル
        ================================================ */

    .main_img {
        width: 100vw;
        height: 60vh;
        background: url(../images/main_sm.webp);
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        position: relative;
    }

    /*
        お知らせ
        ================================================ */

    .info {
        gap: 20px;
    }

    dl a {
        height: 60px;
        padding: 20px 0px;
        gap: 20px;
        width: 90vw;
    }

    dt {
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    dd {
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    .info_btn_wrap {
        width: 90vw;
    }

    /*
        当院について
        ================================================ */

    .about {
        padding: 30px 12px;
        gap: 20px;
    }

    .text_wrap {
        gap: 20px;
    }

    .about p {
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    /*
        診療案内
        ================================================ */

    .medical {
        padding: 30px 12px;
        gap: 20px;
        /* width: 90vw; */
    }

    .medical ul {
        gap: 20px;
    }

    /*
        医院紹介
        ================================================ */

    .clinic {
        gap: 20px;
    }

    .clinic ul {
        gap: 20px;
    }

    .clinic li {
        gap: 5px;
    }

    .smallttl {
        font-size: 16px;
    }

    .smallttl span {
        font-size: 16px;
        padding-right: 10px;
    }

    .clinic p {
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    /*
        診察時間
        ================================================ */

    table th,
    tr,
    td {
        padding: 8px;
    }

    tr {
        position: relative;
    }

    th {
        font-size: 12.4px;
        font-weight: 400;
        letter-spacing: 0.62px;
    }

    td {
        font-size: 14.14px;
        letter-spacing: 1.13px;
    }

    .time {
        width: 138px;
        height: 34px;
    }

    .day {
        width: 33px;
        height: 34px;
    }

    .circle {
        width: 8.84px;
        height: 8.84px;
    }

    .line {
        width: 47px;
    }

    .hours_text {
        gap: 10px;
    }

    .hours_text p {
        font-size: 14px;
    }

    .hours {
        gap: 20px;
    }

    /* ボタン */

    .big {
        height: 85px;
    }

    .big p {
        font-size: 15px;
    }

    .btn_tel p.tel {
        font-size: 34px;
    }

    .btn_tel p.tel span {
        font-size: 25px;
    }

    /*
        アクセス
        ================================================ */
    .access {
        gap: 20px;
    }

    .map_add {
        gap: 10px;
    }

    .address {
        gap: 10px;
    }

    .map_pc {
        display: none;
    }

    .map_sp {
        display: block;
    }

    .address p {
        font-size: 14px;
        letter-spacing: 0.8px;
    }

}