@charset "utf-8";

/* <system section="theme" selected="6653586347149180725"> */
@import url("https://blog.hatena.ne.jp/-/theme/6653586347149180725.css?version=1667b959471ca5367e3ead50004cf0c01ba91e99");
/* </system> */

/* ==========================================
   SITE-WIDE VARIABLES (JAGUARS NOTE)
   ========================================== */
:root {
  /* --- チーム・基本カラー --- */
  --c-teal:      #006778;
  --c-gold:      #d7a22a;      
  --c-black:     #101820;
  --c-white:     #ffffff;
  --c-red:       #D32F2F;    /* IR / Lose 用 */
  --c-blue:      #3FA9F5;    /* PS 用 */
  --c-purple:    #9B59B6;    /* Suspended 用 */
  --c-cream:     #FFFDF5;    /* Stats背景用 */
  --c-dark-grey: #263238;    /* Former用 */
  --c-green:     #00ff88;    /* Win用 */
  
  /* --- フォント定義 --- */
  --font-display: 'Anton', sans-serif;
  --font-body:    'Roboto Condensed', sans-serif;
  --font-header:  'Archivo', sans-serif;

  /* --- NEWSセクション・アクセントカラー (ペルソナ風) --- */
  --news-contract:    #3fa9f5;
  --news-draft:       #9b59b6;
  --news-fa:          #f1c40f;
  --news-injury:      #ff5c5c;
  --news-news:        #1abc9c; 
  --news-roster-move: #4fb573;
  --news-trade:       #e67e22;
  --news-coaching:    #34495e; /* 新規：ネイビーグレー */
  --news-awards:      #fd79a8; /* 新規：ビビッドピンク */

  /* --- レイアウト設定 --- */
  --header-height: 155px;
}

/* スマホ用の高さ調整 */
@media (max-width: 768px) {
  :root {
    --header-height: 140px;
  }
}

