@charset "utf-8";

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

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

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

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

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

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

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

.shoni-intro,
.shoni-worries,
.shoni-caries,
.shoni-neglect,
.shoni-reason,
.shoni-feature,
.shoni-points,
.shoni-outro {
    margin-bottom: 60px;
}

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

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

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

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

/* ==========================================
   H3カード
   ========================================== */
.shoni-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;
}

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

.shoni-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;
}

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

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

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

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

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

.shoni-card__text p {
    margin: 0;
}

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

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

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

/* ==========================================
   虫歯放置ボックス
   ========================================== */
.shoni-note-box {
    background: #ffffff;
    border-left: 5px solid #A4B373;
    padding: 25px;
}

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

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

/* ==========================================
   予約ボタン
   ========================================== */
.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) {
    .shoni-content {
        padding: 60px 0 100px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

.shoni-worries .shoni-title,
.shoni-neglect .shoni-title,
.shoni-feature .shoni-title,
.shoni-outro .shoni-title {
    margin-left: -28px;
    margin-right: -28px;
}

/* SP調整 */
@media (max-width: 768px) {
    .shoni-worries,
    .shoni-neglect,
    .shoni-feature,
    .shoni-outro {
        padding: 0 18px 30px;
    }

    .shoni-worries .shoni-title,
    .shoni-neglect .shoni-title,
    .shoni-feature .shoni-title,
    .shoni-outro .shoni-title {
        margin-left: -18px;
        margin-right: -18px;
    }
}

/* ==========================================
   虫歯にならないためのポイント：画像なしカード
   ========================================== */
.shoni-point-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.shoni-point-card {
    background: #fff;
    padding: 26px 24px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.shoni-point-card h3 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.15rem;
    color: #556b2f;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: bold;
    position: relative;
    line-height: 1.4;
}

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

.shoni-point-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.shoni-point-card p + p {
    margin-top: 1em;
}

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

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

/* SP調整 */
@media (max-width: 768px) {
    .shoni-point-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

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