@charset "utf-8";

/* ===================================================
   move_tier.css
   最強技ジェネレーター専用スタイル
   rank_creater のデザイン踏襲 + グリッド縮小
   =================================================== */

/* ===== メイングリッドコンテナ（sticky固定）===== */
.move-tier-table {
  width: 1050px;
  background-color: #2c2a2a;
  padding: 0px 0px 12px 0px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  position: sticky;
  top: -80px;
  z-index: 1;
}

/* グリッドが縦に並んだ場合はstickyを解除（rank_createrと同様）*/
.move-tier-table.tierlist_high {
  position: initial;
}

/* ===== タイトルエリア ===== */
.MUTITLE {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  padding: 30px 0px 20px 0;
  line-height: 1.5;
}

.MUTITLE img {
  width: 180px;
  position: absolute;
  right: 5%;
}

.MUTITLE h2 {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.MUTITLE h2::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background-color: rgb(255, 255, 255);
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== アクションボタン域 ===== */
.tierlist-action {
  display: flex;
  width: 1050px;
  justify-content: flex-end;
  align-items: center;
  margin: auto;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 4px;
}

/* rank_createrと共通のボタンスタイル */
.tierlist-action-btn {
  background-color: rgb(73, 73, 73);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 0px 8px 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tierlist-action-btn:hover {
  background-color: rgb(56, 56, 56);
  color: rgb(255, 255, 255);
}

/* 言語トグルボタン */
.lang-toggle {
  display: flex;
  align-items: center;
  background: #3a3838;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 8px 8px;
}

.lang-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: bold;
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #e7412b;
  color: #fff;
}

/* タイトル入力フィールド */
.title-edit-input {
  background-color: #3a3838;
  border: 1px solid #555;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 12px;
  width: 200px;
  outline: none;
  margin: 0 0 8px 8px;
  transition: border-color 0.2s;
}

.title-edit-input:focus {
  border-color: #e7412b;
}

/* ===== 6列グリッド ===== */
.move-grid-inner {
  width: 850px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 0 5px 8px;
}

/* 各マス */
.move-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, #333536 0%, #222425 100%);
  border: 1px solid #4a4a4a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.5);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.move-cell:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 8px rgba(0,0,0,0.6);
  filter: brightness(1.1);
}

.move-cell.over {
  background: linear-gradient(180deg, rgba(233, 233, 18, 0.4) 0%, rgba(200, 200, 10, 0.2) 100%);
  border-color: #e9e912;
}

/* 画像ドロップエリア */
.cell-img-area {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

/* プレースホルダー */
.cell-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.cell-placeholder-icon {
  width: 30px;
  height: 30px;
  border: 2px dashed #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  line-height: 1;
}

.cell-placeholder-txt {
  font-size: 8px;
  color: #fff;
  letter-spacing: 0.06em;
}

/* ドロップされた画像 */
.cell-img-area img.cell-fighter-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 削除ボタン */
.cell-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
  line-height: 1;
}

.move-cell:hover .cell-remove-btn {
  opacity: 1;
}

/* セルラベル（技名）*/
.cell-label {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #ddd;
  padding: 6px 2px 7px;
  border-bottom: 1px solid #333;
  background: linear-gradient(180deg, #1f1d1d 0%, #111 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* 技カテゴリ別カラー */
.label-ground  { color: #2BA240; }
.label-smash   { color: #DEAC18; }
.label-air     { color: #38bdf8; }
.label-sp      { color: #D81A23; }
.label-throw   { color: #ADA9AB; }
.label-special { color: #D81A23; }
.label-other   { color: #fff; }

/* ===== ファイタープール（画面下に表示）===== */
.Fighter_Storage {
  width: 1050px;
  padding: 8px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 0;
}

.Fighter_table {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.Fighter_box {
  display: inline-flex;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 0;
  background-color: #333536;
  border: 1px solid #555;
}

/* プール内画像 */
.Fighter_box .item {
  display: inline-flex;
  width: 68px;
  height: 68px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.Fighter_box .item:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.Fighter_box img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ドラッグ中 */
.item.dragging {
  opacity: 0.4;
}

/* ドロップ対象がホバー中 */
.move-cell.over .cell-img-area {
  background-color: rgba(233, 233, 18, 0.15);
}

/* ===== セクションタイトルバー ===== */
.section {
  width: 1050px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  background-color: #e7412b;
  font-size: 20px;
  text-indent: 20px;
  color: white;
  padding: 8px 0;
  border-radius: 2px;
}

/* ===== レスポンシブ（スマホ・タブレット）===== */
@media (max-width: 900px) {
  .move-tier-table {
    max-width: 98%;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    margin-bottom: 0;
    top: 0;
  }

  .MUTITLE {
    padding: 1% 0;
  }

  .MUTITLE img {
    width: 20%;
    right: 5%;
  }

  .MUTITLE h2 {
    font-size: 14px;
  }

  .MUTITLE h2::after {
    max-width: 40%;
    height: 2px;
    margin-top: 8px;
  }

  .move-grid-inner {
    width: 100%;
    max-width: 98%;
    gap: 3px;
    padding: 0 2px 6px;
  }

  .cell-label {
    font-size: 10px;
    padding: 4px 1px 5px;
  }

  .tierlist-action {
    max-width: 98%;
    width: 100%;
    justify-content: flex-end;
  }

  .Fighter_Storage {
    max-width: 98%;
    width: 100%;
    padding: 6px 0;
  }

  .Fighter_box .item {
    width: 50px;
    height: 50px;
  }

  .title-edit-input {
    width: 150px;
    font-size: 12px;
  }

  .section {
    max-width: 98%;
    width: 100%;
    font-size: 16px;
    text-indent: 12px;
  }
}

@media (max-width: 500px) {
  .Fighter_box .item {
    width: 44px;
    height: 44px;
  }

  .cell-label {
    font-size: 9px;
  }
}
