@charset "UTF-8";

/*
Theme Name : WEBSITE
Author: クローバーグラフィック
Description: corporate website
Version: 1.0
*/

/*=======================================================
Common
=======================================================*/
:root {
    --color_1: #fff;
    --color_2: #1DA343; /*メインカラー*/
    --color_3: #FFB400; /*イエロー*/
    --color_4: #555; /*文字*/
    --color_5: #F9F9F9; /*グレー*/
    --color_6: #E2F5E8; /*薄グリーン*/
}

html {
    scroll-behavior: smooth;
}

body { 
    font-size: clamp(1rem, 0.7143vw + 0.5rem, 1.5rem);
    font-optical-sizing: auto;
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    line-height: 1.5em;
    letter-spacing: 0.1em;
    letter-spacing: 0.08em;
    color: var(--color_4);
    overflow: hidden;
}

body p {
    text-align: justify;
}

body img.scaled-image {
    border: none;
    margin: 0;
}

/* 共通レイアウト
=======================================================*/
.w__1400 {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}
.w__1600 {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
    .w__1400 {
        width: 90%;
    }
    .w__1600 {
        width: 90%;
    }
}

/* 下層body
=======================================================*/
body:not(.home) {
    position: relative;
}

body:not(.home)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    max-width: 800px;
    height: 100%;
    background-image: url(img/bg_motif.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 100%;
    opacity: 0.7;
    z-index: -1;
}



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

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

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

/* Header
=======================================================*/
#header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    align-content: center;
    background-color: #ffffffe6;
    z-index: 4000;
}

#header .header_logo {
    width: 13vw;
    min-width: 180px;
    height: auto;
    margin-left: 2.7%;
    align-content: center;
    transition: 0.3s;
}
#header .header_logo:hover {
    opacity: 0.6;
    transition: 0.3s;
}

#header .header__nav {
    display: flex;
    align-items: center;
    padding-right: 2%;
}

#header .header__nav .global__nav {
    display: flex;
    font-size: clamp(0.8rem, 0.7143vw + 0.5rem, 1.25rem);
}

#header .header__nav .global__nav li {
    position: relative;
    margin-left: clamp(28px, 1.94vw, 40px);
    padding: 0 0.5em;
    line-height: 3em;
    color: var(--color_4);
    transition: 0.3s;
}
#header .header__nav .global__nav li:hover {
    color: var(--color_2);
    transition: 0.3s;
}
#header .header__nav .global__nav li:first-of-type {
    margin-left: 0;
}

/*hover表示小メニュー*/
.hovermenu__title {
    position: relative;
}

.hovermenu__list {
    position: absolute;
    top: 100%;
    left: 0;
    width: clamp(8.125rem, 9vw + 0.5rem, 12.5rem);
    height: auto;
    padding: 10px 8px 20px;
    background-color: #ffffffe6;
    border-radius: 0 0 20px 20px;
    -webkit-filter: drop-shadow(0 8px 6px #99999933);
            filter: drop-shadow(0 8px 6px #99999933);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.hovermenu__title:hover .hovermenu__list {
    opacity: 1;
    visibility: visible;
}

.hovermenu__item {
    position: relative;
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 10px;
    line-height: 2em !important;
}

.hovermenu__item a {
    display: block;
}

.hovermenu__item:last-of-type {
    margin-bottom: 0;
}

.hovermenu__item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 8px;
    height: 0.6em;
    transform: translateY(-50%);
    background-color: var(--color_4);
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
            clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hovermenu__item:hover {
    color: var(--color_2);
}
.hovermenu__item:hover::after {
    background-color: var(--color_2);
    transition: 0.3s;
}

#header .header__nav .tel {
    padding-left: 1.875rem;
}

#header .header__nav .tel .txt {
    font-size: clamp(0.8rem, 0.8vw + 0.05rem, 1rem);
    letter-spacing: -0.01em;
    line-height: 1.25rem;
    text-align: center;
    align-content: baseline;
}

#header .header__nav .tel .txt img {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    margin-bottom: 0.3rem;
}

#header .header__nav .tel .number {
    font-size: clamp(1.5rem, 1.3vw + 0.5rem, 1.875rem);
    font-weight: bold;
    color: var(--color_3);
    transition: 0.3s;
}

#header .header__nav .tel .number:hover {
    transform: scale(1.05);
    transform-origin: center;
    transition: 0.3s;
}


@media screen and (max-width: 896px) {
    #header {
        height: 60px;
        background-color: transparent;
    }
    #header .header_logo {
        margin-left: 2%;
    }
    #header .header__nav {
        display: none;
    }
}



