/* === ポケモンクエスト サイト - カラフルテーマ === */
html { overflow-y: scroll; }

/* 小さい文字はBoldで読みやすく（0.9rem未満相当のクラス） */
.pokemon-no, .pokemon-stats, .type-badge, .stat-label, .ref-quality,
.mini-stat-label, .mini-stat-val, .mini-lv-label, .mini-lv-val,
.pot-badge, .quality-badge, .charm-mini-cell,
small, .text-xs, .text-sm,
.font-bold-sm { font-weight: 700; }
:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #fff;
  --bg-card: #fff;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --accent: #e17055;
  --accent-light: #fab1a0;
  --border: #e8e4e0;
  --shadow: rgba(0,0,0,0.06);

  /* タイプカラー */
  --type-normal: #a8a878;
  --type-fire: #f08030;
  --type-water: #6890f0;
  --type-grass: #78c850;
  --type-electric: #f8d030;
  --type-ice: #98d8d8;
  --type-fighting: #c03028;
  --type-poison: #a040a0;
  --type-ground: #e0c068;
  --type-flying: #a890f0;
  --type-psychic: #f85888;
  --type-bug: #a8b820;
  --type-rock: #b8a038;
  --type-ghost: #705898;
  --type-dragon: #7038f8;
  --type-fairy: #ee99ac;

  /* 品質カラー */
  --quality-normal: #95a5a6;
  --quality-good: #27ae60;
  --quality-very-good: #2980b9;
  --quality-special: #8e44ad;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 2px solid var(--border);
  padding: 6px 0;
}
.site-logo {
  font-size: 1.2rem;
}

/* デスクトップ：ロゴ・ナビ2行・ログインを横並び */
@media (min-width: 769px) {
  .site-header .container {
    align-items: center;
    gap: 16px;
  }
  .site-header .container > .site-logo {
    flex-shrink: 0;
  }
  .site-nav {
    flex: 1;
  }
  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 0;
  }
  .site-nav ul li a {
    display: block;
    padding: 1px 14px 1px 0;
    white-space: nowrap;
    font-size: 0.8rem;
  }
}

/* ===== 認証エリア ===== */
.auth-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.auth-login-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.auth-login-btn:hover { opacity: 0.85; }

.auth-user { position: relative; }

.auth-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.2s;
}
.auth-toggle:hover { background: rgba(0,0,0,0.05); }

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-name {
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}
.auth-caret {
  font-size: 0.7rem;
  opacity: 0.6;
  color: var(--text-primary);
}

.auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 400;
  overflow: hidden;
}
.auth-dropdown.open { display: block; }
.auth-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.auth-dropdown a:hover { background: var(--bg-secondary); }

.site-logo {
  color: var(--accent);
  font-weight: 700;
}

.site-logo span {
  color: var(--text-secondary);
  font-size: 0.85em;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

/* ページヘッダー */
.page-header {
  padding: 12px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.page-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* 検索ボックス */
.search-box input {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(225,112,85,0.15);
}

/* フィルタータグ */
.filter-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-tag.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* カード */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-color: var(--accent-light);
}

/* ポケモンカード */
.pokemon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  position: relative;
  text-align: left;
}
.pokemon-card-body {
  flex: 1;
  min-width: 0;
}

/* 図鑑登録チェックボックス */
.pokedex-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}
.pokedex-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* 図鑑フィルターボタン */
.pokedex-filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pokedex-filter-btn {
  padding: 4px 12px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.pokedex-filter-btn:hover {
  border-color: var(--accent);
}
.pokedex-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pokemon-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
}

.pokemon-no {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1px;
}

