/* Network directories: photographic layouts and editorial typography. */
#network-page.network-editorial {
    --network-ink: #222a29;
    --network-muted: #65706b;
    --network-line: #d6dbd4;
}

#network-page.network-editorial .network-masthead {
    height: auto;
    min-height: 360px;
    padding: 76px 6% 60px;
    box-sizing: border-box;
    align-items: flex-start;
    text-align: left;
    color: var(--network-ink);
    background: #eeefe9;
}
#network-page.network-editorial .network-masthead > .en-font {
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 400 !important;
    line-height: 1.05;
    letter-spacing: -.055em !important;
    margin-bottom: 28px !important;
}
#network-page.network-editorial .network-masthead h1 {
    margin: 0;
    max-width: 1280px;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: .05em;
}
#network-page.network-editorial .section-padding {
    padding-top: 64px;
    background:
        radial-gradient(ellipse at 100% 38%, #e5e9e24d, transparent 50%),
        #f5f4f0;
}
#network-page.network-editorial .section-title {
    display: block;
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--network-line);
    color: var(--network-ink);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .04em;
}
#network-page.network-editorial .network-section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--network-muted);
    font: 400 10px/1.6 'Montserrat', sans-serif;
    letter-spacing: .14em;
}
#network-page.network-editorial .network-grid {
    gap: 36px 26px;
    margin-bottom: 96px;
}
#network-page.network-editorial .network-grid:last-child { margin-bottom: 0; }
#network-page.network-editorial .network-grid .info-card {
    border: 1px solid #dce0d8;
    border-radius: 4px;
    background: #fbfcf8;
    box-shadow: none;
    overflow: hidden;
}
#network-page.network-editorial .network-grid .card-image {
    border-radius: 0;
    overflow: hidden;
}
#network-page.network-editorial .network-grid .card-image[data-photo-fit="full"] {
    background: #e8ebe4;
}
#network-page.network-editorial .network-grid .card-image[data-photo-fit="full"] > div {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: none;
}
#network-page.network-editorial .network-grid .card-body {
    padding: 24px 20px 28px;
    background: #fbfcf8;
    border: 0;
    border-top: 1px solid #e3e6df;
    color: var(--network-ink);
}
#network-page.network-editorial .network-grid .card-body h3 {
    column-gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    color: var(--network-ink);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: .015em;
}
#network-page.network-editorial .network-grid .card-body h3::before {
    margin-bottom: 8px;
    color: var(--network-ink);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
#network-page.network-editorial .network-grid .office-info {
    margin: 0 0 17px;
    color: #48534e;
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: .01em;
}
#network-page.network-editorial .network-grid .office-info strong {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--network-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .08em;
}
#network-page.network-editorial .network-grid .office-info + .office-info {
    padding-top: 14px;
    border-top: 1px solid var(--network-line);
}
#network-page.network-editorial .network-grid .office-info:last-child { margin-bottom: 0; }
#network-page.network-editorial .network-grid .office-info p { margin: 0; }
#network-page.network-editorial .network-grid .office-info p + p { margin-top: 8px; }
#network-page.network-editorial .network-grid .map-badge-btn {
    min-width: 0;
    min-height: 32px;
    padding: 2px 0;
    gap: 7px;
    border: 0;
    border-bottom: 1px solid #9baaa0;
    border-radius: 0;
    background: transparent;
    color: var(--network-ink);
    font: 400 10px/1.5 'Montserrat', 'Noto Sans JP', sans-serif;
    letter-spacing: .04em;
    white-space: nowrap;
}
#network-page.network-editorial .network-grid .map-badge-btn:hover {
    color: #477661;
    border-color: #477661;
    background: transparent;
    transform: none;
}
#network-page.network-editorial .network-grid .card-hq {
    background: #e8ebe4;
    overflow: hidden;
    border-radius: 3px;
}
#network-page.network-editorial .network-grid .card-hq .card-image {
    border-radius: 0;
    width: 48%;
    min-height: 640px;
}
#network-page.network-editorial .network-grid .card-hq .card-body {
    width: 52%;
    padding: 44px;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid #d6dbd4;
    background: #e8ebe4;
}
#network-page.network-editorial .network-grid .card-hq h3 { font-size: 24px; }
#network-page.network-editorial .network-grid .card-hq h3::before {
    margin-bottom: 14px;
    font-size: clamp(36px, 4.5vw, 58px);
}
#network-page.network-editorial .network-grid .card-branch h3::before { font-size: 38px; }
#network-page.network-editorial .network-grid .card-group h3::before {
    font-size: clamp(26px, 2.8vw, 36px);
}
#network-page.network-editorial .network-grid .card-branch .office-info { font-size: 14px; }
#network-page.network-editorial .network-grid .card-primary-branch .card-image { height: 450px; }

