@import url('https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@400;500;600;700;800;900&display=swap');

body,
#wrapper,
#container,
#contents,
#wikibody,
#wikibody *,
table,
th,
td,
input,
textarea,
select,
button {
  font-family: "M PLUS 2", sans-serif !important;
}

.top-image img {
  width: 60%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto !important;
}

.hidden,
.hidden-data,
.x1 .atwiki-link-img-icon,
.none,
.sns-btn br {
  display: none !important;
}

h1 {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #fff !important;
  -webkit-text-stroke: 5px #1a1a1a;
  paint-order: stroke fill;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, .45);
  letter-spacing: 1px;
  display: inline-block !important;
  transform: skewX(-5deg);
  padding: 4px 12px;
  margin: 10px 0 !important;
  line-height: 1.15 !important;
  border: none !important;
  background: none !important;
}

h2 {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: clamp(13px, 4vw, 20px);
  border-radius: 8px;
  overflow: hidden;
  background-color: #333;
  color: #fff;
  padding: 10px 16px;
  border-left: 8px solid #ff8c00;
}

h3 {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  font-size: clamp(13px, 3.8vw, 17px);
  border-left: 5px solid #ff8c00;
  padding: 4px 0 4px 10px;
  color: #333;
}

.stepicon {
  display: inline-block;
  background-color: #ff8c00;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(255, 140, 0, 0.3);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.story-quote blockquote {
  font-size: 1rem;
  line-height: 1.7;
}

@media screen and (max-width: 480px) {
  .story-quote blockquote {
    font-size: 0.7rem;
  }
}

.x1 img {
  border: none !important;
  transition: opacity 0.2s, transform 0.2s;
}

.x1 a {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

.x1 a:active img {
  opacity: 0.8 !important;
  transform: scale(0.98) !important;
}

.cl,
.nb {
  display: inline-block;
  vertical-align: middle;
}

.nb {
  font-size: 1.2em;
  font-weight: bold;
  font-style: normal;
}

.cl,
.cl a,
.cl h1,
.cl h2,
.cl h3,
.cl h1 a,
.cl h2 a,
.cl h3 a,
.cl h4 a {
  font-size: 1.2em;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: 1px;
  text-decoration: none !important;
  transform: skewX(-8deg);
  padding: 0 5px;
  text-shadow: 1.5px 1.5px 0 #1a1a1a, -1.5px 1.5px 0 #1a1a1a, 1.5px -1.5px 0 #1a1a1a, -1.5px -1.5px 0 #1a1a1a, 2px 0 0 #1a1a1a, -2px 0 0 #1a1a1a, 0 2px 0 #1a1a1a, 0 -2px 0 #1a1a1a, 1px 2px 0 #1a1a1a, -1px 2px 0 #1a1a1a, 1px -2px 0 #1a1a1a, -1px -2px 0 #1a1a1a, 2px 1px 0 #1a1a1a, -2px 1px 0 #1a1a1a, 2px -1px 0 #1a1a1a, -2px -1px 0 #1a1a1a, 3px 3px 5px rgba(0, 0, 0, 0.8);
}

.cl h1,
.cl h2,
.cl h3,
.cl h4 {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 1.4;
}

.cl:hover,
.cl a:hover,
.cl h1:hover,
.cl h2:hover,
.cl h3:hover,
.cl h4:hover {
  color: #fff !important;
  filter: brightness(1.2);
  transition: 0.2s;
}

.gif-walker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 60px;
}

.gif-walker img {
  position: absolute;
  left: -100px;
  animation: walkAround 16s linear infinite;
}

@keyframes walkAround {
  0% {
    left: -100px;
    transform: scaleX(1);
  }
  49.9% {
    transform: scaleX(1);
  }
  50% {
    left: 100%;
    transform: scaleX(-1);
  }
  99.9% {
    transform: scaleX(-1);
  }
  100% {
    left: -100px;
    transform: scaleX(1);
  }
}

