@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, 
.breadcrumb {
    font-family: "Noto Serif JP", serif;
}

/* --- 下層共通メインビジュアル --- */
.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;
}

/* --- パンくずリスト --- */
.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;
}

/* ==========================================
   2. メインコンテンツ（虫歯治療：caries）
   ========================================= */
.caries-content {
    padding: 30px 15px 60px;
}

/* 共通見出し（緑背景・白文字・センター） */
.common-title {
    background-color: #556b2f;
    color: #fff;
    text-align: center;
    padding: 12px 10px;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

/* リード文 */
.lead-text {
    text-align: left;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

/* --- 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, box-shadow 0.3s ease;
}

/* PCホバー時の浮き上がり演出 */
@media (min-width: 769px) {
    .h3-block:hover {
        transform: translateY(-7px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }
}

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

/* 見出し下の装飾ライン */
.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%;
    margin: 0;
    overflow: hidden;
}

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

/* 写真のホバーズーム */
.h3-block:hover .h3-img img {
    transform: scale(1.05);
}

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

/* ==========================================
   3. PC版設定（769px以上）
   ========================================== */
@media (min-width: 769px) {
    .sub-mv { height: 300px; }
    .sub-mv__title { font-size: 2.2rem; }
    .caries-content { padding: 60px 0 100px; }
    .common-title {
        font-size: 1.8rem;
        padding: 15px;
        margin-bottom: 50px;
    }
    .h3-block h3 { font-size: 1.3rem; }
}

/* ==========================================
   4. SP版設定（768px以下）
   ========================================== */
@media (max-width: 768px) {
    .lead-text { text-align: left; }
    .h3-flex { flex-direction: column; gap: 20px; }
    .h3-img { width: 100%; margin-bottom: 15px; }
    .h3-text { margin-top: 0; }
}

.caries-status .h3-block .h3-flex .h3-img{
	flex: 0 0 24%;
}

@media (max-width: 768px) {
   .caries-status .h3-block .h3-flex .h3-img{
	width: 60%;
	   margin: 0 auto;
	}
}

/* ==========================================
   偶数セクション背景：横幅いっぱい
   2番目・4番目・6番目
   ========================================== */
.caries-reason,
.caries-features,
.caries-outro {
    position: relative;
    background: #eee9dcaa;
    padding: 0 28px 45px;
    box-shadow: 0 0 0 100vmax #eee9dcaa;
    clip-path: inset(0 -100vmax);
}

/* h2見出しを背景内で横幅いっぱいに見せる */
.caries-reason .common-title,
.caries-features .common-title,
.caries-outro .common-title {
    margin-left: -28px;
    margin-right: -28px;
}

/* 背景セクション内の最後の余白を調整 */
.caries-reason .h3-block:last-child,
.caries-features .h3-block:last-child,
.caries-outro .lead-text:last-child {
    margin-bottom: 0;
}

/* SP調整 */
@media (max-width: 768px) {
    .caries-reason,
    .caries-features,
    .caries-outro {
        padding: 0 18px 35px;
    }

    .caries-reason .common-title,
    .caries-features .common-title,
    .caries-outro .common-title {
        margin-left: -18px;
        margin-right: -18px;
    }
}

.caries-content.inner > section {
    margin-bottom: 60px;
}

/* 最後のセクションだけ余白を消す */
.caries-content.inner > section:last-child {
    margin-bottom: 0;
}

.caries-outro{
	padding-bottom:100px;
}

/* ==========================================
   8. ボタン
   ========================================== */
.btn-wrap {
    text-align: center;
    margin: 60px 0 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;
}
