/* Shared header and menu. Loaded after the existing site styles. */
.hpb-shared-header #hpb-header {
    height: auto; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 0; padding-bottom: 12px; box-sizing: border-box;
}
.hpb-shared-header #hpb-headerMain {
    display: block; flex: 0 0 100%; width: 100%; height: auto; margin: 0 0 10px;
}
.hpb-shared-header #hpb-headerMain h1 {
    margin: 0; padding: 7px 10px; height: auto; font-size: 13px;
    font-weight: normal; line-height: 1.7; white-space: normal;
    text-align: left; background: #11739d; color: #fff;
}
/* The 493x75 bitmap has unused space after its 329px-wide lettering. */
.hpb-shared-header #hpb-headerLogo {float: none; width: 360px; max-width: 100%; margin: 0;}
.hpb-shared-header #hpb-headerLogo a {
    display: block; width: 100%; height: auto; aspect-ratio: 329 / 75; margin: 0;
    background-image: url(logo_1A.png); background-size: 150% auto;
    background-repeat: no-repeat; background-position: left center;
}
.hpb-shared-header #hpb-headerExtra1 {float: none; width: auto; max-width: 100%; margin: 0; padding: 0;}
.hpb-shared-header #hpb-headerExtra1 p.tel {
    margin: 0; font-size: 17px; font-weight: 600; line-height: 1.7; text-align: left;
}
.hpb-shared-header #hpb-headerExtra1 p.tel,
.hpb-shared-header #hpb-headerExtra1 p.tel span,
.hpb-shared-header #hpb-headerExtra1 p.tel a {color: #173548;}
.hpb-shared-header #hpb-headerExtra1 .office-phone {
    display: grid; grid-template-columns: 5.5em max-content;
    column-gap: .7em; align-items: baseline;
}
.hpb-shared-header #hpb-headerExtra1 .office-label {white-space: nowrap;}
.hpb-shared-header #hpb-headerExtra1 p.tel a {text-decoration: none; white-space: nowrap;}
.hpb-shared-header #hpb-headerExtra1 p.tel a:focus-visible,
.hpb-shared-header #hpb-nav a:focus-visible {outline: 2px solid #11739d; outline-offset: -2px;}
.hpb-shared-header #hpb-nav {box-sizing: border-box; border: 0;}
.hpb-shared-header #hpb-nav ul {display: grid !important; grid-template-columns: repeat(7,minmax(0,1fr)); margin: 0; padding: 0; list-style: none;}
.hpb-shared-header #hpb-nav ul::after {display: none;}
.hpb-shared-header #hpb-nav li {
    display: block; float: none; min-width: 0; height: auto; line-height: 1.5;
    margin: 0; padding: 0; box-sizing: border-box; border: 1px solid #dbe5ea;
}
.hpb-shared-header #hpb-nav li a {
    display: flex; align-items: center; justify-content: center; height: 38px;
    box-sizing: border-box; padding: 6px 3px; background: #f3f8fa;
    color: #52636b; font-size: 13px; line-height: 1.5; text-decoration: none;
}
.hpb-shared-header #hpb-nav li a:hover,
.hpb-shared-header #hpb-nav li a[aria-current="page"] {background: #e0f1f8; color: #126b8f;}
@media screen and (min-width: 1200px) {
    .hpb-shared-header #hpb-header {width: calc(100% - 40px); max-width: 1200px;}
    .hpb-shared-header.hpb-layoutset-02 #hpb-inner,
    .hpb-shared-header.hpb-layoutset-02 #hpb-footer {width: calc(100% - 40px); max-width: 1200px;}
    .hpb-shared-header.hpb-layoutset-02 #hpb-wrapper {width: calc(100% - 250px);}
    .hpb-shared-header.hpb-layoutset-02 #hpb-main {width: 100%;}
    .hpb-shared-header.hpb-layoutset-02 #hpb-nav {width: 100%;}
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header {min-width: 0; width: auto; background-image: none;}
    .hpb-shared-header #hpb-container {width: 100%; background-image: none;}
    .hpb-shared-header #hpb-header,
    .hpb-shared-header #hpb-inner,
    .hpb-shared-header #hpb-footer {width: calc(100% - 32px); max-width: 900px; margin-left: auto; margin-right: auto; box-sizing: border-box;}
    .hpb-shared-header #hpb-header {display: block; height: auto; padding: 12px 0;}
    .hpb-shared-header #hpb-headerMain {display: block; margin: 0 0 14px;}
    .hpb-shared-header #hpb-headerMain h1 {font-size: 14px; padding: 10px 12px; line-height: 1.7;}
    .hpb-shared-header #hpb-headerLogo {width: 78%; max-width: 400px;}
    .hpb-shared-header #hpb-headerExtra1 {margin: 8px 0 0;}
    .hpb-shared-header #hpb-headerExtra1 p.tel {font-size: 16px;}
    .hpb-shared-header #hpb-inner {display: flex; flex-direction: column;}
    .hpb-shared-header #hpb-nav {order: 0; position: static; width: 100%; height: auto; overflow: visible; margin: 0 0 12px;}
    .hpb-shared-header #hpb-nav h3 {display: none;}
    .hpb-shared-header #hpb-nav ul {grid-template-columns: repeat(3,minmax(0,1fr));}
    .hpb-shared-header #hpb-nav li a {height: 100%; min-height: 42px; padding: 9px 3px; font-size: 12px;}
    .hpb-shared-header #hpb-nav li:last-child {grid-column: 1 / -1;}
    .hpb-shared-header #hpb-wrapper {order: 1; width: 100%; min-width: 0; float: none; padding-top: 0;}
    .hpb-shared-header #hpb-main {width: 100%; float: none; margin: 0; box-sizing: border-box;}
    .hpb-shared-header #hpb-aside {order: 2; float: none; width: 100%; margin: 20px 0 0;}
}

