/* ヘッダー基本スタイル */
.l-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header {
  width: 100%;
}

.header__container {
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ロゴスタイル */
.header__logo {
  display: block;
  height: 40px;
  transition: opacity 0.3s ease;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* メインナビゲーション */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu__link {
  color: var(--color-gray-700);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.nav-menu__link:hover {
  color: var(--color-primary);
}

.nav-menu__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ハンバーガーメニュー */
/* ハンバーガーメニュー */
.hamburger {
  display: none;
  border: none;
  background: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger__line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s;
}

.hamburger__line:nth-child(1) {
  top: 0;
}

.hamburger__line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger__line:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーメニューがアクティブのとき */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* スマホナビゲーション */
.sp-nav {
  display: none;
  position: fixed;
  top: 70px;
  /* ヘッダーの高さ */
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: #fff;
  z-index: 999;
}

.sp-nav.is-active {
  display: block;
}

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

.sp-nav__list li a {
  display: block;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 850px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* フッター */
.footer {
  background: linear-gradient(to bottom, #f8fafc, #fff);
  padding: 4rem 0 2rem;
  color: var(--color-gray-700);
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo {
  display: block;
  width: 160px;
  transition: opacity 0.3s ease;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 196, 182, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--color-primary);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: var(--color-gray-600);
  transition: fill 0.3s ease;
}

.social-link:hover .social-icon {
  fill: #fff;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-end;
}

.footer__link {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header__container {
    padding: 1rem;
  }

  .header__nav {
    display: none;
  }

  .p-header__btn {
    display: block;
  }

  .p-gnav__item:nth-child(1) {
    --item-index: 1;
  }

  .p-gnav__item:nth-child(2) {
    --item-index: 2;
  }

  .p-gnav__item:nth-child(3) {
    --item-index: 3;
  }

  .p-gnav__item:nth-child(4) {
    --item-index: 4;
  }

  .p-gnav__item:nth-child(5) {
    --item-index: 5;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__brand,
  .footer__nav {
    justify-content: center;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}