@charset "UTF-8";

/* ヘッダー */
.header {
  width: 100vw;
  height: 80px;
  background-color: var(--color-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  /* PC時の左右余白を調整 */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  /* オーバーレイより前面 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-block {
  width: 30%;
}

.header-logo {
  padding-top: 17px;
  padding-left: 108px;
}

.header-logo img {
  width: 150px;
  margin-bottom: 10px;
}

nav.header-nav {
  width: 70%;
  /* justify-content: center; */
}

/* 白ヘッダー */
.header--scrolled {
  display: none;
}

.header-nav li {
  color: var(--textColor);
}


/* ナビゲーション */
.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0px;
  padding-right: 145px;
}

.header-nav li {
  margin-left: 30px;
}

.header-nav a {
  font-size: 16px;
  white-space: nowrap;
  /* テキスト折り返しを防止 */
  color: #efefef;
}

.header-nav a svg {
    width: 28px;
    height: auto;
    padding-top: 5px;
    fill: #efefef;
}

svg#_x32_ {
  padding-top: 7px;
}

a.header-text-black {
  color: #204862;
}

.header-nav a svg.fb-black {
  fill: #204862;
}

.music-start img {
  width: 39px;
  padding-bottom: 3px;
  cursor: pointer;
}

.header .header--scrolled .music-start img {
    padding-bottom: 1px;
}

.music-start:active img {
  transform: scale(0.9);
  /* 90%のサイズに縮小 */
  transition: transform 0.1s;
  /* 変化を滑らかに */
}

.header-nav a:hover {
  opacity: 0.7;
}

/* ヘッダー切替アニメーション */
.header--default,
.header--scrolled {
  transition: transform 0.7s cubic-bezier(.85, .01, .43, 1.02), opacity 0.5s;
  will-change: transform, opacity;
}

/* 非表示状態：上へ */
.header--default.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* 非表示状態：下へ */
.header--scrolled.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* 初期位置 */
.header--scrolled {
  background: #fff;
  color: #204862;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 301;
  /* defaultより前面 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header--scrolled .header-nav a {
  color: #204862 !important;
}


/* 表示時 */
.header--scrolled.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}


/* ハンバーガーメニューの3本線デザイン */
.hamburger {
  position: fixed;
  top: 24px;
  right: 68px;
  width: 44px;
  height: 44px;
  z-index: 1101;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger-white span {
  background: #fff;
}

/* ハンバーガーアニメーション: ×マーク */
.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* モバイルメニュー初期状態 */
.mobile-menu {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; と同じ */
  background: #fff;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 99;
}

/* メニューの中身デザイン */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu li {
  margin: 24px 0;
}

.mobile-menu a {
    font-size: 20px;
    color: #204862;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.8;
}


/* ヘッダー音楽再生アイコン調整 */
@media (max-width: 1400px) {
.logo-block {
    width: 15%;
}

.header-logo {
    padding-left: 20px;
}

nav.header-nav {
    width: 85%;
}

.header-nav ul {
    padding-right: 40px;
}
}

/* スマートフォン向けスタイル (1024px以下) */
@media (max-width: 1024px) {

  /* ヘッダー */
  .header {
    padding: 0 20px;
    height: 92px;
  }

  header.header.header--default {
    height: 92px;
  }

  .header-logo {
    padding-top: 15px;
    padding-left: 0;
  }

  .header-logo img {
    max-width: none;
  }

  .header-nav {
    /* JSなしでのハンバーガーメニューは実装できないため、ナビゲーションを非表示にします。 */
    /* もしくは、メニューボタンを設置し、クリックで表示するJSを後で追加します。 */
    display: none;
  }

  .header--scrolled {
    height: 92px;
  }

  .header-nav ul {
    display: none;
  }

  .mobile-menu ul {
    margin-top: 100px;
  }

  .mobile-menu svg.fb-black {
    fill: #204862 !important;
  }
}

/* PC表示時は非表示にする場合 */
@media (min-width: 1024px) {

  .hamburger,
  .mobile-menu {
    display: none !important;
  }

}