body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0d1b2a;
    font-family: "Yu Mincho", "游明朝", YuMincho, serif;
}
/* ==========================================================================
   追加：トップページ共通UI・扉アニメーションの移植
   ========================================================================== */

.audio-control-btn {
    right: 90px !important; 
}

.menu-trigger, .smart-menu-overlay {
    font-family: "Noto Serif JP", serif;
}

.opening-door-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    display: flex;
}

.door {
    width: 50%;
    height: 100vh;
    background-color: #333333; 
    position: absolute;
    top: 0;
    transition: transform 1.6s cubic-bezier(0.66, 0, 0.2, 1);
}

.door-left {
    left: 0;
    transform: translateX(0);
    border-right: 1px solid #444444;
}

.door-right {
    right: 0;
    transform: translateX(0);
    border-left: 1px solid #444444;
}

body.loaded .door-left {
    transform: translateX(-100%);
}
body.loaded .door-right {
    transform: translateX(100%);
}

.menu-trigger {
    position: fixed;
    top: 25px; 
    right: 40px;
    z-index: 1000; 
    cursor: pointer;
    width: 28px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #ffffff; 
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.menu-trigger.active span {
    background-color: #3a3a3a;
}

.menu-trigger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-trigger.active span:nth-child(2) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.smart-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(252, 250, 242, 0.98); 
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.smart-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.smart-menu-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    gap: 50px;
}

.smart-menu-overlay li a {
    color: #3a3a3a; 
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.3em;
    font-weight: 500;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.smart-menu-overlay li a:hover {
    opacity: 0.5;
}


/* 星空の背景のスタイル */
.stars {
  position: relative;
  width: 100%; /* 星空の横幅 */
  height: 100vh; /* 星空の縦幅 */
  background-image: linear-gradient(0deg, #080f1c, #115d89, #080f1c); /* 星空の背景色 */
  overflow: hidden; /* 星が枠外にはみ出すのを防ぐ */
}

/* 星のスタイル */
.star {
  position: absolute;
  display: block;
  background-color: #fff; /* 星の色 */
  border-radius: 50%;
  box-shadow: 0 0 4px 2px rgba(#fff, 0.2); /* 星の影 */
  opacity: 0;
  animation: twinkle 5s infinite;
}

/* 星がキラキラ光るアニメーション */
@keyframes twinkle {
  0% {
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.marquee-block {
	max-width: 300px;
	background-color: #ddd;
	overflow: hidden;
}
.marquee-item {
	max-width: 300px;
}
@keyframes marquee {
	0% { translate: 100%; }
	100% { translate: -100%; }
}

/*
BGMのための
*/

.layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* 半透明の背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* レイヤーを最前面に */
}

.close-btn {
  display: inline-block;
  height: 4rem;
  background-color: #673ab7;
  padding: 15px 32px;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  color: white;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/*
望遠鏡
*/
canvas {
  width : 100%;
  height : 100%;
}
.block {
  width : 100%;
  height : 100%;
  position:absolute;
  left:0;
  top:0;
}
