/* blog.css - ブログページ用スタイル */
/* =========================================
   blog.css
   ブログ記事 共通スタイル
========================================= */

/* ------------------------------
   Base
------------------------------ */

.blog-article {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px 96px;
    color: #222;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.03em;
    word-break: break-word;
}

.blog-article * {
    box-sizing: border-box;
}

.blog-article img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.blog-article a {
    color: #28723c;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.blog-article a:hover {
    opacity: 0.7;
}


/* ------------------------------
   Article Header
------------------------------ */

.blog-article__header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #ddd;
}

.blog-article__category {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    background: #edf5ef;
    color: #28723c;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.blog-article__title {
    margin: 0;
    color: #111;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    color: #777;
    font-size: 13px;
}


/* ------------------------------
   Main Visual
------------------------------ */

.blog-article__eyecatch {
    margin: 0 0 48px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-article__eyecatch img {
    /* 画像本来の比率で全体を表示（上下トリミングを防止） */
    width: 100%;
    height: auto;
}


/* ------------------------------
   Text
------------------------------ */

.blog-article p {
    margin: 0 0 1.8em;
}

.blog-article strong {
    color: #111;
    font-weight: 700;
}


/* ------------------------------
   Headings
------------------------------ */

.blog-article h2 {
    margin: 72px 0 28px;
    padding: 18px 22px;
    background: #edf5ef;
    border-left: 6px solid #28723c;
    border-radius: 0 8px 8px 0;
    color: #144322;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.5;
    font-weight: 700;
}

.blog-article h3 {
    margin: 48px 0 20px;
    padding: 12px 18px;
    background: #f2f6f3;
    border-left: 4px solid #7bbf8e;
    border-radius: 0 6px 6px 0;
    color: #1c1c1c;
    font-size: clamp(20px, 2.5vw, 25px);
    line-height: 1.5;
    font-weight: 700;
}

.blog-article h4 {
    margin: 36px 0 16px;
    color: #222;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 700;
}


/* ------------------------------
   Lists
------------------------------ */

.blog-article ul,
.blog-article ol {
    margin: 24px 0 32px;
    padding: 24px 24px 24px 48px;
    background: #f7f8f7;
    border-radius: 10px;
}

.blog-article li {
    margin-bottom: 10px;
}

.blog-article li:last-child {
    margin-bottom: 0;
}

.blog-article li::marker {
    color: #28723c;
    font-weight: 700;
}


/* ------------------------------
   Blockquote
------------------------------ */

.blog-article blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: #f5f5f5;
    border-left: 4px solid #aaa;
    color: #555;
}

.blog-article blockquote p:last-child {
    margin-bottom: 0;
}


/* ------------------------------
   Table
------------------------------ */

.blog-article__table-wrap {
    width: 100%;
    margin: 32px 0;
    overflow-x: auto;
}

.blog-article table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
}

.blog-article th,
.blog-article td {
    padding: 14px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.blog-article th {
    background: #f2f5f2;
    color: #222;
    font-weight: 700;
}


/* ------------------------------
   Highlight Box
------------------------------ */

.blog-article__box {
    margin: 32px 0;
    padding: 28px 30px;
    background: #f7faf7;
    border: 1px solid #d9e5db;
    border-radius: 10px;
}

.blog-article__box-title {
    margin: 0 0 12px;
    color: #28723c;
    font-size: 18px;
    font-weight: 700;
}

.blog-article__box p:last-child {
    margin-bottom: 0;
}


/* ------------------------------
   Point Box
------------------------------ */

.blog-article__point {
    position: relative;
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border: 2px solid #28723c;
    border-radius: 12px;
}

.blog-article__point-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #28723c;
    font-size: 14px;
    font-weight: 700;
}

.blog-article__point p:last-child {
    margin-bottom: 0;
}


/* ------------------------------
   Content Cards
------------------------------ */

.blog-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0 40px;
}

.blog-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #d9e5db;
    border-radius: 12px;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-card:hover {
    border-color: #28723c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 114, 60, 0.08);
}

.blog-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    background: #28723c;
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

.blog-card__title {
    margin: 0 0 12px;
    color: #111;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.blog-card p {
    margin: 0 0 0.9em;
    font-size: 15px;
    line-height: 1.85;
}

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


/* ------------------------------
   Image / Caption
------------------------------ */

.blog-article figure {
    margin: 40px 0;
}

.blog-article figcaption {
    margin-top: 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}


/* ------------------------------
   CTA
------------------------------ */

.blog-article__cta {
    margin-top: 72px;
    padding: 48px 40px;
    background: #f3f7f3;
    border-radius: 16px;
    text-align: center;
}

