/* ===========================
   フラッグ反則ツール（追加CSS最適化版）
   ※ WordPress 追加CSSで確実に反映されるように調整
=========================== */

/* 背景は body に直接当てると全ページに影響するため除外
   → ff-container の背景でフィールド感を出す方式に変更 */
.ff-container {
  background: rgba(255,255,255,0.92);
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.05) 0px,
      rgba(0,0,0,0.05) 2px,
      transparent 2px,
      transparent 60px
    );
  background-size: 100% 62px;
}

/* コンテナ */
.ff-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border-left: 10px solid #f7d000;
}

/* タイトル */
.ff-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #222;
  font-weight: 800;
  border-bottom: 3px solid #f7d000;
  padding-bottom: 8px;
}

/* セクション */
.ff-section {
  margin-bottom: 22px;
}

/* ラベル */
.ff-label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #0b3d0b;
  font-size: 1.05rem;
}

/* 入力系 */
.ff-select,
.ff-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ccc !important;
  font-size: 1rem;
  background: #fff;
  transition: 0.2s;
}

.ff-select:focus,
.ff-input:focus {
  border-color: #f7d000 !important;
  box-shadow: 0 0 6px rgba(247,208,0,0.6);
  outline: none;
}

/* グリッド */
.ff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 12px;
}

/* ボタン */
.ff-button {
  width: 100%;
  padding: 16px;
  background: #f7d000;
  color: #222;
  border: none;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.ff-button:hover {
  background: #ffea4d;
}

/* 結果表示 */
.ff-result {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border-left: 8px solid #f7d000;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 補助テキスト */
.ff-sub {
  font-size: 0.9rem;
  color: #444;
}

.ff-inline {
  display: inline-block;
  margin-right: 12px;
}

/* ===========================
   スマホ最適化（600px以下）
=========================== */
@media (max-width: 600px) {

  .ff-container {
    padding: 22px;
    border-left-width: 6px;
  }

  .ff-title {
    font-size: 1.8rem;
  }

  .ff-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ff-select,
  .ff-input {
    padding: 16px;
    font-size: 1.15rem;
  }

  .ff-label {
    font-size: 1.1rem;
  }

  .ff-button {
    padding: 20px;
    font-size: 1.3rem;
  }

  .ff-result {
    padding: 22px;
    font-size: 1.15rem;
  }
}

.ff-container {
  background: #0b6623 !important; /* 芝生グリーン */
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.15) 0px,
      rgba(255,255,255,0.15) 2px,
      transparent 2px,
      transparent 60px
    ) !important;
  color: #fff !important;
}

/* ===========================
   アメリカンフットボール風デザイン（強制上書き版）
   テーマCSSに負けないよう !important を適用
=========================== */

/* 全体コンテナ（芝生フィールド） */
.ff-container {
  background: #0b6623 !important; /* 濃い芝生グリーン */
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.18) 3px,
      transparent 3px,
      transparent 55px
    ) !important; /* フィールドの白ライン */
  padding: 32px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
  border-left: 12px solid #f7d000 !important; /* ペナルティフラッグの黄色 */
  color: #fff !important;
}

/* タイトル */
.ff-title {
  text-align: center !important;
  font-size: 2.2rem !important;
  margin-bottom: 26px !important;
  color: #fff !important;
  font-weight: 900 !important;
  border-bottom: 4px solid #f7d000 !important;
  padding-bottom: 10px !important;
}

/* ラベル */
.ff-label {
  display: block !important;
  font-weight: bold !important;
  margin-bottom: 6px !important;
  color: #ffea4d !important; /* 黄色で視認性UP */
  font-size: 1.1rem !important;
}

/* 入力系 */
.ff-select,
.ff-input {
  width: 100% !important;
  padding: 14px !important;
  border-radius: 10px !important;
  border: 2px solid #fff !important;
  font-size: 1.05rem !important;
  background: rgba(255,255,255,0.9) !important;
  color: #000 !important;
  transition: 0.2s !important;
}

.ff-select:focus,
.ff-input:focus {
  border-color: #f7d000 !important;
  box-shadow: 0 0 8px rgba(247,208,0,0.9) !important;
  outline: none !important;
}

/* グリッド */
.ff-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 16px !important;
}

/* ボタン */
.ff-button {
  width: 100% !important;
  padding: 18px !important;
  background: #f7d000 !important;
  color: #222 !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.4rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: 0.2s !important;
}

.ff-button:hover {
  background: #ffea4d !important;
}

/* 結果表示 */
.ff-result {
  margin-top: 26px !important;
  padding: 22px !important;
  background: rgba(255,255,255,0.95) !important;
  border-left: 10px solid #f7d000 !important;
  border-radius: 14px !important;
  font-size: 1.15rem !important;
  color: #000 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35) !important;
}

/* 補助テキスト */
.ff-sub {
  font-size: 0.95rem !important;
  color: #eee !important;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .ff-grid {
    grid-template-columns: 1fr !important;
  }
  .ff-title {
    font-size: 1.9rem !important;
  }
}

/* 入力欄の文字サイズアップ */
.ff-input,
.ff-select {
  font-size: 1.25rem !important;
  padding: 16px !important;
}

/* チェックボックス拡大 */
.ff-checkbox {
  transform: scale(1.6) !important;
  margin-right: 10px !important;
  cursor: pointer !important;
}