@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* TERMINAL内のフォント */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');
/* MotoGP内のフォント */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=Barlow:wght@400;500;600&display=swap');

/* ------------------------------------------------------
 * ブログカードのサムネサイズ
 * ------------------------------------------------------ */
@media (min-width: 600px) {
    .p-blogCard__thumb {
        width: 40%;
    }
}

/* ------------------------------------------------------
 * Webフォント
 * ------------------------------------------------------ */
 /* 参戦チーム＆ライダー */
.league-gothic-gfont {
  font-family: "League Gothic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

// <weight>: Use a value from 200 to 900
// <uniquifier>: Use a unique and descriptive class name
.gfont01 {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* ------------------------------------------------------
 * ヘッダーの設定
 * ------------------------------------------------------ */
 /* ヘッダーを固定 */
 @media (min-width: 960px) {
  .l-header {
    position: fixed!important;
    background: transparent;
  }
  .p-breadcrumb {
    margin-top: calc(var(--logo_size_pc) + 1px);
  }
}
/* 下層ページのヘッダー幅をトップに合わせる */
.l-header .l-container {
  max-width: 100%!important;
}
/* ヘッダーメニューを非表示 */
nav#gnav {
  display: none;
}
/* ------------------------------------------------------
 * PCでハンバーガーボタンを表示させる設定 
 * ------------------------------------------------------ */
.l-header__menuBtn.sp_ {
  display: block!important; /* ハンバーガーボタンを表示 */
}
.-series .l-header__inner {
  align-items: center;  /* ハンバーガーボタンの上下位置調整 */
}
.p-spMenu {
  display: block; /* 開閉メニューを有効 */
}
/* ------------------------------------------------------
 * 開閉メニューのフルスクリーン設定
 * ------------------------------------------------------ */
.p-spMenu__inner {
	--color_menu_text: #000000; /* メニューテキストの色 */
	--color_menu_bg: rgba(255 255 255 / 85%); /* フルスクリーンメニューの背景色 */
  width: 100vw;
}
.p-spMenu__overlay {
  background: transparent;
}
.-right .p-spMenu__inner {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  opacity: 0;
  transition: opacity .45s;
}
[data-spmenu=opened] .p-spMenu__inner {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  opacity: 1;
}
.p-spMenu__inner::before {
  background: var(--color_menu_bg);
  opacity: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* ------------------------------------------------------
 * フルスクリーンメニュー内の設定
 * ------------------------------------------------------ */
.p-spMenu__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;  /* PCのフォントサイズ */
  font-weight: 700;
  color: var(--color_menu_text);
}
.is-style-default.custom-line-height {
  --the-gap: 0em;
}
@media (min-width: 960px) {
/* 開閉メニュー内のバツボタン位置 */
.-right .p-spMenu__closeBtn {
    right: 50px;
    top: 15px;
}
}
@media (max-width: 599px) {
  .p-spMenu__body {
  font-size: 3.5vw; /* スマホのフォントサイズ */
  }
}

/* 開閉メニュー内のタイトルを非表示 */
.c-widget__title.-spmenu {
  display: none;  
}
/* メニューリンクの設定 */
.c-spnav a {
  border-bottom: none;
}
.c-gnav .sub-menu a:before, .c-listMenu a:before {
  content: none;
}
.p-spMenu__inner a {
  padding: 1em 0;
  text-align: center;
  transition: transform .5s;
}
.p-spMenu__inner a:hover {
  padding-left: inherit;
  padding-right: inherit;
  background-color: inherit;
  transform: scale(1.1)
}

/* ------------------------------------------------------
 * MOREボタン
 * ------------------------------------------------------ */
.is-style-more_btn a {
	color: #FFF;
	background: #3D79D5;
}

.is-style-more_btn a:hover{
	color: #FFF;
	background: var(--color_htag);
}

/* ------------------------------------------------------
/*TOP スクロールアニメーション*/
 * ------------------------------------------------------ */
.p-mainVisual__scroll svg{
  display: none;
}
.p-mainVisual__scroll{
  position:absolute;
	bottom:15px;
	left: unset;
  right: 0;
}
.p-mainVisual__scroll:before {
  content: "";
  position: absolute;
  bottom:0;
  left:11px;
  width:12px;
  height:12px;
  border-radius: 50%;
  background:#fff;
  animation:
  circlemove 1.6s ease-in-out infinite,
  cirlemovehide 1.6s ease-out infinite;
}
@keyframes circlemove{
  0%{bottom:70px;}
  100%{bottom:35px;}
 }
@keyframes cirlemovehide{
  0%{opacity:0}
  50%{opacity:1;}
  80%{opacity:0.9;}
  100%{opacity:0;}
 }
.p-mainVisual__scroll:after{
	content:"";
	position: absolute;
	bottom:38px;
	left:16px;
	width:2px;
	height: 40px;
	background:#fff;
}
/* ------------------------------------------------------
 * スターティンググリッド
 * ------------------------------------------------------ */
.grid-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto; /* 横スクロールを有効にする */
}

.row {
  display: flex;
  gap: 10px; /* 列間のスペース */
}

.row:nth-child(odd) {
  margin-right: 20px; /* 奇数行に右のマージンを適用 */
}
.row:nth-child(even) {
  margin-left: 20px; /* 偶数行に左のマージンを適用 */
}

.rider-info {
  border: 2px solid #000;
  padding: 10px 10px 10px 0px;
  width: 300px; /* 幅を少し狭くして間隔を調整 */
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  font-size: 14px;
}

.grid-number {
  border: none; /* 枠線を削除 */
  font-weight: 700;
  padding: 5px 0px 5px 3px;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 1.5em;
  position: absolute; /* 絶対配置で左上に配置 */
  top: 10px;
  left: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-content {
  margin-left: 60px; /* ライダー情報を番号の右に少しスペースを空けて配置 */
}

/* margin-topの調整 */
.grid-offset-0 {
  margin-top: 0;
}

.grid-offset-25 {
  margin-top: 25px;
}

.grid-offset-50 {
  margin-top: 50px;
}

.row:nth-child(odd) .rider-info {
  background-color: #f0f0f0;
}

.row:nth-child(even) .rider-info {
  background-color: #dcdcdc;
}

/* スマホ向け調整 */
@media screen and (max-width: 768px) {
  .grid-container {
    overflow-x: scroll; /* スマホでは横スクロールを有効にする */
    -webkit-overflow-scrolling: touch; /* 滑らかなスクロールを有効にする */
  }

  .row {
    min-width: 600px; /* スマホでも横に並ぶように最低幅を設定 */
  }
}
/* ------------------------------------------------------
 * ------------------------------------------------------ */

/* サイドバーと記事下の見出しおよびプロフィール名前と役職・見出しミニ2 */
.p-authorBox__name,.p-profileBox__name,.p-profileBox__job,.p-authorBox__position,.c-widget__title.-side,.c-secTitle,.mininote2 {
	font-family: 'Montserrat', 'BIZ UDGothic', sans-serif !important;
}

/* フッター上部の余白  */
div[data-postid="14"]  {
  margin-bottom: 0px !important;
}

/* 下層ヘッダー下部パンくず下の余白 */
div[data-postid="14"] {
  padding-top: 7px !important;
}

/* メインビジュアル下部の余白 ホーム */
div[data-postid="14"] {
  padding-top: 0 !important;
}

/* ======================================================
   PROMPT TERMINAL SYSTEM - CYBER STYLE
   ====================================================== */

/* --- 1. メインコンテナ（Sticky本体） --- */
#prompt-sticky-container {
    position: sticky;
    top: 70px; /* PCでの固定位置 */
    z-index: 99;
    background: #0d0d0d;
    padding: 4px; /* 限界まで削る */
    border: 2px solid #00ffcc;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
    color: #fff;
}

