Newer
Older
Intro-Q-2025-ver2 / public / client.css
/* --- 全体のスタイル --- */
body {
  background: #f9f9ff; /* 明るい青紫系の背景 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 1em;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 500px; /* PCでも見やすいように最大幅を設定 */
  text-align: center;
}

h1 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #2a4d8f; /* 深い青 */
}

/* --- 各セクションのカードスタイル --- */
#join-section,
#game-section {
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 1em;
}

#game-section {
  display: none; /* 初期状態では非表示 */
}

h2 {
  margin-top: 0;
  color: #333;
}

/* --- フォーム要素のスタイル --- */
select,
input[type="text"] {
  font-size: 1.1em;
  padding: 0.8em;
  width: 90%;
  max-width: 350px;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: block; /* 縦に並べる */
  margin-left: auto;
  margin-right: auto;
}

/* --- ボタンのスタイル --- */
button {
  font-size: 1.2em;
  padding: 0.8em 1.5em;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: bold;
  width: 90%;
  max-width: 350px;
}

#joinBtn {
  background-color: #4d90fe; /* 明るい青 */
}
#joinBtn:hover {
  background-color: #357ae8;
}

#raiseBtn {
  background-color: #34a853; /* 目立つ緑 */
  font-size: 1.5em;
  padding: 1em;
}
#raiseBtn:hover {
  background-color: #2c8b45;
}


/* --- 情報表示エリアのスタイル --- */
#myInfo {
  font-weight: bold;
  color: #2a4d8f;
  margin-bottom: 1.5em;
}

#status {
  margin-top: 1.5em;
  font-weight: bold;
  color: #d93025; /* 注意を引く赤系 */
  font-size: 1.2em;
}

#queue {
  white-space: pre-line;
  margin-top: 1em;
  padding: 1em;
  background: #eef3ff;
  border: 1px solid #d9e2ff;
  border-radius: 8px;
  text-align: left;
  min-width: 80%;
  display: inline-block;
}