:root {
  --nc-header-accent: #eb6120;
  --nc-header-brown: #382712;
  --nc-header-submenu: #b98d4a;
  --nc-sidebar-width: 320px;
  --nc-topbar-height: 76px;
  --nc-admin-bar-height: 0px;
}

body.admin-bar {
  --nc-admin-bar-height: 32px;
}

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

@media (min-width: 1020px) {
  body {
    padding-left: var(--nc-sidebar-width);
  }

  /*
   * SANGOの .wrap は大画面用の固定幅を持つため、固定サイドヘッダー分を
   * 差し引いた表示領域より広くならないよう本文ラッパーを制限する。
   */
  .content > .inner-content.wrap {
    max-width: 100%;
  }

  .nc-site-header__sidebar {
    position: fixed;
    z-index: 1001;
    inset: var(--nc-admin-bar-height) auto 0 0;
    width: var(--nc-sidebar-width);
    overflow-y: auto;
    border-top: 2px solid var(--nc-header-accent);
    border-right: 1px solid var(--nc-header-accent);
    background: #fff;
  }

  .nc-site-header__topbar {
    position: fixed;
    z-index: 1000;
    top: var(--nc-admin-bar-height);
    right: 0;
    left: var(--nc-sidebar-width);
    min-height: var(--nc-topbar-height);
    border-top: 2px solid var(--nc-header-accent);
    border-bottom: 1px solid var(--nc-header-accent);
    background: #fff;
  }

  .nc-global-nav__list {
    display: flex;
    max-width: 900px;
    min-height: calc(var(--nc-topbar-height) - 3px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  .nc-global-nav__list > .menu-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
  }

  .nc-global-nav__list > .menu-item + .menu-item::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    border-left: 2px dotted #c4c4c4;
    content: "";
  }

  .nc-global-nav__list > .menu-item > a {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 24px 10px 16px;
    color: var(--nc-header-brown);
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .nc-global-nav__list > .menu-item > a::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--nc-header-accent);
    border-right: 1px solid var(--nc-header-accent);
    content: "";
    transform: translateY(-50%) rotate(45deg);
  }

  .nc-global-nav__list > .menu-item:hover > a,
  .nc-global-nav__list > .current-menu-item > a,
  .nc-global-nav__list > .current-menu-ancestor > a {
    color: var(--nc-header-accent);
  }

  .nc-global-nav__subtitle {
    display: block;
    margin-top: 4px;
    color: #888;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 400;
  }

  .nc-global-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 250px;
    margin: 0;
    padding: 10px 0 0;
    visibility: hidden;
    opacity: 0;
    list-style: none;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .nc-global-nav .menu-item:hover > .sub-menu,
  .nc-global-nav .menu-item:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .nc-global-nav .sub-menu::before {
    position: absolute;
    top: 0;
    left: 50%;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--nc-header-submenu);
    border-left: 10px solid transparent;
    content: "";
    transform: translateX(-50%);
  }

  .nc-global-nav .sub-menu a {
    display: block;
    padding: 12px 20px 12px 36px;
    border-bottom: 1px solid rgb(255 255 255 / 70%);
    background: var(--nc-header-submenu);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  .nc-global-nav .sub-menu a:hover,
  .nc-global-nav .sub-menu a:focus-visible {
    background: #a77c3d;
  }

  body .nc-site-header + *,
  body .nc-site-header + #content,
  body .nc-site-header + #main {
    margin-top: var(--nc-topbar-height);
  }

  body:not(.home) .nc-site-header + #content {
    margin-top: var(--nc-topbar-height);
    padding-top: 32px;
  }

  .nc-menu-toggle,
  .nc-mobile-menu {
    display: none;
  }
}

.nc-site-header__brand {
  padding: 24px 20px 10px;
}

.nc-site-header__shop,
.nc-site-header__company {
  display: flex;
  align-items: center;
  color: var(--nc-header-brown);
  line-height: 1;
  text-decoration: none;
}

.nc-site-header__shop {
  gap: 10px;
  margin-bottom: 20px;
}