/* 2026-11-04: remove fixed-position template backgrounds. */
body.hpb-shared-header {
    background-image: none;
    background-color: #fff;
}
.hpb-shared-header #hpb-header {background-color: #fff;}

/* Fit the three exhibition photographs inside the desktop article.
   Column proportions follow their 3:4, 3:4 and 4:3 image ratios. */
@media screen and (min-width: 900px) {
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) {
        overflow: visible;
    }
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) table {
        display: block;
        width: 100%;
        max-width: 696px;
        margin: 0;
        border-spacing: 0;
    }
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) tbody {
        display: block;
    }
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) tr {
        display: grid;
        grid-template-columns: minmax(0, 9fr) minmax(0, 9fr) minmax(0, 16fr);
        gap: 8px;
        align-items: start;
    }
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) td {
        display: block;
        min-width: 0;
        padding: 0;
    }
    .hpb-shared-header .news-photo-strip:has(img[src*="20190214_s_01"]) img {
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }
}

/* 2026-11-04: subtle depth for interactive controls. */
.hpb-shared-header #hpb-nav li {border-color: #c9d9e2;}
.hpb-shared-header #hpb-nav li a {
    background: linear-gradient(180deg, #ffffff 0%, #f6fafc 48%, #eaf2f7 100%);
    color: #35596d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(76,113,134,.09);
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
    transition: background-color .15s, box-shadow .15s, color .15s;
}
.hpb-shared-header #hpb-nav li a:hover {
    background: linear-gradient(180deg, #ffffff 0%, #edf7fc 45%, #d9edf7 100%);
    color: #126483;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(32,119,159,.18);
}
.hpb-shared-header #hpb-nav li a[aria-current="page"] {
    background: linear-gradient(180deg, #eaf5fb 0%, #dceef7 100%);
    color: #155c7d;
    box-shadow: inset 0 2px 3px rgba(30,83,111,.10), inset 0 -2px 0 #6aabc9;
}
.hpb-shared-header #hpb-nav li a:active {
    background: #deedf5;
    box-shadow: inset 0 2px 4px rgba(30,83,111,.17);
}
.hpb-shared-header #hpb-nav li a:focus-visible {
    outline: 2px solid #155c7d;
    outline-offset: -3px;
}
.hpb-shared-header #pagetop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 36px;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 14px;
    border: 1px solid #c8d7df;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #edf3f7 100%);
    color: #35596d;
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(33,73,96,.09);
    text-indent: 0;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    overflow: visible;
}
.hpb-shared-header #pagetop a::before {content: "\2191"; font-size: 16px; line-height: 1;}
.hpb-shared-header #pagetop a:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e0eff7 100%);
    border-color: #91b6c9;
    color: #155c7d;
}
.hpb-shared-header #pagetop a:active {background: #e5eef3; box-shadow: inset 0 1px 3px rgba(33,73,96,.15);}
.hpb-shared-header #pagetop a:focus-visible {outline: 2px solid #155c7d; outline-offset: 3px;}
@media (prefers-reduced-motion: reduce) {
    .hpb-shared-header #hpb-nav li a {transition: none;}
}

