/* One enmono design system for every public route. */
@view-transition { navigation: auto; types: OutIn; }
:root {
  color-scheme: light;
  --enmono-ink: #183d3a;
  --enmono-muted: #536b67;
  --enmono-paper: #f5f4ee;
  --enmono-card: #fffefa;
  --enmono-line: #d6ddd6;
  --enmono-teal: #17665b;
  --enmono-orange: #c94d29;
  --enmono-heading: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  --enmono-body: Arial, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.enmono-shell-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--enmono-paper);
  color: var(--enmono-ink);
  font: 16px/1.75 var(--enmono-body);
  text-rendering: optimizeLegibility;
}
body.enmono-shell-page :is(h1, h2, h3, h4, h5, h6) { color: var(--enmono-ink); font-family: var(--enmono-heading); line-height: 1.45; }
body.enmono-shell-page a { text-underline-offset: .2em; }
body.enmono-shell-page main :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 96px; font-family: var(--enmono-heading) !important; }
body.enmono-shell-page main :is(p, li, dt, dd, figcaption, blockquote, label, input, textarea, select, button) { font-family: var(--enmono-body) !important; }
body.enmono-shell-page main :is(p, li, dt, dd, figcaption, blockquote, label) { line-height: 1.75; }
body.enmono-shell-page main img { border-radius: 8px; }
body.enmono-shell-page .enmono-mobile { background: var(--enmono-paper); color: var(--enmono-ink); font-family: var(--enmono-body); }
body.enmono-shell-page :is(#SITE_CONTAINER, #masterPage, #PAGES_CONTAINER, #pageBackground_n8mwe, .wixui-page) { background-color: var(--enmono-paper) !important; }

/* Suppress different legacy headers, footers and jump widgets before showing the shared shell. */
body.enmono-shell-page header.site-header:not(.enmono-global-header),
body.enmono-shell-page footer.site-footer,
body.enmono-shell-page #SITE_HEADER,
body.enmono-shell-page #SITE_FOOTER,
body.enmono-shell-page #SITE_HEADER-placeholder,
body.enmono-shell-page #SITE_FOOTER-placeholder,
body.enmono-shell-page .gemba-mobile-header,
body.enmono-shell-page .gemba-mobile-footer,
body.enmono-shell-page .enmono-mobile-header,
body.enmono-shell-page .enmono-mobile-footer,
body.enmono-shell-page .enmono-mobile-floating,
body.enmono-shell-page .back-top,
body.enmono-shell-page .pinnedTopRight,
body.enmono-shell-page .pinnedMiddleRight { display: none !important; }
body.enmono-shell-page #PAGES_CONTAINER { margin-top: 0 !important; }

.enmono-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--enmono-line);
  background: #f5f4eef2;
  backdrop-filter: blur(10px);
}
.enmono-global-brand { display: block; flex: 0 0 auto; }
.enmono-global-brand img { display: block; width: clamp(150px, 15vw, 190px); height: auto; }
.enmono-global-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.8vw, 26px); }
.enmono-global-nav a,
.enmono-global-menu nav a { color: var(--enmono-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.enmono-global-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--enmono-orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.enmono-global-contact,
.enmono-global-menu nav a:last-child {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--enmono-orange);
  border-radius: 7px;
  background: var(--enmono-orange);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.enmono-global-menu { display: none; position: relative; flex: 0 0 auto; }
.enmono-global-menu > summary {
  display: grid;
  width: 42px;
  height: 42px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid #a7b9b1;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.enmono-global-menu > summary::-webkit-details-marker { display: none; }
.enmono-global-menu > summary span { width: 19px; height: 2px; background: var(--enmono-ink); }
.enmono-global-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 28px));
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--enmono-line);
  border-radius: 12px;
  background: var(--enmono-card);
  box-shadow: 0 8px 24px #1232;
}
.enmono-global-menu nav a { display: block; padding: 10px 12px; border-radius: 7px; white-space: normal; }
.enmono-global-menu nav a[aria-current="page"] { background: #e7efea; text-decoration: underline; text-decoration-color: var(--enmono-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.enmono-global-menu nav a:hover,
.enmono-global-menu nav a:focus-visible { background: #e7efea; }
.enmono-global-header :focus-visible,
.enmono-global-footer :focus-visible,
.enmono-page-rail :focus-visible { outline: 3px solid var(--enmono-orange); outline-offset: 3px; }

/* Shared CTA sizing and color across page-specific content. */
body.enmono-shell-page main :is(.primary-link, .secondary-link, .header-cta, .event-button, .legacy-button, .gemba-button, .mobile-site-cta, .enmono-mobile-cta, .enmono-mobile-contact-link, .source-link a, .training-actions a, .gemba-form button, button[type="submit"], input[type="submit"]) {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--enmono-orange);
  border-radius: 7px;
  background: var(--enmono-orange);
  color: #fff;
  font: 700 15px/1.35 var(--enmono-body);
  text-align: center;
  text-decoration: none;
}
body.enmono-shell-page main :is(.primary-link, .secondary-link, .header-cta, .event-button, .legacy-button, .gemba-button, .mobile-site-cta, .enmono-mobile-cta, .enmono-mobile-contact-link, .source-link a, .training-actions a, .gemba-form button, button[type="submit"], input[type="submit"]):hover { background: #7e2c12; color: #fff; }

/* Detail pages stay reachable from the service cards and retain a clear contact path. */
body.enmono-shell-page .service-card > .primary-link { align-self: flex-start; margin-top: auto; }
body.enmono-shell-page .service-card > .service-contact-link { align-self: flex-start; margin-top: 12px; color: var(--enmono-teal); font-weight: 700; }
body.enmono-shell-page main a[href="/consulting/"],
body.enmono-shell-page main a[href="/training/"] { color: var(--enmono-teal); }
body.enmono-shell-page main .service-card > .primary-link { color: #fff; }

.enmono-global-footer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 24px 52px;
  padding: 40px clamp(22px, 5vw, 72px) 22px;
  background: #183d3a;
  color: #fff;
}
.enmono-global-footer a { color: #fff; text-underline-offset: .22em; }
.enmono-footer-main p { margin: 8px 0; }
.enmono-footer-brand { display: inline-block; margin-bottom: 8px; font-size: 19px; font-weight: 800; text-decoration: none; }
.enmono-global-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 20px; }
.enmono-global-footer nav a { font-size: 14px; text-decoration: none; }
.enmono-global-footer nav a:hover { color: #f5b19a; }
.enmono-global-footer small { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #ffffff40; color: #d2ded8; }

.enmono-page-rail {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 900;
  display: grid;
  justify-items: end;
  gap: 8px;
  transform: translateY(-50%);
  font-family: var(--enmono-body);
}
.enmono-page-top-anchor { display: block; width: 1px; height: 1px; scroll-margin-top: 0; }
.enmono-rail-toc > summary,
.enmono-rail-button {
  display: flex;
  min-width: 78px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 77, 41, .55);
  border-radius: 999px;
  background: rgba(27, 24, 19, .96);
  box-shadow: 0 3px 15px rgba(0, 0, 0, .3);
  color: #f5efe8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.enmono-rail-toc > summary::-webkit-details-marker { display: none; }
.enmono-rail-count { color: #eda27c; font-size: 11px; font-variant-numeric: tabular-nums; }
.enmono-rail-button > span:first-child { font-size: 20px; line-height: 1; }
.enmono-rail-toc nav {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  display: grid;
  width: min(320px, calc(100vw - 120px));
  max-height: min(65vh, 560px);
  gap: 2px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(201, 77, 41, .45);
  border-radius: 12px;
  background: rgba(27, 24, 19, .98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .42);
}
.enmono-rail-toc nav a { padding: 9px 10px; border-radius: 7px; color: #f0e9df; font-size: 13px; line-height: 1.5; text-decoration: none; }
.enmono-rail-toc nav a[aria-current="location"],
.enmono-rail-toc nav a:hover { background: rgba(255, 255, 255, .09); }
.enmono-rail-toc[hidden] { display: none; }
.enmono-section-heading { scroll-margin-top: 96px; }

@media (max-width: 1200px) {
  .enmono-global-header { min-height: 64px; justify-content: space-between; gap: 8px; padding: 9px 16px; }
  .enmono-global-brand img { width: min(136px, 36vw); }
  .enmono-global-nav { display: none; }
  .enmono-global-contact { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .enmono-global-menu { display: block; }
  .enmono-global-footer { grid-template-columns: 1fr; gap: 18px; padding: 30px 22px 20px; }
  .enmono-global-footer small { grid-column: 1; }
  .enmono-page-rail { right: 8px; gap: 7px; }
  .enmono-rail-toc > summary, .enmono-rail-button { min-width: 70px; min-height: 38px; padding: 6px 9px; font-size: 12px; }
  .enmono-rail-toc nav { width: min(290px, calc(100vw - 104px)); max-height: 60vh; }
}
@media (max-width: 380px) {
  .enmono-global-header { gap: 6px; padding-inline: 12px; }
  .enmono-global-brand img { width: min(118px, 37vw); }
  .enmono-global-contact { min-height: 42px; padding: 7px 8px; font-size: 12px; }
  .enmono-global-menu > summary { width: 40px; height: 40px; }
  .enmono-page-rail { right: 5px; }
  .enmono-rail-toc > summary, .enmono-rail-button { min-width: 64px; min-height: 36px; padding: 5px 7px; }
}
@media (max-width: 700px) {
  .enmono-page-rail {
    top: auto;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    grid-auto-flow: column;
    grid-template-columns: auto 40px 40px;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border: 1px solid var(--enmono-line);
    border-radius: 999px;
    background: rgba(245, 244, 238, .98);
    box-shadow: 0 2px 10px #183d3a2b;
    transform: none;
    padding: 5px;
    border: 1px solid var(--enmono-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 9px #183d3a24;
  }
  .enmono-rail-toc > summary { min-width: 78px; min-height: 40px; padding: 7px 10px; gap: 6px; }
  .enmono-rail-button { width: 40px; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
  .enmono-rail-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .enmono-rail-toc nav {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(290px, calc(100vw - 24px));
  }
  body.enmono-shell-page footer.enmono-global-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.enmono-rail-toc > summary:hover,
.enmono-rail-button:hover { background: #2b2320; border-color: var(--enmono-orange); color: #ffd9c7; }

/* Business dropdown in the global navigation. */
.enmono-nav-group { position: relative; display: inline-flex; padding-bottom: 14px; margin-bottom: -14px; }
.enmono-nav-dropdown { position: absolute; top: 100%; left: 0; z-index: 950; display: none; min-width: 210px; gap: 2px; padding: 8px; border: 1px solid var(--enmono-line); border-radius: 10px; background: var(--enmono-card); box-shadow: 0 8px 24px #1232; }
.enmono-nav-dropdown a { display: block; padding: 9px 12px; border-radius: 7px; }
.enmono-nav-group:hover .enmono-nav-dropdown,
.enmono-nav-group:focus-within .enmono-nav-dropdown { display: grid; }
.enmono-nav-dropdown a:hover,
.enmono-nav-dropdown a:focus-visible { background: #e7efea; }

/* Unified card CTA, including the Wix-exported top page buttons. */
.enmono-card-cta { display: inline-flex !important; height: 48px !important; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px !important; border: 1px solid var(--enmono-orange); border-radius: 7px; background: var(--enmono-orange); color: #fff !important; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important; font-size: 15px !important; font-weight: 700; line-height: 1 !important; text-align: center; text-decoration: none; box-sizing: border-box; }
.enmono-card-cta:hover { background: #7e2c12; border-color: #7e2c12; color: #fff; }
#comp-mslcdtza a.twJknM,
#comp-msn3aoxt a.twJknM { display: inline-flex !important; height: 48px !important; min-height: 48px !important; align-items: center; justify-content: center; padding: 11px 18px !important; border: 1px solid #c94d29 !important; border-radius: 7px !important; background: #c94d29 !important; color: #fff !important; font-size: 15px !important; font-weight: 700 !important; text-decoration: none !important; }
#comp-mslcdtza a.twJknM:hover,
#comp-msn3aoxt a.twJknM:hover { background: #7e2c12 !important; border-color: #7e2c12 !important; color: #fff !important; }
#comp-mslcdtza .wixui-button__label,
#comp-msn3aoxt .wixui-button__label { color: #fff !important; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
#comp-mslcdtza a.twJknM,
#comp-msn3aoxt a.twJknM { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important; letter-spacing: 0 !important; }
.enmono-card-cta { width: 240px; justify-content: center; }
#comp-mslcoh531 { display: flex !important; flex-direction: column; height: calc(100% - 20px) !important; }
#comp-mslcoh531 > p:has(> a.enmono-card-cta) { margin-top: auto; }
#comp-mslcoh531 > p:has(> span.wixGuard) { display: none; }

/* Top page: make the three card columns fill the strip height so the CTAs share a baseline. */
[data-mesh-id="comp-mslc849binlineContent"], [data-mesh-id="comp-mslcoh4tinlineContent"], [data-mesh-id="comp-msn3aoweinlineContent"],
[data-mesh-id="comp-mslc849binlineContent-gridContainer"], [data-mesh-id="comp-mslcoh4tinlineContent-gridContainer"], [data-mesh-id="comp-msn3aoweinlineContent-gridContainer"] { height: 100%; }
#comp-mslcdtza, #comp-msn3aoxt { align-self: end; height: 48px !important; }
#comp-mslcoh531 { margin-bottom: 20px; }

/* Top card Wix buttons: force the font and label color variables to the site standard. */
#comp-mslcdtza, #comp-msn3aoxt { --fnt: normal normal 700 15px/1.2 "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; --txt: 255,255,255; }
/* Normalize the photo-to-heading gap across the three top cards. */
#comp-mslcl92b, #comp-mslcoh576, #comp-msn3aowr { margin-bottom: 11px; }

/* Middle card button: win against the rich-text link styles for good. */
#comp-mslcoh531 a.enmono-card-cta { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important; color: #fff !important; }
/* Equalize the three top-card containers so all buttons share one bottom line. */
[data-mesh-id="comp-mslc849binlineContent-gridContainer"], [data-mesh-id="comp-msn3aoweinlineContent-gridContainer"] { min-height: 649px; }
