@charset "UTF-8";

/* ==================================================
   1. 基本設定 & 共通レイアウト
   ================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  min-height: 100vh;
  /* 上下に自動で広がるよう中央揃え(align-items: center)を解除し、上から順に配置 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  color: #333;
}

/* トップページのユーザー情報表示用 */
.user-info {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f1f2f6;
  border-radius: 20px;
  color: #2d3436;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ヘッダーのログイン領域（右上固定） */
.header-login {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
}

/* ヘッダー用Googleログインボタンを小さく調整 */
.header-login .btn-google {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.header-login .google-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

/* ヘッダー用ユーザー名表示 */
.header-login .user-name {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #2d3436;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* メインカード容器 */
.game-card {
  background: #ffffff;
  padding: 35px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 520px;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
  /* ヘッダーのログイン表示と被らないよう上部に余白を追加 */
  margin-top: 20px;
}

/* 以下、元のCSSの続き */
/* 見出し */
.game-card h1 {
  font-size: 1.5rem;
  color: #6c5ce7;
  margin-bottom: 15px;
  font-weight: 800;
}

.game-card h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 2px solid #8ec5fc;
  padding-bottom: 8px;
  display: inline-block;
  width: 100%;
}

.game-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.setup-area {
  margin-bottom: 20px;
}

.game-tip {
  margin: 0 0 13px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #59677a;
  background: #f8fafc;
  font-size: .62rem;
  line-height: 1.5;
  text-align: center;
}
/* ==================================================
   2. フォームエレメント（入力欄・選択枠）
   ================================================== */
label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #444;
}

select {
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  margin: 5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.id-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="text"],
input[type="password"] {
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.word-text-input {
  width: 80%;
  max-width: 300px;
  font-size: 1.25rem;
  text-align: center;
  border: 2px solid #ccc;
}

.word-text-input:focus {
  border-color: #00b894;
}

.input-group {
  margin: 18px 0;
  text-align: center;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
}

/* ==================================================
   3. ボタン全般
   ================================================== */
button {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  margin: 4px;
  cursor: pointer;
  background-color: #00b894;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

button:hover {
  background-color: #00a181;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* カラーボタン各種 */
.btn-submit { background-color: #6c5ce7; width: 100%; padding: 12px; margin-top: 10px; font-size: 1rem; }
.btn-submit:hover { background-color: #5b4bc4; }

.btn-back { background-color: transparent; color: #666; border: 1px solid #ccc; width: 100%; padding: 10px; margin-top: 10px; box-shadow: none; }
.btn-back:hover { background-color: #f1f2f6; color: #333; }

.btn-hint { background-color: #0984e3; }
.btn-hint:hover { background-color: #076bba; }

.btn-example { background-color: #a29bfe; color: #2d3436; margin-bottom: 10px; }
.btn-example:hover { background-color: #8c7ae6; color: #fff; }

.btn-reset { background-color: #636e72; }
.btn-reset:hover { background-color: #2d3436; }

.btn-show-answer { background-color: #e84393; }
.btn-show-answer:hover { background-color: #d63031; }

.btn-next { background-color: #fdcb6e; color: #2d3436; font-weight: bold; }
.btn-next:hover { background-color: #e1b12c; }

/* かな切替ボタン */
.kana-toggle-btn {
  width: 44px;
  height: 30px;
  border-radius: 15px;
  background: #ffffff;
  border: 2px solid #b2bec3;
  color: #636e72;
  font-size: 12px;
  font-weight: bold;
  padding: 0;
  margin: 0;
  line-height: 26px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kana-toggle-btn:hover {
  background: #f1f2f6;
  border-color: #636e72;
}

.kana-toggle-btn.active {
  background: #fdcb6e;
  color: #2d3436;
  border-color: #e1b12c;
}

/* 画面最下部のフッターエリア（戻る・ログインボタン用） */
.bottom-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.btn-footer {
  background: rgba(255, 255, 255, 0.85);
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-footer:hover {
  background: #ffffff;
  color: #2d3436;
}

/* ==================================================
   4. ボックス・コンテンツ表示エリア
   ================================================== */
.box-container {
  position: relative;
  padding: 16px;
  text-align: left;
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.box-container .kana-toggle-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.hint-box {
  background: #e6f7ff;
  border-left: 5px solid #0984e3;
}

.example-box {
  background: #f3e5f5;
  border-left: 5px solid #9c27b0;
  font-size: 0.95rem;
}

.explanation-box {
  background: #e8f8f5;
  border-left: 5px solid #00b894;
  font-size: 0.95rem;
}

.instruction-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.instruction-text {
  color: #2d3436;
  font-size: 1rem;
  font-weight: bold;
}

/* ==================================================
   5. ゲーム固有要素（4択・正解表示）
   ================================================== */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.option-btn {
  background: #ffffff;
  color: #2d3436;
  border: 2px solid #74b9ff;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.option-btn:hover {
  background: #e8f4fe;
  border-color: #0984e3;
}

.option-btn.selected {
  border-color: #fdcb6e;
  background-color: #fff9e6;
}

.option-btn.correct-choice {
  background-color: #e6f9f0;
  border-color: #00b894;
  color: #007957;
}

.option-btn.wrong-choice {
  background-color: #ffe6e6;
  border-color: #ff7675;
  color: #d63031;
}

.hint-list-item {
  margin-bottom: 8px;
}

.sub-hiragana {
  color: #636e72;
  font-size: 0.85em;
  margin-top: 3px;
  font-weight: normal;
}

.answer-highlight {
  color: #d63031;
  font-weight: bold;
}

.message {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
  white-space: pre-wrap;
}

.correct { color: #00b894; }
.wrong { color: #d63031; }

.answer-display {
  background: #fff9e6;
  border: 2px dashed #fdcb6e;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #d35400;
}
/* ==================================================
   6. 多言語トグルボタン・表示用スタイル (HTMLから移行)
   ================================================== */
   /*
.lang-toggle-group {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 10;
}
*/
.lang-toggle-group {
  /* absolute から sticky に変更して追従させます */
  position: sticky;
  top: 15px; /* スクロール時に止まる位置（上からの余白） */
  /* right: 12px; は削除します */
  display: flex;
  flex-direction: row;
  justify-content: flex-end; /* ボタンを右寄せにします */
  gap: 8px;
  z-index: 100;
  margin-bottom: 10px; /* 下のテキストと被らないよう余白を作ります */
}

.lang-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background-color: #fff;
  color: #555;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1;
}

.lang-toggle-btn:hover {
  background-color: #f1f2f6;
  border-color: #999;
}

#btn-h-hint.active, #btn-h-example.active, #btn-h-all-examples.active {
  background-color: #0984e3; color: white; border-color: #0984e3;
}
#btn-en-hint.active, #btn-en-example.active, #btn-en-all-examples.active {
  background-color: #28a745; color: white; border-color: #28a745;
}
#btn-zh-hint.active, #btn-zh-example.active, #btn-zh-all-examples.active {
  background-color: #dc3545; color: white; border-color: #dc3545;
}

.sub-en { color: #28a745; font-size: 0.9em; margin-top: 2px; }
.sub-zh { color: #dc3545; font-size: 0.9em; margin-top: 2px; }
.answer-translation { margin-top: 5px; font-size: 0.9em; color: #555; }

/* ==================================================
   7. フィードバック機能用スタイル
   ================================================== */
.feedback-box {
  background: #fff3e0;
  border-left: 5px solid #e67e22;
  margin-top: 20px;
}

.feedback-box p {
  font-weight: bold;
  color: #d35400;
  margin-bottom: 10px;
}

.feedback-form-group {
  margin-bottom: 15px;
}

.feedback-form-group label {
  margin-right: 15px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

.feedback-textarea {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: inherit;
}

.feedback-textarea:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.btn-feedback-submit {
  background-color: #e67e22;
  color: #fff;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-feedback-submit:hover {
  background-color: #d35400;
}

/* ==================================================
   8. インストール・PWA関連スタイル
   ================================================== */
.install-btn {
  background-color: #fdcb6e;
  color: #2d3436;
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  animation: bounce 2s infinite;
}

.install-btn:hover {
  background-color: #e1b12c;
}

.ios-instruction {
  background: #f1f2f6;
  border: 2px dashed #b2bec3;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #2d3436;
  text-align: left;
  line-height: 1.5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==================================================
   9. 管理画面・テーブル専用スタイル
   ================================================== */
/* 管理トップメニュー全体 */
.menu-box { margin-bottom: 20px; }
.menu-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  border-left: 5px solid;
  padding-left: 10px;
  text-align: left;
}
.menu-box p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  text-align: left;
  padding-left: 15px;
  line-height: 1.4;
}
.warning-text {
  color: #d63031;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 5px;
  display: block;
}

/* 共通ボタンスタイル */
.menu-btn {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 1. 管理者 (現状の色: #6c5ce7) */
.admin-box h3 { color: #2c3e50; border-color: #6c5ce7; }
.btn-admin {
  background-color: #ffffff;
  color: #6c5ce7;
  border: 2px solid #6c5ce7;
}
.btn-admin:hover { background-color: #6c5ce7; color: #ffffff; }

/* 2. 連想ゲーム (オレンジ系: #e67e22) */
.renso-box h3 { color: #d35400; border-color: #e67e22; }
.btn-renso {
  background-color: #ffffff;
  color: #e67e22;
  border: 2px solid #e67e22;
}
.btn-renso:hover { background-color: #e67e22; color: #ffffff; }

/* 3. 仲間はずれゲーム (ブルー系: #0984e3) */
.nakama-box h3 { color: #076bba; border-color: #0984e3; }
.btn-nakama {
  background-color: #ffffff;
  color: #0984e3;
  border: 2px solid #0984e3;
}
.btn-nakama:hover { background-color: #0984e3; color: #ffffff; }

/* PCの全画面を広く使うスタイル */
.pc-wide-card { max-width: 98%; margin: 10px auto; }

/* 検索フィルター部分 */
.search-bar {
  background: #eef2f3;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #dcdde1;
}
.search-bar select, .search-bar input[type="text"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}
.search-bar button { margin: 0; padding: 8px 20px; background-color: #0984e3; }
.search-bar button:hover { background-color: #076bba; }

/* Excel風テーブルスタイル */
.data-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  max-height: 65vh;
  overflow-y: auto;
  padding-bottom: 10px;
}
.excel-table { width: 1200px; border-collapse: collapse; min-width: 800px; font-size: 0.85rem; }
.excel-table th {
  background-color: #6c5ce7;
  color: white;
  padding: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid #a29bfe;
  white-space: nowrap;
}

/* テキストボックスのフォーカス拡大機能 */
.excel-table td { padding: 4px; border: 1px solid #dcdde1; position: relative; }
.excel-table input[type="text"] {
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}
.excel-table input[type="text"]:focus {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 400px;
  border: 2px solid #00b894;
  background: #fff;
  outline: none;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  padding: 8px;
}

.group-row td { border-bottom: 2px solid #636e72 !important; }
.type-label { font-weight: bold; color: #555; text-align: center; background-color: #f8fafc; }

/* ページネーションとソート用スタイル */
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 15px; }
.pagination a {
  padding: 6px 15px;
  background: #dfe6e9;
  border-radius: 4px;
  text-decoration: none;
  color: #2d3436;
  border: 1px solid #b2bec3;
  font-weight: bold;
}
.pagination a:hover { background: #b2bec3; }
.pagination span { font-weight: bold; color: #2d3436; }
.sort-link { color: white; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.sort-link:hover { text-decoration: underline; background-color: rgba(255,255,255,0.2); border-radius: 3px; }

/* セレクトボックス（全幅用） */
.form-group-full select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* ==================================================
   10. アクションエリア・削除ボタン等 (n01_data.php用)
   ================================================== */

/* 下部のアクションエリア（戻るボタンと保存ボタンを左右に配置） */
.action-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed #ccc;
}

/* 削除ボタン */
.btn-delete {
  background-color: #ff7675;
  color: white;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-delete:hover {
  background-color: #d63031;
  transform: translateY(-1px);
}

.btn-delete:active {
  transform: translateY(0);
}

/* 保存ボタンのカスタムスタイル */
.btn-save {
  width: auto;
  padding: 12px 30px;
  font-size: 1.1rem;
  background-color: #00b894;
}

/* リンクテキスト装飾の解除 */
.no-underline {
  text-decoration: none;
}

/* ==================================================
   11. Googleログインボタン
   ================================================== */
.login-container {
  margin: 15px 0 25px;
  text-align: center;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #555;
  border: 1px solid #ccc;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.google-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cpath fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/%3E%3Cpath fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/%3E%3Cpath fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/%3E%3Cpath fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/%3E%3Cpath fill="none" d="M0 0h48v48H0z"/%3E%3C/svg%3E');
  background-size: cover;
}



.hidden { display: none !important; }

/* ==================================================
   12. モーダル表示用スタイル
   ================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content.feedback-box {
  background: #fff3e0;
  border-left: 5px solid #e67e22;
  margin-top: 0;
}

.btn-feedback-open {
  background-color: #e67e22;
  color: white;
}
.btn-feedback-open:hover {
  background-color: #d35400;
}

.btn-feedback-cancel {
  background-color: #b2bec3;
  color: #2d3436;
  width: 40%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-feedback-cancel:hover {
  background-color: #636e72;
  color: white;
}

.btn-feedback-submit {
  width: 60%;
}

/*連想ゲーム問題作成頁へボタン用*/
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.btn-bounce {
  /*animation: bounce-soft 1s infinite;*/
  background-color: #fdcb6e !important; /* 目立つ色に */
  color: #2d3436 !important;
  border-color: #e1b12c !important;
  font-weight: bold;
}
/* ==================================================
   13. 連想ゲーム リクエスト処理専用スタイル
   ================================================== */
.req-filter-bar { background: #f1f2f6; padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.req-filter-bar select { flex: 1; margin: 0; }
.req-filter-bar button { margin: 0; }

.req-table-wrapper { width: 100%; overflow-x: auto; margin-bottom: 20px; }
.req-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.req-table th, .req-table td { border: 1px solid #dcdde1; padding: 8px; vertical-align: middle; }
.req-table th { background-color: #e67e22; color: white; font-size: 0.95rem; }
.req-action-col { width: 95px; text-align: center; }
.req-word-col { width: 110px; font-weight: bold; text-align: center; }

.req-hint-row { display: flex; flex-direction: column; background: #fff; border: 1px solid #ccc; padding: 8px; margin-bottom: 6px; border-radius: 6px; cursor: pointer; transition: background 0.2s; text-align: left; }
.req-hint-row:hover { background: #fdf6f0; border-color: #e67e22; }
.req-hint-text { font-size: 0.95rem; margin-bottom: 4px; color: #2d3436; font-weight: bold; }
.req-badges { display: flex; gap: 5px; }
.badge-none { background: #b2bec3; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }
.badge-exist { background: #00b894; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }

.btn-review { background-color: #0984e3; color: white; width: 80px; margin-bottom: 5px; padding: 8px 4px; font-size: 0.85rem; border-radius: 4px; border: none; cursor: pointer; font-weight: bold;}
.btn-review:hover { background-color: #076bba; }
.btn-register-sm { background-color: #d63031; color: white; width: 80px; padding: 8px 4px; font-size: 0.85rem; margin:0; border-radius: 4px; border: none; cursor: pointer; font-weight: bold;}
.btn-register-sm:hover { background-color: #b32525; }
.req-disabled-text { display: block; background: #f1f2f6; color: #a4b0be; padding: 10px 0; border-radius: 6px; font-size: 0.85rem; font-weight: bold; }

.hint-modal-grid { max-height: 65vh; overflow-y: auto; padding: 10px; text-align: left; }
.hint-group { background: #f8fafc; border-left: 4px solid #00b894; padding: 10px; margin-bottom: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.hint-group h4 { margin-bottom: 8px; color: #2d3436; font-size: 0.95rem; }
.hint-input-row { display: flex; align-items: center; margin-bottom: 8px; }
.hint-input-row label { width: 45px; font-size: 0.8rem; color: #636e72; font-weight: bold; margin: 0; }
.hint-input-row input { flex: 1; padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
