/* =========================================================
   ALL-ON-4 CAUTION
   オールオン4で失敗しないための注意点（menu/allon4/caution/）
========================================================= */

.caution-page {
    color: #2e2a25;
}

.caution-page .container {
    width: min(calc(100% - 80px), 1080px);
}

.caution-en {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 16px;

    color: #9a7943;

    font-family: "Times New Roman", serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.3em;
}

.caution-en::after {
    content: "";

    width: 40px;
    height: 1px;

    background: currentColor;
}

.caution-page h2 {
    margin: 0 0 24px;

    color: #2e2a25;

    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 32px;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.caution-page p a,
.caution-toc a {
    color: #8a6a35;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.caution-head {
    margin-bottom: 44px;
}

.caution-head p:not(.caution-en) {
    margin: 0;
}


/* =========================================================
   INTRO
========================================================= */

.caution-intro {
    padding: 70px 0 80px;
}

.caution-intro p:not(.caution-en):not(.caution-toc__title) {
    margin: 0 0 20px;
}

.caution-toc {
    margin-top: 44px;
    padding: 30px 36px;

    border-left: 3px solid #9a7943;
    background: #f6f2ea;
}

.caution-page .caution-toc__title {
    margin: 0 0 12px;

    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    font-weight: 500;
}

.caution-toc ol {
    margin: 0;
    padding-left: 1.6em;
}

.caution-toc li {
    margin: 6px 0;

    font-size: 15px;
}


/* =========================================================
   TROUBLES
========================================================= */

.caution-troubles {
    padding: 80px 0;

    background: #f6f2ea;
}

.caution-troubles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.caution-troubles__item {
    position: relative;

    padding: 32px 32px 30px;

    background: #ffffff;
}

.caution-troubles__num {
    display: block;

    margin-bottom: 12px;

    color: #c9ad7a;

    font-family: "Times New Roman", serif;
    font-size: 32px;
    line-height: 1;
}

.caution-page .caution-troubles__item h3 {
    margin: 0 0 12px;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.6;
}

.caution-page .caution-troubles__item p {
    margin: 0;

    color: #574f46;

    font-size: 15px;
    line-height: 1.95;
}

.caution-page .caution-troubles__note {
    margin: 32px 0 0;
}


/* =========================================================
   COST
========================================================= */

.caution-cost {
    padding: 90px 0;
}

.caution-cost__body p {
    margin: 0 0 22px;
}

.caution-page .caution-cost__list {
    margin: 0 0 26px;
    padding: 26px 30px 26px 52px;

    background: #f6f2ea;
}

.caution-cost__list li {
    margin: 6px 0;
}

.caution-cost__body strong {
    background: linear-gradient(transparent 62%, #f1e4c7 62%);
    font-weight: 600;
}

.caution-case {
    margin-top: 48px;
    padding: 36px;

    border: 1px solid #e3dccf;
}

.caution-page .caution-case__title {
    margin: 0 0 24px;

    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
}

.caution-case__images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.caution-case__images figure,
.caution-figure {
    margin: 0;
}

.caution-case__images img,
.caution-figure img {
    display: block;

    width: 100%;
    height: auto;
}

.caution-case__images figcaption,
.caution-figure figcaption {
    margin-top: 10px;

    color: #6c655b;

    font-size: 13px;
    line-height: 1.8;
}

.caution-page .caution-case__note {
    margin: 20px 0 0;

    color: #6c655b;

    font-size: 12px;
}


/* =========================================================
   LINKS
========================================================= */

.caution-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 40px;
}

.caution-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    min-height: 54px;
    padding: 0 24px;

    border: 1px solid #9a7943;
    background: #ffffff;
    color: #2e2a25;

    font-size: 15px;
    letter-spacing: 0.04em;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.caution-link span {
    color: #9a7943;

    transition: color 0.3s ease;
}

.caution-link:hover {
    background: #2e2a25;
    color: #ffffff;
}

.caution-link:hover span {
    color: #ffffff;
}


/* =========================================================
   POINTS
========================================================= */

.caution-points {
    padding: 90px 0 100px;

    background: #23211d;
    color: #e9e3d8;
}

.caution-points .caution-en {
    color: #c9ad7a;
}

.caution-points h2 {
    color: #ffffff;
}

.caution-points .caution-head p:not(.caution-en) {
    color: rgba(255, 255, 255, 0.78);
}

.caution-point {
    padding: 48px 52px 50px;

    background: #2d2a25;
}

.caution-point + .caution-point {
    margin-top: 28px;
}

.caution-point__head {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-bottom: 28px;
    padding-bottom: 24px;

    border-bottom: 1px solid rgba(201, 173, 122, 0.3);
}

.caution-point__num {
    flex: 0 0 auto;

    color: #c9ad7a;

    font-family: "Times New Roman", serif;
    font-size: 56px;
    line-height: 1;
}

.caution-points .caution-point__en {
    margin: 0 0 8px;

    color: #c9ad7a;

    font-family: "Times New Roman", serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.26em;
}

.caution-points .caution-point__head h3 {
    margin: 0;

    color: #ffffff;

    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 25px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.caution-points .caution-point__body p {
    margin: 0 0 22px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;
    line-height: 2.05;
}

.caution-points .caution-point__body p:last-child {
    margin-bottom: 0;
}

.caution-points .caution-point__body h4 {
    margin: 40px 0 16px;
    padding-left: 14px;

    border-left: 3px solid #c9ad7a;

    color: #ffffff;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.6;
}

.caution-points .caution-point__body a {
    color: #e3c88f;
}

.caution-points .caution-figure {
    margin: 30px 0;
}

.caution-points .caution-figure figcaption {
    color: rgba(255, 255, 255, 0.6);
}

.caution-figure--table img {
    background: #ffffff;
}


/* =========================================================
   CHECKS
========================================================= */

.caution-checks {
    padding: 90px 0;

    background: #f6f2ea;
}

.caution-checks__list {
    margin: 0;
    padding: 0;

    list-style: none;
    counter-reset: caution-check;

    border-top: 1px solid #ddd3c2;
}

.caution-checks__list li {
    position: relative;

    padding: 26px 0 26px 64px;

    border-bottom: 1px solid #ddd3c2;

    counter-increment: caution-check;
}

.caution-checks__list li::before {
    content: counter(caution-check, decimal-leading-zero);

    position: absolute;
    top: 26px;
    left: 0;

    color: #c9ad7a;

    font-family: "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.2;
}

.caution-page .caution-checks__list h3 {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.caution-page .caution-checks__list p {
    margin: 0;

    color: #574f46;

    font-size: 15px;
    line-height: 1.95;
}


/* =========================================================
   SELF CARE
========================================================= */

.caution-care {
    padding: 80px 0 90px;
}

.caution-care__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.caution-care__item {
    padding: 28px 30px;

    border-top: 2px solid #9a7943;
    background: #f6f2ea;
}

.caution-page .caution-care__item h3 {
    margin: 0 0 10px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.caution-page .caution-care__item p {
    margin: 0;

    color: #574f46;

    font-size: 15px;
    line-height: 1.95;
}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 767px) {

    .caution-page .container {
        width: calc(100% - 40px);
    }

    .caution-page h2 {
        margin-bottom: 18px;

        font-size: 24px;
    }

    .caution-head {
        margin-bottom: 30px;
    }

    .caution-intro {
        padding: 50px 0 56px;
    }

    .caution-toc {
        margin-top: 32px;
        padding: 22px 20px;
    }

    .caution-troubles,
    .caution-cost,
    .caution-checks,
    .caution-care {
        padding: 60px 0;
    }

    .caution-troubles__grid,
    .caution-care__grid,
    .caution-case__images {
        grid-template-columns: 1fr;
    }

    .caution-troubles__item {
        padding: 26px 22px;
    }

    .caution-case {
        padding: 24px 18px;
    }

    .caution-page .caution-case__title {
        font-size: 17px;
    }

    .caution-links {
        flex-direction: column;
    }

    .caution-link {
        width: 100%;
    }

    .caution-points {
        padding: 60px 0 70px;
    }

    .caution-point {
        padding: 30px 20px 32px;
    }

    .caution-point__head {
        gap: 16px;
    }

    .caution-point__num {
        font-size: 40px;
    }

    .caution-points .caution-point__head h3 {
        font-size: 20px;
    }

    .caution-points .caution-point__body p {
        font-size: 15px;
    }

    .caution-checks__list li {
        padding-left: 48px;
    }

    .caution-checks__list li::before {
        font-size: 22px;
    }

}


/* 短い項目は2行の長さをそろえて、最後に1〜2文字だけ残る改行を防ぐ */

.caution-toc li,
.caution-cost__list li,
.caution-page figcaption,
.caution-page .caution-case__title {
    text-wrap: balance;
}

.caution-nowrap {
    white-space: nowrap;
}

/* ポイント内のボタン（X-Guide） */
.caution-links--point {
    margin-top: 28px;
}

.caution-points .caution-point__body .caution-link {
    color: #2e2a25;
    text-decoration: none;
}

.caution-points .caution-point__body .caution-link:hover {
    border-color: #c9ad7a;
    background: #c9ad7a;
    color: #23211d;
}

.caution-points .caution-point__body .caution-link:hover span {
    color: #23211d;
}


/* =========================================================
   インプラントの注意点ページ（menu/implant/caution/）用
========================================================= */

/* セクションの背景を入れ替える（隣のセクションと同じ色が続かないように） */
.caution-section--beige {
    background: #f6f2ea;
}

.caution-section--white {
    background: #ffffff;
}

.caution-section--beige .caution-case {
    border-color: #ddd3c2;
    background: #ffffff;
}

/* 「当院では」の囲み（暗い背景のポイント内） */
.caution-approach {
    margin-top: 30px;
    padding: 30px 34px 32px;

    border-left: 3px solid #c9ad7a;
    background: rgba(255, 255, 255, 0.05);
}

.caution-points .caution-approach__title {
    display: inline-block;

    margin: 0 0 16px;
    padding: 3px 14px;

    background: #c9ad7a;
    color: #23211d;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.caution-points .caution-approach h4 {
    margin-top: 32px;
}

.caution-approach__list {
    margin: 0 0 22px;
    padding-left: 1.4em;

    color: rgba(255, 255, 255, 0.82);
}

.caution-approach__list li {
    margin: 6px 0;

    font-size: 15px;
    line-height: 1.9;
    text-wrap: balance;
}

.caution-approach .caution-figure:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {

    .caution-approach {
        margin-top: 24px;
        padding: 22px 16px 24px;
    }

}