/* --- 2. アコーディオン開閉ボタン --- */
.cyber-accordion-btn {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; 
    padding: 4px 6px; 
    border: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 0;
    transition: all 0.2s ease;
}

.cyber-accordion-btn:hover {
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: none; 
}

/* タイトルエリアのレイアウト調整 */
.cyber-accordion-btn > div:first-child {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

/* タイトルテキスト */
.prompt-title-main { 
    font-size: 0.95rem !important; 
    color: #00ffcc !important; 
    font-weight: bold !important; 
    margin: 0 !important; 
    line-height: 1; 
}
.prompt-title-sub { 
    font-size: 0.7rem !important; 
    color: #888 !important; 
    font-weight: normal !important; 
    margin: 0 !important; 
    opacity: 0.8; 
    line-height: 1; 
}

/* 開閉バッジ（状態表示） */
.toggle-status-badge {
    background: #00ffcc; /* CLOSE時は塗りつぶし */
    color: #0d0d0d;
    padding: 2px 6px;
    border: 1px solid #00ffcc; /* 枠線を追加してサイズを統一 */
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s ease;
}

/* --- 3. アコーディオンの中身（V1合体＆爆速版） --- */
#prompt-accordion-content {
    position: absolute; 
    top: calc(100% - 2px); /* ★100%から少し上にずらして親のボーダーに重ねる */
    left: -2px; 
    width: calc(100% + 4px);
    background: #0d0d0d;
    border: 2px solid #00ffcc;
    /* 上の境界線を消して、上の角を尖らせ、下の角を丸める */
    border-top: none;
    border-radius: 0 0 6px 6px; 
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.9);
    z-index: 100;
    
    overflow: hidden;
    transition: max-height 0.2s ease-out, opacity 0.2s;
    max-height: 600px;
    opacity: 1;
    padding: 8px; /* 内側の余白 */
    box-sizing: border-box;
    
    will-change: max-height, opacity;
    transform: translateZ(0);
}

/* ★追加：プロンプトが増えすぎても、高さを制限してスクロールさせる */
.v1-mock-textarea {
    width: 100%; 
    border: 1px solid #333; 
    padding: 6px; 
    border-radius: 3px;
    background: #111; 
    color: #fff; 
    font-family: monospace; 
    font-size: 0.8rem; 
    line-height: 1.5;
    
    /* ★ココ！高さを2行分くらいに固定して、超えたらスクロールさせる */
    min-height: 32px;
    max-height: 57px; 
    overflow-y: auto;
    
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    box-sizing: border-box;
}

/* 閉じている時の状態 */
#prompt-sticky-container.is-closed #prompt-accordion-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0; 
    pointer-events: none;
}
#prompt-sticky-container.is-closed .cyber-accordion-btn {
    border-bottom-color: transparent;
}

#prompt-sticky-container.is-closed #accordion-icon { transform: rotate(-90deg); }

/* ここを変更：閉じている時はRESETボタンと同じスタイル（透明背景・緑文字）にする */
#prompt-sticky-container.is-closed .toggle-status-badge { 
    background: transparent; 
    color: #00ffcc; 
    /* borderは継承されるのでそのままでOK */
}

/* --- 4. テキストエリア＆操作ボタン --- */
#output-prompt {
    width: 100%; 
    border: 1px solid #333; 
    padding: 4px 6px; 
    border-radius: 3px;
    background: #111; 
    color: #fff; 
    font-family: monospace; 
    resize: vertical; 
    margin-bottom: 1px; /* 限界まで詰める（4px → 1px） */
    font-size: 0.8rem; 
    line-height: 1.2;
    display: block; /* 念のためブロック要素指定 */
}

/* === v1用ボタン（COPY / RESET）の完全修正版 === */
.cp-btn { 
    font-family: 'Orbitron', sans-serif !important; /* フォントを明示的に指定 */
    font-weight: 900 !important; 
    border: 1px solid #00ffcc !important; 
    cursor: pointer; 
    letter-spacing: 0.5px;
    padding: 0 8px;              /* 上下は0にしてflexで中央寄せ */
    font-size: 0.8rem; 
    border-radius: 2px;
    
    /* ズレを直すための魔法の3行 */
    display: inline-flex;        /* flexに切り替え */
    align-items: center;         /* 垂直方向の中央揃え */
    justify-content: center;     /* 水平方向の中央揃え */
    
    height: 22px;                /* 高さを固定して1pxの狂いも許さない */
    line-height: 1;              /* 行間によるズレを排除 */
    vertical-align: middle;      /* 隣のテキストとの並びを揃える */
    box-sizing: border-box;      /* ボーダーを含めたサイズ計算に */
}

/* 各ボタンの固有設定（マージンも微調整） */
.prompt-btn-copy { 
    background: #00ffcc !important; 
    color: #0d0d0d !important; 
    margin-left: 5px; 
}

.prompt-btn-reset { 
    background: transparent !important; 
    color: #00ffcc !important; 
    margin-left: 5px; 
}

/* ホバー時の挙動（おまけ：少し光らせるとサイバー感増すわよ） */
.cp-btn:hover {
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
    opacity: 0.8;
}

/* コピー完了メッセージ */
#copy-msg { 
    color: #ff00ff !important; font-weight: 900 !important; 
    font-size: 0.75rem; 
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.6); 
    margin-left: 6px; 
    display: inline-block;
}

/* --- 5. プロンプトコードの装飾（単独コピー用） --- */

/* 基本設定：全てのコードタグをボタン化 */
code {
    cursor: pointer !important;
    transition: all 0.2s;
}

/* テーブル内のインラインコード（短いもの） */
.is-style-borderd td code {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 !important;
    vertical-align: middle;
}
.is-style-borderd td code:hover {
    background: #00ffcc;
    color: #0d0d0d;
}

/* ブロックコード（wp-block-code / pre）の中身 */
pre code, .wp-block-code code {
    cursor: pointer !important;
}
pre code:hover, .wp-block-code code:hover {
    opacity: 0.8;
    outline: 2px solid #00ffcc; /* 枠線を光らせてアピール */
}

/* --- 6. ツールチップ（Copied!）のデザイン --- */
/* テーマの影響を受けない最強の指定 */
.copy-tooltip {
    position: absolute;
    display: inline-block !important;
    background: #1a1a1a !important;   /* リッチな黒 */
    color: #00ffcc !important;        /* ネオンカラー */
    padding: 6px 12px !important;     
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;      
    border-radius: 4px !important;
    white-space: nowrap !important;   
    z-index: 999999 !important;       /* 最前面 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
    pointer-events: none;             
    transform: translateX(-50%);      /* 中央揃え */
    
    /* ふわっと消えるアニメーション */
    opacity: 0;
    animation: fadeInOut 1s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 5px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -5px); }
}

/* --- 7. テーブル＆チェックボックス設定 --- */
.is-style-borderd table { border-collapse: collapse !important; }
.is-style-borderd th, .is-style-borderd td { 
    border: 1px solid #ddd !important; 
    padding: 15px !important; /* タップしやすい広めの余白 */
    position: relative;
}

/* 行全体をボタンっぽく */
.is-style-borderd tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
.is-style-borderd tbody tr:hover {
    background-color: rgba(0, 255, 204, 0.05) !important;
}
/* チェックが入っている行の色 */
.is-style-borderd tbody tr:has(.prompt-tag:checked) {
    background-color: rgba(0, 255, 204, 0.1) !important;
}

