.editorial-site {
  --body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --display: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}
.editorial-site :is(h1,h2) { font-weight: 500; }
.editorial-site :is(h3,h4,figcaption) { font-weight: 400; }
.editorial-site :is(.eyebrow,.text-link,.column-card > span,.company-details summary,.faq-list summary,.page-routes a) { font-weight: 400; }
.editorial-site :is(.brand,.button,.top-contact-submit,.top-contact-form em,.details dt) { font-weight: 500; }
.editorial-site .hero-content h1 { font-weight: 350; letter-spacing: -.047em; }
.editorial-site .hero-content h1 span { font-weight: inherit; }
.editorial-site .section-title h2 { letter-spacing: -.025em; }
.editorial-site .page-hero h1 { letter-spacing: -.022em; }
.editorial-site .site-nav a { font-weight: 400; line-height: 1.55; }
.editorial-site .site-footer .footer-map :is(a,li a) { font-weight: 400; }
.editorial-site .process li::before { font-weight: 500; }
.editorial-site strong { font-weight: 550; }
.editorial-site .primary-links { gap: clamp(8px,1.05vw,18px); }
.nav-group { position: relative; }
.nav-parent { display: flex; align-items: center; }
.nav-parent > a { padding-block: 10px; }
.subnav-toggle {
  display: none;
  width: 27px;
  height: 33px;
  padding: 0;
  background: transparent;
  color: #e0ecec;
  border: 0;
  cursor: pointer;
}
.has-disclosure .subnav-toggle { display: grid; place-items: center; }
.subnav-toggle span { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.subnav-toggle[aria-expanded=true] { color: #83e4d4; }
.subnav-toggle[aria-expanded=true] span { transform: translateY(2px) rotate(225deg); }
.nav-group:has(.subnav-toggle[aria-expanded=true]) .nav-parent > a { color: #83e4d4; }
.subnav {
  display: none;
  list-style: none;
  position: absolute;
  inset: 100% auto auto 0;
  z-index: 3;
  background: #0b1426;
  border: 1px solid #c6e0e743;
  border-top: 2px solid #83e4d4;
  min-width: 195px;
  width: max-content;
  max-width: 290px;
  padding: 5px 12px;
  margin: 0;
  box-shadow: 0 14px 28px #02071429;
}
.nav-group:nth-last-child(-n+3) .subnav { inset-inline: auto 0; }
.nav-group:hover .subnav, .nav-group:focus-within .subnav, .has-disclosure .subnav:not([hidden]) { display: block; }
.has-disclosure .subnav[hidden] { display: none; }
.subnav li + li { border-top: 1px solid #dae8e630; }
.editorial-site .site-nav .subnav a { display: block; padding: 9px 7px; font-size: 13px; color: #e4eaef; }
.editorial-site .site-nav .subnav a:hover, .editorial-site .site-nav .subnav a:focus-visible { color: #83e4d4; background: #17283c; }
.editorial-site .site-nav a:focus-visible, .editorial-site .subnav-toggle:focus-visible { outline-offset: 2px; }
.detail-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; max-width: 980px; }
.detail-group .detail-block { padding-top: 18px; border-top: 1px solid var(--line); }
.detail-note { padding: 17px 20px; margin-bottom: 20px; background: #f5f8f8; border-left: 2px solid var(--brand); max-width: 850px; }
.detail-pair { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(20px,4vw,52px); margin-bottom: 14px; }
.detail-pair .detail-photo { margin-bottom: 8px; }
.detail-pair .detail-photo img { aspect-ratio: 1.55; }
.detail-pair .detail-block { padding-top: 0; border-top: 0; }
@media (max-width:1120px) {
  .editorial-site .primary-links { display: block; }
  .editorial-site .primary-links > li { border-top: 1px solid #ffffff38; padding-top: 0; }
  .nav-parent { justify-content: space-between; }
  .nav-parent > a { flex: 1; }
  .editorial-site .primary-links > li > a, .editorial-site .nav-parent > a { padding-block: 11px; }
  .subnav-toggle { width: 44px; height: 44px; }
  .subnav { position: static; width: 100%; max-width: none; min-width: 0; box-shadow: none; margin-bottom: 9px; border: 0; border-left: 1px solid #83e4d4; }
  .editorial-site .site-nav .subnav a { padding: 10px 8px; }
  .editorial-site .site-nav .consult-link { margin: 9px 0; }
}
@media (max-width:650px) {
  .detail-pair, .detail-group { grid-template-columns: 1fr; gap: 0; }
}

/* The WordPress column shares the corporate shell while keeping its article layout. */
.corporate-column { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; font-weight: 400; }
.corporate-column :is(h1,h2) { font-weight: 500; }
.corporate-column :is(h3,h4,.eyebrow,.section-kicker,.hero-catch,.hero-monogram,.card-meta,.card-category,.article-category,.article-meta,.cta-kicker,.column-subnav,.column-subheader-brand small,.section-count,.image-placeholder) { font-weight: 400; }
.corporate-column :is(strong,.button,.pagination .page-numbers) { font-weight: 500; }
.corporate-column .column-subheader { top: 68px; }
.corporate-column.admin-bar .column-subheader { top: 100px; }
.corporate-header { position: sticky; top: 0; z-index: 35; --aqua:#83e4d4; --navy:#0b1426; }
.corporate-column.admin-bar .corporate-header { top: 32px; }
.corporate-header .site-header { position: static; background: #0b1426; border-bottom: 1px solid #ffffff20; color: #f6fbfb; backdrop-filter: none; }
.corporate-header .header-inner { min-height: 68px; width: min(1440px,calc(100% - 48px)); margin-inline: auto; gap: 14px; }
.corporate-header .brand { font: 500 clamp(21px,2vw,29px)/.95 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.07em; white-space: nowrap; }
.corporate-header .brand-dot { color: var(--aqua); }
.corporate-header .brand small { display: block; margin-top: 9px; font-size: 9px; font-weight: 400; letter-spacing: .12em; }
.corporate-header .site-nav { position: static; padding: 0; border: 0; color: inherit; background: transparent; letter-spacing: 0; }
.corporate-header .primary-links { display: flex; align-items: center; }
.corporate-header .site-nav .consult-link { display: inline-block; padding: .85em 1.1em; border-radius: 2px; color: var(--navy); background: var(--aqua); }
.corporate-header .site-nav .consult-link:hover { background: white; }
.corporate-header .menu-toggle { display: none; }
.corporate-header .menu-toggle::before, .corporate-header .menu-toggle::after { content: none; }
.corporate-column-footer { background: #0b1426; color: #f6fbfb; padding: 30px 0; }
.corporate-column-footer .footer-map { width: min(1240px,calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; font-size: 12px; }
.corporate-column-footer .footer-map ul { margin-top: 6px; }
.corporate-column-footer .footer-map li { color: #d4e5e6; }
.corporate-column-footer .footer-map a:hover, .corporate-header .site-nav a:hover { color: #83e4d4; }
.corporate-header :is(a,button):focus-visible, .corporate-column-footer a:focus-visible { outline: 2px solid #83e4d4; outline-offset: 2px; }
@media (max-width:1120px) {
  .corporate-header .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .corporate-header .site-nav, .corporate-header .site-nav.has-disclosure { display: block; width: 100%; }
  .corporate-header .site-nav.has-disclosure:not(.is-open) { display: none; }
  .corporate-header .site-nav.is-open { max-height: min(70vh,610px); overflow: auto; overscroll-behavior: contain; }
  .corporate-header .primary-links { display: block; }
  .corporate-header:has(.has-disclosure) .menu-toggle { display: block; width: auto; height: auto; padding: .42em .8em; color: #fff; border: 1px solid #ffffff70; }
}
@media (max-width:650px) {
  .corporate-column-footer .footer-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .corporate-header .header-inner { width: calc(100% - 36px); }
  .corporate-column.admin-bar .corporate-header { top: 46px; }
  .corporate-column.admin-bar .column-subheader { top: 114px; }
}

/* The original photo fades into the hero background without softening its centre. */
.editorial-site .corporate-hero {
  background: linear-gradient(122deg, #0b1528 18%, #101d2b 64%, #142c38 125%);
}

.editorial-site .hero-layout figure {
  --photo-fade-x: 7%;
  --photo-fade-y: 6%;
  position: relative;
  border-bottom-color: transparent;
}

.editorial-site .hero-layout figure::after {
  content: "";
  position: absolute;
  inset: 0 0 10px;
  pointer-events: none;
  background: rgb(11 21 40 / 7%);
}

@supports (mask-composite: intersect) {
  .editorial-site .hero-layout figure {
    mask-image:
      linear-gradient(90deg, transparent, black var(--photo-fade-x), black calc(100% - var(--photo-fade-x)), transparent),
      linear-gradient(180deg, transparent, black var(--photo-fade-y), black calc(100% - var(--photo-fade-y)), transparent);
    mask-origin: content-box;
    mask-clip: content-box;
    mask-composite: intersect;
  }
}

.editorial-site :is(.page-hero, .career-hero) {
  background: linear-gradient(115deg, #0b1528 25%, #102231 100%);
}

.editorial-site .contact-panel,
.corporate-column .cta-inner {
  background: linear-gradient(122deg, #102132 20%, #142936 100%);
}

.corporate-column .cta-inner::after {
  content: none;
}

.editorial-site :is(.case-card, .column-card, .record-card, .career-grid article, .service-card, .space-panel, .top-contact-form, .detail-note),
.corporate-column :is(.post-card, .cta-inner) {
  border-radius: 7px;
}

.editorial-site :is(.case-photo img, .work-thumb, .detail-photo img, .career-hero img),
.corporate-column :is(.card-image, .article-thumbnail) {
  border-radius: 5px;
}

.editorial-site .service-card > figure {
  border-radius: 6px 6px 0 0;
}

.editorial-site .space-panel img {
  border-radius: 0 6px 6px 0;
}

.editorial-site :is(.button, .top-contact-submit, .filters button, .top-form-field input, .top-form-field select, .top-form-field textarea, .site-nav .consult-link, .menu-toggle),
.corporate-column .button {
  border-radius: 5px;
}

.editorial-site .site-nav .subnav {
  border-radius: 6px;
}

@media (max-width: 650px) {
  .editorial-site .hero-layout figure {
    --photo-fade-x: 5%;
    --photo-fade-y: 7%;
  }
  .editorial-site .space-panel img {
    border-radius: 0 0 6px 6px;
  }
}
/* Compact shared footer navigation; retain footer base and branding. */
.site-footer .footer-map,.corporate-column-footer .footer-map{display:block;width:100%;max-width:1160px;margin-inline:auto;columns:4;column-gap:44px;padding-top:22px;padding-bottom:28px}
.site-footer .footer-map>div,.corporate-column-footer .footer-map>div{display:inline-block;vertical-align:top;break-inside:avoid;width:100%;margin:0 0 40px;padding:0}
.site-footer .footer-map ul,.corporate-column-footer .footer-map ul{margin:16px 0 0;padding:0;list-style:none}
.site-footer .footer-map li,.corporate-column-footer .footer-map li{margin:0;padding:0}
.site-footer .footer-map li+li,.corporate-column-footer .footer-map li+li{margin-top:12px}
.site-footer .footer-map a,.corporate-column-footer .footer-map a{display:inline-block;line-height:1.6;text-align:left;word-break:normal;overflow-wrap:normal}
@media(max-width:1050px){.site-footer .footer-map,.corporate-column-footer .footer-map{columns:2;column-gap:40px}}
@media(max-width:600px){.site-footer .footer-map,.corporate-column-footer .footer-map{columns:1;padding-top:18px}.site-footer .footer-map a,.corporate-column-footer .footer-map a{min-height:36px;padding-block:7px}.site-footer .footer-map li+li,.corporate-column-footer .footer-map li+li{margin-top:8px}.site-footer .footer-map>div,.corporate-column-footer .footer-map>div{margin-bottom:40px}}
.corporate-column-footer .footer-map{width:min(1160px,calc(100% - 48px))}

/* Explicit four-column footer groups. */
.site-footer .footer-map,.corporate-column-footer .footer-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));columns:auto;gap:44px;align-items:start}
.site-footer .footer-map>.footer-column,.corporate-column-footer .footer-map>.footer-column{display:block;margin:0;padding:0;min-width:0}
.footer-map .footer-group+.footer-group{margin-top:32px}
.site-footer .footer-map .footer-group>a,.corporate-column-footer .footer-map .footer-group>a{font-weight:600;color:#fff}
.site-footer .footer-map .footer-group>a:hover,.corporate-column-footer .footer-map .footer-group>a:hover{color:var(--light-accent,#83e4d4)}
@media(max-width:1050px){.site-footer .footer-map,.corporate-column-footer .footer-map{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px}}
@media(max-width:600px){.site-footer .footer-map,.corporate-column-footer .footer-map{grid-template-columns:minmax(0,1fr);gap:32px}.footer-map .footer-group+.footer-group{margin-top:24px}}