.blog-article__cta-title {
    margin: 0 0 16px;
    color: #111;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.5;
    font-weight: 700;
}

.blog-article__cta-text {
    margin-bottom: 28px;
}

.blog-article__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 56px;
    padding: 14px 28px;
    background: #28723c;
    color: #fff !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.blog-article__cta-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}


/* ------------------------------
   Contact CTA (メール / 電話)
------------------------------ */

.blog-cta {
    margin: 56px 0;
    padding: 40px 32px;
    background: linear-gradient(135deg, #2f8a4a 0%, #1f6236 100%);
    border-radius: 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 14px 34px rgba(31, 98, 54, 0.28);
}

.blog-cta__title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(21px, 2.8vw, 28px);
    line-height: 1.5;
    font-weight: 700;
}

.blog-cta__text {
    margin: 0 auto 28px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
}

.blog-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.blog-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 268px;
    min-height: 68px;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.blog-cta__btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.blog-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* メールボタン（アンバー） */
.blog-cta__btn--mail {
    background: #f59e0b;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* 電話ボタン（白地・緑文字） */
.blog-cta__btn--tel {
    background: #fff;
    color: #1f6236 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.blog-cta__tel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.blog-cta__tel small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

.blog-cta__tel-num {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.blog-cta__note {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}


/* ------------------------------
   Related Articles
------------------------------ */

.blog-related {
    max-width: 880px;
    margin: 0 auto 96px;
    padding: 0 24px;
}

.blog-related__title {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.blog-related__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.blog-related__item {
    display: block;
    padding: 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #222;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.blog-related__item:hover {
    border-color: #28723c;
    transform: translateY(-2px);
}

.blog-related__item-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}


/* ------------------------------
   Breadcrumb
------------------------------ */

.blog-breadcrumb {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 24px 0;
    color: #777;
    font-size: 13px;
}

.blog-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}


/* ------------------------------
   Layout with Sidebar
------------------------------ */

.blog-layout {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-layout .blog-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* レイアウト内では記事の中央寄せ固定幅を解除して列幅に合わせる */
.blog-layout .blog-breadcrumb,
.blog-layout .blog-article {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.blog-sidebar {
    flex: 0 0 300px;
    width: 300px;
}

.blog-sidebar__inner {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 4px 40px 0;
    /* 画面の高さに収め、はみ出す分はメニュー内でスクロールして確認できるようにする */
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* サイドメニュー内スクロールバーを控えめに */
.blog-sidebar__inner::-webkit-scrollbar {
    width: 8px;
}

.blog-sidebar__inner::-webkit-scrollbar-thumb {
    background: #d5ddd7;
    border-radius: 8px;
}

.blog-sidebar__inner::-webkit-scrollbar-thumb:hover {
    background: #b9c4bc;
}


/* ------------------------------
   Sidebar : Search
------------------------------ */

.blog-sidebar__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

.blog-sidebar__search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-sidebar__search-box svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9aa5a0;
    pointer-events: none;
}

.blog-sidebar__search-box input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #d9e5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    background: #fff;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-sidebar__search-box input:focus {
    border-color: #28723c;
    box-shadow: 0 0 0 3px rgba(40, 114, 60, 0.12);
}


/* ------------------------------
   Sidebar : Blocks / Lists
------------------------------ */

.blog-sidebar__block {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e5e9e6;
    border-radius: 12px;
}

.blog-sidebar__title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf5ef;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.blog-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar__item + .blog-sidebar__item {
    border-top: 1px solid #eee;
}

.blog-sidebar__item a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-sidebar__item a:hover,
.blog-sidebar__item.is-current a {
    color: #28723c;
}

.blog-sidebar__item.is-current a {
    font-weight: 700;
}

.blog-sidebar__cat {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 9px;
    background: #edf5ef;
    color: #28723c;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
}

.blog-sidebar__item-title {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.blog-sidebar__date {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #999;
}

.blog-sidebar__empty {
    margin: 0;
    padding: 8px 0;
    font-size: 13px;
    color: #999;
}

.blog-sidebar__more {
    display: inline-block;
    margin-top: 14px;
    color: #28723c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.blog-sidebar__more:hover {
    text-decoration: underline;
}


/* ------------------------------
   Sidebar : 修理相談CTA
------------------------------ */

.blog-sidebar__cta {
    padding: 20px 22px;
    background: linear-gradient(135deg, #2f8a4a 0%, #1f6236 100%);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(31, 98, 54, 0.2);
}

.blog-sidebar__cta-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.blog-sidebar__cta-text {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.7;
}

.blog-sidebar__cta-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: #fff;
    color: #1f6236;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-sidebar__cta-tel svg {
    width: 18px;
    height: 18px;
}

.blog-sidebar__cta-tel:hover {
    opacity: 0.92;
}

.blog-sidebar__cta-link {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-sidebar__cta-link:hover {
    opacity: 0.85;
}


/* ------------------------------
   Responsive : Sidebar
------------------------------ */

@media screen and (max-width: 1024px) {

    .blog-layout {
        display: block;
        padding: 0 24px;
    }

    .blog-sidebar {
        flex: none;
        width: auto;
    }

    .blog-sidebar__inner {
        position: static;
        padding: 8px 0 48px;
    }

    .blog-sidebar__block {
        max-width: 640px;
    }
}


/* ------------------------------
   Responsive
------------------------------ */

@media screen and (max-width: 768px) {

    .blog-article {
        padding: 40px 18px 72px;
        font-size: 15px;
        line-height: 1.85;
    }

    .blog-article__header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .blog-article__title {
        font-size: 28px;
    }

    .blog-article__eyecatch {
        margin-bottom: 36px;
        border-radius: 8px;
    }

    .blog-article h2 {
        margin-top: 56px;
        padding: 14px 16px;
        font-size: 23px;
    }

    .blog-article h3 {
        margin-top: 40px;
        padding: 11px 14px;
        font-size: 20px;
    }

    .blog-article ul,
    .blog-article ol {
        padding: 20px 18px 20px 38px;
    }

    .blog-article__box,
    .blog-article__point {
        padding: 22px 20px;
    }

    .blog-article__cta {
        margin-top: 56px;
        padding: 36px 20px;
    }

    .blog-article__cta-button {
        width: 100%;
        min-width: 0;
    }

    .blog-related {
        padding: 0 18px;
    }

    .blog-related__list {
        grid-template-columns: 1fr;
    }

    .blog-cards,
    .blog-cards--3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card {
        padding: 22px 20px;
    }

    .blog-cta {
        padding: 30px 20px;
    }

    .blog-cta__buttons {
        flex-direction: column;
    }

    .blog-cta__btn {
        width: 100%;
        min-width: 0;
    }

    .blog-breadcrumb {
        padding: 18px 18px 0;
    }
}

/* ------------------------------
   Table of Contents（目次）
------------------------------ */

.blog-toc {
    margin: 40px 0 8px;
    padding: 24px 28px;
    background: #f7f8f7;
    border: 1px solid #d9e5db;
    border-radius: 12px;
}

.blog-toc__title {
    margin: 0 0 12px !important;
    color: #144322;
    font-size: 16px;
    font-weight: 700;
}

.blog-article .blog-toc ol {
    margin: 0;
    padding: 0 0 0 1.6em;
    background: none;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.7;
}

.blog-article .blog-toc ol ol {
    margin-top: 6px;
    font-size: 14px;
    list-style: disc;
}

.blog-article .blog-toc li {
    margin-bottom: 6px;
}

.blog-article .blog-toc a {
    color: #222;
    text-decoration: none;
}

.blog-article .blog-toc a:hover {
    color: #28723c;
    text-decoration: underline;
}

.blog-article h2,
.blog-article h3 {
    scroll-margin-top: 88px;
}


/* ------------------------------
   Checklist（チェックリスト）
------------------------------ */

.blog-article ul.blog-check {
    list-style: none;
    padding-left: 24px;
}

.blog-article ul.blog-check li {
    position: relative;
    padding-left: 30px;
}

.blog-article ul.blog-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    border: 2px solid #28723c;
    border-radius: 4px;
    background: #fff;
}


/* ------------------------------
   要確認マーカー（公開前に必ず解消する）
------------------------------ */

.blog-todo {
    background: #fff3c4;
    color: #8a5a00;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 3px;
}


/* ------------------------------
   Author（この記事を書いた人）
------------------------------ */

.blog-author {
    margin: 56px 0 0;
    padding: 24px 28px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.blog-author__label {
    margin: 0 0 4px !important;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.blog-author__name {
    margin: 0 0 8px !important;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}

.blog-author__text {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.8;
}


/* ------------------------------
   CTA: LINEボタン / 関連記事カテゴリ
------------------------------ */

.blog-cta__btn--line {
    background: #06c755;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.35);
}

.blog-related__cat {
    display: inline-block;
    margin-bottom: 8px;
    color: #28723c;
    font-size: 12px;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .blog-toc {
        padding: 20px 18px;
    }

    .blog-article .blog-toc ol {
        padding: 0 0 0 1.4em;
    }

    .blog-author {
        padding: 20px 18px;
    }
}

/* 元画像が小さい写真は拡大せず中央に表示 */
.blog-article .blog-figure--small img {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 10px;
}
