/* PC横画面（デスクトップ）用のレイアウト */
@media (orientation: landscape) {
  
  /* ゲームエリアとゲームコンテンツを非表示にして、個別配置 */
  .game-area {
    display: contents;
  }

.game-content {
  display: flex;
  align-items: center;
  justify-content: center; /* 横方向中央寄せ ← これを追加 */
  gap: 20px;
}


  #game-board {

    width: 90vh;
    height: 90vh;
  }

  .tile {
    width: 9vh;
    height: 9vh;
    font-size: 7vh;
  }



  #slot {
    width: 15vh;
    height: 90vh;
    display: flex;
    flex-direction: column; /* ← 縦並びにする！ */
    flex-wrap: wrap; /* 多いときは横に折り返す（任意） */
    align-items: center; /* 横方向の中央揃え */
  }

  #slot .tile {
  margin-top: 10%;
}


  /* ゲームモード時のレイアウト */
  body.game-mode {
    display: grid;
    grid-template-columns: 180px 1fr 65px;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "header game-board slot"
      "controls controls controls";
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
  }

  /* ヘッダーを左に配置 */
  .header {
    grid-area: header;
    width: 100%;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    padding: 20px 15px;
    overflow-y: auto;
    z-index: 100;
  }

  .header-logo {
    max-width: 150px;
    max-height: 60px;
    margin-bottom: 20px;
  }

  .level-display,
  .coin-display {
    width: 100%;
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
    padding: 8px 12px;
  }

  /* level-selectionは非表示 */
  #level-selection {
    display: none;
  }

  /* コントロールを下段全幅に配置 */
  #controls {
    grid-area: controls;
    margin-top: 0;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  /* ゲーム操作ボタン */
  .control-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .control-group button {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
    min-width: 120px;
  }

  /* ナビゲーションボタン */
  .stage-select-group {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .stage-select-group button {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
    min-width: 120px;
  }

  /* スペーサーは不要 */
  .control-spacer {
    display: none;
  }

  /* ホーム画面は通常通り全画面表示 */
  #home-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vh;
    z-index: 1000;
  }

  /* モーダルも全画面表示 */
  .modal-overlay,
  .stage-clear-overlay,
  .game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vh;
    height: 100vh;
    z-index: 20000;
  }

  body.game-mode {
    grid-template-columns: 200px 1fr 65px;
  }

  .header-logo {
    max-width: 180px;
    max-height: 70px;
  }

  .level-display,
  .coin-display {
    font-size: 16px;
    padding: 10px 15px;
  }
}