/* --- チームカラー定義 --- */
.team-ari { --team-bg: #97233F; --team-txt: #fff; }
.team-atl { --team-bg: #000000; --team-txt: #A71930; }
.team-bal { --team-bg: #241773; --team-txt: #9E7C0C; }
.team-buf { --team-bg: #00338D; --team-txt: #C60C30; }
.team-car { --team-bg: #0085CA; --team-txt: #101820; }
.team-chi { --team-bg: #0B162A; --team-txt: #C83803; }
.team-cin { --team-bg: #FB4F14; --team-txt: #000; }
.team-cle { --team-bg: #311D00; --team-txt: #FF3C00; }
.team-dal { --team-bg: #869397; --team-txt: #041E42; }
.team-den { --team-bg: #FB4F14; --team-txt: #002244; }
.team-det { --team-bg: #B0B7BC; --team-txt: #0076B6; }
.team-gb  { --team-bg: #203731; --team-txt: #FFB612; }
.team-hou { --team-bg: #03202f; --team-txt: #A71930; }
.team-ind { --team-bg: #003087; --team-txt: #fff; }
.team-jax { --team-bg: #006778; --team-txt: #D7A22A; }
.team-kc  { --team-bg: #E31837; --team-txt: #fff; }
.team-lac { --team-bg: #0080C6; --team-txt: #FFC20E; }
.team-lar { --team-bg: #003594; --team-txt: #FFD100; }
.team-lv  { --team-bg: #000000; --team-txt: #A5ACAF; }
.team-mia { --team-bg: #008E97; --team-txt: #FC4C02; text-shadow: 1px 1px 0 rgba(0,0,0,0.2);}
.team-min { --team-bg: #4F2683; --team-txt: #FFC62F; }
.team-ne  { --team-bg: #002244; --team-txt: #B0B7BC; }
.team-no  { --team-bg: #D3BC8D; --team-txt: #101820; }
.team-nyg { --team-bg: #0B2265; --team-txt: #A71930; }
.team-nyj { --team-bg: #125740; --team-txt: #fff; }
.team-phi { --team-bg: #004C54; --team-txt: #fff; }
.team-pit { --team-bg: #101820; --team-txt: #FFB612; }
.team-sea { --team-bg: #002244; --team-txt: #69BE28; }
.team-sf  { --team-bg: #B3995D; --team-txt: #AA0000; }
.team-tb  { --team-bg: #D50A0A; --team-txt: #B1BABF; }
.team-ten { --team-bg: #0C2340; --team-txt: #4B92DB; }
.team-was { --team-bg: #5A1414; --team-txt: #FFB612; }
.team-other { --team-bg: #616161; --team-txt: #fff; }



/* =========================================
   CUSTOM HEADER STYLE (1500x500)
   ========================================= */

/* 標準ヘッダーを非表示 */
#blog-title {
    display: none;
}

/* 新しいヘッダーエリア */
#custom-header-area {
  position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    /* background-color: #fff; */
}

#custom-header-area img {
    width: 100%;
    height: auto;
    display: block;
}

/* ホバー時の反応 */
.header-image-link {
    display: block;
    transition: filter 0.3s ease;
}

.header-image-link:hover {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
  .header-image-link {
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
  #content, #top-box { border-top: none; padding-top: 10px; }
  #custom-header-area::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #006778;
        z-index: 0;
        transform: rotate(2deg) translateX(-10px);
    }
}



body {
  font-family: 'Noto Sans JP', sans-serif;
  padding-top: var(--header-height) !important;
  transition: padding-top 0.3s ease-out;
}

#content, #top-box, #custom-header-area {
  background-color: #f2f2f2;
  background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 3px);
  background-attachment: fixed;
}

#top-box {
  padding-bottom: 0;
}

.entry-content{
  font-size: 16px;
  color: #101820;
}

.page-entry .entry-content em{
  font-style: normal;
  font-weight: bold;
  background: linear-gradient(to bottom, transparent 50%, rgba(215,162,42,0.6) 50%);
}

.page-entry .entry-content strong{
  font-style: normal;
  font-weight: bold;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 103, 120, 0.4) 50%);
  }

  p{
    margin: 0 0 1.0em;
  }

  .entry-content a{
    color: #006778;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .entry-content a:hover {
    color: #d7a22a;
    text-decoration-color: #d7a22a;
  }

/* #region 引用 改修版 */
.entry-content blockquote {
  position: relative;
  padding: 0.5rem;
  margin: 1rem 0;
  background-color: #f0fafa; 
  color: var(--c-black);           
  border: none;
  box-shadow: -4px -4px rgba(0, 103, 120, 0.5), 4px 4px rgba(215, 162, 42, 0.5);
  z-index: 0;
  overflow: hidden;
}

.entry-content blockquote:before,
.entry-content blockquote:after {
  position: absolute;
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 150px;
  opacity: 0.2;
  z-index: -1;
}

.entry-content blockquote:before {
  content: '“';
  color: #006778;
  top: -0.2em;
  left: 0;
}

.entry-content blockquote:after {
  content: '”';
  color: #d7a22a;
  bottom: -0.85em;
  right: 0;
}

.entry-content blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #006778;
    font-weight: bold;
    font-style: italic;
    margin: 0.5rem;
    opacity: 0.8;
}
/* #endregion */

/* 本文内の選手名：Archivo適用版 */
.entry-content .p-n {
    font-family: var(--font-header);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    /* padding: 0 1px; */
}

.team-tag{
  display: inline-block;
  background: var(--team-bg);
  color: var(--team-txt);
  font-family: var(--font-header);
  font-weight: 900;
  padding: 0 4px;
  margin: 0 2px;
  line-height: 1.5;
  transform: skewX(-10deg);
}

/* --- Footer Styles --- */
#jn-footer {
  background-color: var(--c-black);
  border-top: 4px solid var(--c-teal);
  color: #f0f0f0; padding: 20px; text-align: center;
  font-family: var(--font-header); position: relative; z-index: 100;
}
.footer-content {
  display: flex; justify-content: center; align-items: center; gap: 5px;
}
.footer-icon {
  width: 40px; height: auto;
  /* filter: brightness(0) invert(1); */
}
.footer-text {
  font-style: italic; font-weight: 900; font-size: 1.5rem;
  color: var(--c-gold); letter-spacing: 2px;
}
.footer-copy { font-size: 0.75rem; color: #888; }
.footer-spacer { display: none; height: 100px; }
@media (max-width: 768px) { #jn-footer { padding: 10px;} .footer-spacer { display: block; } }

/* スマホ用改行ユーティリティ */
.br-sp {
  display: none;
}

@media screen and (max-width: 480px) {
  .br-sp {
    display: inline;
  }
}

/* #region 折りたたみ Legacy Ver. */
.legacy-details {
  margin-bottom: 20px;
}

.legacy-details > summary {
  position: relative;
  display: block; /* 矢印を消す */
  padding: 10px 10px 10px 30px; /* アイコンの余白を開ける */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.5rem;
  background-color: #006778;
  border-radius: 10px 0;
  color: #fff;
  transition: 0.2s;
  text-indent: 1rem;
}

.legacy-details > summary:hover {
  background-color: #d7a22a;
}

.legacy-details > summary::-webkit-details-marker {
  display: none;
}
/* #endregion */

/* #region ヘッダー画像をスマホでも正常に表示 */
@media (max-width:768px) {
.header-image-only #blog-title {
  height: 150px;
}

.header-image-only #blog-title #blog-title-inner {
  background-size: cover;
  height: 150px;
}
}
/* #endregion */

/* =================================================================
   Jaguars Note - P5 Style Navigation System (Final Fix)
   ================================================================= */

/* -------------------------------------------
   A. PC Global Navigation (Hairline Texture)
   ------------------------------------------- */
.global-nav {
  padding: 0;
  position: relative;
  z-index: 1000;
  font-family: 'Anton', sans-serif;
  border-bottom: 4px solid #006778;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  background-color: #101820;
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
    linear-gradient(to right, #101820 0%, #00252e 100%);
  background-attachment: scroll;
}

.global-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Nav Items */
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  transform: skewX(-20deg);
  transition: background 0.3s;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-left: none; 
}
.nav-item:first-child { border-left: 1px solid rgba(255,255,255,0.15); }

/* Hover Effect (Glowing) */
.nav-item:hover {
  background-color: #006778; 
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.15) 2px, rgba(255, 255, 255, 0.15) 3px),
    linear-gradient(to bottom, #007a8e 0%, #005663 100%);
  box-shadow: inset 0 0 15px rgba(215, 162, 42, 0.3); 
  color: #D7A22A;
}

/* Links & Text */
.nav-link {
  display: block;
  padding: 0 25px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 60px;
  transform: skewX(20deg);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-item:hover .nav-link { color: #D7A22A; }
.nav-text i { margin-right: 8px; color: #D7A22A; }

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: #101820;
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
    linear-gradient(to bottom, #101820 0%, #00252e 100%);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-top: 4px solid #D7A22A;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: skewX(20deg) translateY(10px);
  transform-origin: top left;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: skewX(20deg) translateY(0);
}

/* Dropdown Items */
.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  border-bottom: none;
  transition: background 0.2s, padding-left 0.2s;
}
.nav-dropdown li a:hover {
  background-color: #006778;
  background-image: 
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.15) 2px, rgba(255, 255, 255, 0.15) 3px),
    linear-gradient(to bottom, #007a8e 0%, #005663 100%);
  box-shadow: inset 0 0 10px rgba(215, 162, 42, 0.3);
  color: #D7A22A;
  padding-left: 30px;
}
.nav-dropdown li a i { width: 20px; text-align: center; margin-right: 8px; color: #006778; transition: color 0.2s; }
.nav-dropdown li a:hover i { color: #D7A22A; }
.dropdown-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 5px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

/* PC Search Form */
.item-search { padding: 0 10px; border: none !important; background: transparent !important; }
.nav-search-form { display: flex; align-items: center; gap: 5px; }
.search-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #006778;
  border-radius: 0;
  padding: 5px 10px;
  outline: none;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  width: 140px;
  color: #101820;
  box-shadow: 2px 2px 0 #D7A22A;
  transition: all 0.2s;
}
.search-input:focus { background: #fff; box-shadow: 4px 4px 0 #D7A22A; transform: translateY(-2px); }
.search-btn {
  background: #D7A22A; border: none; color: #101820; width: 40px; height: 34px;
  cursor: pointer; box-shadow: 2px 2px 0 #006778; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover {
  background-color: #D7A22A;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.3) 2px, rgba(255, 255, 255, 0.3) 3px);
  color: #101820;
  box-shadow: 0 0 10px rgba(215, 162, 42, 0.6);
}
.search-icon { font-size: 16px; transform: skewX(20deg); }


/* -------------------------------------------
   B. Mobile Phantom Menu (Ver. Joker's Diamond)
   ------------------------------------------- */
/* メニューオーバーレイ */
    #mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(16, 24, 32, 0.98); z-index: 20000; display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; clip-path: circle(0% at 50% calc(100% - 35px)); visibility: hidden; transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s; overflow-y: auto; }
    #mobile-menu-overlay.active { clip-path: circle(150% at 50% calc(100% - 35px)); visibility: visible; transition: clip-path 0.8s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s; }
    .m-menu-header { margin-bottom: 10px; position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
    .m-header-text { font-family: var(--font-header); font-weight: 900; font-size: 2.5rem; color: var(--c-gold); letter-spacing: 2px; text-shadow: 3px 3px 0 var(--c-black); font-style: italic; transform: skewX(-10deg); z-index: 2; }
    .m-header-deco { display: block; width: 80%; height: 15px; background: var(--c-teal); transform: skewX(-40deg) translateY(-30px) translateX(-30px) rotate(-12deg); box-shadow: 2px 2px 0 var(--c-black); margin-top: -5px; }
    .mobile-nav-content { box-sizing: border-box; width: 90%; max-width: 400px; padding: 20px; max-height: 80vh; overflow-y: auto; }
    .mobile-menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; text-align: center; }
    .m-link, .m-label { display: block; font-family: var(--font-header); font-weight: 900; font-size: 2rem; color: #fff; text-decoration: none; text-transform: uppercase; font-style: italic; transition: transform 0.2s, color 0.2s; text-shadow: 2px 2px 0 var(--c-black); }
    .m-link:hover, .m-label:hover { color: var(--c-gold); transform: scale(1.1) skewX(-10deg); }
    .m-sub-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 5px; border-top: 1px solid var(--c-teal); padding-top: 10px; }
    .m-sub-links a { font-family: var(--font-body); text-transform: uppercase; font-size: 1.1rem; color: #ccc; text-decoration: none; font-weight: bold; }
    .m-sub-links a:hover { color: var(--c-teal); letter-spacing: 1px;}
    .m-sub-links a i { margin-right: 6px; width: 1.2em; text-align: center; color: var(--c-gold); }
    .m-search-form { display: flex; border-bottom: 2px solid var(--c-gold); margin-top: 10px; }
    .m-search-form input { background: transparent; border: none; color: #fff; width: 100%; padding: 5px; outline: none; font-size: 1.2rem; font-family: var(--font-body);}
    .m-search-form button { background: transparent; border: none; color: var(--c-gold); font-size: 1.2rem; }

    /* -------------------------------------------
   C. Mobile Bottom Navigation
   ------------------------------------------- */
/* --- 基本設定 --- */
* { -webkit-tap-highlight-color: transparent; }

/* --- コンテナ --- */
.bottom-nav {
  display: none; 
  position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
  z-index: 20001; pointer-events: none;
        
/* テクスチャ定義 */
--nav-texture: 
  repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
  linear-gradient(to right, var(--c-black) 0%, #00252e 100%);
}

@media (max-width: 768px) { .bottom-nav { display: flex; justify-content: center; } }

/* --- [Layer 0] 隙間対策カーテン --- */
.nav-curtain {
  position: absolute; bottom: -100px; left: 0; width: 100%; height: 165px;
  background-color: #101820; z-index: 0;
}

/* --- [Layer 1] サイドバーコンテナ --- */
.bottom-side-container {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  display: flex; background-image: var(--nav-texture); background-attachment: fixed;
  border-top: 3px solid var(--c-teal); z-index: 10; pointer-events: auto;
}

.side-half { width: 50%; display: flex; position: relative; }   

/* --- アイテム設定 --- */
.b-item {
  flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #888; text-decoration: none; font-family: var(--font-display);
  position: relative; border-right: 1px solid rgba(255,255,255,0.05); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* overflow: visible;  */
}
    
/* ボーダー整理 */
.side-half .b-item:last-child { border-right: none; } 
.left-half .b-item:last-child { border-right: none; } 
.right-half .b-item:first-child { border-left: none; }

/* ★アイコン位置調整 */
.left-half .inner-item { padding-right: 40px; }
.right-half .inner-item { padding-left: 40px; }

/* --- ホバーエフェクト --- */
.b-item i { font-size: 1.5rem; margin-bottom: 3px; color: #fff; transition: transform 0.2s; }
.b-item span { font-size: 1rem; letter-spacing: 0.5px; font-weight: bold; }
.b-item:hover, .b-item:active {
  background: rgba(0, 103, 120, 0.3); 
  box-shadow: inset 0 0 10px rgba(215, 162, 42, 0.2); color: var(--c-gold); 
}
.b-item:hover i, .b-item:active i { color: var(--c-gold); transform: scale(1.1); text-shadow: 0 0 5px rgba(215, 162, 42, 0.8); }

/* --- [Layer 2] マスク用円盤 --- */
.bottom-circle-mask {
  position: absolute; bottom: 0; 
  left: 50%; transform: translateX(-50%); /* ど真ん中 */
  width: 100px; height: 100px; /* 真ん丸 */
  border-radius: 50%;
  background-image: var(--nav-texture); /* 背景と同じ柄にする */
  background-attachment: fixed;
  border: 3px solid var(--c-teal); 
  clip-path: polygon(-10% -10%, 110% -10%, 110% 38.5%, -10% 38.5%);
  z-index: 20; pointer-events: none; transition: border-color 0.2s, box-shadow 0.2s;
}

/* --- [連動エフェクト] :has()によるマスク発光 --- */
/* 1. 左のボタン(Schedule) ホバー時 */
.bottom-nav:has(.left-half .inner-item:hover) .bottom-circle-mask {
  /* [背景] 左半分だけ色を塗る */
  background-image: 
    linear-gradient(90deg, rgba(0, 103, 120, 0.3) 50%, transparent 50%),
    var(--nav-texture);
  box-shadow: inset 0px 0px 10px rgba(215, 162, 42, 0.2);
}

/* 2. 右のボタン(Roster) ホバー時 */
.bottom-nav:has(.right-half .inner-item:hover) .bottom-circle-mask {
  /* [背景] 右半分だけ色を塗る */
  background-image: 
    linear-gradient(-90deg, rgba(0, 103, 120, 0.3) 50%, transparent 50%),
    var(--nav-texture);
  box-shadow: inset 0px 0px 10px rgba(215, 162, 42, 0.2);
}

/* --- [Layer 3] 独立コインボタン --- */
.center-menu-btn {
  position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%);
  width: 75px; height: 75px; background: var(--c-teal); border: 3px solid var(--c-white); border-radius: 50%;
  display: block; text-decoration: none; pointer-events: auto; z-index: 30;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); outline: none; margin-left: 0;
}

body.menu-open .center-menu-btn {
  background: var(--c-gold); border-color: var(--c-black);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--c-gold);
}

/* --- その他パーツ --- */
.coin-box { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform-style: preserve-3d; }
body.menu-open .coin-box { transform: rotateY(180deg); }
.coin-face { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-front { transform: rotateY(0deg); }
.face-back { transform: rotateY(180deg); }
.center-icon { width: 45px; height: auto; margin: 2px 0; }
.icon-white { filter: brightness(0) invert(1); }
.icon-black { filter: brightness(0); }
.center-label { font-family: var(--font-display); font-size: 1rem; letter-spacing: 1px; font-weight: bold; margin-top: -5px; }
.label-white { color: var(--c-white); }
.label-black { color: var(--c-black); }

/* --- PC用トップボタン --- */
.pc-top-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--c-teal); border: 2px solid #fff; transform: rotate(45deg) scale(0); display: flex; justify-content: center; align-items: center; text-decoration: none; z-index: 1000; box-shadow: 4px 4px 0 rgba(0,0,0,0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; visibility: hidden; }
.pc-top-btn.show { transform: rotate(45deg) scale(1); opacity: 1; visibility: visible; }
.pc-top-btn:hover { background: var(--c-gold); border-color: var(--c-black); box-shadow: 6px 6px 0 var(--c-black); transform: rotate(45deg) scale(1.1); }
.pc-top-btn i { color: #fff; font-size: 1.2rem; transform: rotate(-45deg); transition: color 0.3s; }
.pc-top-btn:hover i { color: var(--c-black); }
@media (max-width: 768px) { .pc-top-btn { display: none !important; } }

/* -------------------------------------------
   D. Responsive Queries
   ------------------------------------------- */
/* Tablet / Small PC */
@media screen and (max-width: 1000px) {
  .global-nav-inner { padding: 0 10px; width: 100%; }
  .nav-link { font-size: 14px; padding: 0 15px; }
  .search-input { width: 100px; }
}

/* Mobile */
@media screen and (max-width: 768px) {
  /* Hide PC Nav */
  .global-nav { display: none; }
}

/* #region パンくずリスト  */

/* 全体枠 */
.breadcrumb {
  /* font-family: 'Anton', sans-serif; */
  font-size: 13px;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #d7a22a;
  background: #101820;
  border-left: none;
}

/* パンくず並び */
.breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em 0.6em;
  max-width: 100%;
}

/* トップリンクの🏠アイコン */
.breadcrumb-link:first-of-type span::before {
  content: "\f015";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.2em;
  color: #D7A22A;
  transition: color 0.3s ease;
}

.breadcrumb-gt{
  color: #fff;
  opacity: 1;
}

/* トップリンク hover時 */
.breadcrumb-link:hover,
.breadcrumb-child-link:hover,
.breadcrumb-link:hover span::before {
  color: #fff;
}

.breadcrumb-child:last-of-type{
  color: #fff;
}

/* #endregion */

/* #region アーカイブ記事 */
/* 全体は縦のまま（デフォルト） */
.page-archive .archive-entry {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.page-archive .entry-thumb-link {
  float: left;
  width: 200px;
  aspect-ratio: 16 / 9;
  margin-right: 1em;
}

.page-archive .entry-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-top: 10px;
}

.page-archive .archive-entry-body {
  overflow: hidden;
  margin-top: 10px;
}

.page-archive .entry-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

@media (max-width: 768px) {
  /* カード全体 */
  /* .page-archive .archive-entry {
    display: block;
    padding: 0.5rem 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 2em;
  } */

  /* サムネイル画像（上部） */
  .page-archive .entry-thumb-link {
    float: none !important;
    width: 100%;
    height: auto;
    margin: 0 0 1em 0;
    display: block;
  }

  .page-archive .entry-thumb {
    width: 100%;
    background-size: contain; /* cover → contain にして全体表示 */
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1em;
  }

  /* 本文 */
  .page-archive .archive-entry-body {
    margin: 0;
    display: block;
    overflow: visible;
  }

  .page-archive .entry-description {
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    margin-bottom: 1em;
  }

  /* タグの位置を整える */
  .page-archive .archive-entry-tags-wrapper {
    margin-top: 0.5em;
  }

  /* .archive-entry-tag .archive-entry-tag-link{
    font-size: 0.85em;
    line-height: 2em;
    padding: 0 7px;
  } */

  /* はてなスターやブクマ */
  .page-archive .social-buttons {
    margin-top: 0.5em;
  }
}

/* #endregion */

/* #region サイドバー（最新記事） */

ul.recent-entries .recent-entries-item,
ul.related-entries .related-entries-item {
  border: none;
  padding: 0.5em 0;
}

ul.recent-entries.hatena-urllist.urllist-with-thumbnails,
ul.related-entries.hatena-urllist.urllist-with-thumbnails{
  margin: 1em 0;
}

.recent-entries-item:first-child,
.related-entried-item:first-child{
  padding-top: 20px;
}

.recent-entries-item-inner,
.related-entries-item-inner{
  margin-bottom: 0;
}


/* 外枠をカード風に */
.recent-entries-item-inner,
.related-entries-item-inner {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6em;
  margin-bottom: 0.8em;
  overflow: hidden; /* float対策 */
}

/* サムネイル画像を左に */
.recent-entries-image-link,
.related-entries-image-link {
  float: left;
  width: 120px;
  height: auto;
  margin: 0.5em 0.8em 0 0;
}
.recent-entries-image,
.related-entries-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* テキスト整形 */
.recent-entries-date-link,
.related-entries-date-link {
  font-size: 0.75em;
  color: #888;
  margin-bottom: 0.2em;
  display: block;
}
.recent-entries-title-link,
.related-entries-title-link {
  font-size: 0.9em;
  font-weight: bold;
  color: #101820;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-entries-title-link:hover,
.related-entries-title-link:hover {
  color: #D7A22A;
}

.recent-entries-date-link,
.related-entries-date-link {
  display: inline-block;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 103, 120, 0.6) 60%, rgba(0, 103, 120, 0.6) 80%, transparent 80%);
  font-size: 1rem;
  font-family: var(--font-header);
  font-weight: 900;
  padding: 0.1em 0.7em 0.1em 0.4em;
  margin-bottom: 0;
  transition: 0.3s;
  transform: skewX(-10deg);
}

.recent-entries-date-link a,
.related-entries-date-link a {
  color: var(--c-black);
  text-decoration: none;
}

.recent-entries-date-link a:hover,
.related-entries-date-link a:hover {
  color: #D7A22A;
}


/* #endregion */

/* #region データ＆スタッツテーブル */
/* --- 1. スタッツ専用（影付きの枠） --- */
.stats-table-wrapper {
  display: block;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem 0;
  box-shadow: 4px 4px 0 var(--c-teal), -4px -4px var(--c-gold);
}

.stats-table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.95em;
  margin: 0;
  white-space: nowrap
}

.stats-table th,
.stats-table td {
  width: fit-content;
  padding: 0.4rem 0.8rem;
  text-align: center;
  border: 1px solid #e6e6e6;
}

.stats-table th {
  background-color: var(--c-teal);
  color: var(--c-white);
  min-width: 50px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.stats-table tbody th {
  background-color: #f0fafa;
  color: var(--c-black);
  left: 0;
  z-index: 2;
}

.stats-table thead th:first-child {
  left: 0;
  z-index: 4;
}

.stats-table td {
  background-color: var(--c-white);
  color: var(--c-black);
}

.stats-table .highlight {
  background-color: #fff100;
  font-weight: bold;
  color: var(--c-black);
  box-shadow: inset 0 -0.3em 0 #d7a22a;
}

/* --- 2. 記事用の新しい汎用表（スマホ対応） --- */
.custom-table {
  width: 100%;
  min-width: 480px; /* スマホで確実にスクロールさせるための幅 */
  border-collapse: collapse;
  font-size: 0.95em;
  background-color: var(--c-white);
  border: 2px solid var(--c-black); 
}

.custom-table thead th {
  background-color: var(--c-black); /* ヘッダーは黒で締める */
  color: var(--c-white);
  padding: 10px;
  border-bottom: 3px solid var(--c-gold); /* ゴールドのライン */
}

.custom-table th, 
.custom-table td {
  padding: 10px;
  border: 1px solid #ddd;
  line-height: 1.5;
}

.custom-table tbody th {
  background-color: rgba(0, 103, 120, 0.05); /* 薄いティール */
  font-weight: bold;
}
/* #endregion */

/* #endregion */

/* #region テーブルを横スクロールコード */
.scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0;
}

.scroll::-webkit-scrollbar {
  height: 6px;
}

.scroll::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}

.scroll::-webkit-scrollbar-thumb {
  background: #006778;
  border-radius: 4px;
  transition: background 0.3s;
}

.scroll::-webkit-scrollbar-thumb:hover {
  background: #004c5c;
}

/* #endregion */

/* 自動折り返しを許可するテーブル用 */
.is-wrap {
  table-layout: fixed !important; /* 列の幅を固定して、中身を強制的に折り返す */
  white-space: normal !important; /* 改行禁止を解除 */
  width: 100% !important;
}

.is-wrap th,
.is-wrap td {
  white-space: normal !important; /* セルの中身も折り返し許可 */
  word-break: break-all;          /* 英単語なども途中で折り返す */
  overflow-wrap: break-word;     /* 長い単語を枠内に収める */
}

/* #region 記事タイトル */
h1.entry-title{
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px), 
  linear-gradient(to right, #101820 0%, #00252e 100%);
  color: #fff;
  border-left: 10px solid #006778;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
  padding: 0.5em 0.5em;
  font-family: var(--font-header), 'Noto Sans JP', sans-serif;
  font-weight: bold;
  transform: skewX(-10deg);
  transition: 0.3s;
}

h1.entry-title a:hover{
  color: #D7A22A;
}

@media screen and (max-width: 480px){
  h1.entry-title{
    font-size: 1.5rem;
    line-height: 1.4;
  }
}
/* #endregion */

/*#region 見出し*/
h3, h4, h5, .search-result h2,
h2.archive-heading,
.hatena-module-title{
  display: block;
  width: fit-content;
  position: relative;
  color: #fff !important;
  font-family: var(--font-header), 'Noto Sans JP', sans-serif;
  font-weight: 800;
}

/* #region 大見出し (h3) + 検索結果見出し  */
h3,
.search-result h2,
h2.archive-heading {
  font-size: 1.5em;
  margin: 0.5em 0.2em !important;
  padding: 0.8em 1em;
  text-shadow: 2px 2px 0 #000;
  z-index: 3;
}

h3::before,
.search-result h2::before,
h2.archive-heading::before,
h3::after,
.search-result h2::after,
h2.archive-heading::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  clip-path: polygon(2.5% 14%, 92% 1%, 95% 92%, 1% 73%);
}

h3::before,
.search-result h2::before,
h2.archive-heading::before {
  background: #D7a22a;
  opacity: 0.9;
  transform: translate(5px, 6px)
  rotate(-2.5deg);
  z-index: -3;
}

h3::after,
.search-result h2::after,
h2.archive-heading::after {
  background: #006778;
  opacity: 0.9;
  transform: translate(4px, 4px) rotate(0deg);
  z-index: -2;
}

h3,
.search-result h2,
h2.archive-heading {
  background: #101820;
  clip-path:polygon(2% 10%, 97% 0%, 100% 100%, 0% 88%);
}

@media screen and (max-width: 480px) {
  h3{
    font-size: 1.3em;
  }
}
/* #endregion */

/* #region 中見出し (h4) + サイドバータイトル*/
h4,
.hatena-module-title { 
  position: relative;
  background: transparent;
  /* margin: 0.5em 1em !important; */
  text-shadow: 2px 2px 0 #101820;
  font-size: 1.2em;
  padding: 0.5em 1.2em;
  z-index: 1;
}

h4::before,
.hatena-module-title::before { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #101820;
  clip-path: polygon(2% 10%, 98% 0%,100% 90%, 0% 95%);
  z-index: -2;
}

h4::after,
.hatena-module-title::after { 
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: calc(100% + 20px);
  height: 50%;
  background: #006778;
  border-bottom: 3px solid #D7A22A;
  transform: translateY(-50%) rotate(-1deg);
  z-index: -1;
  clip-path: polygon(1.5% 20%, 100% 0%, 98% 100%, 0% 85%);
  opacity: 0.8;
}

.hatena-module-title a:hover{
  color: #D7A22A;
}

@media (max-width: 768px) {
  h4,
  .hatena-module-title{
      padding: 0.7em 1em;
  }
  /* h4::before,
  .hatena-module-title::before{
      clip-path: polygon(5% 10%, 95% 0%,97% 90%, 3% 95%);
  } */
}
/* #endregion */

/* #region 小見出し (h5) */
h5 { 
  background: transparent;
  margin: 0.5em 1em !important;
  font-size: 1.1em;
  text-shadow: 2px 2px 0 var(--c-black);
  padding: 0.5em 1em;
  z-index: 1;
  position: relative;
}

h5::before { 
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-teal);
  clip-path: polygon(0% 5%, 99% 0%,97% 100%, 2% 100%);
  transform: rotate(1deg);
  z-index: -3;
}

h5::after { 
  content: '';
  position: absolute;
  bottom: 0;
  Right: -10px;
  width: 45px;
  height: 40px;
  background: var(--c-gold);
  z-index: -1;
  clip-path: polygon(60% 10%, 100% 50%, 13% 97%, 2% 97%);
}
/* #endregion */
/* #endregion */

/* #region カテゴリー説明文 */
.archive-description {
  display: block;
  width: fit-content;
  position: relative;
  color: #fff;
  font-size: 16px;
  margin: 0.5em 0.2em;
  padding: 0.8em 1em;
  z-index: 3;
}

.archive-description::before,
.archive-description::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  clip-path: polygon(0% 5%, 97% 4%, 97% 90%, 0.5% 89%);
}

.archive-description::before {
  background: #d7a22a;
  opacity: 0.9;
  transform: translate(5px, 6px)
  rotate(1.5deg);
  z-index: -3;
}

.archive-description::after {
  background: #101820;
  opacity: 0.9;
  transform: translate(4px, 4px) rotate(0deg);
  z-index: -2;
}

.archive-description {
  background: #006778;
  clip-path:polygon(0% 2%, 100% 4%, 98% 98%, 1% 100%);
}
/* #endregion */

/* #region 記事作成日 */
.date{
  background: linear-gradient(to bottom, transparent 55%, rgba(0,103,120,0.6) 55%, rgba(0,103,120,0.6) 75%, transparent 75%);
  color: var(--font-black);
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.5rem;
  display: inline-block;
  padding: 0.2em 1em 0.2em 0.3em;
  transition: 0.3s;
  transform: skewX(-15deg);
}

.date a:hover{
  color: #D7A22A;
}
/* #endregion */

/*↓----更新日時表示----↓*/
.lastmod {
background-color: transparent;
padding: 5px 0px;
text-decoration: none;
font-size: 15px;
display: inline;
margin-left: 0px;
color: #999;
}
.lastmod::before {
margin-right: 5px;
margin-left: 10px;
padding-left: 3px;
font-family: "Font Awesome 5 Free";
font-weight: bold;
content: '\f01e';
}
.entry-date a {
text-decoration: none;
display: inline;
}
.entry-date a::before {
margin-right: 5px;
padding-left: 3px;
}
/*↑----更新日時表示----↑*/

/* #region カテゴリー、続きを読む、コメント、次のページ・前のページなどボタン */
.entry-content .entry-see-more,
.categories a,
.comment-box .leave-comment-title,
.hatena-module-custom-categories.hatena-module-category .hatena-module-body .hatena-urllist a,
.pager-next a, .pager-prev a{
  background-color: var(--c-black);
  color: #fff;
  border: none;
  transition: background 0.3s, color 0.3s;
  font-family: var(--font-header), sans-serif;
  font-weight: 900;
  font-size: 1rem;
  transform: skewX(-10deg);
}

.hatena-module-custom-categories.hatena-module-category .hatena-module-body .hatena-urllist a{
  display: block;
  padding: 0 12px;
  line-height: 32px;
}

.entry-content .entry-see-more:hover,
.categories a:hover,
.comment-box .leave-comment-title:hover,
.hatena-module-custom-categories.hatena-module-category .hatena-module-body .hatena-urllist a:hover,
.pager-next a:hover, .pager-prev a:hover{
  background-color: #D7A22A;
  color: #101820;
  /* border-radius: 0;
  font-size: 1em; */
}

.pager-next a,
.pager-prev a {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 1行に制限 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 3;
  text-decoration: none;
  text-align: center;
  padding: 0 0.5em;
}

.pager-next::before,
.pager-prev::before{
  text-transform: uppercase;
  color: #006778;
  display: block;
  font-size: 1.5em;
  margin-bottom: 3px;
  font-family: 'Anton', sans-serif;
}

/* #endregion */

/* #region タグ */

.entry-tags,
.archive-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.entry-tag,
.archive-entry-tag{
  /* font-family: 'Anton', sans-serif; */
  font-size: 1em;
  font-weight: bold;
}

/* タグリンク基本 */
.entry-tag .entry-tag-link,
.archive-entry-tag .archive-entry-tag-link {
  display: block;
  background-color: #d7a22a;
  color: #101820;
  text-decoration: none;
  border: none;
  padding: 0 12px;
  line-height: 32px;
  border-radius: 0;
  transform: skewX(-10deg);
  font-family: var(--font-header), sans-serif;
  font-weight: 900;
  transition: background-color 0.3s, color 0.3s;
}

/* タグアイコン */
.entry-tag-icon,
.archive-entry-tag-icon {
  color: transparent;
  position: relative;
}

.entry-tag-icon::before,
.archive-entry-tag-icon::before {
  content: "\f02b"; /* Font Awesome タグアイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #101820;
}

/* ホバー時：リンクとアイコンを一緒に変化 */
.entry-tag .entry-tag-link:hover,
.archive-entry-tag .archive-entry-tag-link:hover {
  background-color: #101820;
  color: #fff;
}

.entry-tag .entry-tag-link:hover .entry-tag-icon::before,
.archive-entry-tag .archive-entry-tag-link:hover .archive-entry-tag-icon::before {
  color: #fff;
}

/* #endregion */



/* =========================================
     EYE-CATCH (Rotated Shadow Ver.)
   ========================================= */

/* 1. 画像の親コンテナの設定 */
.entry-content > p:first-child {
    position: relative;
    display: inline-block;
    /* margin-bottom: 1rem; */
    z-index: 0;
}

/* 2. 回転する影（擬似要素で作成） */
.entry-content > p:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-teal);
    transform: rotate(3deg) translateX(10px);
    z-index: -1;
}

/* 3. 画像本体のデザイン */
.entry-content > p:first-child img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 5px solid #101820;
    background-color: #fff;
}

/* =========================================
   YOUTUBE EMBED
   ========================================= */

.hatena-citation { display: none; }

.entry-content iframe[src*="youtube"] {
    border: 5px solid #101820;
    box-shadow: 10px 10px 0 rgba(0, 103, 120, 0.8);
    margin: auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .entry-content iframe[src*="youtube"] {
        box-shadow: 6px 6px 0 rgba(0, 103, 120, 0.8);
    }
}


/* 更新のお知らせ */
.update dl{
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.update dt{
  box-sizing: border-box;
  margin: 0 0 5px 0;
  padding: 0 0 5px 5px;
  width: 30%;
  border-bottom: 0.5px solid #aaa;
}

.update dd{
  box-sizing: border-box;
  margin: 0 0 5px 0;
  padding: 0 5px 5px 5px;
  width: 70%;
  border-bottom: 0.5px solid #aaa;
}

.update dt:first-child{
  margin-top: 5px;
}

.update dd:first-of-type{
  margin-top: 5px;
}

.update dt:last-of-type,
.update dd:last-of-type{
  border: none;
}

.update details[open] ul{
  border: 2px solid #d7a22a;
  border-top: none;
  border-radius: 0 0 10px 0;
}

.update details[open] ul{
  padding: 10px;
  margin-left: 0px;
}

.update details[open] ul li{
  list-style-type: none;
  text-indent: -1.3em;
  padding-left: 1.3em;

}

.update details[open] ul li:before{
  content: "▶️ ";
  color: #d7a22a;
}
/* 更新のお知らせ */

/* 疑似要素でアイコンを表示 */
summary:before,
summary:after {
  content: "";
  margin: auto 0 auto 10px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

summary:before{
  width: 20px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.4s;
}

summary:after{
  width: 20px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.4s;
  transform: rotate(-90deg);
}

/* オープン時のスタイル */
details[open] summary {
  background-color: #d7a22a;
  border-radius: 10px 0 0 0;
}

details[open] dl{
  border: 2px solid #d7a22a;
  border-top: none;
  border-radius: 0 0 10px 0;
}

details[open] summary:before {
  opacity: 0;
}

details[open] summary:after {
  transform: rotate(180deg); /* アイコンを回転 */
}
/* 折りたたみ */

/* ==========================================
   目次アコーディオン＆階層別デザイン（完全マージ版）
   ========================================== */

/* 1. 開閉ボタン（CONTENTS）のデザイン */
.toc-toggle-block {
  margin: 2.5rem 0 0 0;
  display: block;
}
.toc-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--c-black);
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2rem;
  padding: 10px 30px 10px 20px;
  transform: skewX(-20deg);
  transform-origin: bottom left;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.toc-label::before {
  position: absolute;
  content: 'CONTENTS';
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: inherit;
  background-color: var(--c-gold);
  color: var(--c-white);
  clip-path: polygon(0 50%, 100% 15%, 50% 80%, 0 50%);
  transition: clip-path 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease;
  z-index: 1;
}

.toc-label.open::before {
  clip-path: polygon(5% 15%, 100% 0%, 95% 100%, 0% 100%);
  background-color: var(--c-teal); 
}

.toc-icon {
  display: none;
}

/* 2. 目次本体の開閉ギミック（絶対必要！） */
.entry-content .table-of-contents {
    display: none !important;
    background-color: #f9f9f9;
    border-left: 4px solid var(--c-teal);
    border-bottom: 4px solid var(--c-black);
    padding: 20px !important;
    margin: 0 0 2rem 0 !important;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.entry-content .table-of-contents.is-open {
    display: block !important; /* JSでis-openが付いたら表示！ */
    animation: slideDownFade 0.4s forwards;
    border-top: 4px solid var(--c-teal);
}
@keyframes slideDownFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. 目次リストの階層別デザイン */
.entry-content .table-of-contents,
.entry-content .table-of-contents ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}
.entry-content .table-of-contents li {
    position: relative;
}

/* --- 第一階層（大見出し） --- */
.entry-content .table-of-contents > li {
    margin-top: 15px;
}
.entry-content .table-of-contents > li > a {
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-header), 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    padding: 10px 15px;
    display: block;
    border-left: 6px solid #006778;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.entry-content .table-of-contents > li > a:hover {
    background-color: var(--c-teal);
    padding-left: 20px;
}
.entry-content .table-of-contents > li::before {
    display: none !important;
}

/* --- 第二階層（中見出し） --- */
.entry-content .table-of-contents > li > ul {
    margin-top: 5px;
    padding-left: 10px !important;
}
.entry-content .table-of-contents > li > ul > li > a {
    color: var(--c-black);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 10px 8px 25px;
    display: block;
    border-bottom: 1px dashed var(--c-gold);
    transition: all 0.2s ease;
    text-decoration: none;
}
.entry-content .table-of-contents > li > ul > li > a:hover {
    color: var(--c-teal);
    background-color: rgba(215, 162, 42, 0.1);
}
.entry-content .table-of-contents > li > ul > li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 18px;
    width: 10px;
    height: 4px;
    background-color: var(--c-gold);
    transform: rotate(-20deg);
}

/* --- 第三階層（小見出し） --- */
.entry-content .table-of-contents > li > ul > li > ul {
    margin-top: 0;
}
.entry-content .table-of-contents > li > ul > li > ul > li > a {
    color: #555555;
    font-size: 0.85em;
    padding: 6px 10px 6px 20px;
    display: block;
    transition: all 0.2s ease;
    text-decoration: none;
}
.entry-content .table-of-contents > li > ul > li > ul > li > a:hover {
    color: var(--c-teal);
    text-decoration: underline;
}
.entry-content .table-of-contents > li > ul > li > ul > li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 15px;
    width: 8px;
    height: 3px;
    background-color: var(--c-teal);
    transform: rotate(-20deg);
}

/* =========================================
   Intro & Notice Boxes
   ========================================= */

/* -------------------------------------------
   1. 共通設定 (Common Styles)
   ------------------------------------------- */

/* 箱のベースデザイン */
.preface,
.notice-box,
.column-box {
    position: relative;
    margin: 2.5rem 0 2rem;
    padding: 1.5rem 1rem 1rem 1rem;
    
    /* 文字と行間 */
    color: var(--c-black);
    line-height: 1.8;
    
    /* 共通の影 */
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    
    /* はみ出し許可 */
    overflow: visible;
}

/* ラベルのベースデザイン */
.preface::before,
.notice-box::before,
.column-box::before {
    position: absolute;
    top: -0.8em;
    left: 0.3em;
    z-index: 1;

    /* フォント設定 */
    font-family: var(--font-header), sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 2rem;
    
    /* 共通のデザイン処理 */
    padding: 0 0.6em 0 0.3em;
    transform: skewX(-20deg);
}

/* -------------------------------------------
   2. 個別設定 (Individual Styles)
   ------------------------------------------- */

/* --- Intro Box (Teal / 青緑) --- */
.preface {
    background-color: #f0fafa;
    border-left: 8px solid rgba(0,103,120,0.6);
}

.preface::before {
    content: "Intro";
    color: #101820;
    /* Intro用の青緑ライン */
    background: linear-gradient(
        to bottom,
        transparent 60%, 
        rgba(0,103,120,0.6) 60%, 
        rgba(0,103,120,0.6) 75%, 
        transparent 75%
    );
}

/* --- Notice Box (Gold / 黄) --- */
.notice-box {
    background-color: #fefcf5;
    border-left: 8px solid rgba(215, 162, 42, 0.8);
}

.notice-box::before {
    content: "NOTICE"; /* 大文字 */
    color: #101820;
    /* Notice用のゴールドライン */
    background: linear-gradient(
        to bottom,
        transparent 60%, 
        rgba(215, 162, 42, 0.8) 60%, 
        rgba(215, 162, 42, 0.8) 75%, 
        transparent 75%
    );
}

/* --- Column Box (Gray) --- */
.column-box {
  background-color: #fafafa;
}

.column-box::before {
  content: "EXTRA";
  color: var(--c-black);
}

.column-box::after {
  position: absolute;
  content: '';
  background-color: #aaa;
  font-size: 2rem;
  padding: 0 0.6em 0 0.3em;
  width: 10rem;
  height: 3rem;
  top: -0.5em;
  left: 0;
  clip-path: polygon(5% 30%, 20% 90%, 100% 0);
}

.column-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed var(--c-black);
  line-height: 1.5;
}

.column-text {
  font-size: 0.95rem;
}


/* ==========================================
   結論ボックス（この記事のポイント）
   ========================================== */
.jax-summary-box {
  background-color: var(--c-white);
  border: 3px solid var(--c-black);
    margin: 2.5rem 0 2rem;
    position: relative;
    padding: 1.5rem 1rem 0.5rem 1rem;
    box-shadow: 6px 6px 0px var(--c-teal);
}

.jax-summary-box::before,
.jax-summary-box::after{
  position: absolute;
  content: 'POINT';
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2rem;
  font-style: italic;
  transform: skewX(-20deg);
  top: -1em;
  left: 0em;
  padding: 0px 1.3em 0 0.5em;
}

.jax-summary-box::after {
  color: var(--c-white);
  background-color: var(--c-teal);
  clip-path: polygon(0% 50%, 5% 65%, 80% 80%, 100% 30%);
}

/* 箇条書きリスト部分 */
.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #101820;
    line-height: 1.6;
}

/* リストのアイコン（ティール色のチェックマーク風） */
.summary-list li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.3em;
    width: 6px;
    height: 12px;
    border-right: 3px solid var(--c-teal);
    border-bottom: 3px solid var(--c-teal);
    transform: rotate(45deg);
}


/* ↓↓Info↓↓ */
.info{
  border-left: 4px solid #006778;
  background-color: #f0fafa;
  border-radius: 10px;
  padding: 0.5em;
}

.info a {
	--arrow-color:#006778; /* 矢印の色を設定 */
	position: relative; /* 疑似要素を位置指定するための基準 */
	padding: 0 1.5em .3em .3em; /* 内側の余白（右に矢印部分を空ける） */
	color: var(--arrow-color); /* 文字色を矢印の色と統一 */
	text-decoration: none; /* 下線を非表示 */
  overflow: hidden;
  transition: 0.3s;
}

.info a::before {
	border-bottom: 1.5px solid var(--arrow-color); /* 下線としての矢印部分 */
	border-right: 2px solid var(--arrow-color); /* 右線としての矢印部分 */
	bottom: 0; /* 矢印をボタン下部に配置 */
	content: ''; /* 疑似要素でコンテンツを空に設定 */
	height: 12px; /* 矢印の高さ */
	position: absolute; /* 親要素から相対的に配置 */
	left: 0; /* 矢印の位置を左端に */
	transform: skewX(50deg); /* 矢印の形状を傾けてデザイン */
	width: 100%; /* ボタン全体の幅に矢印を合わせる */
	transition: all .3s; /* なめらかな動き（ホバー時） */
}

/* マウスオーバー時の動き */
.info a:hover::before {
	left: 5%; /* ホバー時、矢印が右に10%ずれる */
	border-bottom: 1.5px solid #d7a22a; /* 下線としての矢印部分 */
	border-right: 2px solid #d7a22a; /* 右線としての矢印部分 */
}

.info a:hover{
  color: #d7a22a;
}

/* ↑↑Info↑↑ */

.series-box {
  background: #f0fafa;
  padding: 0.5em;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #d7a22a, -4px -4px #006778;
  position: relative;
}

.series-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.series-box li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.6em;
  font-weight: bold;
  line-height: 1.4;
  flex-wrap: nowrap;
}

.series-box .series-label {
  display: inline-block;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0 #000;
  background: #006778;
  color: #fff;
  flex-shrink: 0;
}

/* current状態 */
.series-box .is-current .series-label {
  transform: rotate(-7deg);
  background: #d7a22a;
  color: #101820;
}

/* ホバー時：バッジに連動 */
.series-box li:not(.is-current):hover .series-label {
  transform: rotate(-7deg);
  background: #d7a22a;
  color: #101820;
}

/* リンクスタイル */
.series-box li a {
  color: #006778;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.series-box li a:hover {
  color: #d7a22a;
}

.series-box li a,
.series-box .is-current {
  overflow-wrap: anywhere; /* ← 長文対応 */
  word-break: break-word;
  flex: 1; /* ← バッジ以外を自動で伸縮 */
  min-width: 0; /* ← flex item の縮小制限解除 */
}

/* current行の背景 */
.series-box .is-current {
  background-color: #fff7e0;
  border-radius: 6px;
  color: #101820;
  padding: 0.3em 0.5em;
}

  /* =========================================
     .player-info 
     選手紹介記事用 プロフィールカード
  ========================================= */
.player-info {
  background-color: var(--c-white);
  border: 3px solid var(--c-black);
  position: relative;
  margin: 2em 0;
  padding: 0;
  box-shadow: 8px 8px 0px var(--c-teal);
  transition: transform 0.2s ease;
}

/* 1. ヘッダー部分（名前） */
 .player-info .player-header {
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 10px 15px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
  border-left: 6px solid var(--c-gold);
  margin-bottom: 10px;
}

.player-info .player-header .player-name-main {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* 英語のスペルは、デザインの「引き締め役」として残すのがコツ！ */
.player-info .player-header span.en-name {
  display: block;
  font-size: 0.8rem;
  color: var(--c-gold);
  font-style: italic;
  font-family: var(--font-header);
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* 2. データリスト全体 */
.player-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 15px;
  padding: 0 15px 15px 15px;
  margin: 0;
  align-items: center;
}

/* 項目名（dt） */
.player-info dt {
  background-color: var(--c-teal);
  color: var(--c-white);
  padding: 4px 12px;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-align: center;
  transform: skewX(-15deg);
  border-left: 3px solid var(--c-gold);
}

.player-info dt span {
  display: inline-block;
  transform: skewX(15deg);
}

  /* 値（dd） */
.player-info dd {
  margin: 0;
  font-weight: bold;
  color: var(--c-black);
  border-bottom: 1px dashed #ccc;
  padding-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.player-info dd:last-of-type {
  border-bottom: none;
}

/* #region Rosterページ */

/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */
.roster-wrapper { font-family: var(--font-body); box-sizing: border-box; }
ul.player-list { list-style: none; padding: 0; max-width: 650px; margin: 0 auto; }


/* =========================================
   3. PLAYER CARD COMPONENT
   ========================================= */
.player-card { 
  background: var(--c-white); margin-bottom: 35px; border-radius: 4px; 
  position: relative; overflow: visible; 
  box-shadow: 4px 4px 0px rgba(0,0,0,0.15); transition: transform 0.2s;
  border: 1px solid transparent; /* ズレ防止 */
}

.player-toggle { display: flex; cursor: pointer; min-height: 70px; position: relative; z-index: 1; overflow: hidden; border-radius: 4px; }
.player-graphic-col { width: 110px; flex-shrink: 0; background-color: var(--c-black); clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%); display: flex; align-items: flex-start; overflow: hidden; transition: background-color 0.3s; }

/* Status Colors */
.player-card[data-status="active"] .player-graphic-col { background-color: var(--c-teal); }
.player-card[data-status="ir"] .player-graphic-col, .player-card[data-status="pup"] .player-graphic-col, .player-card[data-status="nfi"] .player-graphic-col { background-color: var(--c-red); }
.player-card[data-status="susp"] .player-graphic-col { background-color: var(--c-purple); }
.player-card[data-status="ps"] .player-graphic-col { background-color: var(--c-blue); }
.player-card[data-status="out"] .player-graphic-col { background-color: #555; }

.player-content-col { 
  flex-grow: 1; 
  padding: 10px 10px 10px 0; 
  display: flex; flex-direction: column; 
}

.player-header { margin-bottom: 5px; padding-left: 10px; font-family: var(--font-header); font-weight: 900; }
.player-position-label { font-size: 1.3rem; color: var(--c-teal) !important; margin-right: 0.5rem;}
.player-name { font-size: 1.3rem; color: var(--c-black); }
.player-number { position: absolute; top: -10px; left: 0px; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--c-white); text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000; z-index: 10; transform: rotate(-3deg); pointer-events: none; }
.status-ribbon { position: absolute; top: -12px; right: 15px; font-family: var(--font-header); font-weight: 900; font-size: 0.9rem; padding: 4px 15px; color: #fff; transform: skewX(-15deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); z-index: 5; background: var(--c-black); }
.player-card[data-status="active"] .status-ribbon { background-color: var(--c-teal); }
.player-card[data-status="ir"] .status-ribbon, .player-card[data-status="pup"] .status-ribbon, .player-card[data-status="nfi"] .status-ribbon { background-color: var(--c-red); }
.player-card[data-status="susp"] .status-ribbon { background-color: var(--c-purple); }
.player-card[data-status="ps"] .status-ribbon { background-color: var(--c-blue); }
.player-card[data-status="out"] .status-ribbon { background-color: #555; }

/* Badges */
.pop-badge-wrapper.is-new { position: static; display: inline-block; vertical-align: top; margin-left:5px; }
.pop-badge-wrapper.is-honor { display: flex; flex-basis: 100%; width: 100%; gap: 5px; }
.pop-badge { display: inline-block; line-height: 1; text-transform: uppercase; position: relative; transition: transform 0.2s; }
.pop-badge.badge-new { background: #FF0055; color: #fff; font-size: 0.75rem; padding: 4px 8px; clip-path: polygon(0% 0%, 100% 0%, 95% 50%, 100% 100%, 0% 100%, 5% 50%); transform: rotate(-10deg); animation: badgeShake 2s infinite ease-in-out; }
@keyframes badgeShake { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(-10deg) scale(1.1); } }
.pop-badge.badge-honor { background: #111; color: #FFD700; border: 1px solid #FFD700; font-size: 0.7rem; padding: 3px 10px; transform: skewX(-30deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }

/* Card Effects */
@keyframes shineMove { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
.player-card.is-probowl { background: linear-gradient(120deg, #fff 30%, #fffde7 40%, #fff9c4 50%, #fffde7 60%, #fff 70%); background-size: 200% auto; animation: shineMove 5s linear infinite; border: 1px solid #FBC02D; }
.player-card.is-allpro { background: linear-gradient(120deg, #fff 30%, #e3f2fd 40%, #f3e5f5 45%, #e0f7fa 50%, #fff 70%); background-size: 200% auto; animation: shineMove 4s linear infinite; border: 1px solid #29B6F6; box-shadow: 0 0 10px rgba(41, 182, 246, 0.4); }

/* Sub Header */
.header-sub { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.acq-composite-badge { display: inline-flex; align-items: stretch; overflow: hidden; transform: skewX(-15deg); box-shadow: 2px 2px 0 rgba(0,0,0,0.2); margin-right: 5px; }
.badge-method-part { background-color: var(--c-black); color: #fff; font-size: 0.8rem; padding: 3px 10px; text-transform: uppercase; }
.badge-team-part { background-color: var(--team-bg); color: var(--team-txt); font-size: 0.8rem; padding: 3px 8px; display: flex; align-items: center; }
.divider { color: #ccc; transform: skewX(-15deg); }
.meta-data { font-size: 0.8rem; color: #555; font-weight: bold; }

/* Details */
.player-details-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.player-card.is-open .player-details-wrapper { grid-template-rows: 1fr; }
.player-details-inner { overflow: hidden; min-height: 0; padding-left: 10px; }
.detail-grid { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 10px 0; font-family: var(--font-body); }
.info-item { font-size: 0.8rem; color: #333; border-bottom: 1px dashed #ddd; padding-bottom: 2px; min-width: 45%; }
.info-item .label { font-family: var(--font-display); color: var(--c-teal); margin-right: 5px; text-transform: uppercase; }
.draft-team-tag { display: inline-block; font-size: 0.8rem; font-family: var(--font-header); font-weight: 900; line-height: 1.5; padding: 0px 6px; margin-left: 4px; vertical-align: baseline; position: relative; top: -1px; background-color: var(--team-bg); color: var(--team-txt); transform: skewX(-15deg); box-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.combine-container { margin-bottom: 10px; border-bottom: 1px dotted #ccc; padding-bottom: 5px; }
.combine-label { font-size: 0.8rem; font-family: var(--font-display); color: #888; letter-spacing: 0.5px; margin-bottom: 3px; }
.combine-data { font-size: 0.8rem; white-space: normal; word-break: break-word; line-height: 1.5; }
.stats-container { background: var(--c-cream); color: #222; padding: 10px 12px; margin-bottom: 8px; border-left: 5px solid var(--c-black); box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
.stats-header { font-family: var(--font-display); color: var(--c-black); font-size: 0.8rem; margin-bottom: 4px; border-bottom: 1px solid var(--c-black); }
.stats-container ul { list-style: none; padding: 0; margin: 0; }
.stats-container li.info-line { display: flex; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed #ccc; line-height: 1.5; }
.stats-container li.info-line:last-child { border-bottom: none; }
.stats-category-label { font-size: 0.8rem; color: var(--c-black); white-space: nowrap; margin-right: 8px; flex-shrink: 0; }
.stats-container .value { font-size: 0.8rem; flex-grow: 1; white-space: normal; word-break: break-word; }
.stat-item { display: inline-block; white-space: nowrap; }
.stat-item strong { color: var(--c-black); margin-right: 2px; }
.stats-container .stat-item strong { color: var(--c-teal); }

.contract-container { background-color: var(--c-dark-grey); color: #fff; margin-bottom: 8px; display: flex; overflow: hidden; box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
.contract-left { flex-grow: 1; padding: 8px 10px; border-right: 2px dashed #555; }
.contract-title { font-size: 0.8rem; color: #aaa; letter-spacing: 1px; margin-bottom: 2px; }
.contract-value { font-family: var(--font-display); font-size: 1rem; color: var(--c-gold); letter-spacing: 0.5px; }
.contract-cap { font-size: 0.8rem; color: #ddd; margin-top: 2px; }
.contract-right { width: 90px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #1a2327; position: relative; }
.contract-right.is-expiring { background-color: #371b1b; } 
.contract-right.is-expiring .fa-year { color: #ff5252; }
.fa-label { font-size: 0.7rem; color: #888; font-weight: bold; margin-bottom: 0; }
.fa-year { font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1; }
.transactions-container { padding: 8px 10px; background: rgba(16, 24, 32, 0.8); border-left: 5px solid var(--c-gold); box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
.transactions-container .label { display: inline-block; color: var(--c-gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.trans-line { display: flex; font-size: 0.8rem; line-height: 1.5; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 2px; }
.trans-line:last-child { border-bottom: none; margin-bottom: 0; }
.trans-date { color: #00aeb1; /* TEAL LIGHT */ font-weight: bold; min-width: 65px; flex-shrink: 0; }
.trans-content { color: #eee; padding-left: 10px; }
.trans-line.no-data { color: #666; font-style: italic; font-size: 0.75rem; }
.transactions-container .trans-line:first-of-type { font-weight: bold; margin-left: -5px; padding-left: 5px; background-color: rgba(0, 0, 0, 0.2); line-height: 2; transform: skewX(-10deg); background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 3px); }
.transactions-container .trans-line:first-of-type .trans-date,
.transactions-container .trans-line:first-of-type .trans-content { transform: skewX(10deg); }

/* Silhouettes */
.player-silhouette { position: absolute; top: 15%; left: 0%; width: 40%; z-index: 1; opacity: 0.9; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.3)); transition: top 0.4s ease; }
.player-silhouette.pos-qb { width: 140px; transform: translateX(-5%); }
.player-silhouette.pos-rb { width: 130px; transform: translateX(-25%); }
.player-silhouette.pos-wr { width: 130px; }
.player-silhouette.pos-te { width: 140px; top: 20%; }
.player-silhouette.pos-ol { width: 140px; top: 20%; transform: translateX(-20%); }
.player-silhouette.pos-dl { width: 140px; top: 20%; transform: translateX(-25%); }
.player-silhouette.pos-edge { width: 140px; top: 20%; transform: translateX(-25%); }
.player-silhouette.pos-lb { width: 140px; top: 20%; transform: translateX(-30%); }
.player-silhouette.pos-cb { width: 160px; transform: translateX(-30%); }
.player-silhouette.pos-s { width: 140px; top: 20%; transform: translateX(-30%); }
.player-silhouette.pos-k, .player-silhouette.pos-p { width: 170px; top: 20%; transform: translateX(-30%); }
.player-silhouette.pos-ls { width: 150px; top: 20%; }


/* =========================================
   4. CONTROL PANEL
   ========================================= */
.control-panel { background: var(--c-black); color: #fff; border: 4px solid var(--c-black); box-shadow: 0 4px 10px rgba(0, 103, 120, 0.5); margin: 0 auto 40px auto; max-width: 800px; position: relative; overflow: hidden; }
.panel-header { background: var(--c-teal); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--c-black); }
.panel-title { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.panel-body { padding: 15px 20px; }
.panel-divider { height: 4px; background: repeating-linear-gradient( 45deg, var(--c-teal), var(--c-teal) 10px, var(--c-black) 10px, var(--c-black) 20px ); border-top: 2px solid #000; border-bottom: 2px solid #000; }
.guide-area { background: #0a1014; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guide-section.full-width { grid-column: 1 / -1; }
.guide-section .guide-title { margin: 0 0 10px 0; font-family: var(--font-display); color: var(--c-gold); font-size: 14px; border-bottom: 1px dashed #555; padding-bottom: 3px; font-weight: bold; }
.guide-section .icon { margin-right: 5px; color: var(--c-teal); }
.color-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 12px; color: #ccc; }
.color-legend .dot { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid #fff; vertical-align: middle; }
.dot.active { background: var(--c-teal); }
.dot.ir { background: var(--c-red); }
.dot.susp { background: var(--c-purple); }
.dot.ps { background: var(--c-blue); }
.dot.out { background: #555; }
.badge-legend { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.badge-legend li { margin-bottom: 8px; display: flex; align-items: center; }
.badge-legend .pop-badge { margin-right: 10px; transform: scale(0.9); }
.badge-legend .desc { color: #ccc; }
.search-area { background: #fff; color: var(--c-black); padding-bottom: 25px; }
.filter-container { display: flex; flex-direction: column; gap: 15px; }
.control-box label { display: block; font-family: var(--font-display); font-size: 13px; color: var(--c-teal); margin-bottom: 5px; border-left: 4px solid var(--c-gold); padding-left: 6px; line-height: 1; }
.input-row { display: flex; gap: 10px; margin-bottom: 8px; }
.search-area input[type="text"], .search-area select { width: 100%; padding: 8px 10px; border: 2px solid var(--c-black); background: #f5f5f5; font-family: var(--font-body); font-weight: bold; font-size: 14px; box-sizing: border-box; transition: all 0.2s; border-radius: 0; }
.search-area input[type="text"]:focus, .search-area select:focus { background: #fff; border-color: var(--c-gold); outline: none; }
.sort-btn { background: var(--c-black); color: var(--c-gold); border: none; width: 50px; flex-shrink: 0; cursor: pointer; font-weight: bold; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sort-btn::after { content: '▼'; }
.sort-btn[data-dir="asc"]::after { content: '▲'; }
.checkbox-label { color: var(--c-black); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.search-area input[type="checkbox"] { accent-color: var(--c-teal); width: 16px; height: 16px; margin: 0; }
@media screen and (min-width: 601px) {
  .filter-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
  .control-box.full { grid-column: 1 / -1; }
}

/* Guide Sample Card */
.player-card.guide-sample-card { margin-bottom: 0; box-shadow: none; }
.player-card.guide-sample-card .player-graphic-col { width: 70px; }
.player-card.guide-sample-card .player-name { font-size: 1.1em; }
.player-card.guide-sample-card .player-position-label { font-size: 14px; }
.player-card.guide-sample-card .player-number { font-size: 40px; left: -2px; }
.player-card.guide-sample-card .badge-method-part, .player-card.guide-sample-card .badge-team-part, .player-card.guide-sample-card .meta-data{ font-size: 10px; }
.player-card.guide-sample-card .header-top { flex-wrap: wrap; }
/* ★追加: ガイドカードの画像を非表示 (背景は残す) */
.player-card.guide-sample-card .player-silhouette { display: none; }


/* =========================================
   5. MOBILE ADJUSTMENTS (All in one place)
   ========================================= */

@media screen and (max-width: 600px) {
  
  /* --- Player Card Adjustments --- */
  .player-graphic-col { width: 90px; }
  
  /* Silhouettes */
  .player-silhouette.pos-qb { transform: translateX(-12%); }
  .player-silhouette.pos-rb { transform: translateX(-38%); }
  .player-silhouette.pos-te { transform: translateX(-5%); }
  .player-silhouette.pos-ol { transform: translateX(-25%); }
  .player-silhouette.pos-dl { transform: translateX(-35%); }
  .player-silhouette.pos-edge { transform: translateX(-35%); }
  .player-silhouette.pos-lb { transform: translateX(-40%); }
  .player-silhouette.pos-cb { transform: translateX(-40%); }
  .player-silhouette.pos-s { transform: translateX(-45%); }
  .player-silhouette.pos-k, .player-silhouette.pos-p { transform: translateX(-40%); }
  .player-silhouette.pos-ls { transform: translateX(-10%); }

  /* Badges & Text */
  .badge-method-part { padding: 3px 5px; }
  .status-ribbon { padding: 1px 10px; }
  .player-header { position: relative; }
  
  /* ★NEWバッジ: ポジションの左あたり（絶対配置） */
  .pop-badge-wrapper.is-new {
    position: absolute;
    top: -10px; 
    left: -40px; 
    margin-left: 0;
    z-index: 100;
  }

  /* --- Control Panel Layout --- */
  .guide-grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; gap: 5px; }
  .sort-btn { width: 100%; padding: 8px; }

  /* --- Control Panel Accordion (Mobile Only) --- */
  .control-panel .panel-header { cursor: pointer; position: relative; }
  .control-panel .panel-header::after { 
    content: '▼'; color: #fff; font-size: 14px; 
    margin-left: 10px; transition: transform 0.3s; 
  }
  .control-panel.is-panel-open .panel-header::after { transform: rotate(180deg); }
  .control-panel .panel-body,
  .control-panel .panel-divider { display: none; }
  .control-panel.is-panel-open .panel-body,
  .control-panel.is-panel-open .panel-divider { display: block; }
}
/* #endregion */

/* #region Q&A */
.qa-block, .dialogue-block {
  margin: 1rem auto 2rem auto;
  background-color: transparent;
}

.qa-block .q, .qa-block .a,
.dialogue-block .speaker-a, .dialogue-block .speaker-b {
  background: transparent;
  padding: 2.5rem 1rem 1rem 1rem;
  position: relative;
  margin: 0.5em 0;
  overflow: hidden;
  z-index: 0;
}

.qa-block .a:not(:has(.qa-author)) {
  padding-top: 1rem;
}

.qa-block .q::before, .qa-block .a::before,
.dialogue-block .speaker-a::before, .dialogue-block .speaker-b::before {
  content: "";
  position: absolute;;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.qa-block .q::before,
.dialogue-block .speaker-a::before {
  background: #f0fafa;
  border-left: 8px solid rgba(0, 103, 120, 0.6);
}
.qa-block .a::before,
.dialogue-block .speaker-b::before {
  background: #fffaf0;
  border-left: 8px solid rgba(215, 162, 42, 0.8);
}

.qa-block .q a{
  display: inline-block;
  position: relative;
  background-color: var(--c-black);
  color: var(--c-white);
  padding: 0.1em 0.6em 0.1em 0.4em;
  margin-left: 0.5em;
  font-family: var(--font-header), sans-serif;
  font-weight: 900;
  font-size: 0.85em;
  line-height: 1.2;
  text-decoration: none;
  transform: skewX(-10deg);
  border: 1px solid var(--c-black);
  transition: all 0.2s ease;
  vertical-align: 2px;
}

.qa-block .q a::before{
  content: "▶";
  display: inline-block;
  font-size: 0.7em;
  margin-right: 0.3em;
  color: var(--c-teal);
  transform: translateY(-1px);
}
.qa-block .q a:hover{
  background-color: var(--c-teal);
  border-color: var(--c-teal);
  color: var(--c-white);
  transform: skewX(-10deg) translateY(-2px);
  box-shadow: 2px 2px 0 var(--c-black);
}
.qa-block .q a:hover::before{
  color: var(--c-white);
}

.qa-icon {
  position: absolute;
  left: 0rem;
  top: -4rem;
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 8rem;
  transform: skewX(-20deg);
  z-index: -1;
}
.qa-block .q .qa-icon {
  color: rgba(0,103,120,0.2);
}
.qa-block .a .qa-icon {
  color: rgba(215,162,42,0.35);
  left: unset;
  right: 0;
}

.qa-number{
  position: absolute;
  left: 0.3em;
  top: -0.5em;
  font-size:4rem;
  color: rgba(0, 103, 120, 0.8);
  font-family: var(--font-header); 
  font-weight: 900;
  transform: skewX(-20deg);
  z-index: -1;
  letter-spacing: -5px;
  text-shadow: 3px 3px 0 var(--c-white);
}

.qa-author,
.dialogue-author {
  position: absolute;
  left: 0;
  top: -1.5rem;
  padding: 0.2em 0.4em;
  font-size:2.5rem;
  color: rgba(215, 162, 42, 0.8);
  font-family: var(--font-header);
  font-weight: 900; 
  transform: skewX(-20deg);
  z-index: -1;
  text-shadow:  3px 3px 0 var(--c-white);
}

.dialogue-block .speaker-a .dialogue-author {
  color: rgba(0, 103, 120, 0.6);
}

/* #endregion */

/* #region トレードブロック */
.trade-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  max-width: 680px;
  margin: 2em auto;
  font-weight: bold;
  color: #101820;
  justify-content: center;
}

.trade-block .team-section {
  flex: 1 1 40%;
  min-width: 260px;
  max-width: 320px;
  width: fit-content;
  border-left: 6px solid var(--team-color, #d7a22a);
  background: var(--team-bg, #f8f8f8);
  padding: 1em;
  border-radius: 6px;
  color: var(--team-text, #101820);
}

.trade-block .team-label {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0.5em;
  background: var(--team-color, #d7a22a);
  color: var(--team-label-text, #ffffff);
  padding: 0.3em 0.8em;
  display: inline-block;
  border-radius: 4px;
}

.trade-block .team-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trade-block .team-section li {
  font-size: 16px;
  margin-bottom: 0.3em;
}

/* 固定JAXスタイル */
.trade-block .jax {
  --team-color: #006778;
  --team-bg: #e6f3f4;
  --team-text: #d7a22a;
  --team-label-text: #d7a22a;
}

/* スマホ対応（縦並び） */
@media screen and (max-width: 600px) {
  .trade-block {
    flex-direction: column;
    align-items: stretch;
  }

  .trade-block .team-section {
    flex: 1 1 auto;
    width: 100%;
    max-width: 90%;
  }
}
/* #endregion */

/* #region 凡例ブロック全体 */
.legend-box {
  margin: 1.5em 0;
}

.legend-header {
  background-color: #101820;
  color: white;
  padding: 0.5em;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  user-select: none;
  cursor: pointer;
}

.legend-header:hover,
.legend-box[aria-expanded="true"] .legend-header {
  background-color: #D7A22A;
  color: #101820;
}

.legend-box[aria-expanded="true"] .legend-header {
  border-radius: 6px 6px 0 0;
}

.legend-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  background-color: #f0fafa;
  padding: 0 1.2em;
  border: 2px solid #d7a22a;
  border-top: none;
  border-radius: 0 0 6px 6px;
  font-size: 0.95em;
  line-height: 1.7;
}

.legend-subtitle {
  margin-top: 1em;
  font-weight: bold;
  color: #006778;
}

.legend-badges {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  margin-top: 0.5em;
}

.legend-box .player-toggle{
  cursor: default;
}

.legend-content .badge-sample {
  position: static !important;
  display: inline-block;
  margin-right: 0em;
}

.legend-note {
  font-size: 0.9em;
  font-weight: normal;
}

.legend-box p{
  margin: 1em;
}
/* #endregion */


/* =========================================
    RECORD BAR (Schedule Page)
   ========================================= */
#schedule-record-bar {
  font-family: var(--font-header);
  font-weight: 900;
  background-color: var(--c-black);
  color: var(--c-white);
  border: 2px solid var(--c-gold);
  box-shadow: 6px 6px 0 var(--c-teal);
  margin-bottom: 30px;
  padding: 15px 0;
  position: relative;
}

/* 中身の見た目はヘッダーと共通クラスを流用 */
#schedule-record-bar .jax-record-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

/* JAX 6-4 + Division を横並びに */
#schedule-record-bar .jax-record-main {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none;
  cursor: default;
}

#schedule-record-bar .jax-record-team {
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--c-gold);
  font-style: italic;
  text-shadow: 3px 3px 0 var(--c-black);
  line-height: 1;
}

#schedule-record-bar .jax-record-overall {
  font-size: 2rem;
  line-height: 1;
  background-color: var(--c-teal);
  color: var(--c-white);
  padding: 5px 20px;
  transform: skewX(-15deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

/* Division pill（常に横に出るやつ） */
#schedule-record-bar .jax-record-pill-division {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 15px;
  background: #181f28;
  border: 1px solid var(--c-teal);
  border-left: 5px solid var(--c-teal);
  transform: skewX(-15deg);
}
#schedule-record-bar .jax-record-pill-division .jax-record-num {
  color: var(--c-teal);
}

/* 下の pill 群（Conference / NFC / Home / Away / Streak） */
#schedule-record-bar .jax-record-splits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-top: 5px;
}

/* 共通ピル設定 */
#schedule-record-bar .jax-record-pill {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  padding: 5px 15px;
  background: #1f2a36;
  border-left: 3px solid #555;
  transform: skewX(-15deg);
  white-space: nowrap;
  line-height: 1;
}

/* ラベル */
#schedule-record-bar .jax-record-label {
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

#schedule-record-bar .jax-record-num {
  font-size: 1.8rem;
  color: var(--c-white);
}

#schedule-record-bar .jax-record-streak {
  background: var(--c-gold);
  border-left: none;
}
#schedule-record-bar .jax-record-streak .jax-record-label,
#schedule-record-bar .jax-record-streak .jax-record-num {
  color: var(--c-black);
}

#schedule-record-bar .jax-record-streak-loss {
  background: var(--c-red);
  border-left: none;
}

#schedule-record-bar .jax-record-streak-loss .jax-record-label,
#schedule-record-bar .jax-record-streak-loss .jax-record-num {
  color: var(--c-white);
}

#schedule-record-bar .jax-record-streak-draw {
  background: #7f8c8d;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #schedule-record-bar .jax-record-main { gap: 1rem; }
  #schedule-record-bar .jax-record-team { font-size: 2rem; }
  #schedule-record-bar .jax-record-overall { padding: 4px 15px; }
  #schedule-record-bar .jax-record-splits { gap: 0.5rem; }  
  #schedule-record-bar .jax-record-pill,
  #schedule-record-bar .jax-record-pill-division { padding: 5px 10px; }
  #schedule-record-bar .jax-record-label { font-size: 0.75rem; margin-bottom: 3px; }
}

/* #endregion */

/* #region PC/スマホ切り替え */
@media screen and (max-width: 768px) {
  .schedule-desktop { display: none; }
  .schedule-mobile  { display: block; }
}
@media screen and (min-width: 769px) {
  .schedule-desktop { display: block; }
  .schedule-mobile  { display: none; }
}
/* #endregion */


/* #endregion */


/* =========================================
    SCHEDULE TABLE
   ========================================= */

/* --- プレ/レギュラー切り替えタブ --- */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--c-gold); /* タブの下にライン */
  padding-bottom: 5px;
}

/* タブボタン (フォルダ見出し風) */
.tab-btn {
  background: #333;
  color: #aaa;
  padding: 8px 20px;
  border: none;
  border-radius: 0; /* 丸み廃止 */
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  
  /* 斜めカット */
  transform: skewX(-15deg);
  margin-left: 10px; /* 重なり防止 */
  transition: all 0.2s;
}

/* 文字の傾きを戻す */
.tab-btn::before {
  content: attr(data-pc);
  display: block;
  transform: skewX(15deg); /* 逆に戻す */
}
/* ※ data-pc属性がない場合のためにフォールバックで通常テキストを表示させる */
/* HTML側のボタン内のテキストも表示されるので、::beforeを使うなら文字を隠す処理が必要 */
/* ここではシンプルに「ボタン自体を斜めにして、中の文字も斜め」でP5っぽさを出します */

/* アクティブ状態 */
.tab-btn.active {
  background: var(--c-teal);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  z-index: 2; /* 手前に */
}
.tab-btn:hover {
  background: #555;
  color: #fff;
}


/* --- スケジュールテーブル本体 --- */

.schedule-table {
  width: 100%;
  border-collapse: separate; /* 行の間隔を空けるため */
  border-spacing: 0 4px; /* 行間に隙間を作る */
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  background: transparent; /* 背景なし */
  border: none;
  box-shadow: none;
}

/* ヘッダー行 */
.schedule-table thead th {
  background-color: var(--c-black);
  color: var(--c-gold);
  font-family: var(--font-header);
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px;
  border: none;
  border-bottom: 2px solid var(--c-teal); /* 下線 */
}

/* データ行 (共通) */
.schedule-table tbody tr {
  background: #1f2a36; /* ダークグレー */
  transition: transform 0.2s;
}
.schedule-table tbody tr:hover {
  background: #2a3b4c;
  outline: 2px solid var(--c-gold);
  position: relative;
  z-index: 5;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* セル */
.schedule-table th, 
.schedule-table td {
  padding: 12px 10px;
  text-align: center;
  border: none; /* 枠線なし */
  white-space: nowrap;
  vertical-align: middle;
}

/* Week列 (一番左) */
.schedule-table th[scope="row"],
.schedule-table.mobile-compact tbody td:first-child {
  font-family: var(--font-header);
  font-weight: 900;
  color: #fff;
  background: transparent; /* 行の色に従う */
  text-align: left;
  padding-left: 20px; /* 左端のカラーバー用スペース */
  position: relative; /* カラーバーの基準 */
}

/* --- 勝敗のカラーバー (左端の太線) --- */

/* 勝ち (Win)  */
.schedule-table tr.win th[scope="row"]::before,
.schedule-table.mobile-compact tr.win td:first-child::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background-color: var(--c-green); 
}

/* 負け (Loss) - 赤 */
.schedule-table tr.loss th[scope="row"]::before,
.schedule-table.mobile-compact tr.loss td:first-child::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background-color: var(--c-red);
}

/* 引き分け (Draw) - 青 */
.schedule-table tr.draw th[scope="row"]::before,
.schedule-table.mobile-compact tr.draw td:first-child::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background-color: var(--c-blue);
}

/* Resultセル (一番右) */
.schedule-table td:last-child {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 0; /* 背景をいっぱいにするため余白削除 */
  width: 50px; /* 幅固定 */
}

/* 勝ち (Win): */
.schedule-table tr.win td:last-child {
  background-color: var(--c-green);
  color: var(--c-black);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  padding-left: 5px; /* 文字位置調整 */
}

/* 負け (Loss): 赤背景に白文字 */
.schedule-table tr.loss td:last-child {
  background-color: var(--c-red);
  color: var(--c-white);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  padding-left: 5px;
}

/* 引き分け (Draw) */
.schedule-table tr.draw td:last-child {
  background-color: var(--c-blue);
  color: var(--c-white);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  padding-left: 5px;
}

/* BYE WEEK */
.schedule-table tr.bye {
  background: #000 !important;
  opacity: 0.6;
}
.schedule-table tr.bye th, 
.schedule-table tr.bye td {
  font-weight: 900;
  color: #888;
  font-style: italic;
  letter-spacing: 2px;
}

.schedule-table tr.bye td {
  font-size: 1rem;
}

/* 次の試合 (Next Game) */
.schedule-table tr.next-game {
  background: #2c241b !important;
  box-shadow: 0 0 10px rgba(215, 162, 42, 0.3);
  position: relative;
  z-index: 2;
}
.schedule-table tr.next-game th[scope="row"]::before {
  content: 'NEXT'; 
  position: absolute; left: -50px; top: 50%; transform: translateY(-50%) rotate(-90deg);
  font-size: 0.6rem; color: var(--c-gold); letter-spacing: 2px;
  width: auto; background: none; /* バーを文字に変えるなど工夫 */
}
/* ※NEXTの装飾は複雑になるので、シンプルに左バーを点滅させる */
@keyframes blink-bar { 50% { opacity: 0.5; } }
.schedule-table tr.next-game th[scope="row"]::before,
.schedule-table.mobile-compact tr.next-game td:first-child::before {
  content: ''; width: 6px; background-color: var(--c-teal);
  animation: blink-bar 1s infinite;
}


/* --- データ装飾 --- */

/* 日付 */
.schedule-table td:nth-child(2) {
  font-family: var(--font-body);
  font-weight: 700;
  color: #ccc;
  font-size: 0.9rem;
}

.schedule-table .team-badge {
  /* --- 基本レイアウト --- */
  display: inline-block;
  padding: 4px 12px;
  min-width: 50px;
  text-align: center;
  white-space: nowrap;
  
  /* --- P5スタイル装飾 --- */
  border-radius: 0;           /* 丸み削除 */
  transform: skewX(-15deg);   /* 斜め変形 */
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Home/Away */
.schedule-table .venue {
  font-family: var(--font-header);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.schedule-table .venue.home { color: var(--c-teal); background: rgba(0, 103, 120, 0.1); }
.schedule-table .venue.away { color: var(--c-gold); background: rgba(215, 162, 42, 0.1); }

/* スコア */
.schedule-table td:nth-child(5), /* PC版スコア列 */
.schedule-table.mobile-compact td:last-child { /* スマホ版スコア列 */
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Result (W/L) 文字 */
.result.win  { color: var(--c-black); text-shadow: none; }
.result.loss { color: var(--c-white); }
.result.draw { color: var(--c-white); }

/* =========================================
   幅狭PC / タブレット横向き 対応 (769px〜1200px)
   サイドバーがある状態でもテーブルを収める調整
   ========================================= */

@media screen and (min-width: 1020px) and (max-width: 1200px) {
  
  /* 1. 全体の文字サイズと余白をひと回り小さく */
  .schedule-table {
    font-size: 13px !important;
  }

  /* 2. セルの余白を限界まで詰める */
  .schedule-table th, 
  .schedule-table td {
    padding: 8px !important;
  }

  /* 3. 一番幅を取りがちな「Date & Time」を改行させる */
  .schedule-table td:nth-child(2) {
    white-space: normal !important;
    line-height: 1.2;
    max-width: 80px;
  }

  /* 4. 左端のWeek列の幅調整 */
  .schedule-table th[scope="row"] {
    padding-left: 15px !important;
  }
}

/* --- スマホ用調整 --- */
@media screen and (max-width: 768px) {
  /* テーブルラッパーのスクロール */
  .schedule-table-wrapper {
    overflow-x: hidden;
  }
  
  /* 行間を少し詰める */
  .schedule-table { border-spacing: 0 2px; }
  
  /* Week列 */
  .schedule-table.mobile-compact td:first-child {
    width: 60px; /* 固定幅 */
  }
  
  /* 日付 */
  .schedule-table.mobile-compact td:nth-child(2) {
    font-size: 1.1rem;
    line-height: 1.0;
    color: #aaa;
  }

  .schedule-table.mobile-compact td:nth-child(2) .small {
    font-size: 90%;
  }
  
  /* 対戦相手 */
  .schedule-table.mobile-compact td:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
  }
  
  .schedule-table.mobile-compact td:nth-child(3) .venue {
    background: transparent !important;
    letter-spacing: 0;
    font-size: 1.2rem;
  }

  .schedule-table.mobile-compact td:last-child {
    width: 75px;
    line-height: 1.2;
  }

  /* ここも .schedule-table をつけて限定 */
  .schedule-table .team-badge {
    min-width: 35px;
  }
}

/* --- スマホ用タブボタン調整 --- */
@media screen and (max-width: 480px) {
    .tab-btn {
      font-size: 0;
      padding: 10px 0;
      text-align: center;
      margin-left: 0;
      transform: skewX(0);
    }
    .tab-btn::before {
        content: attr(data-sp);
        font-size: 1.2rem;
        display: block;
        transform: skewX(0);
    }
    .tab-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2px;
        border-bottom: none;
    }
    /* アクティブなタブの下にバーを出す */
    .tab-btn.active {
        border-bottom: 4px solid var(--c-gold);
        background: #222;
        color: var(--c-gold);
    }
}



/* =========================================
   P5 STYLE HEADER SCORE BAR
   ========================================= */

/* --- 全体ラッパー --- */
#score-wrapper {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  z-index: 2000;
  background-color: #101820;
  background-image: 
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 3px
    ),
    linear-gradient(to right, #000 0%, var(--c-black) 50%, #000 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  border-bottom: 2px solid var(--c-gold);
}

/* スコアバー本体 */
#score-bar {
  background: transparent;
  color: #fff;
  font-family: var(--font-header);
  font-weight: 900;
  padding: 8px 0;
  position: relative;
}

/* --- カルーセル構造 --- */
.schedule-carousel-wrapper {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; max-width: 100%;
  position: relative;
}

/* 左右の矢印ボタン */
/* --- 修正: 鋭角ナビゲーションボタン（判定拡大版） --- */
.schedule-nav {
  /* ▼重要: ここは「指で押せる範囲（タッチターゲット）」の設定 */
  width: 60px;
  height: 60px;
  margin: 0 5px;
  /* ボタン自体の背景は透明にする（見えない判定エリア） */
  background: transparent;
  font-size: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  /* 矢印をど真ん中に置く */
  display: flex;
  align-items: center;
  justify-content: center;
  /* タップ時のハイライト（青い枠など）を消す */
  -webkit-tap-highlight-color: transparent;
}

/* ▼ここから「見た目の矢印」の設定（::beforeで作る） */
.schedule-nav::before {
  content: '';
  display: block;
  /* 見た目のサイズ（くさび型の大きさ） */
  width: 30px; 
  height: 50px; 
  /* 色設定 */
  background: var(--c-gold);
  /* アニメーション設定 */
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none; /* clip-path環境ではbox-shadowは効かないのでfilterへ */
  filter: drop-shadow(0 0 2px rgba(215, 162, 42, 0.5));
}

/* 左矢印の形（::beforeを切り抜く） */
.schedule-prev::before {
  /* 提案いただいた形の反転版 */
  clip-path: polygon(100% 30%, 0 50%, 100% 70%, 70% 50%);
}

/* 右矢印の形（::beforeを切り抜く） */
.schedule-next::before {
  /* 提案いただいた形 */
  clip-path: polygon(0 30%, 100% 50%, 0 70%, 30% 50%);
}

/* --- ホバー & アクティブ時の演出 --- */
/* 親（透明エリア）に触れたら、中身（::before）を変形させる */
.schedule-nav:hover::before,
.schedule-nav:active::before {
  /* 背景をティールに */
  background: var(--c-teal);
  /* 少し拡大 */
  transform: scale(1.2);
  /* 強く発光 */
  filter: drop-shadow(0 0 6px var(--c-teal));
}

/* ビューポート & スライドコンテナ */
.schedule-carousel-viewport {
  overflow: hidden; width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.schedule-carousel {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  gap: 15px;
  padding: 5px 0;
}

/* --- 試合カード (スライド) --- */
.schedule-slide {
  display: flex; flex-direction: column; justify-content: center;
  width: 220px;
  flex-shrink: 0;
  background: #1f2a36;
  padding: 6px 15px;
  transform: skewX(-15deg);
  border-radius: 0;
  border: 1px solid #444;
  border-left: 5px solid #888;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* 勝ち (Win) */
.schedule-slide.win {
  border-left-color: var(--c-green);
  border-top-color: rgba(0, 255, 136, 0.5);
  border-bottom-color: rgba(0, 255, 136, 0.5);
  border-right-color: rgba(0, 255, 136, 0.5);
  background: linear-gradient(
    135deg, 
    #1f2a36 40%, 
    rgba(0, 255, 136, 0.25) 100%
  );
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}
.schedule-slide.win .result { color: var(--c-green); text-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }


/* 負け (Loss) */
.schedule-slide.loss {
  border-left-color: var(--c-red);
  border-top-color: rgba(217, 58, 58, 0.5);
  border-bottom-color: rgba(217, 58, 58, 0.5);
  border-right-color: rgba(217, 58, 58, 0.5);
  background: linear-gradient(
    135deg, 
    #1f2a36 30%, 
    rgba(217, 58, 58, 0.4) 100%
  );
}
.schedule-slide.loss .result { color: var(--c-red); text-shadow: 0 0 8px rgba(217, 58, 58, 0.6); }

/* 引き分け (Draw) */
.schedule-slide.draw {
  border-left-color: var(--c-blue);
  background: linear-gradient(
    135deg, 
    #1f2a36 30%, 
    rgba(63, 169, 245, 0.4) 100%);
}
.schedule-slide.draw .result { color: var(--c-blue); }

/* 次の試合 (Next Game) - 強く目立たせる */
.schedule-slide.next-game {
  background: #222;
  border: 2px solid var(--c-teal);
  box-shadow: 0 0 15px rgba(0, 103, 120, 0.6);
  z-index: 5;
  transform: skewX(-15deg) scale(1.05);
}
/* 点滅アニメーション */
@keyframes border-blink { 50% { border-color: rgba(0, 103, 120, 0.3); } }
.schedule-slide.next-game { animation: border-blink 2s infinite; }


/* --- カードの中身 --- */

/* 1行目: Week & 日時 */
.line1 {
  font-size: 0.75rem;
  color: #aaa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px; padding-bottom: 2px;
  font-size: 0.9rem;
  line-height: 1.2;
}
.line1 .week {
  color: var(--c-gold);
  align-self: flex-start;
  line-height: 1;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* 2行目: 対戦相手 & スコア */
.line2 {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

/* 対戦相手エリア */
.opponent {
  display: flex; align-items: center; gap: 5px;
}

/* @ / vs */
.schedule-slide .venue {
  font-size: 1.1rem; color: #888;
}
.venue.home { color: var(--c-teal); }
.venue.away { color: var(--c-gold); }

/* チームバッジ (P5スタイル継承) */
.schedule-slide .team-badge {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0 8px;
  min-width: 40px;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
}

/* スコア結果 (W 10-26) */
.result {
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #000;
}

/* --- スマホ調整 --- */
@media (max-width: 768px) {
  /* スライド幅を画面に合わせて調整 */
  .schedule-slide { width: 180px; padding: 5px 10px; }
  .schedule-carousel { gap: 10px; }
}

/* =========================================
       RECORD BAR
   ========================================= */
/* コンテナ設定 */
#jax-record-bar {
  background-color: var(--c-black); color: var(--c-white);
  font-family: var(--font-header); font-weight: 900; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 90;
}

/* レイアウト枠 */
.jax-record-inner {
  max-width: 100%; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; align-items: center;
}

/* --- [Layer 1] メインボタン --- */
.jax-record-main {
  width: 100%; border: none; background: transparent; padding: 8px 0; margin: 0;
  display: flex; justify-content: center; align-items: center; gap: 1.5rem;
  cursor: pointer; transition: background 0.2s;
}
.jax-record-main:hover { background: linear-gradient(to right, transparent, rgba(0,103,120,0.2), transparent); }
.jax-record-main:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -2px; }

.jax-record-team { font-size: 1.8rem; letter-spacing: 2px; color: var(--c-gold); font-style: italic; text-shadow: 2px 2px 0 var(--c-black); }
.jax-record-overall {
  font-size: 1.5rem; line-height: 1; background-color: var(--c-teal); color: var(--c-white);
  padding: 5px 15px; transform: skewX(-15deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.5); display: inline-block;
}
/* --- データチップ (Pills) 共通設定 --- */
.jax-record-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4pt 12px;
  background: #1f2a36; transform: skewX(-15deg); border-left: 3px solid #555;
  transition: all 0.2s;
}
  /* ラベル（vs AFC South / Homeなど） */
.jax-record-label { font-size: 0.9rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }

/* 数字（1-1 / 4-2など） */
.jax-record-num { font-size: 1.5rem; line-height: 1; color: var(--c-white); }

/* Division pill（ヘッダー内、常時表示） */
.jax-record-pill-division { background: #181f28; border-left-color: var(--c-teal) !important; }
.jax-record-pill-division .jax-record-num { color: var(--c-teal); }

/* Streak W2+（連勝） */
.jax-record-streak { background: var(--c-gold); color: var(--c-black); border-left: none; }
.jax-record-streak .jax-record-num, .jax-record-streak .jax-record-label { color: var(--c-black); }

/* Streak L2+（連敗） */
.jax-record-streak-loss { background: var(--c-red); color: var(--c-white); border-left: none; }
.jax-record-streak-loss .jax-record-num, .jax-record-streak-loss .jax-record-label { color: var(--c-white); }

/* Streak D2+（連続引き分け） */
.jax-record-streak-draw { background: #7f8c8d; color: var(--c-white); border-left: none; }
.jax-record-streak-draw .jax-record-num, .jax-record-streak-draw .jax-record-label { color: var(--c-white); }

/* ▼ 矢印 */
.jax-record-chevron { font-size: 0.8rem; color: var(--c-gold); transition: transform 0.3s ease; display: inline-block; margin-left: 5px; }
#jax-record-bar.is-open .jax-record-chevron { transform: rotate(180deg); }

/* --- [Layer 2] 詳細エリア (アコーディオン) --- */
.jax-record-details { max-height: 0; opacity: 0; overflow: hidden; width: 100%; background: rgba(0,0,0,0.1); transition: max-height 0.3s ease, cubic-bezier(0.4,0,0.2,1) opacity 0.3s; }

/* 開いたときに中身を見せる */
#jax-record-bar.is-open .jax-record-details { max-height: 100px;  opacity: 1; border-top: 1px dashed rgba(255,255,255,0.1); }

/* pill の並び */
.jax-record-splits { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 10px 0 15px; }

/* PCで pill を横並び優先 */
@media (min-width: 900px) {
  .jax-record-splits { gap: 20px; }
}

@media (max-width: 640px) {
  .jax-record-main {gap: 0.8rem ;}
  .jax-record-team { font-size: 1.4rem;}
}




/* #region スコア、スコアフロー */
/* ラッパー（影・角丸・横スクロール） */
.score-table-wrapper,
.scoreflow-wrapper{
  display:inline-block;
  max-width: 100%;
  overflow-x:auto;
  margin:0.5em 0;
  border-radius:8px;
  box-shadow:4px 4px 0 #006778, -4px -4px 0 #d7a22a;
}

/* テーブル本体 */
.score-table,
.scoreflow-table{
  width:fit-content;
  border-collapse:collapse;
  font-size:0.95rem;
  background:#fff;
  table-layout:auto;
  white-space:nowrap;
  margin: 0;
}

/* ヘッダー */
.score-table thead th{
  position:sticky; top:0; z-index:2;
  background:#101820; color:#fff;
  font-weight:700;
}

/* セル共通 */
.score-table th, .score-table td{
  border:1px solid #e6e6e6;
  padding:.55em .7em;
  text-align:center;
  color:#101820;
}

/* チーム名セル：チームカラーで着色 */
.score-table th.team{
  position:sticky; left:0; z-index:3;
  background:var(--team-c1, #006778);
  color:var(--team-c2, #D7A22A);
  text-align:center;
}

/* 合計列は少し強調 */
.score-table td.sum{
  font-weight:700;
  background:#fffaf0;
}

/* スコアフロー */
.scoreflow-table th,
.scoreflow-table td {
  border: 1px solid #e0e0e0;
  padding: 0.5em 0.7em;
  text-align: center;
}

.scoreflow-table thead th {
  background-color: #101820;
  color: #fff;
  font-weight: bold;
}

.scoreflow-table .quarter-row th {
  background: #101820;
  color: #fff;
  text-align: center;
  font-weight: bold;
}

.scoreflow-table td.team {
  background: var(--team-c1, #333);
  color: var(--team-c2, #fff);
  text-align: center;
  font-weight: bold;
}

.scoreflow-table td:nth-child(1) {
  text-align: center;
  white-space: nowrap;
  font-size: 0.85em;
}

.scoreflow-table td:nth-child(3) {
  text-align: center;
  font-weight: bold;
}

.scoreflow-table td:nth-child(4) {
  text-align: left;
  font-size: 0.85em;
}
/* #endregion */

/* #region ===== Roster予想 ===== */
/* === scope root === */
.roster-predict {
  margin:.5em 0 1em;
  --ink:#101820;
  --teal:#006778;
  --amber:#D7A22A;
  --q-bg:#fff7ec;
  --q-border:#f0aa42;
  --q-chip:#b36200;
  --ir-bg:    #fff0f0; /* 淡い赤背景 */
  --ir-border:#e57373; /* 赤寄りの枠 */
  --ir-chip:  #b71c1c; /* ラベル文字色 */
  --ps-bg:    #eef5ff; /* 淡い青（サイトのPSラベル青に寄せる） */
  --ps-border:#1e40af; /* あなたのPS青 */
  --ps-chip:  #1e40af;
  --ps-star: #1976d2;
  --rookie: #c026d3;
  --acq: #16a34a;
}

/* tabs */
.roster-predict .tabs {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:.4em;
  margin:.4em 0 .8em;
}
.roster-predict .tab {
  background:var(--ink);
  color:#fff;
  border:none;
  padding:.2em;
  box-shadow:2px 2px 0 var(--amber), -2px -2px 0 var(--teal);
  font-family:'Anton', sans-serif;
}
.roster-predict .tab[aria-selected="true"] { background:var(--teal); }

/* panels */
.roster-predict .panel { display:none; }
.roster-predict .panel[aria-hidden="false"] { display:block; }

/* cards */
.roster-predict .pos {
  position: relative;
  overflow: hidden;
  border-radius:8px;
  padding:.5em;
  margin:.8em 0;
  box-shadow:2px 2px 0 var(--teal), -2px -2px 0 var(--amber);
}

/* 一体ラベル（上部帯） */
.roster-predict .poshead{
  margin: calc(-.5em) calc(-.5em) .5em;      /* 上左右を内側パディング分はみ出させる */
  padding:.3em 1em;
  background: var(--teal);                     /* 濃い帯 */
  color:#fff;
  font-family:'Anton', sans-serif;
  display:flex;
  align-items:baseline;
  gap:.45em;
  border-radius:8px 8px 0 0;
  border-bottom: solid 2px var(--amber);                  /* カード角丸と揃える */
}
.roster-predict .poshead .poslabel{
  font-size:1.2em;
  line-height:1;
}
.roster-predict .poshead .slots {
  opacity:.8;
}

/* LOCK帯 */
.roster-predict .lock,
.roster-predict .q,
.roster-predict .cut,
.roster-predict .ir,
.roster-predict .ps {
  border-radius:6px;
  padding:.3em;
  display:flex;
  align-items:center;
  gap:.5em;
  flex-wrap:wrap;
}
.roster-predict .lock {
  background:#f0fafa;  
  border-left:4px solid #65b4c0;
}
.roster-predict .q {
  margin-top: .35em;
  background:var(--q-bg);
  border-left:3px solid var(--q-border);
}
.roster-predict .cut {
  margin-top:.35em;
  background:#fafafa;
  border-left:3px solid #ddd;
}
.roster-predict .ir{
  margin-top: .35em;
  background: var(--ir-bg);
  border-left: 3px solid var(--ir-border);
}
.roster-predict .ps{
  margin-top: .35em;
  background: var(--ps-bg);
  border-left: 3px solid var(--ps-border);
}
.roster-predict .note {
  margin-top:.5em;
  background:#fff8e5;
  border-left:3px solid var(--amber);
  border-radius:6px;
  padding:.3em;
  font-size: 0.9em;
}

/* chips */
.roster-predict .chip {
  display:inline-flex;
  align-items:center;
  gap:.35em; border-radius:6px;
  font-family:'Anton', sans-serif;
  font-size:.85em;
  padding:0 .5em;
}
.roster-predict .chip--lock {
  background:var(--teal);
  color:#fff;
}
.roster-predict .chip--lock::before{
  content:"\f023";
  font-family:"Font Awesome 6 Free";  /* ご利用のFAに合わせて */
  font-weight:600;                     /* Solid = 900 */
  display:inline-block;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.roster-predict .chip--q {
  background:transparent;
  border:1px solid var(--q-border);
  color:var(--q-chip);
}
.roster-predict .chip--cut {
  background:transparent;
  color:#666;
  border:1px solid #bbb;
}
.roster-predict .chip--ir{
  background-color: transparent;
  color: var(--ir-chip);
  border: 1px solid var(--ir-border);
}
.roster-predict .chip--ps{
  background-color: transparent;
  color: var(--ps-chip);
  border: 1px solid var(--ps-border);
}

/* names */
.roster-predict .names {
  display: flex;
  flex-wrap: wrap;
  gap: .25em .35em;
  font-weight: bold;
}
.roster-predict .name { white-space:nowrap; }
.roster-predict .name + .name::before {
  content:"/";
  margin:0 .35em;
  opacity:.6;
}
.roster-predict .name--rookie{
  color: var(--rookie);
}
.roster-predict .name--acq{
  color: var(--acq);
  text-decoration: underline dotted 2px currentColor;
  text-underline-offset: 2px;
}
.roster-predict .star  {
  display:inline-block;
  margin-right:.25em;
  color:var(--amber);
}
.roster-predict .star--ps{
  color: var(--ps-star);
}

/* mobile */
@media (max-width:560px){
  .roster-predict .tabs {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .roster-predict{
    --label-col: 6ch; 
    --label-gap: 2rem;
  }

  .roster-predict .lock,
  .roster-predict .q,
  .roster-predict .cut,
  .roster-predict .ir,
  .roster-predict .ps {
    display:grid;                          /* flex -> grid に切替 */
    grid-template-columns: var(--label-col) 1fr; /* 左はバッジ幅、右は残り */
    column-gap: var(--label-gap);
    row-gap:.25em;
    align-items:start;
  }
  .roster-predict .chip   {
    grid-column:1;
    justify-self: center;
    align-self: center;
    width: max-content;
  }
  .roster-predict .names {
    grid-column:2;
    display:block;
  }
  .roster-predict .name {
    display:block;
    white-space:normal;
    position: relative;
    padding-left: 1.5em;
  }
  .roster-predict .name .star{
    position: absolute;
    left: 0;
    top: 0;
    width: 1.1em;
    text-align: center;
  }
  .roster-predict .name + .name::before {
    content:""; margin:0;
  }
}

/* #endregion */

.charts-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: start;
}

.charts-wrap canvas {
  width: 100%;
  max-width: 320px;
  height: 300px !important;
  aspect-ratio: unset !important;
}

/* スマホは高さを小さく */
@media (max-width: 600px) {
  .charts-wrap {
    grid-template-columns: 1fr;
  }
  .charts-wrap canvas {
    max-width: 100%;
    height: 250px;
  }
}

/* #region Newsバー＆Newsページ */

/* ===== NEWSバー ===== */

.newsbar-b {
  background-color: var(--c-black);
  color: var(--c-white);
  font-size: 14px;
  border-bottom: 3px solid var(--c-gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 100;
}
.newsbar-b-inner { max-width: 100%; margin: 0 auto; padding: 0; display: flex; align-items: center; height: 40px; }
.newsbar-b-label {
  background-color: var(--c-gold); color: var(--c-black);
  font-family: var(--font-header); font-weight: 900; font-size: 1.2rem; line-height: 40px; text-decoration: none;
  position: relative; margin-left: -10px; padding: 0 20px; flex-shrink: 0; transform: skewX(-20deg); z-index: 2;
  transition: transform 0.2s;
}
.newsbar-b-label:hover { background-color: var(--c-teal); color: var(--c-white); transform: scale(1.05) skewx(-20deg); }

/* スクロールビュー */
.newsbar-b-viewport {
  overflow-x: auto; flex: 1; height: 100%; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 20px, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20px, black 95%, transparent 100%);
  -webkit-overflow-scrolling: touch;
}
.newsbar-b-viewport::-webkit-scrollbar { display: none; }

/* リスト本体 */
.newsbar-b-list { list-style: none; margin: 0; padding: 0; display: inline-flex; white-space: nowrap; align-items: center; height: 100%; }
.newsbar-b-item { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: 3rem; position: relative; }
.newsbar-b-date { font-family: var(--font-header); font-weight: 900; font-size: 1rem; font-style: italic; color: var(--c-gold); letter-spacing: 1px; }
.newsbar-b-type {
  font-family: var(--c-header); font-weight: 900; font-size: 1rem; text-transform: uppercase; color: var(--c-white); background-color: #333;
  padding: 0 8px; transform: skewX(-10deg); box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* タイプ色 */
.newsbar-b-type--contract    { background-color: var(--news-contract); }
.newsbar-b-type--draft       { background-color: var(--news-draft); }
.newsbar-b-type--fa          { background-color: var(--news-fa); }
.newsbar-b-type--injury      { background-color: var(--news-injury); }
.newsbar-b-type--news        { background-color: var(--news-news); }
.newsbar-b-type--roster-move { background-color: var(--news-roster-move); }
.newsbar-b-type--trade       { background-color: var(--news-trade); }
.newsbar-b-type--coaching    { background-color: var(--news-coaching); }
.newsbar-b-type--awards      { background-color: var(--news-awards); }

.newsbar-b-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--c-white);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
  position: relative;
  top: 1px;
}

.newsbar-b-title:hover { color: var(--c-gold); text-shadow: 0 0 5px var(--c-gold); letter-spacing: 0.5px; }

/* See More ボタン */
.newsbar-b-more-link {
  position: relative; display: inline-block; padding: 4px 20px 4px 10px; background-color: var(--c-teal);
  color: var(--c-white); font-family: var(--font-header); font-weight: 900; font-size: 0.8rem;
  text-transform: uppercase; text-decoration: none; transition: all 0.2s;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.newsbar-b-more-link:hover { background-color: var(--c-gold); color: var(--c-black); padding-left: 15px; }

@media (max-width: 768px) {
  .newsbar-b-inner { padding: 0; }
  .newsbar-b-label { font-size: 1rem; padding: 0 15px; }
  .newsbar-b-item { margin-right: 2rem;}
}

/* #region ヘッダーユニット（スコア・レコード・ニュース）の統合デザイン */

/* 1. まとめて透過とぼかしを適用！ */
/* 3. 中のパーツの個別の背景や線を消して、一体化させる */
#score-bar, #jax-record-bar, #news-bar {
  background-color: transparent !important; /* 親の背景色に任せる */
  box-shadow: none !important;
  border: none;
  backdrop-filter: none !important;
}


/* バーの隙間の白い線を消す魔法 */
.header-divider {
  display: none !important;
}

#jax-record-bar, #news-bar {
  /* 重なりを作って隙間を埋めるよ */
  margin-top: -1px !important;
  /* 重ねた時に変な線が出ないように念のためボーダーを消す */
  border-top: none !important;
}


/* 2. ユニット全体の最下部だけに線を引いて締める */
#news-bar {
  border-bottom: 2px solid #d7a22a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 3. 各パーツの間の余計な背景を消す */
.newsbar-b-inner,
.jax-record-inner {
  background: transparent !important;
}

/* 閉じた時の動き：ニュースバーまで含めて上に隠す */
#score-wrapper.is-collapsed {
  transform: translateY(calc(-100%)); /* 15pxだけボタンとして残す */
}

/* =========================================
   P5 STYLE CORNER TOGGLE (System Integrated Version)
   ========================================= */

/* --- 1. ボタン枠（位置・サイズ） --- */
#header-toggle-btn {
  position: fixed;
  top: 0; right: 0;
  width: 60px; height: 60px;
  
  background: transparent;
  border: none; cursor: pointer; z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  display: block; 
  clip-path: polygon(-10% -10%, -10% 10%, 90% 110%, 110% 110%, 110% -10%);
}

/* --- 2. 物理板（共通） --- */
#header-toggle-btn::before,
#header-toggle-btn::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- 3. 下の板（フチ・アクセント） --- */
#header-toggle-btn::before {
  /* ★ポイント：黒ボタンになるので、フチを「赤」にして目立たせる */
  background-color: var(--c-red); 
  
  /* ズレを作ってフチを見せる */
  transform: translate(-2px, 2px);
  z-index: -2;
}

/* --- 4. 上の板（メイン：スコアバーと統一） --- */
#header-toggle-btn::after {
  /* ★採用：ユーザー様ご提示のテクスチャ（スコアバーと統一） */
  background-image: 
    /* 1. 斜めの走査線 */
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.05) 2px, /* 0.03だと薄すぎたので少し調整 */
      rgba(255, 255, 255, 0.05) 3px
    ),
    /* 2. ベースの黒グラデーション */
    linear-gradient(to right, #000 0%, #1a1a1a 50%, #000 100%);
    
  background-color: #000; /* フォールバック */
  
  transform: translate(0, 0);
  z-index: -1;
  
  /* 内側にうっすら光沢を入れて質感を出す */
  box-shadow: inset 2px -2px 0 rgba(255,255,255,0.1);
}


/* --- 5. アイコン（配置：top 30%, left 70%） --- */
.toggle-icon {
  position: absolute;
  top: 30%; left: 70%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  z-index: 10;
  pointer-events: none;
}

/* アイコンの棒 */
.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  width: 20px; height: 3px;
  top: 50%; left: 50%;
  
  /* ボタンが黒くなるので、アイコンは「白」か「赤」 */
  background: var(--c-red); /* フチと合わせて赤にすると統一感◎ */
  /* もしくは白で視認性重視： background: #fff; */
  
  box-shadow: 0 1px 2px rgba(0,0,0,0.5); /* 影で浮き立たせる */
  clip-path: polygon(0 50%, 10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 開いている時（×） */
.toggle-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.toggle-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }


/* --- 6. 状態変化：ヘッダーが閉じた時（is-collapsed） --- */

/* 下の板：赤 → 金 */
#header-toggle-btn.is-collapsed::before {
  background-color: var(--c-gold);
}

/* 上の板：変化なし（黒のまま）か、少し明るくするか */
/* 閉じた時は右上にポツンとあるので、そのままでOK */

/* アイコン：赤 → 金 */
#header-toggle-btn.is-collapsed .toggle-icon::before,
#header-toggle-btn.is-collapsed .toggle-icon::after {
  background: var(--c-gold);
}

/* アイコン変形（ニ） */
#header-toggle-btn.is-collapsed .toggle-icon::before {
  transform: translate(-50%, -5px) rotate(0deg) skewX(-20deg);
}
#header-toggle-btn.is-collapsed .toggle-icon::after {
  transform: translate(-50%, 3px) rotate(0deg) skewX(-20deg);
}


/* --- 7. ホバー時 --- */

/* 下の板（フチ）をティールに */
#header-toggle-btn:hover::before {
  background-color: var(--c-teal);
  transform: translate(-3px, 3px); /* 少し浮かす */
}

/* アイコンをティール（または白）に */
#header-toggle-btn:hover .toggle-icon::before,
#header-toggle-btn:hover .toggle-icon::after {
  background: var(--c-teal);
  /* background: #fff; */
}

/* --- 8. レスポンシブ --- */
@media (max-width: 768px) {
  #header-toggle-btn {
    width: 50px;
    height: 50px;
  }
}

/* #endregion */

/* =========================================
      NEWS PAGE
   ========================================= */

.news-list-wrapper { max-width: 960px; margin: 24px auto 48px; padding: 0 16px; }
.news-list-header { margin-bottom: 30px; border-bottom: 3px solid var(--c-black); padding-bottom: 10px; }
.news-list-title {
  font-family: var(--font-header); font-weight: 900; font-size: 2.5rem;
  display: inline-block; border-bottom: 2px solid #d7a22a; margin: 0; line-height: 1;
  background-color: var(--c-gold); padding: 5px 20px; transform: skewX(-10deg); box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.news-list-sub { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #666; margin: 10px 0 0 5px; letter-spacing: 1px; }

/* === フィルタボタン === */
.news-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px;
}
.news-filter-btn {
  font-family: var(--font-header); font-weight: 900; font-size: 0.9rem; text-transform: uppercase;
  padding: 6px 16px; border: 2px solid transparent; background: var(--c-white); cursor: pointer; color: #888;
  transform: skewX(-15deg); transition: all 0.2s;
}

.news-filter-btn:hover { border-color: var(--c-black); color: var(--c-black); transform: skewX(-15deg) translateY(-2px); }

/* Allボタン（中立） */
.news-filter-btn[data-filter="all"] { border-color: var(--c-black); color: var(--c-black); }
.news-filter-btn[data-filter="all"].is-active { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); box-shadow: 3px 3px 0 rgba(0,0,0,0.3); }

/* タイプ別ボタン色：共通変数を使用 */
.news-filter-btn[data-filter="contract"]    { border-color: var(--news-contract);    color: var(--news-contract); }
.news-filter-btn[data-filter="draft"]       { border-color: var(--news-draft);       color: var(--news-draft); }
.news-filter-btn[data-filter="fa"]          { border-color: var(--news-fa);          color: var(--news-fa); }
.news-filter-btn[data-filter="injury"]      { border-color: var(--news-injury);      color: var(--news-injury); }
.news-filter-btn[data-filter="news"]        { border-color: var(--news-news);        color: var(--news-news); }
.news-filter-btn[data-filter="roster-move"] { border-color: var(--news-roster-move); color: var(--news-roster-move); }
.news-filter-btn[data-filter="trade"]       { border-color: var(--news-trade);       color: var(--news-trade); }
.news-filter-btn[data-filter="coaching"]    { border-color: var(--news-coaching);    color: var(--news-coaching); }
.news-filter-btn[data-filter="awards"]      { border-color: var(--news-awards);      color: var(--news-awards); }

/* アクティブ状態 */
.news-filter-btn.is-active[data-filter="contract"]    { background: var(--news-contract);    color: #fff; }
.news-filter-btn.is-active[data-filter="draft"]       { background: var(--news-draft);       color: #fff; }
.news-filter-btn.is-active[data-filter="fa"]          { background: var(--news-fa);          color: #fff; }
.news-filter-btn.is-active[data-filter="injury"]      { background: var(--news-injury);      color: #fff; }
.news-filter-btn.is-active[data-filter="news"]        { background: var(--news-news);        color: #fff; }
.news-filter-btn.is-active[data-filter="roster-move"] { background: var(--news-roster-move); color: #fff; }
.news-filter-btn.is-active[data-filter="trade"]       { background: var(--news-trade);       color: #fff; }
.news-filter-btn.is-active[data-filter="coaching"]    { background: var(--news-coaching);    color: #fff; }
.news-filter-btn.is-active[data-filter="awards"]      { background: var(--news-awards);      color: #fff; }

.news-filter-btn.is-active { box-shadow: 3px 3px 0 rgba(0,0,0,0.2); }

/* === リスト本体 === */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-black); }
.news-item {
  display: grid;
  /* 日付 / タイプ / タイトル */
  grid-template-columns: auto 110px minmax(0, 1fr);
  column-gap: 1rem; padding: 15px 10px; border-bottom: 1px solid #eee;
  align-items: center; position: relative; transition: all 0.2s;
}
.news-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c-gold); transform: scaleY(0); transition: transform 0.2s;
}
.news-item:hover::before { transform: scaleY(1); }
.news-item[hidden] { display: none; }

.news-item-date { font-family: var(--font-header); font-weight: 900; font-size: 1rem; color: var(--c-black); letter-spacing: 0.5px; }

/* タイプカラム */
.news-item-type-col { display: flex; justify-content: flex-start; }

/* タイプ pill */
.news-item-type {
  font-family: var(--font-header); font-weight: 900; font-size: 0.9rem;
  padding: 3px 10px; min-width: 90px; text-align: center; text-transform: uppercase;
  transform: skewX(-15deg); color: var(--c-white); box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* タイプ別色 */
.news-item-type--contract    { background: var(--news-contract); }
.news-item-type--draft       { background: var(--news-draft); }
.news-item-type--fa          { background: var(--news-fa); }
.news-item-type--injury      { background: var(--news-injury); }
.news-item-type--news        { background: var(--news-news); }
.news-item-type--roster-move { background: var(--news-roster-move); }
.news-item-type--trade       { background: var(--news-trade); }
.news-item-type--coaching    { background: var(--news-coaching); }
.news-item-type--awards      { background: var(--news-awards); }

.entry-content .news-list .news-item-title {
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.4 ;
  color: var(--c-black); text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s;
}

.entry-content .news-list .news-item-title:hover {
  color: var(--c-teal);
}


/* スマホ時の2段組レイアウト */
@media (max-width: 640px) {
  .news-item { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 8px; padding: 12px 10px; }
  .news-item-type-col { justify-self: start; }
  .news-item-date {grid-column: 1 / 2; grid-row: 1; text-align: right; font-size: 0.8rem; color: #888; }
  .news-item-title { grid-column: 1 / 3; grid-row: 2; font-size: 0.95rem;}
}
/* #endregion */


/* ==========================================================================
   JAX HISTORY SPECIAL DESIGN (2025 REBIRTH EDITION)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & COMMON CONTAINER
   -------------------------------------------------------------------------- */
.jax-history-container :is(h3, h4, h5) {
  all: unset; display: block !important; box-sizing: border-box !important;
  position: relative !important; width: 100%; font-family: var(--font-display); transform: skewX(-15deg);
}
.jax-history-container :is(h3, h4, h5)::before,
.jax-history-container :is(h3, h4, h5)::after {
  content: none !important; display: none !important;
}

.jax-history-container {
  background-color: var(--c-black);
  background-image: 
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
      linear-gradient(to right, #0a0f14 0%, #1a252f 100%);
  font-family: var(--font-body);
  color: var(--c-white);
  padding-bottom: 30px; 
  min-height: 80vh;
  border-bottom: 10px solid var(--c-gold);
}

/* --------------------------------------------------------------------------
   2. HEADER & BACKGROUND (GLOBAL SETTINGS)
   -------------------------------------------------------------------------- */

/* --- A. 共通デザイン（ハブ・個別 共通） --- */
.year-header {
  box-sizing: border-box;
  background-size: cover; background-position: center; position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-left: 7%;
  width: 100%; aspect-ratio: 3 / 1; min-height: auto;
  z-index: 1; overflow: hidden; transition: transform 0.3s ease, filter 0.3s ease;
}

/* 画像用オーバーレイ（文字を読みやすくする） */
.year-header::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: -1; pointer-events: none;
}

.year-text {
  font-family: var(--font-display); font-size: 6vw; color: var(--c-white); line-height: 1;
  text-shadow: 4px 4px 0px var(--c-teal), 0 0 20px rgba(0,0,0,0.8); letter-spacing: 2px; z-index: 100;
}

.season-status {
  position: absolute; bottom: 10px; left: -5%; width: 110%; height: auto; background: transparent;
  display: flex; justify-content: flex-end; align-items: center; padding: 0 10%;
  box-sizing: border-box; transform: rotate(-5deg); z-index: 2;
}

.season-status::before {
  content: ""; position: absolute; top: 0px; bottom: 0px; left: -20%; width: 150%;
  background: linear-gradient(90deg, rgba(0,128,128,0) 0%, rgba(0,128,128,0.6) 40%, rgba(0,128,128,0.9) 100%);
  z-index: -1;
}

/* 帯の中の文字装飾 */
.season-status span, 
.season-status {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--c-gold); text-transform: uppercase;
  letter-spacing: 3px; text-shadow: 3px 3px 3px var(--c-black), 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- B. ハブページ用（リンクとして動く場合） --- */
.history-timeline { display: flex; flex-direction: column; gap: 20px; margin: 40px 0; }

/* リンク全体の挙動 */
.year-banner-link { text-decoration: none !important; display: block; overflow: hidden; }

/* ホバー時のアニメーション（画像が拡大・明るくなる） */
.year-banner-link:hover .year-header { transform: scale(1.02); filter: brightness(1.1); }


/* --- C. 個別ページ用（Static Header） --- */
/* クリックできない、動かないヘッダー */
.year-header.static-header {
  cursor: default; pointer-events: none; margin-bottom: 30px; transform: none !important; }

/* --------------------------------------------------------------------------
   3. ANIMATIONS & OPENING
   -------------------------------------------------------------------------- */
/* A. オープニング演出 */
#opening-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    background-color: #005060; 
    overflow: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#opening-overlay::before {
    content: "";
    position: absolute;
    top: -100%; left: -100%; width: 300%; height: 300%;
    background: repeating-conic-gradient(
        from 0deg,
        var(--c-black) 0deg, var(--c-black) 8deg, transparent 8deg, transparent 12deg,
        var(--c-gold) 12deg, var(--c-gold) 16deg, transparent 16deg, transparent 22deg,
        var(--c-black) 22deg, var(--c-black) 26deg, transparent 26deg, transparent 30deg,
        var(--c-gold) 30deg, var(--c-gold) 31deg, transparent 31deg, transparent 45deg
    );
    animation: bg-spiral-zoom 3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 1;
    mix-blend-mode: normal;
    -webkit-mask-image: radial-gradient(circle, transparent 2%, black 20%);
    mask-image: radial-gradient(circle, transparent 2%, black 20%);
}

@keyframes bg-spiral-zoom {
    0% { transform: rotate(0deg) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: rotate(120deg) scale(1.5); }
}

#opening-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        90deg, transparent 0, transparent 40px, rgba(0, 0, 0, 0.4) 40px, rgba(0, 0, 0, 0.4) 42px,
        transparent 42px, transparent 80px, rgba(215, 162, 42, 0.3) 80px, rgba(215, 162, 42, 0.3) 81px
    );
    background-size: 200% 100%;
    animation: noise-slide 0.4s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes noise-slide {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

#opening-overlay.is-loaded {
    opacity: 0; visibility: hidden; pointer-events: none;
}

.opening-logo { position: relative; z-index: 10; }
.opening-logo img {
    width: 120px;
    animation: logo-impact 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    filter: drop-shadow(4px 4px 0px #000) drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

@keyframes logo-impact {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.8) rotate(5deg); opacity: 1; }
    70% { transform: scale(1.5) rotate(0deg); opacity: 1; }
    100% { transform: scale(15) rotate(0deg); opacity: 0; }
}

/* B. スクロールアニメーション設定 */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(60px); 
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.scroll-fade-up.is-visible {
    opacity: 1; transform: translateY(0);
}

.skew-fade-10 { opacity: 0; animation: none; }
.skew-fade-10.is-visible { animation: fade-up-skew-10 0.6s ease-out forwards; }
@keyframes fade-up-skew-10 {
    from { opacity: 0; transform: translateY(40px) skewX(-10deg); }
    to   { opacity: 1; transform: translateY(0) skewX(-10deg); }
}

.skew-fade-5 { opacity: 0; animation: none; }
.skew-fade-5.is-visible { animation: fade-up-skew-5 0.6s ease-out forwards; }
@keyframes fade-up-skew-5 {
    from { opacity: 0; transform: translateY(40px) skewX(-5deg); }
    to   { opacity: 1; transform: translateY(0) skewX(-5deg); }
}

/* --------------------------------------------------------------------------
   4. STANDING BANNER (RANK & RECORD)
   -------------------------------------------------------------------------- */
.standing-banner { 
  background: #FFFFFF; color: var(--c-black); 
  display: flex; align-items: center; padding: 15px 2%; margin: 30px; 
  transform: skewX(-10deg); 
  border-right: 20px solid var(--c-gold); 
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.5); 
  font-family: var(--font-display);
}
.rank-focus { display: flex; flex-direction: column; align-items: center; margin-right: 20px; border-right: 4px solid var(--c-black); padding: 0 30px 0 15px; }
.rank-label { font-size: 1.3rem;}
.rank-number { font-size: 5rem; line-height: 1; font-style: italic; color: var(--c-black); text-shadow: 3px 3px 0px var(--c-gold); }
.record-text { font-size: 1.5rem;}
.playoff-tag { font-size: 1.6rem; color: var(--c-teal); text-transform: uppercase; }
.playoff-tag-label { background: var(--c-teal); color: #fff; padding: 2px 5px; margin-right: 5px; }

/* --------------------------------------------------------------------------
   5. HEADINGS STYLE
   -------------------------------------------------------------------------- */
.jax-history-container h3 {
  margin: 0.5em 30px !important; padding: 12px 30px; font-size: 2.2rem; color: #FFFFFF; font-style: italic;
  background: linear-gradient(90deg, var(--c-black) 0%, var(--c-teal) 100%);
  border-left: 10px solid var(--c-gold);
  text-shadow: 3px 3px 0px var(--c-black);
  box-shadow: 10px 10px 0px rgba(0, 103, 120, 0.2);
  width: auto;
}
.jax-history-container h4 {
  margin: 20px; padding: 8px 20px; font-size: 1.4rem; color: #FFFFFF;
  background: rgba(16, 24, 32, 0.9); 
  border-left: 6px solid var(--c-gold); border-bottom: 2px solid var(--c-gold);
  width: auto;
}
.jax-history-container h5 {
  font-size: 1.1rem; color: var(--c-gold) !important; font-style: italic;
  border-bottom: 1px solid rgba(215, 162, 42, 0.3); padding-bottom: 5px;
}

/* --------------------------------------------------------------------------
   6. STORY BLOCK
   -------------------------------------------------------------------------- */
.season-story { margin: 20px; position: relative; }  
.story-body { 
  color: #FFFFFF; line-height: 1.9; font-size: 1.05rem; text-align: justify; 
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  padding: 15px 20px;
  box-shadow: 0 0 10px 5px rgba(255,255,255,0.1);
}
.drop-cap { float: left; font-family: var(--font-display); font-size: 5rem; line-height: 0.85; margin-right: 12px; margin-top: 5px; transform: rotate(10deg); text-shadow: 4px 4px 0px var(--c-teal); color: #fff; }

/* Visual Art for Story */
.story-visual {
  position: relative; margin: 15px 0; filter: drop-shadow(8px 8px 0px #006778); line-height: 0; }

.story-visual::before {
  content: ""; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    background-color: #D7A22A; clip-path: polygon(0% 5%, 100% 0%, 95% 100%, 5% 95%); z-index: 1;
}

.story-visual img {
  position: relative; width: 100%; height: auto; display: block; clip-path: polygon(0% 5%, 100% 0%, 95% 100%, 5% 95%); z-index: 2; }

/* --------------------------------------------------------------------------
   7. STAFF GRID
   -------------------------------------------------------------------------- */
.staff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin: 40px 20px; font-family: var(--font-display); }

.staff-card {
  background: rgba(16, 24, 32, 0.9); 
  background-image: 
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
      linear-gradient(to right, #0a0f14 0%, #1a252f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--c-teal);
  padding: 0;
  transform: skewX(-5deg);
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.staff-card.highlight { border-left-color: var(--c-gold); background: linear-gradient(135deg, rgba(16, 24, 32, 0.95), rgba(0, 103, 120, 0.2)); }
.staff-in { padding: 20px 20px 15px; flex-grow: 1; }
.staff-role { color: var(--c-teal); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; display: block; }
.staff-card.highlight .staff-role { color: var(--c-gold); }
.staff-name { font-size: 1.5rem; color: var(--c-white); line-height: 1.1; margin-bottom: 5px; display: block; text-shadow: 2px 2px 0px var(--c-black); }
.staff-note { font-family: var(--font-body); font-size: 0.75rem; color: #aaa; font-style: italic; display: block; }
.staff-history {
  background: rgba(0, 0, 0, 0.4); padding: 10px 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex;
  align-items: center; gap: 10px; font-size: 0.8rem; min-height: 40px;
}
.status-badge {
  padding: 2px 8px; color: #fff; text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 1px; min-width: 60px; text-align: center; transform: skewX(-5deg);
}
.prev-name { color: #ccc; font-weight: 500; font-size: 1.1rem; }

.type-fired .status-badge { background: var(--c-red); }
.type-fired .prev-name { color: #888; text-decoration: line-through; }

.type-retained .status-badge { background: var(--c-teal); }
.type-retained .prev-name { color: var(--c-teal); font-weight: bold; }

.type-new .status-badge { background: var(--c-gold); color: #000; }
.type-new .prev-name { color: var(--c-gold); font-style: italic; }

/* --------------------------------------------------------------------------
   8. DRAFT MATRIX
   -------------------------------------------------------------------------- */
.jda-list-container { padding: 10px; margin: 0 10px; }
.jda-list { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); }

.jda-row {
  display: grid; grid-template-columns: 80px 1fr 180px; align-items: center;
  background: rgba(16, 24, 32, 0.85);
  padding: 10px 15px; transform: skewX(-10deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 5px solid transparent;
}
.jda-status-picked { border-right-color: var(--c-gold); box-shadow: 0 0 5px var(--c-gold); background: linear-gradient(100deg, rgba(215, 162, 42, 0.2) 0%, rgba(25, 35, 45, 0.5) 100%);}
.jda-status-dealt { opacity: 0.7; border-right-color: var(--c-red); background: rgba(16, 24, 32, 0.6); }

.jda-cell-pick { font-family: var(--font-display); color: var(--c-gold); line-height: 1; }
.jda-ovr { font-size: 1.5rem; color: #FFF; display: block; }
.jda-cell-result { padding: 0 10px; }
.jda-player-name { display: block; color: #FFF; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px; }
.jda-player-pos { display: block; font-size: 0.9rem; color: #888; }
.jda-ghost-label { display: block; font-family: var(--font-display); font-size: 0.8rem; color: var(--c-red); letter-spacing: 1px; }
.jda-ghost-player { display: block; font-size: 0.9rem; color: #777; font-style: italic; }
.jda-cell-origin { text-align: right; border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 10px; }
.jda-list .team-tag { padding: 0 6px; font-family: var(--font-display); }

.trade-neon-arrow { display: inline-block; font-size: 1.2rem; margin-right: 5px; line-height: 1; text-shadow: 0 0 5px currentColor; }
.trade-neon-arrow.in { color: var(--c-gold); }
.trade-neon-arrow.out { color: var(--c-red); }

.jda-cell-origin small { display: block; font-size: 0.9rem; color: #666; margin-top: 3px; font-family: var(--font-body); }
.jda-original-label { letter-spacing: 1px; }

/* --------------------------------------------------------------------------
   9. KEY MOVES & STATS GRID
   -------------------------------------------------------------------------- */
.stats-detailed-grid { display: grid; grid-template-columns: repeat(2, 1fr);  gap: 15px; margin: 40px 20px; }
.stats-detailed-grid > .stats-group:last-child { grid-column: 1 / -1; }
.stats-detailed-grid > .stats-group:last-child .ext-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* 共通アイテム */
.rank-item, .move-item, .ext-item, .spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px; margin-bottom: 8px; transform: skewX(-5deg); font-family: var(--font-display);
  border-left-width: 4px; border-left-style: solid;
}

/* [Moves / Extensions] */
.move-item, .ext-item { display: flex; flex-direction: column;  gap: 4px; }
.move-item.in { border-left-color: var(--c-teal); }
.move-item.out { border-left-color: var(--c-red); }
.ext-item { border-left-color: var(--c-gold); }

/* メタ情報行 */
.m-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px; margin-bottom: 2px;
}
.m-context { display: flex; align-items: center; gap: 6px; }
.m-type { color: var(--c-gold); font-weight: bold; text-transform: uppercase; font-family: var(--font-display); letter-spacing: 0.5px; }
.m-date { color: #888; font-family: var(--font-display); }

/* 選手情報行 */
.m-player-row { display: flex; align-items: baseline; gap: 8px; }
.m-player { font-size: 1.1rem; color: #fff; line-height: 1.1; }
.m-pos { font-size: 0.8rem; color: #aaa; font-family: var(--font-display); }
.m-val-row { font-size: 0.9rem; color: var(--c-gold); font-family: var(--font-display); text-align: right; font-weight: bold; }

/* --- Stats Leaders / Special Teams --- */
.rank-item, .spec-item { display: flex; justify-content: space-between; }
.rank-item.first { background: rgba(215, 162, 42, 0.15); border-left-color: var(--c-gold); color: var(--c-gold);}
.rank-item:not(.first) { border-left-color: rgba(255, 255, 255, 0.1); }
.spec-item { border-left-color: var(--c-teal); flex-direction: column; align-items: flex-start; }
.spec-item .player { color: var(--c-gold); }

/* --------------------------------------------------------------------------
   10. HIGHLIGHTS & AWARDS
   -------------------------------------------------------------------------- */
.highlights-container { margin-bottom: 30px; }
.highlight-card { 
  background: #b8860b;
  background-image: 
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 3px),
      linear-gradient(135deg, #996515 0%, #D7A22A 50%, #996515 100%);
  padding: 20px; 
  border: 7px solid var(--c-white); 
  box-shadow: 10px 10px 0px var(--c-teal); 
  margin: 0 20px; position: relative; 
}

.highlight-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.highlight-list li { margin-bottom: 5px; padding: 10px 15px; background: rgba(16, 24, 32, 0.85); transform: skewX(-8deg); display: flex; align-items: center; border-left: 5px solid transparent; }
.list-content { font-weight: bold; font-size: 0.95rem; color: #fff; transform: skewX(8deg); }

.list-category { padding: 5px 15px !important; background: var(--c-black) !important; width: fit-content; font-size: 1.2rem; font-family: var(--font-display); letter-spacing: 1px; color: #fff; border-bottom: 3px solid; margin-top: 15px; }
.category-records { border-color: var(--c-white); }
.category-awards { border-color: var(--c-teal); }
.category-honors { border-color: var(--c-red); }
.category-records ~ .list-item { border-left-color: var(--c-white) !important; }
.category-awards ~ .list-item { border-left-color: var(--c-teal) !important; }
.category-honors ~ .list-item { border-left-color: var(--c-red) !important; }

/* --------------------------------------------------------------------------
   11. IMAGE NAVIGATION (HUB)
   -------------------------------------------------------------------------- */
.jax-image-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 10px; margin: 0px auto; padding: 0; max-width: 700px; }
.jax-img-btn { position: relative; width: 100%; max-width: 350px; margin: 0 auto; text-decoration: none !important; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.btn-bg-frame { width: 100%; filter: drop-shadow(6px 6px 0px var(--c-black)); transition: filter 0.2s; }
.btn-bg-frame img { width: 100%; height: auto; display: block;}

.btn-label {
  all: unset; position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-11deg); 
  color: var(--c-white) !important; font-size: 2.3rem; font-family: var(--font-display); text-shadow: 3px 3px 0px var(--c-black);
  pointer-events: none; letter-spacing: 2px; width: 100%; text-align: center;
}

.jax-img-btn:hover { transform: scale(1.05) rotate(2deg); z-index: 10; }
.jax-img-btn:hover .btn-bg-frame { filter: drop-shadow(8px 8px 0px var(--c-teal));}

/* --------------------------------------------------------------------------
   12. FOOTER NAVIGATION (HISTORY HUB)
   -------------------------------------------------------------------------- */
.footer-nav-container { margin-top: 20px; text-align: center; }
.footer-nav-container .footer-nav-btn {
  all: unset; display: inline-block; cursor: pointer; background: var(--c-teal); color: var(--c-white);
  padding: 10px 30px; font-family: var(--font-display); font-size: 1.3rem; text-shadow: 3px 3px var(--c-black); letter-spacing: 2px;
  transform: skewX(-15deg); border: 3px solid rgba(255, 255, 255, 0.8); transition: all 0.3s ease ; text-decoration: none ;
}
.footer-nav-container .footer-nav-btn:hover {
  background: var(--c-black); border-color: var(--c-gold); color: var(--c-gold);
  box-shadow: 6px 6px 0px var(--c-gold); transform: skewX(-15deg) translateY(-3px);
}
.footer-nav-btn span { display: block; transform: skewX(5deg); }

/* --------------------------------------------------------------------------
   13. MOBILE RESPONSIVE SETTINGS
   -------------------------------------------------------------------------- */

   @media screen and (max-width: 768px) {
  /* Header Settings */
  .year-header { border-top: 3px solid var(--c-gold); border-bottom: 5px solid var(--c-black); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
  .year-text { font-size: 3rem; }

  /* Season Status Bar */
  .season-status { font-size: 2rem; bottom: 0; left: -10%;}
  .season-status::before { top: 5px; bottom: 5px; }
  
  /* Layout Adjustments */
  .playoff-tag { display: flex; flex-direction: column;  align-items: flex-start; }
  .playoff-tag-item { font-size: 1.4rem; }  
  .jda-row { grid-template-columns: 50px 1fr 1fr; }
  .btn-label { font-size: 1.7rem; }

  /* Stats Grid to Single Column */
  .stats-detailed-grid { grid-template-columns: 1fr; }
  .stats-detailed-grid > .stats-group:last-child { grid-column: auto; }
  .stats-detailed-grid > .stats-group:last-child .ext-list { grid-template-columns: 1fr; }
}









/* =========================================
   SALARY CAP DASHBOARD - P5 x JAGUARS STYLE
========================================= */

/* Wrapper & Background */
.cap-dashboard-wrapper {
  font-family: var(--font-display);
  /* position: relative; */
}
.cap-dashboard-wrapper * {
  box-sizing: border-box;
}

/* Typography (見出しのP5風アレンジ) */
.cap-dashboard-wrapper h3,
.cap-dashboard-wrapper h4 {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--c-black);
  color: var(--c-white);
  display: inline-block;
  padding: 0.5rem 1.2rem;
  margin: 0 0 1rem -10px;
  /* ここがP5のキモ：斜めに切り抜く */
  transform: skewX(-10deg);
  border-bottom: 4px solid var(--c-teal);
  box-shadow: 4px 4px 0 var(--c-gold);
}
.cap-dashboard-wrapper h3 { font-size: 1.6rem; margin-top: -5px; }
.cap-dashboard-wrapper h4 { font-size: 1.2rem; }

.cap-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--c-black);
  font-weight: 800;
  background: var(--c-gold);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  transform: skewX(-10deg);
  border: 2px solid var(--c-black);
  margin-top: 0.5rem;
}

/* Header (計算式部分のP5風装飾) */
.cap-header {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  padding: 1.5rem;
  border: 4px solid var(--c-black);
  box-shadow: 8px 8px 0 var(--c-teal);
  margin-bottom: 2rem;
  gap: 1rem;
}
.cap-header-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.calc-box {
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  border: 2px solid var(--c-black);
  padding: 0.5rem 1rem;
  transform: skewX(-5deg);
}
.box-highlight {
  background: var(--c-black);
  color: var(--c-white);
  box-shadow: 4px 4px 0 var(--c-gold);
}
.calc-label {
  font-family: var(--font-header);
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}
.box-highlight .calc-label { color: #cbd5e1; }
.calc-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
}
.calc-math {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2.5rem;
  font-style: italic;
  color: var(--c-teal);
}

.cap-header-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 2px dashed var(--c-black);
  padding-top: 1rem;
}
.cap-space-label {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--c-black);
  transform: skewX(-10deg);
}
/* .top51-note {
  font-family: -apple-system, sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  background: var(--jax-gold);
  padding: 0.1rem 0.4rem;
  margin-left: 0.5rem;
  border: 1px solid var(--jax-black);
} */
.cap-space-info {
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
  transform: skewX(-10deg);
  line-height: 1;
}
.space-ok { color: var(--c-green); }
.space-ng { color: var(--c-red); }

/* Summary Cards */
.cap-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.cap-summary-card {
  background: var(--c-white);
  padding: 1.25rem;
  border: 4px solid var(--c-black);
  box-shadow: 6px 6px 0 var(--c-gold);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cap-summary-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--c-gold);
}
.cap-summary-card.dead-card { box-shadow: 6px 6px 0 #94a3b8; }
.cap-summary-card.save-card { box-shadow: 6px 6px 0 var(--c-teal); }

.card-label {
  font-family: var(--font-header);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 900;
  color: var(--c-white);
  background: var(--c-black);
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
  transform: skewX(-10deg);
}
.card-value {
  font-size: 1.8rem;
  font-style: italic;
}

/* Rankings */
.cap-ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.cap-ranking-box {
  background: var(--c-white);
  padding: 1.5rem 1rem 1rem 1rem;
  border: 4px solid var(--c-black);
  box-shadow: 6px 6px 0 var(--c-teal);
}
.cap-ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 2px dashed var(--jax-black);
  font-family: -apple-system, sans-serif;
}
.cap-ranking-item:last-child { border-bottom: none; }
.rank-num { 
  font-weight: 900; 
  color: var(--jax-white); 
  background: var(--jax-black);
  width: 1.5rem; 
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem; 
  transform: rotate(-5deg);
}
.rank-name { flex-grow: 1; font-weight: 800; font-size: 0.95rem; padding: 0 0.5rem; }
.rank-val { font-weight: 900; font-size: 1rem; font-style: italic; }
.val-cap { color: var(--jax-black); }
.val-dead { color: #dc2626; }
.val-save { color: var(--jax-teal); }
.val-actual-dead { color: #64748b; }

/* Charts */
.cap-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.cap-chart-box {
  background: var(--jax-white);
  padding: 1.5rem 1.25rem 1.25rem;
  border: 4px solid var(--jax-black);
  box-shadow: 6px 6px 0 var(--jax-gold);
}
.cap-chart-bar {
  display: flex;
  height: 2.5rem;
  border: 3px solid var(--jax-black);
  background: var(--jax-white);
  margin-bottom: 1rem;
}
.cap-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jax-white);
  font-size: 0.8rem;
  font-weight: 900;
  border-right: 2px solid var(--jax-black);
}
.cap-segment:last-child { border-right: none; }

/* グラフの色をジャガーズカラーにマッピング */
.seg-off { background-color: var(--jax-teal); }
.seg-def { background-color: var(--jax-gold); }
.seg-st  { background-color: var(--jax-black); }
.seg-dead { 
  background: repeating-linear-gradient(45deg, var(--jax-black), var(--jax-black) 5px, #475569 5px, #475569 10px); 
}

.pos-color-1 { background: var(--jax-teal); } 
.pos-color-2 { background: var(--jax-gold); }
.pos-color-3 { background: var(--jax-black); } 
.pos-color-4 { background: #004854; } /* 濃いTeal */
.pos-color-5 { background: #b0821c; } /* 濃いGold */
.pos-color-6 { background: #334155; }
.pos-color-7 { background: #00879c; } /* 明るいTeal */
.pos-color-8 { background: #f59e0b; }

.cap-chart-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.grid-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.legend-item { display: flex; align-items: center; font-size: 0.85rem; font-weight: 800; font-family: -apple-system, sans-serif;}
.legend-item small { margin-left: 4px; color: #64748b; font-weight: bold; }
.dot { width: 12px; height: 12px; border: 2px solid var(--jax-black); margin-right: 6px; display: inline-block; transform: rotate(45deg); }
.dot-off { background: var(--jax-teal); } 
.dot-def { background: var(--jax-gold); } 
.dot-st  { background: var(--jax-black); }
.dot-dead { background: #475569; }



/* Timeline & Table Base */
.cap-timeline-section, .cap-table-section {
  background: var(--jax-white);
  padding: 1.5rem 1.25rem;
  border: 4px solid var(--jax-black);
  box-shadow: 8px 8px 0 var(--jax-teal);
  margin-bottom: 2.5rem;
}
.cap-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  /* スクロールバーのデザインも少しシャープに */
  scrollbar-width: thin;
  scrollbar-color: var(--jax-black) #f1f5f9;
}
.cap-note { font-family: -apple-system, sans-serif; font-size: 0.8rem; font-weight: bold; color: var(--jax-black); margin-top: -0.5rem; margin-bottom: 1rem; }

/* Position Horizontal Bars (P5 Style) */
.pos-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}
.pos-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pos-bar-label {
  width: 40px;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  text-align: right;
  color: var(--jax-black);
}
.pos-bar-track {
  flex-grow: 1;
  height: 1.2rem;
  background: #f1f5f9;
  border: 2px solid var(--jax-black);
  transform: skewX(-10deg);
  overflow: hidden;
}
.pos-bar-fill {
  height: 100%;
  border-right: 2px solid var(--jax-black);
}
/* ポジションごとにO/D/STの色を適用 */
.bar-off { background-color: var(--jax-teal); }
.bar-def { background-color: var(--jax-gold); }
.bar-st  { background-color: var(--jax-black); }

.pos-bar-value {
  width: 100px;
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--jax-black);
  text-align: right;
}
.pos-bar-pct {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Timeline Specifics */
.cap-timeline-inner { min-width: 600px; }
.tl-header-row, .tl-row { display: flex; align-items: stretch; }
.tl-header-row { font-size: 0.9rem; font-weight: 900; color: var(--jax-black); border-bottom: 3px solid var(--jax-black); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.tl-row { margin-bottom: 0.5rem; font-family: -apple-system, sans-serif; }
.tl-name-col { width: 25%; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1rem; display: flex; align-items: center;}
.tl-years-col { width: 75%; display: flex; background: #f1f5f9; border: 2px solid var(--jax-black); height: 2.2rem; }
.tl-year { flex: 1; text-align: center; }
.tl-cell { flex: 1; border-right: 2px solid var(--jax-black); position: relative; display: flex; align-items: center; justify-content: center; }
.tl-cell:last-child { border-right: none; }

/* タイムラインの背景色 */
.bg-off { background: var(--jax-teal); }
.bg-def { background: var(--jax-gold); }
.bg-st  { background: var(--jax-black); }
.bg-dead { background: repeating-linear-gradient(45deg, var(--jax-black), var(--jax-black) 5px, #475569 5px, #475569 10px); }
.bg-void { background: #e2e8f0; }

.txt-val { color: var(--jax-white); font-weight: 900; font-size: 0.8rem; position: relative; z-index: 10; text-shadow: 1px 1px 0 #000; }
.txt-void { color: var(--jax-black); font-weight: 900; font-size: 0.8rem; position: relative; z-index: 10; }

/* バッジ類（P5風に斜め＆切り抜き） */
.badge-void { position: absolute; bottom: -6px; right: -4px; font-size: 0.6rem; background: var(--jax-black); color: var(--jax-white); padding: 2px 5px; font-weight: 900; z-index: 10; transform: skewX(-10deg); border: 1px solid var(--jax-white); }
/* ハサミマークを左上に配置＆ギザギザ風 */
.badge-pot { position: absolute; top: -10px; left: -8px; font-size: 0.7rem; background: var(--jax-gold); color: var(--jax-black); border: 2px solid var(--jax-black); padding: 2px 4px; z-index: 15; transform: rotate(-10deg); box-shadow: 2px 2px 0 var(--jax-black); }
.badge-fa { font-size: 0.65rem; background: var(--jax-white); color: var(--jax-black); padding: 2px 5px; font-weight: 900; border: 2px solid var(--jax-black); z-index: 10; transform: skewX(-10deg); }

/* Table Specifics */
.cap-table-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 0.5rem; }
#capSearchInput {
  padding: 0.5rem 1rem;
  border: 3px solid var(--jax-black);
  font-weight: 800;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  max-width: 250px;
  transform: skewX(-5deg);
}
#capSearchInput:focus { box-shadow: 4px 4px 0 var(--jax-teal); }

.cap-roster-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; border: 3px solid var(--jax-black); background: var(--jax-white); }
.cap-roster-table th { 
  background: var(--jax-black); 
  color: var(--jax-white); 
  padding: 1rem 0.5rem; 
  font-size: 0.85rem; 
  font-style: italic;
  border-bottom: 3px solid var(--jax-black);
  border-right: 1px solid #334155;
}
.cap-roster-table th.sortable { cursor: pointer; transition: background 0.2s; }
.cap-roster-table th.sortable:hover { background: var(--jax-teal); }
.cap-roster-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--jax-black); border-right: 1px solid #e2e8f0; font-family: -apple-system, sans-serif; font-size: 0.95rem; }
.cap-roster-row:hover td { background-color: #f1f5f9; }

.not-counted { opacity: 0.4; }
.not-counted:hover { opacity: 0.8; }
.strike { text-decoration: line-through; text-decoration-color: var(--jax-black); text-decoration-thickness: 2px; }

.td-rk { font-weight: 900; font-size: 0.85rem; text-align: center; background: #f8fafc; }
.td-name { font-weight: 800; color: var(--jax-black); white-space: nowrap; }
.pos-tag { background: var(--jax-black); color: var(--jax-white); padding: 0.2rem 0.5rem; font-size: 0.75rem; font-weight: 900; transform: skewX(-10deg); display: inline-block; }
.badge-out { background: var(--jax-white); color: var(--jax-black); font-size: 0.65rem; font-weight: 900; padding: 0.1rem 0.4rem; border: 1px solid var(--jax-black); margin-left: 0.5rem; display: inline-block; transform: skewX(-10deg); }

.td-val { font-weight: 800; }
.text-muted { color: #64748b; font-weight: 600; }
.text-save { color: var(--jax-teal); font-weight: 900; background: #e0f2fe; padding: 0.2rem 0.4rem; border: 1px solid var(--jax-teal); display: inline-block; transform: skewX(-5deg);}
.text-danger { color: #dc2626; font-weight: 900; }

/* Load More Button (P5 Style) */
.cap-load-more-container { text-align: center; padding: 1.5rem 0 0.5rem; }
.cap-btn-load-more {
  background: var(--jax-gold);
  color: var(--jax-black);
  border: 3px solid var(--jax-black);
  box-shadow: 5px 5px 0 var(--jax-teal);
  padding: 0.8rem 2.5rem;
  font-family: "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transform: skewX(-10deg);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cap-btn-load-more:hover {
  transform: skewX(-10deg) translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--jax-teal);
}



/* ============================================================
   ARCHIVE: 過去のデザイン・互換性維持用コード
   ※新しい記事では使用せず、過去記事の表示崩れを防ぐために保持
   ============================================================ */

.roster caption{ font-size: 1.2em; font-weight: bold; text-align: left; }
.roster table{ border-collapse: separate; font-size: 1rem; }
.roster table thead tr{ background-color: #006778; color: white; text-align: left; }
.roster th{ position: sticky; top: 0; left: 0; }
.roster tr:first-child th:first-child{ z-index: 1; }
.roster table thead th:first-child{ background-color: #006778; }
.roster table tbody th{ background-color: #ededed; }
.roster th, .roster td{ padding: 0.2em 1em; border: solid 0.5px #e6e6e6; }
table.RosterName{ border-collapse: collapse; border: #000000 solid 2px; width: auto; max-width: 400px; min-width: 300px; margin-left: auto; margin-right: auto; }
table.RosterName thead tr{ background-color: #006778; color: white; text-align: left; }
table.RosterName th, table.RosterName td{ padding: 2px 5px; }
table.RosterName th.Num, table.RosterName td.Num{ text-align: center; }
table.RosterName th.Name, table.RosterName td.Name{ font-weight: bold; }
table.RosterName td.ir{ background-color: #5e5e5e; color: white; font-weight: bold; text-align: center; }
table.RosterName td.ps{ background-color: #fff056; font-weight: bold; text-align: center; }
table.RosterName td.cut{ background-color: #ff968d; font-weight: bold; text-align: center; }
/* 契約 */
.contract td:nth-child(2n+1){ background-color: #FFF100; }
/* 長所・短所 */
.procon dl dt{ border-bottom: 1px solid #006778; }
.procon dl dd{ margin-bottom: 0.4em; text-indent: -1.3em; padding-left: 1.3em; }
.procon dl dd:last-child{ margin-bottom: 0.75em; }
.procon dl dt:before{ font-family: "Font Awesome 5 Free"; content: "\f0da" " "; color: #006778; }
.procon dl dd:before{ content: "▶︎ "; color: #006778; }
/* 長所・短所 */
/* ※ */
p.kome{ text-indent: -1em; padding-left: 1em; }
p.kome::before{ content: "※"; color: #006778; }
/* ※ */
.history th,td{ padding: 0.2em; }
.trade table th{ color: #fff; text-align: center; border: none; }
.trade table td{ background-color: #ededed; text-align: center; border: none; }
.trade table th:first-child, .trade table td:first-child{ border-right: solid 2px #fff; }
.teamstats{ width: 100%; }
.teamstats table th{ color: #fff; text-align: center; background-color: #3E3E3E; }
.teamstats table td{ background-color: #fff!important; text-align: center; }

/* player-info内のPFF grade */
.player-info dd.grades { display: grid; grid-template-columns: max-content min-content; gap: 2px 8px; align-items: start; }
.player-info dd.grades span { display: inline-block; white-space: nowrap; }
.player-info dd.grades strong { display: inline-block; white-space: nowrap; }
.pff-grade { display: inline-block; text-align: center; padding: 2px 6px; border-radius: 6px; color: #ffffff; font-weight: bold; }
.team-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; font-weight: bold; font-size: 0.9em; background-color: var(--team-color1, #006778); color: var(--team-color2, #d7a22a); text-align: center; white-space: nowrap; }