/* ==========================================================
   暮らしと相続・福祉ガイド
========================================================== */

:root {
    --guide-green: #6f9253;
    --guide-green-dark: #587540;
    --guide-bg: #faf8f3;
    --guide-soft: #f3efe7;
    --guide-line: #e5ddd0;
    --guide-text: #5d5348;
    --guide-title: #43382d;
    --guide-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

.guide-container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

/* ==========================================================
   ヒーロー
========================================================== */

.guide-hero {
    min-height: 430px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 252, 247, 0.94) 0%,
            rgba(255, 252, 247, 0.80) 48%,
            rgba(255, 252, 247, 0.25) 100%
        ),
        url("../images/office.png") center / cover no-repeat;
}

.guide-hero-overlay {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.guide-hero-inner {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.guide-hero-label {
    margin: 0 0 14px;
    color: var(--guide-green);
    font-size: 15px;
    letter-spacing: 0.18em;
}

.guide-hero h2 {
    margin: 0 0 20px;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.03em;
}

.guide-hero p:last-child {
    margin: 0;
    max-width: 760px;
    color: var(--guide-text);
    font-size: 19px;
    line-height: 2;
}

/* ==========================================================
   パンくず
========================================================== */

.breadcrumb {
    border-top: 1px solid var(--guide-line);
    border-bottom: 1px solid var(--guide-line);
    background: var(--guide-white);
}

.breadcrumb .guide-container {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #756b61;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--guide-green-dark);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================
   共通見出し
========================================================== */

.guide-heading {
    margin-bottom: 48px;
    text-align: center;
}

.guide-heading-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 27px;
    line-height: 1;
}

.guide-heading > p {
    margin: 0 0 8px;
    color: var(--guide-green);
    font-size: 15px;
    letter-spacing: 0.2em;
}

.guide-heading h2 {
    margin: 0;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* ==========================================================
   導入
========================================================== */

.guide-introduction {
    padding: 82px 0 86px;
    background: var(--guide-white);
}

.guide-introduction-text {
    width: min(900px, 100%);
    margin: 0 auto;
}

.guide-introduction-text p {
    margin: 0 0 22px;
    color: var(--guide-text);
    font-size: 17px;
    line-height: 2.05;
}

.guide-introduction-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   カテゴリー
========================================================== */

.guide-category-section {
    padding: 82px 0 90px;
    background: var(--guide-bg);
}

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.guide-category-card {
    position: relative;
    min-height: 470px;
    padding: 34px 32px 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--guide-line);
    border-radius: 20px;
    background: var(--guide-white);
    box-shadow: 0 9px 26px rgba(63, 52, 41, 0.05);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.guide-category-card:hover {
    transform: translateY(-5px);
    border-color: #cbd9bf;
    box-shadow: 0 15px 34px rgba(63, 52, 41, 0.09);
}

.guide-category-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 14px);
    justify-self: center;
}

.guide-category-number {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #a4b795;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.guide-category-image{
    width:84px;
    height:84px;
    margin-bottom:22px;
}

.guide-category-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.guide-category-card h3 {
    margin: 0 0 14px;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 29px;
    font-weight: 500;
}

.guide-category-card > p {
    margin: 0 0 20px;
    color: var(--guide-text);
    font-size: 16px;
    line-height: 1.9;
}

.guide-category-card ul {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.guide-category-card li {
    position: relative;
    padding: 9px 0 9px 24px;
    border-bottom: 1px solid var(--guide-line);
    color: var(--guide-text);
    font-size: 15px;
    line-height: 1.7;
}

.guide-category-card li::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--guide-green);
}

.guide-category-card strong {
    margin-top: auto;
    color: var(--guide-green-dark);
    font-size: 16px;
    font-weight: 600;
}
/* ==========================================================
   注目記事
========================================================== */

.guide-featured-section {
    padding: 82px 0 90px;
    background: var(--guide-white);
}

.guide-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.guide-article-card {
    padding: 30px 26px;
    border: 1px solid var(--guide-line);
    border-radius: 18px;
    background: var(--guide-white);
    box-shadow: 0 8px 22px rgba(63, 52, 41, 0.05);
}

.guide-article-category {
    margin: 0 0 12px;
    color: var(--guide-green);
    font-size: 14px;
    letter-spacing: 0.16em;
}

.guide-article-card h3 {
    margin: 0 0 16px;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.65;
}

.guide-article-card > p:not(.guide-article-category) {
    margin: 0 0 22px;
    color: var(--guide-text);
    font-size: 15px;
    line-height: 1.9;
}

.guide-coming-soon {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--guide-soft);
    color: #7c7166;
    font-size: 13px;
}

/* ==========================================================
   掲載内容について
========================================================== */

.guide-notice-section {
    padding: 82px 0;
    background: var(--guide-bg);
}

.guide-notice-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
    align-items: start;
    padding: 42px;
    border: 1px solid var(--guide-line);
    border-radius: 18px;
    background: var(--guide-white);
}

.guide-notice-label {
    margin: 0 0 10px;
    color: var(--guide-green);
    font-size: 15px;
    letter-spacing: 0.18em;
}

.guide-notice-box h2 {
    margin: 0;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.6;
}

.guide-notice-text p {
    margin: 0 0 18px;
    color: var(--guide-text);
    font-size: 16px;
    line-height: 2;
}

.guide-notice-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   CTA
========================================================== */

.contact-cta {
    padding: 48px 6%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    background: #edf4e6;
}

.contact-cta h2 {
    margin: 0 0 10px;
    color: var(--guide-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.6;
}

.contact-cta p {
    margin: 0;
    color: var(--guide-text);
    font-size: 16px;
    line-height: 1.9;
}

.contact-cta a {
    min-width: 270px;
    padding: 16px 32px;
    border-radius: 10px;
    background: var(--guide-green);
    color: #ffffff;
    text-align: center;
    font-size: 17px;
    transition:
        background 0.25s,
        transform 0.25s;
}

.contact-cta a:hover {
    background: var(--guide-green-dark);
    transform: translateY(-2px);
}

/* ==========================================================
   タブレット
========================================================== */

@media (max-width: 900px) {
    .guide-category-grid,
    .guide-featured-grid {
        grid-template-columns: 1fr;
    }

    .guide-category-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .guide-notice-box {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ==========================================================
   スマートフォン
========================================================== */

@media (max-width: 600px) {
    .guide-hero,
    .guide-hero-overlay {
        min-height: 330px;
    }

    .guide-hero h2 {
        font-size: 36px;
    }

    .guide-hero p:last-child {
        font-size: 16px;
    }

    .guide-heading {
        margin-bottom: 36px;
    }

    .guide-heading h2 {
        font-size: 29px;
    }

    .guide-introduction,
    .guide-category-section,
    .guide-featured-section,
    .guide-notice-section {
        padding-top: 60px;
        padding-bottom: 64px;
    }

    .guide-category-card {
        min-height: 0;
        padding: 28px 22px;
    }

    .guide-category-card h3 {
        font-size: 25px;
    }

    .guide-article-card {
        padding: 26px 22px;
    }

    .guide-notice-box {
        padding: 28px 22px;
    }

    .guide-notice-box h2 {
        font-size: 27px;
    }

    .contact-cta {
        padding: 40px 24px;
    }

    .contact-cta h2 {
        font-size: 27px;
    }

    .contact-cta a {
        width: 100%;
        min-width: 0;
    }
}