.monster-template {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.monster-template.is-ready {
  opacity: 1;
  height: auto;
  overflow: visible;
}

.water-bg,
.fire-bg,
.grass-bg,
.rock-bg,
.thunder-bg {
  border: 5px solid #1a1a1a !important;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 30px auto;
  padding: 0;
  overflow: hidden;
  position: relative;
  background-blend-mode: overlay;
}

.fire-bg {
  background: repeating-linear-gradient(45deg, rgba(211, 26, 56, 0.1) 0 50px, transparent 50px 100px), repeating-linear-gradient(-45deg, rgba(211, 26, 56, 0.1) 0 50px, transparent 50px 100px), linear-gradient(to bottom, #ff8c69 0%, #ffb399 40%, #ffffff 100%) !important;
}

.water-bg {
  background: repeating-linear-gradient(45deg, rgba(26, 115, 211, 0.08) 0 50px, transparent 50px 100px), repeating-linear-gradient(-45deg, rgba(26, 115, 211, 0.08) 0 50px, transparent 50px 100px), linear-gradient(to bottom, #69c5ff 0%, #b3e0ff 40%, #ffffff 100%) !important;
}

.grass-bg {
  background: repeating-linear-gradient(45deg, rgba(41, 211, 26, 0.05) 0 50px, transparent 50px 100px), repeating-linear-gradient(-45deg, rgba(41, 211, 26, 0.05) 0 50px, transparent 50px 100px), linear-gradient(to bottom, #a2e89d 0%, #d1f7d5 40%, #ffffff 100%) !important;
}

.rock-bg {
  background: repeating-linear-gradient(45deg, rgba(194, 133, 75, 0.1) 0 50px, transparent 50px 100px), repeating-linear-gradient(-45deg, rgba(194, 133, 75, 0.1) 0 50px, transparent 50px 100px), linear-gradient(to bottom, #e3b98c 0%, #ebd3ba 40%, #ffffff 100%) !important;
}

.thunder-bg {
  background: repeating-linear-gradient(45deg, rgba(211, 180, 26, 0.05) 0 50px, transparent 50px 100px), repeating-linear-gradient(-45deg, rgba(211, 180, 26, 0.05) 0 50px, transparent 50px 100px), linear-gradient(to bottom, #f3e595 0%, #fdf6d0 40%, #ffffff 100%) !important;
}

.water-bg *:not(.card-title),
.fire-bg *:not(.card-title),
.grass-bg *:not(.card-title),
.rock-bg *:not(.card-title),
.thunder-bg *:not(.card-title) {
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
}

.water-bg strong,
.water-bg b,
.fire-bg strong,
.fire-bg b,
.grass-bg strong,
.grass-bg b,
.rock-bg strong,
.rock-bg b,
.thunder-bg strong,
.thunder-bg b {
  font-size: 1.15em !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
}

.card-header {
  background-color: #3b2c55;
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15)), linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15));
  background-size: 30px 30px;
  padding: 12px 20px;
  border-bottom: 4px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #1a1a1a, -2px 2px 0 #1a1a1a, 2px -2px 0 #1a1a1a, -2px -2px 0 #1a1a1a, 3px 0 0 #1a1a1a, -3px 0 0 #1a1a1a, 0 3px 0 #1a1a1a, 0 -3px 0 #1a1a1a, 3px 3px 3px rgba(0, 0, 0, 0.8);
  transform: skewX(-8deg);
  display: inline-block;
}

.card-icons {
  display: flex;
  gap: 8px;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
}

.card-body {
  padding: 16px;
}

.info-section {
  background: #fff !important;
  border: 1px dashed #bde0fe;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.info-section dl dt {
  font-weight: bold;
  color: #3b2c55;
  margin-top: 10px;
  border-left: 4px solid #3b2c55;
  padding-left: 8px;
}

.info-section dl dd {
  margin: 5px 0 10px 12px;
  font-size: 0.95em;
  line-height: 1.5;
}

.main-visual-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 0;
  box-sizing: border-box;
}

.range-dummy,
.range-box {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.range-box {
  height: 80px !important;
}

.range-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 12px);
  grid-template-rows: repeat(5, 12px);
  gap: 1.5px;
  background: #333;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #000;
}

.r-cell {
  width: 12px;
  height: 12px;
  background: #555;
  border-radius: 1px;
  display: block;
}

.r-c {
  background: #ff5722;
  border: 1px solid #fff;
  display: block;
}

@keyframes pulse-glow-yellow {
  0%, 100% {
    background: #ffeb3b;
    box-shadow: 0 0 3px #ffeb3b;
  }
  50% {
    background: #ffeb3b;
    box-shadow: 0 0 3px #ffeb3b, 0 0 7px rgba(255, 235, 59, 0.6);
  }
}

