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

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

/* 共通ウィンドウ */
.window {
  padding: 12px;
  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);
}

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

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

/* レイアウト */
.main-area {
  display: flex;
  gap: 10px;
  margin: 0 10px;
}

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

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

.content {
  display: none;
}

.content.active {
  display: block;
}

/* メニュー */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

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

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

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

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

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

.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 {
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
  background: rgba(40, 48, 68, 0.85);
  border: 2px solid #fff;
  border-radius: 8px;
}

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

/* 一覧共通（ゲーム / プラグイン） */
#game-list,
#plugin-list {
  padding: 0;
  list-style: none;
}

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

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

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

/* プラグイン説明文 */
#plugin-list .plugin-description {
  margin-top: 4px;
  font-size: 0.85em;
  line-height: 1.4;
  opacity: 0.85;
}

/* チュートリアル */
.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;
  padding: 12px 24px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: rgba(40, 48, 68, 0.85);
  border: 2px solid #fff;
  border-radius: 8px;
  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);
}

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

/* フッター */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #3e2f5b;
}

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