@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: 25%;
    /* 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;
    }

    h3 {
        font-size: 2.4rem;
    }
}

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

    h2:before {
        bottom: -18px;
    }

    .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 {
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 30px;
    margin-top: 50px;
}

.about__block {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 47px;
}

.about__list {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    border-radius: 10px;
    background: var(--primary-lightgreen);
}

.about__block .about__list:nth-of-type(2) {
    background: var(--primary-palegreen);
}

.about__text {
    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) {
    .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__list {
        padding: 10px;
        gap: 16px;
    }

    .about__block .about__list:nth-of-type(2) {
        margin-top: 30px;
    }
}

/* ----------------------------------------------------
糖尿病とは？スマホ用（〜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__list {
        padding: 10px;
        gap: 16px;
    }

    .about__block .about__list:nth-of-type(2) {
        margin-top: 30px;
    }
}

/* -----------------糖尿病の症状------------------ */
.symptoms {
    padding: 100px 15.3%;
    background: linear-gradient(180deg, #FFFAEF 0%, #FFF 100%);
}

.symptoms h2 {
    text-decoration-color: #A97306;
}

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

.symptoms__block {
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 47px;
}

.symptoms__list {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    border-radius: 10px;
    border: 2px solid var(--primary-brown);
    background: var(--primary-white);
}

.symptoms__text {
    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) {
    .symptoms {
        padding: 60px 16%;
    }

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

    .symptoms__list {
        padding: 10px;
        gap: 16px;
    }

    .symptoms__block .symptoms__list:nth-of-type(2) {
        margin-top: 40px;
    }

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

}

/* ----------------------------------------------------
糖尿病の症状スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .symptoms {
        padding: 60px 6.9%;
    }

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

    .symptoms__list {
        padding: 10px;
        gap: 16px;
    }

    .symptoms__block .symptoms__list:nth-of-type(2) {
        margin-top: 40px;
    }

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

/* -----------------糖尿病の治療法------------------ */
.treatment {
    padding: 100px 15.3%;
}

.treatment__lead {
    margin-top: 70px;
    color: var(--primary-black);
    font-family: "BIZ UDPGothic";
    font-size: 1.6rem;
    line-height: 30px;
    padding: 0 15%;
}

.treatment__block {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 108px;
}

.treatment__list {
    display: flex;
    padding: 20px 10px;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;
    border-radius: 20px;
    border: 2px solid var(--primary-green);
    background: var(--primary-white);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.treatment__list img {
    margin: 0 auto;
    border-radius: 10px;
}

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

/* ----------------------------------------------------
糖尿病の治療法タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .treatment {
        padding: 60px 16%;
    }

    .treatment__lead {
        margin-top: 40px;
        padding: 0;
    }

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

    .treatment__list {
        padding: 20px;
    }


    .treatment__list p {
        padding: 0;
    }

    .treatment__block .treatment__list:nth-of-type(2) {
        margin-top: 40px;
    }
}

/* ----------------------------------------------------
糖尿病の治療法スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .treatment {
        padding: 60px 6.9%;
    }

    .treatment__lead {
        margin-top: 40px;
        padding: 0;
    }

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

    .treatment__list {
        padding: 20px;
    }


    .treatment__list p {
        padding: 0;
    }

    .treatment__block .treatment__list:nth-of-type(2) {
        margin-top: 40px;
    }

}

/* -----------------糖尿病予防と生活習慣------------------ */
.prevention {
    padding: 100px 15.3%;
    background: #EEF4EC;
}

.prevention__unit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-direction: row-reverse;
}

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

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

.prevention__block {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 66px;
}

.prevention__list {
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    align-self: stretch;
    border-radius: 20px;
    background: var(--primary-white);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

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

/* ----------------------------------------------------
糖尿病予防と生活習慣タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
     .prevention {
        padding: 60px 16%;
    }

    .prevention__unit {
        display: block;
    }

    .prevention h2 {
        margin-top: 40px;
    }

    .prevention__img {
        border-radius: 10px;
    }

    .prevention__lead {
        margin-top: 40px;
    }

    .prevention__block {
        margin-top: 40px;
        gap: 30px;
    }

    .prevention__list {
        gap: 16px;
        border-radius: 10px;
    }
}

/* ----------------------------------------------------
糖尿病予防と生活習慣スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .prevention {
        padding: 60px 6.9%;
    }

    .prevention__unit {
        display: block;
    }

    .prevention h2 {
        margin-top: 40px;
    }

    .prevention__img {
        border-radius: 10px;
    }

    .prevention__lead {
        margin-top: 40px;
    }

    .prevention__block {
        margin-top: 40px;
        gap: 30px;
    }

    .prevention__list {
        gap: 16px;
        border-radius: 10px;
    }

}

/* -----------------岩見沢市にある糖尿病内科として------------------ */
.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: rgba(210, 231, 204, 0.80);
}

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

/* ----------------------------------------------------
岩見沢市にある糖尿病内科としてタブレット用（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;
    }
}