/* content-block内のfloat解除 */
.menu-main .content-block::after{
    content: "";
    display: block;
    clear: both;
}

/* ↑↑　common_styleに入れてもたぶん大丈夫 */

/* ==============================
   IPL page: flow / indication / comparison
   ============================== */

/* 治療の流れ */
.flow-list {
    counter-reset: flow-counter;
    list-style: none;
    padding-left: 0;
    margin: 18px 0 8px;
}

.flow-list li {
    counter-increment: flow-counter;
    position: relative;
    padding: 16px 16px 16px 54px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eadfd7;
    border-radius: 14px;
    line-height: 1.8;
}

.flow-list li::before {
    content: counter(flow-counter);
    position: absolute;
    top: 18px;
    left: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #b58b76;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.flow-list li strong {
    display: block;
    margin-bottom: 4px;
    color: #6f4b3e;
    font-size: 1.05em;
}

/* 向いている方 */
#indication > p {
    margin-bottom: 12px;
    color: #6f4b3e;
    font-weight: 600;
}

#indication ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

#indication li {
    position: relative;
    padding: 11px 14px 11px 36px;
    margin-bottom: 9px;
    background: #fff;
    border: 1px solid #eadfd7;
    border-radius: 12px;
    line-height: 1.7;
}

#indication li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 10px;
    color: #b58b76;
    font-weight: 700;
}

/* フォトフェイシャルとレーザーの違い */
#ipl-vs-laser .compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0 12px;
    overflow: hidden;
    border: 1px solid #eadfd7;
    border-radius: 14px;
    background: #fff;
}

#ipl-vs-laser .compare-table th,
#ipl-vs-laser .compare-table td {
    width: 50%;
    padding: 13px 12px;
    border-bottom: 1px solid #eadfd7;
    vertical-align: top;
    line-height: 1.7;
}

#ipl-vs-laser .compare-table th {
    background: #f7eee9;
    color: #6f4b3e;
    font-weight: 600;
    text-align: center;
}

#ipl-vs-laser .compare-table td:first-child {
    background: #fffaf7;
}

#ipl-vs-laser .compare-table tr:last-child td {
    border-bottom: none;
}

#ipl-vs-laser .compare-table th + th,
#ipl-vs-laser .compare-table td + td {
    border-left: 1px solid #eadfd7;
}

#ipl-vs-laser .note {
    margin-top: 12px;
}

/* レーザー比較後の軽いCTA */
.compact-cta {
    margin-top: 18px;
    padding: 18px 16px;
    border-radius: 16px;
    background: #fffaf7;
    border: 1px solid #eadfd7;
}

.compact-cta p {
    margin: 0 0 10px;
    line-height: 1.8;
}

.compact-cta .line_detail {
    margin-top: 14px;
}

/* スマホ微調整 */
@media screen and (max-width: 600px) {
    .flow-list li {
        padding: 14px 12px 14px 48px;
    }

    .flow-list li::before {
        left: 13px;
        top: 16px;
    }

    #indication li {
        padding: 10px 12px 10px 34px;
    }

    #ipl-vs-laser .compare-table th,
    #ipl-vs-laser .compare-table td {
        padding: 11px 9px;
        font-size: 0.94em;
        line-height: 1.65;
    }

    #ipl-vs-laser .compare-table th {
        font-size: 0.95em;
    }
}

/* ==============================
   IPL appendix adjustment
   目次 / リンク重なり / 全体統一
   ============================== */

/* ページ内目次：HTMLが nav.toc の場合に対応 */
.menu-main .toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 18px 0 4px;
    padding: 0;
}

.menu-main .toc a {
    position: relative;
    display: block;
    padding: 8px 10px 8px 22px;
    border: 1px solid rgba(38, 108, 165, 0.16);
    border-radius: 10px;
    background: #f7f9fb;
    color: #224466;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 0 6px rgba(34, 68, 102, 0.04);
}

.menu-main .toc a::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: rgba(70, 140, 197, 0.45);
}

.menu-main .toc a:hover {
    background: #eef6fb;
    color: #266ca5;
}

/* スマホは1列 */
@media screen and (max-width: 640px) {
    .menu-main .toc {
        grid-template-columns: 1fr;
    }
}

/* content-block 内のリストをIPLページ用に少し整える */
.menu-main .content-block ul {
    padding-left: 1.4rem;
    line-height: 1.85;
}

.menu-main .content-block ol {
    line-height: 1.75;
}

/* 治療の流れ */
.flow-list {
    counter-reset: flow-counter;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 16px 0 8px;
}

.flow-list li {
    counter-increment: flow-counter;
    position: relative;
    padding: 14px 14px 14px 52px;
    margin-bottom: 11px;
    background: #f9fafc;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    line-height: 1.75;
}

.flow-list li::before {
    content: counter(flow-counter);
    position: absolute;
    top: 15px;
    left: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #468cc5;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.flow-list li strong {
    display: block;
    margin-bottom: 12px;
    margin-left: 8px;
    color: #224466;
    font-weight: 600;
}