/* Rebalance menu text against compact form controls. */
body.hpb-shared-header #hpb-nav li a {
    font-size: 15px;
    line-height: 1.15;
    padding: 1px 3px;
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header #hpb-nav li a {
        font-size: 14px;
        line-height: 1.35;
        padding: 6px 3px;
    }
}

/* Company wordmark: crisp outlines in the favicon blue, #029CD7. */
body.hpb-shared-header #hpb-headerLogo a {
    width: 100%;
    height: auto;
    aspect-ratio: 330 / 82;
    background-image: url("hyogo-wordmark.svg?v=20261104-kaisho2");
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}

/* Phone contacts are already listed in the office sidebar. */
body.hpb-shared-header #hpb-headerExtra1 .office-phone,
body.hpb-shared-header #hpb-headerExtra1 a[href^="tel:"] {display: none;}
body.hpb-shared-header #hpb-headerExtra1:not(:has(a:not([href^="tel:"]))) {display: none;}
body.contact-page:not([data-contact-language="en"]) #hpb-headerExtra1 {display: none;}

/* Larger desktop wordmark after removing header telephone contacts. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header #hpb-headerLogo {
        width: 440px;
        max-width: 100%;
    }
}

/* Adopted Kobe harbor image and subtle white fade at the upper edge. */
body.hpb-shared-header .hpb-page-hero {position: relative; height: 220px;}
body.hpb-shared-header .hpb-page-hero > img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
body.hpb-shared-header .hpb-page-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: min(52px, 22%);
    pointer-events: none;
    background: linear-gradient(to bottom,
        #fff 0%,
        rgba(255, 255, 255, .88) 25%,
        rgba(255, 255, 255, .55) 55%,
        rgba(255, 255, 255, .15) 80%,
        rgba(255, 255, 255, 0) 100%);
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header .hpb-page-hero > img {
        height: auto;
        aspect-ratio: 45 / 11;
    }
}

/* Give the business introduction a clear place beside the company name. */
body.hpb-shared-header #hpb-header {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 0;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 24px;
    height: auto;
    background: #fff;
}
body.hpb-shared-header #hpb-headerLogo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 440px;
    margin: 0;
    float: none;
}
body.hpb-shared-header #hpb-headerMain {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
    background: none;
    border: 0;
}
body.hpb-shared-header #hpb-headerMain h1 {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #24566f;
    font-family: var(--site-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .025em;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
}
body.hpb-shared-header #hpb-headerExtra1 {display: none;}
@media screen and (max-width: 899px) {
    body.hpb-shared-header #hpb-header {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
        padding-top: 16px;
        padding-bottom: 22px;
    }
    body.hpb-shared-header #hpb-headerLogo {
        grid-column: 1;
        grid-row: 1;
        width: 88%;
        max-width: 440px;
    }
    body.hpb-shared-header #hpb-headerMain {
        grid-column: 1;
        grid-row: 2;
    }
    body.hpb-shared-header #hpb-headerMain h1 {
        font-size: 17px;
        line-height: 1.75;
    }
}

