@charset "UTF-8";

/* ================================================
   性闘士☆準矢 ボイスサンプラー
   style.css
================================================ */

html {
  touch-action: manipulation; /* タップ時のダブルタップズームを無効化 */
  user-select: none;          /* テキスト選択を禁止（ボタン連打時に文字が選択されるのを防ぐ） */
}

body {
  font-family: sans-serif;
  background-color: #111;
  text-align: center;
  color: #fff;
}

header {
  background-color: #000;
  padding: 24px;
}

main {
  padding: 32px;
}

/* ボタンリスト
-------------------------------------------------- */
#contents {
  font-family: "Train One", system-ui;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-auto-rows: 5rem;
  gap: 16px;
  font-size: 18px;
  line-height: 1.2;
  max-width: 600px;
  margin: 0 auto;
}

/* ボタン（通常状態）
-------------------------------------------------- */
.btn {
  border-radius: 8px;
  background-color: #555;
  box-shadow: 2px 2px 4px 0 #444;
  cursor: pointer;
  display: grid;
  align-items: center;
  transition: background-color 0.1s, box-shadow 0.1s, transform 0.1s;
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid #ffd500;
  outline-offset: 2px;
}

/* ボタン（押下状態）
   :active        → マウスクリック時
   .is-active     → タッチ時（JS制御）
-------------------------------------------------- */
.btn:active,
.btn.is-active {
  background-color: beige;
  box-shadow: inset 2px 2px 4px 0 #000;
  transform: scale(0.96);
}

/* ボタン（無効状態）
-------------------------------------------------- */
.btn.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* フッター
-------------------------------------------------- */
footer {
  background-color: #000;
  padding: 24px;
}

/* マナーモード注意モーダル
-------------------------------------------------- */

/* フェードインのキーフレーム定義 */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ボックスが下から浮き上がるキーフレーム定義 */
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* オーバーレイ（背景暗幕）
   デフォルトは非表示、JS が .is-visible を付与したら表示 */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#modal-overlay.is-visible {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

/* モーダルボックス本体 */
#modal-box {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-top: 3px solid #c4001a; /* サイトのメインカラー（赤）でアクセント */
  border-radius: 8px;
  padding: 32px 24px;
  width: min(80%, 300px);
  display: grid;
  gap: 24px;
  animation: slideUp 0.35s ease forwards;
}

/* メッセージテキスト */
#modal-msg {
  font-size: 15px;
  line-height: 2;
  color: #f2f2f2;
}

/* OKボタン */
#modal-btn {
  background-color: #ffd500; /* サイトのアクセントカラー（黄） */
  color: #111;
  font-weight: bold;
  font-size: 15px;
  padding: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}

#modal-btn:active {
  opacity: 0.7;
}