/* チェックボックスのデザイン */
.prompt-tag-label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.prompt-tag { 
    margin: 0 !important; width: 18px; height: 18px; accent-color: #00ffcc; 
    transform: scale(1.2); filter: drop-shadow(0 0 2px rgba(0, 255, 204, 0.5)); 
    position: relative; z-index: 2;
}

/* --- 8. スクロール調整（目次ジャンプ対策） --- */
.post_content h2, 
.post_content h3, 
.post_content h4 {
    scroll-margin-top: 200px !important; /* PC初期値 */
}

/* --- 9. スマホ・レスポンシブ設定 --- */
@media screen and (max-width: 767px) {
    /* コンテナ調整 */
    #prompt-sticky-container {
        padding: 6px 10px !important; /* 左右の余白を少し増やして（10px）ボタンを内側に寄せる */
        top: 50px; 
        overflow: visible !important; 
        padding-bottom: 8px !important; /* 下の余白もバランスよく */
    }

    /* ヘッダーボタンのレイアウト */
    .cyber-accordion-btn {
        padding: 6px 4px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .cyber-accordion-btn > div:first-child { 
        min-width: 0; 
        flex: 1; 
    }

    /* バッジの調整 */
    .toggle-status-badge {
        padding: 3px 6px !important;
        font-size: 0.65rem !important;
    }
    
    /* --- テキストエリア（ボタンを押し下げる役割） --- */
    #output-prompt {
        display: block;
        width: 100%;
        margin-bottom: 6px !important; /* ボタンとの距離をしっかり確保 */
    }

    /* --- ボタン共通設定（フロート左右配置・幅48%作戦） --- */
    .cp-btn {
        display: block !important;
        width: 48% !important; /* 48%ずつ確保（残り4%が真ん中の隙間になる） */
        height: 28px !important; /* タップしやすい高さ */
        line-height: 26px !important; /* 文字を垂直中央に */
        padding: 0 !important;
        margin: 0 !important; /* 余計なマージンは全廃止 */        
        font-size: 0.85rem !important;
        box-sizing: border-box;
        text-align: center !important;
    }

    /* 左：コピーボタン（左端に寄せる） */
    .prompt-btn-copy {
        float: left !important;
    }

    /* 右：リセットボタン（右端に寄せる） */
    .prompt-btn-reset {
        float: right !important;
    }

    /* コピーメッセージ（フロート解除） */
    #copy-msg { 
        clear: both !important;
        margin-top: 5px; 
        width: 100%; 
        display: block; 
        text-align: center;
        padding-top: 5px;
    }

    /* スクロール位置調整 */
    .post_content h2, .post_content h3, .post_content h4 {
        scroll-margin-top: 200px !important;
    }
}
/* --- 10. HOME 告知用（sticky無効化） --- */
#prompt-sticky-container.no-sticky {
    position: relative !important; /* 固定を解除して通常の配置にする */
    top: 0 !important;             /* 位置もリセット */
    z-index: 1;                    /* 重なり順も標準に戻す */
    margin-top: 2rem;              /* 告知エリアとして上下に余白を適宜追加 */
    margin-bottom: 2rem;
}

/* ======================================================
   CYBER SEARCH BOX - 検索窓周辺のデザイン
====================================================== */

/* 検索コンテナ */
.cyber-search-container {
    margin-bottom: 24px;
    position: relative;
    width: 100%;
}

/* 入力欄のラッパー（フォーカス時のネオン枠用） */
.cyber-input-wrapper {
    display: flex;
    align-items: center;
    background: #0d0d0d; /* リッチな黒 */
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
}

/* フォーカス時にネオングリーンで発光させる */
.cyber-input-wrapper:focus-within {
    border-color: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.2), inset 0 0 5px rgba(0, 255, 204, 0.1);
}

/* ターミナル記号（>_） */
.cyber-prompt-symbol {
    color: #ff00ff; /* マゼンタでアクセント */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
    animation: pulse-magenta 2s infinite; /* 妖しく明滅 */
}

/* 検索入力欄本体 */
.cyber-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px; /* スマホでのズーム防止に必須の16px */
    font-family: 'Courier New', Courier, monospace; /* ターミナル感を出す */
    outline: none;
}

/* プレースホルダー（入力前のヒント文字） */
.cyber-search-input::placeholder {
    color: #555;
    font-style: italic;
    font-family: sans-serif; /* ここは読みやすく */
}

/* ステータステキスト */
.cyber-search-status {
    font-size: 0.8rem;
    color: #00ffcc; /* 準備完了時はネオングリーン */
    margin-top: 8px;
    font-family: monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 3px rgba(0, 255, 204, 0.3);
    transition: color 0.3s;
}

/* ロード中のアニメーションと色 */
.cyber-search-status.is-loading {
    color: #ff00ff; /* ロード中はマゼンタで警告っぽく */
    animation: blinker 1.5s linear infinite;
    text-shadow: 0 0 3px rgba(255, 0, 255, 0.3);
}

/* アニメーション定義 */
@keyframes blinker {
    50% { opacity: 0.4; }
}
@keyframes pulse-magenta {
    0% { text-shadow: 0 0 2px #ff00ff; }
    50% { text-shadow: 0 0 8px #ff00ff; }
    100% { text-shadow: 0 0 2px #ff00ff; }
}
/* ======================================================
   V1 ドラッグ＆ドロップ用テキストエリア置換CSS
   ====================================================== */

/* 元のtextareaと全く同じ見た目にするモック用div */
.v1-mock-textarea {
    width: 100%; 
    border: 1px solid #333; 
    padding: 4px 6px; 
    border-radius: 3px;
    background: #111; 
    color: #fff; 
    font-family: monospace; 
    margin-bottom: 1px;
    font-size: 0.8rem; 
    line-height: 1.6; /* 掴みやすいように少しだけ行間を広げる */
    min-height: 28px;
    box-sizing: border-box;
    /* タグが端で綺麗に折り返すように */
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
}

/* ドラッグできる単語たち（チップではなくただの文字として見せる） */
.v1-drag-tag {
    cursor: grab;
    display: inline-block;
    transition: 0.2s ease;
}

/* 文字の後ろに自動でカンマをつける（最後の要素以外） */
.v1-drag-tag::after {
    content: ',';
    color: #888;
}
.v1-drag-tag:last-child::after {
    content: ''; 
}

/* ドラッグ中の状態 */
.v1-drag-tag.is-dragging {
    opacity: 0.3;
    transform: scale(0.95);
    cursor: grabbing;
}

/* 割り込み先のターゲットになった時のサイバーな表示 */
.v1-drag-tag.drag-over {
    border-left: 2px solid #00ffcc;
    padding-left: 2px;
}
  /* ======================================================
   1. PROMPT TERMINAL SYSTEM V2 - CYBER STYLE (UNIFIED & SLIM)
   ====================================================== */
  #prompt-sticky-container {
    position: sticky;
    top: 70px;
    z-index: 99;
    background: #0d0d0d;
    padding: 4px;
    border: 2px solid #00ffcc;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
  }

  /* 検索窓まわり（スマホで歯車かぶらない＆極限スリム化） */
  .terminal-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    padding: 4px 8px !important;
    margin-bottom: 4px !important;
    gap: 8px;
  }
  .mc-prompt-symbol {
    color: #00ffcc;
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    font-weight: bold;
  }
.mc-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    /* ★ココを 0.9rem から 16px に変更 */
    font-size: 16px !important; 
    padding: 2px 0 !important;
    outline: none;
}
  .mc-search-input::placeholder {
    color: #666;
  }
  .cyber-filter-btn {
    flex-shrink: 0 !important;
    background: transparent;
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    font-size: 1rem !important;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 8px !important;
    transition: 0.2s;
  }
  .cyber-filter-btn:hover {
    background: rgba(0, 255, 204, 0.2);
  }

  /* フィルターパネル */
  .cyber-filter-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(0, 255, 204, 0.3);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
  }
  .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .filter-label {
    color: #00ffcc;
    font-family: Consolas, monospace;
    font-weight: bold;
  }
  .cyber-select {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 2px 4px;
    border-radius: 3px;
    outline: none;
  }
  .cyber-radio {
    cursor: pointer;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
  }

  /* ステータス行 */
  .terminal-status-line {
    font-family: Consolas, monospace;
    font-size: 0.65rem;
    color: #00ffcc;
    margin-top: 2px;
    margin-bottom: 4px !important;
    padding-left: 10px;
    opacity: 0.8;
    text-align: left;
    animation: statusBlink 2s infinite ease-in-out;
  }
  @keyframes statusBlink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.4;
    }
  }