/* Keep sentence and service units intact. */
body.hpb-shared-header #hpb-headerMain h1 .intro-services,
body.hpb-shared-header #hpb-headerMain h1 .intro-mission {display: block;}
body.hpb-shared-header #hpb-headerMain h1 .intro-phrase,
body.hpb-shared-header #hpb-headerMain h1 .intro-mission--ja,
body.hpb-shared-header #hpb-headerMain h1 .intro-mission--zh {white-space: nowrap;}
@media screen and (max-width: 360px) {
 body.hpb-shared-header #hpb-headerMain h1 {font-size: 16px; letter-spacing: 0;}
}

/* A clear starting edge and tighter spacing above the wordmark. */
body.hpb-shared-header #hpb-header {
    border-top: 5px solid #029cd7;
    padding-top: 8px;
    padding-bottom: 18px;
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header #hpb-header {
        row-gap: 12px;
        padding-top: 8px;
        padding-bottom: 18px;
    }
}

/* Sky-blue upper edge fading gently down into the white header. */
body.hpb-shared-header #hpb-header {
    position: relative;
    isolation: isolate;
    border-top: 0;
    padding-top: 20px;
}
body.hpb-shared-header #hpb-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 0;
    pointer-events: none;
    background: url("header-sky-mirror-20261104.png") left top / 100% 100% no-repeat;
}
body.hpb-shared-header #hpb-headerLogo,
body.hpb-shared-header #hpb-headerMain {
    position: relative;
    z-index: 1;
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header.hpb-with-hero #hpb-header {
        row-gap: 8px;
        padding-top: 15px;
        padding-bottom: 10px;
    }
}

/* Center the desktop header against the white fade above the harbor photo. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header #hpb-header::before {
        height: 20px;
    }
    body.hpb-shared-header #hpb-header {
        padding-top: 24px;
        padding-bottom: 14px;
    }
    body.hpb-shared-header.hpb-with-hero #hpb-header {
        padding-top: 18px;
        padding-bottom: 0;
    }
}

/* Subtle definition for the wordmark and header introduction. */
body.hpb-shared-header #hpb-headerLogo a {
    filter: brightness(0.94) drop-shadow(0.8px 1.3px 0.8px rgba(35, 75, 105, 0.30));
}
body.hpb-shared-header #hpb-headerMain h1 {
    text-shadow: 1px 1px 2px rgba(40, 80, 110, 0.2);
}

/* Give the desktop menu a more visible beveled edge. */
@media screen and (min-width: 900px) {
    .hpb-shared-header #hpb-nav li {
        border-color: #b9ceda;
    }
    .hpb-shared-header #hpb-nav li a {
        background: linear-gradient(180deg, #ffffff 0%, #f1f7fa 48%, #d5e4ed 100%);
        box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(56, 95, 118, .22);
    }
    .hpb-shared-header #hpb-nav li a:hover {
        background: linear-gradient(180deg, #ffffff 0%, #e7f4fb 48%, #c8e0ee 100%);
        box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(32, 119, 159, .28);
    }
    .hpb-shared-header #hpb-nav li a[aria-current="page"] {
        background: linear-gradient(180deg, #d6eaf5 0%, #eaf5fb 100%);
        box-shadow: inset 0 2px 4px rgba(30, 83, 111, .18), inset 0 -2px 0 #6aabc9;
    }
    .hpb-shared-header #hpb-nav li a:active {
        background: #d2e7f2;
        box-shadow: inset 0 2px 5px rgba(30, 83, 111, .28);
    }
}

