/*
 */
:root {
    --base-font-color: rgb(70, 70, 70);
    --primary-color: #13ae67;
    --primary-variant-color: rgb(44, 80, 72);
    --secondary-color: rgb(63, 95, 184);

    --light-gray-color: rgb(226, 235, 220);

    --ok-color: rgb(241, 55, 55);
    --ng-color: rgb(55, 89, 241);
}

/* 標準のスタイル変更 ここから */
body {
    color: var(--base-font-color);
    margin: 0 auto;
    line-height: 1.6;

    font-family:
        /*"Noto Sans JP", */
        sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}

p {
    margin-bottom: .4rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: underline;
}

article {
    padding: 1rem;
}

section.contents {
    padding: 1rem;
    margin: 2rem auto 6rem auto;
    max-width: 768px;
}

/* 標準のスタイル変更 ここまで */


/* 見出しとかの文字系 ここから */
.site-title {
    font-family: "Zen Maru Gothic", sans-serif;
    color: var(--primary-color);
}

h2.our-heading {
    position: relative;
    display: block;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: 1rem;
    text-indent: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h2.our-heading:before {
    content: '';
    position: absolute;
    bottom: -15px;
    display: inline-block;
    width: 30px;
    height: 5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3.our-heading {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

h5.our-heading {
    position: relative;
    display: block;
    font-size: 0.9rem;
    text-align: right;
}

/* 見出しとかの文字系 ここまで */

/* サイト全体で使用 ここから */
.col-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
}

.col-2 a img {
    object-fit: contain;
    width: 300px;
}

.two-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
}

.two-column div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
    font-size: .8rem;
}

.two-column img {
    object-fit: contain;
    width: 300px;
}

@media (min-width: 768px) {
    .col-2 {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .two-column {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items:  flex-end;
    }

    .two-column div {
        margin-bottom: 0;
        width: 48%;
    }

}

/* 目立たせるボックス ここから */
.box {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin: 1rem 0;
}

.box h4 {
    background: var(--primary-color);
    color: #FFF;
    text-align: left;
    padding: .4rem .8rem;
    font-weight: 500;
    letter-spacing: .2rem
}

.box div {
    margin: .9rem;
}

/* 目立たせるボックス ここまで */

/* 見出し付きで並べるため ここから */
hgroup {
    margin-bottom: 1rem;
}

hgroup:last-child {
    margin-bottom: 0;
}

hgroup .hgroup-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary-variant-color);
    margin-bottom: .3rem;
}

/* 見出し付きで並べるため ここまで */

/* 注釈リスト ここから */
ul.kome-list {
    list-style-type: none;
    padding: 0 1rem;
    font-size: .9rem;
    margin-top: 1rem;
}

ul.kome-list li {
    padding-left: 1.3em;
    text-indent: -1.3em;
    margin-bottom: 10px;
}

ul.kome-list li:before {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: var(--primary-color);
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* 注釈リスト ここまで */

/* 青いボタン ここから */
div.button a {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border-radius: 20px;
    text-decoration: none;
}

div.button {
    text-align: center;
    margin-top: 2rem;
}

/* 青いボタン ここまで */

/* サイト全体で使用 ここまで */

/* ヘッダー用 ここから */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 0 .5rem;
}

nav a {
    text-decoration: none;
}

.logo-and-title {
    display: flex;
    align-items: center;
    z-index: 4;
    padding: .5rem;
}

.logo-and-title img {
    width: 25px;
    height: 25px;
    margin-right: .5rem;
}

.logo-and-title h1 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0;
    font-family: "Zen Maru Gothic", sans-serif;
    margin-bottom: .3rem;
    line-height: 1;
}


.logo-and-title p {
    font-size: .9rem;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 2;
    background-color: rgba(255, 255, 255, 1);
    transition: left .2s;
    margin-top: 8rem;
}

.menu-content ul {
    text-align: right;
    font-weight: 600;
    display: flex;
    flex-flow: column;
    padding: 1rem;
}

.menu-content ul li {
    border-bottom: 1px solid var(--primary-color);
    padding: 1rem;
}

.menu-content ul li:last-child {
    border-bottom: none;
    padding: 1rem;
}

.hamburger-menu {
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.hamburger-menu svg {
    width: 35px;
    height: 35px;
}

.ham-icon {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.ham-text {
    text-align: center;
    padding-bottom: 10px;
    font-size: 1rem;
}

#menu-button-check {
    display: none;
}

#menu-button-check~label div {
    position: relative;
    z-index: 4;
}

#menu-button-check~label div .menu-button-1,
#menu-button-check:checked~label div .menu-button-2 {
    display: block;
}

