/* メニューバーと矢印のラッパー */
#menu-bar-wrapper {
  position: relative;
  width: 100%;
  z-index: 40;
  top: 0;
  transition: top 0.3s cubic-bezier(0.4,0,0.2,1);
}
#menu-bar-wrapper.hide {
  top: -30px;
}
/* メニューバー本体 */
#menu-bar {
  width: 100%;
  height: 30px;
  background: white;
  opacity: 75%;
  /* color: #fff; */
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  position: relative;
  /* z-index: 100; */
  transition: top 0.3s;
  white-space: nowrap;

}

/* メニューバーの下の上向き矢印 */
#menu-arrow {
  width: 36px;
  height: 36px;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  /* z-index: 101; */
  background: #222;
  opacity: 0.5;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #444;
}
#menu-arrow:hover {
  background: #333;
}
#menu-arrow .arrow-line {
  width: 12px;
  height: 2px;
  background: #fff;
  position: absolute;
  top: 17px;
  border-radius: 1px;
}
#menu-arrow .arrow-line.left {
  left: 8px;
}
#menu-arrow .arrow-line.right {
  right: 8px;
}
#menu-arrow .arrow-line.left {
  transform: rotate(-45deg);
  transition: transform 0.3s;
}
#menu-arrow .arrow-line.right {
  transform: rotate(45deg);
  transition: transform 0.3s;
}
/* 矢印を下向きに */
#menu-arrow.down .arrow-line.left {
  transform: rotate(45deg);
}
#menu-arrow.down .arrow-line.right {
  transform: rotate(-45deg);
}

/* 全体の基本設定 */
html, body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

/* 動画ラッパー：アスペクト比維持 */
.video-wrapper {
  position: relative;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background-color: black;
  overflow: hidden;
}

.video-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


#player {
  width: 100%;
  height: 100%;
	z-index: 1;
  pointer-events: none;
}

#yt-player {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
}


/* 動画・SVG・コントロールの共通絶対配置 */
.video-js,
#svg-overlay,
/* #custom-controls, */
#start-overlay,
.video-fader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fade-target {
  background: black;
  z-index: 32;
  opacity: 1;
  transition: opacity 0.4s ease;
	pointer-events: none;
}


/* 再生ボタンの円 */
.play-button {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 1.00);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 30px solid rgba(0, 0, 0, 0.8);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

/* ホバー時の拡大アニメーション */
#start-overlay:hover .play-button {
  transform: scale(1.2);
}

#start-overlay:active .play-button {
  transform: scale(1.5);
}

/* 動画切り替え時のフェードインアウト */
.fade-target.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* SVGオーバーレイ設定 */
#svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 31;
}


.area{
  pointer-events: auto;
}

/* SVG内のリンクエリア（インタラクティブゾーン） */
.svg-map .area {
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s;
}

.svg-map .area.hidden {
  opacity: 0;
	visibility: hidden;
  pointer-events: none;
}

.svg-map .area.hidden path,
.svg-map .area.hidden circle {
  fill: rgba(255, 255, 255, 0) !important;
  transition: none !important;
}

/* ハイライト・光るエフェクト */
/*
.svg-map .area path {
  fill: rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
}
*/

.svg-map .area:hover path,
.svg-map .area:hover circle {
  fill: rgba(100, 200, 255, 0.1);
  stroke: #00ffff;
  stroke-width: 4;
  filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 0px rgba(255, 255, 255, 0.7));

  transition: transform 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

/* 表示時のベースの明るさ */

.svg-map .area:not(.hidden) path,
.svg-map .area:not(.hidden) circle {
  fill: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}



/* 最初の再生要求オーバーレイ */
#start-overlay {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  cursor: pointer;
}

.breadcrumb {
  pointer-events: auto;
}

.breadcrumb li:not(:last-child)::after {
  display: inline-block;
  margin: 0 .25rem;
  content: "≫";
}

.breadcrumb ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb a {
  color: black;
  text-decoration: none;
  /*ホバー時カーソルを指に*/
  cursor: pointer;
}







/* カスタム操作ボタン（再生・ミュートなど） */
#custom-controls {
  position: absolute;
  bottom: 3%;
  width: 100%;
  z-index: 35;
  display: flex;
	pointer-events: auto;
}

.control-button {
  background-color: rgba(0,0,0,0.6);
  border: none;
  font-size: 38px;
  margin-left: 30px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.control-button:hover {
  background-color: rgba(00, 225, 255, 0.2);
}


.control-button img {
  width: 30px;
  height: 30px;
  pointer-events: none; /* ボタン押下の邪魔をしないように */
  user-select: none;
}

/* 右上のYouTubeロゴと共有ボタンなどを隠すためのマスク */
.upper-overlay-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%; /* ロゴ＋共有ボタンを覆う幅 */
  height: 100px;
  background: black; /* プレーヤー背景色に合わせる */
  z-index: 3; /* iframeの上に置く */
  pointer-events: none; /* 操作の妨げにならないように */
	color: white;
	text-align: center;
	font-size: 24px;
	padding-top: 20px;
  opacity: 1;
  transition: opacity 1s ease;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, transparent 100%);

}

.upper-overlay-mask.fade-out {
  opacity: 0;
}

.upper-overlay-mask.init {
  opacity: 1;
}

/* 右下のYouTubeロゴと共有ボタンなどを隠すためのマスク */
.lower-overlay-mask {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%; /* ロゴ＋共有ボタンを覆う幅 */
  height: 100px;
  background: black; /* プレーヤー背景色に合わせる */
  z-index: 3; /* iframeの上に置く */
  pointer-events: none; /* 操作の妨げにならないように */
	color: white;
	text-align: center;
	font-size: 24px;
	padding-top: 20px;
  opacity: 1;
  transition: opacity 1s ease;
	background: linear-gradient(to top, rgba(0, 0, 0, 1) 35%, transparent 100%);

}

.lower-overlay-mask.fade-out {
  opacity: 0;
}

.lower-overlay-mask.init {
  opacity: 1;
}

#seekbar {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);

  width: 60%;
  height: 5px;
  background-color: gray;

  cursor: pointer;
  pointer-events: auto;

}

#current {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: #00e1ff;
}

#circle {
  position: absolute;
  top: -2.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00e1ff;
  cursor: pointer;
  user-select: none;
}
#circle:hover {
  transform: scale(1.5);
}

/* シークバー中央下配置 */
/* .progress-bar-wrapper {
  transform: translateX(-50%);
  width: 60%;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  z-index: 40;
}
.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}
#current {
  height: 100%;
  background: #00bcd4;
  border-radius: 4px;
  transition: width 0.2s;
} */