/* Access link in the shared eight-item menu. */
.hpb-shared-header #hpb-nav ul {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}
.hpb-shared-header #hpb-nav li a {
    text-align: center;
}
@media screen and (max-width: 899px) {
    .hpb-shared-header #hpb-nav ul {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    /* Home spans the first row, followed by two pairs and a final trio. */
    .hpb-shared-header #hpb-nav li {grid-column: span 2;}
    .hpb-shared-header #hpb-nav li:first-child {grid-column: 1 / -1;}
    .hpb-shared-header #hpb-nav li:nth-child(n+2):nth-child(-n+5) {
        grid-column: span 3;
    }
    .hpb-shared-header #hpb-nav li:last-child {grid-column: span 2;}
}
.hpb-shared-header #companyinfo .office-map-link {
    display: inline-block;
    margin-top: 3px;
    color: #155c7d;
    text-decoration: underline;
    text-underline-offset: .15em;
}

/* Access directory. */
body.hpb-shared-header.access-page #hpb-wrapper,
body.hpb-shared-header.access-page #hpb-main {
    float: none;
    width: 100%;
}
body.hpb-shared-header.access-page #hpb-title h2 {
    box-sizing: border-box;
    width: 100%;
}
.access-directory {
    color: #284658;
    font-size: 15px;
    line-height: 1.65;
    margin: 20px 0 36px;
}
.access-jumps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
}
.access-jumps a,
.access-map-button {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #b9ceda;
    border-radius: 5px;
    background: linear-gradient(#fff, #e3eff6);
    box-shadow: inset 0 -2px 0 #c7dae5;
    color: #155c7d;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.access-jumps a:hover,
.access-map-button:hover {
    background: linear-gradient(#fff, #d0e9f7);
}
.access-jumps a:focus-visible,
.access-map-button:focus-visible,
.access-map summary:focus-visible {
    outline: 2px solid #155c7d;
    outline-offset: 2px;
}
.access-office {
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid #d5e4ed;
    border-left: 4px solid #7dbad9;
    border-radius: 6px;
    background: #f8fbfd;
    scroll-margin-top: 14px;
}
.access-office:target {
    border-left-color: #1877a1;
}
.access-office .access-office-en {
    margin: 0 0 2px;
    color: #346b88;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
}
.access-office h3 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #173e55;
    font-size: 21px;
    line-height: 1.35;
}
.access-office address {
    margin: 0;
    font-style: normal;
}
.access-office address strong {
    display: block;
    color: #173e55;
}
.access-office .access-address-en {
    margin: 6px 0 14px;
    color: #456173;
    font-size: 13px;
}
.access-map-button span,
.access-map summary span {
    margin-left: .35em;
    font-size: .8em;
}
.access-map {
    margin-top: 12px;
}
.access-map summary {
    width: fit-content;
    max-width: 100%;
    padding: 5px 0;
    cursor: pointer;
    color: #155c7d;
    font-weight: 600;
}
.access-map iframe {
    display: block;
    width: 100%;
    height: clamp(235px, 45vw, 385px);
    margin-top: 8px;
    border: 1px solid #d5e4ed;
    border-radius: 4px;
    box-sizing: border-box;
}
@media screen and (max-width: 420px) {
    .access-jumps {gap: 5px;}
    .access-jumps a {padding-inline: 4px; font-size: 13px;}
}


/* Allow longer desktop labels to wrap within the 38px navigation bar. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header #hpb-nav li a {
        height: 36px;
        min-width: 0;
        padding: 2px 4px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.14;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body.hpb-shared-header #hpb-nav li a > span {
        min-width: 0;
    }
}


/* Use the existing office heading blue for the main page headings. */
body.hpb-shared-header {
    --office-heading-blue: #56bfed;
}
body.hpb-shared-header #hpb-inner #companyinfo h3,
body.hpb-shared-header #toppage-news h3,
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
    background: var(--office-heading-blue);
}
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
    width: 100%;
}