/* Toggle
=======================================================*/
#toggle_btn {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 0 0 15px 15px;
    background-color: var(--color_2);
    z-index: 5000;
}

.toggle_btn_bar {
    position: relative;
    display: block;
    width: 30px;
    height: 15px;
    margin: 0 auto;
}

.toggle_btn_bar:before,
.toggle_btn_bar:after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color_1);
    /* animation */
    -webkit-animation-duration: 0s;
            animation-duration: 0s;
    -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

body.toggle_active .toggle_btn_bar:before,
body.toggle_active .toggle_btn_bar:after {
    -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
}

.toggle_btn_bar:before {
    -webkit-animation-name: toggle_close_top_bar;
            animation-name: toggle_close_top_bar;
}

@-webkit-keyframes toggle_close_top_bar {
    0% {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    30% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    70% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    100% {
        top: 0;
        transform: translateY(0) rotate(0);
    }
}

@keyframes toggle_close_top_bar {
    0% {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    30% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    70% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    100% {
        top: 0;
        transform: translateY(0) rotate(0);
    }
}

body.toggle_open .toggle_btn_bar:before {
    -webkit-animation-name: toggle_open_top_bar;
            animation-name: toggle_open_top_bar;
}

@-webkit-keyframes toggle_open_top_bar {
    0% {
        top: 0;
        transform: translateY(-50%) rotate(0);
    }

    30% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    70% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    100% {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
}

@keyframes toggle_open_top_bar {
    0% {
        top: 0;
        transform: translateY(-50%) rotate(0);
    }

    30% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    70% {
        top: 50%;
        transform: translateY(-50%) rotate(0);
    }

    100% {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
}

.toggle_btn_bar:after {
    -webkit-animation-name: toggle_close_bottom_bar;
            animation-name: toggle_close_bottom_bar;
}

@-webkit-keyframes toggle_close_bottom_bar {
    0% {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    30% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    70% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    100% {
        bottom: 0;
        transform: translateY(0) rotate(0);
    }
}

@keyframes toggle_close_bottom_bar {
    0% {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    30% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    70% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    100% {
        bottom: 0;
        transform: translateY(0) rotate(0);
    }
}

body.toggle_open .toggle_btn_bar:after {
    -webkit-animation-name: toggle_open_bottom_bar;
            animation-name: toggle_open_bottom_bar;
}

@-webkit-keyframes toggle_open_bottom_bar {
    0% {
        bottom: 0;
        transform: translateY(50%) rotate(0);
    }

    30% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    70% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    100% {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

@keyframes toggle_open_bottom_bar {
    0% {
        bottom: 0;
        transform: translateY(50%) rotate(0);
    }

    30% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    70% {
        bottom: 50%;
        transform: translateY(50%) rotate(0);
    }

    100% {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

.toggle_wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 100px 0 80px;
    overflow: auto;
    background-color: var(--color_2);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    -webkit-overflow-scrolling: touch;
    z-index: 4500;
}

.toggle_wrap::-webkit-scrollbar {
    display: none;
}

body.toggle_open .toggle_wrap {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.toggle_logo {
    width: 80%;
    margin: 0 auto 30px;
    padding: 5% 0;
    border-radius: 20px;
    text-align: center;
    background-color: var(--color_1);
}

.toggle_logo img {
    width: 60%;
}

.toggle__info {
    width: 80%;
    margin: 0 auto;
    padding: 5%;
    background-color: var(--color_1);
    border-radius: 20px;
}

.toggle-nav {
    margin-bottom: 40px;
    font-size: 16px;
}

.toggle-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.toggle-nav ul li {
    width: 50%;
}
.toggle-nav ul li:first-of-type {
    border-right: var(--color_2) 2px dotted;
    border-bottom: var(--color_2) 2px dotted;
}
.toggle-nav ul li:nth-of-type(2) {
    border-bottom: var(--color_2) 2px dotted;
}
.toggle-nav ul li:nth-of-type(3) {
    border-right: var(--color_2) 2px dotted;
}

.toggle-nav a {
    position: relative;
    display: block;
    padding: 12% 8%;
    text-align: center;
    color: var(--color_2);
    font-weight: bold;
}

.toggle-nav a:active {
    opacity: 0.6;
}

.toggle__nav-medical ul {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    font-size: 18px;
}

.toggle__nav-medical ul li {
    width: 30%;
}

.toggle__nav-medical ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10%;
    text-align: center;
    border: var(--color_2) 1px solid;
    border-radius: 20px;
    background-color: var(--color_1);
}

.toggle__tel {
    text-align: center;
    margin-top: 10%;
}

.toggle__tel .txt {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.toggle__tel .txt span {
    font-size: 75%;
}

.toggle__tel button {
    display: inline-block;
    width: 80%;
    margin: 20px auto;
}

.toggle__tel button a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8% 0;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    background-color: var(--color_3);
    border-radius: 100px;
    color: var(--color_1);
}

#toggle {
    display: none;
}

@media screen and (max-width: 896px) {
    #toggle {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .toggle_wrap {
        padding: 60px 0 50px;
    }

    .toggle_logo {
        width: 90%;
        margin: 0 auto 10px;
        padding: 2% 0;
    }

    .toggle_logo img {
        width: 70%;
    }

    .toggle__info {
        width: 90%;
    }

    .toggle-nav {
        margin-bottom: 20px;
    }

    .toggle__nav-medical ul {
        display: block;
        margin-bottom: 20px;
    }

    .toggle__nav-medical ul li {
        width: 100%;
        margin-bottom: 5px;
    }

    .toggle__nav-medical ul li a {
        padding: 5%;
    }

    .toggle__nav-medical ul li a {
        border-radius: 10px;
    }

    .toggle__tel .txt {
        font-size: 16px;
    }

    .toggle__tel button {
        width: 100%;
        margin: 10px auto;
    }
    .toggle__tel button a {
        font-size: 28px;
    }
}

/*=======================================================
Pagetitle
=======================================================*/
#pagetitle {
    height: 450px;
    margin-top: 80px;
    padding: 160px 100px 100px;
}

#pagetitle > .title__en {
    height: auto;
    margin-left: 100px;
    margin-bottom: 30px;
}
#pagetitle > h1 {
    display: inline-block;
    margin-left: 100px;
}

#pagetitle > .title__en-about {
    width: 248px;
}
#pagetitle > .title__en-medical {
    width: 528px;
}

#pagetitle > .title__en img {
    width: 100%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

#pagetitle > nav {
    margin: 80px auto 80px 100px;
    font-size: 12px;
}


@media screen and (max-width: 1024px) {
    #pagetitle {
        padding: 160px 0 100px;
        background-position: right 50px bottom;
    }
}

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

    #pagetitle > .title__en-about {
        width: 186px;
    }

    #pagetitle > .title__en-medical {
        width: 350px;
    }
}

