@charset "UTF-8";

/*
Theme Name: cocoon-child-master
Template: cocoon-master
*/

/* ===============================
  グリッド（共通）
=============================== */
.tokuren-grid,
.player-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .tokuren-grid,
  .player-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .tokuren-grid,
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.header,
#header {
  background: #111;
  color: #eee;
  border-bottom: 1px solid #333;
}

body {
  background: linear-gradient(
    180deg,
    #111111,
    #1a1a1a,
    #222222
  );
  color: #eee; /* 文字見やすく */
}

/* ===============================
  カード（共通）
=============================== */
.tokuren-card-item,
.player-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all .2s ease;
}

.tokuren-card-item:hover,
.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}




/* ===============================
  カード名（共通）
=============================== */
.tokuren-card-name,
.player-card-name {
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 6px 8px;

  height: 3.6em;
  line-height: 1.4;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===============================
  画像
=============================== */
.tokuren-card-thumb img,
.player-card img {
  width: 100%;
  display: block;
}

.no-image {
  width: 100%;
  height: 140px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* ===============================
  スキル・アビリティ画像
=============================== */
.skill-image-list,
.ability-image-list {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s;
  display: block;
}

.skill-image-list:hover,
.ability-image-list:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px #4fc3f7);
}

/* ===============================
  フィルターUI（新構造）
=============================== */

.archive-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-reset-btn {
  background: #444;
  color: #fff;
  border: 1px solid #777;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.filter-reset-btn:hover {
  background: #666;
}

/* ▼ タブ（タイトル部分） */
.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.filter-tab {
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  border: none;
}

.filter-tab:hover {
  background: #555;
}

/* ▼ 中身エリア（横幅100%） */
.filter-panel {
  width: 100%;
  background: rgba(0,0,0,0.95);
  padding: 15px;
  border-radius: 8px;
}

/* ▼ 各フィルター中身（最初は非表示） */
.filter-content {
  display: none;
}

/* JSで表示される */
.filter-content.active {
  display: block;
}

/* ▼ 中の選択肢 */
.filter-image-group,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ボタン */

/* ===============================
  ボタン（選択時）
=============================== */
.filter-btn.active {
  background-color: #ff3b30;
  color: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 59, 48, 0.8); /* 赤い光の効果 */
}
/* ===============================
  フィルターUI（全体）
=============================== */
.filter-btn {
  border: 1px solid #666;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* フィルター選択肢のホバー */
.filter-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px #4fc3f7);
}

.playstyle-icon {
  width: 85px;
  height: 60px;
  object-fit: contain;
}

.policy-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* ===============================
  フィルター選択肢（選択時）
=============================== */
.filter-btn.active {
  background-color: #ff3b30;
  color: white;
  box-shadow: 0 0 8px 2px rgba(255, 59, 48, 0.9); /* 赤い光の効果 */
}

/* ===============================
  ポジション（3×3）
=============================== */
.skill-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
}

.skill-area-grid .filter-btn {
  width: 60px;
  height: 60px;
  border: none;
}


/* ===============================
  背景
=============================== */
#main {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  padding: 20px;
  border-radius: 12px;
}

body {
  background-size: cover;
  background-position: center;
}

body,
#main,
.entry-content,
.article,
.article-body {
  color: #fff;
}

/* ===============================
  ホーム画面設定
=============================== */
.card-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ===============================
  選手カード詳細画面設定
=============================== */
.player-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.player-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px; /* 名前と画像の間 */
}

.player-name {
  margin: 0;
  font-size: 28px; /* 任意 */
}

.play-style-icon {
  height: 40px; /* ←ここ超重要 */

}

.player-left {
  display: flex;
  flex-direction: column;
}

.player-image {
  width: 100%;
  height: auto;
}

/* ←ここが今回の核心 */
.player-sub-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.sub-icon {
  width: 45%; /* ←2つで横並びにする */
  height: auto;
}

.player-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.status-table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 2px solid #ccc;
}

