.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;
}

.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: #ffffff !important; 
    font-family: "Hiragino Sans", "Meiryo", sans-serif; 
    letter-spacing: 1px;
    
    text-shadow: 
        2px  2px 0px #1a1a1a,
       -2px  2px 0px #1a1a1a,
        2px -2px 0px #1a1a1a,
       -2px -2px 0px #1a1a1a,
        3px  0px 0px #1a1a1a,
       -3px  0px 0px #1a1a1a,
        0px  3px 0px #1a1a1a,
        0px -3px 0px #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: #ffffff !important; 
    border: 1px dashed #bde0fe;    
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.skill-panel {
    background: #ffffff !important;
    border: 1px solid #d0eaff;
    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 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; 
    overflow: visible !important;    
    line-height: 1.4;            
}

.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 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    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; }

@-webkit-keyframes pulse-glow-yellow {
    0% { 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); }
    100% { background: #ffeb3b; box-shadow: 0 0 3px #ffeb3b; }
}
@keyframes pulse-glow-yellow {
    0% { 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); }
    100% { background: #ffeb3b; box-shadow: 0 0 3px #ffeb3b; }
}
.r-a { 
    display: block; 
    -webkit-animation: pulse-glow-yellow 1.5s infinite ease-in-out;
    animation: pulse-glow-yellow 1.5s infinite ease-in-out; 
}

@-webkit-keyframes pulse-glow-blue {
    0% { 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); }
    100% { background: #2196f3; box-shadow: 0 0 3px #2196f3; }
}
@keyframes pulse-glow-blue {
    0% { 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); }
    100% { background: #2196f3; box-shadow: 0 0 3px #2196f3; }
}
.r-b { 
    display: block; 
    -webkit-animation: pulse-glow-blue 1.5s infinite ease-in-out;
    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;
}

.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;
}

.x1 .atwiki-link-img-icon {
    display: none !important;
}

.cl, .nb {
    display: inline-block; 
    vertical-align: middle; 
}

.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: #ffffff !important; 
    font-family: "Hiragino Sans", "Meiryo", sans-serif;
    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: #ffffff !important;
    filter: brightness(1.2);
    transition: 0.2s;
}

.hidden { display: none; }
.nb {
    font-size: 1.2em;
    font-weight: bold;
    font-style: normal;
}
.MAX_table table {
    width: 100% !important;
    table-layout: auto; 
    word-wrap: break-word;
    border-collapse: collapse;
}

.MAX_table table td,
.MAX_table table th {
    width: 1px; 
    white-space: nowrap; 
    padding: 8px; 
}
.MAX_table table td:last-child,
.MAX_table table th:last-child {
    width: auto !important; 
    white-space: normal !important; 
    text-align: left;
}
.MAX_table table td {
    text-align: center !important;  
    vertical-align: middle !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: #ffffff;
    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: #333333 !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;
    }
}

.sns-btn br { display: none !important; }

.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; }

.hidden-data {
    display: none !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;
}

.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;
}

.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; }

.monster-template {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.monster-template.is-ready {
    opacity: 1;
    height: auto;
    overflow: visible;
}

h1 {
    font-size: 30px !important;
    font-weight: 900 !important;
    font-family: "Hiragino Sans", "Meiryo", sans-serif !important;
    color: #ffffff !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;
}

.story-quote blockquote {
    font-size: 1rem; 
    line-height: 1.7; 
}

@media screen and (max-width: 480px) {
    .story-quote blockquote {
        font-size: 0.7rem; 
    }
}

.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;
}

.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); }
}

.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;
}

.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-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif !important;
    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;    
}

.monster-list-table {
    margin-left: auto !important;
    margin-right: auto !important;
    display: table !important;
}
.monster-list-table td:nth-child(1) img,
.monster-list-table td:nth-child(2) img {
    max-width: 100% !important; 
    width: 14vw !important; 
    height: auto !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_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: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    margin: 0 auto;
}
.none {
  display: none !important;
}

.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;
}

.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; /* auto から 33.33% に変更 */
    white-space: normal !important; /* 折り返しを許可してはみ出し防止 */
    word-break: break-word !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 8px !important; 
    vertical-align: middle !important;
    display: table-cell !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: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 8px !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: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.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);
  }
}

/* ==========================================
   chip_table スタイル調整（アットウィキ用優先度強化）
   ========================================== */
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; /* border-collapseの構文エラー対策 */
  font-size: 0.9em !important;
  background-color: #ffffff !important;
}

div.chip_table th, div.chip_table td,
.chip_table th, .chip_table td {
  border: 1px solid #dddddd !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: #333333 !important;
  color: #ffffff !important;
  text-align: center !important;
}

/* 1列目（画像 ＋ ★マーク） */
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; /* 画像の下に少し余白 */
}

/* 2列目（効果詳細） */
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;
}

/* 3列目（解説・相性） */
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;
}

/* ==========================================
   スマホ表示用調整（画面幅 600px 以下）
   ========================================== */
@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; /* スマホ用に画像を小さく */
  }
}
/* ランク共通ベーススタイル */
.ss, .sk, .ak, .bc {
  font-weight: bold;
  font-size: 1.05rem;
  padding: 4px 14px;
  margin-bottom: 8px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.03em;
  background: #ffffff;
}

/* SSランク */
.ss {
  color: #ff2a6d;
  border: 2px solid #ff2a6d;
}

/* Sランク */
.sk {
  color: #ff9900;
  border: 2px solid #ff9900;
}

/* Aランク */
.ak {
  color: #1e90ff;
  border: 2px solid #1e90ff;
}

/* B〜Cランク */
.bc {
  color: #777777;
  border: 2px solid #cccccc;
}
/* 見出し用（黒背景・ネオン発光） */
.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 {
  width: fit-content;       /* 最新ブラウザ向け */
  width: -moz-fit-content;  /* Firefox向け */
  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;
}

/* 難易度1向け：シアンのアクセント */
.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);
}

/* ネオン発光テーブルラッパー */
.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;
  box-sizing: border-box !important;
}

/* 見出しテキスト */
.tb1 strong, .tb1 b {
  color: #00ff88 !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.05em !important;
}

/* 表本体のスタイル（border-collapseを排除） */
.tb1 table {
  margin-top: 10px !important;
  width: 100% !important;
  table-layout: fixed !important;
  background-color: #161b22 !important;
  border: 1px solid #00ff88 !important;
  border-spacing: 0 !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: 8px 4px !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  width: 10% !important;
}

/* セル（各時間帯） */
.tb1 table td {
  border: 1px solid #00ff88 !important;
  padding: 8px 2px !important;
  color: #f0f6fc !important;
  font-family: monospace !important;
  font-size: 0.9rem !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

/* スマホ等（画面幅480px以下）のサイズ自動調整 */
@media screen and (max-width: 480px) {
  .tb1 {
    padding: 10px 6px !important;
    border-radius: 4px !important;
  }

  .tb1 table tr:first-child td,
  .tb1 table th {
    padding: 6px 2px !important;
    font-size: 0.75rem !important;
  }

  .tb1 table td {
    padding: 6px 1px !important;
    font-size: 0.68rem !important;
  }
}