@charset "utf-8";

/* =========================
   当院の院内紹介セクション
   ========================= */
.hospital-introduction {
    padding: 100px 6.6%;
}

.hospital-summary {
    display: grid;
    row-gap: 40px;
    column-gap: 48px;
    grid-template-rows: fit-content(100%) fit-content(100%) minmax(0, 1fr);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1220px;
    margin: 0 auto;
    padding-top: 64px;
}

.hospital-unit {
    margin: 0 auto;
}

.hospital-unit img {
    margin: 0 auto 15px;
}

.hospital-unit h3 {
    text-align: center;
}

.hospital-text {
    color: #000;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: normal;
    margin-top: 15px;
}

/* ===== ブレイクポイント：タブレット ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .hospital-introduction {
        padding: 100px 6.6% 40px;
    }

    .hospital-summary {
        display: grid;
        row-gap: 20px;
        column-gap: 20px;
        padding-top: 34px;
    }

    .hospital-text {
        font-size: 1.3rem;
    }
}

/* ===== ブレイクポイント：スマホ ===== */
@media screen and (max-width: 768px) {
    .hospital-introduction {
        padding: 40px 6.6% 0px;
    }

    .hospital-summary {
        display: block;
        padding-top: 0px;
    }

    .hospital-unit {
        margin-bottom: 40px;
    }

    .hospital-unit img {
        margin: 0 auto 10px;
    }

    .hospital-text {
        color: #000;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 400;
        line-height: normal;
        margin-top: 10px;
    }
}

/* =========================
   コンピューター解析による
   インプラント治療セクション
   ========================= */
.computer-analysis {
    padding: 40px 6.6% 100px;
}

.computer-img {
    margin: 120px auto 60px;
    max-width: 490px;
    width: 100%;
}

.computer--summary {
    display: flex;
    max-width: 1220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 85px;
    margin: 0 auto;
}

.computer-unit {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
}

.computer-unit img {
    margin: 0 auto;
}

.computer-box {
    max-width: 700px;
}

.computer-text {
    color: #000;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 30px;
}

.read-more {
    position: relative;
}

.read-more p {
    display: -webkit-box;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    /* 開く前に見せたい行数を指定 */
}

.read-more:has(:checked) p {
    display: block;
}

.read-more p::after {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .9) 50%, hsla(0, 0%, 100%, .9) 0, #fff);
    content: '';
}

.read-more:has(:checked) p::after {
    content: none;
}

.read-more label {
    display: flex;
    align-items: center;
    gap: 0 4px;
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    padding: .4em 1.2em;
    border-radius: 1px;
    background-color: #2589d0;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.read-more label:hover {
    border: 1px solid #2589d0;
    background-color: #fff;
    color: #2589d0;
}

.read-more:has(:checked) label {
    display: block;
}

.read-more .button-text::before {
    content: "続きを読む";
}

.read-more:has(:checked) .button-text::before {
    content: "閉じる";
}

.read-more input {
    display: none;
}

/* ===== ブレイクポイント：タブレット ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .computer-analysis {
        padding: 40px 6.6% 100px;
    }

    .computer--summary {
        display: flex;
        max-width: 1220px;
        flex-direction: column;
        align-items: flex-start;
        gap: 85px;
        margin: 0 auto;
    }

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

    .computer-unit img {
        margin: 0 auto;
    }

    .computer-box {
        max-width: 505px;
    }

    .computer-text {
        line-height: 28px;
    }
}

    /* ===== ブレイクポイント：スマホ ===== */
    @media screen and (max-width: 768px) {
        .computer-analysis {
            padding: 40px 6.6% 80px;
        }


        .computer-unit {
            display: block;
            margin: 0 auto;
        }

        .computer-unit img {
            margin-bottom: 20px;
        }

        .computer-text {
            line-height: 24px;
            margin-top: 20px;
        }
		
		.computer-img {
			margin: 0px auto 60px;
			max-width: 325px;
			width: 100%;
		}

    }