.status-table div {
  border-bottom: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

/* ★ ラベル行だけ線を消す */
.label-row {
  border-bottom: none !important;
  font-size: 12px;
  color: #aaa;
}

/* ★ 数値を強調 */
.value-row {
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.value-row:last-child {
  font-size: 18px;
  color: gold;
}

.mutotsu-value {
  display: inline;
}

.kantotsu-value {
  display: none;
}

.total-cell {
  grid-row: span 2; /* ←これがキモ */
  grid-column: 6;
  grid-row: 6 / span 2; /* ← 6行目から2行使う */
  border: 2px solid #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.total-label {
  font-size: 12px;
  color: #aaa;
}

.total-value {
  font-size: 20px;
  font-weight: bold;
}

.total-label,
.total-value {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.style-position-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.playstyle-box img {
  height: 60px;
}

.position-box img {
  height: 60px;
}

.parameter-header {
  display: flex;
  align-items: center;
  gap: 10px; /* ←これで横に余白 */
}

.level-switch button {
  padding: 6px 14px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #444;
  cursor: pointer;

  /* ▼ グラデーション */
  background: linear-gradient(180deg, #555, #222);
  color: #fff;

  /* ▼ 立体感 */
  box-shadow: 0 3px 0 #111;

  /* ▼ アニメーション */
  transition: all 0.2s ease;
}

.level-switch button:hover {
  background: linear-gradient(180deg, #666, #333);
}

.level-switch button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #111;
}

.level-switch button.active {
  background: linear-gradient(180deg, #ffd700, #c9a100);
  color: #000;
  border-color: #ffcc00;

  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-grid,
.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.skill-item img,
.ability-item img {
  width: 100%;
  height: auto;
}


.player-skill-ability h2 {
  margin-bottom: 10px;
}

/* ← これがポイント */
.skill-ability-list {
  display: block; /* ← flexにしない */
}

/* 1行ごとに2列 */
.skill-ability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* 中央寄せ */
.skill-col,
.ability-col {
  text-align: center;
}

.skill-col img,
.ability-col img {
  width: 100%;
  height: 60px;        /* ← 好きな高さに調整OK */
  object-fit: contain; /* ← 画像を潰さない */
}

.player-recommend {
  max-width: 1200px;
  margin: 40px auto;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: none;   /* ← これが一番重要 */
  width: 100%;       /* ← 画面いっぱい使う */
  margin: 0 auto 40px;
}

@media (max-width: 768px) {

  .player-top {
    display: block; /* ← 横並びやめる */
  }

  .player-left,
  .player-right {
    width: 100%;
  }

  /* 3列に変更 */
  .recommend-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  /* タイトル非表示 */
  .tokuren-title {
    display: none;
  }

}

/* ===============================
  特練カード詳細画面設定
=============================== */
/* 2カラムレイアウト */
.tokuren-detail-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.tokuren-left {
  flex: 1;
  max-width: 45%; /* 左側のカード画像は45% */
}

.tokuren-left img {
  width: 100%; /* 画像は100%で広がる */
  height: auto;
}

.tokuren-right {
  flex: 1;
  max-width: 50%; /* 右側のテキストは50% */
}

.tokuren-story {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #ccc;
}

.story-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.story-text {
  font-size: 1rem;
  margin-top: 10px;
  line-height: 1.6;
}

.label {
  color: #fff;              /* 白 */
  font-weight: bold;        /* 太字 */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .tokuren-detail-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .tokuren-left, .tokuren-right {
    max-width: 100%;
  }

  .tokuren-story {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* ホーム画面用 */
.home-buttons {
  text-align: center;
  margin-top: 40px;
}

.home-btn {
  display: inline-block;
  padding: 20px 40px;
  margin: 10px;
  font-size: 18px;
  background: #007bff;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.home-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .player-name {
    font-size: 22px;
  }

  .play-style-icon {
    height: 28px;
  }

  .player-name-wrap {
    gap: 6px;
  }
}


/* ===============================
  ランキング画面設定
=============================== */
.ranking-nav a {
  padding: 8px 12px;
  margin-right: 6px;
  background: #333;
  color: #fff;
  border-radius: 6px;
}

.ranking-nav a.active {
  background: #fff;
  color: #000;
  font-weight: bold;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ranking-item {
  position: relative;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.rank-num {
  font-weight: bold;
}

.rank-value {
  font-weight: bold;
}


/* ===============================
  フッター設定
=============================== */
.custom-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

.footer-links a {
  margin: 0 10px;
}