@media screen and (min-width: 900px) {
    body.hpb-shared-header #hpb-aside > .hpb-c-index {
        display: none;
    }
    body.hpb-shared-header #companyinfo > h3:first-child,
    body.hpb-shared-header #companyinfo > .i18n > h3:first-child {
        margin-top: 0;
    }

    /* Start the home news and office columns at the same offset. */
    body.hpb-shared-header.hpb-layoutset-01 #hpb-main,
    body.hpb-shared-header.hpb-layoutset-01 #hpb-aside {
        margin-top: 0;
        padding-top: 14px;
    }
    body.hpb-shared-header.hpb-layoutset-01 #toppage > hr {
        display: none;
    }
    body.hpb-shared-header.hpb-layoutset-01 #toppage-news h3 {
        margin-top: 0;
    }

    /* The inner pages share a 53px offset from the navigation origin. */
    body.hpb-shared-header.hpb-layoutset-02 #hpb-wrapper {
        padding-top: 53px;
    }
    body.hpb-shared-header.hpb-layoutset-02 #hpb-aside {
        margin-top: 53px;
        padding-top: 0;
    }
    body.hpb-shared-header.hpb-layoutset-02 #hpb-title > br {
        display: none;
    }
    body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
        margin-top: 0;
    }
}


/* Keep the photo and navigation in the same positions on every page. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header.hpb-with-hero #hpb-nav {
        top: 220px;
    }
    body.hpb-shared-header.hpb-with-hero.hpb-layoutset-01 #hpb-main,
    body.hpb-shared-header.hpb-with-hero.hpb-layoutset-01 #hpb-aside {
        padding-top: 53px;
    }
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header .hpb-page-hero {
        height: auto;
        order: 0;
    }
    body.hpb-shared-header.hpb-with-hero #hpb-nav {
        order: 1;
    }
    body.hpb-shared-header.hpb-with-hero #hpb-nav li a {
        min-height: 48px;
    }
    body.hpb-shared-header.hpb-with-hero #hpb-wrapper {
        order: 2;
    }
    body.hpb-shared-header.hpb-with-hero #hpb-aside {
        order: 3;
    }
}


/* Fit Chinese labels with the Japanese-language note in desktop buttons. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header.language-zh #hpb-nav li a {
        font-size: 12px;
    }
}


/* Bring the desktop blues closer to the mobile reference. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header .hpb-page-hero > img,
    body.hpb-shared-header #hpb-header::before {
        filter: saturate(1.16) hue-rotate(-8deg);
    }
    body.hpb-shared-header #hpb-headerLogo a {
        filter: brightness(0.94) saturate(1.18) hue-rotate(-8deg)
                drop-shadow(0.8px 1.3px 0.8px rgba(35, 75, 105, 0.30));
    }
}


/* Match the desktop heading blue more closely to the mobile reference. */
@media screen and (min-width: 900px) {
    body.hpb-shared-header {
        --office-heading-blue: #24bfee;
    }
}

/* Keep the white type readable against the light blue bars. */
body.hpb-shared-header #hpb-inner #companyinfo h3,
body.hpb-shared-header #toppage-news h3,
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
    text-shadow: 0 1px 2px rgba(12, 49, 72, .85),
                 0 0 1px rgba(12, 49, 72, .65);
}


/* Use one size for the news, page title and office heading bars. */
body.hpb-shared-header #toppage-news h3,
body.hpb-shared-header #hpb-inner #companyinfo h3,
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
    box-sizing: border-box;
    height: auto;
    min-height: 34px;
    padding: 7px 12px;
    font-family: var(--site-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 {
    color: #fff;
    overflow: visible;
    overflow-wrap: anywhere;
}
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 > span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
}
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2:has(> .ja + .en) > .ja {
    padding-right: .55em;
}