/* ======================================================
   アコーディオン開閉ボタン（真・1段スリム化＆面合わせ版）
   ====================================================== */
.cyber-accordion-btn {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    background: transparent;
    padding: 4px 6px !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.cyber-accordion-btn:hover { background: rgba(255, 255, 255, 0.05); }

.prompt-title-main {
    display: flex;
    align-items: center;
    font-size: 1rem !important;
    color: #00ffcc !important;
    font-weight: bold !important;
    margin: 0 !important;
    line-height: 1;
    white-space: nowrap;
}

/* 右側のコントロール群をまとめる */
.accordion-controls {
    display: flex;
    align-items: center; 
    gap: 6px;
}

/* ★修正：バッジの文字縦ズレを解消 */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 横中央揃えも追加 */
    height: 22px; 
    padding: 0 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: monospace;
    box-sizing: border-box;
    gap: 4px; /* POS: と 0 の間隔 */
}

/* ★修正：OPEN/CLOSEボタン（Orbitron適用版） */
.toggle-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 6px;
    border: 1px solid #00ffcc;
    border-radius: 3px;
    background: rgba(0, 255, 204, 0.05);
    color: #00ffcc;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 88px; /* ★ 80px -> 88px に拡張（CLOSEの幅を確保） */ 
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* OPEN/CLOSEの文字部分 */
#toggle-text-mock {
    display: inline-block;
    width: 54px; /* ★ 48px -> 54px に拡張 */
    text-align: center;
}

/* ★修正：アコーディオンが開いている(CLOSE)時のベタ塗り同化防止 */
#prompt-sticky-container:not(.is-closed) .toggle-status-badge {
    background: #00ffcc; /* ベタ塗り */
    color: #0d0d0d;      /* 文字を暗くして読みやすくする！ */
}

/* アコーディオン開閉アイコン */
#accordion-icon-mock { transition: transform 0.3s ease; }

/* スマホ用レスポンシブ */
@media screen and (max-width: 440px) {
    .hide-mobile { display: none; } /* ★稲妻マークだけを消す */
    .prompt-title-main { font-size: 0.9rem !important; }
    .accordion-controls { gap: 4px; }
    .count-badge { padding: 0 4px; font-size: 0.65rem; }
    .toggle-status-badge { width: 72px; padding: 0 4px; } /* スマホ時は少しだけ幅を詰める */
}

  /* カウントバッジ＆フラッシュアニメ */
  .count-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: monospace;
    transition: all 0.2s;
  }
  .badge-pos {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    border: 1px solid #00ffcc;
  }
  .badge-neg {
    background: rgba(255, 68, 102, 0.15);
    color: #ff4466;
    border: 1px solid #ff4466;
  }
  @keyframes cyberFlashPos {
    0% {
      background: rgba(0, 255, 204, 0.15);
    }
    50% {
      background: #00ffcc;
      color: #0d0d0d;
      box-shadow: 0 0 12px #00ffcc;
    }
    100% {
      background: rgba(0, 255, 204, 0.15);
    }
  }
  @keyframes cyberFlashNeg {
    0% {
      background: rgba(255, 68, 102, 0.15);
    }
    50% {
      background: #ff4466;
      color: #0d0d0d;
      box-shadow: 0 0 12px #ff4466;
    }
    100% {
      background: rgba(255, 68, 102, 0.15);
    }
  }
  .flash-pos {
    animation: cyberFlashPos 0.4s ease-out;
  }
  .flash-neg {
    animation: cyberFlashNeg 0.4s ease-out;
  }

  /* アコーディオン中身 */
  #prompt-accordion-content {
    overflow: hidden;
    transition:
      max-height 0.3s ease-out,
      opacity 0.3s;
    max-height: 800px;
    opacity: 1;
    margin-top: 4px;
    padding-top: 6px;
  }
  #prompt-sticky-container.is-closed #prompt-accordion-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
  #prompt-sticky-container.is-closed #accordion-icon-mock {
    transform: rotate(-90deg);
  }
/* 外側のラッパー（POSITIVEブロックとNEGATIVEブロックの間の隙間）を少し詰める */
.prompt-textarea-wrapper { 
    margin-bottom: 4px !important; 
}
/* ラベル文字の極限スリム化 */
.textarea-label { 
    font-size: 0.65rem !important; 
    opacity: 0.8; 
    margin-bottom: 0 !important; /* ★下の余白を完全にゼロに */
    line-height: 1 !important;   /* ★文字が持つ見えない上下の余白を消去 */
    display: block;              /* ★ブロック要素にして謎の隙間を防ぐ */
    padding-bottom: 2px;         /* ★枠線とくっつきすぎないよう最低限の2pxだけ確保 */
}
  .label-pos {
    color: #00ffcc;
  }
  .label-neg {
    color: #ff4466;
  }

  /* ★ チップコンテナ（高さ制限・スクロール） */
  .prompt-chip-container {
    width: 100%;
    border: 1px solid #333;
    background: #111;
    border-radius: 3px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 6px 4px 4px 4px !important;
    gap: 4px !important;
    min-height: 32px !important;
    height: 45px; /* (!importantは絶対につけない) */
    resize: vertical; /* 縦に引っ張れる */
    overflow-y: auto !important;
  }
  .prompt-chip-container::-webkit-scrollbar {
    width: 6px;
  }
  .prompt-chip-container::-webkit-scrollbar-track {
    background: #0d0d0d;
    border-radius: 3px;
  }
  .prompt-chip-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.4);
    border-radius: 3px;
  }
  .prompt-chip-container::-webkit-scrollbar-thumb:hover {
    background: #00ffcc;
  }

  /* チップ本体 */
  .cyber-chip {
    display: inline-flex;
    align-items: center;
    font-family: Consolas, monospace;
    word-break: break-all;
    font-size: 0.7rem !important;
    padding: 1px 6px !important;
    border-radius: 12px;
    line-height: 1.4 !important;
    gap: 4px;
  }
  .chip-pos {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.4);
  }
  .chip-neg {
    background: rgba(255, 68, 102, 0.15);
    color: #ff4466;
    border: 1px solid rgba(255, 68, 102, 0.4);
  }
  .chip-close {
    font-size: 0.8rem !important;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
  }
  .chip-close:hover {
    opacity: 1;
    transform: scale(1.2);
  }
  .empty-placeholder {
    color: #666;
    font-size: 0.8rem;
    font-family: monospace;
  }

  /* コピー・リセットボタン */
  .prompt-controls {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px !important;
    gap: 8px !important;
  }