@media screen and (max-width: 480px) {
    #pagetitle {
        height: 260px;
        padding: 80px 0 40px;
        background-position: right 5px bottom;
    }

    #pagetitle > .title__en {
        margin-left: 30px;
        margin-bottom: 20px;
    }

    #pagetitle > h1 {
        margin-left: 30px;
    }

    #pagetitle > .title__en-about {
        width: 124px;
    }

    #pagetitle > .title__en-medical {
        width: 264px;
    }

    #pagetitle > nav {
        margin: 40px auto 0 30px;
        font-size: 12px;
    }
}

/* Breadcrumb
=======================================================*/
.rank-math-breadcrumb p a:hover {
    opacity: 0.5;
    transition: 0.15s;
}

/* Main
=======================================================*/
body:not(.home) main {
}

main {
}
@media screen and (max-width: 1024px) {
}

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

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

/* 下層h2タイトル
=======================================================*/
body:not(.home) main .contents__wrap h2 {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    color: var(--color_2);
}

.contents__wrap h2 .ja {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    padding: 0.8em 1em;
    font-size: 24px;
    font-size: clamp(20px, 1.666vw, 40px);
    border: var(--color_2) 1px solid;
    border-radius: 1.042vw;
}
.contents__wrap h2 .en {
    text-align: center;
    line-height: 3em;
}

/*return up
=======================================================*/
#return_up {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 13px;
    right: 21px;
    z-index: 800;
    transition-duration: 0.3s;
    pointer-events: none;
    transition-timing-function: ease-out;
}

#return_up.on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    bottom: 21px;
}

#return_up>span {
    width: 55px;
    height: 55px;
    border: 1px solid rgb(225, 225, 225);
    border-radius: 90px;
    background-color: #fff;
    box-sizing: border-box;
    display: block;
    position: relative;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

#return_up > span:hover {
    border: 1px solid var(--color_3);
}

#return_up > span:before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--color_4);
    border-left: 1px solid var(--color_4);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-6px) rotate(45deg);
    transform-origin: top left;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

@media screen and (max-width: 480px) {
    #return_up {
        bottom: 5px;
        right: 8px;
    }
    #return_up.on {
        bottom: 8px;
    }
}

