@charset "utf-8";

/* -----------------header------------------ */
header {
    background-color: var(--primary-lightgreen);
}

/* -----------------診療時間pc------------------ */
#top-schedule {
    padding: 50px 21.7%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;

}

.schedule-table thead {
    border-bottom: 18px solid transparent;
    /* 下に18pxの透明なボーダーを追加 */
}

.schedule-table tbody td {
    padding-top: 18px;
    /* tbody の上部に18pxの余白を追加 */
}

.schedule-table thead {
    border-bottom: 1px solid #333;
}

.schedule-table tbody tr:nth-child(1) {
    border-bottom: 1px solid #333;
}

.schedule-table tbody tr:nth-child(2) {
    border-bottom: 1px solid #333;
}

.schedule-table th {
    padding: 10px;
    color: var(--black, #333);
    text-align: center;
    font-size: 2.0rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 0 20px;
    white-space: nowrap;
}

.schedule-table td {
    color: var(--black, #333);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 2.0rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 0 20px;
    white-space: nowrap;
}

.schedule-table th {
    font-weight: bold;
}


.schedule-table tbody tr .time {
    color: var(--black, #333);
}

.schedule-table .open {
    color: var(--primary-green);
}

/* ノート部分 */
.note {
    font-size: 1.4rem;
    color: var(--primary-black);
    margin-top: 10px;
    text-align: center;
}



/* ----------------------------------------------------
診療時間タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #top-schedule {
        padding: 50px 12%;
    }

    .schedule-table th,
    .schedule-table td {
        white-space: normal;
        /* 折り返し */
        word-break: keep-all;
        /* 日本語の不自然な分割を抑制（必要なら normal） */
        padding: 0;
        /* 余白縮小 */
        font-size: 1.6rem;
        padding: 0 20px;
    }

    .schedule-table tbody td {
        padding-top: 8px;
        /* tbody の上部に18pxの余白を追加 */
    }

    /* ノート部分 */
    .note {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------------------
診療時間スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #top-schedule {
        padding: 30px 12%;
    }

    .schedule-table {
        width: 100%;
        table-layout: fixed;
        margin: 0 auto;

    }

    .schedule-table th,
    .schedule-table td {
        white-space: normal;
        /* 折り返し */
        word-break: keep-all;
        /* 日本語の不自然な分割を抑制（必要なら normal） */
        padding: 0;
        /* 余白縮小 */
        font-size: 1.0rem;
    }

    .schedule-table tbody td {
        padding-top: 8px;
        /* tbody の上部に18pxの余白を追加 */
    }

    /* ノート部分 */
    .note {
        font-size: 1.0rem;
    }

}


/* -----------------お知らせ------------------ */
#news {
    padding: 80px 9.1%;
    position: relative;
    z-index: 10;
    background: var(--lightgreen, #D2E7CC);
}

h2 {
    color: var(--black, #333);
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-size: 4.0rem;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-skip-ink: none;
    text-decoration-color: #7AA270;
    text-decoration-thickness: 11.5%;
    /* 4.6px */
    text-underline-offset: 25%;
    /* 10px */
    text-underline-position: from-font;
    margin-bottom: 20px;
}

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

.news-title .button {
    margin-top: 20px;
}

.news-summary {
    padding: 30px;
    border-radius: 20px;
    background: var(--white, #FFF);
    width: 100%;
    max-width: 865px;
}

.news-summary hr {
    margin: 25px 0 27px;
    background: #333;
}

.news-unit {
    display: flex;
    align-items: flex-end;
    gap: 56px;
}

.news-date {
    color: var(--black, #333);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.news-text {
    color: var(--black, #333);
    text-align: center;
    font-family: "BIZ UDPGothic";
    font-size: 2.0rem;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 1px;
}

/* ----------------------------------------------------
お知らせ-タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #news {
        padding: 80px 7.2%;
    }

    h2 {
        font-size: 3.2rem;
        text-align: start;
    }

    .news {
        display: block;
    }

    .news-title .button {
        margin: 20px auto;
    }


    .news-date {
        font-size: 2.0rem;
    }

    .news-text {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------------------
お知らせ-スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #news {
        padding: 30px 7.2%;
    }

    h2 {
        text-align: start;
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .news {
        display: block;
    }

    .news-summary {
        padding: 20px;
        border-radius: 10px;
        margin-top: 38px;
    }

    .news-summary hr {
        margin: 13px 0;
        background: var(--primary-palegreen);
    }

    .news-unit {
        display: block;
    }

    .news-date {
        text-align: start;
        font-size: 1.6rem;
        font-weight: normal;
    }

    .news-text {
        text-align: start;
        font-size: 1.6rem;
        font-weight: 700;
        margin-top: 11px;
    }

}



/* -----------------当院の特徴------------------ */
#features {
    padding: 80px 0;
}

#features h2 {
    margin-bottom: 60px;
}

#features h3 {
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-weight: bold;
}

.features-summary {
    padding: 20px 9.1%;
    position: relative;
    z-index: 10;
    background: rgba(250, 243, 229, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 82px;
}

.features-summary:nth-of-type(2) {
    background: rgba(210, 231, 204, 0.60);
    flex-direction: row-reverse;
}

.features-summary:nth-of-type(4) {
    background: rgba(210, 231, 204, 0.60);
    flex-direction: row-reverse;
}

.features-summary img {
    width: 100%;
    max-width: 544px;
    border-radius: 30px;
    box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.25);

}

.features-summary .no {
    color: var(--brown, #A97306);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 3.6rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.features-summary:nth-of-type(2) .no,
.features-summary:nth-of-type(2) h3 {
    color: var(--green, #7AA270);
}

.features-summary:nth-of-type(4) .no,
.features-summary:nth-of-type(4) h3 {
    color: var(--green, #7AA270);
}

.underline {
    position: relative;
    /* 擬似要素の位置を指定するため */
}

.underline::after {
    content: '';
    position: absolute;
    left: 50%;
    /* 水平方向に中央寄せ */
    bottom: -20px;
    /* 下に少し余白を追加 */
    width: 0;
    height: 20px;
    /* 縦線の高さ */
    border-left: 4px solid #A97306;
    /* 縦線の太さと色 */
    transform: translateX(-50%);
    /* 真ん中に配置 */
}

.features-summary:nth-of-type(2) .underline::after {
    border-left: 4px solid #7AA270;
}

.features-summary:nth-of-type(4) .underline::after {
    border-left: 4px solid #7AA270;
}

.features-summary h3 {
    color: var(--brown, #A97306);
    text-align: center;
    font-size: 2.4rem;
    font-style: normal;
    line-height: normal;
    margin: 30px auto 0;
}

.features-summary h3 span {
    color: var(--black, #333);
}

.features-txt {
    color: var(--black, #333);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin: 20px auto 30px;
}

.features-summary:nth-of-type(1) .button-content {
    border: 2px solid #A97306;
    background: #FFF;
}

.features-summary:nth-of-type(1) .button-content::after {
    background-color: #A97306;
}

.features-summary:nth-of-type(1) .button-content:hover {
    background-color: var(--primary-brown);
    color: var(--primary-white);
}

.features-summary:nth-of-type(1) .button-content:hover::after {
    background-color: var(--primary-white);
}

.features-summary:nth-of-type(3) .button-content {
    border: 2px solid #A97306;
    background: #FFF;
}

.features-summary:nth-of-type(3) .button-content::after {
    background-color: #A97306;
}

.features-summary:nth-of-type(3) .button-content:hover {
    background-color: var(--primary-brown);
    color: var(--primary-white);
}

.features-summary:nth-of-type(3) .button-content:hover::after {
    background-color: var(--primary-white);
}

.features-summary:nth-of-type(5) .button-content {
    border: 2px solid #A97306;
    background: #FFF;
}

.features-summary:nth-of-type(5) .button-content::after {
    background-color: #A97306;
}

.features-summary:nth-of-type(5) .button-content:hover {
    background-color: var(--primary-brown);
    color: var(--primary-white);
}

.features-summary:nth-of-type(5) .button-content:hover::after {
    background-color: var(--primary-white);
}

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

.spbr {
    display: none;
}

/* ----------------------------------------------------
当院の特徴-タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #features {
        padding: 80px 0;
    }

    #features h2 {
        margin-bottom: 30px;
        text-align: center;
    }

    .features-summary {
        padding: 20px 6.9%;
        display: block;
    }


    .features-summary img {
        width: 100%;
        margin: 10px auto;
    }
}

/* ----------------------------------------------------
当院の特徴-スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #features {
        padding: 30px 0;
    }

    #features h2 {
        margin-bottom: 30px;
        text-align: center;
    }

    .features-summary {
        padding: 20px 6.9%;
        display: block;
    }


    .features-summary img {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 28px;
    }

    .features-summary .no {
        font-size: 2.4rem;
    }

    .underline {
        position: relative;
        /* 擬似要素の位置を指定するため */
    }

    .underline::after {
        content: '';
        position: absolute;
        left: 50%;
        /* 水平方向に中央寄せ */
        bottom: -20px;
        /* 下に少し余白を追加 */
        width: 0;
        height: 12px;
        /* 縦線の高さ */
        transform: translateX(-50%);
        /* 真ん中に配置 */
    }


    .features-summary h3 {
        font-size: 2.0rem;
    }

    .features-txt {
        font-size: 1.5rem;
        line-height: 24px;
        padding: 0 3%;
    }

    .spbr {
        display: block;
    }
}



/* -----------------当院の診療内容------------------ */
#treatment-details {
    padding: 80px 14.5%;
    background-image: url('../images/medical-information-back-pc.jpg');
    /* 画像のパスを正しいものに変更 */
    background-size: cover;
    /* 背景画像を要素全体にフィットさせます */
    background-position: center;
    /* 背景画像の位置を中央にします */
    background-repeat: no-repeat;
    /* 背景画像の繰り返しを防ぎます */
    text-align: center;
    position: relative;
    z-index: 1;
}

#treatment-details::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -10;
}

.treatment-details-summary {
    display: flex;
    width: 100%;
    max-width: 264px;
    padding: 20px 1%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
    border: 2px solid var(--green, #7AA270);
    background: var(--white, #FFF);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.treatment-details-summary h3 {
    color: var(--green, #7AA270);
    text-align: center;
    font-size: 3.2rem;
    font-style: normal;
    line-height: normal;
    margin: 0;
}

.treatment-details-unit1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    align-self: stretch;
    margin-top: 80px;
}

.treatment-details-unit2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    align-self: stretch;
    margin-top: 40px;
}

/* ----------------------------------------------------
当院の診療内容-タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #treatment-details {
        padding: 80px 4.4%;
        position: relative;
        background-image: url('../images/medical-information-back-sp.jpg');
        z-index: 1;
    }

    #treatment-details h2 {
        text-align: center;
    }

    .treatment-details-summary h3 {
        font-size: 2.4rem;
    }

    .treatment-details-unit1 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
    }

    .treatment-details-unit2 {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
    }

    .treatment-details-summary {
        margin: 0;
    }
}

/* ----------------------------------------------------
当院の診療内容-スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #treatment-details {
        padding: 30px 14.4%;
        position: relative;
        background-image: url('../images/medical-information-back-sp.jpg');
        z-index: 1;
    }

    #treatment-details h2 {
        text-align: center;
    }

    .treatment-details-summary h3 {
        font-size: 2.0rem;
    }

    .treatment-details-unit1 {
        display: block;
        margin-top: 40px;
    }

    .treatment-details-unit2 {
        display: block;
        margin-top: 40px;
    }

    .treatment-details-summary {
        margin: 40px auto 0;
    }
}



/* -----------------症状から探す/病名から探す----------------- */
#search {
    padding: 80px 9.6%;
}

.btn-style {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 198px;
    margin: 60px auto;
}

.tab_btn {
    display: flex;
    width: 100%;
    max-width: 279px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--lightgreen, #D2E7CC);
    color: var(--black, #333);
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}

.colbox_4 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    font-size: 2.0rem;
    font-weight: 500;
    border-radius: 10px;
    border: 2px solid var(--lightgreen, #D2E7CC);
    background: var(--green, #7AA270);
    width: 100%;
    max-width: 316px;
    overflow: hidden;
    color: var(--primary-white);
    margin: 0 auto;
    cursor: pointer;
}

.colbox_4::after {
    content: "";
    width: 14px;
    height: 14px;
    background-color: var(--primary-palegreen);
    position: relative;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    transition: right .5s ease-in-out;
    margin-left: 8px;
}

.colbox_4:hover {
    background: var(--beige, #FAF3E5);
    color: var(--green, #7AA270);
}

.colbox_4:hover::after {
    background-color: var(--primary-green);
}

.colbox_4 span {
    text-align: center;
    display: inline-block;
}

.sec_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 35px;
    padding: 0;
}

/* タブに応じてパネルが表示/非表示になる */
.tab_item {
    display: none;
}

.tab_item.active {
    display: grid;
}

/* アクティブ時の色（お好みで） */
.tab_btn.active,
.tab_btn.is-active-btn {
    /* どちらでもマッチ */
    background: var(--beige, #FAF3E5);
    color: var(--green, #7AA270);
}

/* ----------------------------------------------------
症状から探す/病名から探す-タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #search {
        padding: 80px 3.2%;
    }

    #search h2 {
        text-align: center;
    }

    .btn-style {
        gap: 20px;
        margin: 40px auto;
    }

    .tab_btn {
        display: flex;
        width: 100%;
        max-width: 90px;
        font-size: 2.4rem;
        font-weight: bold;
    }

    .colbox_4 {
        font-size: 1.6rem;
        width: 100%;
    }

    .tab_item.active {
        row-gap: 20px;
        column-gap: 5px;
    }
}

/* ----------------------------------------------------
症状から探す/病名から探す-スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #search {
        padding: 30px 3.2%;
    }

    #search .sp {
        display: none;
    }

    #search h2 {
        text-align: center;
    }

    .btn-style {
        gap: 20px;
        margin: 40px auto;
    }

    .tab_btn {
        display: flex;
        width: 100%;
        max-width: 90px;
        font-size: 2.0rem;
        font-weight: bold;
    }

    .colbox_4 {
        font-size: 1.6rem;
        border-radius: 5px;
        border: 1.1px solid var(--lightgreen, #D2E7CC);
        width: 100%;
    }

    .sec_box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
        padding: 0;
    }

    .sp {
        display: none;
    }

    /* タブに応じてパネルが表示/非表示になる */
    .tab_item {
        display: none;
    }

    .tab_item.active {
        display: grid;
        row-gap: 20px;
        column-gap: 5px;
    }

    /* アクティブ時の色（お好みで） */
    .tab_btn.active,
    .tab_btn.is-active-btn {
        /* どちらでもマッチ */
        background: var(--beige, #FAF3E5);
        color: var(--green, #7AA270);
    }
}



/* -----------------院長紹介------------------ */
#director-introduction {
    padding: 80px 6%;
    position: relative;
    z-index: 10;
    background: var(--lightgreen, #D2E7CC);
}

.director-introduction-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    gap: 40px;
    margin-top: 60px;
}

.director-introduction-unit {
    padding: 20px 30px;
    border-radius: 30px;
    background: var(--white, #FFF);
    text-align: center;
}

.greeting {
    color: var(--green, #7AA270);
    text-align: center;
    text-shadow: 0 4px 4px rgba(51, 51, 51, 0.20);
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.name-text {
    color: var(--black, #333);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin: 28px 0;
    text-align: start;
}

.name {
    color: #000;
    text-align: center;
    font-size: 2.0rem;
    font-style: normal;
    line-height: normal;
    margin-bottom: 28px;
}

.name span {
    font-size: 2.4rem;
    margin-left: 20px;
}

/* ----------------------------------------------------
院長紹介-タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #director-introduction {
        padding: 80px 8%;
    }

    #director-introduction h2 {
        text-align: center;
    }

    .director-introduction-summary {
        display: block;
        margin-top: 40px;
    }

    .director-introduction-summary img {
        margin: 0 auto;
    }

    .director-introduction-unit {
        padding: 30px 14px;
        border-radius: 30px;
        margin-top: 20px;
    }

    .greeting {
        font-size: 2.0rem;
    }

    .name {
        text-align: center;
        font-size: 1.6rem;
    }

    .name span {
        font-size: 2.0rem;
    }
}

/* ----------------------------------------------------
院長紹介-スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    #director-introduction {
        padding: 30px 8%;
    }

    #director-introduction h2 {
        text-align: center;
    }

    .director-introduction-summary {
        display: block;
        margin-top: 40px;
    }

    .director-introduction-summary img {
        margin: 0 auto;
    }

    .director-introduction-unit {
        padding: 30px 14px;
        border-radius: 30px;
        margin-top: 20px;
    }

    .greeting {
        font-size: 2.0rem;
    }

    .name {
        text-align: center;
        font-size: 1.6rem;
    }

    .name span {
        font-size: 2.0rem;
    }
	.pcbr {
		display:none;
	}
}