@charset "utf-8";

/* ==========================================
   1. 基本設定
   ========================================== */
.inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* フォント指定の統一 */
.sub-mv__title, 
.common-title, 
.h3-block h3, 
.lead-text, 
.lead-text01,
.breadcrumb {
    font-family: "Noto Serif JP", serif;
}

/* 改行制御用 */
.br-pc, .br-sp {
    display: none;
}

/* --- 下層共通メインビジュアル --- */
.sub-mv {
    width: 100%;
    height: 180px;
    background: url('https://hata-shika.com/wp-content/uploads/2026/05/bg.png') no-repeat center 70% / cover;
    background-color: #556b2f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.sub-mv::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.sub-mv__title {
    position: relative;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
}

/* --- パンくずリスト --- */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.75rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li + li::before {
    content: ">";
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb a {
    color: #556b2f;
    text-decoration: none;
}

/* --- 共通見出し --- */
.common-title {
    background-color: #556b2f;
    color: #fff;
    text-align: center;
    padding: 12px 10px;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

/* ==========================================
   2. メインコンテンツ
   ========================================== */
.gum-disease-content {
    overflow: hidden;
    padding: 30px 15px 60px;
}

.lead-text {
    text-align: left;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: #333;
    line-height: 2;
}

.lead-text01 {
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: #333;
    line-height: 2;
}

/* --- チェックリスト --- */
.check-list {
    list-style: none;
    padding: 20px;
    margin: 0 0 30px 0;
    width: 100%;
	background: #faf7e6;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #556b2f;
    font-size: 1rem;
    line-height: 1.1;
	    font-weight: 500;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0; 
    top: 0;
    color: #556b2f;
    font-size: 1.2rem;
}

/* --- H2フレックスレイアウト --- */
.h2-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.h2-img {
    flex: 0 0 42%;
    max-width: 42%;
}

.h2-img img {
    width: 100%;
    height: auto;
    display: block;
}

.h2-text {
    flex: 1;
    min-width: 0;
}

/* --- H3ブロック --- */
.h3-block {
    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;
}

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

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

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

.h3-img {
    flex: 0 0 42%;
    overflow: hidden;
}

.h3-img img {
    width: 100%;
    height: auto;
    display: block;
}

.h3-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* --- 出典エリア --- */
.source-area {
    padding: 20px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.6;
}

.source-item {
    margin-bottom: 15px;
}

.source-area a {
    color: #556b2f;
    font-size: 11px;
    word-break: break-all; /* 長いURLの折り返し用 */
}

/* --- 予約ボタン --- */
.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;
    transition: background 0.3s ease, transform 0.3s ease;
	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;
}

/* ==========================================
   3. PC版設定（769px以上）
   ========================================== */
@media (min-width: 769px) {
    .sub-mv {
        height: 300px;
    }
    
    .sub-mv__title {
        font-size: 2.2rem;
    }
    
    .common-title {
        font-size: 1.8rem;
        padding: 15px;
        margin-bottom: 50px;
    }
    
    .h3-block:hover {
        transform: translateY(-7px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .gum-disease-content {
        padding: 60px 0 100px;
    }

    .br-pc {
        display: block;
    }
}

/* ==========================================
   4. SP版設定（768px以下）
   ========================================== */
@media (max-width: 768px) {
    .lead-text, 
    .lead-text01 {
        text-align: left !important;
    }
    
    .h2-flex, 
    .h3-flex {
        flex-direction: column;
        gap: 25px;
    }
    
    .h2-img, 
    .h3-img {
        width: 100%;
        max-width: 100%;
    }
    
    .h2-img {
        order: 1;
    }
    
    .h2-text {
        order: 2;
        width: 100%;
    }

    .br-sp {
        display: block;
    }
}

/* ==========================================
   予防歯科ページ：お悩みブロック
   ========================================== */
.prevention-worries {
    position: relative;
    background: #f6f2e7;
    padding: 0 28px 45px;
    margin-bottom: 60px;
    box-shadow: 0 0 0 100vmax #f6f2e7;
    clip-path: inset(0 -100vmax);
}

.prevention-worries .common-title {
    margin-left: -28px;
    margin-right: -28px;
}

.prevention-check-box {
    background: #ffffff;
    border: 1px solid #e6e0cf;
    padding: 28px;
    margin: 0 0 35px;
}

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

.prevention-check-list li {
    position: relative;
    padding-left: 30px;
    font-family: "Noto Serif JP", serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    font-weight: 700;
}

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

/* ==========================================
   予防歯科ページ：各H2ブロック共通
   ========================================== */
.gum-disease-content {
    overflow: visible;
}

.gum-disease-content > .prevention-outro {
    position: relative;
    z-index: 0;
    margin-bottom: 60px;
}

/* ==========================================
   偶数ブロックのみ背景色を横幅いっぱいに表示
   ========================================== */
.gum-disease-content > .prevention-outro:nth-of-type(even) {
    padding: 0 28px 45px;
}

.gum-disease-content > .prevention-outro:nth-of-type(even)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #f6f2e7;
    z-index: -1;
}

.gum-disease-content > .prevention-outro:nth-of-type(even) .common-title {
    margin-left: -28px;
    margin-right: -28px;
}

.gum-disease-content > .prevention-outro:nth-of-type(even) > *:last-child {
    margin-bottom: 0;
}

.gum-disease-content > .prevention-outro:last-of-type {
    margin-bottom: 0;
}

/* ==========================================
   このようなお悩みはありませんか？ チェックリスト
   ========================================== */
.prevention-check-box {
    background: #ffffff;
    border: 1px solid #e6e0cf;
    padding: 28px;
    margin: 0 0 35px;
}

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

.prevention-check-list li {
    position: relative;
    padding-left: 30px;
    font-family: "Noto Serif JP", serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    font-weight: 700;
}

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

/* ==========================================
   SP調整
   ========================================== */
@media (max-width: 768px) {
    .gum-disease-content > .prevention-outro:nth-of-type(even) {
        padding: 0 18px 35px;
    }

    .gum-disease-content > .prevention-outro:nth-of-type(even) .common-title {
        margin-left: -18px;
        margin-right: -18px;
    }

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

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

    .prevention-check-list li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* ==========================================
   予防歯科：クリーニングの流れ
   入れ歯ページの流れデザインに合わせる
   ========================================== */
.prevention-flow-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
}

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

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

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

.prevention-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);
}

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

/* カード左の三角 */
.prevention-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 */
.prevention-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;
}

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

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

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

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

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

/* ==========================================
   SP版：クリーニングの流れ
   ========================================== */
@media (max-width: 768px) {
    .prevention-flow-list {
        gap: 26px;
        margin-top: 30px;
    }

    .prevention-flow-list::before {
        display: none;
    }

    .prevention-flow-item {
        display: block;
    }

    .prevention-flow-head {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: flex-start;
        padding: 0 0 0 14px;
        margin-bottom: -13px;
    }

    .prevention-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);
    }

    .prevention-flow-body {
        padding: 28px 18px 22px;
        border: 1px solid #e8e2d2;
        box-shadow: 0 5px 16px rgba(0,0,0,0.05);
    }

    .prevention-flow-body::before {
        display: none;
    }

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

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

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