/* ==========================================================
   メメント相続行政書士事務所
   style.css
========================================================== */

@import url("footer.css");

:root {
    --color-main: #6f8f58;
    --color-main-dark: #587540;
    --color-title: #3f3429;
    --color-text: #5f5448;
    --color-muted: #7b6d60;
    --color-bg: #f8f3ea;
    --color-bg-light: #fffdf8;
    --color-soft: #edf4e6;
    --color-line: #e5dacb;
    --color-white: #ffffff;
    --content-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-title);
    background: var(--color-bg);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ヘッダー */
.site-header {
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-line);
}

.header-top {
    width: min(var(--content-width), 92%);
    margin: 0 auto;
    padding: 22px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.logo-area {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-mark {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-copy {
    margin: 0 0 3px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
}

.logo-area h1 {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(28px, 2.5vw, 37px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.header-contact {
    flex-shrink: 0;
    text-align: right;
}

.header-contact p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tel {
    margin: 2px 0;
    color: var(--color-title);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.25;
    white-space: nowrap;
}

/* ナビ */
.global-nav {
    width: min(1400px, 96%);
    min-height: 62px;
    margin: 0 auto;
    padding: 7px 0;
    border-top: 1px solid #eee6dc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.global-nav a {
    position: relative;
    padding: 11px 10px;
    color: var(--color-title);
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

.global-nav a::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 4px;
    left: 10px;
    height: 2px;
    background: var(--color-main);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.global-nav a:hover::after,
.global-nav a.current::after {
    transform: scaleX(1);
}

.global-nav a.current {
    color: var(--color-main-dark);
}

.global-nav .nav-contact {
    margin-left: 5px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-white);
}

.global-nav .nav-contact::after {
    display: none;
}

.global-nav .nav-contact:hover {
    background: var(--color-main-dark);
}

/* HERO */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, 0.95) 0%,
            rgba(255, 253, 248, 0.77) 44%,
            rgba(255, 253, 248, 0.14) 100%
        ),
        url("../images/hero.png") center right / cover no-repeat;
}

.hero-inner {
    width: min(var(--content-width), 90%);
    margin: 0 auto;
    padding: 42px 0;
}

.hero h2 {
    max-width: 720px;
    margin: 0 0 15px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(40px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.46;
    letter-spacing: 0.06em;
}

.hero h2 span {
    color: var(--color-main-dark);
}

.hero p {
    max-width: 670px;
    margin: 0 0 20px;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.82;
}

.main-button {
    display: inline-block;
    padding: 12px 31px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-white);
    font-size: 16px;
    box-shadow: 0 7px 16px rgba(95, 127, 69, 0.18);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.main-button:hover {
    background: var(--color-main-dark);
    transform: translateY(-2px);
}

/* 業務内容 */
.service-section {
    padding: 62px 0 66px;
    background: var(--color-bg-light);
}

.section-title {
    width: min(var(--content-width), 90%);
    margin: 0 auto 34px;
    text-align: center;
}

.section-title p {
    margin: 0 0 5px;
    color: var(--color-main);
    font-size: 19px;
    letter-spacing: 0.08em;
}

.section-title h2 {
    margin: 0 0 9px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.5;
}

.section-title span {
    color: #76695b;
    font-size: 15px;
    line-height: 1.75;
}

.service-grid {
    width: min(var(--content-width), 90%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eadfd2;
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(63, 52, 41, 0.06);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(63, 52, 41, 0.09);
}

.card-img {
    height: 190px;
    border-radius: 13px;
    background-color: #eef4e8;
    background-size: cover;
    background-position: center;
}

.img-will {
    background-image: url("../images/will.png");
}

.img-inheritance {
    background-image: url("../images/inheritance.png");
}

.img-afterlife {
    background-image: url("../images/afterlife.png");
}

.img-guardianship {
    background-image: url("../images/guardianship.png");
}

.card-icon {
    width: 58px;
    height: 58px;
    margin: -29px auto 13px;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-main);
    color: var(--color-white);
    font-size: 22px;
    position: relative;
}

.service-card h3 {
    margin: 0 0 7px;
    padding: 0 18px;
    text-align: center;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.5;
}

.service-card p {
    flex: 1;
    margin: 0 0 12px;
    padding: 0 20px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
}

.service-card span {
    align-self: flex-start;
    margin: 0 20px 20px;
    padding: 7px 17px;
    border: 1px solid var(--color-main);
    border-radius: 999px;
    color: var(--color-main-dark);
    font-size: 14px;
}

/* お知らせ・事務所紹介 */
.topic-message-section {
    width: min(var(--content-width), 90%);
    margin: 0 auto;
    padding: 50px 0;
    display: grid;
    grid-template-columns: 0.9fr 1.35fr;
    gap: 22px;
    align-items: stretch;
}

.topic-box,
.message-box {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3d8ca;
    border-radius: 17px;
    background: var(--color-bg-light);
    box-shadow: 0 7px 20px rgba(63, 52, 41, 0.05);
}

.topic-box {
    padding: 25px;
}

.topic-box h2 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8cebf;
    color: var(--color-main-dark);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 26px;
    font-weight: 400;
}

.topic-label {
    align-self: flex-start;
    margin-bottom: 13px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-white);
    font-size: 13px;
}

.topic-box h3 {
    margin: 0 0 9px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.55;
}

.topic-box p {
    flex: 1;
    margin: 0 0 15px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.75;
}

.topic-box a {
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-white);
    font-size: 14px;
}

