/*------------------------------------- 症例 --------------------------------------*/
div#main_contents {
    width: 90%;
    margin: auto;
}

div#main_col {
    margin: auto;
    padding: 100px 6.6%;
}

.case_heading {
    text-align: center;
    padding: 2%;
    margin-top: 7%;
    font-size: 2.375rem;
    font-weight: 300;
	line-height: 13px;
}

.case_span::after {
    content: "case";
    display: block;
    font-size: 15px;
    font-weight: 200;
    color: #a68c5e;
    margin: -1% 0 15px;
}


.case_btn {
    text-align: center;
    width: 80%;
    padding: 1%;
    margin: 0 auto;
    display: block;
}

a.case_btn:hover {
    background-color: #dcedff;
}


/* テンプレートcss */
.case-study-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.case-study-details th,
.case-study-details td {
    padding: 10px;
    border: 1px solid #90979E;
	font-size: 20px;
}

.case-study-details th {
    background-color: #fdf9ee;
    text-align: left;
    width: 40%;
    font-size: 20px;
}

.case-study-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.two-column {
    display: flex;
    justify-content: space-between;
}

.two-column img {
    width: 48%;
}

.case-study-images {
    text-align: center;
    margin-bottom: 20px;
}

.case-study-images .two-column {
    display: flex;
    justify-content: space-between;
    gap: 10%;
    margin: 0 auto;
}

.case-study-images .case-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.case-study-images .case-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0 0 8px 8px;
}

.case-study-images .case-image span {
    display: block;
    text-align: center;
}


.case-study-details {
    margin-top: 20px;
    width: 65%;
    margin: auto;
}

.free-text {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    clear: both;
}

td.treatment_text {
    font-size: 14px;
}

@media screen and (min-width: 1400px) {
    .two-column {
        width: 65%;
        text-align: center;
        margin: 0 auto;
    }

}

@media screen and (max-width: 768px) {
    .case-study-images .two-column {
        flex-direction: column;
        align-items: center;
    }

    .case-study-images .case-image {
        max-width: 100%;
    }

    .case-study-details {
        padding-left: 0;
        padding-right: 0;
        width: 90%;
    }

    .free-text {
        margin-left: 0;
        margin-right: 0;
    }

    .case-study-details {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .case-study-details table {
        width: 100%;
        margin: 10px 0 20px;
    }

    .case-study-details th {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 12px 10px;
    }

    .case-study-details td {
        width: 100%;
        text-align: start;
        font-size: 14px;
        padding: 12px 10px;
    }

    .case-study-details tr {
        display: grid;
        grid-template-columns: 1fr;
    }

    td.treatment_text {
        font-size: 13px;
        line-height: 1.8;
        text-align: left;
    }

}

.syourei_span_before {
    background-color: #A7ACB1;
    margin: 0 auto;
    color: white;
    font-size: 16px;
}

.syourei_span_after {
    background-color: #C79A3E;
    margin: 0 auto;
    color: white;
    font-size: 16px;
}

/* =========================
   症例詳細ページ 戻るボタン
========================= */

.case-single-back-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 80px;
}

.case-single-back-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    min-height: 58px;
    padding: 14px 62px 14px 44px;
    border: 1px solid #C79A3E;
    border-radius: 999px;
    background: linear-gradient(90deg, #C79A3E 0%, #D7B568 52%, #E8D096 100%);
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(159, 114, 40, 0.22);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 丸 */
.case-single-back-btn::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: all 0.3s ease;
}

/* 矢印 */
.case-single-back-btn::before {
    content: "";
    position: absolute;
    right: 37px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #FFFFFF;
    border-right: 1.5px solid #FFFFFF;
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
    transition: all 0.3s ease;
}

.case-single-back-btn:hover {
    background: #FFFFFF;
    color: #C79A3E;
    box-shadow: 0 12px 28px rgba(159, 114, 40, 0.28);
}

.case-single-back-btn:hover::after {
    right: 22px;
    background: #C79A3E;
}

.case-single-back-btn:hover::before {
    right: 33px;
    border-top-color: #FFFFFF;
    border-right-color: #FFFFFF;
}

/* スマホ */
@media screen and (max-width: 767px) {
    .case-single-back-wrap {
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .case-single-back-btn {
        min-width: 240px;
        min-height: 52px;
        padding: 12px 52px 12px 34px;
        font-size: 16px;
        letter-spacing: 0.1em;
    }

    .case-single-back-btn::after {
        right: 22px;
        width: 24px;
        height: 24px;
    }

    .case-single-back-btn::before {
        right: 32px;
        width: 7px;
        height: 7px;
    }

    .case-single-back-btn:hover::after {
        right: 20px;
    }

    .case-single-back-btn:hover::before {
        right: 30px;
    }
}

/* =========================
   症例詳細ページ タブレット調整
========================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .case-study-details {
        width: 95%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}
