/* Shared service navigation. Keep all component rules inside its header scope. */
html:root {
  scroll-padding-top: calc(var(--sr-header-height, 120px) + 16px);
}

[data-sr-header] {
  height: auto;
  overflow: visible;
}

/* Keep an expanded menu above the mobile LINE bar on short screens. */
[data-sr-header]:has(.sr-services__toggle[aria-expanded="true"]) {
  z-index: 100;
}

/* The SNS page's existing menu must also clear the new service bar. */
[data-sr-header] details.mobile-nav {
  position: static;
}

[data-sr-header] details.mobile-nav > nav {
  top: 100%;
  right: 16px;
  max-height: calc(100dvh - var(--sr-header-height, 120px) - 12px);
  overflow: auto;
}

[data-sr-header] nav.sr-services {
  position: static;
  display: block !important;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #e5e9ef;
  border-radius: 0;
  background: #fff;
  color: #253247;
  box-shadow: none;
  font: 400 14px/1.5 "Noto Sans JP", sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

[data-sr-header] nav.sr-services,
[data-sr-header] nav.sr-services * {
  box-sizing: border-box;
}

[data-sr-header] nav.sr-services :where(p, strong, small, button, a) {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

[data-sr-header] nav.sr-services :where(button, a) {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

[data-sr-header] nav.sr-services :where(a, button)::before,
[data-sr-header] nav.sr-services :where(a, button)::after {
  content: none;
}

[data-sr-header] nav.sr-services .sr-services__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

[data-sr-header] nav.sr-services .sr-services__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: none;
  min-height: 40px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

[data-sr-header] nav.sr-services .sr-services__chevron {
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 0;
  padding: 0;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: none;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

[data-sr-header] nav.sr-services .sr-services__toggle[aria-expanded="true"] .sr-services__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

[data-sr-header] nav.sr-services .sr-services__home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 40px;
  padding: 0 4px;
  border-radius: 4px;
  color: #536073;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

[data-sr-header] nav.sr-services .sr-services__home:hover {
  color: #253247;
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-sr-header] nav.sr-services .sr-services__panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  right: 0;
  left: 0;
  display: block;
  width: auto;
  max-height: calc(100vh - var(--sr-header-height, 120px) - 12px);
  max-height: calc(100dvh - var(--sr-header-height, 120px) - 12px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-top: 1px solid #e5e9ef;
  border-bottom: 1px solid #dce2eb;
  border-radius: 0;
  background: #fff;
  color: #253247;
  box-shadow: 0 14px 24px rgb(28 42 64 / 10%);
}

[data-sr-header] nav.sr-services .sr-services__panel[hidden] {
  display: none !important;
}

[data-sr-header] nav.sr-services .sr-services__panel-inner {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0 22px;
}

[data-sr-header] nav.sr-services .sr-services__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 0;
}

[data-sr-header] nav.sr-services .sr-services__intro p {
  display: block;
  margin: 0;
  color: #536073;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

[data-sr-header] nav.sr-services .sr-services__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  background: #fff;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

[data-sr-header] nav.sr-services .sr-services__close:hover,
[data-sr-header] nav.sr-services .sr-services__toggle:hover {
  background: #f3f6fa;
}

[data-sr-header] nav.sr-services .sr-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

[data-sr-header] nav.sr-services .sr-services__link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fff;
  color: #253247;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

[data-sr-header] nav.sr-services .sr-services__link:hover,
[data-sr-header] nav.sr-services .sr-services__link[aria-current="page"] {
  border-color: #c6d3e7;
  background: #f3f6fb;
  text-decoration: none;
}

[data-sr-header] nav.sr-services .sr-services__link > span {
  min-width: 0;
  margin: 0;
  padding: 0;
}

[data-sr-header] nav.sr-services .sr-services__link strong {
  display: block;
  margin: 2px 0 0;
  color: #253247;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

[data-sr-header] nav.sr-services .sr-services__link small {
  display: block;
  margin: 0;
  color: #606d7e;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

[data-sr-header] nav.sr-services .sr-services__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #edf2fa;
  color: #41618c;
}

[data-sr-header] nav.sr-services .sr-services__icon svg {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
}

[data-sr-header] nav.sr-services [data-service="solopress"] .sr-services__icon { background: #f1ebfa; color: #72509c; }
[data-sr-header] nav.sr-services [data-service="solosite"] .sr-services__icon { background: #e5f4f3; color: #286f70; }
[data-sr-header] nav.sr-services [data-service="sololine"] .sr-services__icon { background: #edf5e9; color: #45743b; }
[data-sr-header] nav.sr-services [data-service="solosocial"] .sr-services__icon { background: #fff0e8; color: #a55636; }
[data-sr-header] nav.sr-services [data-service="soloads"] .sr-services__icon { background: #eaf0ff; color: #375bbb; }
[data-sr-header] nav.sr-services [data-service="soloskillhack"] .sr-services__icon { background: #fff5dc; color: #87671d; }

[data-sr-header] nav.sr-services .sr-services__arrow {
  display: block;
  align-self: center;
  width: 18px;
  color: #657286;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

[data-sr-header] nav.sr-services :where(a, button):focus-visible {
  outline: 3px solid #315dd0;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  [data-sr-header] nav.sr-services .sr-services__bar,
  [data-sr-header] nav.sr-services .sr-services__panel-inner {
    width: calc(100% - 32px);
  }

  [data-sr-header] nav.sr-services .sr-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  [data-sr-header] nav.sr-services .sr-services__link {
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
  }

  [data-sr-header] nav.sr-services .sr-services__link strong {
    font-size: 13px;
  }

  [data-sr-header] nav.sr-services .sr-services__panel-inner {
    padding-top: 12px;
    padding-bottom: 16px;
  }
}

@media (max-width: 420px) {
  [data-sr-header] nav.sr-services .sr-services__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-sr-header] nav.sr-services .sr-services__bar {
    gap: 10px;
  }

  [data-sr-header] nav.sr-services .sr-services__home {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-sr-header] nav.sr-services .sr-services__chevron,
  [data-sr-header] nav.sr-services .sr-services__link {
    transition: none;
  }
}
