/* ==========================================================
   メメント相続行政書士事務所
   office.css
========================================================== */

:root {
    --office-green: #6f8f58;
    --office-green-dark: #587540;
    --office-title: #3f3429;
    --office-text: #5f5448;
    --office-muted: #7b6d60;
    --office-bg: #f8f3ea;
    --office-light: #fffdf8;
    --office-line: #e5dacb;
    --office-white: #ffffff;
    --office-width: 1180px;
}

.office-container {
    width: min(var(--office-width), 90%);
    margin: 0 auto;
}

/* ==========================================================
   HERO
========================================================== */

.office-hero {
    min-height: 390px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, 0.95) 0%,
            rgba(255, 253, 248, 0.78) 46%,
            rgba(255, 253, 248, 0.24) 100%
        ),
        url("../images/office.png") center / cover no-repeat;
}

.office-hero-overlay {
    min-height: 390px;
    display: flex;
    align-items: center;
}

.office-hero-inner {
    width: min(var(--office-width), 90%);
    margin: 0 auto;
}

.office-hero-label {
    margin: 0 0 10px;
    color: var(--office-green);
    font-size: 14px;
    letter-spacing: 0.18em;
}

.office-hero h2 {
    margin: 0 0 14px;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.office-hero p:last-child {
    margin: 0;
    max-width: 720px;
    color: var(--office-text);
    font-size: 18px;
    line-height: 1.9;
}

/* ==========================================================
   パンくず
========================================================== */

.breadcrumb {
    border-top: 1px solid var(--office-line);
    border-bottom: 1px solid var(--office-line);
    background: var(--office-white);
}

.breadcrumb .office-container {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--office-muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--office-green-dark);
}

/* ==========================================================
   ごあいさつ
========================================================== */

.office-message-section {
    padding: 64px 0;
    background: var(--office-white);
}

.office-message-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: center;
}

.office-message-image {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(63, 52, 41, 0.10);
}

.office-message-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.office-section-label {
    margin: 0 0 9px;
    color: var(--office-green);
    font-size: 14px;
    letter-spacing: 0.18em;
}

.office-message-text h2 {
    margin: 0 0 22px;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.55;
}

.office-message-text > p:not(.office-section-label):not(.office-signature) {
    margin: 0 0 16px;
    color: var(--office-text);
    font-size: 16px;
    line-height: 1.9;
}

.office-signature {
    margin: 24px 0 0;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    text-align: right;
}

/* ==========================================================
   共通見出し
========================================================== */

.office-heading {
    margin-bottom: 34px;
    text-align: center;
}

.office-heading > p {
    margin: 0 0 7px;
    color: var(--office-green);
    font-size: 14px;
    letter-spacing: 0.18em;
}

.office-heading h2 {
    margin: 0;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================================
   大切にしていること
========================================================== */

.office-values-section {
    padding: 60px 0 66px;
    background: var(--office-bg);
}

.office-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.office-value-card {
    position: relative;
    padding: 28px 26px 26px;
    border: 1px solid var(--office-line);
    border-radius: 16px;
    background: var(--office-white);
    box-shadow: 0 8px 22px rgba(63, 52, 41, 0.05);
}

.office-value-number {
    display: inline-block;
    margin-bottom: 16px;
    color: #9aae8c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: 0.10em;
}

.office-value-card h3 {
    margin: 0 0 11px;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.5;
}

.office-value-card p {
    margin: 0;
    color: var(--office-text);
    font-size: 15px;
    line-height: 1.8;
}

/* ==========================================================
   事務所情報
========================================================== */

.office-profile-section {
    padding: 64px 0 68px;
    background: var(--office-white);
}

.office-profile-box {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 18px 36px;
    border: 1px solid var(--office-line);
    border-radius: 16px;
    background: var(--office-light);
}

.office-profile-box dl {
    margin: 0;
}

.office-profile-box dl > div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    padding: 18px 0;
    border-bottom: 1px solid var(--office-line);
}

.office-profile-box dl > div:last-child {
    border-bottom: none;
}

.office-profile-box dt {
    color: var(--office-title);
    font-weight: 700;
}

.office-profile-box dd {
    margin: 0;
    color: var(--office-text);
    line-height: 1.8;
}

.office-profile-box a {
    color: var(--office-green-dark);
}

/* ==========================================================
   アクセス導線
========================================================== */

.office-access-section {
    padding: 42px 0;
    background: #edf4e6;
}

.office-access-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.office-access-layout h2 {
    margin: 0 0 8px;
    color: var(--office-title);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}

.office-access-layout p:last-child {
    margin: 0;
    color: var(--office-text);
    font-size: 15px;
    line-height: 1.8;
}

.office-access-button {
    flex-shrink: 0;
    padding: 12px 26px;
    border: 1px solid var(--office-green);
    border-radius: 999px;
    background: var(--office-white);
    color: var(--office-green-dark);
    font-size: 15px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.office-access-button:hover {
    background: var(--office-green);
    color: var(--office-white);
    transform: translateY(-2px);
}

/* ==========================================================
   タブレット
========================================================== */

@media (max-width: 900px) {
    .office-message-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .office-message-image {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .office-values-grid {
        grid-template-columns: 1fr;
    }

    .office-profile-box dl > div {
        grid-template-columns: 150px 1fr;
    }
}

/* ==========================================================
   スマートフォン
========================================================== */

@media (max-width: 600px) {
    .office-hero,
    .office-hero-overlay {
        min-height: 310px;
    }

    .office-hero h2 {
        font-size: 36px;
    }

    .office-hero p:last-child {
        font-size: 15px;
    }

    .office-hero p br,
    .office-message-text h2 br {
        display: none;
    }

    .office-message-section,
    .office-values-section,
    .office-profile-section {
        padding-top: 50px;
        padding-bottom: 54px;
    }

    .office-message-text h2 {
        font-size: 29px;
    }

    .office-heading {
        margin-bottom: 28px;
    }

    .office-heading h2 {
        font-size: 29px;
    }

    .office-value-card {
        padding: 24px 21px;
    }

    .office-profile-box {
        padding: 10px 20px;
    }

    .office-profile-box dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 15px 0;
    }

    .office-access-section {
        padding: 34px 0;
    }

    .office-access-layout {
        display: block;
        text-align: center;
    }

    .office-access-layout h2 {
        font-size: 25px;
    }

    .office-access-button {
        display: inline-block;
        margin-top: 18px;
    }
}