.pokemon-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pokemon-types {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.type-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.type-normal { background: var(--type-normal); }
.type-fire, .type-ほのお { background: var(--type-fire); }
.type-water, .type-みず { background: var(--type-water); }
.type-grass, .type-くさ { background: var(--type-grass); }
.type-electric, .type-でんき { background: var(--type-electric); color: #333; }
.type-ice, .type-こおり { background: var(--type-ice); color: #333; }
.type-fighting, .type-かくとう { background: var(--type-fighting); }
.type-poison, .type-どく { background: var(--type-poison); }
.type-ground, .type-じめん { background: var(--type-ground); color: #333; }
.type-flying, .type-ひこう { background: var(--type-flying); }
.type-psychic, .type-エスパー { background: var(--type-psychic); }
.type-bug, .type-むし { background: var(--type-bug); }
.type-rock, .type-いわ { background: var(--type-rock); }
.type-ghost, .type-ゴースト { background: var(--type-ghost); }
.type-dragon, .type-ドラゴン { background: var(--type-dragon); }
.type-fairy, .type-フェアリー { background: var(--type-fairy); }
.type-ノーマル { background: var(--type-normal); }

.pokemon-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ポケモンカードリンク */
.pokemon-card-link {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pokemon-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(225,112,85,0.15);
}

/* ポケモンカード内レシピアイコン */
.pokemon-recipes {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* レシピカード */
.recipe-card {
  padding: 24px;
}

.recipe-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.recipe-card .description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.recipe-card .requirements {
  font-size: 0.85rem;
  background: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
}

/* 品質バッジ */
.quality-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.quality-normal { background: rgba(149,165,166,0.2); color: var(--quality-normal); }
.quality-good { background: rgba(39,174,96,0.2); color: var(--quality-good); }
.quality-very_good { background: rgba(41,128,185,0.2); color: var(--quality-very-good); }
.quality-special { background: rgba(142,68,173,0.2); color: var(--quality-special); }

/* レシピグループカード */
.recipe-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.2s;
}

.recipe-group-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.recipe-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.recipe-group-header .recipe-no {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.recipe-group-header h3 {
  font-size: 1.15rem;
  color: var(--accent);
  flex: 1;
  margin: 0;
}

.recipe-group-header .cooking-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.recipe-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.recipe-qualities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.recipe-quality-col {
  text-align: center;
}

.quality-header {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.quality-header.quality-normal { background: rgba(149,165,166,0.15); color: var(--quality-normal); }
.quality-header.quality-good { background: rgba(39,174,96,0.15); color: var(--quality-good); }
.quality-header.quality-very_good { background: rgba(41,128,185,0.15); color: var(--quality-very-good); }
.quality-header.quality-special { background: rgba(142,68,173,0.15); color: var(--quality-special); }

.quality-pokemon {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pokemon-name-small {
  font-size: 0.75rem;
  color: var(--text-primary);
  padding: 2px 4px;
  background: var(--bg-primary);
  border-radius: 4px;
  display: block;
}

@media (max-width: 600px) {
  .recipe-qualities {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* シミュレーター */
.simulator {
  max-width: 900px;
  margin: 0 auto;
}

/* 鍋の種類セレクター */
.pot-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pot-selector-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pot-type-btn {
  padding: 5px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.pot-type-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.pot-type-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.sim-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 6px;
}

/* 鍋エリア */
.pot-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  margin-right: 28px;
}

.pot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pot-lid-knob {
  width: 40px;
  height: 18px;
  background: linear-gradient(180deg, #dac84a 0%, #b5a215 100%);
  border: 3px solid #4a3e08;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 2;
}

.pot-lid {
  background: linear-gradient(180deg, #cab73e 0%, #b5a215 55%, #8a7612 100%);
  border: 3px solid #4a3e08;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  height: 68px;
  position: relative;
  z-index: 2;
  align-self: stretch;
  box-shadow: inset 0 3px 8px rgba(255,255,180,0.3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pot-lid-info {
  background: rgba(255,255,255,0.88);
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.pot-lid-info-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}

.pot-lid-info-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: #333;
  line-height: 1.1;
}

.pot-container {
  position: relative;
  background: linear-gradient(180deg, #cab73e 0%, #b5a215 40%, #756915 100%);
  border: 3px solid #4a3e08;
  border-radius: 0 0 14px 14px;
  padding: 14px 16px 18px;
  box-shadow: inset 0 3px 8px rgba(255,255,180,0.25), 0 4px 12px rgba(0,0,0,0.3);
}

.pot-handle {
  position: absolute;
  width: 24px;
  height: 96px;
  background: transparent;
  border: 5px solid #4a3e08;
  top: 50%;
  transform: translateY(-50%);
}

.pot-handle-left {
  left: -25px;
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: inset 4px 0 6px rgba(202,183,62,0.7),
              inset 0 4px 6px rgba(202,183,62,0.5),
              inset 0 -4px 6px rgba(117,105,21,0.5);
}

.pot-handle-right {
  right: -25px;
  border-left: none;
  border-radius: 0 14px 14px 0;
  box-shadow: inset -4px 0 6px rgba(154,128,18,0.7),
              inset 0 4px 6px rgba(202,183,62,0.5),
              inset 0 -4px 6px rgba(117,105,21,0.5);
}

.pot-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pot-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pot-slot {
  width: 88px;
  height: 88px;
  background: #3a3208;
  border: 2px solid #252000;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  transition: background 0.15s;
}

.pot-slot:hover {
  background: #4a4010;
}

.pot-slot img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.15s;
}

.pot-slot img:hover {
  transform: scale(0.9);
}


.reset-btn {
  width: 52px;
  height: 52px;
  background: #e74c3c;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s, background 0.15s;
}

.reset-btn:hover {
  transform: scale(1.1);
  background: #c0392b;
}

.reset-btn svg {
  width: 100%;
  height: 100%;
}

/* 素材ピッカー */
.picker-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ingredient-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ingredient-btn {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}

.ingredient-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.ingredient-btn img {
  width: 100%;
  aspect-ratio: auto;
  display: block;
  border-radius: 5px;
}

.result-box {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
}

.result-box h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 4px;
}

/* トップナビカード */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.nav-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px;
  text-align: center;
  transition: all 0.3s;
  display: block;
}

.nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0;
  line-height: 1;
}

.nav-card h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.nav-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* テーブル */
.data-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: var(--accent);
  color: #fff;
}

.data-table td {
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: rgba(225,112,85,0.04);
}

/* カウント */
.result-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.result-count strong {
  color: var(--accent);
}

/* フッター */
.site-footer {
  color: var(--text-secondary);
  border-top: 2px solid var(--border);
}

/* パンくず */
.breadcrumb a {
  color: var(--accent);
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .ingredient-slot {
    width: 80px;
    height: 80px;
  }

  .ingredient-slots {
    gap: 8px;
  }

  /* ヘッダー：common.cssのorder制御に従う */

  /* 開いたナビをドロップダウン */
  .site-nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 250;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-top: 2px solid var(--accent);
  }

  .site-nav.open ul {
    padding: 8px 0;
  }

  .site-nav.open ul li a {
    display: block;
    padding: 10px 20px;
  }

  .site-nav.open ul li a:hover,
  .site-nav.open ul li a.active {
    background: rgba(225,112,85,0.07);
  }
}

/* 鍋の色バリエーション */
/* 鉄（ダークグレー） */
.pot-iron .pot-lid-knob {
  background: linear-gradient(180deg, #909090 0%, #606060 100%);
  border-color: #282828;
}
.pot-iron .pot-lid {
  background: linear-gradient(180deg, #838383 0%, #606060 55%, #404040 100%);
  border-color: #282828;
  box-shadow: inset 0 3px 8px rgba(220,220,220,0.15);
}
.pot-iron .pot-container {
  background: linear-gradient(180deg, #838383 0%, #606060 40%, #404040 100%);
  border-color: #282828;
  box-shadow: inset 0 3px 8px rgba(220,220,220,0.1), 0 4px 12px rgba(0,0,0,0.3);
}
.pot-iron .pot-handle {
  border-color: #282828;
}
.pot-iron .pot-handle-left {
  box-shadow: inset 4px 0 6px rgba(130,130,130,0.7),
              inset 0 4px 6px rgba(130,130,130,0.5),
              inset 0 -4px 6px rgba(40,40,40,0.5);
}
.pot-iron .pot-handle-right {
  box-shadow: inset -4px 0 6px rgba(100,100,100,0.7),
              inset 0 4px 6px rgba(130,130,130,0.5),
              inset 0 -4px 6px rgba(40,40,40,0.5);
}

/* 銅（ブラウン/オレンジ） */
.pot-copper .pot-lid-knob {
  background: linear-gradient(180deg, #e09870 0%, #b86830 100%);
  border-color: #6e3c14;
}
.pot-copper .pot-lid {
  background: linear-gradient(180deg, #d8844e 0%, #b86830 55%, #8c4a20 100%);
  border-color: #6e3c14;
  box-shadow: inset 0 3px 8px rgba(255,190,130,0.3);
}
.pot-copper .pot-container {
  background: linear-gradient(180deg, #d8844e 0%, #b86830 40%, #8c4a20 100%);
  border-color: #6e3c14;
  box-shadow: inset 0 3px 8px rgba(255,190,130,0.25), 0 4px 12px rgba(0,0,0,0.3);
}
.pot-copper .pot-handle {
  border-color: #6e3c14;
}
.pot-copper .pot-handle-left {
  box-shadow: inset 4px 0 6px rgba(220,130,80,0.7),
              inset 0 4px 6px rgba(220,130,80,0.5),
              inset 0 -4px 6px rgba(140,74,32,0.5);
}
.pot-copper .pot-handle-right {
  box-shadow: inset -4px 0 6px rgba(180,104,50,0.7),
              inset 0 4px 6px rgba(220,130,80,0.5),
              inset 0 -4px 6px rgba(140,74,32,0.5);
}

/* 銀（シルバーグレー） */
.pot-silver .pot-lid-knob {
  background: linear-gradient(180deg, #d8d8d8 0%, #a0a0a0 100%);
  border-color: #505050;
}
.pot-silver .pot-lid {
  background: linear-gradient(180deg, #c8c8c8 0%, #a0a0a0 55%, #707070 100%);
  border-color: #505050;
  box-shadow: inset 0 3px 8px rgba(255,255,255,0.3);
}
.pot-silver .pot-container {
  background: linear-gradient(180deg, #c8c8c8 0%, #a0a0a0 40%, #606060 100%);
  border-color: #505050;
  box-shadow: inset 0 3px 8px rgba(255,255,255,0.2), 0 4px 12px rgba(0,0,0,0.3);
}
.pot-silver .pot-handle {
  border-color: #505050;
}
.pot-silver .pot-handle-left {
  box-shadow: inset 4px 0 6px rgba(200,200,200,0.7),
              inset 0 4px 6px rgba(200,200,200,0.5),
              inset 0 -4px 6px rgba(80,80,80,0.5);
}
.pot-silver .pot-handle-right {
  box-shadow: inset -4px 0 6px rgba(160,160,160,0.7),
              inset 0 4px 6px rgba(200,200,200,0.5),
              inset 0 -4px 6px rgba(80,80,80,0.5);
}

/* シミュレーター: 小さい画面では縦並び */
@media (max-width: 600px) {
  .sim-layout {
    flex-direction: column;
    align-items: center;
  }

  .pot-area {
    margin-left: 28px;
    margin-right: 28px;
  }

  .picker-area {
    padding-bottom: 0;
    width: 100%;
    justify-content: flex-start;
  }
}


/* タイプフィルターボタン（小型・色付き） */
.type-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.type-filter-btn {
  padding: 3px 8px;
  border-radius: 12px;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.type-filter-btn:hover { opacity: 0.85; }
.type-filter-btn.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,0.6); }

/* ===== 鍋ボタン レベル表示 ===== */
.pot-type-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pot-lv { font-size: 0.7rem; font-weight: 400; opacity: 0.8; }

/* ===== 料理回数参考表 ===== */
.cook-info-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.cook-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.cook-info-table-wrap {
  overflow-x: auto;
}
.cook-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.cook-info-table thead th {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  text-align: center;
  font-weight: 700;
}
.cook-info-table thead th:first-child { text-align: left; }
.cook-info-table tbody tr:nth-child(even) { background: var(--bg-primary); }
.cook-info-table tbody td {
  padding: 8px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.cook-info-table tbody td:first-child { text-align: left; }
.quality-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.quality-normal  { color: var(--quality-normal); }
.quality-good    { color: var(--quality-good); }
.quality-great   { color: var(--quality-very-good); }
.quality-special { color: var(--quality-special); }
.cook-info-notes {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cook-info-notes li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  border-left: 3px solid var(--accent-light);
}

/* Amazon アフィリエイト スライダー */
.amazon-slider {
  margin: 24px 0 8px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ffd080;
  background: #fffaf2;
}
.amazon-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.amazon-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
}
.amazon-slide:hover { background: #fff3d6; }
.amazon-pr {
  font-size: 0.68rem;
  background: #e07000;
  color: #fff;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.amazon-slide-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.amazon-slide-body {
  flex: 1;
}
.amazon-slide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c05e00;
}
.amazon-slide-sub {
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}
.amazon-slide-arrow {
  font-size: 1.3rem;
  color: #e07000;
  flex-shrink: 0;
}
.amazon-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  background: #fef0d0;
}
.amazon-slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s;
}
.amazon-slider-dots span.active { background: #ff9900; }

/* ===== 個体値チェッカー IVバー ===== */
.iv-bar-wrap {
  flex: 1;
  height: 18px;
  background: var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin: 0 12px;
  display: flex;
}
.iv-bar-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.4s ease;
  flex-shrink: 0;
}
.iv-score {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 72px;
  text-align: right;
  line-height: 1;
}
.iv-score small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.55;
}

/* コメントセクション */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  flex-shrink: 0;
  object-fit: cover;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.comment-name { font-weight: 700; color: var(--text-primary); }
.comment-date { color: var(--text-secondary); }
.comment-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-delete {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.comment-delete:hover { color: #e74c3c; }
.comment-input {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  resize: vertical;
  box-sizing: border-box;
}
.comment-input:focus { border-color: var(--accent); outline: none; }
.comment-submit {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.comment-submit:hover { opacity: 0.85; }
.comment-submit:disabled { opacity: 0.5; cursor: default; }
