/* ==========================================================================
   共通ヘッダー（全ページ）
   ========================================================================== */
.telecore-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4.6vw, 84px);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

.telecore-header .brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.telecore-header .brand img {
  display: block;
  width: clamp(165px, 16vw, 244px);
  max-height: 66px;
  object-fit: contain;
}

.telecore-header .tagline {
  border-left: 1px solid rgba(0, 52, 97, .20);
  padding-left: 18px;
  color: #254f75;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .07em;
}

.telecore-header nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 1px;
}

.telecore-header nav a {
  color: #003461;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: clamp(78px, 6.5vw, 99px);
  padding: 0 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-shadow: 0 1px 5px #fff;
  position: relative;
}

.telecore-header nav a span {
  font-size: 9px;
  color: #526f86;
  font-weight: 500;
  letter-spacing: .06em;
  margin-top: 5px;
}

.telecore-header nav a.active {
  color: #008ac5;
}

.telecore-header nav a.active::after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  background: var(--gold);
}

@media (max-width: 1190px) {
  .telecore-header .tagline {
    display: none;
  }

  .telecore-header nav a {
    min-width: auto;
    padding: 0 9px;
    font-size: 12px;
  }
}

@media (max-width: 850px) {
  .telecore-header {
    height: 78px;
    padding: 0 18px;
  }

  .telecore-header .brand img {
    width: 170px;
  }

  .telecore-header nav {
    overflow-x: auto;
    max-width: 67%;
    gap: 0;
  }

  .telecore-header nav a {
    min-width: 80px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .telecore-header {
    height: auto;
    min-height: 70px;
    display: block;
    padding: 10px 14px 0;
  }

  .telecore-header .brand img {
    width: 168px;
  }

  .telecore-header nav {
    max-width: 100%;
    height: 48px;
    width: 100%;
    overflow-x: auto;
  }

  .telecore-header nav a {
    min-width: 84px;
  }
}

.telecore-header nav {
  align-items: center;
  gap: clamp(1px, .3vw, 7px);
}

.telecore-header nav > a:not(.search-cta) {
  align-self: stretch;
}

.telecore-header nav a.search-cta {
  min-width: 142px;
  height: 51px;
  align-self: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 9px;
  padding: 6px 12px;
  margin-left: 12px;
  color: #fff;
  background: linear-gradient(120deg, #0076b1, #004c84);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  box-shadow: 0 5px 16px rgba(0, 42, 85, .20);
  text-shadow: none;
  transition: background .2s, box-shadow .2s, transform .2s;
}

.telecore-header nav a.search-cta svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.telecore-header nav a.search-cta b {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  font-size: 12px;
  letter-spacing: .03em;
}

.telecore-header nav a.search-cta small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #ccebf8;
  margin-top: 4px;
}

.telecore-header nav a.search-cta em {
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  color: #ffd27a;
  margin-left: 2px;
}

.telecore-header nav a.search-cta:hover {
  color: #fff;
  background: linear-gradient(120deg, #008ac7, #00588f);
  box-shadow: 0 7px 19px rgba(0, 42, 85, .28);
  transform: translateY(-1px);
}

@media (max-width: 1190px) {
  .telecore-header nav a.search-cta {
    margin-left: 5px;
    min-width: 126px;
    height: 46px;
    padding: 5px 9px;
  }

  .telecore-header nav a.search-cta em {
    display: none;
  }
}

@media (max-width: 850px) {
  .telecore-header nav {
    max-width: 78%;
    gap: 1px;
  }

  .telecore-header nav a.search-cta {
    min-width: 112px;
    margin-left: 6px;
  }

  .telecore-header nav a.search-cta b {
    font-size: 11px;
  }

  .telecore-header nav a.search-cta small {
    font-size: 7px;
  }
}

@media (max-width: 700px) {
  .telecore-header nav {
    max-width: 100%;
    width: 100%;
    height: 56px;
    justify-content: space-between;
    overflow-x: auto;
  }

  .telecore-header nav a:not(.search-cta) {
    min-width: 66px;
    padding: 0 4px;
    font-size: 10px;
  }

  .telecore-header nav a.search-cta {
    min-width: 108px;
    flex: none;
    margin-left: 3px;
    height: 41px;
  }

  .telecore-header nav a.search-cta svg {
    width: 15px;
    height: 15px;
  }
}

.telecore-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.telecore-header.header-scrolled {
  background: rgba(245, 251, 255, .94);
  border-bottom: 1px solid rgba(0, 72, 125, .12);
  box-shadow: 0 5px 22px rgba(0, 45, 83, .13);
  /* backdrop-filter を使うと、Chromium でスマホメニュー（position: fixed）の基準がヘッダーになるため使用しない */
}

@media (prefers-reduced-motion: reduce) {
  .telecore-header {
    transition: none;
  }
}

body:not(.telecore-home) .telecore-header {
  background: rgba(244, 252, 255, .94);
}

@media (max-width: 1050px) {
  body:not(.telecore-home) .telecore-header .tagline {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   ナビゲーションのホバー
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .telecore-header nav > a:not(.search-cta) {
    transition: color .2s ease;
  }

  .telecore-header nav > a:not(.search-cta)::before {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 2px;
    background: #008ac5;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
  }

  .telecore-header nav > a:not(.search-cta):hover {
    color: #008ac5;
  }

  .telecore-header nav > a:not(.search-cta):not(.active):hover::before {
    transform: scaleX(1);
  }

  .telecore-header nav > a:not(.search-cta):hover span {
    color: #0076b1;
  }
}

/* --------------------------------------------------------------------------
   キーボード操作時のフォーカス表示
   -------------------------------------------------------------------------- */
.telecore-header nav a:focus-visible {
  outline: 2px solid #008ac5;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .telecore-header nav > a:not(.search-cta),
  .telecore-header nav > a:not(.search-cta)::before {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   スマホメニュー（850px 以下）
   -------------------------------------------------------------------------- */
.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 850px) {
  .telecore-header,
  body:not(.telecore-home) .telecore-header {
    height: 70px;
    min-height: 70px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(245, 251, 255, .98);
    border-bottom: 1px solid rgba(0, 72, 125, .14);
  }

  .telecore-header .brand img {
    width: min(45vw, 170px);
    max-height: 55px;
  }

  .telecore-header .tagline {
    display: none;
  }

  .telecore-header .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1004;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #b7d6e8;
    border-radius: 8px;
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #003461;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid #008ac5;
    outline-offset: 3px;
  }

  .mobile-menu-toggle-lines {
    display: flex;
    width: 23px;
    height: 19px;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobile-menu-toggle-lines span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
  }

  .telecore-header.is-menu-open .mobile-menu-toggle-lines span:first-child {
    transform: translateY(8.5px) rotate(45deg);
  }

  .telecore-header.is-menu-open .mobile-menu-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .telecore-header.is-menu-open .mobile-menu-toggle-lines span:last-child {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .telecore-header nav {
    position: fixed;
    z-index: 1002;
    top: 70px;
    right: 0;
    bottom: 0;
    left: auto;
    box-sizing: border-box;
    width: min(88vw, 370px);
    max-width: none;
    height: auto;
    max-height: none;
    padding: 16px 24px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fbfdff;
    box-shadow: -8px 8px 28px rgba(0, 42, 85, .12);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, visibility .25s ease;
  }

  .telecore-header.is-menu-open nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .telecore-header nav > a:not(.search-cta),
  .telecore-header nav > a.search-cta {
    box-sizing: border-box;
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-self: stretch;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 61px;
    min-height: 61px;
    margin: 0;
    padding: 0 25px 0 2px;
    border: 0;
    border-bottom: 1px solid #dce9f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #003461;
    text-shadow: none;
    font-size: 16px;
    font-weight: 700;
    white-space: normal;
    transform: none;
    transition: color .2s ease, background-color .2s ease;
  }

  .telecore-header nav > a span,
  .telecore-header nav > a.search-cta svg,
  .telecore-header nav > a.search-cta small,
  .telecore-header nav > a.search-cta em {
    display: none;
  }

  .telecore-header nav > a.search-cta b {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .telecore-header nav > a::after,
  .telecore-header nav > a.active::after {
    content: '›';
    position: absolute;
    left: auto;
    right: 5px;
    bottom: auto;
    top: 50%;
    height: auto;
    width: auto;
    background: none;
    color: #d6a11f;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
  }

  .telecore-header nav > a.active {
    color: #008ac5;
  }

  .telecore-header nav > a:hover,
  .telecore-header nav > a.search-cta:hover {
    color: #0076b1;
    background: #ecf7fd;
    box-shadow: none;
    transform: none;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    z-index: 999;
    inset: 70px 0 0;
    background: rgba(5, 29, 53, .35);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .mobile-menu-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

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

  .product-page {
    padding-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .telecore-header nav,
  .mobile-menu-backdrop,
  .mobile-menu-toggle-lines span {
    transition: none;
  }
}
