/* Big Bamb 共通スタイル（単一CSSファイル） */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #1d1d1f;
  background-color: #f5f5f7;
  line-height: 1.6;
}

a {
  color: #0f62fe;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.admin-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 32px 16px;
}

.admin-header,
.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.admin-logo {
  font-weight: 600;
  font-size: 20px;
}

.admin-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.admin-login-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.admin-login-title {
  margin: 0 0 24px;
  font-size: 24px;
}

.admin-alert-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #ffe5e5;
  color: #c11818;
  border-radius: 12px;
  font-size: 14px;
}

.admin-alert-success {
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: #e5f5e8;
  color: #1b7f3a;
  border-radius: 12px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
}

.form-group input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  font-size: 14px;
  outline: none;
  background-color: #f9f9fb;
}

.form-group input:focus {
  border-color: #0f62fe;
  box-shadow: 0 0 0 1px rgba(15, 98, 254, 0.2);
  background-color: #ffffff;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f62fe, #2f6bff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 98, 254, 0.35);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.35);
}

.admin-dashboard {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.admin-dashboard-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5ea;
  text-align: left;
}

.table th {
  font-weight: 600;
  background-color: #f5f5f7;
}

.pagination {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.pagination .page {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  font-size: 13px;
}

.pagination .page.current {
  background-color: #0f62fe;
  color: #ffffff;
  border-color: #0f62fe;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.user-detail-grid dl {
  margin: 0;
}

.user-detail-grid dt {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

.user-detail-grid dd {
  margin: 0;
  font-size: 14px;
}

.page-links {
  margin-top: 24px;
  font-size: 14px;
}

.clickable-row {
  cursor: pointer;
}

 .stock-chart-wrapper {
  margin-top: 24px;
}

/* =========================================================
   フロント共通レイアウト（ヘッダー / メニュー / フッター）
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  height: 32px;
}

.mypage-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f7, #ffffff);
}

.mypage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.25s ease-out;
  z-index: 110;
}

.slide-menu.open {
  right: 0;
}

.slide-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-mypage-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f7, #ffffff);
  cursor: pointer;
}

.slide-mypage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.slide-username {
  font-size: 15px;
  font-weight: 600;
}

.slide-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-menu nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: #1d1d1f;
  text-decoration: none;
}

.slide-menu nav li a:hover {
  background-color: #f5f5f7;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 105;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* メインコンテンツ */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

@media (min-width: 768px) {
  main {
    padding: 32px 24px 48px;
  }
}

/* ログイン案内（トップ用） */
.login-prompt-simple {
  margin: 24px auto 0;
  max-width: 480px;
  padding: 24px 16px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.line-login-button-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #1d1d1f;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.line-login-button-simple svg {
  display: block;
}

.line-login-button-simple span {
  line-height: 1;
}

/* フッター */
.site-footer {
  padding: 16px 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 13px;
  color: #555555;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-menu a {
  font-size: 13px;
}

.footer-copy a {
  color: inherit;
}

/* ----- テンプレ：インライン廃止用（単一CSSへ集約） ----- */

.login-line-btn-wrap {
  text-align: center;
}

.landing-main {
  padding: 24px;
  max-width: 36rem;
  margin: 0 auto;
}

.alert-error {
  color: #b00020;
  line-height: 1.6;
}

body.page-line-friend {
  padding: 32px;
  max-width: 32rem;
  margin: 0 auto;
}

/* =========================================================
   ポケちゃん（ポケモンチャンピオンズ攻略）
   ========================================================= */

.poke-main {
  max-width: 960px;
}

.poke-hero {
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
  border-radius: 24px;
  padding: 32px 24px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.poke-hero-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1d1d1f;
}

@media (min-width: 768px) {
  .poke-hero-title {
    font-size: 1.75rem;
  }
}

.poke-hero-lead {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

.poke-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.poke-btn-primary,
.poke-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.poke-btn-primary {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(193, 18, 31, 0.28);
}

.poke-btn-primary:hover {
  opacity: 0.94;
  text-decoration: none;
}

.poke-btn-secondary {
  background-color: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.poke-btn-secondary:hover {
  background-color: #f5f5f7;
  text-decoration: none;
}

.poke-section {
  margin-bottom: 40px;
}

.poke-h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poke-h3 {
  margin: 18px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

.poke-series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.poke-series-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background-color: #ffffff;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.poke-series-tab:hover {
  text-decoration: none;
  background-color: #f5f5f7;
}

.poke-series-tab.is-active {
  color: #ffffff;
  border-color: #c1121f;
  background: linear-gradient(135deg, #e63946, #c1121f);
}

.poke-move-filters {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.poke-move-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.poke-move-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.poke-move-type-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.poke-move-type-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.poke-move-type-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.poke-move-type-check .pokedex-type {
  opacity: 0.55;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.poke-move-type-check input:checked + .pokedex-type {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.poke-move-type-check input:focus-visible + .pokedex-type {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.poke-move-filter-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.35;
}

.poke-move-class-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.poke-move-class-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0;
}

.poke-admin-api-log {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  overflow-x: auto;
  max-height: 22rem;
}

.poke-move-sort-select {
  max-width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}

.poke-article-item.is-move-filter-hidden {
  display: none;
}

.poke-series-caption {
  margin: 0 0 10px;
  font-size: 13px;
  color: #666666;
}

.poke-move-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  vertical-align: middle;
}

.poke-move-type-unknown { background-color: #888888; }
.poke-move-type-normal { background-color: #919aa2; }
.poke-move-type-fire { background-color: #ff9d55; }
.poke-move-type-water { background-color: #5090d6; }
.poke-move-type-electric { background-color: #f4d23c; color: #3a2f00; }
.poke-move-type-grass { background-color: #63bc5a; }
.poke-move-type-ice { background-color: #73cec0; color: #103038; }
.poke-move-type-fighting { background-color: #ce416b; }
.poke-move-type-poison { background-color: #aa6bc8; }
.poke-move-type-ground { background-color: #d97845; }
.poke-move-type-flying { background-color: #89aae3; color: #1f2d4a; }
.poke-move-type-psychic { background-color: #fa7179; }
.poke-move-type-bug { background-color: #91c12f; color: #1f3000; }
.poke-move-type-rock { background-color: #c5b78c; color: #3a3018; }
.poke-move-type-ghost { background-color: #5269ad; }
.poke-move-type-dragon { background-color: #0b6dc3; }
.poke-move-type-dark { background-color: #5a5465; }
.poke-move-type-steel { background-color: #5a8ea2; }
.poke-move-type-fairy { background-color: #ec8fe6; color: #4b1548; }

.poke-move-desc {
  margin: 0.45rem 0 0;
  grid-column: 1 / -1;
  display: block;
  padding-left: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #4a4a4a;
  border-left: 0;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poke-base-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poke-base-stat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.poke-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .poke-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.poke-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
}

.poke-card:hover {
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.poke-card-icon {
  font-size: 1.5rem;
  color: #c1121f;
}

.poke-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.poke-card-desc {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
}

.poke-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poke-article-item {
  margin: 0;
}

.poke-article-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .poke-article-link {
    grid-template-columns: 140px 1fr auto;
    align-items: center;
  }
}

.poke-article-link:hover {
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.poke-article-cat {
  font-size: 12px;
  font-weight: 600;
  color: #c1121f;
}

.poke-article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
}

.poke-article-meta {
  font-size: 13px;
  color: #666666;
}

.poke-more {
  margin: 16px 0 0;
  text-align: right;
  font-size: 15px;
}

.poke-page-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.35;
}

.poke-lead {
  margin: 0 0 24px;
  line-height: 1.75;
  color: #333333;
}

.poke-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poke-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  text-decoration: none;
  color: #1d1d1f;
}

.poke-chip:hover {
  background-color: #f5f5f7;
  text-decoration: none;
}

.poke-chip.is-active {
  background-color: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

.poke-alert {
  padding: 16px;
  border-radius: 16px;
  background-color: #fff4e5;
  color: #5c3d00;
  line-height: 1.6;
}

.poke-alert code {
  font-size: 0.9em;
}

.poke-section-prose .poke-prose {
  margin: 0 0 16px;
  line-height: 1.75;
  color: #333333;
}

.poke-breadcrumb {
  font-size: 13px;
  color: #555555;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.poke-bc-sep {
  color: #a1a1a6;
  font-size: 12px;
}

.poke-article-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c1121f;
}

.poke-article-h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .poke-article-h1 {
    font-size: 1.75rem;
  }
}

.poke-article-dates {
  margin: 0 0 24px;
  font-size: 13px;
  color: #666666;
}

.poke-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #333333;
}

.poke-article-body h2 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
}

.poke-article-body p,
.poke-article-body ul {
  margin: 0 0 16px;
}

.poke-article-body ul {
  padding-left: 1.25rem;
}

.poke-back {
  margin-top: 32px;
  font-size: 15px;
}

.poke-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poke-search-form {
  margin: 0 0 24px;
}

.poke-search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.poke-search-row {
  display: flex;
  gap: 8px;
}

.poke-search-row input {
  flex: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  padding: 0 12px;
}

.poke-result-count {
  font-size: 14px;
  color: #555555;
}

.pokedex-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .pokedex-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.pokedex-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.pokedex-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.pokedex-card-link:hover {
  text-decoration: none;
}

.pokedex-no {
  font-size: 12px;
  color: #666666;
  margin-bottom: 8px;
}

.pokedex-name {
  font-size: 15px;
  font-weight: 700;
}

.pokedex-sub {
  font-size: 12px;
  color: #666666;
  margin-bottom: 8px;
}

.pokedex-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pokedex-type {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  background-color: #888888;
  color: #ffffff;
}

.pokedex-type-unknown { background-color: #888888; }
.pokedex-type-normal { background-color: #919aa2; }
.pokedex-type-fire { background-color: #ff9d55; }
.pokedex-type-water { background-color: #5090d6; }
.pokedex-type-electric { background-color: #f4d23c; color: #3a2f00; }
.pokedex-type-grass { background-color: #63bc5a; }
.pokedex-type-ice { background-color: #73cec0; color: #103038; }
.pokedex-type-fighting { background-color: #ce416b; }
.pokedex-type-poison { background-color: #aa6bc8; }
.pokedex-type-ground { background-color: #d97845; }
.pokedex-type-flying { background-color: #89aae3; color: #1f2d4a; }
.pokedex-type-psychic { background-color: #fa7179; }
.pokedex-type-bug { background-color: #91c12f; color: #1f3000; }
.pokedex-type-rock { background-color: #c5b78c; color: #3a3018; }
.pokedex-type-ghost { background-color: #5269ad; }
.pokedex-type-dragon { background-color: #0b6dc3; }
.pokedex-type-dark { background-color: #5a5465; }
.pokedex-type-steel { background-color: #5a8ea2; }
.pokedex-type-fairy { background-color: #ec8fe6; color: #4b1548; }

.pokemon-form-switch {
  border: 0;
  cursor: pointer;
}

.pokemon-form-switch.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9) inset;
  opacity: 1;
}

.poke-ability-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poke-ability-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poke-ability-name {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1d1d1f;
  background-color: #f5f5f7;
}

.poke-ability-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
}

.pokedex-stat {
  font-size: 12px;
  color: #555555;
}

.poke-alert-success {
  background-color: #e5f5e8;
  color: #1b7f3a;
}

.poke-detail-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 14px;
  align-items: start;
}

.poke-detail-left,
.poke-detail-data {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poke-detail-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.poke-detail-block {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.poke-detail-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.poke-detail-types {
  justify-content: flex-start;
  margin-bottom: 0;
}

.poke-ability-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.poke-ability-tab {
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.poke-ability-tab.is-active {
  background: linear-gradient(135deg, #e63946, #c1121f);
  border-color: #c1121f;
  color: #ffffff;
}

.poke-ability-panels {
  border-top: 1px solid #ececf0;
  padding-top: 8px;
}

.poke-ability-panel {
  display: none;
  font-size: 13px;
  color: #555555;
  line-height: 1.55;
}

.poke-ability-panel.is-active {
  display: block;
}

.poke-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poke-stat-row {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.poke-stat-label,
.poke-stat-value {
  font-size: 12px;
  font-weight: 600;
}

.poke-stat-track {
  height: 10px;
  background-color: #ececf0;
  border-radius: 999px;
  overflow: hidden;
}

.poke-stat-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c8bf5, #57c7ff);
}

.poke-detail-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.poke-stat-total-inline {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ececf0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
}

.poke-stat-total-inline strong {
  font-size: 22px;
  line-height: 1;
}

.poke-effective-inline {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.poke-effective-item {
  color: #444444;
  font-weight: 600;
}

.poke-effective-item.is-high {
  color: #1f6feb;
}

.poke-effective-item.is-low {
  color: #cf222e;
}

.admin-move-import-textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid #d7d7dd;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

.admin-move-import-actions {
  margin-top: 8px;
}

.poke-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.poke-statcalc {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.poke-statcalc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.poke-statcalc-nature {
  min-height: 36px;
  border: 1px solid #d7d7dd;
  border-radius: 10px;
  padding: 0 10px;
  background-color: #ffffff;
}

.poke-statcalc-help {
  margin: 8px 0 10px;
  font-size: 12px;
  color: #666666;
}

.poke-statcalc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poke-statcalc-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px 54px;
  align-items: center;
  gap: 8px;
}

.poke-statcalc-label,
.poke-statcalc-value {
  font-size: 12px;
  font-weight: 600;
}

.poke-statcalc-label.is-nature-up {
  color: #1f6feb;
}

.poke-statcalc-label.is-nature-down {
  color: #cf222e;
}

.poke-statcalc-value.is-nature-up {
  color: #1f6feb;
}

.poke-statcalc-value.is-nature-down {
  color: #cf222e;
}

.poke-statcalc-bar {
  height: 10px;
  border-radius: 999px;
  background-color: #ececf0;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}

.poke-statcalc-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
}

.poke-statcalc-point {
  min-height: 32px;
  border: 1px solid #d7d7dd;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 700;
  color: #1d1d1f;
  background-color: #f8f8fb;
}

.poke-statcalc-point.is-plus {
  color: #1f6feb;
  border-color: rgba(31, 111, 235, 0.45);
}

.poke-statcalc-point.is-minus {
  color: #cf222e;
  border-color: rgba(207, 34, 46, 0.45);
}

.poke-statcalc-total {
  margin: 10px 0 0;
  font-size: 13px;
}

.party-slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

@media (min-width: 860px) {
  .party-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.party-slot-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.party-slot-card select,
.party-slot-card textarea {
  width: 100%;
  border: 1px solid #d7d7dd;
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  font-size: 13px;
}

.party-slot-title {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.party-record-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.party-record-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

