/* ======== 基本リセット ======== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ======== 画面全体 ======== */
  body.bg-dark {
    background-color: #000; /* 念のための指定 */
    color: #fff;
  }
  
  /* 
    ======== ゲーム背景 ========
    - 背景の上に半透明オーバーレイを追加し、中央UIを強調
  */
  .game-bg-container {
    /* お好みの背景画像に差し替えてください */
    background: url("bg.jpg") no-repeat center center;
    background-size: cover;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .game-bg-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  .tab-content.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
  
    /* 表示時のフェードインアニメ */
    animation: fadeIn 0.4s ease forwards;
    opacity: 0; /* 非表示状態から */
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  /* 隠す用 */
  .hidden {
    display: none !important;
  }
  
  /* ======== ソシャゲ風のボタンクラス ======== */
  .btn-soshage {
    display: inline-block;
    padding: 14px 26px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #444;
    border: none;
    border-radius: 12px;
    cursor: pointer;
  
    /* 金色 → オレンジの派手なグラデーション */
    background: linear-gradient(to bottom, #ffdf66 0%, #ff9800 100%);
    /* 光ってるような内側シャドウ＆外側シャドウ */
    box-shadow:
      0 0 8px rgba(255, 195, 0, 0.6),         /* 外側に柔らかい光 */
      inset 0 0 6px rgba(255, 255, 255, 0.6); /* 内側が少し輝く */
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-soshage:hover {
    transform: scale(1.08);
    box-shadow:
      0 0 12px rgba(255, 220, 128, 0.8),
      inset 0 0 8px rgba(255, 255, 255, 0.8);
  }
  
  /* ======== ガチャカプセルのアニメーション ======== */
  .capsule {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    transition: transform 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  .capsule img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  .spin {
    animation: spin 0.5s infinite linear;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  
  /* ======== ガチャ結果オーバーレイ ======== */
  .result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .result-content {
    background-color: rgba(255,255,255,0.9);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
  }
  
  /* ガチャ結果アイテム一覧 */
  .result-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
  }
  
  /* 各ガチャ結果アイコン */
  .result-box {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
  
    /* 背景グラデーション(淡い) */
    background: linear-gradient(135deg, #ffffff 0%, #f2f2f2 100%);
    box-shadow:
      2px 2px 5px rgba(0,0,0,0.2),
      inset 0 0 10px rgba(255,255,255,0.4);
  
    display: flex;
    justify-content: center;
    align-items: center;
  
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.4s, opacity 0.4s;
  }
  .appear {
    animation: appear 0.4s forwards ease;
  }
  @keyframes appear {
    0% {
      opacity: 0;
      transform: scale(0.5);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  .result-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }
  
  /* NEWラベル */
  .new-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffea00;
    color: #d00;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
  }
  
  /* レアリティ表現を派手に */
  .gray   { border: 3px solid #aaa; box-shadow: 0 0 8px rgba(170,170,170,0.4) inset; }
  .blue   { border: 3px solid #3498db; box-shadow: 0 0 8px rgba(52,152,219,0.6); }
  .green  { border: 3px solid #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,0.6); }
  .purple { border: 3px solid #9b59b6; box-shadow: 0 0 8px rgba(155,89,182,0.6); }
  .gold   { border: 3px solid gold;    box-shadow: 0 0 10px rgba(255,215,0,0.8); }
  
  /* ======== オーバーレイを閉じるボタンの例 ======== */
  .close-overlay-button {
    margin-top: 16px;
    padding: 10px 20px;
    background-color: #dc3545; /* .btn-danger 風 */
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* ======== 育成画面のカード ======== */
  .char-box {
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 6px rgba(255,255,255,0.2);
    backdrop-filter: blur(3px);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
  }
  .char-box:hover {
    transform: scale(1.02);
  }
  .char-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
  }
  
  /* 育成アイテム */
  .item-box {
    display: inline-block;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 6px;
    text-align: center;
    transition: transform 0.2s;
  }
  .item-box:hover {
    transform: scale(1.05);
  }
  .item-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
  }
  
  /* ======== ポーション使用モーダル ======== */
  .use-item-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .use-item-content {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    text-align: center;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
  }
  .use-item-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  /* 
   タブ風ボタンのカスタムクラス: .tab-nav-soshage
   ふんわり光るグラデーションや角丸を付けて「丸みのあるタブ」に。
*/
/* モダン風タブボタン */
.nav-link.tab-nav-soshage {
  background: #007bff;      /* フラットなブルー */
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
}

.nav-link.tab-nav-soshage:hover {
  background: #0056b3;      /* ホバー時は少し濃いブルー */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link.tab-nav-soshage.active {
  background: #0056b3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* モダン風ガチャ実行ボタン */
.btn-soshage {
  background: #28a745;     /* フラットなグリーン */
  color: #fff;
  font-size: 18px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-soshage:hover {
  background: #1e7e34;     /* ホバー時は濃い緑 */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