/* Footer
=======================================================*/
#footer {
    padding: 80px 7% 0;
    border-top: var(--color_2) 2px solid;
    background-color: var(--color_1);
    z-index: 3000;/*
    font-size: clamp(14px, 0.97vw, 20px);*/
}

.footTitle {
    width: 30%;
    min-width: 300px;
    max-width: 420px;
    margin: 0 auto;
}

.footTitle > p {
    text-align: center;
    color: var(--color_2);
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1em;
}

.footInfo {
    display: flex;
    justify-content: space-between;
    margin: 80px auto 50px;
}

.footInfo-left {/*
    width: 47%;*/
}

.footInfo-left .footInfo-item h2 {
    margin-bottom: 10px;
    padding-left: 0.5em;
    color: var(--color_2);
    line-height: 1em;
    border-left: 2px solid var(--color_2);
}

.footInfo-left .footInfo-item p {
    margin-bottom: 2em;
    line-height: 1.8em;
}

.footInfo-left .footInfo-item p a.footTel{
    margin-top: 50px;
    font-size: 32px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
}

/*診療時間tableセクション*/
.footInfo-right {
    width: 47%;
    min-width: 577px;
    max-width: 880px;
}

.footInfo-right h2 {
    padding-left: 0.5em;
    color: var(--color_2);
    line-height: 1em;
    border-left: 2px solid var(--color_2);
}

/*table*/
.clinic-hours-table {
    width: 100%;
    margin-bottom: 10px;
    border-spacing: 30px;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.clinic-hours-table td, .clinic-hours-table th {
    padding: 10px 0;
}


.clinic-hours-table thead tr,
.clinic-hours-table tbody tr {
    border-bottom: var(--color_4) 1px solid;
}

.clinic-hours-table thead tr th:first-of-type,
.clinic-hours-table tbody tr td:first-of-type {
    width: 28%;
    line-height: 1.2em;
}

.clinic-hours-table thead tr th:not(:first-of-type),
.clinic-hours-table tbody tr td:not(:first-of-type) {
    width: calc(72% / 8);
    text-align: center;
}
.clinic-hours-table tbody tr td:not(:first-of-type) {
    color: var(--color_2);
}

.footInfo-right p small {
    font-size: 14px;
    text-align: right;
}

/*map*/
.footMap {
    width: 100%;
}

address {
    font-style: normal;
    padding-left: 2em;
    background-image: url(img/map-pin.svg);
    background-repeat: no-repeat;
    background-position: center left 0.5em;
    background-size: contain;
    margin-bottom: 8px;
}

address > br {
    display: none;
}

.g-map {
    position: relative;
    width: 100%;
    padding-top: 29.51%;
    /* 1152:340のアスペクト比 */
    height: 0;
}

.g-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#footer > small {
    padding: 10px 0;
    font-size: 12px;
    text-align: center;
}

@media screen and (min-width: 1920px) {
    #footer {
        padding: 80px 200px 0;
    }
}

@media screen and (max-width: 1024px) {
    .footInfo-right {
        min-width: 450px;
    }
    .clinic-hours-table thead tr th:first-of-type,
    .clinic-hours-table tbody tr td:first-of-type {
        width: 30%;
        font-size: 80%;
    }
}

@media screen and (max-width: 896px) {
    .footInfo {
        display: block;
    }
    .footInfo-right {
        width: 100%;
        min-width: 420px;
    }
    .clinic-hours-table td, .clinic-hours-table th {
        padding: 16px 0;
    }
    .clinic-hours-table thead tr th:first-of-type,
    .clinic-hours-table tbody tr td:first-of-type {
        font-size: 85%;
    }
}

@media screen and (max-width: 480px) {
    .footTitle {
        width: 100%;
        min-width: inherit;
    }
    .footTitle > p {
        font-size: 16px;
    }
    
    .footInfo-left .footInfo-item p a.footTel{
        margin-top: 50px;
        font-size: 28px;
    }

    .footInfo-right {
        min-width: inherit;
    }
    .clinic-hours-table thead tr th:first-of-type,
    .clinic-hours-table tbody tr td:first-of-type {
        font-size: 80%;
        letter-spacing: -0.05em;
    }
    .clinic-hours-table td, .clinic-hours-table th {
        padding: 10px 0;
    }
    .clinic-hours-table thead tr th:first-of-type small,
    .clinic-hours-table tbody tr td:first-of-type small {
        font-size: 79%;
    }
    .footInfo-right p small {
        font-size: 13px;
    }
    
    address {
        padding-left: 3.5em;
    }
    address > br {
        display: block;
    }

    .g-map {
        padding-top: 75%;
    }
}


.error404 main {
    padding-bottom: 20rem;
}