/* Separate the Japanese title and its English subtitle. */
body.hpb-shared-header.hpb-layoutset-02 #hpb-title h2 > .ja + .en::before,
body.hpb-shared-header #toppage-news h3 > .ja + .en::before {
    content: "/";
    content: "/" / "";
    margin-right: .55em;
}

/* Show both languages in the home news heading. */
body.hpb-shared-header #toppage-news h3 > .ja {
    display: inline;
    padding-right: .55em;
}


/* System fonts follow the language of the page or the marked text. */
body.hpb-shared-header {
    --site-font-ja: "Noto Sans JP", Meiryo, "Yu Gothic UI", system-ui, sans-serif;
    --site-font-zh: "Noto Sans SC", "Microsoft YaHei", "Microsoft YaHei UI", system-ui, sans-serif;
    --site-font-en: "Noto Sans", "Segoe UI", system-ui, sans-serif;
    --site-font: var(--site-font-ja);
    --body-ink: #344554;
    color: var(--body-ink);
}
body.hpb-shared-header [lang]:lang(ja) {
    --site-font: var(--site-font-ja);
}
body.hpb-shared-header:lang(zh),
body.hpb-shared-header [lang]:lang(zh) {
    --site-font: var(--site-font-zh);
}
body.hpb-shared-header:lang(en),
body.hpb-shared-header [lang]:lang(en) {
    --site-font: var(--site-font-en);
}
body.hpb-shared-header,
body.hpb-shared-header [lang],
body.hpb-shared-header #hpb-headerMain h1 {
    font-family: var(--site-font);
}
body.hpb-shared-header #hpb-title h2 > .en,
body.hpb-shared-header #hpb-nav a[href="english.html"],
body.hpb-shared-header #hpb-nav a[href="english.html"] > .i18n {
    font-family: var(--site-font-en);
}
body.hpb-shared-header #hpb-nav a[href="chinese.html"],
body.hpb-shared-header #hpb-nav a[href="chinese.html"] > .i18n {
    font-family: var(--site-font-zh);
}

/* One reading size for the main copy, including legacy font tags. */
body.hpb-shared-header #hpb-main {
    color: var(--body-ink);
    font-size: 15px;
    line-height: 1.75;
}
body.hpb-shared-header #hpb-main font[size] {
    font-size: inherit;
}
body.hpb-shared-header #contact,
body.hpb-shared-header #contact .field-help,
body.hpb-shared-header #contact .contact-field input,
body.hpb-shared-header #contact .contact-field textarea,
body.hpb-shared-header .access-directory,
body.hpb-shared-header .access-directory .access-address-en,
body.hpb-shared-header #companyinfo p {
    color: var(--body-ink);
}
@media screen and (min-width: 900px) {
    body.hpb-shared-header #companyinfo p {
        font-size: 13px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
}


/* Match Japanese heading typography to the site font. */
body.hpb-shared-header #toppage-news h3:lang(ja),
body.hpb-shared-header #hpb-inner #companyinfo h3:lang(ja),
body.hpb-shared-header #hpb-title h2 > .ja:lang(ja),
body.hpb-shared-header #hpb-title h2 > .i18n:lang(ja) {
    font-family: var(--site-font-ja);
}


/* Tuck the white part of the photo fade behind the shared header. */
body.hpb-shared-header.hpb-with-hero #hpb-header {
    z-index: 1;
    background-color: transparent;
}
body.hpb-shared-header.hpb-with-hero #hpb-inner {
    margin-top: -18px;
}
@media screen and (max-width: 899px) {
    body.hpb-shared-header.hpb-with-hero #hpb-inner {
        margin-top: -12px;
    }
}


/* Align each news entry with the date text, beyond its icon. */
body.hpb-shared-header #toppage-news {
    --news-text-inset: 25px;
}
body.hpb-shared-header #toppage-news > dl > dt,
body.hpb-shared-header #toppage-news > dl > dd {
    padding-inline-start: var(--news-text-inset);
}