.nc-site-header__shop span {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nc-site-header__shop strong {
  font-size: 20px;
}

.nc-site-header__company {
  gap: 14px;
  padding-left: 10px;
}

.nc-site-header__company strong {
  font-size: 18px;
}

.nc-site-header__divider {
  display: block;
  height: 5px;
  margin-bottom: 24px;
  background: repeating-linear-gradient(135deg, transparent 0 2px, var(--nc-header-accent) 4px);
}

.nc-header-cta {
  padding: 0 20px 24px;
}

.nc-header-cta__title,
.nc-header-cta__hours {
  margin: 0;
  color: var(--nc-header-brown);
  text-align: center;
}

.nc-header-cta__title {
  font-size: 16px;
  font-weight: 700;
}

.nc-header-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--nc-header-accent);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.nc-header-cta__hours {
  font-size: 13px;
}

.nc-header-cta__buttons {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.nc-header-cta__banner {
  display: block;
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .2s ease;
}

.nc-header-cta__banner:hover {
  opacity: .85;
}

.nc-header-cta__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.nc-header-cta__button {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 4px 2px rgb(0 0 0 / 10%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.nc-header-cta__button img {
  flex: 0 0 42px;
  max-width: 30px;
  margin-right: 12px;
  padding-right: 10px;
  border-right: 2px dotted #fff;
  box-sizing: content-box;
}

.nc-header-cta__button--mail {
  background: var(--nc-header-accent);
}

.nc-header-cta__button--line {
  background: #39ad36;
}

.nc-header-cta__button--flyer {
  background: #48b5d0;
}

@media (max-width: 1019px) {
  .nc-site-header {
    position: relative;
    z-index: 1000;
    background: #fff;
  }

  .nc-site-header__sidebar {
    min-height: 72px;
    border-bottom: 1px solid var(--nc-header-accent);
  }

  .nc-site-header__brand {
    display: flex;
    min-height: 72px;
    align-items: center;
    padding: 8px 64px;
    box-sizing: border-box;
  }

  .nc-site-header__shop {
    display: none;
  }

  .nc-site-header__divider {
    display: none;
  }

  .nc-site-header__company {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    gap: 10px;
    padding: 0;
  }

  .nc-site-header__company img {
    width: 24px;
    height: 40px;
  }

  .nc-site-header__company strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .nc-header-cta,
  .nc-global-nav {
    display: none;
  }

  .nc-site-header__topbar {
    position: absolute;
    top: 0;
    right: 0;
  }

  .nc-menu-toggle {
    display: flex;
    width: 64px;
    min-height: 72px;
    padding: 10px 8px;
    border: 0;
    background: var(--nc-header-accent);
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .nc-menu-toggle__lines,
  .nc-menu-toggle__lines::before,
  .nc-menu-toggle__lines::after {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
  }

  .nc-menu-toggle__lines {
    position: relative;
  }

  .nc-menu-toggle__lines::before,
  .nc-menu-toggle__lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nc-menu-toggle__lines::before {
    top: -8px;
  }

  .nc-menu-toggle__lines::after {
    top: 8px;
  }

  .nc-menu-toggle__label {
    font-size: 11px;
  }

  .nc-mobile-menu {
    position: fixed;
    z-index: 1100;
    inset: var(--nc-admin-bar-height) 0 0;
    background: rgb(0 0 0 / 45%);
  }

  .nc-mobile-menu__panel {
    width: min(88vw, 380px);
    height: 100%;
    margin-left: auto;
    overflow-y: auto;
    background: #fff;
  }

  .nc-mobile-menu__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 20px;
    background: var(--nc-header-accent);
    color: #fff;
  }

  .nc-mobile-menu__close {
    padding: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 30px;
    line-height: 1;
  }

  .nc-mobile-menu__list,
  .nc-mobile-menu__list .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nc-mobile-menu__list > .menu-item > a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #fff;
    background: var(--nc-header-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .nc-mobile-menu .nc-global-nav__subtitle {
    display: none;
  }

  .nc-mobile-menu__list .sub-menu a {
    display: block;
    padding: 12px 20px 12px 38px;
    border-bottom: 1px solid rgb(255 255 255 / 70%);
    background: var(--nc-header-submenu);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
  }

  .nc-mobile-menu__cta {
    display: grid;
    gap: 10px;
    padding: 20px;
  }

  .nc-mobile-menu__cta a {
    padding: 13px;
    border: 2px solid var(--nc-header-accent);
    border-radius: 6px;
    color: var(--nc-header-accent);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  body.nc-menu-open {
    overflow: hidden;
  }
}

.nc-site-header a:focus-visible,
.nc-site-header button:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}
