@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,
.price-lead,
.breadcrumb,
.ba-box span {
    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;
}

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

/* --- テキスト設定 --- */
.gum-disease-content {
    padding: 30px 15px 60px;
    overflow: hidden;
}

.lead-text,
.price-lead {
    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;
}

/* ==========================================
   2. H2/H3レイアウト（歯周病ベース）
   ========================================== */
.h2-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    width: 100%;
}

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

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

.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-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-top: -4px;
}

/* ==========================================
   3. インビザライン移植パーツ（症例・料金表）
   ========================================== */
.case-item {
    background: #f9f8f4;
    padding: 30px;
    margin-bottom: 60px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.ba-flex {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ba-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ba-box span {
    background: rgba(153, 9, 0, 0.8);
    color: #fff;
    padding: 8px 25px;
    margin-bottom: 15px;
    min-width: 150px;
    text-align: center;
    font-weight: 600;
	letter-spacing: 0.1em;
}

.ba-box img {
    width: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.case-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

.case-table th {
    background: #8b8671;
    color: #fff;
    width: 30%;
    padding: 12px;
    text-align: left;
    font-size: 0.85rem;
}

.case-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    color: #444;
}

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

/* ==========================================
   4. PC版・SP版設定
   ========================================== */
@media (min-width: 769px) {
    .sub-mv {
        height: 300px;
    }
    .sub-mv__title {
        font-size: 2.2rem;
    }
    .gum-disease-content {
        padding: 60px 0 0;
    }
    .common-title {
        font-size: 1.8rem;
        padding: 15px;
        margin-bottom: 50px;
    }
    .h3-block h3 {
        font-size: 1.3rem;
    }
    .h3-block:hover {
        transform: translateY(-7px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
    .h3-block:hover .h3-img img {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .lead-text,
    .lead-text01 {
        text-align: left !important;
    }
    .common-title {
        margin-bottom: 40px;
    }
    .h2-flex,
    .h3-flex,
    .ba-flex {
        flex-direction: column;
        gap: 25px;
    }
    .h2-img,
    .h3-img,
    .ba-box {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    .h2-img {
        order: 1;
    }
    .h2-text {
        order: 2;
        width: 100%;
    }
    .h3-text {
        margin-top: 0;
    }
    .ba-box span {
        width: 80%;
        min-width: auto;
    }
}

/* PCのみ改行 */
.br-pc {
    display: block;
}

@media (max-width: 768px) {
    .br-pc {
        display: none;
    }
}

/* ==========================================
   歯周外科ページ：偶数セクション背景
   2番目・4番目・6番目・8番目
   ========================================== */

/* 横幅いっぱい背景を見せるため、親要素の切り取りを解除 */
.gum-disease-content {
    overflow: visible;
}

.perio-surgery-reason,
.perio-surgery-feature,
.perio-surgery-risk,
.perio-surgery-outro {
    position: relative;
    background: #eee9dcaa;
    padding: 0 28px 45px;
    box-shadow: 0 0 0 100vmax #eee9dcaa;
    clip-path: inset(0 -100vmax);
}

/* h2の上に背景色がはみ出ないように調整 */
.perio-surgery-reason .common-title,
.perio-surgery-feature .common-title,
.perio-surgery-risk .common-title,
.perio-surgery-outro .common-title {
    margin-left: -28px;
    margin-right: -28px;
}

/* 各背景ブロック内の最後の余白を調整 */
.perio-surgery-reason > *:last-child,
.perio-surgery-feature > *:last-child,
.perio-surgery-risk > *:last-child,
.perio-surgery-outro > *:last-child {
    margin-bottom: 0;
}

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

    .perio-surgery-reason .common-title,
    .perio-surgery-feature .common-title,
    .perio-surgery-risk .common-title,
    .perio-surgery-outro .common-title {
        margin-left: -18px;
        margin-right: -18px;
    }
}

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

/* ==========================================
   歯周外科ページ：料金表デザイン
   ========================================== */
.perio-surgery-price .price-table-wrap {
    width: 100%;
    margin-top: 34px;
    margin-bottom: 40px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e6e0cf;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    box-sizing: border-box;
    overflow: visible;
}

.perio-surgery-price .common-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: hidden;
}

.perio-surgery-price .common-table th,
.perio-surgery-price .common-table td {
    padding: 18px 20px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #e6e0cf;
    border-bottom: 1px solid #e6e0cf;
}

.perio-surgery-price .common-table th:first-child,
.perio-surgery-price .common-table td:first-child {
    border-left: 1px solid #e6e0cf;
}

.perio-surgery-price .common-table thead th {
    background: #A4B373;
    color: #fff;
    font-weight: 700;
    border-top: 1px solid #A4B373;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.perio-surgery-price .common-table thead th:first-child {
    border-left: 1px solid #A4B373;
}

.perio-surgery-price .common-table thead th:last-child {
    border-right: 1px solid #A4B373;
}

.perio-surgery-price .common-table tbody tr:nth-child(even) {
    background: #faf8f1;
}

.perio-surgery-price .common-table tbody tr:hover {
    background: #f4f0e4;
}

.perio-surgery-price .common-table td:first-child {
    width: 28%;
    color: #556b2f;
    font-weight: 700;
    text-align: left;
}

.perio-surgery-price .price-table__price {
    display: inline-block;
    color: #B13A2B;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* ==========================================
   SP版：料金表をカード型に変更
   ========================================== */
@media (max-width: 768px) {
    .perio-surgery-price .price-table-wrap {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .perio-surgery-price .common-table,
    .perio-surgery-price .common-table thead,
    .perio-surgery-price .common-table tbody,
    .perio-surgery-price .common-table tr,
    .perio-surgery-price .common-table th,
    .perio-surgery-price .common-table td {
        display: block;
        width: 100%;
    }

    .perio-surgery-price .common-table thead {
        display: none;
    }

    .perio-surgery-price .common-table tr {
        background: #fff;
        margin-bottom: 18px;
        border: 1px solid #e6e0cf;
        box-shadow: 0 5px 16px rgba(0,0,0,0.05);
    }

    .perio-surgery-price .common-table tbody tr:nth-child(even) {
        background: #fff;
    }

    .perio-surgery-price .common-table td {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee8d8;
        padding: 14px 16px;
        font-size: 0.93rem;
        background: #fff;
    }

    .perio-surgery-price .common-table td:first-child {
        width: auto;
        background: #A4B373;
        color: #fff;
        font-weight: 700;
        text-align: left;
        display: block;
    }

    .perio-surgery-price .common-table td:last-child {
        border-bottom: none;
    }

    .perio-surgery-price .common-table td:not(:first-child)::before {
        content: attr(data-label);
        color: #556b2f;
        font-weight: 700;
        text-align: left;
        flex: 0 0 45%;
    }

    .perio-surgery-price .price-table__price {
        font-size: 1rem;
    }
}