/* RPGツクール MZ風 ウィンドウ再現 */
body {
  margin: 0 auto;
  font-family: "メイリオ", sans-serif;
  color: #fff;
  width: 60%;
  background: url("/modules/img/wallpaper.png") no-repeat center fixed;
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}

/* 背景ぼかしオーバーレイ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: -1;
}


/* MZ風ウィンドウ */
.window {
  background: rgba(40, 48, 68, 0.85);
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;

  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.3),
    inset 0 0 6px rgba(0, 0, 0, 0.6),
    inset 0 0 14px rgba(255, 255, 255, 0.1);

  padding: 12px;
}


/* ヘッダー */
.header-window {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  font-size: 18px;
}

.header-center {
  text-align: center;
  flex-grow: 1;
  font-weight: bold;
}


/* コンテンツ */
.main-area {
  margin: 0 10px;
  display: flex;
  gap: 10px;
}

.content-window {
  flex: 3;
  min-height: 0;
  overflow-y: auto;
  position: relative;}

.content-window h2 {
  background: rgba(60, 68, 88, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  margin: -12px -12px 12px -12px;
  padding: 8px 12px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}

/* コンテンツ非活性 */
.content {
  display: none;
}

/* コンテンツ活性 */
.content.active {
  display: block;
}


/* メニュー */
.menu-nav {
  display: flex;
  /* 縦並び / 横並びなら row */
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.menu-btn {
  padding: 15px;
  background-color: rgba(40, 48, 68, 0.85);
  color: rgba(255, 255, 255, 1);
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.menu-btn:hover {
  background: rgba(180, 210, 255, 0.35);
  box-shadow: 0 0 10px rgba(180, 210, 255, 0.7);
}


/* フッター */
footer {
  background-color: #3e2f5b;
  text-align: center;
  padding: 10px;
  bottom: 0;
  position: fixed;

  left: 0;
  width: 100%;
  /* 他要素より前へ */
  z-index: 100;
}

footer p {
  margin: 0;
  color: #e0bbff;
}

/* フォームスタイル */
.content-window form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-window label {
  font-weight: bold;
  margin-bottom: 5px;
}

.content-window input {
  background: rgba(20, 28, 48, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-family: inherit;
}

.content-window input:focus {
  outline: none;
  border-color: rgba(180, 210, 255, 0.7);
  box-shadow: 0 0 5px rgba(180, 210, 255, 0.5);
}

.content-window button {
  background: rgba(40, 48, 68, 0.85);
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
}

.content-window button:hover {
  background: rgba(180, 210, 255, 0.35);
  box-shadow: 0 0 10px rgba(180, 210, 255, 0.7);
}

/* ゲーム一覧 */
#game-list {
  list-style: none;
  padding: 0;
}

#game-list li {
  background: rgba(20, 28, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
  border-radius: 4px;
}

#game-list a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#game-list a:hover {
  color: rgba(180, 210, 255, 0.8);
  background: rgba(60, 68, 88, 0.5);
}

/* プラグイン一覧 */
#plugin-list {
  list-style: none;
  padding: 0;
}

#plugin-list li {
  background: rgba(20, 28, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
  border-radius: 4px;
}

#plugin-list a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#plugin-list a:hover {
  color: rgba(180, 210, 255, 0.8);
  background: rgba(60, 68, 88, 0.5);
}

/* プラグイン説明文（小さめ文字） */
#plugin-list .plugin-description {
  font-size: 0.85em;      /* 少し小さく */
  opacity: 0.85;          /* 若干薄くして階層感 */
  margin-top: 4px;
  line-height: 1.4;
}

/* メッセージ */
.submit-message {
  color: #ffcccc;
  font-weight: bold;
}

/* チュートリアル */
.game-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.game-image {
  width: 100%;
  max-width: 400px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.play-btn {
  display: inline-block;
  background: rgba(40, 48, 68, 0.85);
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.play-btn:hover {
  background: rgba(180, 210, 255, 0.35);
  box-shadow: 0 0 15px rgba(180, 210, 255, 0.7);
}