.r-a {
  display: block;
  animation: pulse-glow-yellow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow-blue {
  0%, 100% {
    background: #2196f3;
    box-shadow: 0 0 3px #2196f3;
  }
  50% {
    background: #2196f3;
    box-shadow: 0 0 3px #2196f3, 0 0 7px rgba(33, 150, 243, 0.6);
  }
}

.r-b {
  display: block;
  animation: pulse-glow-blue 1.5s infinite ease-in-out;
}

.range-label {
  font-size: 11px;
  font-weight: bold;
  color: #888;
  margin-bottom: 2px;
}

.r-note {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  display: block;
  width: 140%;
  white-space: nowrap;
}

table:not([class*="region"]):not(.plugin_region) {
  width: fit-content !important;
  max-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  margin: 0 auto !important;
}

table:not([class*="region"]):not(.plugin_region) th,
table:not([class*="region"]):not(.plugin_region) td {
  border-right: 1px solid #e0e0e0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-top: none !important;
  border-left: none !important;
}

table:not([class*="region"]):not(.plugin_region) tr th:last-child,
table:not([class*="region"]):not(.plugin_region) tr td:last-child {
  border-right: none !important;
}

table:not([class*="region"]):not(.plugin_region) tr:last-child td,
table:not([class*="region"]):not(.plugin_region) tr:last-child th {
  border-bottom: none !important;
}

.skill-panel,
.collect-panel {
  background: #fff !important;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.skill-panel {
  border: 1px solid #d0eaff;
}

.collect-panel {
  border: 1px solid #cce8cf;
}

.skill-panel table,
.collect-panel table {
  width: 100% !important;
  table-layout: fixed;
  word-wrap: break-word;
  border-collapse: collapse;
}

.skill-panel td {
  padding: 8px !important;
  white-space: normal !important;
  word-break: break-all !important;
  line-height: 1.4;
}

.skill-panel td:first-child {
  background-color: #4682b4 !important;
  color: #fff !important;
  font-weight: bold;
  text-align: center !important;
  width: 70px !important;
}

.skill-panel td:last-child {
  background-color: #fff !important;
  text-align: left !important;
}

.collect-panel td,
.collect-panel th {
  padding: 6px 8px !important;
  white-space: normal !important;
  word-break: break-all !important;
  line-height: 1.4;
  font-size: 12px !important;
  vertical-align: middle;
}

.collect-panel tr td:first-child,
.collect-panel tr th:first-child {
  width: 95px !important;
  white-space: nowrap !important;
}

.MAX_table,
.Boss_table {
  max-width: 100%;
  overflow-x: auto;
}

.MAX_table table,
.Boss_table table {
  width: 90% !important;
  max-width: 100% !important;
  margin: 0 auto;
  table-layout: fixed !important;
  word-wrap: break-word;
  border-collapse: collapse;
}

/* MAX_table のセル幅制限を解除して均等配置 */
.MAX_table table td,
.MAX_table table th {
  width: auto !important;
  white-space: normal !important;
}


/* Boss_table 用の設定（width: 1px と white-space: nowrap を除外） */
.Boss_table table td,
.Boss_table table th {
  padding: 6px 8px;
  font-size: 0.85em !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
}

/* --- ボステーブル（.Boss_table）の列幅指定 --- */
.Boss_table table th:nth-child(1),
.Boss_table table td:nth-child(1) {
  width: 60% !important;
}

.Boss_table table th:nth-child(2),
.Boss_table table td:nth-child(2) {
  width: 15% !important;
}

.Boss_table table th:nth-child(3),
.Boss_table table td:nth-child(3) {
  width: 25% !important;
}

/* 最後の列の設定 */
.MAX_table table td:last-child,
.MAX_table table th:last-child,
.Boss_table table td:last-child,
.Boss_table table th:last-child {
  width: auto !important;
  text-align: left !important;
}

/* 画像の自動縮小設定 */
.MAX_table table img,
.Boss_table table img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.gift_table table img {
  max-width: 25px !important;
  width: auto;
  height: auto !important;
  vertical-align: middle;
}

.monster-list-table {
  margin: 0 auto !important;
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}

.monster-list-table th,
.monster-list-table td {
  text-align: center !important;
  vertical-align: middle !important;
  word-break: break-all !important;
}

.monster-list-table td:nth-child(1) img,
.monster-list-table td:nth-child(2) img {
  max-width: 100% !important;
  width: 16vw !important;
  height: auto !important;
}

.monster-list-table td:nth-child(3) {
  line-height: 1.15 !important;
  padding: 6px 2px !important;
}

.monster-list-table td:nth-child(3) a {
  display: inline-block !important;
  margin-bottom: 1px !important;
  font-size: 13px !important;
}

.monster-list-table td:nth-child(3) font,
.monster-list-table td:nth-child(3) span {
  display: block !important;
  color: #8f8ea8 !important;
  letter-spacing: 0 !important;
}

.monster-list-table td:nth-child(4) img,
.monster-list-table td:nth-child(5) img {
  max-width: 100% !important;
  width: 7vw !important;
  height: auto !important;
}

.monster-list-table td:nth-child(5) {
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  padding: 4px 2px !important;
}

@media screen and (min-width: 1024px) {
  .monster-list-table td:nth-child(1) img,
  .monster-list-table td:nth-child(2) img {
    width: 130px !important;
  }
  .monster-list-table td:nth-child(4) img,
  .monster-list-table td:nth-child(5) img {
    width: 50px !important;
  }
}

.evo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  margin-bottom: 15px;
}

.evo-table th {
  padding: 8px;
  font-size: 0.9em;
  color: #fff;
}

.evo-table td {
  background-color: #fff !important;
  border: 1px solid #eee;
  text-align: center;
  padding: 10px 5px;
  vertical-align: top;
}

.evo_table_wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch !important;
}

.evo_table_wrap table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
}

.badge_table table td img {
  width: 65% !important;
  height: auto !important;
  max-width: 65% !important;
  display: block;
  margin: 0 auto;
}

.custom-table {
  width: 100% !important;
  margin-bottom: 15px;
}

.custom-table table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.custom-table td,
.custom-table th {
  border: 1px solid #eee !important;
  padding: 8px 4px !important;
  vertical-align: top !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.custom-table img {
  max-width: 100% !important;
  height: auto !important;
}

.sticky-table-wrapper {
  overflow: auto;
  max-height: 600px;
  max-width: 100%;
}

.sticky-table-wrapper table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.sticky-table-wrapper th,
.sticky-table-wrapper tr:first-child td {
  position: sticky;
  top: 0;
  z-index: 10;
}

.sticky-table-wrapper td:first-child,
.sticky-table-wrapper th:first-child {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 5;
}

.sticky-table-wrapper tr:first-child td:first-child,
.sticky-table-wrapper th:first-child {
  z-index: 15;
}

.responsive-table {
  width: 100%;
  margin: 15px 0;
  box-sizing: border-box;
}

.responsive-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.responsive-table th,
.responsive-table td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  vertical-align: middle;
  box-sizing: border-box;
}

.responsive-table th:first-child,
.responsive-table td:first-child {
  width: 28%;
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  background-color: #f5f5f5;
  font-weight: bold;
  font-size: clamp(8px, 3.2vw, 14px);
}

.responsive-table th:nth-child(2),
.responsive-table td:nth-child(2) {
  width: 72%;
  font-size: clamp(8px, 2.8vw, 12.5px);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 480px) {
  .responsive-table th,
  .responsive-table td {
    padding: 4px 5px;
  }
  .responsive-table th:first-child,
  .responsive-table td:first-child {
    font-size: clamp(8px, 3.5vw, 12px);
  }
  .responsive-table th:nth-child(2),
  .responsive-table td:nth-child(2) {
    font-size: clamp(8px, 2.7vw, 11px);
  }
}

.card-list-container table {
  width: 100% !important;
  max-width: 500px;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.card-list-container td {
  width: 30% !important;
  text-align: center;
  vertical-align: top;
  padding: 6px 4px !important;
  font-size: 11px;
  word-break: break-all;
}

.card-list-container td img {
  width: 100% !important;
  height: auto !important;
}

.xscroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 15px 0;
  padding-bottom: 15px;
}