/* 向いている方 */
#indication > p {
    margin-bottom: 0.7rem;
    color: #224466;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

#indication ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

#indication li {
    position: relative;
    padding: 10px 12px 10px 34px;
    margin-bottom: 8px;
    background: #f9fafc;
    border: 1px solid #e1e6ec;
    border-radius: 9px;
    line-height: 1.7;
}

#indication li::before {
    content: "✓";
    position: absolute;
    left: 13px;
    top: 10px;
    color: #468cc5;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* レーザーとの違い：左側ヘッダーなし、2列比較を維持 */
#ipl-vs-laser .compare-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 12px;
    overflow: hidden;
    border: 1px solid #d7dbe0;
    border-radius: 10px;
    background: #fff;
}

#ipl-vs-laser .compare-table th,
#ipl-vs-laser .compare-table td {
    width: 50%;
    padding: 11px 10px;
    border: none;
    border-bottom: 1px solid #e1e6ec;
    vertical-align: top;
    line-height: 1.65;
    background: #fff;
}

#ipl-vs-laser .compare-table th {
    background: #eaf3fa;
    color: #224466;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    text-align: center;
}

#ipl-vs-laser .compare-table td:first-child {
    background: #f9fafc;
}

#ipl-vs-laser .compare-table th + th,
#ipl-vs-laser .compare-table td + td {
    border-left: 1px solid #e1e6ec;
}

#ipl-vs-laser .compare-table tr:last-child td {
    border-bottom: none;
}

/* 比較後CTA */
.compact-cta {
    margin: 18px 0 1rem;
    padding: 16px 14px;
    border-radius: 10px;
    background: #f9fafc;
    border: 1px solid #e1e6ec;
}

.compact-cta p {
    padding: 0;
    margin: 0 0 0.6rem;
    text-indent: 0;
    line-height: 1.8;
}

.compact-cta .line_detail {
    margin-top: 12px;
}

/* link-rowの重なり防止 */
.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 0;
}

.link-row .link-button,
.menu-main .content-block > .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 8px 10px 0;
    padding: 7px 34px 7px 18px;
    white-space: normal;
    line-height: 1.45;
}

/* 既存 .link-button:after の右寄せが重なりやすいので調整 */
.menu-main .link-button:after {
    left: auto;
    margin-left: 1.2rem;
}

/* 関連リンクはカード状に折り返す */
.menu-main .content-block h4 + .link-button,
.menu-main .content-block h4 ~ .link-button {
    display: inline-flex;
    margin: 0 8px 10px 0;
}

/* スマホ調整 */
@media screen and (max-width: 640px) {
    .flow-list li {
        padding: 13px 18px 13px 40px;
    }

    .flow-list li::before {
        left: 12px;
        top: 14px;
    }

    #ipl-vs-laser .compare-table th,
    #ipl-vs-laser .compare-table td {
        padding: 10px 7px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .link-row {
        display: block;
    }

    .link-row .link-button,
    .menu-main .content-block > .link-button,
    .menu-main .content-block h4 + .link-button,
    .menu-main .content-block h4 ~ .link-button {
        display: flex;
        width: 100%;
        margin: 0 0 9px 0;
        padding: 8px 28px 8px 14px;
    }

    .menu-main .link-button:after {
        margin-left: auto;
        padding-left: 0.8rem;
    }
}
/* QRb laser: 照射後の経過タイムライン */
.aftercare-timeline {
    list-style: none;
    padding-left: 0 !important;
    margin: 16px 0 10px;
    position: relative;
}

.aftercare-timeline::before {
    content: "";
    position: absolute;
    left: 5.8rem;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: #d7dbe0;
}

.aftercare-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 5.2rem 1fr;
    gap: 14px;
    margin-bottom: 13px;
    line-height: 1.75;
}

.aftercare-timeline li::before {
    content: "";
    position: absolute;
    left: 5.45rem;
    top: 0.26rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #468cc5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d7dbe0;
    z-index: 1;
}

.timeline-time {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #266ca5;
    text-align: right;
    padding-top: 0.15rem;
}

.aftercare-timeline li > div {
    background: #f9fafc;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    padding: 10px 12px;
    margin-left: 0.6rem;
}

.aftercare-timeline strong {
    display: block;
    color: #224466;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-main .aftercare-timeline p {
    padding: 0;
    margin: 0;
    text-indent: 0;
    line-height: 1.7;
}

/* スマホ調整 */
@media screen and (max-width: 640px) {
    .aftercare-timeline::before {
        left: 4.8rem;
    }

    .aftercare-timeline li {
        grid-template-columns: 4.3rem 1fr;
        gap: 12px;
    }

    .aftercare-timeline li::before {
        left: 4.45rem;
        top: 0.22rem;
    }

    .timeline-time {
        font-size: 0.84rem;
    }

    .aftercare-timeline li > div {
        padding: 9px 10px;
    }
}