/* WordPress-specific overrides loaded after the extracted design CSS. */
.nav .nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.1vw, 20px);
  flex-wrap: nowrap;
  list-style: none;
}

.nav .nav-menu a {
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.nav .nav-menu > li {
  position: relative;
}

.nav .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 120;
  display: grid;
  min-width: 260px;
  padding: 14px 0;
  margin: 0;
  list-style: none;
  background: rgba(250, 247, 240, 0.97);
  border: 1px solid rgba(217, 207, 189, 0.86);
  box-shadow: 0 18px 46px rgba(20, 35, 46, 0.18);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}

.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav .sub-menu a:hover {
  color: var(--bronze);
  background: rgba(168, 107, 61, 0.08);
}

.header {
  gap: 28px;
  overflow: visible;
}

body.admin-bar .header {
  top: 32px;
}

.header .logo {
  display: inline-grid;
  flex: 0 1 auto;
  gap: 0;
  max-width: min(36vw, 360px);
  min-width: 0;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.header .logo-main {
  display: flex;
  align-items: baseline;
  color: currentColor;
  white-space: nowrap;
}

.header .logo-company {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 1.55vw, 28px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
}

.header .logo-sub {
  display: block;
  margin-top: 2px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.62vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-align: center;
  white-space: nowrap;
}

.header .nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.floating-cta {
  right: 26px !important;
  top: auto !important;
  bottom: 26px !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 150px;
  height: 48px;
  padding: 0 22px !important;
  border-radius: 999px;
  letter-spacing: 0.08em !important;
  line-height: 1;
}

.menu-toggle {
  display: none;
}

.entry-content img {
  height: auto;
}

.wp-caption {
  max-width: 100%;
}

.page-targets {
  padding-top: 110px;
}

.media-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}

.filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.filter.is-current,
.filter:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

.case-archive,
.media-archive {
  padding-top: 110px;
}

.case-story-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.5fr;
  gap: 58px;
}

.contact-panel .entry-content:empty {
  display: none;
}

.contact-fallback {
  display: grid;
  gap: 16px;
}

.contact-fallback .btn {
  justify-self: start;
}

.single-heading {
  margin-bottom: 42px;
}

.subhero-title {
  margin-top: 18px;
  font-family: var(--font-mincho);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.12;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.single-heading h1 {
  margin-top: 16px;
  font-family: var(--font-mincho);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--bronze);
  font-family: var(--font-sans-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.single-meta span {
  color: var(--line-strong);
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.6);
}

.flow-card span {
  grid-row: span 2;
  font-family: var(--font-serif-en);
  font-size: 28px;
  color: var(--bronze);
}

.flow-card h3 {
  font-family: var(--font-mincho);
  color: var(--ink);
  font-size: 20px;
}

.flow-card p {
  color: var(--text-mute);
  font-size: 14px;
}

.archive .news-item {
  grid-template-columns: 140px minmax(0, 1fr) 28px;
}

@media (max-width: 1320px) {
  .header .menu-toggle {
    display: inline-flex;
  }

  .header .nav {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    padding: 96px 32px 32px;
    background: rgba(250, 247, 240, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 50px rgba(20, 35, 46, 0.12);
    transform: translateY(-110%);
    transition: transform 0.32s ease;
  }

  .nav-open .header .nav {
    transform: translateY(0);
  }

  .nav .nav-menu {
    display: grid;
    gap: 18px;
    justify-content: start;
  }

  .nav .nav-menu a {
    display: block;
    color: var(--ink) !important;
    font-size: 14px;
    line-height: 1.8;
  }

  .nav .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 10px 0 0 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav .sub-menu::before {
    display: none;
  }

  .nav .sub-menu a {
    padding: 5px 0;
    color: var(--text-mute) !important;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .nav .nav-menu {
    gap: 14px;
  }

  .case-story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .header .logo {
    max-width: calc(100vw - 116px);
  }

  .header .logo-company {
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .header .logo-sub {
    font-size: 19px;
  }

  .floating-cta {
    right: 16px !important;
    bottom: 16px !important;
    min-width: 132px;
    height: 44px;
    padding: 0 18px !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