.xscroll .regionhtml {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 20px;
  min-width: max-content;
}

.xscroll-card {
  display: inline-block;
  width: 280px;
  vertical-align: top;
  white-space: normal;
}

.xscroll-card table {
  width: 100% !important;
  max-width: 280px !important;
  table-layout: fixed;
}

.evo-tab-db-space-t2,
.evo-tab-db-space-t3,
.evo-tab-db-space-t4,
.evo-tab-db-space-food {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
}

.evo-tab-db-space-t2 table,
.evo-tab-db-space-t3 table,
.evo-tab-db-space-t4 table,
.evo-tab-db-space-food table {
  width: 100% !important;
  table-layout: fixed !important;
}

.evo-tab-db-space-t2 th,
.evo-tab-db-space-t3 th,
.evo-tab-db-space-t4 th,
.evo-tab-db-space-food th {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  font-size: 15px !important;
  font-weight: bold !important;
  text-align: left !important;
  padding: 10px 14px !important;
  border-left: 4px solid #3b82f6 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  white-space: nowrap !important;
}

.evo-tab-db-space-t2 td,
.evo-tab-db-space-t3 td,
.evo-tab-db-space-t4 td,
.evo-tab-db-space-food td {
  width: 33.33% !important;
  white-space: normal !important;
  word-break: break-word !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 8px 4px !important;
  vertical-align: middle !important;
  display: table-cell !important;
  text-align: center !important;
}

.evo-tab-db-space-t2 td img,
.evo-tab-db-space-t3 td img,
.evo-tab-db-space-t4 td img,
.evo-tab-db-space-food td img {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  float: none !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.evo-tab-db-space-t2 td strong,
.evo-tab-db-space-t2 td b,
.evo-tab-db-space-t3 td strong,
.evo-tab-db-space-t3 td b,
.evo-tab-db-space-t4 td strong,
.evo-tab-db-space-food td strong,
.evo-tab-db-space-food td b {
  color: #0f172a !important;
  font-size: 13px !important;
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  margin-top: 2px !important;
}

div.chip_table,
.chip_table {
  width: 100% !important;
  margin: 10px 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

div.chip_table table,
.chip_table table {
  width: 100% !important;
  table-layout: fixed !important;
  border-spacing: 0 !important;
  font-size: 0.9em !important;
  background-color: #fff !important;
}

div.chip_table th,
div.chip_table td,
.chip_table th,
.chip_table td {
  border: 1px solid #ddd !important;
  padding: 8px 6px !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: normal !important;
}

div.chip_table th,
.chip_table th {
  background-color: #333 !important;
  color: #fff !important;
  text-align: center !important;
}

div.chip_table td:nth-child(1),
div.chip_table th:nth-child(1),
.chip_table td:nth-child(1),
.chip_table th:nth-child(1) {
  width: 20% !important;
  min-width: 60px !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: #e67e22 !important;
  font-weight: bold !important;
}

div.chip_table td:nth-child(1) img,
.chip_table td:nth-child(1) img {
  width: 100% !important;
  max-width: 55px !important;
  height: auto !important;
  vertical-align: middle !important;
  display: block !important;
  margin: 0 auto 4px auto !important;
}

div.chip_table td:nth-child(2),
div.chip_table th:nth-child(2),
.chip_table td:nth-child(2),
.chip_table th:nth-child(2) {
  width: 35% !important;
  word-break: break-all !important;
}

div.chip_table td:nth-child(3),
div.chip_table th:nth-child(3),
.chip_table td:nth-child(3),
.chip_table th:nth-child(3) {
  width: 45% !important;
  word-break: break-all !important;
}

@media screen and (max-width: 600px) {
  div.chip_table table,
  .chip_table table {
    font-size: 0.72em !important;
  }
  div.chip_table th,
  div.chip_table td,
  .chip_table th,
  .chip_table td {
    padding: 5px 3px !important;
    line-height: 1.3 !important;
  }
  div.chip_table td:nth-child(1) img,
  .chip_table td:nth-child(1) img {
    max-width: 40px !important;
  }
}

.sns-button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}

.sns-btn {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 15px 5px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
  transition: transform 0.2s, background-color 0.2s;
  flex: 1 1 calc(25% - 12px);
  min-width: 110px;
  max-width: 160px;
}

.sns-btn a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.sns-btn img {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  display: block !important;
  vertical-align: top !important;
  border: none !important;
}

.sns-btn a {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 13px;
  line-height: 1 !important;
  position: static;
}

.sns-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  border-color: #bbb;
}

@media screen and (max-width: 768px) {
  .sns-btn {
    flex: 1 1 calc(50% - 12px) !important;
    padding: 12px 5px;
  }
}

.btn-official {
  border-bottom: 4px solid #2e7d32 !important;
}

.btn-discord {
  border-bottom: 4px solid #5865f2 !important;
}

.btn-facebook {
  border-bottom: 4px solid #0674e8 !important;
}

.btn-instagram {
  border-bottom: 4px solid #d62976 !important;
}

.btn-x {
  border-bottom: 4px solid #111111 !important;
}

.btn-youtube {
  border-bottom: 4px solid #c4302b !important;
}

.btn-reddit {
  border-bottom: 4px solid #ff4500 !important;
}

.ss,
.sk,
.ap,
.ak,
.bk,
.ck,
.dk {
  position: relative !important;
  padding: 42px 16px 14px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  letter-spacing: 0.03em !important;
  color: #333 !important;
}

