@charset "UTF-8";
/*
  /rakurakucloud/gwtg/asset/css/layout/l-header.css
  GWtG専用ヘッダー（事例コンテンツ以降・上スクロール時のみ表示）
*/
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: var(--z-index-front);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  &.is-visible {
    transform: translateY(0);
    opacity: 1;
  }
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  @media screen and (max-width: 840px) {
    padding: 12px 16px;
  }
}
.l-header__logo {
  position: relative;
  z-index: 10;
}
.l-header__logo-image {
  display: block;
  height: 32px;
  width: auto;
}
.l-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  @media screen and (max-width: 840px) {
    /* SP：全画面オーバーレイメニュー（初期は非表示） */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 76px 24px 24px;
    background-color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}
/* SP：メニューが開いた状態 */
.l-header.is-menu-open .l-header__nav {
  @media screen and (max-width: 840px) {
    opacity: 1;
    visibility: visible;
  }
}

/* ハンバーガーボタン（SPのみ表示） */
.l-header__toggle {
  display: none;
  @media screen and (max-width: 840px) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10; 
  }
}
.l-header__toggle-bar {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background-color: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.l-header__toggle-bar:nth-child(1) {
  top: 9px;
}
.l-header__toggle-bar:nth-child(2) {
  top: 15px;
}
.l-header__toggle-bar:nth-child(3) {
  top: 21px;
}
/* 開いた時：×に変形 */
.l-header.is-menu-open .l-header__toggle-bar:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.l-header.is-menu-open .l-header__toggle-bar:nth-child(2) {
  opacity: 0;
}
.l-header.is-menu-open .l-header__toggle-bar:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

.l-header__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  @media screen and (max-width: 840px) {
    font-size: 12px;
  }
  &.is-active {
    color: var(--rcloud-primary);
  }
}
.l-header__nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--rcloud-primary);
  color: var(--white);
}

/* SP：メニュー内のタブリンクを縦並び・両端配置（テキスト左／アイコン右） */
@media screen and (max-width: 840px) {
  .l-header__nav .c-button--tab-sm {
    justify-content: space-between;
    width: 100%;
    padding: 20px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--rcloud-bg-sub-03);
  }
  .l-header__nav .c-button--tab-sm .c-button__icon {
    width: 36px;
    height: 36px;
  }
}