@import url("/nichiyo-extension/brand.css");
/* NICHIYO website additive header. Scoped to injected nch-* classes. */
.nch-nav-host {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  isolation: isolate;
  overflow: visible !important;
}
.nch-nav-host .nch-header-surface {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  width: 100dvw;
  transform: translateX(-50%);
  background: #f7f3ee;
  border-bottom: 1px solid rgba(112, 92, 73, .17);
  pointer-events: none;
  z-index: -1;
}
.nch-nav-host .nch-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.nch-nav-host .nch-brand > a { flex-shrink: 0; }
.nch-nav-host .nch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 5px;
  margin: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  color: #25221f;
  -webkit-tap-highlight-color: transparent;
}
.nch-nav-host .nch-toggle:hover { background: rgba(119,94,76,.07); }
.nch-nav-host .nch-toggle:focus-visible, .nch-nav-host .nch-panel a:focus-visible {
  outline: 2px solid #82634e;
  outline-offset: 3px;
}
.nch-nav-host .nch-burger { position: relative; width: 18px; height: 13px; display: block; }
.nch-nav-host .nch-burger i { display: block; width: 18px; height: 1px; position: absolute; left: 0; top: 1px; background: currentColor; transition: top .22s ease, transform .22s ease, opacity .22s ease; }
.nch-nav-host .nch-burger i:nth-child(2) { top: 6px; }
.nch-nav-host .nch-burger i:nth-child(3) { top: 11px; }
.nch-nav-host .nch-toggle[aria-expanded="true"] .nch-burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nch-nav-host .nch-toggle[aria-expanded="true"] .nch-burger i:nth-child(2) { opacity: 0; }
.nch-nav-host .nch-toggle[aria-expanded="true"] .nch-burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nch-nav-host .nch-panel {
  box-sizing: border-box;
  display: block !important;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: min(330px, calc(100vw - 34px));
  padding: 25px 25px 17px;
  background: #fffcf8;
  border: 1px solid #e7ded3;
  border-radius: 3px;
  box-shadow: 0 18px 52px rgba(49,31,19,.13);
  text-align: left;
  z-index: 150;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans TC', 'PingFang TC', 'Hiragino Sans', sans-serif;
}
.nch-nav-host .nch-panel[hidden] { display: none !important; }
.nch-nav-host .nch-panel .nch-kicker { margin: 0 0 16px; color: #927d6b; font-size: 10px; letter-spacing: .22em; font-weight: 650; }
.nch-nav-host .nch-panel a { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px; border-top: 1px solid #eae2db; text-decoration: none !important; color: #24211f !important; background: transparent !important; transition: padding-left .2s ease; }
.nch-nav-host .nch-panel a:hover { padding-left: 9px; }
.nch-nav-host .nch-panel .nch-name { display: block; font-size: 17px; font-weight: 560; letter-spacing: .07em; line-height: 1.4; }
.nch-nav-host .nch-panel .nch-english { display: block; margin-top: 4px; color: #93887c; letter-spacing: .14em; font-size: 9px; line-height: 1.4; }
.nch-nav-host .nch-panel .nch-arrow { font-size: 20px; color: #806b5b; line-height: 1; }
@media (max-width: 760px) {
  .nch-nav-host .nch-brand { gap: 10px; }
  .nch-nav-host .nch-panel { top: calc(100% + 11px); left: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .nch-nav-host .nch-burger i, .nch-nav-host .nch-panel a { transition: none; }
}

/* Override the original header's palette/transparency rules only. */
html body .header.nch-nav-host {
  position: sticky !important;
  top: 0 !important;
  background: #f7f3ee !important;
  color: #25221f !important;
  z-index: 900 !important;
}
html body .header.nch-nav-host > nav a,
html body .header.nch-nav-host .logo,
html body .header.nch-nav-host .logo-text-mark,
html body .header.nch-nav-host .lang-switch button {
  color: #25221f !important;
}
html body .header.nch-nav-host .lang-switch span { color: #82786f !important; }
html body .header.nch-nav-host .lang-switch button.active { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  html body :is(#services, #works, #studio, #contact) { scroll-margin-top: 160px; }
}
@media (max-width: 760px) {
  html body .header.nch-nav-host .nch-brand { align-self: flex-start; }
}

.nch-mobile-toggle { display: none; }
@media (max-width: 760px) {
  html body .header.nch-nav-host .nch-brand { width: 100%; justify-content: center; }
  html body .header.nch-nav-host .nch-brand > .logo,
  html body .header.nch-nav-host .nch-toggle { display: none !important; }
  html body .header.nch-nav-host .nch-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 14px; border: 0; background: transparent;
    color: #25221f; font: inherit; font-size: 16px; font-weight: 760;
    letter-spacing: .24em; cursor: pointer;
  }
  .nch-mobile-toggle:focus-visible { outline: 2px solid #82634e; outline-offset: 3px; }
  html body .header.nch-nav-host .nch-panel { left: 50%; transform: translateX(-50%); }
}