.cp-btn { 
    display: inline-flex;
    align-items: center;        /* Flexboxのパワーで強制的に上下中央へ */
    justify-content: center;
    height: 24px;               /* ★ココ！物理的な高さを指定（スマホの指のサイズ的にもこれくらいが綺麗） */
    padding: 0 12px !important; /* ★上下の余白は0にする！左右の余白だけで幅を確保 */
    line-height: 1;             /* 文字単体の謎の隙間を消す */
    font-family: Arial, sans-serif; /* ★OS間の差が出にくい標準フォントを指定しておく */
    font-weight: 900; 
    border: 1px solid #00ffcc; 
    cursor: pointer; 
    font-size: 0.75rem !important; 
    border-radius: 2px; 
    transition: 0.2s; 
    background: transparent; 
    color: #00ffcc; 
    font-family: 'Orbitron', sans-serif !important; 
    letter-spacing: 0.5px; /* ボタンっぽさとサイバー感を強調 */
}
  .cp-btn:hover {
    background: #00ffcc;
    color: #0d0d0d;
  }
  .copy-tooltip {
    position: absolute;
    background: #00ffcc;
    color: #0d0d0d;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 4px;
    z-index: 1000;
    pointer-events: none;
    transform: translate(-50%, -100%);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    white-space: nowrap;
  }
  .copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #00ffcc transparent transparent transparent;
  }

  /* ======================================================
   2. 辞書テーブル部分 (既存維持＋スマホ最適化)
   ====================================================== */
  .cyber-table-container {
    font-family: "Segoe UI", Meiryo, sans-serif;
    overflow-x: hidden;
    margin-top: 10px;
  }
  .cyber-rich-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .cyber-rich-table th {
    background: #f4f4f9;
    color: #666;
    padding: 12px 15px;
    font-size: 13px;
    text-align: left;
    border-bottom: 2px solid #ddd;
  }
  .cyber-rich-table td {
    background: #fff;
    padding: 15px;
    vertical-align: top;
    color: #333;
  }
  .cyber-rich-table tr.main-row td:first-child {
    border-left: 4px solid #e94560;
    border-radius: 8px 0 0 0;
  }
  .cyber-rich-table tr.main-row td:last-child {
    border-right: 1px solid #eee;
    border-radius: 0 8px 0 0;
  }
  .cyber-rich-table tr.main-row td {
    border-top: 1px solid #eee;
    border-bottom: none !important;
    padding-bottom: 5px;
  }
  .cyber-rich-table tr.nl-row td {
    border-top: none !important;
    padding-top: 0;
    padding-bottom: 15px;
    border-left: 4px solid #e94560;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  }
  .nl-box {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
    color: #444;
  }
  .nl-text {
    flex: 1;
    cursor: pointer;
    transition: 0.2s;
    word-break: break-all;
  }
  .nl-text:hover {
    color: #e94560;
    text-decoration: underline;
  }
  .flavor-text {
    font-size: 11px;
    color: #e94560;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
  }
  .tag-code {
    font-family: Consolas, monospace;
    font-size: 15px;
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
  }
  .score-stars {
    color: #fca311;
    font-size: 13px;
    letter-spacing: 1px;
  }
  .alias-list {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #eee;
  }
  .badge-target {
    background: #e0f7fa;
    color: #00838f;
  }
  .badge-syn {
    background: #f1f8e9;
    color: #558b2f;
    cursor: pointer;
  }
  .badge-neg-item {
    background: #ffebee;
    color: #c62828;
    cursor: pointer;
  }
  .mini-label {
    font-size: 9px;
    color: #999;
    display: block;
    margin-top: 6px;
  }

  /* スマホ用レスポンシブ (ターミナル＆テーブル) */
  @media screen and (max-width: 768px) {
    #prompt-sticky-container {
      padding: 4px !important;
      top: 47px !important;
    }
    .mc-prompt-symbol {
      display: none !important;
    } /* スマホでは root@... を非表示！ */
    .terminal-search-wrapper {
      margin-bottom: 4px !important;
    }

    .cyber-rich-table thead {
      display: none;
    }
    .cyber-rich-table tr.main-row {
      display: block;
      border: 1px solid #eee;
      border-bottom: none;
      border-radius: 8px 8px 0 0;
      margin-top: 10px;
    }
    .cyber-rich-table tr.nl-row {
      display: block;
      border: 1px solid #eee;
      border-top: none;
      border-radius: 0 0 8px 8px;
      margin-bottom: 10px;
    }
    .cyber-rich-table td {
      display: block;
      width: 100% !important;
      padding: 12px;
      box-sizing: border-box;
      border: none !important;
    }
    .cyber-rich-table tr.main-row td:first-child {
      border-top: 4px solid #e94560 !important;
    }
  }
/* ======================================================
   3. ドラッグ＆ドロップ（順番入れ替え）用のサイバーUI
   ====================================================== */
  
  /* チップ本体：掴めることを示す「手」のマーク */
  .cyber-chip[draggable="true"] {
    cursor: grab;
  }

  /* ★ココが超重要！ ×ボタンの上だけは「指差し」を強制（干渉防止） */
  .cyber-chip[draggable="true"] .chip-close {
    cursor: pointer !important;
  }

  /* 掴んで移動させている最中のチップ（少し縮んで半透明になる） */
  .cyber-chip.is-dragging {
    opacity: 0.3 !important;
    cursor: grabbing !important;
    transform: scale(0.95);
  }

  /* ドロップされるターゲットになったチップ（サイバーな光で「ここに入るよ」をアピール） */
  .cyber-chip.drag-over {
    border-left: 4px solid #00ffcc !important;
    background: rgba(0, 255, 204, 0.2) !important;
    transition: all 0.1s ease;
  }
/* ======================================================
   4. 重複タグの警告アニメーション（イエロー＆レッドで激しく明滅）
   ====================================================== */

@keyframes conflictAlert {
    0%, 100% { 
        border-color: #ff4466; 
        box-shadow: 0 0 5px #ff4466;
    }
    50% { 
        border-color: #ffff00; 
        box-shadow: 0 0 15px #ffff00; 
        background: rgba(255, 255, 0, 0.3) !important;
        color: #fff;
    }
}

.cyber-chip.is-conflict {
    animation: conflictAlert 0.6s infinite !important;
    font-weight: bold;
}
/* ======================================================
   --- BREAKチップ専用の装飾 ---
   ====================================================== */
.prompt-btn-break {
    background: transparent !important;
    color: #ff9900 !important; /* オレンジ色 */
    border: 1px solid #ff9900 !important;
    margin-left: 5px;
}
.prompt-btn-break:hover {
    background: rgba(255, 153, 0, 0.2) !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

/* ターミナル内のBREAKチップの見た目 */
.cyber-chip.is-break {
    border-color: #ff9900 !important;
    color: #ff9900 !important;
    background: rgba(255, 153, 0, 0.1) !important;
    font-weight: 900;
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.3);
}
.cyber-chip.is-break .chip-close {
    color: #ff9900 !important;
}
/* ==========================================
   ターミナル下部：BREAK追加で3つのボタンを均等に横並びにする
   ========================================== */
.terminal-btn-group {
    display: flex;
    gap: 8px; /* ボタン同士の隙間 */
    width: 100%;
    margin-top: 10px; /* 上の要素との隙間 */
}

/* ボタンをコンテナの中で均等に広げつつ、中の文字をド真ん中に固定する */
.terminal-btn-group .cp-btn {
    flex: 1; 
    margin: 0 !important; 
    
    /* ★追加：ボタンの中身もFlexにして、上下左右のド真ん中に強制配置！ */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* 行の高さをリセットして下ブレを防ぐ */
    
    padding: 10px 0 !important; /* 高さをしっかり持たせる */
    white-space: nowrap; 
}

