@charset "utf-8";

/* ==========================================
   矯正歯科ページ 基本設定
   ========================================== */
.inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.kyosei-title,
.kyosei-card h3,
.kyosei-lead,
.kyosei-check-list li {
    font-family: "Noto Serif JP", serif;
}

/* ==========================================
   コンテンツ共通
   ========================================== */
.kyosei-content {
    padding: 30px 15px 60px;
}

.kyosei-content section {
    box-sizing: border-box;
}

.kyosei-title {
    background-color: #556b2f;
    color: #fff;
    text-align: center;
    padding: 12px 10px;
    font-size: 1.3rem;
    margin: 0 0 25px;
    line-height: 1.5;
}

.kyosei-lead {
    text-align: left;
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

.kyosei-lead:last-child {
    margin-bottom: 0;
}

.kyosei-intro,
.kyosei-worries,
.kyosei-feature,
.kyosei-type,
.kyosei-case,
.kyosei-flow,
.kyosei-cost,
.kyosei-faq,
.kyosei-outro {
    margin-bottom: 60px;
}

/* ==========================================
   お悩みチェックリスト
   ========================================== */
.kyosei-check-box {
    background: #ffffff;
    border: 1px solid #e6e0cf;
    padding: 28px;
    margin: 0 0 35px;
}

.kyosei-check-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kyosei-check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    font-weight: 700;
}

.kyosei-check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #556b2f;
    font-weight: bold;
}

/* ==========================================
   H3カード
   ========================================== */
.kyosei-card {
    margin-bottom: 50px;
    background: #fff;
    padding: 25px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kyosei-card:last-child {
    margin-bottom: 0;
}

.kyosei-card h3 {
    font-size: 1.15rem;
    color: #556b2f;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: bold;
    position: relative;
    line-height: 1.4;
}

.kyosei-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #556b2f;
}

.kyosei-card__flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.kyosei-card__img {
    flex: 0 0 38%;
    margin: 0;
    overflow: hidden;
}

.kyosei-card__img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.kyosei-card__text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-top: -4px;
}

.kyosei-card__text p {
    margin: 0;
}

.kyosei-card__text p + p {
    margin-top: 1em;
}

/* PCホバー */
@media (min-width: 769px) {
    .kyosei-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .kyosei-card:hover .kyosei-card__img img {
        transform: scale(1.05);
    }
}

/* ==========================================
   注釈・症例・費用ボックス
   ========================================== */
.kyosei-note-box {
    background: #ffffff;
    border-left: 5px solid #A4B373;
    padding: 25px;
}

.kyosei-note-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
}

.kyosei-note-box p + p {
    margin-top: 1em;
}

/* ==========================================
   画像なしカード
   治療の流れ・FAQ用
   ========================================== */
.kyosei-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kyosei-faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.kyosei-faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    color: #556b2f;
    font-weight: bold;
    line-height: 1.6;
    font-family: "Noto Serif JP", serif;
}

.kyosei-faq-item summary::-webkit-details-marker {
    display: none;
}

.kyosei-faq-item summary::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    background: #556b2f;
    color: #fff;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    vertical-align: middle;
}

.kyosei-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #556b2f;
    line-height: 1;
}

.kyosei-faq-item[open] summary::after {
    content: "−";
}

.kyosei-faq-answer {
    padding: 0 22px 22px;
}

