.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  transition: background 1s ease, backdrop-filter 1s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-5) 0;
  color: #fff;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
  color: var(--c-text);
  padding: var(--sp-5) 0;
}

.logo {
  width: clamp(90px, 12vw, 150px);
  height: auto;
}

.nav__toggle {
  border: none;
  background: transparent;
  color: #fff;
  padding: var(--sp-2);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
  transition: all 0.3s ease;
}

.nav__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  position: relative;
}

.nav__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.site-header.is-scrolled .nav__toggle-line {
  background: var(--c-text);
}

/* メニューが開いている時のハンバーガーアイコンのアニメーション */
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (width >=960px) {
  .nav__toggle {
    display: none;
  }
}

/* モバイルメニューオーバーレイ */
.global-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.global-nav__overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (width >=960px) {
  .global-nav__overlay {
    display: none;
  }
}

.global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* モバイルメニューのスタイル */
@media (max-width: 959px) {
  .global-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(125deg,rgba(76, 153, 207, 0.8) 0%, rgba(3, 73, 143, 0.8) 100%);
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
    padding: 80px var(--sp-5) var(--sp-6);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
    text-transform: uppercase;
  }

  .global-nav__list.is-open {
    transform: translateX(0);
  }
}

/* デスクトップメニューのスタイル */
@media (width >=960px) {
  .global-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: var(--sp-4);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    transform: none;
    width: auto;
    height: auto;
    overflow: visible;
    text-transform: none;
  }
}

/* モバイルナビゲーションのリンクスタイル */
@media (max-width: 959px) {
  .global-nav__list li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInNav 0.4s ease forwards;
  }

  .global-nav__list.is-open li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .global-nav__list.is-open li:nth-child(2) {
    animation-delay: 0.15s;
  }

  .global-nav__list.is-open li:nth-child(3) {
    animation-delay: 0.2s;
  }

  .global-nav__list.is-open li:nth-child(4) {
    animation-delay: 0.25s;
  }

  .global-nav__list.is-open li:nth-child(5) {
    animation-delay: 0.3s;
  }

  @keyframes slideInNav {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .global-nav a {
    font-family: 'Fira Sans Extra Condensed', var(--ff-sans);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: var(--sp-4) var(--sp-4);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
    display: block;
    position: relative;
    margin-bottom: var(--sp-2);
  }

  .global-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
  }

  .global-nav a:hover,
  .global-nav a:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding-left: var(--sp-6);
  }

  .global-nav a:hover::before,
  .global-nav a:focus::before {
    height: 60%;
  }

  .global-nav a.nav-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 700;
    margin-top: var(--sp-4);
    text-align: center;
    border-radius: 50px;
    padding: var(--sp-4) var(--sp-5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }

  .global-nav a.nav-cta::before {
    display: none;
  }

  .global-nav a.nav-cta:hover,
  .global-nav a.nav-cta:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    padding-left: var(--sp-5);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* デスクトップナビゲーションのリンクスタイル */
@media (width >=960px) {
  .global-nav a {
    font-family: 'Fira Sans Extra Condensed', var(--ff-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius);
    transition: background .2s ease, color .2s ease;
    color: #fff;
  }

  .site-header.is-scrolled .global-nav a {
    color: var(--c-text);
  }

  .global-nav a:hover {
    background: none;
    color: var(--c-primary);
  }

  .site-header.is-scrolled .global-nav a:hover {
    background: none;
    color: var(--c-primary);
  }

  .nav-cta {
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
  }

  .global-nav a.nav-cta:hover {
    background: var(--c-accent) !important;
    color: #fff !important;
  }
}

.hero {
  padding-block: var(--sp-7);
  background: var(--c-surface);
}

.features {
  padding-block: var(--sp-7);
}

.site-footer {
  background: #003559;
}