
/* Codex shuzo responsive width fix 2026-07-05 */
@media (max-width: 640px) {
  body .shuzo-site,
  body .shuzo-about {
    overflow-x: clip !important;
  }

  body .shuzo-site .shuzo-container,
  body .shuzo-about .shuzo-container {
    box-sizing: border-box !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body .shuzo-site .shuzo-hero-grid,
  body .shuzo-site .shuzo-hero-grid > *,
  body .shuzo-about .shuzo-article-section,
  body .shuzo-about .shuzo-article-section > * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body .shuzo-about .shuzo-article-section {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .shuzo-about .shuzo-section-number {
    width: 100% !important;
  }
}

/*
 * White / navy theme override for the current `.ng-site` page shell.
 * Source inspected read-only:
 * https://shuzo-ma-center.jp/wp-json/wp/v2/pages/17?context=view
 *
 * Append this block AFTER the existing inline CSS.
 * Before use, replace https://shuzo-ma-center.jp/wp-content/uploads/2026/08/logo-horizontal.png below with the final horizontal logo image URL.
 */

/* ---------- Palette and page canvas ---------- */
.ng-site {
  --ng-ink: #102a43;
  --ng-navy: #123a5a;
  --ng-blue: #1e527a;
  --ng-teal: #2e6f96;
  --ng-gold: #dceef8;
  --ng-gold-dark: #78a9c6;
  --ng-rice: #f8fbfd;
  --ng-mist: #edf6fb;
  --ng-white: #ffffff;
  --ng-line: rgba(18, 58, 90, .14);
  --ng-shadow: 0 18px 48px rgba(18, 58, 90, .11);
  color: var(--ng-ink);
  background: var(--ng-white);
}

body:has(.ng-site) {
  color: #102a43;
  background: #ffffff;
}

/* ---------- Header and horizontal image logo ---------- */
.ng-site .ng-header {
  color: var(--ng-navy);
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(18, 58, 90, .12);
  box-shadow: 0 8px 28px rgba(18, 58, 90, .09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/*
 * The anchor keeps its existing aria-label. The old round mark and text remain
 * in the DOM, but are clipped visually so the replacement logo is the only
 * visible brand treatment.
 */
.ng-site .ng-header .ng-brand {
  position: relative;
  display: block;
  flex: 0 1 264px;
  width: clamp(182px, 21vw, 264px);
  min-width: 168px;
  height: 48px;
  overflow: hidden;
  background-image: url("https://shuzo-ma-center.jp/wp-content/uploads/2026/08/logo-horizontal-768x172.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.ng-site .ng-header .ng-brand > .ng-brand-mark,
.ng-site .ng-header .ng-brand > span:not(.ng-brand-mark) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ng-site .ng-nav a {
  color: #35566e;
}

.ng-site .ng-nav a:hover {
  color: var(--ng-navy);
}

.ng-site .ng-header-phone {
  color: var(--ng-navy);
}

.ng-site .ng-header-phone small {
  color: #668096;
}

/* ---------- Buttons and small accents ---------- */
.ng-site .ng-btn--gold,
.ng-site .ng-submit input[type="submit"] {
  color: #ffffff !important;
  background: var(--ng-navy);
  border-color: var(--ng-navy);
  box-shadow: 0 10px 24px rgba(18, 58, 90, .18);
}

.ng-site .ng-btn--gold:hover,
.ng-site .ng-submit input[type="submit"]:hover {
  background: #0d2f4b;
  border-color: #0d2f4b;
  box-shadow: 0 13px 28px rgba(18, 58, 90, .23);
}

.ng-site .ng-btn--light {
  color: var(--ng-navy) !important;
  background: #ffffff;
  border-color: #86b4cf;
}

.ng-site .ng-btn--light:hover {
  background: #edf6fb;
}

.ng-site .ng-btn--navy {
  color: #ffffff !important;
  background: var(--ng-blue);
  border-color: var(--ng-blue);
}

.ng-site .ng-btn--outline {
  color: var(--ng-navy) !important;
  background: #ffffff;
  border-color: rgba(18, 58, 90, .35);
}

.ng-site .ng-kicker,
.ng-site .ng-kicker--light {
  color: var(--ng-blue);
}

.ng-site .ng-part-brand {
  color: var(--ng-navy);
  background: rgba(255, 255, 255, .72);
  border-color: #9fc6dc;
}

.ng-site .ng-route-label {
  color: #ffffff;
  background: var(--ng-blue);
}

.ng-site .ng-checks li::before {
  color: #ffffff;
  background: var(--ng-blue);
}

/* ---------- Hero: white to pale blue ---------- */
.ng-site .ng-hero {
  color: var(--ng-navy);
  background:
    radial-gradient(circle at 84% 22%, rgba(174, 216, 237, .62), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 52%, #e9f4fa 100%);
  border-bottom: 1px solid rgba(18, 58, 90, .10);
}

.ng-site .ng-hero::before {
  opacity: .52;
  background-image:
    linear-gradient(rgba(18, 58, 90, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 58, 90, .045) 1px, transparent 1px);
}

.ng-site .ng-lead,
.ng-site .ng-hero .ng-lead {
  color: #3d5b70;
}

.ng-site .ng-hero-badge {
  color: var(--ng-ink);
  background: rgba(255, 255, 255, .88);
  border-color: rgba(18, 58, 90, .16);
  box-shadow: 0 8px 24px rgba(18, 58, 90, .07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ng-site .ng-talent-note {
  color: #5a7183;
}

.ng-site .ng-hero-visual::before {
  border-color: rgba(76, 139, 175, .42);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 18px rgba(149, 201, 228, .11);
}

.ng-site .ng-person {
  filter: drop-shadow(0 22px 32px rgba(18, 58, 90, .18));
}

.ng-site .ng-proof-chip {
  color: var(--ng-navy);
  background: rgba(255, 255, 255, .97);
  border-color: #9fc6dc;
}

.ng-site .ng-proof-chip b {
  color: var(--ng-blue);
}

/* ---------- Sections and cards ---------- */
.ng-site .ng-section--white {
  background: #ffffff;
}

.ng-site .ng-section--mist {
  background: var(--ng-mist);
}

/* Shared dark-section class used by the current page CSS and related pages. */
.ng-site .ng-section--navy {
  color: var(--ng-ink);
  background: #eaf4f9;
}

.ng-site .ng-section--navy .ng-section-head p,
.ng-site .ng-section-head p,
.ng-site .ng-copy p {
  color: #486477;
}

.ng-site .ng-trust-card,
.ng-site .ng-card,
.ng-site .ng-step,
.ng-site .ng-fee-panel,
.ng-site .ng-faq details,
.ng-site .wpcf7 .ng-cf7 {
  background: #ffffff;
  border-color: rgba(18, 58, 90, .13);
  box-shadow: 0 12px 34px rgba(18, 58, 90, .075);
}

.ng-site .ng-trust-card b,
.ng-site .ng-card h3,
.ng-site .ng-step h3,
.ng-site .ng-faq summary {
  color: var(--ng-blue);
}

.ng-site .ng-trust-card span,
.ng-site .ng-card p,
.ng-site .ng-card li,
.ng-site .ng-step p,
.ng-site .ng-faq p {
  color: #486477;
}

.ng-site .ng-card--gold {
  border-top-color: #78aac8;
}

.ng-site .ng-step::before,
.ng-site .ng-zero {
  color: var(--ng-blue);
}

/* ---------- Fee panel: replace the dark photo field ---------- */
.ng-site .ng-fee-figure {
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, .72), transparent 34%),
    linear-gradient(145deg, #eef7fb, #dceef7);
  border: 1px solid rgba(18, 58, 90, .12);
  box-shadow: var(--ng-shadow);
}

.ng-site .ng-fee-figure::before {
  color: rgba(18, 58, 90, .045);
}

.ng-site .ng-fee-figure-copy {
  color: var(--ng-navy);
}

.ng-site .ng-fee-figure-copy b {
  color: var(--ng-blue);
}

.ng-site .ng-fee-item,
.ng-site .ng-form-aside,
.ng-site .ng-privacy,
.ng-site .ng-options {
  color: var(--ng-ink);
  background: #edf6fb;
  border-color: rgba(18, 58, 90, .12);
}

.ng-site .ng-fee-item b,
.ng-site .ng-form-aside h2,
.ng-site .ng-form-intro strong {
  color: var(--ng-blue);
}

.ng-site .ng-fee-item span,
.ng-site .ng-legal-note,
.ng-site .ng-talent-note--dark,
.ng-site .ng-form-aside p,
.ng-site .ng-form-aside ul {
  color: #526c7e;
}

/* ---------- CTA and other formerly dark feature bands ---------- */
.ng-site .ng-cta,
.ng-site .ng-subhero,
.ng-site .ng-reassurance {
  color: var(--ng-navy);
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, .90), transparent 27%),
    linear-gradient(125deg, #f8fbfd 0%, #e7f3f9 62%, #dcecf5 100%);
  border-top: 1px solid rgba(18, 58, 90, .10);
  border-bottom: 1px solid rgba(18, 58, 90, .10);
}

.ng-site .ng-cta::before {
  opacity: .34;
  background: radial-gradient(circle at 82% 28%, #8ec4df, transparent 24%);
}

.ng-site .ng-cta-copy p,
.ng-site .ng-reassurance-copy p,
.ng-site .ng-subhero .ng-lead {
  color: #456276;
}

.ng-site .ng-reassurance {
  box-shadow: var(--ng-shadow);
}

/* ---------- Forms ---------- */
.ng-site .ng-form-section {
  background: #ffffff;
}

.ng-site .ng-form-intro {
  background: #f2f8fb;
  border-left-color: #78aac8;
}

.ng-site .ng-cf7 input[type="text"],
.ng-site .ng-cf7 input[type="email"],
.ng-site .ng-cf7 input[type="tel"],
.ng-site .ng-cf7 select,
.ng-site .ng-cf7 textarea {
  color: var(--ng-ink);
  background: #ffffff;
  border-color: #bfd2de;
}

.ng-site .ng-cf7 input:focus,
.ng-site .ng-cf7 select:focus,
.ng-site .ng-cf7 textarea:focus {
  outline-color: rgba(46, 111, 150, .20);
  border-color: var(--ng-teal);
}

.ng-site .ng-privacy a,
.ng-site .ng-contact-phone {
  color: var(--ng-blue);
}

/* ---------- Footer: pale surface with dark type ---------- */
.ng-site .ng-footer {
  color: var(--ng-navy);
  background: #eff6fa;
  border-top: 1px solid rgba(18, 58, 90, .13);
}

.ng-site .ng-footer p {
  color: #526d80;
}

.ng-site .ng-footer-links b {
  color: var(--ng-blue);
}

.ng-site .ng-footer-links a:hover {
  color: var(--ng-teal);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ng-site .ng-footer-bottom {
  color: #627b8c;
  border-top-color: rgba(18, 58, 90, .12);
}

/* ---------- Keyboard focus ---------- */
.ng-site a:focus-visible,
.ng-site button:focus-visible,
.ng-site input:focus-visible,
.ng-site select:focus-visible,
.ng-site textarea:focus-visible,
.ng-site summary:focus-visible {
  outline-color: #2875a2;
}

/* ---------- Responsive header and mobile navigation ---------- */
@media (max-width: 1060px) {
  .ng-site .ng-header .ng-brand {
    flex-basis: 218px;
    width: 218px;
    min-width: 162px;
  }
}

@media (max-width: 820px) {
  .ng-site .ng-header .ng-brand {
    flex-basis: 196px;
    width: 196px;
    min-width: 150px;
    height: 42px;
  }

  .ng-site .ng-mobile-nav {
    color: var(--ng-navy);
    background: #edf6fb;
    border-top-color: rgba(18, 58, 90, .10);
    border-bottom: 1px solid rgba(18, 58, 90, .10);
    box-shadow: 0 5px 16px rgba(18, 58, 90, .05);
  }

  .ng-site .ng-mobile-nav a {
    color: var(--ng-navy);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(18, 58, 90, .16);
  }
}

@media (max-width: 640px) {
  .ng-site .ng-header {
    gap: 10px;
  }

  .ng-site .ng-header .ng-brand {
    flex: 1 1 auto;
    width: min(44vw, 168px);
    min-width: 120px;
    max-width: 168px;
    height: 38px;
  }

  .ng-site .ng-header-actions {
    flex: 0 0 auto;
  }

  .ng-site .ng-header-actions .ng-btn {
    white-space: nowrap;
  }

  .ng-site .ng-hero-badge {
    background: rgba(255, 255, 255, .94);
  }
}

@media (max-width: 380px) {
  .ng-site .ng-header {
    padding-inline: 10px;
  }

  .ng-site .ng-header .ng-brand {
    width: 126px;
    min-width: 112px;
    max-width: 126px;
    height: 34px;
  }

  .ng-site .ng-header-actions .ng-btn {
    padding-inline: 10px;
    font-size: 11px;
  }
}

/* ---------- Legacy shuzo-* pages and the shared trust frame ---------- */
body:has(.shuzo-site),
body:has(.shuzo-about) {
  color: #102a43;
  background: #ffffff !important;
}

body .shuzo-frame-top {
  color: #35566e !important;
  background: #edf6fb !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(18, 58, 90, .10) !important;
}

body .shuzo-frame-header {
  color: #102a43 !important;
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid rgba(18, 58, 90, .12) !important;
  box-shadow: 0 8px 28px rgba(18, 58, 90, .09) !important;
}

body .shuzo-frame-brand {
  display: inline-flex !important;
  align-items: center !important;
  width: clamp(190px, 22vw, 286px) !important;
  min-width: 170px !important;
  height: 52px !important;
}

body .shuzo-brand-logo {
  content: url("https://shuzo-ma-center.jp/wp-content/uploads/2026/08/logo-horizontal-768x172.png") !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body .shuzo-frame-nav a,
body .shuzo-frame-phone,
body .shuzo-frame-menu {
  color: #234862 !important;
}

body .shuzo-frame-trust,
body .shuzo-frame-copy {
  color: #486477 !important;
}

body .shuzo-site,
body .shuzo-about {
  color: #102a43 !important;
  background: #ffffff !important;
}

body .shuzo-site .shuzo-page-hero,
body .shuzo-about .shuzo-page-hero,
body .shuzo-site .shuzo-hero,
body .shuzo-about .shuzo-hero {
  color: #123a5a !important;
  background:
    radial-gradient(circle at 82% 22%, rgba(174, 216, 237, .58), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 54%, #e9f4fa 100%) !important;
  border-bottom: 1px solid rgba(18, 58, 90, .10) !important;
}

body .shuzo-site .shuzo-page-hero p,
body .shuzo-about .shuzo-page-hero p,
body .shuzo-site .shuzo-hero p,
body .shuzo-about .shuzo-hero p {
  color: #486477 !important;
}

body .shuzo-site .shuzo-eyebrow,
body .shuzo-about .shuzo-eyebrow,
body .shuzo-frame-eyebrow {
  color: #1e527a !important;
}

body .shuzo-site .shuzo-band,
body .shuzo-about .shuzo-band,
body .shuzo-site .shuzo-article,
body .shuzo-about .shuzo-article {
  color: #102a43 !important;
  background: #ffffff !important;
}

body .shuzo-site .shuzo-step,
body .shuzo-about .shuzo-step,
body .shuzo-site .shuzo-card,
body .shuzo-about .shuzo-card,
body .shuzo-site .shuzo-process-note,
body .shuzo-about .shuzo-process-note {
  color: #102a43 !important;
  background: #ffffff !important;
  border-color: rgba(18, 58, 90, .13) !important;
  box-shadow: 0 12px 34px rgba(18, 58, 90, .075) !important;
}

body .shuzo-site .shuzo-cta,
body .shuzo-about .shuzo-cta,
body .shuzo-frame-footer__cta {
  color: #123a5a !important;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, .90), transparent 27%),
    linear-gradient(125deg, #f8fbfd 0%, #e7f3f9 62%, #dcecf5 100%) !important;
  border-color: rgba(18, 58, 90, .10) !important;
}

body .shuzo-site .shuzo-cta p,
body .shuzo-about .shuzo-cta p,
body .shuzo-frame-footer__cta p {
  color: #486477 !important;
}

body .shuzo-site .shuzo-btn--gold,
body .shuzo-about .shuzo-btn--gold,
body .shuzo-frame-cta--gold,
body .shuzo-frame-cta--navy {
  color: #ffffff !important;
  background: #123a5a !important;
  border-color: #123a5a !important;
  box-shadow: 0 10px 24px rgba(18, 58, 90, .18) !important;
}

body .shuzo-site .shuzo-btn--ghost,
body .shuzo-about .shuzo-btn--ghost,
body .shuzo-frame-cta--light {
  color: #123a5a !important;
  background: #ffffff !important;
  border-color: #86b4cf !important;
}

body .shuzo-frame-footer {
  color: #123a5a !important;
  background: #eff6fa !important;
  border-top: 1px solid rgba(18, 58, 90, .13) !important;
}

body .shuzo-frame-footer p,
body .shuzo-frame-footer a,
body .shuzo-frame-footer dt,
body .shuzo-frame-footer dd {
  color: #526d80 !important;
}

@media (max-width: 720px) {
  body .shuzo-frame-brand {
    width: min(52vw, 210px) !important;
    min-width: 146px !important;
    height: 44px !important;
  }
}

/* Codex shuzo responsive navigation and contrast fixes 2026-08-30 */

/* Keep the light trust strip readable on legacy-layout pages. */
body .shuzo-frame-top p,
body .shuzo-frame-top .shuzo-frame-trust span {
  color: #123a5a !important;
}

body .shuzo-frame-top .shuzo-frame-trust span {
  border-color: #86b4cf !important;
}

/* The about-page hero uses a dark image overlay, so its lead copy must be light. */
#body_wrap .shuzo-about .shuzo-hero .shuzo-eyebrow,
#body_wrap .shuzo-about .shuzo-hero h1,
#body_wrap .shuzo-about .shuzo-hero .shuzo-lead {
  color: #ffffff !important;
}

/* Maintain a 44px minimum touch target for tablet navigation and mobile FAQ rows. */
#body_wrap .ng-mobile-nav a,
#body_wrap .ng-faq summary {
  min-height: 44px !important;
}

#body_wrap .ng-faq summary {
  display: flex !important;
  align-items: center !important;
}

/* Account for the WordPress admin bar in authenticated mobile/tablet previews. */
.admin-bar .shuzo-frame-menu__panel,
body:has(#wpadminbar) .shuzo-frame-menu__panel {
  max-height: calc(100vh - 156px) !important;
}

@media (max-width: 782px) {
  .admin-bar .shuzo-frame-menu__panel,
  body:has(#wpadminbar) .shuzo-frame-menu__panel {
    max-height: calc(100vh - 170px) !important;
  }
}

