/* ===== リセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #fff;
  overflow: hidden;
}

/* ===== 暗転フェード ===== */
#fade {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
#fade.loaded {
  opacity: 0;
}

/* ===== 背景 ===== */
.bg {
  position: fixed;
  inset: 0;
  background: url("../images/bg.jpg") center/cover no-repeat;
  z-index: 1;
}

/* ===== 全体ラッパー ===== */
.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ===== ヘッダー共通 ===== */
.site-header {
  position: fixed;
  top: 4%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.logo-link img {
  width: 180px;
  max-width: 50vw;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}

.logo-link:hover img {
  opacity: 0.7;
}

/* ===== フッター共通 ===== */
.site-footer {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: #aaa;
  z-index: 1000;
  pointer-events: none; /* クリック不可 */
}

/* ===== 共通レスポンシブ ===== */
@media (max-width: 900px) {
  .site-footer {
    font-size: 10px;
    right: 8px;
  }
}

/* ===== 共通ロード画面 ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: sans-serif;
  z-index: 10000;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