/* ★スマホ表示時（さらに限界までフィットさせる） */
@media screen and (max-width: 767px) {
    .terminal-btn-group {
        gap: 4px; /* スマホは隙間を少し狭くする */
    }
    .terminal-btn-group .cp-btn {
        font-size: 0.75rem !important; /* スマホの時だけ文字を少し小さく */
        padding: 8px 0 !important; /* 左右の余白を削って文字を押し込む */
        letter-spacing: -0.5px; /* 文字の間隔をわずかに詰める */
    }
}
/* =========================================
  ターミナル下部：スマホ用レスポンシブ調整 (768px以下)
========================================= */
@media (max-width: 768px) {
        .sp-hide { display: none; }
        #pc-bar {
          padding: 0 12px;
          gap: 8px;
          height: 48px;
}
}

/* =========================================
  ターミナル下部：新デザイン
========================================= */
/* --- 1. バー全体を浮かせてDock風にする --- */
      #pc-wrap {
        position: fixed !important;
        bottom: 20px !important; /* ★!importantで強制的に浮かせる */
        left: 20px !important;
        right: 20px !important;
        z-index: 100000 !important;
        font-family: 'DM Mono', monospace;
        pointer-events: none;
      }
      #pc-wrap > * { pointer-events: auto; }

      #pc-bar {
        background: #000 !important; 
        border: 1px solid #00ffcc !important; 
        border-radius: 12px !important; /* ★少し丸みを強くしてデバイス感を出す */
        display: flex; 
        align-items: center; 
        gap: 14px;
        padding: 0 20px; 
        height: 48px !important; /* ★少し高くして押しやすく */
        cursor: pointer; 
        user-select: none;
        /* ★ 呼吸エフェクトを強制実行 */
        animation: pc-breathing 2.5s ease-in-out infinite !important;
        -webkit-animation: pc-breathing 2.5s ease-in-out infinite !important;
      }

      /* ドロワーも浮遊デザインに追従 */
      #pc-drawer {
        background: #000 !important;
        border: 1px solid #00ffcc !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
      }

/* ドロワーが閉じてる時はボーダーを非表示 */
#pc-wrap:not(.open) #pc-drawer {
  border: none !important;
}

      /* 呼吸のアニメーション定義（!importantは不要だけど、定義を確実にする） */
      @keyframes pc-breathing {
        0%   { box-shadow: 0 0 5px rgba(0,255,204,0.2); border-color: rgba(0,255,204,0.4); transform: scale(1); }
        50%  { box-shadow: 0 0 20px rgba(0,255,204,0.6); border-color: rgba(0,255,204,1); transform: scale(1.01); }
        100% { box-shadow: 0 0 5px rgba(0,255,204,0.2); border-color: rgba(0,255,204,0.4); transform: scale(1); }
      }

      /* スマホ用の微調整 */
      @media (max-width: 768px) {
        #pc-wrap {
          bottom: 15px !important;
          left: 10px !important;
          right: 10px !important;
        }
        .sp-hide { display: none !important; }
        #pc-bar { height: 52px !important; } /* スマホはさらに押しやすく */
      }

/* ===== Prompt Terminal V3 用調整 ===== */
/* 1. CLOSE時の上部青ラインを非表示 */
#pc-wrap:not(.open) #pc-drawer {
  border-top: none;
}
/* 2. SWELLのTOP・目次ボタンをTERMINAL分上に */
.p-fixBtnWrap {
  bottom: 64px !important; /* 44px(バー高さ) + 20px(余白) */
}
/* 3. フッターをTERMINAL分上に */
body {
  padding-bottom: 44px;
}
/* 4. 追尾サイドバーをTERMINAL分上に */
#fix_sidebar {
  max-height: calc(100vh - 64px) !important;
  overflow-y: auto;
}

/* ===== Prompt Terminal V3 ＋TERMINALに一括密輸ボタン ===== */
.btn-smuggle {
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #00ccaa;
  background: rgba(0, 204, 170, 0.08);
  color: #00ccaa;
  cursor: pointer;
  letter-spacing: 0.08em;
}

/* ======================================================
   MotoGP用 CSS
   ====================================================== */

