@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,
.h4-flex-wrap h4,
.lead-text,
.lead-text01,
.price-lead,
.breadcrumb,
.table-sub-title,
.inlay-check-list li,
.common-table {
    font-family: "Noto Serif JP", serif;
}

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

@media (max-width: 768px) {
    .br-pc {
        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;
}

/* --- パン屑 --- */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.75rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 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: 0 0 25px;
    line-height: 1.5;
}

/* --- コンテンツエリア設定 --- */
.inlay-content {
    padding: 30px 15px 60px;
    overflow: visible;
}

.inlay-section {
    position: relative;
    z-index: 0;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.inlay-section:last-of-type {
    margin-bottom: 38px;
}

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

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

/* ==========================================
   2. 偶数ブロック背景
   ========================================== */
.inlay-content > .inlay-section:nth-of-type(even) {
    padding: 0 28px 45px;
}

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

.inlay-content > .inlay-section:nth-of-type(even) .common-title {
    margin-left: -28px;
    margin-right: -28px;
}

.inlay-content > .inlay-section:nth-of-type(even) > *:last-child {
    margin-bottom: 0;
}

/* ==========================================
   3. レイアウト（h2-flex / h3-flex）
   ========================================== */
.h2-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.h2-flex.reverse {
    flex-direction: row-reverse;
}

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

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

.h2-text {
    flex: 1;
}

/* ==========================================
   4. このような場合はご相談ください
   ========================================== */
.inlay-check-box {
    background: #ffffff;
    border: 1px solid #e6e0cf;
    padding: 28px;
    margin: 0 0 35px;
}

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

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

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

/* ==========================================
   5. 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;
}

.h3-block:last-child {
    margin-bottom: 0;
}

.h3-block h3 {
    font-size: 1.2rem;
    color: #556b2f;
    margin: 0 0 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%;
    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;
}

.h3-text p {
    margin: 0 0 10px 0;
}

@media (min-width: 769px) {
    .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);
    }
}

/* ==========================================
   6. H4レイアウト（画像横並び）
   ========================================== */
.material-block {
    padding-bottom: 10px;
}

.h4-flex-wrap {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.h4-flex-wrap:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.h4-flex-wrap h4 {
    font-size: 1.1rem;
    color: #444;
    margin: 0 0 20px;
    padding-left: 15px;
    border-left: 4px solid #8b8671;
    font-weight: bold;
}

.h4-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.h4-img {
    flex: 0 0 30%;
}

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

.h4-text {
    flex: 1;
}

.h4-text p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   7. 料金表
   ========================================== */
.table-sub-title {
    font-size: 1.15rem;
    color: #556b2f;
    margin: 50px 0 20px;
    padding-left: 10px;
    border-left: 5px solid #556b2f;
    font-weight: bold;
}

.table-sub-title:first-of-type {
    margin-top: 0;
}

.inlay-price .price-table-wrap {
    width: 100%;
    margin-top: 0;
    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;
}

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

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

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

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

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

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

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

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

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

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

.table-note {
    font-size: 0.8rem;
    color: #666;
    margin: 12px 0 0;
    line-height: 1.7;
}

/* ==========================================
   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;
}

/* ==========================================
   9. PC版
   ========================================== */
@media (min-width: 769px) {
    .sub-mv {
        height: 300px;
    }

    .sub-mv__title {
        font-size: 2.2rem;
    }

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

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

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

    .inlay-content > .inlay-section:nth-of-type(even) {
        padding: 0 18px 35px;
    }

    .inlay-content > .inlay-section:nth-of-type(even) .common-title {
        margin-left: -18px;
        margin-right: -18px;
    }

    .lead-text,
    .lead-text01,
    .price-lead {
        text-align: left;
        font-size: 0.93rem;
    }

    .h2-flex,
    .h2-flex.reverse {
        flex-direction: column !important;
        gap: 25px;
    }

    .h3-flex,
    .h4-flex {
        flex-direction: column;
        gap: 20px;
    }

    .h2-img,
    .h3-img,
    .h4-img {
        width: 100%;
        max-width: 100%;
        flex: none;
        order: 1;
    }

    .h2-text,
    .h3-text,
    .h4-text {
        order: 2;
        width: 100%;
    }

    .h3-block {
        padding: 22px 18px;
        margin-bottom: 38px;
    }

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

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

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

    .inlay-price .price-table-wrap {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

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

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

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

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

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

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

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

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

    .inlay-price .price-table__price {
        font-size: 1rem;
        white-space: normal;
    }

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