* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Sans-serif;
  background-color: #eef2f5;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* PC専用：コンテナ */
.game-container {
  background: #ffffff;
  width: 100%;
  max-width: 1000px;
  padding: 50px 60px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* ヘッダーエリア */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.btn-small {
  padding: 12px 28px;
  font-size: 24px; /* 13px -> 約2倍 */
}

/* サウンド切替ボタン */
.btn-sound {
  background-color: #2e86de;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 24px; /* 13px -> 約2倍 */
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-sound:hover {
  background-color: #1b6ca8;
}

.btn-sound.muted {
  background-color: #8395a7;
}

.btn-sound.muted:hover {
  background-color: #576574;
}

h1 {
  font-size: 48px; /* 22px -> 約2倍 */
  margin-bottom: 30px;
  color: #d9230f; /* 新喜劇イメージのレッド */
  letter-spacing: 2px;
}

.description {
  font-size: 28px; /* 14px -> 2倍 */
  color: #555;
  margin-bottom: 45px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.btn {
  background-color: #d9230f;
  color: #fff;
  border: none;
  padding: 20px 50px;
  font-size: 32px; /* 16px -> 2倍 */
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  background-color: #b01a09;
}

.btn:active {
  transform: scale(0.98);
}

/* プレイ画面 */
.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 28px; /* 14px -> 2倍 */
  font-weight: bold;
  color: #444;
  margin-bottom: 25px;
  padding: 0 10px;
}

/* カード領域 */
.card {
  background-color: #fafafa;
  border: 3px solid #e2e8f0;
  border-radius: 16px;
  padding: 50px 30px;
  margin-bottom: 30px;
}

.kanji-name {
  font-size: 84px; /* 42px -> 2倍（圧倒的超大型表示） */
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 4px;
}

.kana-name {
  font-size: 40px; /* 20px -> 2倍 */
  color: #666;
  margin-bottom: 20px;
}

/* ローマ字表示（等幅フォント） */
.roma-name {
  font-size: 5.6rem; /* 2.8rem -> 2倍 */
  font-weight: bold;
  letter-spacing: 4px;
  font-family: "Courier New", Consolas, monospace;
  margin-top: 20px;
}

.roma-name .typed {
  color: #ff4757;
}

.roma-name .untyped {
  color: #b2bec3;
}

.guide-text {
  margin-top: 25px;
  font-size: 24px; /* 12px -> 2倍 */
  color: #747d8c;
}

/* 結果画面 */
#result-card {
  background: #fff;
  padding: 40px 70px;
  border-radius: 20px;
  border: 4px solid #f39c12;
  margin: 0 auto 35px auto;
  display: inline-block;
  min-width: 550px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

#result-card h2 {
  font-size: 48px; /* 24px -> 2倍 */
  margin-bottom: 20px;
}

.result-text {
  font-size: 36px; /* 18px -> 2倍 */
  margin: 20px 0;
}

#final-time {
  font-size: 64px; /* 32px -> 2倍 */
  font-weight: bold;
  color: #d9230f;
}

.rank-text {
  font-size: 32px; /* 16px -> 2倍 */
  font-weight: bold;
  margin: 25px 0 15px 0;
  color: #333;
}

#rank-display {
  color: #e67e22;
  font-size: 48px; /* 24px -> 2倍 */
  margin-left: 10px;
}

.site-tag {
  font-size: 20px; /* 10px -> 2倍 */
  color: #888;
  margin-top: 20px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.btn-secondary {
  background-color: #27ae60;
  color: #fff;
  font-size: 24px;
  padding: 14px 28px;
}
.btn-secondary:hover {
  background-color: #219150;
}

.btn-x {
  background-color: #000000;
  color: #fff;
  font-size: 24px;
  padding: 14px 28px;
}
.btn-x:hover {
  background-color: #333333;
}

/* ------パソコン------ */
.affiliate-box {
    width: 100%;             /* 横幅を親要素（.container）いっぱいに広げる */
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 5px 0;
}