@charset "utf-8";

h2 {
    color: var(--primary-black);
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-size: 4.0rem;
    font-weight: bold;
    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: 10%;
    /* 10px */
    text-underline-position: from-font;
}

h3 {
    padding: .1em .4em .1em .4em;
    border-left: 5px solid #7AA270;
    color: var(--primary-black);
    text-align: start;
    font-family: "Zen Maru Gothic";
    font-size: 3.2rem;
    font-weight: bold;
    line-height: normal;
    background: var(--primary-white);
}

.spbr {
    display: none;
}

/* ----------------------------------------------------
基本styleタブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    h2 {
        font-size: 3.2rem;
        text-underline-offset: 10%;
    }

    h3 {
        font-size: 2.4rem;
    }
}

/* ----------------------------------------------------
基本styleスマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 2.4rem;
        text-underline-offset: 10%;
    }


    .spbr {
        display: block;
    }

    h3 {
        font-size: 2.0rem;
    }
}

/* -----------------一般内科とは？------------------ */
.about {
    padding: 100px 15.3%;
}

.about__unit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.about__img {
    margin: 0 auto;
    border-radius: 20px;
}

.about__lead {
    margin-top: 50px;
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    line-height: 30px;
}

.about__block {
    margin-top: 200px;
}

.about__list {
    display: flex;
    padding: 50px 100px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 58px;
    border-radius: 20px;
    border: 3px dashed var(--primary-green);
    background: var(--primary-palegreen);
    margin-top: 27px;
}

.about__item {
    font-family: "BIZ UDPGothic";
    font-size: 2.0rem;
    font-style: normal;
    line-height: normal;
    list-style: none;
}

.about__item::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--primary-green);
}

.about__text {
    margin-top: 40px;
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    line-height: 30px;
    text-align: center;
}

.search-by-symptoms-summary {
    border-radius: 60px;
    background: var(--primary-white);
}

.item_wrap {
    margin-top: 60px;
}

.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;
}

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

/* ----------------------------------------------------
一般内科とは？タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .about {
        padding: 60px 16%;
    }

    .about__unit {
        display: block;
    }

    .about__img {
        border-radius: 10px;
        margin-bottom: 40px;
    }

    .about__lead {
        margin-top: 40px;
    }

    .about__block {
        margin-top: 40px;
        display: block;
    }

    .about__item {
        font-size: 1.6rem;
    }

    .about__item::before {
        width: 15px;
        height: 15px;
    }

    .about__list {
        padding: 20px 10px;
        gap: 20px;
        margin-top: 40px;
        border-radius: 10px;
    }

    .tab-symptom {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
        column-gap: 18px;
    }

}

/* ----------------------------------------------------
一般内科とは？スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .about {
        padding: 60px 6.9%;
    }

    .about__unit {
        display: block;
    }

    .about__img {
        border-radius: 10px;
        margin-bottom: 40px;
    }

    .about__lead {
        margin-top: 40px;
    }

    .about__block {
        margin-top: 40px;
        display: block;
    }

    .about__item {
        font-size: 1.6rem;
    }

    .about__item::before {
        width: 15px;
        height: 15px;
    }

    .about__list {
        padding: 20px 10px;
        gap: 20px;
        margin-top: 40px;
        border-radius: 10px;
    }

    .about__text {
        text-align: start;
    }

    .search-by-symptoms-summary {
        border-radius: 30px;
        padding: 30px 5px 60px 5px;
    }

    .item_wrap {
        margin-top: 30px;
    }

    .tab_btn {
        font-size: 1.6rem;
    }

    .colbox_4 {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 10px;
        font-size: 1.6rem;
        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;
    }


    .tab-symptom {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
        column-gap: 18px;
    }

    .item_wrap span {
        display: none;
    }
}

/* -----------------主な診療内容------------------ */

.disease {
    padding: 100px 15.3%;
    background: var(--primary-palegreen);
}

.disease__lead {
    margin-top: 70px;
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    line-height: 30px;
    text-align: center;
}

.search-by-disease-summary {
    border-radius: 60px;
}

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

/* ----------------------------------------------------
主な診療内容タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .disease {
        padding: 60px 16%;
    }

    .tab-disease {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
        column-gap: 18px;
    }


}

/* ----------------------------------------------------
主な診療内容スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .disease {
        padding: 60px 6.9%;
    }

    .disease__lead {
        text-align: start;
    }

    .search-by-disease-summary {
        border-radius: 30px;
        padding: 30px 5px 60px 5px;
    }

    .tab-disease {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
        column-gap: 18px;
    }
}

/* -----------------検査・治療について------------------ */

.inspection {
    padding: 100px 15.3%;
}


.inspection__list h3 {
    border-left: 5px solid #A97306;
}

.inspection__list:nth-child(2) h3,
.inspection__list:nth-child(4) h3 {
    border-left: 5px solid #7AA270;
}

.inspection__block {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.inspection__list {
    display: flex;
    padding: 30px 20px;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    border-radius: 30px;
    background: #FFFAF0;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.inspection__list:nth-child(2),
.inspection__list:nth-child(4) {
    background: var(--primary-palegreen);
}

.inspection__unit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.inspection__unit img {
    margin: 0 auto;
    border-radius: 20px;
}

.inspection__unit p {
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    line-height: 30px;
}

/* ----------------------------------------------------
検査・治療についてタブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .inspection {
        padding: 60px 16%;
    }

    .inspection__block {
        margin-top: 60px;
    }

    .inspection__unit {
        display: block;
    }

    .inspection__unit img {
        border-radius: 10px;
    }

    .inspection__unit p {
        margin-top: 20px;
    }
}

/* ----------------------------------------------------
検査・治療についてスマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .inspection {
        padding: 60px 6.9%;
    }


    .inspection__block {
        margin-top: 40px;
    }

    .inspection__unit {
        display: block;
    }

    .inspection__unit img {
        border-radius: 10px;
    }

    .inspection__unit p {
        margin-top: 20px;
    }

}

/* -----------------岩見沢市でのかかりつけの内科医院として------------------ */
.summary {
    padding: 100px 15.3%;
    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;
}

.summary::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;

}

.summary__unit {
    display: flex;
    padding: 40px 20px;
    flex-direction: column;
    justify-content: center;
    gap: 70px;
    border-radius: 30px;
    background: var(--primary-white);
}

.summary__img {
    margin: 0 auto;
    border-radius: 20px;
}

.summary__text {
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 30px;
    text-align: start;
    margin-top: 20px;
}

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

/* ----------------------------------------------------
岩見沢市でのかかりつけの内科医院としてタブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .summary {
        padding: 60px 16%;
        background-image: url('../images/medical-information-back-sp.jpg');
        /* 画像のパスを正しいものに変更 */
    }

    .summary__unit {
        padding: 20px;
        gap: 40px;
        border-radius: 10px;
    }

    .summary__img {
        border-radius: 10px;
    }
}

/* ----------------------------------------------------
岩見沢市でのかかりつけの内科医院としてスマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .summary {
        padding: 60px 6.9%;
        background-image: url('../images/medical-information-back-sp.jpg');
        /* 画像のパスを正しいものに変更 */
    }

    .summary__unit {
        padding: 20px;
        gap: 40px;
        border-radius: 10px;
    }

    .summary__img {
        border-radius: 10px;
    }
}