/* Shared floating navigation. The page content remains visible beneath it. */
body.has-adaptive-header .main-header,
body.has-adaptive-header .sp.header,
body.has-adaptive-header > .header { display: none !important; }
.adaptive-header {
  position: fixed;
  z-index: 10010;
  inset: 0 0 auto;
  height: 84px;
  color: #fff;
  background: transparent;
  mix-blend-mode: difference;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
}
.adaptive-header__inner {
  box-sizing: border-box;
  position: relative;
  height: 100%;
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.adaptive-header__brand { display: flex; align-items: center; flex: none; }
.adaptive-header__brand img {
  display: block;
  width: clamp(174px, 17vw, 235px);
  height: auto;
}
.adaptive-header__nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 42px); }
.adaptive-header, .adaptive-header__nav {
  font-feature-settings: normal;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
}
.adaptive-header a, .adaptive-header__nav a { color: inherit; text-decoration: none; }
.adaptive-header__nav > a, .adaptive-header__business > a {
  position: relative;
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  line-height: 84px;
}
.adaptive-header__business { position: relative; }
/* This outline must sit outside the difference blend to remain dark on gray. */
.adaptive-header--contrast {
  mix-blend-mode: normal;
  pointer-events: none;
}
.adaptive-header--contrast .adaptive-header__brand,
.adaptive-header--contrast .adaptive-header__toggle { visibility: hidden; }
.adaptive-header--contrast a {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .5px #15202b;
  filter: drop-shadow(0 0 .6px rgba(255,255,255,.85));
}
.adaptive-header__submenu {
  position: fixed;
  z-index: 10011;
  width: 250px;
  max-width: calc(100vw - 40px);
  padding: 18px 18px 8px;
  background: rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  color: #1d1d1f;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(12,24,36,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.adaptive-header__submenu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.adaptive-header__submenu-label { margin: 0 0 8px; color: #353b43; font-size: 9px; letter-spacing: .16em; font-weight: 500; }
.adaptive-header__submenu a { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: #1d1d1f; text-decoration: none; line-height: 1.5; border-radius: 0; transition: background .2s; }
.adaptive-header__submenu a + a { border-top: 1px solid rgba(29,29,31,.09); }
.adaptive-header__submenu a:hover, .adaptive-header__submenu a:focus-visible { opacity: 1; background: rgba(255,255,255,.16); outline-offset: -2px; }
.adaptive-header__submenu strong { display: block; color: #1d1d1f; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.business-number { color: #4d5863; font-size: 9px; font-weight: 400; }
.business-arrow { margin-left: auto; color: #353b43; font-size: 16px; transition: transform .2s; }
.adaptive-header__submenu a:hover .business-arrow,
.adaptive-header__submenu a:focus-visible .business-arrow { transform: translate(2px, -2px); }
.adaptive-header__toggle { display: none; }
@media (min-width: 901px) and (max-width: 1100px) {
  .adaptive-header__inner { padding: 0 24px; gap: 24px; }
  .adaptive-header__nav { gap: 18px; }
}
@media (max-width: 900px) {
  .adaptive-header--contrast { display: none; }
  .adaptive-header { height: 72px; }
  .adaptive-header__inner { padding: 0 22px; }
  .adaptive-header__brand img { width: 188px; }
  .adaptive-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .adaptive-header__toggle span {
    display: block; height: 2px; width: 26px; background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }
  .adaptive-header.is-open .adaptive-header__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .adaptive-header.is-open .adaptive-header__toggle span:nth-child(2) { opacity: 0; }
  .adaptive-header.is-open .adaptive-header__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .adaptive-header__nav {
    display: none;
    position: fixed;
    z-index: 10009;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    max-height: 100dvh;
    overflow: auto;
    padding: 96px 24px 24px;
    background: rgba(8, 13, 20, .78);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    gap: 6px;
  }
  .adaptive-header__nav.is-open { display: flex; }
  .adaptive-header__nav > a, .adaptive-header__business > a { display: block; line-height: 1.5; padding: 15px 0; font-size: 21px; }
  .adaptive-header__business > a { display: none; }
  .adaptive-header__submenu {
    position: static; width: 100%; max-width: none; visibility: visible; opacity: 1; transform: none;
    margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .adaptive-header__submenu a { justify-content: center; padding: 15px 0; }
  .adaptive-header__submenu .business-number,
  .adaptive-header__submenu .business-arrow { display: none; }
  .adaptive-header__submenu a + a { border-top: 0; }
  .adaptive-header__submenu strong { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: .08em; }
  /* 全項目の行間を揃える（下方の共通 padding:0 指定より優先させるため body を付与） */
  .adaptive-header__nav { gap: 0; }
  body .adaptive-header__nav > a { padding: 10px 0; }
  .adaptive-header__submenu a { padding: 10px 0; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .adaptive-header__nav { background: rgba(8, 13, 20, .94); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .adaptive-header__submenu, .business-arrow { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .adaptive-header__submenu { background: #f5f7fa; }
}
/* Preserve inverted lettering and lift it subtly on hover or keyboard focus. */
.adaptive-header__nav > a, .adaptive-header__business > a {
  box-sizing: border-box;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  padding: 0;
  margin: 0;
  transition: transform .2s ease;
}
.adaptive-header--contrast .adaptive-header__nav > a,
.adaptive-header--contrast .adaptive-header__business > a {
  transition: transform .2s ease, filter .25s ease;
}
.adaptive-header--contrast a.is-lifted {
  filter: drop-shadow(0 0 1px #fff)
          drop-shadow(0 0 3px #fff)
          drop-shadow(0 0 6px rgba(255,255,255,.9));
}
.adaptive-header__nav > a.is-lifted,
.adaptive-header__business > a.is-lifted { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .adaptive-header__nav > a, .adaptive-header__business > a {
    transition: none;
    transform: none;
  }
  .adaptive-header--contrast .adaptive-header__nav > a,
  .adaptive-header--contrast .adaptive-header__business > a { transition: none; }
}
/* Desktop BUSINESS menu opens as a compact white circle. */
@media (min-width: 901px) {
  .adaptive-header__submenu {
    z-index: 10009;
    box-sizing: border-box;
    width: 200px;
    height: 200px;
    padding: 58px 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(12,24,36,.08);
    transform: scale(.8);
    transform-origin: 50% 0;
    transition: opacity .22s ease, visibility .22s, transform .28s cubic-bezier(.2,.7,.2,1);
  }
  .adaptive-header__submenu.is-visible { transform: scale(1); }
  .adaptive-header__submenu-label {
    text-align: center;
    font-size: 8px;
    letter-spacing: .18em;
    color: #72777d;
    margin-bottom: 8px;
  }
  .adaptive-header__submenu a {
    justify-content: center;
    min-height: 36px;
    padding: 9px 0;
    border: 0;
    background: transparent;
    transition: transform .2s ease;
  }
  .adaptive-header__submenu a + a { border: 0; }
  .adaptive-header__submenu strong { font-size: 13px; letter-spacing: .04em; }
  .adaptive-header__submenu .business-number,
  .adaptive-header__submenu .business-arrow { display: none; }
  .adaptive-header__submenu a:hover,
  .adaptive-header__submenu a:focus-visible {
    background: transparent;
    transform: translateY(-2px);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adaptive-header__submenu, .adaptive-header__submenu a { transition: none; }
}