.kyosei-faq-answer p {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================
   予約ボタン
   ========================================== */
.btn-wrap {
    text-align: center;
    margin: 40px 0;
}

.btn-common {
    display: inline-block;
    background: rgba(153, 9, 0, 0.8);
    color: #fff;
    padding: 15px 60px;
    text-decoration: none;
    box-shadow: 0 3px 5px rgba(195, 186, 186, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-common:hover {
    opacity: 0.8;
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
    transform: translateY(-2px);
    color: #fff;
}

.btn-common:active {
    transform: translateY(2px);
    color: #fff;
}

/* ==========================================
   PC版設定
   ========================================== */
@media (min-width: 769px) {
    .kyosei-content {
        padding: 60px 0 100px;
    }

    .kyosei-title {
        font-size: 1.8rem;
        padding: 15px;
        margin-bottom: 50px;
    }

    .kyosei-card h3 {
        font-size: 1.3rem;
    }
}

/* ==========================================
   偶数セクション背景：横幅いっぱい
   ========================================== */
.kyosei-worries,
.kyosei-type,
.kyosei-flow,
.kyosei-faq,
.kyosei-outro {
    position: relative;
    background: #eee9dcaa;
    padding: 0 28px 38px;
    box-shadow: 0 0 0 100vmax #eee9dcaa;
    clip-path: inset(0 -100vmax);
}

.kyosei-worries .kyosei-title,
.kyosei-type .kyosei-title,
.kyosei-flow .kyosei-title,
.kyosei-faq .kyosei-title,
.kyosei-outro .kyosei-title {
    margin-left: -28px;
    margin-right: -28px;
}

/* 最後のsectionのみ余白をなくす */
.kyosei-content > section:last-of-type {
    margin-bottom: 0;
}

/* 最後のsection内の予約ボタン下余白を抑える */
.kyosei-outro .btn-wrap {
    margin-bottom: 0;
}

/* ==========================================
   SP版設定
   ========================================== */
@media (max-width: 768px) {
    .kyosei-content {
        padding: 30px 15px 60px;
    }

    .kyosei-title {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }

    .kyosei-lead {
        text-align: left;
        font-size: 0.93rem;
    }

    .kyosei-card {
        padding: 22px 18px;
        margin-bottom: 38px;
    }

    .kyosei-card__flex {
        flex-direction: column;
        gap: 20px;
    }

    .kyosei-card__img {
        width: 100%;
        flex: none;
        margin-bottom: 5px;
    }

    .kyosei-card__text {
        margin-top: 0;
    }

    .kyosei-check-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kyosei-check-box {
        padding: 22px 18px;
    }

    .kyosei-point-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kyosei-point-card {
        padding: 22px 18px;
    }

    .kyosei-point-card h3 {
        font-size: 1.08rem;
    }

    .kyosei-worries,
    .kyosei-type,
    .kyosei-flow,
    .kyosei-faq,
    .kyosei-outro {
        padding: 0 18px 30px;
    }

    .kyosei-worries .kyosei-title,
    .kyosei-type .kyosei-title,
    .kyosei-flow .kyosei-title,
    .kyosei-faq .kyosei-title,
    .kyosei-outro .kyosei-title {
        margin-left: -18px;
        margin-right: -18px;
    }

    .btn-common {
        width: min(100%, 320px);
        padding: 14px 20px;
        box-sizing: border-box;
    }
}

/* ==========================================
   矯正歯科治療の流れ
   ========================================== */
.kyosei-flow-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
}

/* 縦ライン */
.kyosei-flow-list::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 55px;
    width: 2px;
    background: rgba(85, 107, 47, 0.25);
}

/* 各ステップ */
.kyosei-flow-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    align-items: flex-start;
}

/* FLOW番号まわり */
.kyosei-flow-head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.kyosei-flow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #B13A2B;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 6px 16px rgba(85, 107, 47, 0.22);
}

/* 本文カード */
.kyosei-flow-body {
    position: relative;
    background: #fff;
    padding: 28px 30px;
    border: 1px solid #e8e2d2;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* カード左の小さな三角 */
.kyosei-flow-body::before {
    content: "";
    position: absolute;
    top: 34px;
    left: -12px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #fff;
}

/* H3 */
.kyosei-flow-body h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: #556b2f;
    font-family: "Noto Serif JP", serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 2px solid #f0f0f0;
}

.kyosei-flow-body h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 54px;
    height: 2px;
    background: #556b2f;
}

/* 本文 */
.kyosei-flow-body p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.kyosei-flow-body p + p {
    margin-top: 1em;
}

/* PCホバー */
@media (min-width: 769px) {
    .kyosei-flow-body {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .kyosei-flow-item:hover .kyosei-flow-body {
        transform: translateX(6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    }
}

/* ==========================================
   SP版
   ========================================== */
@media (max-width: 768px) {
    .kyosei-flow-list {
        gap: 26px;
        margin-top: 30px;
    }

    /* SPでは縦ラインを非表示 */
    .kyosei-flow-list::before {
        display: none;
    }

    /* SPでは横並びをやめて、本文幅を広く使う */
    .kyosei-flow-item {
        display: block;
    }

    /* FLOWラベルをカード上部に小さく配置 */
    .kyosei-flow-head {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: flex-start;
        padding: 0 0 0 14px;
        margin-bottom: -13px;
    }

    .kyosei-flow-num {
        width: auto;
        min-width: 74px;
        height: 28px;
        padding: 0 12px;
        border-radius: 999px;
        color: #fff;
        font-family: "Noto Serif JP", serif;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(85, 107, 47, 0.2);
    }

    /* 本文カードを画面幅いっぱいに近づける */
    .kyosei-flow-body {
        padding: 28px 18px 22px;
        border: 1px solid #e8e2d2;
        box-shadow: 0 5px 16px rgba(0,0,0,0.05);
    }

    /* 左の三角はSPでは不要 */
    .kyosei-flow-body::before {
        display: none;
    }

    .kyosei-flow-body h3 {
        font-size: 1.08rem;
        margin: 0 0 14px;
        padding-bottom: 10px;
        line-height: 1.5;
    }

    .kyosei-flow-body p {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .kyosei-flow-body p + p {
        margin-top: 0.9em;
    }
}