/* ===== ロード画面 ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: #b87333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  letter-spacing: 0.2rem;
  transition: opacity 1s ease;
}

.cursor {
  margin-left: 5px;
}

.cursor.blink {
  animation: blink 0.6s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ===== ページフェードイン ===== */
.hidden {
  opacity: 0;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 各要素の浮き上がり ===== */
.fade-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-element.show {
  opacity: 1;
  transform: translateY(0);
}

/* メインビジュアルに軽い影を */
.main-visual {
  background: url("images/main-visual.jpg") center/cover no-repeat;
  aspect-ratio: 18/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,0.3);
}

.main-logo {
  width: 40%;
  max-width: 400px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1.6s ease forwards 0.5s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 共通設定 */
body {
  margin: 0;
  color: #333;
  font-family: 'Special Elite', cursive;
  text-align: center;
  background-color: #fdfcf8;
  background-image: 
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 12px 12px, 24px 24px;
  background-position: 0 0, 6px 6px;
}

/* 紙の質感をさらにリアルに見せるために影を微追加 */
section, .news-list article {
  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(2px);
}

/* ヘッダー */
.site-header {
  background-color: #000;
  color: #b87333;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ナビゲーション */
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: #b87333;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #b87333;
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* JOINボタン（下線除去 & アクティブ時変化） */
.join-btn {
  border: 1px solid #b87333;
  padding: 0.4rem 1rem;
  border-radius: 5px;
}

.join-btn::after {
  display: none !important;
}

.join-btn:hover {
  background: #b87333;
  color: #000;
}

/* メインビジュアル */
.main-visual {
  position: relative;
  background: url("images/main-visual.jpg") center/cover no-repeat;
  aspect-ratio: 18/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,0.3);
}

.main-logo {
  width: 40%;
  max-width: 400px;
  z-index: 2;
}

/* サーバー参加ボタン */
.join-section {
  margin: 3rem 0;
}

.join-discord-btn {
  background: #fff;
  color: #c1ab05;
  border: 2px solid #c1ab05;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.join-discord-btn:hover {
  background: #c1ab05;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* ABOUTセクション */
.statement-section {
  padding: 2rem;
}

/* NEWSセクション */
.about-section {
  padding: 2rem;
}

.about-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.about-list article {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 280px;
  padding: 1rem;
  transition: transform 0.3s;
}

.about-list article:hover {
  transform: translateY(-5px);
}

/* 動画 */
.video-section {
  padding: 2rem;
}

.video-wrapper {
  display: flex;
  justify-content: center;
}

/* フッター */
.site-footer {
  background: #000;
  padding: 2rem;
  color: #b87333;
  font-family: 'IBM Plex Mono', monospace;
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #b87333;
  border-radius: 2px;
  transition: all 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: #000;
    width: 100%;
    text-align: center;
    transform: translateY(-200%);
    transition: transform 0.4s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
  }

  .main-logo {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .main-logo {
    width: 70%;
  }
}