.mgp26-wrapper {
        background-color: #0d0d12;
        color: #f0f0f0;
        font-family: 'Barlow', sans-serif;
        padding: 30px 15px;
        /* Reduced side padding (was 40px) */
        max-width: 900px;
        margin: 0 auto;
        border-radius: 8px;
        line-height: 1.6;
        box-sizing: border-box;
    }

    .mgp26-wrapper h2 {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        color: #fff;
        border-left: 5px solid #cc0000;
        padding-left: 15px;
        margin-top: 80px;
        margin-bottom: 30px;
        text-transform: uppercase;
        background: #000;
        /* Solid black to override SWELL styles */
        line-height: 1.4;
        padding-top: 10px;
        padding-bottom: 10px;
        letter-spacing: 1px;
    }

    .mgp26-wrapper h3 {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #ccc;
        margin-top: 40px;
        margin-bottom: 15px;
        background: none;
        letter-spacing: 0.5px;
    }

    /* Circuit Info Box */
    .mgp26-circuit-info-box {
        background-color: #16161c;
        border: 1px solid #2a2a35;
        padding: 30px;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 600px) {
        .mgp26-circuit-info-box {
            grid-template-columns: 1fr;
            gap: 20px;
            padding: 20px;
        }
    }

    .mgp26-circuit-info-item {
        margin-bottom: 15px;
        border-bottom: 1px solid #222;
        padding-bottom: 5px;
    }

    .mgp26-circuit-info-item:last-child {
        border-bottom: none;
    }

    .mgp26-circuit-info-label {
        font-size: 11px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .mgp26-circuit-info-value {
        font-size: 18px;
        font-weight: 500;
        color: #eee;
    }

    /* Topics List */
    .mgp26-topics-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .mgp26-topics-list li {
        padding: 15px 0;
        border-bottom: 1px solid #222;
        color: #ddd;
        line-height: 1.8;
    }

    .mgp26-topics-list li:before {
        content: "■";
        color: #cc0000;
        font-size: 10px;
        vertical-align: middle;
        margin-right: 10px;
        display: inline-block;
    }

    /* Result Table Container for Scroll */
    .mgp26-table-container {
        width: 100%;
        overflow-x: auto;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Result Table */
    .mgp26-result-table {
        width: 100%;
        min-width: 600px;
        /* Force scroll on small screens */
        border-collapse: separate;
        border-spacing: 0 4px;
        /* Row spacing */
        font-size: 14px;
    }

    .mgp26-result-table th {
        background-color: #222;
        color: #ccc;
        font-weight: 600;
        text-align: left;
        padding: 12px 10px;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .mgp26-result-table td {
        padding: 12px 10px;
        background-color: #16161c;
        border: none;
        color: #eee;
        transition: background-color 0.2s;
        white-space: nowrap;
    }

    .mgp26-result-table tr td:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .mgp26-result-table tr td:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .mgp26-result-table tr:hover td {
        background-color: #222;
    }

    .mgp26-pos-cell {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        text-align: center;
        font-size: 16px;
    }

    .mgp26-pos-1 { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    .mgp26-pos-2 { color: #c0c0c0; }
    .mgp26-pos-3 { color: #cd7f32; }

    /* Column Widths - Responsive */
    .mgp26-w-pos, .mgp26-w-pt, .mgp26-w-flag, .mgp26-w-no, .mgp26-w-time {
        text-align: center !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    @media (min-width: 769px) {
        .mgp26-w-pos { width: 48px; }
        .mgp26-w-pt  { width: 48px; }
        .mgp26-w-flag { width: 60px; }
        .mgp26-w-no   { width: 60px; }
    }

    @media (max-width: 768px) {
        .mgp26-w-pos { width: 34px; padding-left: 2px !important; padding-right: 2px !important; }
        .mgp26-w-pt  { width: 34px; padding-left: 2px !important; padding-right: 2px !important; }
        .mgp26-w-flag { width: 42px; padding-left: 2px !important; padding-right: 2px !important; }
        .mgp26-w-no   { width: 42px; padding-left: 2px !important; padding-right: 2px !important; }
    }

    /* Buttons */
    .mgp26-link-button {
        display: inline-block;
        background-color: transparent;
        border: 1px solid #cc0000;
        color: #cc0000;
        text-decoration: none;
        padding: 10px 24px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 4px;
        text-transform: uppercase;
        transition: all 0.3s;
        margin-top: 15px;
        letter-spacing: 1px;
    }

    .mgp26-link-button:hover {
        background-color: #cc0000;
        color: #fff;
        box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
    }

    /* Grid Row */
    .mgp26-grid-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        padding: 20px 0 0;
        align-items: start;
    }

    .mgp26-grid-row .mgp26-col-1 {
        margin-top: 0px;
    }

    .mgp26-grid-row .mgp26-col-2 {
        margin-top: 30px;
    }

    .mgp26-grid-row .mgp26-col-3 {
        margin-top: 60px;
    }

    .mgp26-card {
        background: #16161c;
        border-top: 4px solid #333;
        padding: 15px;
        position: relative;
        box-sizing: border-box;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s;
    }

    .mgp26-card:hover {
        transform: translateY(-2px);
    }

    .mgp26-card.mgp26-pole {
        border-top-color: #cc0000;
        background: linear-gradient(180deg, rgba(204, 0, 0, 0.05) 0%, #16161c 100%);
    }

    .mgp26-card.mgp26-front-row {
        border-top-color: #d4af37;
    }

    .mgp26-grid-pos {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 42px;
        font-weight: 900;
        line-height: 0.8;
        color: #444;
        position: absolute;
        top: 10px;
        right: 15px;
        opacity: 0.3;
    }

    .mgp26-card.mgp26-pole .mgp26-grid-pos {
        color: #cc0000;
        opacity: 0.4;
    }

    .mgp26-card.mgp26-front-row .mgp26-grid-pos {
        color: #d4af37;
        opacity: 0.4;
    }

    .mgp26-name {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        margin-top: 15px;
        /* Push down to clear pos number if needed, or overlay */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;
        z-index: 2;
    }

    .mgp26-team {
        font-size: 11px;
        color: #777;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mgp26-time {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 13px;
        color: #888;
        margin-top: 8px;
        font-weight: 500;
    }

    .mgp26-time.mgp26-pp {
        color: #cc0000;
        font-weight: 700;
    }

    .mgp26-grid-penalty-note {
        font-size: 10px;
        font-weight: 500;
        color: #c9a070;
        margin-left: 6px;
        white-space: normal;
        line-height: 1.35;
        vertical-align: middle;
    }

    .mgp26-result-penalty-sub {
        display: block;
        font-size: 10px;
        font-weight: 500;
        color: #c9a070;
        margin-top: 5px;
        line-height: 1.3;
        text-align: center;
    }

    @media (max-width: 480px) {
        .mgp26-grid-row {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .mgp26-grid-row .mgp26-col-1,
        .mgp26-grid-row .mgp26-col-2,
        .mgp26-grid-row .mgp26-col-3 {
            margin-top: 0 !important;
        }

        .mgp26-card {
            border-top: none;
            border-left: 4px solid #333;
            padding: 12px 16px;
            display: grid;
            grid-template-columns: 35px 1fr;
            grid-template-rows: auto auto auto;
            align-items: center;
            column-gap: 15px;
        }

        .mgp26-card.mgp26-pole {
            border-left-color: #cc0000;
        }

        .mgp26-card.mgp26-front-row {
            border-left-color: #d4af37;
        }

        .mgp26-grid-pos {
            position: static;
            font-size: 32px;
            opacity: 1;
            color: #444;
            margin-right: 0;
            width: auto;
            grid-column: 1;
            grid-row: 1 / 4;
            text-align: center;
        }

        .mgp26-name {
            margin-top: 0;
            grid-column: 2;
            grid-row: 1;
            white-space: normal;
            line-height: 1.3;
        }

        .mgp26-team {
            margin-top: 4px;
            grid-column: 2;
            grid-row: 2;
            white-space: normal;
        }

        .mgp26-time {
            margin-top: 4px;
            grid-column: 2;
            grid-row: 3;
            text-align: left;
        }

        .mgp26-grid-penalty-note {
            display: block;
            margin-left: 0;
            margin-top: 3px;
        }
    }

    /* Link Card */
    .mgp26-link-card {
        display: block;
        background: #16161c;
        border: 1px solid #2a2a35;
        padding: 30px;
        text-decoration: none;
        color: #fff;
        transition: all 0.3s;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin-top: 40px;
        overflow: hidden;
        position: relative;
    }

    .mgp26-link-card:after {
        content: "→";
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: #cc0000;
        transition: transform 0.3s;
    }

    .mgp26-link-card:hover {
        border-color: #444;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .mgp26-link-card:hover:after {
        transform: translate(5px, -50%);
    }

    .mgp26-link-card h4 {
        margin: 0 0 8px;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
    }

    .mgp26-link-card p {
        margin: 0;
        font-size: 13px;
        color: #888;
        line-height: 1.5;
    }

    /* Scroll Hint (Mobile Only) */
    .mgp26-scroll-hint {
        display: none;
        font-size: 11px;
        color: #888;
        text-align: right;
        margin-bottom: 5px;
        padding-right: 5px;
    }

    @media (max-width: 600px) {
        .mgp26-scroll-hint {
            display: block;
        }
    }

    /* Video Highlights Grid */
    .mgp26-video-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .mgp26-video-item {
        background: #16161c;
        border: 1px solid #2a2a35;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .mgp26-video-label {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #cc0000;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mgp26-video-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 4px;
        overflow: hidden;
    }

    .mgp26-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    @media (max-width: 768px) {
        .mgp26-video-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Main Title Responsive */
    .mgp26-main-title {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 80px;
        font-weight: 900;
        line-height: 0.9;
        color: #fff;
        letter-spacing: 4px;
        text-transform: uppercase;
    }

    @media (max-width: 600px) {
        .mgp26-main-title {
            font-size: 52px;
            letter-spacing: 2px;
        }
    }

/* Point column（Pt.）— 汎用 */
.mgp26-pt-1 { font-weight: bold; color: #ffd700; }
.mgp26-pt-2 { font-weight: bold; color: #c0c0c0; }
.mgp26-pt-3 { font-weight: bold; color: #cd7f32; }
.mgp26-pt-in { font-weight: 500; color: #aaa; }
.mgp26-pt-out { font-weight: 500; color: #444; }

/* 結果テーブル内: .mgp26-result-table td の color:#eee より優先 */
.mgp26-result-table td.mgp26-pt-1 {
    font-weight: bold;
    color: #ffd700;
}
.mgp26-result-table td.mgp26-pt-2 {
    font-weight: bold;
    color: #c0c0c0;
}
.mgp26-result-table td.mgp26-pt-3 {
    font-weight: bold;
    color: #cd7f32;
}
.mgp26-result-table td.mgp26-pt-in {
    font-weight: 500;
    color: #aaa;
}
.mgp26-result-table td.mgp26-pt-out {
    font-weight: 500;
    color: #444;
}

/* 順位列の表彰色も同様に td より優先 */
.mgp26-result-table td.mgp26-pos-1 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.mgp26-result-table td.mgp26-pos-2 {
    color: #c0c0c0;
}
.mgp26-result-table td.mgp26-pos-3 {
    color: #cd7f32;
}

/* 2026 Schedule Page Styles */
.mgp26-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.mgp26-gp-card {
    background: #16161c;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 100px 1fr 30px;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mgp26-gp-card.linked:hover {
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.2);
}

.mgp26-round {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #cc0000;
    letter-spacing: 1px;
}

.mgp26-date {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ccc;
    white-space: nowrap;
}

.mgp26-gp-main-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mgp26-flag {
    width: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.mgp26-gp-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mgp26-name-jp {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.mgp26-name-en {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.mgp26-circuit-info {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.mgp26-status-badge {
    display: inline-block;
    box-sizing: border-box;
    min-width: 10.5rem;
    padding: 6px 24px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    text-align: center;
    width: fit-content;
}

.mgp26-status-finished { background: #333; color: #aaa; }
.mgp26-status-live {
    background: #cc0000;
    color: #fff;
    animation: mgp26-status-blink 1.4s ease-in-out infinite;
}
.mgp26-status-next {
    background: #d4af37;
    color: #000;
    animation: mgp26-status-blink 1.4s ease-in-out infinite;
}
.mgp26-coming-soon { 
    display: inline-block;
    font-size: 11px;
    color: #555;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mgp26-link-arrow {
    font-size: 24px;
    color: #444;
    transition: all 0.3s;
    text-align: center;
}

.mgp26-gp-card.linked:hover .mgp26-link-arrow {
    color: #cc0000;
    transform: translateX(5px);
}

@keyframes mgp26-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.28; }
}

@media (max-width: 768px) {
    .mgp26-gp-card {
        grid-template-columns: 1fr 30px;
        position: relative;
        padding-top: 35px;
    }
    .mgp26-round {
        position: absolute;
        top: 15px;
        left: 20px;
    }
    .mgp26-date {
        position: absolute;
        top: 15px;
        right: 20px;
        text-align: right;
    }
    .mgp26-gp-main-content {
        grid-column: 1 / 2;
        align-items: flex-start;
    }
    .mgp26-wrapper .mgp26-gp-card .mgp26-gp-main-content img.mgp26-flag,
    .mgp26-gp-card .mgp26-gp-main-content img.mgp26-flag {
        display: block;
        margin-top: 30px !important;
    }
    .mgp26-gp-details {
        padding-top: 10px;
    }
    .mgp26-link-arrow {
        grid-column: 2 / 3;
    }
}

/* Shared page headers (schedule, standings, etc.) */
.mgp26-header {
    text-align: center;
    padding: 40px 0 50px;
    border-bottom: 1px solid #222;
    margin-bottom: 40px;
}

.mgp26-header h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
}

.mgp26-kicker {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    color: #888;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.mgp26-sub {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #888;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.mgp26-update-info {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #888;
    margin-top: 12px;
}

/* Rider standings table */
.mgp26-points-cell {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    color: #eee;
}

.mgp26-rider-cell {
    font-weight: 600;
    color: #fff;
}

.mgp26-team-name {
    display: block;
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

.mgp26-bike-model {
    font-size: 11px;
    color: #777;
}

/* 順位表・レース結果の Flag 列は共通: .mgp26-result-table .mgp26-w-flag img（26px）+ .mgp26-flag-table */

/* ========== GP blocks: class-only (no inline styles) ========== */
.mgp26-title-box {
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid #222;
    margin-bottom: 60px;
}

.mgp26-hero-kicker {
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    color: #888;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 5px;
}

.mgp26-hero-event-line {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #888;
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mgp26-hero-flag-wrap {
    margin-top: 20px;
}

.mgp26-hero-flag {
    width: 66px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.mgp26-sub-title {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #cc0000;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mgp26-link-external {
    color: #cc0000;
    text-decoration: none;
    border-bottom: 1px dotted #cc0000;
}

.mgp26-circuit-figure {
    margin-bottom: 40px;
    text-align: center;
}

.mgp26-circuit-layout-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #2a2a35;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mgp26-circuit-figure--placeholder {
    border: 1px dashed #444;
    border-radius: 8px;
    padding: 48px 20px;
    background: #12121a;
}

.mgp26-circuit-placeholder-text {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mgp26-topics-content {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 40px;
}

.mgp26-topics-content > p {
    margin-bottom: 20px;
}

.mgp26-topics-content > p:last-child {
    margin-bottom: 0;
}

.mgp26-grid-row--gap {
    padding-top: 20px;
}

.mgp26-grid-row--section-end {
    padding-top: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
}

/* スターティンググリッド（3列・狭い）：小さめに固定 */
.mgp26-flag-inline {
    width: 14px;
    height: auto;
    max-width: 14px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 1px;
    position: relative;
    top: -1px;
}

.mgp26-flag-table {
    vertical-align: middle;
    border-radius: 1px;
}

/* レース結果テーブル：w20 と w40 の中間くらい（画像は w40 を推奨＝縮小時にキレイ） */
.mgp26-result-table .mgp26-w-flag img {
    width: 26px;
    height: auto;
    max-width: 26px;
    vertical-align: middle;
    border-radius: 1px;
    object-fit: contain;
    display: inline-block;
}

.mgp26-race-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.6;
}

.mgp26-cell-primary {
    font-weight: 600;
}

.mgp26-cell-muted {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.mgp26-video-placeholder {
    background: #111;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a35;
    color: #555;
    border-radius: 8px;
    margin-bottom: 40px;
}

.mgp26-actions-right {
    text-align: right;
}

.mgp26-actions-right--mb {
    margin-bottom: 40px;
}

.mgp26-pending-note {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
    letter-spacing: 1px;
}

.mgp26-past-row-highlight {
    background: rgba(204, 0, 0, 0.1);
}

.mgp26-year-current {
    color: #cc0000;
    font-weight: bold;
}

/* 歴代表など: .mgp26-result-table td の color より優先して赤字にする */
.mgp26-result-table td.mgp26-year-current {
    color: #cc0000;
    font-weight: bold;
}

.mgp26-text-muted {
    color: #888;
}

.mgp26-text-italic-muted {
    color: #888;
    font-style: italic;
}

.mgp26-past-cancel {
    color: #888;
    font-style: italic;
}

.mgp26-past-cancel--center {
    text-align: center;
}

.mgp26-past-cancel--padded {
    padding: 20px;
}

.mgp26-section-lead {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.mgp26-fw-bold {
    font-weight: bold;
}

.mgp26-section-block {
    margin-top: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 40px;
}

.mgp26-glossary-thead-note {
    font-weight: bold;
    background: #f8f9fa;
    padding: 10px;
    color: #666;
    text-align: center;
}

.mgp26-td-strong {
    font-weight: bold;
}

.mgp26-table-section-label {
    background: #f8f9fa;
    font-weight: bold;
    padding: 10px;
    color: #666;
    text-align: center;
}

.mgp26-h2-next {
    border-left-color: #cc0000;
}

.mgp26-link-card--next {
    border-top: 4px solid #cc0000;
    background: linear-gradient(180deg, rgba(204, 0, 0, 0.05) 0%, #16161c 100%);
}

.mgp26-link-card.disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: default;
}

.mgp26-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 40px 0;
}
