/* 初期状態 */
header {
  background-color: transparent; /* 初めは透明 */
  transition: background-color 0.1s ease, color 0.1s ease; /* 背景色と文字色の変化にトランジション効果を追加 */
  height: 56px;
  padding: 0;
}
header a {
  color: #e2e2e2; /* 初めは文字色を白に */
}
/* scroll-navクラスが付与された時のスタイル */
header.scroll-nav {
  background-color: rgba(198, 198, 198, 0.8); /* 背景色を白の80%不透明に */
}

#header-end {
  height: 56px;
}

/* ナビゲーションリンクのスタイル */
header.scroll-nav a {
  color: #5f5f5f; /* リンクの文字色を黒に */
}
/* デフォルトのPC用ロゴ */
.logo {
  content: url("../img/logo/YD-logo.svg");
}
/* デフォルトのSP用ロゴ */
@media (max-width: 767px) {
  .logo {
    content: url("../img/logo/YD-logo.svg");
  }
}
/* PCでスクロールした際のロゴ変更 */
.pc-scroll-nav .logo {
  content: url("../img/logo/YD-logo-on.svg");
}
/* SPでスクロールした際のロゴ変更 */
.sp-scroll-nav .logo {
  content: url("../img/logo/YD-logo-on.svg");
}
/* グローバルナビ調整 */
nav {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 100vw;
  background: #e2e2e2;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all 0.5s;
  z-index: 3;
  opacity: 0;
  pointer-events: none; /* 非表示時はクリック無効 */
}
.open nav {
  left: 0;
  opacity: 1;
  pointer-events: auto; /* 表示時はクリック有効 */	
}
nav .inner {
  padding: 0;
}
nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .inner ul li {
  margin: 5px 0px 0px 0px;
}
nav .inner ul li a {
  display: block;
  color: #1b1b1b;
  font-size: 20px;
  text-decoration: none;
  transition-duration: 0.5s;
}
nav .inner ul li a:hover {
  background: #e4e4e4;
  color: #fff;
}
/* 固定SNSアイコン */
.fixed-sns-icons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}
.fixed-sns-icons li {
  list-style: none;
  margin: 0;
  border-bottom: none !important;
}
.fixed-sns-icons a {
  font-size: 24px;
  color: #dc3545;
}
.fixed-sns-icons a:hover {
  color: #ff6666;
}
/* 固定言語切り替えボタン */
.fixed-language {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.fixed-language li {
  list-style: none;
  margin: 0 5px;
}
.fixed-language span {
  margin: 0 5px;
}
/* グローバルホバー効果 */
a:hover {
  opacity: 0.5;
  transition-duration: 0.5s;
}
/* PCグローバルナビ */
.pc-global li {
  line-height: 1.2;
  margin-top: 0px; 	
}
/* メディアクエリ（スマホ用） */
@media screen and (max-width: 767px) {
  nav {
    left: -100vw;
    width: 100vw;
  }
  nav .inner ul li a, nav .inner ul li span {
    font-size: calc(0.8rem + 2.7vw);
  }
  nav .inner ul .fixed-language li a {
    font-size: calc(0.8rem + 2.7vw);
    text-decoration: none;
  }
}
/*============
#mask
=============*/
#mask {
  display: none;
  transition: all .1s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .0;
  z-index: 2;
  cursor: pointer;
}
footer {
  background-color: #ff001c;
  padding: 0px;
  color: #FFF;
}
header {
  color: #666666;
}
.navbar {
  position: relative;
  padding: 0rem 1rem;
  height: 56px;
}
.logo {
  display: block;
  position: absolute;
  top: 18px !important;
  left: calc(var(--bs-gutter-x)* .5) !important;
  height: 19px; /* ボタンの幅 */
  z-index: 3; /* 上に表示するためのz-index */
}
.logo-inner {
  margin-top: 19px !important;
  margin-bottom: 19px !important;	
  height: 19px; /* ボタンの幅 */
}
.sticky-top {
  position: sticky;
  top: 49px;
  overflow: hidden;
  z-index: 100;
  max-height: 30px;
}
.navbar-brand {
  display: block;
  padding-top: 0px;
  padding-bottom: 0;
  margin-right: 0;
  line-height: inherit;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sticky-top {
    position: sticky;
    top: 49px;
    overflow: hidden;
    z-index: 100;
    max-height: 28px;
  }
  .sticky-top .contents {
    font-family: 'Sofia Sans Condensed', YakuHanJP, 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    font-weight: 500;
    color: #fff;
    margin: -.14rem 0rem 0rem 0rem;
    font-feature-settings: "palt"1;
    letter-spacing: 0;
  }
  .logo {
    display: block;
    position: absolute;
    top: 18px !important;
    left: 15px; /* 右からの距離 */
    height: 18px; /* ボタンの幅 */
    z-index: 3; /* 上に表示するためのz-index */
  }
}
/*===============
.toggle_btn
===============*/
.toggle_btn {
  display: block;
  position: absolute;
  top: 19px;
  right: 12px;
  width: 40px;
  height: 18px;
  transition: all 0.5s;
  cursor: pointer;
  z-index: 3;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: rgb(226, 226, 226);
  border-radius: 4px;
  transition: all 0.5s;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}

.toggle_btn span:nth-child(2) {
  display: none; /* 中央の線を非表示にする */
}

.toggle_btn span:nth-child(3) {
  bottom: 4px;
}

/* スクロール後のスタイル */
.open .toggle_btn span {
  background-color: rgb(95, 95, 95);
}

.to-black .toggle_btn span {
  background-color: rgb(95, 95, 95);
}

.open .toggle_btn span:nth-child(1) {
  transform: translateY(4px) rotate(-315deg);
}

.open .toggle_btn span:nth-child(3) {
  transform: translateY(-4px) rotate(315deg);
}

/* 追加 */
.toggle_btn.open span {
  background-color: rgb(95, 95, 95);
}

/* トグルボタンが黒になるクラス */
.toggle_btn.to-black span {
  background-color: rgb(95, 95, 95);
}