#menu-button-check:checked~label div .menu-button-1,
#menu-button-check~label div .menu-button-2 {
    display: none;
}

nav:has(#menu-button-check:checked) .menu-content {
    left: 0;
    transition: left .2s;
}

@media (min-width: 768px) {
    nav {
        flex-flow: column;
        padding: 0;
    }

    .logo-and-title {
        width: 768px;
        padding: 1rem;
    }

    .logo-and-title div {
        width: 100%;
        text-align: center;
    }

    .logo-and-title h1 {
        font-size: 2rem;
        width: 100%;
    }

    .hamburger-menu {
        display: none;
    }

    .menu-content {
        height: 80px;
        position: static;
        z-index: 2;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        justify-content: center;
        margin-top: 2rem;
        padding: 0 2rem;
        /* width: 768px; */
        /* 比較1 */
    }

    .menu-content ul {
        width: 700px;
        height: 100%;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ヘッダー用 ここまで */

/* header ここから */

header {
    text-align: center;
}

header img {
    width: 100%;
}

@media (min-width: 768px) {
    header {
        text-align: center;
    }

    header img {
        width: 768px;
        /*
    width: 100%;
    height: 500px; 
    object-fit: cover;
    */
        /* 比較2 */
    }
}

/* header ここまで */

/* お知らせ ここから */
#our-news {
    overflow: auto;
    max-height: 350px;
    font-size: .9rem;
    border: 1px solid var(--primary-color);
    padding: 1rem;
}

#our-news dt {
    color: var(--primary-color);
    margin: .3rem 0;
}

#our-news dd {
    margin-bottom: 1.9rem;
}

#our-news dd h3 {
    font-size: 1.2rem;
    margin: 0 0 .2rem 0;
    letter-spacing: .3rem;
    font-weight: 600;
}

#our-board {
    margin-top: 1rem;
    text-align: right;
}

/* お知らせ ここまで */

/* 診療時間表 ここから */
.time-table {
    width: 100%;
    text-align: center;
    border-collapse: separate;
    border-spacing: 5px;
    font-size: 1rem;
}

.time-table thead tr th,
.time-table tbody tr th {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    padding: .5rem .2rem;
}

.time-table tbody tr th {
    width: 4rem;
}

.time-table tbody tr td {
    width: 2rem;
    vertical-align: middle;
}

/* 診療時間表 ここまで */

/* 予約について ここから */
.phone {
    display: block;
    border: 1px solid var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 10px;
    text-align: center;
    padding: 1rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.phone:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 27px;
    vertical-align: middle;
    -webkit-mask-image: url(../img/phone-icon.svg);
    mask-image: url(../img/phone-icon.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--primary-color);
}

/* 予約について ここまで　*/


/* 当院について ここから */
.doctor-name {
    font-size: 1.2rem;
}

.doctor-name.small {
    font-size: 1rem;
}

p.small {
    font-size: .8rem;
}

.about-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.about-table th {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    vertical-align: middle;
    padding: .5rem;
    font-size: .9rem;
}

.about-table td {
    padding: .5rem;
    vertical-align: middle;
}

.profile th {
    width: 7rem;
}

.profile2 th {
    width: 22rem;
}

.sp-br {
    display:block;
}

@media (min-width: 768px) {
    .sp-br {
        display:none;
    }
}
/* 当院について ここまで */

/* FAQ ここから */
.faq-a {
    text-indent: -2.5rem;
    padding-left: 2.5rem;
}

/* FAQ ここから */

/* 院内写真 ここから */
#gallery-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: .3rem;
    row-gap: .3rem;
}

#gallery-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

#photos p {
    text-align: center;
}

/* 院内写真 ここまで */

/* 掲示 ここから */
#board-content ol li {
    list-style-type: circle;
    margin-left: 30px;
    margin-bottom: 6px;
}
#board-content ol li::marker {
    color: var(--primary-color);
}

/* 掲示 ここまで */

/* フッター ここから */
footer {
    text-align: center;
    margin-top: 7rem;
    margin-bottom: 5rem;
}

footer h1 {
    font-size: 1.3rem;
    margin-bottom: .3rem;
}

footer p {
    margin-bottom: .3rem;
    font-size: .9rem;
}

/* フッター ここまで */

/* トップへ戻るボタン ここから */
.button-to-top.active {
    display: flex;
}

.button-to-top {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 矢印のスタイル */
.button-to-top::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-bottom: -6px;
    border-top: solid 3px #fff;
    border-right: solid 3px #fff;
    transform: rotate(-45deg);
}

/* ホバー時のスタイル */
.button-to-top:hover {
    transform: scale(1.1);
}

/* トップへ戻るボタン ここまで */