@charset "UTF-8";

/* ========================================================
   法人向けPCサービス 共通ヘッダ : scoped styles
   全セレクタを .p-houjin-header 配下に限定する
   ======================================================== */
.content-asset:has(.p-houjin-header){
  display: contents;
}
.p-houjin-header {
  --hh-brand: #004da1;
  --hh-brand-grad: #0078c4;
  --hh-text: #222222;
  --hh-text-sub: #555555;
  --hh-line: #eaeaea;
  --hh-focus: #003366;
  --hh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  color: var(--hh-text);
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hh-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-font-smoothing: antialiased;
}

.p-houjin-header *,
.p-houjin-header *::before,
.p-houjin-header *::after {
  box-sizing: border-box;
}

.p-houjin-header :where(p, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-houjin-header__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-houjin-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  height: 60px;
  margin: 0 auto;
  padding: 0 20px;
}

.p-houjin-header__logo {
  flex-shrink: 0;
}

.p-houjin-header__logo-img {
  display: block;
  width: auto;
  height: 26px;
}

.p-houjin-header__subtitle {
  display: none;
}

.p-houjin-header__nav {
  margin-left: auto;
}

.p-houjin-header__nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-houjin-header__nav-item--text {
  display: none;
}

.p-houjin-header__nav-link {
  color: var(--hh-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.p-houjin-header__nav-link:hover {
  color: var(--hh-brand);
  text-decoration: underline;
}

.p-houjin-header__nav-link:focus-visible,
.p-houjin-header__btn:focus-visible {
  outline: 3px solid var(--hh-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.p-houjin-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--hh-brand-grad), var(--hh-brand));
  box-shadow: 0 4px 12px rgba(0, 77, 161, 0.2);
  transition: transform 0.2s var(--hh-ease), box-shadow 0.2s var(--hh-ease), filter 0.2s;
}

.p-houjin-header__btn:hover {
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 77, 161, 0.15);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.p-houjin-header__btn:focus-visible {
  border-radius: 8px;
}

@media (min-width: 768px) {
  .p-houjin-header__inner {
    gap: 20px;
    height: 72px;
  }

  .p-houjin-header__logo-img {
    height: 30px;
  }

  /* 768〜1023px では「・」の位置で2行に折り返す */
  .p-houjin-header__subtitle {
    display: block;
    padding-left: 20px;
    border-left: 1px solid var(--hh-line);
    color: var(--hh-text-sub);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
  }

  .p-houjin-header__nav-item--text {
    display: block;
  }

  .p-houjin-header__btn {
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .p-houjin-header__subtitle {
    font-size: 13px;
  }

  .p-houjin-header__nav-list {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-houjin-header__btn {
    transition: none;
  }

  .p-houjin-header__btn:hover {
    transform: none;
  }
}
