@charset "UTF-8";

:root {
    --office-navy: #354b70;
    --office-blue: #7189bb;
    --office-paper: #fbf8f2;
    --office-pale: #eaf0f6;
    --office-line: #cbd3df;
    --office-text: #535e6e;

    --office-serif:
        "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;

    --office-sans:
        "Yu Gothic", "YuGothic",
        "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--office-navy);
    font-family: var(--office-sans);
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--office-blue);
    outline-offset: 5px;
}

.office-inner {
    width: min(1140px, calc(100% - 64px));
    margin-inline: auto;
}

.office-section {
    padding: 88px 0;
    scroll-margin-top: 110px;
}

.office-label {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.16em;
}

.office-heading {
    margin: 18px 0 30px;
    font-family: var(--office-serif);
    font-size: clamp(28px, 2.7vw, 38px);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.office-skip {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--office-navy);
    color: #fff;
    transform: translateY(-180%);
}

.office-skip:focus {
    transform: translateY(0);
}

.office-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =================================
   導入
================================= */

.office-hero {
    background: var(--office-paper);
    border-bottom: 1px solid var(--office-line);
}

.office-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-size: 11px;
}

.office-breadcrumb a {
    text-decoration: none;
}

.office-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 60px;
    padding: 64px 0 76px;
}

.office-hero h1 {
    margin: 18px 0 26px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.office-hero-message {
    margin: 0;
    font-family: var(--office-serif);
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.8;
    letter-spacing: 0.06em;
}

.office-hero-side>p {
    margin: 0;
    font-size: 14px;
    line-height: 2.2;
}

.office-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 32px;
}

.office-page-nav a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    min-height: 44px;
    padding: 7px 0;
    border-bottom: 1px solid var(--office-blue);
    font-size: 13px;
    text-decoration: none;
}

/* =================================
   事務所概要
================================= */

.office-profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: clamp(45px, 7vw, 100px);
}

.office-identity {
    position: sticky;
    top: 115px;
}

.office-name-block {
    padding: 26px 0 32px;
    border-top: 1px solid var(--office-line);
}

.office-symbol {
    display: block;
    width: 70px;
    height: auto;
    margin-bottom: 24px;
}

.office-name {
    margin: 0;
    font-family: var(--office-serif);
    font-size: clamp(24px, 2.3vw, 31px);
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.office-name-en {
    margin: 20px 0 0;
    color: var(--office-blue);
    font-size: 10px;
    line-height: 1.9;
    letter-spacing: 0.09em;
}

.office-established {
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--office-line);
}

.office-established>span {
    display: block;
    color: var(--office-blue);
    font-size: 10px;
    letter-spacing: 0.14em;
}

.office-established>time {
    display: block;
    margin-top: 8px;
    font-family: var(--office-serif);
    font-size: 32px;
    letter-spacing: 0.06em;
}

.office-facts {
    margin: 0;
    border-top: 1px solid var(--office-line);
}

.office-facts>div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 22px;
    padding: 27px 0;
    border-bottom: 1px solid var(--office-line);
}

.office-facts dt {
    padding-top: 2px;
    font-size: 13px;
    font-weight: 600;
}

.office-facts dd {
    min-width: 0;
    margin: 0;
    color: var(--office-text);
    font-size: 14px;
    line-height: 2;
}

.office-representative {
    color: var(--office-navy);
    font-family: var(--office-serif);
    font-size: 23px;
    letter-spacing: 0.08em;
}

.office-fact-note {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.office-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    margin-top: 8px;
    color: var(--office-navy);
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: var(--office-line);
    text-underline-offset: 5px;
}

.office-fact-phone {
    color: var(--office-navy);
    font-size: 21px;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.office-service-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.office-service-list li {
    position: relative;
    padding-left: 14px;
}

.office-service-list li::before {
    content: "";
    position: absolute;
    top: 0.9em;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--office-blue);
}

/* =================================
   アクセス
================================= */

.office-access {
    background: var(--office-paper);
}

.office-access-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.office-access-heading .office-heading {
    margin-bottom: 0;
}

.office-access-address {
    font-size: 14px;
    line-height: 2;
}

/* 地図読み込み前 */

.office-map {
    height: 460px;
    border: 1px solid var(--office-line);
    background: var(--office-pale);
    overflow: hidden;
}

.office-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;

    background-image:
        linear-gradient(rgb(113 137 187 / 9%) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgb(113 137 187 / 9%) 1px,
            transparent 1px);
    background-size: 44px 44px;
}

/* 位置を表す小さなピン */

.office-map-pin {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 24px;
    border: 2px solid var(--office-navy);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.office-map-pin::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--office-navy);
}

.office-map-label {
    margin: 0;
    color: var(--office-blue);
    font-size: 11px;
    letter-spacing: 0.17em;
}

.office-map-name {
    margin: 14px 0 24px;
    font-family: var(--office-serif);
    font-size: clamp(21px, 2.5vw, 30px);
    line-height: 1.8;
}

.office-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 54px;
    padding: 12px 24px;
    border: 1px solid var(--office-navy);
    border-radius: 0;
    background: var(--office-navy);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.office-map-button[hidden],