.message-box {
    justify-content: center;
    padding: 31px 34px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, 0.96),
            rgba(255, 253, 248, 0.74)
        ),
        url("../images/office.png") center / cover no-repeat;
}

.message-box h2 {
    margin: 0 0 13px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}

.message-box p {
    margin: 0 0 17px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
}

.message-box a {
    align-self: flex-start;
    padding: 9px 22px;
    border: 1px solid var(--color-main);
    border-radius: 999px;
    color: var(--color-main-dark);
    font-size: 14px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.message-box a:hover {
    background: var(--color-main);
    color: var(--color-white);
}

/* ガイド */
.guide-section {
    width: min(var(--content-width), 90%);
    margin: 0 auto;
    padding: 0 0 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.guide-card {
    padding: 21px 17px;
    border: 1px solid #e3d8ca;
    border-radius: 16px;
    background: var(--color-white);
    text-align: center;
    box-shadow: 0 6px 17px rgba(63, 52, 41, 0.045);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(63, 52, 41, 0.075);
}

.guide-icon {
    margin-bottom: 8px;
    color: var(--color-main);
    font-size: 31px;
    line-height: 1;
}

.guide-card h3 {
    margin: 0 0 6px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.guide-card p {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.7;
}

.guide-card span {
    color: var(--color-main-dark);
    font-size: 14px;
}

/* CTA */
.contact-cta {
    padding: 31px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: var(--color-soft);
}

.contact-cta > div {
    width: auto;
    margin: 0;
}

.contact-cta h2 {
    margin: 0 0 4px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.5;
}

.contact-cta p {
    margin: 0;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
}

.contact-cta > a {
    flex-shrink: 0;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-white);
    font-size: 15px;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.contact-cta > a:hover {
    background: var(--color-main-dark);
    transform: translateY(-2px);
}

/* 下部情報 */
.bottom-info {
    padding: 27px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--color-white);
    text-align: center;
}

.bottom-info > div {
    padding: 10px 18px;
    border-right: 1px solid var(--color-line);
}

.bottom-info > div:last-child {
    border-right: none;
}

.bottom-info h3 {
    margin-bottom: 4px;
    color: var(--color-main-dark);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 19px;
    font-weight: 400;
}

.bottom-info p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
}

.bottom-tel {
    color: var(--color-title);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px !important;
}

@media (max-width: 1050px) {
    .header-top {
        gap: 22px;
    }

    .logo-area h1 {
        white-space: normal;
        font-size: 29px;
    }

    .tel {
        font-size: 29px;
    }

    .global-nav {
        flex-wrap: wrap;
        gap: 3px 8px;
        padding: 8px 0 11px;
    }

    .global-nav a {
        padding: 9px 8px;
        font-size: 14px;
    }

    .hero {
        min-height: 470px;
    }

    .hero h2 {
        font-size: 42px;
    }

    .topic-message-section {
        grid-template-columns: 1fr;
    }

    .guide-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .header-top {
        width: 90%;
        padding: 17px 0 13px;
        display: block;
    }

    .logo-area {
        gap: 13px;
    }

    .logo-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .site-copy {
        font-size: 12px;
    }

    .logo-area h1 {
        font-size: 22px;
        line-height: 1.45;
    }

    .header-contact {
        margin-top: 13px;
        text-align: left;
    }

    .tel {
        font-size: 26px;
    }

    .global-nav {
        width: 92%;
        min-height: 0;
        padding: 9px 0 13px;
        justify-content: flex-start;
        gap: 3px 11px;
    }

    .global-nav a {
        padding: 7px 2px;
        font-size: 13px;
    }

    .global-nav a::after {
        right: 2px;
        left: 2px;
    }

    .global-nav .nav-contact {
        margin-left: 0;
        padding: 8px 15px;
    }

    .hero {
        min-height: 410px;
        background-position: 62% center;
    }

    .hero-inner {
        width: 90%;
        padding: 35px 0;
    }

    .hero h2 {
        margin-bottom: 13px;
        font-size: 32px;
        line-height: 1.5;
    }

    .hero p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .main-button {
        padding: 10px 23px;
        font-size: 14px;
    }

    .service-section {
        padding: 47px 0 51px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 14px 14px 0;
    }

    .card-img {
        height: 180px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .topic-message-section {
        padding: 40px 0;
    }

    .topic-box,
    .message-box {
        padding: 23px 20px;
    }

    .topic-box h2,
    .message-box h2 {
        font-size: 24px;
    }

    .guide-section {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .contact-cta {
        padding: 26px 5%;
        display: block;
        text-align: center;
    }

    .contact-cta h2 {
        font-size: 23px;
    }

    .contact-cta > a {
        display: inline-block;
        margin-top: 16px;
    }

    .bottom-info {
        padding: 21px 5%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bottom-info > div {
        padding: 13px 0;
        border-right: none;
        border-bottom: 1px solid var(--color-line);
    }

    .bottom-info > div:last-child {
        border-bottom: none;
    }
}