.ss::before,
.sk::before,
.ap::before,
.ak::before,
.bk::before,
.ck::before,
.dk::before {
  position: absolute !important;
  top: 10px !important;
  left: 12px !important;
  background-color: #fff !important;
  font-weight: bold !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  padding: 2px 10px !important;
  border-radius: 6px !important;
}

.ss {
  border: 2px solid transparent !important;
  border-left: 6px solid transparent !important;
  background: linear-gradient(#fff8fc, #fff8fc) padding-box, linear-gradient(90deg, #ff4d6d, #ff9f1c, #ffd166, #06d6a0, #00b4d8, #4d7cff, #9b5de5, #ff4d6d) border-box !important;
}

.ss::before {
  content: "SSランク" !important;
  color: #8b3fbf !important;
  border: 2px solid transparent !important;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(90deg, #ff4d6d, #ff9f1c, #ffd166, #06d6a0, #00b4d8, #4d7cff, #9b5de5) border-box !important;
}

.sk {
  border: 1px solid #d4a017 !important;
  border-left: 6px solid #d4a017 !important;
  background-color: #fffaf0 !important;
}

.sk::before {
  content: "Sランク" !important;
  color: #b8860b !important;
  border: 2px solid #d4a017 !important;
}

.ap {
  border: 1px solid #ff5a5f !important;
  border-left: 6px solid #ff5a5f !important;
  background-color: #fff5f5 !important;
}

.ap::before {
  content: "A+ランク" !important;
  color: #e53935 !important;
  border: 2px solid #ff5a5f !important;
}

.ak {
  border: 1px solid #e53935 !important;
  border-left: 6px solid #e53935 !important;
  background-color: #fff3f3 !important;
}

.ak::before {
  content: "Aランク" !important;
  color: #c62828 !important;
  border: 2px solid #e53935 !important;
}

.bk {
  border: 1px solid #4285d4 !important;
  border-left: 6px solid #4285d4 !important;
  background-color: #f2f7ff !important;
}

.bk::before {
  content: "Bランク" !important;
  color: #2864ad !important;
  border: 2px solid #4285d4 !important;
}

.ck {
  border: 1px solid #70b85a !important;
  border-left: 6px solid #70b85a !important;
  background-color: #f4faf1 !important;
}

.ck::before {
  content: "Cランク" !important;
  color: #4f963e !important;
  border: 2px solid #70b85a !important;
}

.dk {
  border: 1px solid #c8c8c8 !important;
  border-left: 6px solid #888888 !important;
  background-color: #f7f7f7 !important;
  color: #555555 !important;
}

.dk::before {
  content: "Dランク" !important;
  color: #777777 !important;
  border: 2px solid #bdbdbd !important;
}

.zr1,
.ps1 {
  color: #00ff88;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.8), 0 0 12px rgba(0, 255, 136, 0.4);
}

.nd1,
.nd2,
.nd3,
.nd4 {
  width: fit-content;
  width: -moz-fit-content;
  max-width: 100%;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 6px;
  background: #1e2235;
  color: #f8fafc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  line-height: 1.6;
  box-sizing: border-box;
}

.nd1 {
  border-left: 5px solid #00d2ff;
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  border-right: 1px solid rgba(0, 210, 255, 0.1);
  border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.nd2 {
  border-left: 5px solid #00e676;
  border-top: 1px solid rgba(0, 230, 118, 0.2);
  border-right: 1px solid rgba(0, 230, 118, 0.1);
  border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

.nd3 {
  border-left: 5px solid #ff1744;
  border-top: 1px solid rgba(255, 23, 68, 0.2);
  border-right: 1px solid rgba(255, 23, 68, 0.1);
  border-bottom: 1px solid rgba(255, 23, 68, 0.1);
}

.nd4 {
  border-left: 5px solid #ff9100;
  border-top: 1px solid rgba(255, 145, 0, 0.2);
  border-right: 1px solid rgba(255, 145, 0, 0.1);
  border-bottom: 1px solid rgba(255, 145, 0, 0.1);
}

.tb1 {
  background-color: #0d1117 !important;
  color: #e6edf3 !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border: 1px solid #00ff88 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.tb1 table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin-top: 10px !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
  background-color: #161b22 !important;
  border: 1px solid #00ff88 !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.tb1 strong,
.tb1 b {
  color: #00ff88 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.05em !important;
}

.tb1 table td,
.tb1 table th {
  width: 33.33% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.tb1 table tr:first-child td,
.tb1 table th {
  background-color: #1f2937 !important;
  color: #00ff88 !important;
  font-weight: bold !important;
  border: 1px solid #00ff88 !important;
  padding: 9px 4px !important;
  font-size: 1rem !important;
}

.tb1 table td {
  border: 1px solid #00ff88 !important;
  padding: 9px 2px !important;
  color: #f0f6fc !important;
  font-size: 0.9rem !important;
  letter-spacing: -0.02em !important;
}

@media screen and (max-width: 480px) {
  .tb1 {
    padding: 10px 6px !important;
  }
  .tb1 table {
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  .tb1 table tr:first-child td,
  .tb1 table th {
    padding: 7px 2px !important;
    font-size: 0.82rem !important;
  }
  .tb1 table td {
    padding: 8px 1px !important;
    font-size: 0.78rem !important;
  }
}

.event-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card h4,
.event-card h3 {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 1.15rem;
  font-weight: bold;
  color: #1e293b;
  border: none;
  background: transparent;
}

.event-card p {
  margin: 0 0 12px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

.event-card a:not([href*="cmd="]):not([title*="編集"]) {
  display: block;
  margin-top: 12px;
  padding: 10px 16px;
  background-color: #2563eb;
  color: #ffffff !important;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background-color 0.2s, transform 0.1s;
}

.event-card a:not([href*="cmd="]):not([title*="編集"]):hover {
  background-color: #1d4ed8;
  color: #ffffff !important;
  text-decoration: none !important;
}

.event-card a:not([href*="cmd="]):not([title*="編集"]):active {
  transform: scale(0.98);
}

.fit_table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.fit_table th,
.fit_table td {
  font-size: clamp(11px, 2.5vw, 15px) !important;
  line-height: 1.3;
  white-space: normal !important;
  word-break: break-word;
  padding: 6px 3px !important;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 4px 12px;
}

.faq-item .faq-q {
  display: block;
  padding: 5px 40px 5px 0;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.faq-item .faq-q ~ .faq-q {
  border-top: 1px solid #eeeeee;
  margin-top: 2px;
}

.faq-item .faq-q::after {
  content: "＋";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) skewX(8deg);
  font-size: 1.2em;
  color: #555555;
  font-weight: bold;
  text-shadow: none !important;
}

.faq-item .faq-q.open::after {
  content: "－";
  color: #ff9800;
  text-shadow: none !important;
}

.faq-item .nb {
  display: none;
  color: #333333;
  line-height: 1.6;
}

.faq-item .nb.open {
  display: block;
  padding: 6px 0 10px 0;
}

.faq-item .nb-inner {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-item .nb-inner img {
  max-width: 100%;
  height: auto;
}

.faq-item .nb-inner table {
  max-width: 100%;
  box-sizing: border-box;
}

.faq-item .nb-inner a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-item .nb .cl {
  color: #ff9800 !important;
  font-weight: bold !important;
}

.faq-item .nb.open {
  display: block;
  padding: 6px 0 10px 0;
  background-color: #f7f7f7;
}

.tata_3col_table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0;
}

.tata_3col_table td {
  width: 33.33%;
  text-align: center;
  vertical-align: middle;
  padding: 6px 2px;
  font-size: 11px;
  word-break: break-all;
  border: 1px solid #cccccc;
}

.tata_3col_table img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70px;
  display: block;
  margin: 0 auto 4px auto;
}

.tier-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #64748b;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  color: #fff !important;
  font-size: 1.05em;
  font-weight: 700;
  text-align: center;
}

.tier-summary .tier-S,
.tier-summary .tier-A,
.tier-summary .tier-B,
.tier-summary .tier-C,
.tier-summary .tier-D {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 900;
  line-height: 1 !important;
  vertical-align: middle;
  box-sizing: border-box;
}

.content-tier {
  width: 100% !important;
  max-width: 100% !important;
  margin: 15px 0 24px;
  overflow: hidden !important;
}

.content-tier table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  background-color: #ffffff !important;
}

.content-tier th,
.content-tier td {
  box-sizing: border-box !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.content-tier th {
  background: #4682b4 !important;
  color: #fff !important;
  padding: 9px 7px !important;
  font-size: 0.85em !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.content-tier td {
  padding: 9px 7px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #d8dee9 !important;
  font-size: 0.88em !important;
  line-height: 1.55 !important;
}

.content-tier tr:last-child td {
  border-bottom: none !important;
}

.content-tier td:first-child {
  width: 25% !important;
  min-width: 0 !important;
  font-size: 0.82em !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: keep-all !important;
}

.content-tier td:nth-child(2) {
  width: 16% !important;
  min-width: 52px !important;
  max-width: 65px !important;
  padding: 7px 4px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.content-tier td:nth-child(3) {
  width: 59% !important;
  min-width: 0 !important;
  text-align: left !important;
  font-size: 0.82em !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.content-tier .tier-S,
.content-tier .tier-A,
.content-tier .tier-B,
.content-tier .tier-C,
.content-tier .tier-D {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border-radius: 9px !important;
  color: #fff !important;
  font-size: 1.15em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.content-tier .tier-S,
.tier-summary .tier-S {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.content-tier .tier-A,
.tier-summary .tier-A {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.content-tier .tier-B,
.tier-summary .tier-B {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.content-tier .tier-C,
.tier-summary .tier-C {
  background: linear-gradient(135deg, #64748b, #475569) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(71, 85, 105, 0.25);
}

.content-tier .tier-D,
.tier-summary .tier-D {
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}

@media screen and (max-width: 600px) {
  .tier-summary {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .tier-summary .tier-S,
  .tier-summary .tier-A,
  .tier-summary .tier-B,
  .tier-summary .tier-C,
  .tier-summary .tier-D {
    width: 42px;
    height: 42px;
  }
  .content-tier {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .content-tier table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }
  .content-tier th {
    padding: 7px 4px !important;
    font-size: 0.78em !important;
  }
  .content-tier td {
    padding: 8px 4px !important;
    font-size: 0.78em !important;
  }
  .content-tier td:first-child {
    width: 25% !important;
    font-size: 0.76em !important;
  }
  .content-tier td:nth-child(2) {
    width: 16% !important;
    min-width: 50px !important;
    max-width: 60px !important;
  }
  .content-tier td:nth-child(3) {
    width: 59% !important;
    font-size: 0.78em !important;
    line-height: 1.5 !important;
  }
  .content-tier .tier-S,
  .content-tier .tier-A,
  .content-tier .tier-B,
  .content-tier .tier-C,
  .content-tier .tier-D {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    font-size: 1em !important;
  }
}

.tata-tier-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 28px 0 36px;
}

.tata-tier-title {
  display: inline-block;
  min-width: 70px;
  box-sizing: border-box;
  padding: 5px 18px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.tata-tier-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.tata-tier-card {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 12px 8px 10px;
  border: 2px solid #d8dee9;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tata-tier-card a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #333333 !important;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none !important;
}

.tata-tier-card img {
  display: block !important;
  width: 100px !important;
  height: 100px !important;
  max-width: 100% !important;
  object-fit: contain;
  margin: 0 auto 7px !important;
  border: none !important;
}

.tata-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.tata-tier-Splus .tata-tier-title {
  background: #b45309;
}

.tata-tier-Splus .tata-tier-card {
  border-color: #d97706;
}

.tata-tier-S .tata-tier-title {
  background: #f59e0b;
}

.tata-tier-S .tata-tier-card {
  border-color: #f59e0b;
}

.tata-tier-Aplus .tata-tier-title {
  background: #b91c1c;
}

.tata-tier-Aplus .tata-tier-card {
  border-color: #dc2626;
}

.tata-tier-A .tata-tier-title {
  background: #ef4444;
}

.tata-tier-A .tata-tier-card {
  border-color: #ef4444;
}

.tata-tier-Aminus .tata-tier-title {
  background: #f87171;
}

.tata-tier-Aminus .tata-tier-card {
  border-color: #f87171;
}

.tata-tier-Bplus .tata-tier-title {
  background: #1d4ed8;
}

.tata-tier-Bplus .tata-tier-card {
  border-color: #2563eb;
}

.tata-tier-B .tata-tier-title {
  background: #3b82f6;
}

.tata-tier-B .tata-tier-card {
  border-color: #3b82f6;
}

.tata-tier-Bminus .tata-tier-title {
  background: #60a5fa;
}

.tata-tier-Bminus .tata-tier-card {
  border-color: #60a5fa;
}

.tata-tier-C .tata-tier-title {
  background: #64748b;
}

.tata-tier-C .tata-tier-card {
  border-color: #94a3b8;
}

@media screen and (max-width: 768px) {
  .tata-tier-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .tata-tier-card {
    padding: 8px 4px 7px;
    border-radius: 9px;
  }
  .tata-tier-card img {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 5px !important;
  }
  .tata-tier-card a {
    font-size: 0.82rem;
  }
  .tata-tier-title {
    min-width: 58px;
    padding: 4px 14px;
    margin-bottom: 9px;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 400px) {
  .tata-tier-list {
    gap: 6px;
  }
  .tata-tier-card {
    padding: 6px 2px;
    border-radius: 8px;
  }
  .tata-tier-card img {
    width: 68px !important;
    height: 68px !important;
  }
  .tata-tier-card a {
    font-size: 0.75rem;
  }
  .tata-tier-title {
    font-size: 1rem;
    padding: 4px 12px;
  }
}

.tata-title {
  display: inline-block;
  color: #222;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 14px 5px 12px;
  border-left: 5px solid #ff8c00;
  border-bottom: 2px solid #ff8c00;
}

.beginner-guide {
  line-height: 1.85;
  font-size: 16px;
  color: #333;
}

.beginner-section-title {
  margin: 28px 0 14px;
  padding: 10px 14px;
  background: #333;
  color: #fff;
  border-left: 6px solid #ff8c00;
  border-radius: 8px;
  font-size: 1.15em;
  font-weight: bold;
  line-height: 1.5;
}

.beginner-lead {
  margin: 10px 0 18px;
  padding: 13px 15px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.beginner-role-front,
.beginner-role-middle,
.beginner-role-back {
  display: block;
  margin: 8px 0;
  padding: 9px 12px;
  background: #fafafa;
  border-radius: 5px;
}

.beginner-role-front {
  border-left: 4px solid #e57373;
}

.beginner-role-middle {
  border-left: 4px solid #64b5f6;
}

.beginner-role-back {
  border-left: 4px solid #81c784;
}

.beginner-subtitle {
  display: block;
  margin: 22px 0 10px;
  padding: 8px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05em;
}

.beginner-wave {
  margin: 22px 0 10px;
  padding: 9px 13px;
  background: linear-gradient(90deg, #333, #555);
  color: #fff;
  border-radius: 7px;
  font-weight: bold;
  font-size: 1.05em;
}

.beginner-tip {
  margin: 14px 0;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 5px solid #ffb300;
  border-radius: 7px;
}

.beginner-caution {
  margin: 16px 0;
  padding: 13px 15px;
  background: #fff0f0;
  border-left: 5px solid #e53935;
  border-radius: 7px;
}

.beginner-caution-title {
  display: block;
  margin-bottom: 7px;
  color: #c62828;
  font-weight: bold;
}

.beginner-technique {
  margin: 18px 0;
  padding: 14px 15px;
  background: #eef7ff;
  border: 1px solid #b7d9f7;
  border-left: 5px solid #2196f3;
  border-radius: 8px;
}

.beginner-technique-title {
  display: block;
  margin-bottom: 8px;
  color: #1976d2;
  font-size: 1.08em;
  font-weight: bold;
}

.beginner-ending {
  margin: 24px 0;
  padding: 16px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  line-height: 1.9;
}

.beginner-ending-title {
  display: block;
  margin-bottom: 8px;
  color: #ffb74d;
  font-size: 1.1em;
  font-weight: bold;
}

.beginner-formation {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 18px;
}

.beginner-formation table {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.beginner-images {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.beginner-images > * {
  flex: 1 1 0;
  min-width: 0;
}

@media screen and (max-width: 600px) {
  .beginner-guide {
    font-size: 15px;
    line-height: 1.9;
  }
  .beginner-section-title {
    margin: 22px 0 12px;
    padding: 9px 11px;
    font-size: 1.08em;
  }
  .beginner-lead {
    padding: 11px 12px;
  }
  .beginner-role-front,
  .beginner-role-middle,
  .beginner-role-back {
    padding: 8px 10px;
    margin: 7px 0;
  }
  .beginner-subtitle {
    margin: 18px 0 9px;
    padding: 7px 10px;
  }
  .beginner-wave {
    margin: 19px 0 9px;
    padding: 8px 10px;
    font-size: 1em;
  }
  .beginner-tip,
  .beginner-caution,
  .beginner-technique {
    padding: 11px 12px;
  }
  .beginner-images {
    flex-direction: column;
    align-items: center;
  }
  .beginner-images > * {
    max-width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .beginner-guide {
    font-size: 14px;
    line-height: 1.85;
  }
  .beginner-section-title {
    font-size: 1em;
    padding: 8px 9px;
  }
  .beginner-lead,
  .beginner-role-front,
  .beginner-role-middle,
  .beginner-role-back,
  .beginner-tip,
  .beginner-caution,
  .beginner-technique {
    padding: 9px 10px;
  }
}

.level-guide {
  margin: 20px 0;
  overflow-x: auto;
}

.level-guide table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.level-guide table th {
  padding: 12px 16px;
  background: #333;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border: none;
}

.level-guide table th:first-child {
  border-radius: 12px 0 0 0;
}

.level-guide table th:last-child {
  border-radius: 0 12px 0 0;
}

.level-guide table td {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  font-size: 15px;
}

.level-guide table tr:last-child td {
  border-bottom: none;
}

.level-guide table tr:nth-child(even) td {
  background: #fafafa;
}

.level-guide table td:first-child img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.level-guide table tr:hover td:first-child img {
  transform: scale(1.12);
}

.level-guide .level-1,
.level-guide .level-3,
.level-guide .level-5,
.level-guide .level-7 {
  display: inline-block;
  min-width: 42px;
  margin: 2px 3px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
}

.level-guide .level-1 {
  background: #eeeeee;
  color: #555;
  border: 1px solid #d5d5d5;
}

.level-guide .level-3 {
  background: #e5f2ff;
  color: #1971c2;
  border: 1px solid #a9d3f5;
}

.level-guide .level-5 {
  background: #fff1dc;
  color: #d97706;
  border: 1px solid #f2c27b;
}

.level-guide .level-7 {
  background: #ffe4e4;
  color: #d63031;
  border: 1px solid #f1a4a4;
}

.level-guide table td:first-child strong {
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .level-guide {
    margin: 16px 0;
  }
  .level-guide table {
    min-width: 300px;
    border-radius: 10px;
  }
  .level-guide table th {
    padding: 10px 8px;
    font-size: 14px;
  }
  .level-guide table td {
    padding: 8px 6px;
    font-size: 14px;
  }
  .level-guide table td:first-child img {
    width: 36px;
    height: 36px;
  }
  .level-guide .level-1,
  .level-guide .level-3,
  .level-guide .level-5,
  .level-guide .level-7 {
    min-width: 38px;
    padding: 3px 7px;
    margin: 2px 1px;
    font-size: 12px;
  }
}

@media screen and (max-width: 400px) {
  .level-guide table th {
    padding: 8px 5px;
    font-size: 13px;
  }
  .level-guide table td {
    padding: 7px 4px;
  }
  .level-guide table td:first-child img {
    width: 32px;
    height: 32px;
  }
  .level-guide .level-1,
  .level-guide .level-3,
  .level-guide .level-5,
  .level-guide .level-7 {
    min-width: 34px;
    padding: 3px 5px;
    font-size: 11px;
  }
}

.tata-evo-water,
.tata-evo-fire,
.tata-evo-grass,
.tata-evo-rock,
.tata-evo-thunder {
  position: relative;
  width: 100%;
  margin: 28px 0 42px;
  padding: 0 0 18px !important;
  box-sizing: border-box !important;
  color: #333;
  background: #fff;
  border: 1px solid var(--tata-border);
  border-top: 5px solid var(--tata-color);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.tata-evo-water *,
.tata-evo-fire *,
.tata-evo-grass *,
.tata-evo-rock *,
.tata-evo-thunder * {
  box-sizing: border-box !important;
}

.tata-evo-water {
  --tata-color: #2c7bb6;
  --tata-light: #edf7fc;
  --tata-soft: #f6fbfe;
  --tata-border: #c9e1ed;
}

.tata-evo-fire {
  --tata-color: #d9534f;
  --tata-light: #fff1f0;
  --tata-soft: #fff8f7;
  --tata-border: #f0cccc;
}

.tata-evo-grass {
  --tata-color: #5cb85c;
  --tata-light: #f0faef;
  --tata-soft: #f7fcf6;
  --tata-border: #cce6cc;
}

.tata-evo-rock {
  --tata-color: #8b4513;
  --tata-light: #f8f2ec;
  --tata-soft: #fcf9f6;
  --tata-border: #e3d3c3;
}

.tata-evo-thunder {
  --tata-color: #d6a900;
  --tata-light: #fff9df;
  --tata-soft: #fffdf2;
  --tata-border: #ebdda5;
}

.tata-evo-water h2,
.tata-evo-fire h2,
.tata-evo-grass h2,
.tata-evo-rock h2,
.tata-evo-thunder h2,
.tata-evo-water h3,
.tata-evo-fire h3,
.tata-evo-grass h3,
.tata-evo-rock h3,
.tata-evo-thunder h3 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 15px 20px 13px !important;
  box-sizing: border-box !important;
  color: var(--tata-color) !important;
  background: var(--tata-light) !important;
  border: 0 !important;
  border-left: 6px solid var(--tata-color) !important;
}
.tata-source-box {
  display: none;
}