.office-map-caption[hidden] {
    display: none;
}

.office-map-caption {
    margin: 14px 0 0;
    color: var(--office-text);
    font-size: 11px;
}

.office-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.office-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.office-map-footer>p {
    margin: 0;
    color: var(--office-text);
    font-size: 11px;
}

.office-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid var(--office-blue);
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
}

.office-map-footer .office-text-link {
    flex-shrink: 0;
}

.office-text-link>span[aria-hidden] {
    transition: transform 0.2s ease;
}

/* 来所案内 */

.office-visit {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    margin-top: 54px;
    padding-top: 32px;
    border-top: 1px solid var(--office-line);
}

.office-visit h3 {
    margin: 12px 0 0;
    font-family: var(--office-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.8;
}

.office-visit>div>p:not(.office-label) {
    margin: 0;
    color: var(--office-text);
    font-size: 14px;
    line-height: 2.2;
}

.office-visit .office-text-link {
    margin-top: 16px;
}

/* =================================
   お問い合わせ
================================= */

.office-contact {
    padding: 76px 0;
}

.office-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 60px;
}

.office-contact .office-heading {
    margin-bottom: 20px;
}

.office-contact-copy {
    margin: 0;
    color: var(--office-text);
    font-size: 14px;
    line-height: 2.2;
}

.office-contact-actions {
    text-align: center;
}

.office-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 18px 24px;
    border: 1px solid var(--office-navy);
    background: var(--office-navy);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.office-contact-phone {
    display: inline-block;
    margin-top: 22px;
    font-family: var(--office-serif);
    font-size: 29px;
    text-decoration: none;
}

.office-contact-actions>p {
    margin: 7px 0 0;
    color: var(--office-text);
    font-size: 11px;
}

@media (hover: hover) {
    .office-breadcrumb a:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .office-inline-link:hover {
        text-decoration-color: var(--office-navy);
    }

    .office-text-link:hover>span[aria-hidden] {
        transform: translateX(3px);
    }

    .office-map-button:hover,
    .office-button:hover {
        background: #fff;
        color: var(--office-navy);
    }
}

/* =================================
   タブレット・SP
================================= */

@media (max-width: 1000px) {
    .office-profile-grid {
        gap: 40px;
    }

    .office-facts>div {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 16px;
    }

    .office-contact-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .office-inner {
        width: calc(100% - 40px);
    }

    .office-section {
        padding: 52px 0;
        scroll-margin-top: 95px;
    }

    .office-heading {
        font-size: 29px;
    }

    .office-breadcrumb {
        padding-top: 20px;
        font-size: 10px;
    }

    .office-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 38px 0 46px;
    }

    .office-hero h1 {
        margin: 14px 0 22px;
        font-size: 14px;
    }

    .office-hero-message {
        font-size: clamp(30px, 8vw, 40px);
        letter-spacing: 0.03em;
    }

    .office-hero-side>p {
        font-size: 13px;
    }

    .office-page-nav {
        margin-top: 22px;
    }

    .office-profile-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .office-identity {
        position: static;
    }

    .office-name-block {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px 20px;
        align-items: center;
        padding: 24px 0;
    }

    .office-symbol {
        grid-row: 1 / 3;
        width: 54px;
        margin: 0;
    }

    .office-name {
        font-size: clamp(21px, 5.5vw, 27px);
    }

    .office-name-en {
        grid-column: 2;
        margin: 0;
        font-size: 9px;
    }

    .office-name-en br {
        display: none;
    }

    .office-established {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 12px 22px;
        padding-top: 18px;
    }

    .office-established>time {
        margin: 0;
        font-size: 26px;
    }

    .office-facts>div {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 14px;
        padding: 22px 0;
    }

    .office-facts dt {
        font-size: 12px;
    }

    .office-facts dd {
        font-size: 13px;
    }

    .office-representative {
        font-size: 21px;
    }

    .office-fact-phone {
        font-size: 18px;
    }

    .office-access-heading {
        display: block;
        margin-bottom: 24px;
    }

    .office-access-address {
        margin-top: 20px;
        font-size: 13px;
    }

    .office-map {
        height: 360px;
    }

    .office-map-placeholder {
        padding: 24px 18px;
    }

    .office-map-name {
        font-size: 22px;
    }

    .office-map-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .office-map-footer .office-text-link {
        align-self: flex-end;
    }

    .office-visit {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 34px;
        padding-top: 26px;
    }

    .office-visit h3 {
        font-size: 23px;
    }

    .office-visit>div>p:not(.office-label) {
        font-size: 13px;
    }

    .office-contact {
        padding: 48px 0;
    }

    .office-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .office-contact-copy {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .office-facts>div {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .office-text-link>span[aria-hidden],
    .office-map-button,
    .office-button {
        transition: none;
    }
}

/* 来所案内：SPの説明文を読みやすく調整 */
@media (max-width: 768px) {
    .office-visit-description .office-visit-sentence {
        display: block;
    }

    .office-visit-description .office-visit-sentence+.office-visit-sentence {
        margin-top: 0.8em;
    }

    .office-visit-description .office-visit-phrase {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        line-break: strict;
    }
}