/* Overseas offices share the card language without the domestic portrait layout. */
#network-page.network-editorial.overseas-page .network-grid .card-overseas {
    grid-column: span 4;
    flex-direction: column;
}
#network-page.network-editorial.overseas-page .network-grid .card-overseas .card-image {
    width: 100%;
    height: 340px;
}
#network-page.network-editorial.overseas-page .network-grid .card-overseas .card-body {
    width: 100%;
    padding: 26px 24px 30px;
}
#network-page.network-editorial.overseas-page .network-grid .card-overseas h3 {
    font-size: 18px;
    overflow-wrap: anywhere;
}
#network-page.network-editorial.overseas-page .network-grid .card-overseas h3::before {
    font-size: 34px;
    margin-bottom: 12px;
}
@media (max-width: 1100px) and (min-width: 901px) {
    #network-page.network-editorial.overseas-page .network-grid .card-overseas { grid-column: span 6; }
}
@media (max-width: 600px) {
    #network-page.network-editorial.overseas-page .network-grid .card-overseas .card-image { height: 320px; }
    #network-page.network-editorial.overseas-page .network-grid .card-overseas .card-body { padding: 24px 22px 28px; }
    #network-page.network-editorial.overseas-page .network-grid .card-overseas h3::before { font-size: 30px; }
}

/* Portrait building photos get portrait frames on desktop, not wide letterboxes. */
@media (min-width: 901px) {
    #network-page.network-editorial .network-grid .card-hq .card-image {
        min-height: 0;
        aspect-ratio: 1000 / 1350;
        align-self: center;
    }
    #network-page.network-editorial .network-grid .card-primary-branch {
        flex-direction: row;
        align-items: stretch;
    }
    #network-page.network-editorial .network-grid .card-primary-branch .card-image {
        width: 46%;
        height: auto;
        min-height: 400px;
        aspect-ratio: 3 / 4;
    }
    #network-page.network-editorial .network-grid .card-primary-branch .card-body {
        width: 54%;
        padding: 26px 22px;
        justify-content: center;
        border-top: 0;
        border-left: 1px solid #e3e6df;
    }
    #network-page.network-editorial .network-grid .card-primary-branch h3::before {
        font-size: clamp(26px, 2.5vw, 36px);
    }
}

@media (max-width: 900px) {
    #network-page.network-editorial .network-masthead { min-height: 0; padding: 60px 24px 44px; }
    #network-page.network-editorial .network-grid { gap: 36px 24px; margin-bottom: 72px; }
    #network-page.network-editorial .network-grid .card-hq .card-body { padding: 28px; }
    #network-page.network-editorial .network-grid .card-hq h3::before { font-size: 36px; }
    #network-page.network-editorial .network-grid .card-image[data-photo-fit="full"] {
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
}
@media (max-width: 600px) {
    #network-page.network-editorial .network-masthead { padding: 48px 20px 36px; }
    #network-page.network-editorial .network-masthead > .en-font { font-size: clamp(48px, 15vw, 82px); }
    #network-page.network-editorial .network-masthead h1 { font-size: 16px; }
    #network-page.network-editorial .section-padding { padding-top: 40px; }
    #network-page.network-editorial .network-grid .card-body { padding: 24px 22px 28px; }
    #network-page.network-editorial .network-grid .card-body h3 { font-size: 19px; }
    #network-page.network-editorial .network-grid .card-body h3::before { font-size: 30px; }
    #network-page.network-editorial .network-grid .card-hq .card-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 1000 / 1350; }
    #network-page.network-editorial .network-grid .card-primary-branch .card-image { height: auto; aspect-ratio: 3 / 4; }
    #network-page.network-editorial .network-grid .card-hq .card-body { width: 100%; padding: 28px 24px; border-left: 0; border-top: 1px solid #d6dbd4; }
    #network-page.network-editorial .network-grid .card-hq h3::before { font-size: 40px; }
    #network-page.network-editorial .network-grid .office-info { font-size: 14px; }
}
