/* ===== Base ===== */
.lp-keiba {
  -webkit-text-size-adjust: 100%;
}
.lp-keiba img,
.lp-keiba video,
.lp-keiba svg {
  max-width: 100%;
  height: auto;
}
.lp-keiba .lp-sec {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 16px;
}
.lp-keiba .lp-hero {
  background: #2f964b;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 0 0 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.lp-keiba .lp-hero h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

/* ===== UMA Header (hamburger) ===== */
.uma-hero {
  position: relative;
  margin: -20px 0 32px;
  padding: 35px 16px 15px;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d4d2e 40%, #0a0a0a 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

/* 電撃エフェクト用のレイヤー */
.uma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 48%,
      rgba(34, 197, 94, 0.3) 49%,
      rgba(34, 197, 94, 0.3) 51%,
      transparent 52%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 18%,
      rgba(16, 185, 129, 0.2) 19%,
      rgba(16, 185, 129, 0.2) 21%,
      transparent 22%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 68%,
      rgba(34, 197, 94, 0.25) 69%,
      rgba(34, 197, 94, 0.25) 71%,
      transparent 72%,
      transparent 100%
    );
  background-size: 100% 100%;
  opacity: 0;
  animation: lightning-strike 8s infinite;
  pointer-events: none;
  z-index: 1;
}

.uma-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120px 60px at 10% 20%,
      rgba(34, 197, 94, 0.15) 0%,
      rgba(34, 197, 94, 0) 70%
    ),
    radial-gradient(
      160px 80px at 40% 10%,
      rgba(16, 185, 129, 0.15) 0%,
      rgba(16, 185, 129, 0) 70%
    ),
    radial-gradient(
      120px 60px at 70% 18%,
      rgba(34, 197, 94, 0.15) 0%,
      rgba(34, 197, 94, 0) 70%
    ),
    radial-gradient(
      180px 90px at 90% 8%,
      rgba(16, 185, 129, 0.15) 0%,
      rgba(16, 185, 129, 0) 70%
    );
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
}

/* 電撃アニメーション */
@keyframes lightning-strike {
  0%,
  100% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  5.5% {
    opacity: 0;
  }
  6% {
    opacity: 0.8;
  }
  6.5% {
    opacity: 0;
  }
  45%,
  55% {
    opacity: 0;
  }
  55.5% {
    opacity: 0.9;
  }
  56% {
    opacity: 0;
  }
}
.uma-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.uma-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.uma-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.uma-logo {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2bb673 0%, #67d67f 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(43, 182, 115, 0.25);
  font-size: 16px;
  flex: 0 0 auto;
}
.uma-title {
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.1;
}
.uma-tagline {
  display: block;
  font-size: 12px;
  color: #22c55e;
  opacity: 0.9;
}

.uma-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.uma-burger .bar,
.uma-burger::before,
.uma-burger::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #196c45;
  border-radius: 2px;
}
.uma-burger .bar {
  top: 50%;
  transform: translateY(-50%);
}
.uma-burger::before {
  top: 13px;
}
.uma-burger::after {
  bottom: 13px;
}
.uma-burger[aria-expanded="true"] .bar {
  opacity: 0;
}
.uma-burger[aria-expanded="true"]::before {
  transform: translateY(9px) rotate(45deg);
  transform-origin: left center;
}
.uma-burger[aria-expanded="true"]::after {
  transform: translateY(-9px) rotate(-45deg);
  transform-origin: left center;
}

.uma-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.uma-user .name {
  font-weight: 800;
  color: #0f5132;
}
.uma-user .id {
  color: #0f5132;
  opacity: 0.8;
  font-weight: 700;
}

.uma-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #34d399;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(52, 211, 153, 0.25);
}
.uma-btn.is-outline {
  background: #fff;
  color: #2f855a;
  border: 1px solid rgba(47, 133, 90, 0.25);
  box-shadow: none;
}

.uma-pill-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 12px 12px;
  margin-top: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  overflow: scroll;
}
.uma-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: #196c45;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 16px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.uma-pill:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
}
.uma-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  color: #0e7490;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .uma-burger {
    display: inline-block;
  }
  .uma-pill-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    border-radius: 16px;
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: all 0.18s ease;
    z-index: 1000;
  }
  .uma-pill-nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    padding: 10px;
  }
  .uma-pill-nav .uma-pill {
    display: flex;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    margin: 6px 0;
  }
  .uma-user {
    display: none;
  }
  /* ヘッダーが子要素をクリップしないように */
  .uma-hero {
    overflow: visible;
  } /* ← 追加（SPだけでOK） */

  /* メニューオープン時は画面スクロールを止める */
  body.uma-menu-open {
    overflow: hidden;
  }

  /* ul/li の余白リセット */
  .uma-pill-nav .uma-pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* li 間の間隔 */
  .uma-pill-nav .uma-pill-list > li {
    margin: 6px 0;
  }

  /* WPメニュー出力の <a> にも「ピル」の見た目を適用 */
  .uma-pill-nav .uma-pill-list a,
  .uma-pill-nav > a.uma-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #196c45;
    font-weight: 900;
  }

  /* アイコンの見た目（link_before で出している .uma-icon 用） */
  .uma-pill-nav .uma-pill-list a .uma-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0e7490;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  /* WPメニュー（wp_nav_menu）の場合に対応 */
  @media (max-width: 768px) {
    /* UL のリセット */
    .uma-pill-nav .uma-pill-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    /* <a> に .uma-pill と同等の見た目を付与 */
    .uma-pill-nav .uma-pill-list a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      margin: 6px 0;
      background: #fff;
      border-radius: 12px;
      text-decoration: none;
      color: #196c45;
      font-weight: 900;
    }

    /* link_before で出しているアイコン用 <span> の見た目 */
    .uma-pill-nav .uma-pill-list .uma-icon {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
      color: #0e7490;
      font-size: 18px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
  }
}

/* ===== Footer ===== */
.uma-footer {
  margin-top: 72px;
}
.uma-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.uma-footer-nav {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.uma-footer-nav .nav-list {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 10px;
  margin: 0;
  list-style: none;
}
.uma-footer-nav a {
  color: #2f855a;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.uma-footer-nav a:hover {
  text-decoration: underline;
}

.uma-footer-base {
  background: linear-gradient(180deg, #3aa656 0%, #2f964b 100%);
  color: #fff;
  padding: 22px 0 32px;
  position: relative;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06) inset;
}
/*.uma-footer-base .links { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-bottom:8px; }*/
.uma-footer-base .links {
  display: grid;
  gap: 0px;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.uma-footer-base .links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.95;
}
.uma-footer-base .links a:hover {
  text-decoration: underline;
}
.uma-footer-base .copy {
  text-align: center;
  opacity: 0.95;
  font-weight: 700;
}

/* ===== Small common tweaks (mobile tap etc.) ===== */
@media (max-width: 680px) {
  .uma-title {
    font-size: 18px;
  }
  .uma-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .lp-keiba .lp-sec {
    margin-bottom: 44px;
  }
  a,
  button {
    min-height: 44px;
  }
}

/* ===== TOP/SP: 的中実績（チケット）最終調整 ===== */
@media (max-width: 680px) {
  body.page-template-template-keiba-top .kp-sec {
    padding: 0 !important;
  }
  body.page-template-template-keiba-top .kp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px !important;
  }
  body.page-template-template-keiba-top .kp-ticket {
    min-height: 140px !important;
    padding: 15px 18px 18px !important;
  }
  body.page-template-template-keiba-top .kp-date-race,
  body.page-template-template-keiba-top .kp-date-race .kp-line {
    font-size: 10px !important;
  }
  body.page-template-template-keiba-top .kp-date-race {
    margin-bottom: 4px !important;
  }
  body.page-template-template-keiba-top .kp-date-race .kp-line + .kp-line {
    display: none;
  }
  body.page-template-template-keiba-top .kp-stamp {
    right: 3px;
    top: 42px;
    padding: 4px 6px;
    font-size: 15px;
    border-radius: 5px;
    z-index: 2;
  }
  body.page-template-template-keiba-top .kp-note {
    display: none !important;
  }
  body.page-template-template-keiba-top .kp-meta {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
  }
  body.page-template-template-keiba-top .kp-bet {
    margin-left: 0 !important;
    text-align: left;
    padding: 2px 12px !important;
  }
  body.page-template-template-keiba-top .kp-name {
    font-size: 12.5px !important;
    margin-top: 7px !important;
    line-height: 1.3;
  }
  body.page-template-template-keiba-top .kp-pay {
    font-size: 18px !important;
  }
  body.page-template-template-keiba-top .kp-yen {
    font-size: 0.7em !important;
  }
  body.page-template-template-keiba-top .kp-ticket:after {
    right: 10px;
  }
  body.page-template-template-keiba-top .kp-hole.kp-b,
  body.page-template-template-keiba-top .kp-hole .kp-b {
    display: none !important;
  }
}
/* ===== TOP/PC: 的中実績サイズ ===== */
@media (min-width: 900px) {
  body.page-template-template-keiba-top .kp-pay {
    font-size: 34px !important;
  }
  body.page-template-template-keiba-top .kp-ticket {
    min-height: 220px !important;
  }
}

/* ===== TOP/SP: 会員限定コンテンツ（横スクロール＋細部） ===== */
@media (max-width: 680px) {
  body.page-template-template-keiba-top .kb-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 15px !important;
    padding: 0 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  body.page-template-template-keiba-top .kb-grid > * {
    flex: 0 0 auto;
    width: 82%;
    scroll-snap-align: start;
  }
  body.page-template-template-keiba-top .kb-card {
    width: 100% !important;
    margin: 15px 0 !important;
    border-radius: 18px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.14) !important;
  }
  body.page-template-template-keiba-top .kb-wrap {
    padding: 0 6px !important;
  }
  body.page-template-template-keiba-top .kb-media {
    height: 220px !important;
    overflow: hidden;
  }
  body.page-template-template-keiba-top .kb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ===== Site-wide background pattern ===== */
:root {
  --bg-img: url("https://uma-plus.com/wp-content/uploads/keiba-top/mv_04.png");
  --bg-color: #eaf7ff;
}
body {
  background-color: var(--bg-color);
  background-image: var(--bg-img);
  background-repeat: repeat;
  background-position: top left;
  background-size: var(--bg-size, auto);
  background-attachment: fixed;
}
@media (max-width: 1024px) {
  body {
    background-attachment: scroll;
  }
}
@supports (background-blend-mode: multiply) {
  body {
    background-image: 
    /*
    linear-gradient(
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25)
      ),
    */ var(
      --bg-img
    );
    background-blend-mode: normal, multiply;
  }
}

/* ===== 見出しデザインを「記事一覧」に統一（KB/KP） ===== */
.page-template-template-keiba-top .kb-head,
.page-template-template-keiba-top .kp-head {
  background: #2f964b;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 0 0 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.page-template-template-keiba-top .kb-head .kb-h2,
.page-template-template-keiba-top .kp-head .kp-title {
  margin: 0;
  font-weight: 900;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.page-template-template-keiba-top .kp-head .kp-sub {
  color: #fff !important;
  opacity: 0.95;
  margin-top: 6px;
  font-size: 14px;
}

/* ===== SP/TOP: “緑ピル＋薄グレー”パネル（KB/KP/KA） ===== */
@media (max-width: 680px) {
  body.page-template-template-keiba-top .kb-wrap,
  body.page-template-template-keiba-top .kp-sec,
  body.page-template-template-keiba-top .ka-sec {
    position: relative;
    background: #f2f5f7 !important;
    border-radius: 20px;
    border: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 6px 12px rgba(16, 24, 40, 0.06);
    margin: 102px 6px;
    padding: 75px 18px 25px !important;
  }
  /* ランキングのラップは PC 側の負のマージンを打ち消す */
  body.page-template-template-keiba-top .kr-wrap {
    margin: -50px 0px 100px !important;
    padding: 42px 12px 14px !important;
    background: #f2f5f7 !important;
    border-radius: 20px;
    border: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 6px 12px rgba(16, 24, 40, 0.06);
  }
  body.page-template-template-keiba-top .kr-hero {
    background: #2f964b;
    color: #fff;
    padding: 18px 16px 60px;
    text-align: center;
    border-radius: 20px;
    background-image: url(/wp-content/themes/keiba-child-theme-v1_84/assets/img/ranking_hero_bg.png);
    background-size: contain;
  }

  body.page-template-template-keiba-top .kb-head,
  body.page-template-template-keiba-top .kp-head,
  body.page-template-template-keiba-top .ka-hero {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    background: #2f964b !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 20px 16px !important;
    text-align: center;
    width: 105%;
    max-width: calc(100% - 32px);
    box-shadow: 0 6px 14px rgba(47, 150, 75, 0.22);
  }
  body.page-template-template-keiba-top .kb-h2,
  body.page-template-template-keiba-top .kp-title,
  body.page-template-template-keiba-top .ka-hero .ka-hero-title {
    margin: 0;
    font-weight: 900;
    font-size: 25px;
    line-height: 1.2;
    color: #fff !important;
  }
  /* ピル高さ節約：サブは隠す */
  body.page-template-template-keiba-top .kp-sub {
    display: none !important;
  }

  /* ランキングのCTAを全幅に（使っていれば効く） */
  body.page-template-template-keiba-top .kr-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.page-template-template-keiba-top .kr-btn {
    width: 100%;
    text-align: center;
  }
}

/* ▼ 会員限定コンテンツ（SP）: 「⇦ スクロール ⇨」ヒント */
@media (max-width: 680px) {
  body.page-template-template-keiba-top .kb-wrap {
    position: relative;
  }
  body.page-template-template-keiba-top .kb-wrap::after {
    content: "⇦ スクロール ⇨";
    display: block;
    text-align: center;
    margin: 10px 0 2px;
    color: #2f855a; /* テーマのグリーン */
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.06em;
    opacity: 0.9;
    pointer-events: none;
    animation: kbScrollPulse 1.8s ease-in-out infinite; /* ほんのり動かして気づきやすく */
  }
  /* ヒントを消すためのフラグ（JSで付与） */
  body.page-template-template-keiba-top .kb-wrap.kb-scrolled::after,
  body.page-template-template-keiba-top .kb-wrap.kb-nohint::after {
    content: "";
    display: none;
  }

  @keyframes kbScrollPulse {
    0%,
    100% {
      transform: translateX(0);
      opacity: 0.9;
    }
    50% {
      transform: translateX(6px);
      opacity: 1;
    }
  }
}

/*
 * keiba-lp.css（初版）
 * 目的：
 *   - 券風カード/バッジ/余白トークン/影/角丸 などの共通UIトークンを定義
 *   - 「次の発走」stickyセクションの見た目を提供
 *
 * 次段階：
 *   - テーマ v1_34 のトーン&マナーへ寄せる微調整
 *   - 実績・ランキング・LP用コンポーネントの追加
 */

/* =========================
   基本トークン
========================= */
:root {
  /* カラー（テーマ準拠の仮値・後で差し替え） */
  --alp-bg: #0b0f14;
  --alp-surface: #121821;
  --alp-card: #16202b;
  --alp-line: #1f2a36;
  --alp-text: #e6eef7;
  --alp-text-sub: #a9b7c6;

  --alp-accent: #42b7ff;
  --alp-accent-2: #5bffa8;
  --alp-warning: #ffcc66;
  --alp-danger: #ff6b6b;

  /* バッジ系（自信度） */
  --alp-conf-a: #5bffa8;
  --alp-conf-b: #ffd166;
  --alp-conf-c: #ff6b6b;

  /* 余白・角丸・影 */
  --alp-gap-2: 0.25rem;
  --alp-gap-4: 0.5rem;
  --alp-gap-6: 0.75rem;
  --alp-gap-8: 1rem;
  --alp-gap-12: 1.5rem;
  --alp-gap-16: 2rem;

  --alp-radius-8: 0.5rem;
  --alp-radius-12: 0.75rem;
  --alp-radius-16: 1rem;
  --alp-shadow-1: 0 6px 24px rgba(0, 0, 0, 0.25);

  /* sticky のオフセット（ヘッダー高に合わせ調整可） */
  --alp-sticky-top: 0;
}

/* ==== v1_34 スキン適用（ライト/グリーン寄せ） ==== */
/* 既存 :root の下に置く（後勝ち） */
body {
  --alp-bg: #f5f8fa; /* 背景を明るく */
  --alp-surface: #ffffff;
  --alp-card: #ffffff;
  --alp-line: rgba(16, 24, 40, 0.08);
  --alp-text: #0f172a;
  --alp-text-sub: #475569;

  --alp-accent: #2f964b; /* v1_34 のメイン緑 */
  --alp-accent-2: #34d399; /* サブのライトグリーン */
  --alp-warning: #f59e0b;
  --alp-danger: #ef4444;

  /* sticky衝突回避：グローバルヘッダーが固定なら調整 */
  --alp-sticky-top: 72px; /* ← ヘッダー高さに合わせて必要に応じて変更（64〜88px） */
}

/* カードをライト面に合うよう微調整 */
body .alp-card {
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
body .alp-card:hover {
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

/* 「次の発走」パネルをライト化 */
body .alp-next {
  background: #ffffffcc; /* 半透明白 */
  border: 1px solid var(--alp-line);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.1);
}
body .alp-badge.-next {
  background: #e6f6ee;
  color: #116149;
  border-color: rgba(47, 150, 75, 0.35);
}

/* 自信度バッジの可読性向上（コントラスト調整） */
body .alp-badge.-conf.-a {
  background: #e8fff4;
  color: #0b5a37;
  border-color: rgba(52, 211, 153, 0.35);
}
body .alp-badge.-conf.-b {
  background: #fff7e6;
  color: #7a4a00;
  border-color: rgba(245, 158, 11, 0.35);
}
body .alp-badge.-conf.-c {
  background: #ffecec;
  color: #7a0b0b;
  border-color: rgba(239, 68, 68, 0.35);
}

/* 発走済みカードの減光をライト用に調整 */
body .alp-card.-past {
  opacity: 0.65;
}

/* フォーカスリング（A11y） */
body .alp-card:focus-within {
  outline: 2px solid var(--alp-accent);
  outline-offset: 2px;
}

/* =========================
   ベース
========================= */
.alp-ai-wrap {
  color: var(--alp-text);
  background: var(--alp-bg);
  padding: var(--alp-gap-12) var(--alp-gap-8) var(--alp-gap-16);
}

.alp-breadcrumb ol {
  display: flex;
  gap: var(--alp-gap-4);
  list-style: none;
  margin: 0 0 var(--alp-gap-8);
  padding: 0;
  color: var(--alp-text-sub);
}
.alp-breadcrumb a {
  color: var(--alp-text-sub);
  text-decoration: underline;
}

.alp-page-header {
  margin-bottom: var(--alp-gap-12);
}
.alp-title {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 var(--alp-gap-4);
  text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, -1px 1px 0px #000,
    1px -1px 0px #000, 1px 0px 0px #000, -1px 0px 0px #000, 0px 1px 0px #000,
    0px -1px 0px #000;
  color: white;
}
.alp-sub {
  color: var(--alp-text-sub);
  margin: 0;
}

/* =========================
   「次の発走」 sticky
========================= */
.alp-next {
  position: sticky;
  top: var(--alp-sticky-top);
  z-index: 30;
  margin: 0 0 var(--alp-gap-12);
  background: linear-gradient(
    180deg,
    rgba(18, 24, 33, 0.9),
    rgba(18, 24, 33, 0.6)
  );
  backdrop-filter: blur(6px);
  border: 1px solid var(--alp-line);
  border-radius: var(--alp-radius-16);
  box-shadow: var(--alp-shadow-1);
}
.alp-next__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--alp-gap-8);
  padding: var(--alp-gap-8) var(--alp-gap-12);
  align-items: center;
}
.alp-next__meta {
  display: flex;
  align-items: center;
  gap: var(--alp-gap-6);
}
.alp-next__eta {
  color: var(--alp-accent-2);
  font-weight: 700;
}
.alp-next__body {
  display: grid;
  gap: var(--alp-gap-4);
}
.alp-next__title {
  display: flex;
  gap: var(--alp-gap-6);
  align-items: baseline;
}
.alp-next__ticket {
  display: flex;
  flex-wrap: wrap;
  gap: var(--alp-gap-6);
}
.alp-next__jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--alp-radius-12);
  background: var(--alp-accent);
  color: #011016;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.alp-next__jump:hover {
  filter: brightness(1.1);
}

/* =========================
   グリッド & カード（券風）
========================= */
.alp-race-grid {
  margin-top: var(--alp-gap-8);
}
.alp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--alp-gap-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .alp-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1080px) {
  .alp-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.alp-card {
  background: var(--alp-card);
  border: 1px solid var(--alp-line);
  border-radius: var(--alp-radius-16);
  padding: var(--alp-gap-8);
  box-shadow: var(--alp-shadow-1);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.alp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.alp-card.-past {
  opacity: 0.55;
}
.alp-card.-highlight {
  outline: 2px solid var(--alp-accent);
  box-shadow: 0 0 0 8px rgba(66, 183, 255, 0.12), var(--alp-shadow-1);
}

.alp-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--alp-gap-6);
  margin-bottom: var(--alp-gap-6);
}
.alp-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.alp-card__time {
  display: flex;
  gap: var(--alp-gap-6);
  align-items: center;
  color: var(--alp-text-sub);
}

.alp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--alp-gap-6);
  margin-bottom: var(--alp-gap-6);
}
.alp-card__ticket {
  background: #0e141c;
  border: 1px dashed var(--alp-line);
  border-radius: var(--alp-radius-12);
  padding: var(--alp-gap-6) var(--alp-gap-8);
  line-height: 1.5;
}
.alp-card__notes {
  color: var(--alp-text-sub);
  margin: var(--alp-gap-6) 0 0;
}

/* =========================
   バッジ
========================= */
.alp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1620;
  color: var(--alp-text);
}
.alp-badge.-next {
  background: #102231;
  color: #cdefff;
  border-color: rgba(66, 183, 255, 0.35);
}
.alp-badge.-done {
  background: #221217;
  color: #ffd3d3;
  border-color: rgba(255, 107, 107, 0.35);
}
.alp-badge.-eta {
  background: #11241b;
  color: #cbffe6;
  border-color: rgba(91, 255, 168, 0.35);
}

.alp-badge.-pop {
  background: #1a1a26;
}
.alp-badge.-odds {
  background: #1a1f12;
}

.alp-badge.-conf.-a {
  background: #0f231a;
  color: #c9ffe8;
  border-color: rgba(91, 255, 168, 0.35);
}
.alp-badge.-conf.-b {
  background: #231f10;
  color: #ffeec4;
  border-color: rgba(255, 209, 102, 0.35);
}
.alp-badge.-conf.-c {
  background: #231314;
  color: #ffd2d2;
  border-color: rgba(255, 107, 107, 0.35);
}

/* =========================
   空表示
========================= */
.alp-empty__card {
  background: var(--alp-surface);
  border: 1px solid var(--alp-line);
  border-radius: var(--alp-radius-16);
  padding: var(--alp-gap-12);
  text-align: center;
  box-shadow: var(--alp-shadow-1);
}
.alp-actions {
  margin-top: var(--alp-gap-8);
}
.alp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: var(--alp-radius-12);
  background: var(--alp-accent);
  color: #011016;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.alp-btn:hover {
  filter: brightness(1.08);
}

/* ==== AI Hub Simple（本日/土曜/日曜 3カラム） ==== */
/* 追記：ファイル末尾でOK。既存スタイルと競合しないようスコープを限定 */
.ai-hub-simple {
  --ai-bg: #f5f8fa;
  --ai-card: #fff;
  --ai-line: rgba(16, 24, 40, 0.08);
}
.ai-hub-simple__hero {
  background: linear-gradient(180deg, #b6e2ff 0%, #e6f6ff 40%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 22px 16px 26px;
}
.ai-hub-simple__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.ai-hub-simple__title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 28px;
  color: #0f5132;
}
.ai-hub-simple__sub {
  margin: 0;
  color: #166534;
  font-weight: 700;
  opacity: 0.9;
}

.ai-hub-simple__grid {
  max-width: 1200px;
  margin: 18px auto 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 960px) {
  .ai-hub-simple__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-col {
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.ai-col__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ai-line);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #eef2f7;
}
.ai-col__head.-today {
  background: linear-gradient(135deg, #0f5132 0%, #37a153 100%);
}
.ai-col__head.-sat {
  background: #dbeafe;
}
.ai-col__head.-sun {
  background: #fee2e2;
}
.ai-col__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}
.ai-col__date {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 12px;
}

.ai-col__list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-card {
  list-style: none;
}
.ai-card__link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--ai-card);
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ai-card__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.ai-card__media {
  width: 100%;
  height: 78px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 60%);
  position: relative;
}
.ai-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120px 60px at 20% 20%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    radial-gradient(
      160px 80px at 70% 30%,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 70%
    );
  filter: blur(2px);
  opacity: 0.7;
}

.ai-card__meta {
  min-width: 0;
}
.ai-card__city {
  display: block;
  color: #2f855a;
  font-weight: 900;
  opacity: 0.9;
}
.ai-card__name {
  display: block;
  color: #14532d;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
@media (max-width: 680px) {
  .ai-card__link {
    grid-template-columns: 1fr;
  }
  .ai-card__media {
    height: 140px;
  }
  .ai-card__name {
    font-size: 22px;
  }
}

/* 会場画像あり/なし の見た目差分 */
.ai-card__media {
  width: 100%;
  height: 78px; /* CLS防止：高さ固定 */
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 60%);
  position: relative;
}
.ai-card__media.-hasimg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 680px) {
  .ai-card__media {
    height: 140px;
  } /* モバイルは少し高め */
}

/* ========== Race Detail (scoped) ========== */
.race-detail {
  --line: rgba(16, 24, 40, 0.08);
  --chip: #111827;
  --bg: #f8fafc;
}
.race-detail__hd {
  /*position:sticky; */
  top: 0;
  z-index: 5;
  background: #ffffffd9;
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.race-detail__hd-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.race-detail__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.race-detail__venue {
  color: #064e3b;
}
.race-detail__rno {
  font-variant-numeric: tabular-nums;
}
.race-detail__meta {
  color: #334155;
  font-weight: 700;
  margin-left: 0.25rem;
}
.race-detail__badge {
  display: inline-block;
  font-size: 12px;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  margin-left: 0.25rem;
}
.race-detail__badge.-ended {
  background: #111827;
  color: #fff;
}
.race-detail__date {
  margin-left: auto;
  color: #475569;
  font-weight: 700;
}
.race-detail__actions .btn {
  margin-left: 8px;
}

.race-detail__empty .card {
  max-width: 880px;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.race-detail__board {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 16px;
}
.table-scroll {
  overflow: auto;
}
.race-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.race-table thead th {
  /* position: sticky; */
  top: var(--rd-sticky-offset, 72px);
  z-index: 0;
  background: #f1f5f9;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  will-change: transform;
  text-align: left;
  font-weight: 900;
  color: #0f172a;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 48px; /* CLS 対策 */
}
.race-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.race-table .col-frame {
  width: 56px;
  text-align: center;
}
.race-table .col-num {
  width: 72px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.race-table .col-odds {
  width: 90px;
  text-align: right;
}
.race-table .col-index {
  width: 90px;
  text-align: right;
}

.frame-badge {
  display: inline-block;
  min-width: 36px;
  padding: 0.25em 0.5em;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 900;
}
.frame-badge.f-1 {
  background: #fff;
  color: #111;
}
.frame-badge.f-2 {
  background: #111;
  color: #fff;
}
.frame-badge.f-3 {
  background: #e11d48;
  color: #fff;
}
.frame-badge.f-4 {
  background: #2563eb;
  color: #fff;
}
.frame-badge.f-5 {
  background: #f59e0b;
  color: #111;
}
.frame-badge.f-6 {
  background: #16a34a;
  color: #fff;
}
.frame-badge.f-7 {
  background: #fb923c;
  color: #111;
}
.frame-badge.f-8 {
  background: #f472b6;
  color: #111;
}

.horse-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.horse-name {
  font-weight: 900;
  color: #0f172a;
}
.horse-meta {
  color: #475569;
  font-size: 12px;
}

.index-chip {
  display: inline-block;
  min-width: 42px;
  padding: 0.25em 0.5em;
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.race-detail__bets {
  max-width: 1100px;
  margin: 18px auto 28px;
  padding: 0 16px;
}
.section-ttl {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, -1px 1px 0px #000,
    1px -1px 0px #000, 1px 0px 0px #000, -1px 0px 0px #000, 0px 1px 0px #000,
    0px -1px 0px #000;
}
#resultTitle {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, -1px 1px 0px #000,
    1px -1px 0px #000, 1px 0px 0px #000, -1px 0px 0px #000, 0px 1px 0px #000,
    0px -1px 0px #000;
}
.bet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 920px) {
  .bet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.bet-card__hd {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.bet-card__ttl {
  margin: 0;
  font-weight: 900;
  color: #ffffff;
}
.bet-card__body {
  padding: 10px 12px;
}
.bet-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bet-lines li code {
  display: inline-block;
  padding: 0.15em 0.45em;
  background: #eef2ff;
  border-radius: 6px;
  font-weight: 900;
}
.bet-note {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 12px;
}

.bet-comment {
  margin: 10px 0 0;
  color: #0f172a;
  font-weight: 700;
}

.race-detail__foot {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0 16px;
}

/* buttons (簡易) */
.btn {
  display: inline-block;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.2);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
}
.btn--ghost {
  background: #fff;
  color: #065f46;
  border: 1px solid rgba(6, 95, 70, 0.35);
}

/* ============================
   v1_34 Modern Refresh (append)
   対象：.alp-ai-wrap.is-modern 配下のみ
   既存セレクタは壊さず上書き最小化
============================ */

/* レイアウト */
.alp-ai-wrap.is-modern .alp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .alp-ai-wrap.is-modern .alp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .alp-ai-wrap.is-modern .alp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* カード（モダン） */
.alp-ai-wrap.is-modern .alp-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px; /* CLS対策 */
  overflow: hidden;
}
.alp-ai-wrap.is-modern .alp-card.-elev:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.06);
}
.alp-ai-wrap.is-modern .alp-card.-past {
  opacity: 0.6;
}
.alp-ai-wrap.is-modern .alp-card.-highlight {
  outline: 2px solid rgba(34, 197, 94, 0.35);
}

/* カード内の構造 */
.alp-ai-wrap.is-modern .alp-card__link {
  display: block;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
}
.alp-ai-wrap.is-modern .alp-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.alp-ai-wrap.is-modern .alp-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.alp-ai-wrap.is-modern .alp-card__time time {
  font-size: 14px;
  opacity: 0.9;
}

/* メタバッジ */
.alp-ai-wrap.is-modern .alp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f4f4f5;
  color: #3f3f46;
}
.alp-ai-wrap.is-modern .alp-badge.-eta {
  background: #eef7ff;
  color: #0b63c5;
}
.alp-ai-wrap.is-modern .alp-badge.-done {
  background: #f3f4f6;
  color: #6b7280;
}
.alp-ai-wrap.is-modern .alp-badge.-next {
  background: #e8faf1;
  color: #047857;
}
.alp-ai-wrap.is-modern .alp-badge.-pop {
  background: #fff7ed;
  color: #c2410c;
}
.alp-ai-wrap.is-modern .alp-badge.-odds {
  background: #eef2ff;
  color: #4338ca;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-a {
  background: #dcfce7;
  color: #065f46;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-b {
  background: #fef9c3;
  color: #7c5e10;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-c {
  background: #fee2e2;
  color: #991b1b;
}

.alp-ai-wrap.is-modern .alp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* 次の発走（グラス風） */
.alp-ai-wrap.is-modern .alp-next.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 16px;
}
.alp-ai-wrap.is-modern .alp-next.-glass .alp-next__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.alp-ai-wrap.is-modern .alp-next__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.alp-ai-wrap.is-modern .alp-next__title strong {
  font-size: 18px;
}
.alp-ai-wrap.is-modern .alp-next__title time {
  font-size: 14px;
  opacity: 0.9;
  margin-left: 8px;
}
.alp-ai-wrap.is-modern .alp-next__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.alp-ai-wrap.is-modern .alp-next__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ボタン */
.alp-ai-wrap.is-modern .alp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #111827;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.alp-ai-wrap.is-modern .alp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.alp-ai-wrap.is-modern .alp-btn.-primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.alp-ai-wrap.is-modern .alp-btn.-primary:hover {
  background: #0b1220;
}

/* 空状態 */
.alp-ai-wrap.is-modern .alp-empty__card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.alp-ai-wrap.is-modern .alp-empty__card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.alp-ai-wrap.is-modern .alp-empty__card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #374151;
}

/* アクセシビリティ補助 */
@media (prefers-reduced-motion: reduce) {
  .alp-ai-wrap.is-modern .alp-card,
  .alp-ai-wrap.is-modern .alp-btn {
    transition: none !important;
  }
}

/* ====== Modern & Simple: race name on cards (append) ====== */

/* 文字階層・余白・角丸は .is-modern スコープで適用 */
.alp-ai-wrap.is-modern .alp-card__race-name {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #374151; /* 落ち着いた中間色 */
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 2行省略 */
  overflow: hidden;
}

.alp-ai-wrap.is-modern .alp-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px; /* CLS対策 */
}
.alp-ai-wrap.is-modern .alp-card.-elev:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.06);
}
.alp-ai-wrap.is-modern .alp-card__link {
  display: block;
  padding: 16px;
}

/* タイトル/時間/メタの階層 */
.alp-ai-wrap.is-modern .alp-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.alp-ai-wrap.is-modern .alp-card__time time {
  font-size: 14px;
  opacity: 0.9;
}

/* 既存バッジ類と整合（色はAA相当を維持） */
.alp-ai-wrap.is-modern .alp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f4f4f5;
  color: #3f3f46;
}
.alp-ai-wrap.is-modern .alp-badge.-eta {
  background: #eef7ff;
  color: #0b63c5;
}
.alp-ai-wrap.is-modern .alp-badge.-done {
  background: #f3f4f6;
  color: #6b7280;
}
.alp-ai-wrap.is-modern .alp-badge.-next {
  background: #e8faf1;
  color: #047857;
}
.alp-ai-wrap.is-modern .alp-badge.-pop {
  background: #fff7ed;
  color: #c2410c;
}
.alp-ai-wrap.is-modern .alp-badge.-odds {
  background: #eef2ff;
  color: #4338ca;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-a {
  background: #dcfce7;
  color: #065f46;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-b {
  background: #fef9c3;
  color: #7c5e10;
}
.alp-ai-wrap.is-modern .alp-badge.-conf.-c {
  background: #fee2e2;
  color: #991b1b;
}

/* グリッド（SP1 / TB2 / PC3） */
.alp-ai-wrap.is-modern .alp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .alp-ai-wrap.is-modern .alp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .alp-ai-wrap.is-modern .alp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 次の発走（グラス風は既存追記と整合） */
.alp-ai-wrap.is-modern .alp-next.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 16px;
}
.alp-ai-wrap.is-modern .alp-next.-glass .alp-next__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alp-ai-wrap.is-modern .alp-card {
    transition: none !important;
  }
}

/* ===========================
   Race Detail – sticky table header / AI bets cards / Result table
   （既存の下に追記）
=========================== */

/* アクセシビリティ補助 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ヘッダー帯 ---------- */
.race-detail .race-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 16px;
}
.race-detail .rd-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.race-detail .rd-title .rd-sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-top: 4px;
}
.race-detail .rd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 13px;
  color: #4b5563;
}
.race-detail .rd-header__right .alp-btn {
  padding: 10px 14px;
}

/* ---------- 出走表（sticky thead） ---------- */
.race-detail .race-detail__table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.race-detail .race-detail__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}
.race-detail .race-detail__table thead th {
  /*position: sticky;*/
  top: var(--rd-sticky-offset, 56px); /* ← ヘッダー高さに合わせて調整 */
  z-index: 3;
  background: #f8fafc;
  backdrop-filter: blur(2px);
  will-change: transform;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.race-detail .race-detail__table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  background: #fff;
}
.race-detail .race-detail__table thead th,
.race-detail .race-detail__table tbody td {
  height: 48px;
} /* CLS対策（最小高さ） */

.race-detail .col-frame {
  width: 64px;
}
.race-detail .col-num {
  width: 64px;
  font-weight: 700;
}
.race-detail .col-odds {
  width: 120px;
  text-align: right;
}
.race-detail .col-idx {
  width: 100px;
  text-align: right;
}

.race-detail .horse-name {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 2px;
}
.race-detail .horse-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.race-detail .frame-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  color: #fff;
}
.race-detail .idx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  margin-left: auto;
}

/* JRA枠色 */
.waku-1 {
  background: #838383;
  color: #111827;
  border: 1px solid #cbd5e1;
}
.waku-2 {
  background: #000000;
}
.waku-3 {
  background: #ff0000;
}
.waku-4 {
  background: #0000ff;
}
.waku-5 {
  background: #ffff00;
  color: #111827;
}
.waku-6 {
  background: #00ff00;
  color: #111827;
}
.waku-7 {
  background: #ff7f00;
}
.waku-8 {
  background: #ff00ff;
}

/* ---------- AI買い目カード（画像②テイスト） ---------- */
.race-detail .ai-bets {
  margin-top: 24px;
}
.race-detail .ai-bets__title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 12px;
  padding: 6px 2px;
}
.race-detail .ai-bets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .race-detail .ai-bets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .race-detail .ai-bets__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.race-detail .ai-bet-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.race-detail .ai-bet-card__head {
  background: #166534;
  color: #fff;
  font-weight: 900;
  text-align: center;
  padding: 10px 12px;
  letter-spacing: 0.05em;
}
.race-detail .ai-bet-card__body {
  padding: 14px 14px 16px;
}
.race-detail .ai-bet-card__meta {
  text-align: center;
  font-size: 13px;
  color: #1f2937;
  margin: 6px 0 10px;
}
.race-detail .ai-bet-card__content {
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 12px;
}
.race-detail .ai-bet-lines {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.race-detail .ai-bet-lines .cap {
  font-weight: 900;
  margin-right: 6px;
}
.race-detail .ai-bet-points {
  margin-top: 8px;
  font-weight: 800;
}
.race-detail .ai-bet-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #4b5563;
}

/* ---------- レース結果（仮UI / 画像③テイスト） ---------- */
.race-detail .race-result {
  margin-top: 28px;
}
.race-detail .race-result__title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 12px;
}
.race-detail .race-result__order {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}
.race-detail .rr-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: #0f5132;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.race-detail .rr-sep {
  opacity: 0.6;
  font-weight: 900;
}

.race-detail .race-result__table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.race-detail .race-result__table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}
.race-detail .race-result__table thead th {
  background: #065f46;
  color: #fff;
  font-weight: 900;
  padding: 12px 10px;
  position: sticky;
  top: var(--rd-sticky-offset, 56px);
  z-index: 2;
}
.race-detail .race-result__table tbody td,
.race-detail .race-result__table tbody th {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
  background: #fff;
}
.race-detail .race-result__table .col-kind {
  width: 96px;
  white-space: nowrap;
}

/* 空カードの微調整 */
.race-detail .race-result__empty,
.race-detail .ai-bets__empty {
  text-align: center;
  font-weight: 700;
}

/* ============================================================
   Page container & gutters + sticky header unification (追加)
   調整ポイント:
     --page-max         … 中央カラムの最大幅（既定 1200px）
     --page-pad         … 左右ガター（SP16px / TB24px / PC32px）
     --rd-sticky-offset … sticky thead のオフセット（既定 72px）
   既存コードは壊さず“追記優先”。固定 top 指定は下の置換ブロックで統一。
============================================================ */
:root {
  --page-max: 1200px;
  --page-pad: 16px;
  /* 共通ヘッダーの高さに合わせて調整可。被りが出る場合は 64〜88px で調整 */
  --rd-sticky-offset: 72px;
}
/* TB, PC でガター拡張 */
@media (min-width: 720px) {
  :root {
    --page-pad: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --page-pad: 32px;
  }
}

/* 中央カラム化（背景を見せる） */
.alp-ai-wrap,
.race-detail {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  /* 背景パターンを見せるためにメイン領域は透明に（既存カード側で面色を担保） */
  background: transparent;
  box-sizing: border-box;
}

/* 汎用テーブル（出走表/結果）での sticky 安全策 */
.race-detail .race-detail__table thead th,
.race-detail .race-result__table thead th,
.race-table thead th {
  /*  position: sticky; */
  top: var(--rd-sticky-offset, 72px);
  z-index: 3;
  background: #f1f5f9;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  will-change: transform;
  text-align: left;
  font-weight: 900;
  color: #0f172a;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 48px; /* CLS 対策 */
}

/* テーブル行の最小高さ（CLS/視認性） */
.race-detail .race-detail__table tbody td,
.race-detail .race-result__table tbody td,
.race-table tbody td {
  min-height: 48px;
}

/* =========================================================
   Sticky header / container / frame colors – unified & refactor
   基準: keiba-child-theme v1_71
   目的: レイアウトは現状維持のまま、theadの被り解消・中央カラムの整理・枠色 9-18 追加
   ※ 既存ルールは壊さず、固定 top 値だけ変数参照に統一
========================================================= */

/* --- 調整ポイント（必要に応じて値を変えてください） --- */
:root {
  /* ページ幅と左右ガター（背景を見せる中央カラム） */
  --page-max: 1200px;
  --page-pad: 16px;

  /* sticky オフセット（グローバルヘッダーの高さを想定） */
  --rd-sticky-base: 0px; /* ← ここを環境に合わせて調整してください */
  --rd-adminbar: 0px; /* WP管理バー加算用 */
  --rd-sticky-offset: calc(var(--rd-sticky-base) + var(--rd-adminbar));
}
@media (min-width: 768px) {
  :root {
    --page-pad: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --page-pad: 32px;
  }
}

/* WP管理バーあり時のオフセット加算（PC/モバイル） */
body.admin-bar {
  --rd-adminbar: 32px;
}
@media (max-width: 782px) {
  body.admin-bar {
    --rd-adminbar: 46px;
  }
}

/* ===== コンテンツの幅を全体で統一 =====
   既存の max-width/padding を上書きせず「後勝ち」で整えるだけに留めます。
   （見た目は変えず、数値だけ一元化） */
.alp-ai-wrap,
.race-detail,
.uma-hero-inner,
.uma-footer .container,
.lp-keiba .lp-sec,
.ai-hub-simple__inner,
.ai-hub-simple__grid,
.race-detail__board,
.race-detail__bets,
.race-result,
.race-detail__foot {
  max-width: var(--page-max);
  margin-inline: auto;
  /*
  padding-inline: var(--page-pad);
  */
}

/* ===== thead（出走表ヘッダー）: sticky 統一 =====
   置換方針: 固定値 top を撤廃し、--rd-sticky-offset に統一。
   Safari対策: background / will-change / z-index 付与。
*/
.race-table thead th,
.race-detail .race-detail__table thead th {
  /* position: sticky; */
  top: var(--rd-sticky-offset);
  z-index: 3;
  background: #f1f5f9; /* 既存トーンに合わせる（視覚差なし） */
  will-change: transform;
}

/* thead/td の最小高で CLS 抑止（既存があれば上書きしません） */
.race-table thead th,
.race-table tbody td,
.race-detail .race-detail__table thead th,
.race-detail .race-detail__table tbody td {
  min-height: 48px;
}

/* スクロール時の被り解消（見た目は変わらない） */
.race-detail .race-detail__table-wrap,
.table-scroll {
  scroll-padding-top: var(--rd-sticky-offset);
}
.race-detail .race-detail__table tbody tr:first-child,
.race-table tbody tr:first-child {
  scroll-margin-top: var(--rd-sticky-offset);
}

/* ===== 既存: thead の旧固定 top ルールがあれば “これが後勝ち” で無効化します ===== */
/* （例）
.race-table thead th{ top:62px; }  ← これより上の統一ルールが優先されます
*/

/* ===== 枠色の拡張（1〜8は既存通り、9〜18を追加） =====
   既存 .waku-1〜8 は編集しません。以下は追加定義のみ。
   AA相当コントラストを意識した色を選定。
*/
.waku-9 {
  background: #0ea5e9;
  color: #ffffff;
} /* 空色(明) */
.waku-10 {
  background: #22c55e;
  color: #ffffff;
} /* 緑(中)  */
.waku-11 {
  background: #a855f7;
  color: #ffffff;
} /* 紫     */
.waku-12 {
  background: #eab308;
  color: #111111;
} /* 黄(深)  */
.waku-13 {
  background: #06b6d4;
  color: #ffffff;
} /* 水色    */
.waku-14 {
  background: #ef4444;
  color: #ffffff;
} /* 赤(深)  */
.waku-15 {
  background: #14b8a6;
  color: #ffffff;
} /* ティール*/
.waku-16 {
  background: #f97316;
  color: #111111;
} /* 橙(深)  */
.waku-17 {
  background: #3b82f6;
  color: #ffffff;
} /* 藍     */
.waku-18 {
  background: #84cc16;
  color: #111111;
} /* 黄緑    */

/* ===== 「AI予想・買い目」「レース結果」が非表示化されないよう最低限可視を担保 ===== */
.race-detail .ai-bets,
.race-detail .race-result {
  display: block; /* 何らかの上書きで非表示になっても可視化 */
}

/* 既存のカード/影/角丸/余白トークンは手を入れない（現状維持） */

/* ==== 記事一覧（添付デザイン準拠） ==== */
.ka-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

/* 全体 */
.ka-list {
  padding: 0 35vh;
}

/* 行本体：左サムネ固定の2カラム */
.ka-card {
  display: grid;
  /*grid-template-columns: 200px 1fr;  ← サムネ幅 */
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* サムネは正方形でトリミング */
.ka-thumb {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.ka-thumb .ka-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ka-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  font-weight: 700;
}

/* 右側本文 */
.ka-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* タイトル */
.ka-hero {
  text-align: center;
  background-color: #2f855a;
  padding: 20px;
  border-radius: 16px;
}
#kaListTitle {
  color: white;
}

/* 上段：ピル＋星＋点数＋日付（右寄せ） */
.ka-toprow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ka-pill {
  background: #3cb15f;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.ka-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
}
.ka-star {
  color: #e5e7eb;
}
.ka-star.ka-on {
  color: #f5c32c;
}
.ka-rating {
  color: #ef4444;
  font-weight: 900;
  margin-left: 4px;
  font-size: 16px;
}
.ka-date {
  color: #6b7280;
  font-weight: 700;
}

/* タイトル（濃い緑・太字） */
.ka-title {
  margin: 10px 0 8px 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
  color: #2f855a;
}
.ka-title a {
  color: inherit;
  text-decoration: none;
}
.ka-title a:hover {
  text-decoration: underline;
}

/* 抜粋は3行まで */
.ka-ex {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 幅広で少しだけ拡張 */
@media (max-width: 1350px) {
  /*  .ka-card{grid-template-columns:200px 1fr;padding:18px} */
  .ka-title {
    font-size: 28px;
  }
  .ka-list {
    padding: 0 5vh;
  }
}

/* モバイル：比率は維持しつつ縦積み */
@media (max-width: 720px) {
  .ka-list-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
  }
  .ka-thumb {
    aspect-ratio: 1.5/1;
  }
  .ka-title {
    font-size: 22px;
  }
  .ka-ex {
    font-size: 15px;
  }
  .ka-list {
    padding: 0 1vh;
  }
}

/* ==== Single Post (Green Review Style) ==== */
.post-wrap {
  --g: #2f964b;
  --g2: #3cb15f;
  --ink: #0f172a;
  --muted: #64748b;
  --bd: #e5e7eb;
}
.post-hero {
  background: linear-gradient(180deg, #e9f7ee, transparent);
  padding: 18px 0 8px;
}
.post-hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.post-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}
.post-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}
.post-breadcrumb .-current {
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 6px 0 8px;
}
.post-date,
.post-reading {
  color: #64748b;
  font-size: 12px;
}

.ka-stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: 2px;
}
.ka-star {
  color: #e5e7eb;
}
.ka-star.ka-on {
  color: #f5c32c;
}
.ka-rating {
  margin-left: 6px;
  color: #ef4444;
  font-weight: 800;
  font-size: 12px;
}

.post-title {
  font-size: 28px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 900;
  margin: 6px 0 12px;
}
.post-thumb {
  margin: 10px 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}
.post-thumb__img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  max-width: 880px;
  padding: 30px 16px;
  color: #0f172a;
}
.post-body h2 {
  font-size: 22px;
  margin: 22px 0 10px;
  font-weight: 900;
  color: #14532d;
}
.post-body h3 {
  font-size: 18px;
  margin: 18px 0 10px;
  font-weight: 800;
  color: #064e3b;
}
.post-body p {
  line-height: 1.9;
  margin: 12px 0;
}
.post-body ul,
.post-body ol {
  padding-left: 1.2em;
  margin: 10px 0 12px;
}
.post-body blockquote {
  border-left: 4px solid var(--g2);
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
}

.post-share {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.ps-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.ps-btn.-x {
  background: #111;
  color: #fff;
}
.ps-btn.-fb {
  background: #1877f2;
  color: #fff;
}
.ps-btn.-ln {
  background: #06c755;
  color: #fff;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.post-tags .tag {
  background: #eef2ff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 8px;
}
.post-nav .pn a {
  color: var(--g2);
  font-weight: 800;
  text-decoration: none;
}

.post-related {
  max-width: 1040px;
  margin: 8px auto 48px;
  padding: 0 16px;
}
.pr-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
}
.pr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .pr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pr-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}
.pr-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pr-thumb {
  height: 160px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pr-noimg {
  color: #9ca3af;
}
.pr-name {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
  margin: 10px 12px;
}
.pr-date {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin: 0 12px 12px;
}

/* === Hits Archive (kha) === */
.kha-wrap {
  max-width: 1120px;
  margin: 32px auto;
  padding: 0 16px;
}
.kha-title {
  background: #2f964b;
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 28px;
  font-weight: 900;
  display: inline-block;
}
.kha-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.kha-controls .kha-date {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: #475569;
}
.kha-controls .kha-date input {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.kha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kha-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  color: #334155;
  text-decoration: none;
}
.kha-pill.-on {
  background: #34d399;
  color: #fff;
  border-color: #34d399;
}
.kha-sort {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  font-weight: 700;
  color: #475569;
}
.kha-sort select {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.kha-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
  color: #475569;
  font-weight: 800;
}

.kha-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .kha-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 既存 kp-ticket を縮小化して再利用 
.kp-ticket.-sm{min-height:auto;padding:14px 12px}
.kp-ticket.-sm .kp-pay{font-size:28px}
.kp-ticket.-sm .kp-row{grid-template-columns:1fr 64px}
.kp-ticket.-sm .kp-qr{width:56px;height:56px}

.kha-line1{display:flex;gap:6px;align-items:center}
.kha-sep{opacity:.5}
.kha-meta{display:flex;gap:8px;align-items:center;margin-top:4px}
.kha-bet{display:inline-block;background:#0b0b0b;color:#fff;border-radius:6px;padding:4px 8px;font-weight:900}
.kha-lines{color:#475569;font-size:12px;opacity:.9}
.kha-title{margin-top:6px;font-size:16px;color:#111827;font-weight:900}
.kha-pay{margin-top:6px;font-size:22px;color:#ef4e2f;font-weight:900}

.kha-empty{padding:16px;text-align:center;border:1px dashed rgba(0,0,0,.15);border-radius:12px;background:#fff;color:#64748b;font-weight:700}
.kha-pager{display:flex;justify-content:center;gap:8px;margin:18px 0}
.kha-page{display:inline-block;padding:8px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;text-decoration:none;color:#111827}
.kha-page.-current{background:#34d399;color:#fff;border-color:#34d399}
*/

/* === 的中実績：チケット風カード =============================== */
.kh-card {
  list-style: none;
}
.kh-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.kh-ticket {
  position: relative;
  background: linear-gradient(180deg, #f5fdff 0%, #eef6f8 100%);
  border: 3px solid #0b3948;
  border-radius: 14px;
  padding: 16px 22px 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  min-height: 140px;
}

/* ミシン目の帯 */
.kh-ticket::before {
  content: "";
  position: absolute;
  right: 56px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.12) 8px,
    rgba(0, 0, 0, 0.12) 10px
  );
}

/* 打ち抜き穴（上下） */
.kh-ticket__hole {
  position: absolute;
  right: 45px;
  width: 22px;
  height: 22px;
  background: #f5fdff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0b3948;
}
.kh-ticket__hole.-top {
  top: -11px;
}
.kh-ticket__hole.-bottom {
  bottom: -11px;
}

/* 的中スタンプ */
.kh-ticket__stamp {
  position: absolute;
  left: 14px;
  top: 10px;
  background: #ff4d30;
  color: #fff;
  padding: 6px 10px;
  font-weight: 900;
  border-radius: 8px;
  transform: rotate(-12deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

/* 日付/会場の白ボックス */
.kh-ticket__head {
  display: inline-block;
  background: #fff;
  border: 2px solid #0b3948;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 800;
}
.kh-ticket__date {
  white-space: nowrap;
}

/* タイトル */
.kh-ticket__title {
  margin: 8px 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #0b3948;
}

/* 券種ピル */
.kh-ticket__meta {
  margin-bottom: 8px;
}
.kh-ticket__bet {
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
}

/* 払戻額 */
.kh-ticket__pay {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
  color: #ef4e2f;
}

/* グリッド内での見栄え（任意：既存グリッドに合わせて） */
.kh-grid > li .kh-ticket {
  height: 100%;
}
@media (min-width: 900px) {
  .kh-ticket {
    min-height: 170px;
  }
}

/* === Hits Archive: チケット風カード（小さめ） ==================== */
.kha-hero {
  background-color: #ffffffbf;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 50px;
}

.kha-list {
  display: grid;

  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  gap: 18px;
  margin-top: 18px;
}

.kp-ticket {
  position: relative;
  background: #e9fbff;
  border: 3px solid #0b3948;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  min-height: 140px;
}
.kp-ticket.-sm {
  padding: 14px 16px;
}

.kp-ticket::before {
  /* ミシン目の帯 */
  content: "";
  position: absolute;
  right: 56px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.12) 8px,
    rgba(0, 0, 0, 0.12) 10px
  );
}

.kp-hole {
  position: absolute;
  right: 45px;
  width: 22px;
  height: 22px;
  background: #f5fdff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #0b3948;
  top: -11px;
}
.kp-hole.kp-b {
  bottom: -11px;
  top: auto;
}

.kp-stamp {
  position: absolute;
  left: 235px;
  top: 35px;
  background: #ff4d30;
  color: #fff;
  padding: 6px 10px;
  font-weight: 900;
  border-radius: 8px;
  transform: rotate(-12deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.kp-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kp-col-main {
  flex: 1 1 auto;
  min-width: 0;
}
.kp-col-qr {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kp-qr {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.kha-line1 {
  font-weight: 800;
  color: #0b3948;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kha-date {
  opacity: 0.9;
}
.kha-sep {
  opacity: 0.5;
}
.kha-race {
  opacity: 0.9;
}

.kha-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kha-bet {
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
}
.kha-lines {
  color: #475569;
  font-weight: 700;
}

.kha-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kha-pay {
  font-size: 35px;
  font-weight: 900;
  color: #ef4e2f;
}

.kp-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
}

/* 共通セクション見出しの左右配置を確実に 
.kp-sec__hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
*/
.kp-morebtn {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 25px;
}
.kp-morebtn:hover {
  transform: translateY(-3px);
}

.lp-sec-top {
  width: 100%;
}

.uma-logo-img {
  display: block;
  height: auto;
  /* 見た目サイズ：横幅のみ管理（自動で高さいい感じ） */
  width: min(240px, 40vw); /* PCで~240px / SPでは画面幅の40%めど */
}

/* =========================================================
  Ultra-Small / Narrow phones (≤480px)
  ポイント：
  - 1カラム化で読みやすさ優先
  - 余白/装飾をさらに省略（ミシン目・穴・スタンプ弱体）
  - 行高・文字サイズの最適化
  - タップ領域の確保（CTAは全幅）
========================================================= */
@media (max-width: 480px) {
  /* ===== 的中実績（TOPなどのkp-系） ===== */
  body.page-template-template-keiba-top .kp-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* ← 1列 */
    gap: 8px !important;
    padding: 0 8px !important;
    width: 90%;
    margin: 0 auto;
    margin-top: 15px;
  }
  body.page-template-template-keiba-top .kp-ticket {
    min-height: 128px !important;
    padding: 12px 14px 14px !important;
    border-width: 2px; /* 枠線を少し軽く */
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1) !important;
  }
  /* ミシン目/穴/スタンプは視認性優先で弱体化 */
  body.page-template-template-keiba-top .kp-ticket::before {
    right: 44px;
    width: 18px;
    opacity: 0.25;
  }
  body.page-template-template-keiba-top .kp-hole {
    right: 36px;
    width: 18px;
    height: 18px;
    top: -9px;
    box-shadow: 0 0 0 2px #0b3948;
  }
  body.page-template-template-keiba-top .kp-hole.kp-b {
    bottom: -9px;
  }
  body.page-template-template-keiba-top .kp-stamp {
    left: auto;
    right: 8px;
    top: 8px;
    transform: rotate(-8deg);
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
  }

  /* 文字階層（よりコンパクトに） */
  body.page-template-template-keiba-top .kha-line1 {
    gap: 5px;
    font-size: 12px;
  }
  body.page-template-template-keiba-top .kha-meta {
    gap: 6px;
  }
  body.page-template-template-keiba-top .kha-bet {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
  }
  body.page-template-template-keiba-top .kha-title {
    font-size: 14px;
  }
  body.page-template-template-keiba-top .kha-pay {
    font-size: 26px;
  } /* まだ強調は維持 */

  /* 右側QR等の装飾を圧縮/省略 */
  body.page-template-template-keiba-top .kp-col-qr {
    display: none;
  }
  body.page-template-template-keiba-top .kp-row {
    gap: 10px;
  }

  /* 補足テキストは非表示（一覧性重視） */
  body.page-template-template-keiba-top .kp-note {
    display: none !important;
  }

  /* ===== 的中実績（汎用 kh-系：アーカイブ/他ページ） ===== */
  .kha-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 8px !important;
  }
  .kh-ticket {
    min-height: 124px;
    padding: 12px 14px 14px;
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  }
  .kh-ticket::before {
    right: 42px;
    width: 16px;
    opacity: 0.25;
  }
  .kh-ticket__hole {
    right: 34px;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 2px #0b3948;
  }
  .kh-ticket__stamp {
    right: 8px;
    left: auto;
    top: 8px;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
  }

  .kh-ticket__head {
    padding: 8px 10px;
    border-width: 2px;
    margin-bottom: 8px;
    font-size: 12px;
  }
  .kh-ticket__title {
    font-size: 15px;
    margin: 6px 0 6px;
    line-height: 1.35;
  }
  .kh-ticket__bet {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
  }
  .kh-ticket__pay {
    font-size: 24px;
    margin-top: 4px;
  }

  /* ===== 会員限定（kb-系）: 1カードを8〜9割幅で横スクロール ===== */
  body.page-template-template-keiba-top .kb-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 12px !important;
    padding: 0 8px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  body.page-template-template-keiba-top .kb-grid > * {
    flex: 0 0 auto;
    width: 88%; /* 1枚を大きく見せる */
    scroll-snap-align: start;
  }
  body.page-template-template-keiba-top .kb-card {
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    margin: 10px 0 !important;
  }
  body.page-template-template-keiba-top .kb-media {
    height: 190px !important;
  }
  .kb-title {
    font-size: 18px !important;
  }
  .kb-desc {
    -webkit-line-clamp: 2 !important;
  }
  .kb-cta {
    padding: 14px 16px !important;
    font-size: 16px !important;
    width: 100%;
  } /* タップしやすく全幅 */

  /* ===== 共通：セクション見出し周り（ピル帯）をさらに省スペース ===== */
  body.page-template-template-keiba-top .kb-head,
  body.page-template-template-keiba-top .kp-head {
    padding: 20px 12px !important;
    border-radius: 10px !important;
    width: 103% !important;
  }
  body.page-template-template-keiba-top .kb-h2,
  body.page-template-template-keiba-top .kp-title {
    font-size: 25px !important;
  }

  /* ===== 余白・ガターの最適化 ===== */
  .lp-keiba .lp-sec {
    margin-bottom: 36px;
    padding: 0 8px;
  }
  .uma-footer .container {
    padding: 0 12px;
  }

  /* 旧ロゴボックスを使わないので効かないようにするか削除 */
  .uma-logo {
    display: none !important;
  }
  .uma-title,
  .uma-tagline {
    display: none !important;
  }

  /* 新しい画像ロゴ */
  .uma-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  .uma-logo-img {
    display: block;
    height: auto;
    /* 見た目サイズ：横幅のみ管理（自動で高さいい感じ） */
    width: min(240px, 40vw); /* PCで~240px / SPでは画面幅の40%めど */
  }

  /* コンテナの並びはそのまま */
  .uma-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .uma-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  /* モバイル微調整 */
  @media (max-width: 768px) {
    .uma-logo-img {
      width: min(200px, 52vw);
      max-width: 70%;
    }
  }

  /* 視覚的に非表示（スクリーンリーダー向け） */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ========================================
   AI予想・買い目カード（V2）
======================================== */

.bet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* カード全体 */
.bet-card-v2 {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.bet-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ヘッダー（券種名） */
.bet-card-v2__header {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bet-card-v2__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ボディ */
.bet-card-v2__body {
  padding: 1.5rem;
  background: #fff;
}

/* メタ情報 */
.bet-card-v2__meta {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #e2e8f0;
}

/* 買い目ライン */
.bet-card-v2__lines {
  margin-bottom: 1rem;
}

.bet-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #0d9488;
}

.bet-line__label {
  font-weight: 700;
  color: #0f766e;
  min-width: 60px;
  font-size: 0.95rem;
}

.bet-line__numbers {
  flex: 1;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  letter-spacing: 0.05em;
}

/* 点数表示 */
.bet-card-v2__points {
  font-size: 1rem;
  font-weight: 700;
  color: #0f766e;
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: #f0fdfa;
  border-radius: 8px;
  border: 1px dashed #5eead4;
}

/* 各100円 */
.bet-card-v2__unit {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

/* 備考 */
.bet-card-v2__note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #92400e;
}

/* カード色の変化 */
.bet-card-v2:nth-child(1) {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.bet-card-v2:nth-child(2) {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.bet-card-v2:nth-child(3) {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .bet-cards-grid {
    grid-template-columns: 1fr;
  }

  .bet-card-v2__title {
    font-size: 1.25rem;
  }

  .bet-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bet-line__label {
    min-width: auto;
  }

  .bet-line__numbers {
    width: 100%;
  }
}

/* ========================================
   AI予想・買い目カード（V2）
======================================== */

.bet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* カード全体 */
.bet-card-v2 {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.bet-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ヘッダー（券種名） */
.bet-card-v2__header {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bet-card-v2__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ボディ */
.bet-card-v2__body {
  padding: 1.5rem;
  background: #fff;
}

/* メタ情報 */
.bet-card-v2__meta {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed #e2e8f0;
}

/* 買い目ライン */
.bet-card-v2__lines {
  margin-bottom: 1rem;
}

.bet-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #0d9488;
}

.bet-line__label {
  font-weight: 700;
  color: #0f766e;
  min-width: 60px;
  font-size: 0.95rem;
}

.bet-line__numbers {
  flex: 1;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  letter-spacing: 0.05em;
}

/* 点数表示 */
.bet-card-v2__points {
  font-size: 1rem;
  font-weight: 700;
  color: #0f766e;
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: #f0fdfa;
  border-radius: 8px;
  border: 1px dashed #5eead4;
}

/* 各100円 */
.bet-card-v2__unit {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

/* 備考 */
.bet-card-v2__note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #92400e;
}

/* カード色の変化 */
.bet-card-v2:nth-child(1) {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.bet-card-v2:nth-child(2) {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.bet-card-v2:nth-child(3) {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .bet-cards-grid {
    grid-template-columns: 1fr;
  }

  .bet-card-v2__title {
    font-size: 1.25rem;
  }

  .bet-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bet-line__label {
    min-width: auto;
  }

  .bet-line__numbers {
    width: 100%;
  }
}

/* keiba-lp.css に追加 */

.ai-card.-norace {
  border: 2px dashed #ddd;
  background: #f9f9f9;
}

.ai-card__empty {
  padding: 2rem;
  text-align: center;
  color: #999;
}

.ai-card__empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* 明日用のカラー（オプション） */
.ai-col__head.-tomorrow {
  background: linear-gradient(135deg, #0f5132 0%, #37a153 100%);
}

/* ===================================
   スマホ最適化（レスポンシブ対応）
   =================================== */

/* タブレット以下 */
@media (max-width: 768px) {
  /* ヒーローセクション縮小 */
  .ai-hub-simple__hero {
    padding: 1.5rem 1rem;
  }

  .ai-hub-simple__title {
    font-size: 1.5rem;
  }

  .ai-hub-simple__sub {
    font-size: 0.875rem;
  }

  /* 検索エリアをコンパクトに */
  .ai-search {
    padding: 1.25rem 1rem;
    margin: 1rem 1rem;
  }

  .ai-search__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .ai-search__desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  /* フォームを縦並びに */
  .ai-search__form {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .ai-search__field {
    width: 100%;
    min-width: 0;
  }

  /* 入力フィールドを少し小さく */
  .ai-search__input,
  .ai-search__select {
    padding: 0.625rem;
    font-size: 0.95rem;
  }

  /* ボタンを横並び・コンパクトに */
  .ai-search__button {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    width: auto;
  }

  .ai-search__field[style*="flex: 0 0 auto"] {
    flex: 1 1 100%;
  }

  .ai-search__field[style*="flex: 0 0 auto"] > div {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .ai-search__field[style*="flex: 0 0 auto"] .ai-search__button {
    flex: 1;
  }

  /* 検索結果をコンパクトに */
  .ai-search__results {
    margin-top: 1.25rem;
  }

  .ai-search__result-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .ai-search__result-count {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .ai-search__result-list {
    gap: 0.75rem;
  }

  .ai-search__result-item {
    padding: 1rem;
  }

  .ai-search__result-date {
    font-size: 0.8rem;
  }

  .ai-search__result-venue {
    font-size: 1rem;
  }

  .ai-search__result-races {
    gap: 0.375rem;
    margin-top: 0.5rem;
  }

  .ai-search__race-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }

  /* 本日・明日のグリッドを調整 */
  .ai-hub-simple__grid {
    display: block;
    padding: 0 1rem;
    margin-top: 1.5rem;
  }

  .ai-col {
    margin-bottom: 1.5rem;
  }

  .ai-col:last-child {
    margin-bottom: 0;
  }

  .ai-col__head {
    padding: 0.75rem 1rem;
  }

  .ai-col__title {
    font-size: 1rem;
  }

  .ai-col__date {
    font-size: 0.8rem;
  }

  /* 会場カードを横2列に */
  .ai-col__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .ai-card__media {
    height: 80px;
  }

  .ai-card__meta {
    padding: 0.5rem;
  }

  .ai-card__city {
    font-size: 0.7rem;
  }

  .ai-card__name {
    font-size: 0.85rem;
  }

  .ai-card.-norace .ai-card__empty {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* スマホ（小） */
@media (max-width: 480px) {
  /* さらにコンパクトに */
  .ai-search {
    padding: 1rem 0.75rem;
    margin: 0.75rem;
  }

  .ai-search__title {
    font-size: 1.125rem;
  }

  .ai-search__desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .ai-search__form {
    gap: 0.625rem;
  }

  .ai-search__label {
    font-size: 0.8rem;
    margin-bottom: 0.375rem;
  }

  .ai-search__input,
  .ai-search__select {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .ai-search__button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* 検索結果をさらにコンパクト */
  .ai-search__result-item {
    padding: 0.875rem;
  }

  .ai-search__result-venue {
    font-size: 0.95rem;
  }

  .ai-search__race-tag {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
  }

  /* 会場カードを1列に */
  .ai-col__list {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .ai-card__media {
    height: 100px;
  }
}

/* ===================================
   Flatpickr カレンダー（スマホ対応）
   =================================== */

@media (max-width: 768px) {
  /* カレンダーをスマホ画面に最適化 */
  .flatpickr-calendar {
    width: 100% !important;
    max-width: 340px !important;
    font-size: 0.9rem !important;
  }

  .flatpickr-months {
    padding: 0.5rem !important;
  }

  .flatpickr-current-month {
    font-size: 1rem !important;
    padding: 0.5rem 0 !important;
  }

  .flatpickr-day {
    height: 36px !important;
    line-height: 36px !important;
    max-width: 36px !important;
  }

  .flatpickr-weekday {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .flatpickr-calendar {
    max-width: 300px !important;
    font-size: 0.85rem !important;
  }

  .flatpickr-day {
    height: 32px !important;
    line-height: 32px !important;
    max-width: 32px !important;
    font-size: 0.85rem !important;
  }
}

/* ===================================
   横スクロール防止
   =================================== */

@media (max-width: 768px) {
  /* 全体の横スクロールを防止 */
  .ai-hub-simple,
  .ai-search,
  .ai-hub-simple__grid {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 検索結果のレースタグが折り返すように */
  .ai-search__result-races {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* レースタグが多い場合は横スクロール */
  .ai-search__result-races::-webkit-scrollbar {
    height: 4px;
  }

  .ai-search__result-races::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }
}

/* ===================================
   レースなしメッセージ
   =================================== */

.ai-no-races-notice {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ai-no-races-notice__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.ai-no-races-notice__title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.ai-no-races-notice__text {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ai-no-races-notice__text strong {
  color: #667eea;
  font-weight: 700;
  font-size: 1.25rem;
}

.ai-no-races-notice__sub {
  font-size: 0.95rem;
  color: #777;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ai-no-races-notice {
    padding: 2rem 1.5rem;
    margin: 1.5rem 1rem;
  }

  .ai-no-races-notice__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .ai-no-races-notice__title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }

  .ai-no-races-notice__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .ai-no-races-notice__text strong {
    font-size: 1.125rem;
  }

  .ai-no-races-notice__text br {
    display: none; /* スマホでは改行なし */
  }

  .ai-no-races-notice__sub {
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .ai-no-races-notice {
    padding: 1.5rem 1rem;
    margin: 1rem 0.75rem;
  }

  .ai-no-races-notice__icon {
    font-size: 2.5rem;
  }

  .ai-no-races-notice__title {
    font-size: 1.25rem;
  }

  .ai-no-races-notice__text {
    font-size: 0.95rem;
  }

  .ai-no-races-notice__text strong {
    font-size: 1.05rem;
  }

  .ai-no-races-notice__sub {
    font-size: 0.8rem;
  }
}

/* ============================================
   Keiba Hits Archive - Pagination Styles
   ============================================ */

/* ====== ページネーションコンテナ ====== */
.kha-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem auto 2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

/* ====== ページボタン共通スタイル ====== */
.kha-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;

  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: #374151;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;

  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

/* ====== ホバー効果 ====== */
.kha-page:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kha-page:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ====== 現在のページ（アクティブ） ====== */
.kha-page.-current {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* ====== 前へ・次へボタン ====== */
.kha-page:first-child,
.kha-page:last-child {
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0 1rem;
}

/* ====== 省略記号（...） ====== */
.kha-page.dots {
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
  color: #9ca3af;
  font-weight: 600;
}

.kha-page.dots:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

/* ====== レスポンシブ対応 ====== */
@media (max-width: 640px) {
  .kha-pager {
    gap: 0.375rem;
    margin: 2rem auto 1.5rem;
    padding: 0.75rem 0.5rem;
  }

  .kha-page {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    padding: 0 0.5rem;
  }

  .kha-page:first-child,
  .kha-page:last-child {
    font-size: 1rem;
    padding: 0 0.75rem;
  }
}

/* ====== ダークモード対応（オプション） ====== */
@media (prefers-color-scheme: dark) {
  .kha-page {
    color: #e5e7eb;
    background: #1f2937;
    border-color: #374151;
  }

  .kha-page:hover {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .kha-page.-current {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
  }

  .kha-page.dots {
    color: #6b7280;
  }
}

/* ====== アクセシビリティ ====== */
.kha-page:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.kha-page.-current:focus-visible {
  outline-color: #1d4ed8;
}

/* ====== アニメーション ====== */
@keyframes kha-page-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kha-pager {
  animation: kha-page-appear 0.3s ease-out;
}

/* ============================================
   kp-btn - New Button Style
   サイバー×ダーク×緑テーマのボタン
   ============================================ */

.kp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* シャインエフェクト */
.kp-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.kp-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5),
    0 0 30px rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.kp-btn:hover::before {
  left: 100%;
}

.kp-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* アウトラインバージョン */
.kp-btn--outline {
  background: rgba(0, 0, 0, 0.7);
  color: #22c55e;
  border: 2px solid #22c55e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(34, 197, 94, 0.1);
}

.kp-btn--outline:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3),
    inset 0 0 30px rgba(34, 197, 94, 0.2);
}

/* セカンダリカラー（青紫） */
.kp-btn--secondary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4),
    0 0 20px rgba(99, 102, 241, 0.2);
}

.kp-btn--secondary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5),
    0 0 30px rgba(99, 102, 241, 0.3);
}

/* 危険/警告カラー（赤） */
.kp-btn--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
}

.kp-btn--danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.5),
    0 0 30px rgba(239, 68, 68, 0.3);
}

/* サイズバリエーション */
.kp-btn--large {
  padding: 18px 36px;
  font-size: 18px;
}

.kp-btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* 全幅ボタン */
.kp-btn--block {
  display: flex;
  width: 100%;
}

/* アイコン付きボタン */
.kp-btn--icon {
  gap: 10px;
}

.kp-btn--icon svg,
.kp-btn--icon i {
  width: 18px;
  height: 18px;
}

/* 無効化状態 */
.kp-btn:disabled,
.kp-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(50%);
}

/* ローディング状態 */
.kp-btn--loading {
  pointer-events: none;
  position: relative;
}

.kp-btn--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kp-btn-spin 0.6s linear infinite;
}

@keyframes kp-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* パルスアニメーション（注目させたい時） */
.kp-btn--pulse {
  animation: kp-btn-pulse 2s infinite;
}

@keyframes kp-btn-pulse {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4),
      0 0 20px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.6),
      0 0 35px rgba(34, 197, 94, 0.4);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .kp-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .kp-btn--large {
    padding: 16px 32px;
    font-size: 17px;
  }

  .kp-btn--small {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .kp-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .kp-btn--large {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* ============================================
   <btn> タグ対応（独自タグの場合）
   ============================================ */

btn,
btn[class*="kp-btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* altテキストを表示 */
btn::after {
  content: attr(alt);
  position: relative;
  z-index: 2;
}

/* 矢印を追加 */
btn:not([no-arrow])::after {
  content: attr(alt) " →";
}

btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5),
    0 0 30px rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

btn:hover::before {
  left: 100%;
}

btn:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================
   ボタンを中央配置に修正
   ============================================ */

/* ボタンの親要素を中央揃えに */
.kp-btn-wrapper,
.btn-wrapper,
[class*="-btn-wrapper"] {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* ボタンが直接配置されている場合も中央に */
.kp-btn,
btn[class*="kp-btn"] {
  margin-left: auto;
  margin-right: auto;
}

/* テキストセンタリング */
p .kp-btn,
div .kp-btn,
section .kp-btn {
  display: inline-flex;
}

/* ボタンを含む段落やdivを中央揃え */
p:has(.kp-btn),
div:has(.kp-btn) {
  text-align: center;
}

/* 的中カードセクションのボタンを中央に */
.hit-results .kp-btn,
.results-section .kp-btn,
[class*="results"] .kp-btn {
  display: inline-flex;
  margin: 30px auto;
}

/* フレックスボックスでの中央配置 */
.kp-btn-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 25px 0;
}

/* ============================================
   雷エフェクトボタン - Lightning Effect
   ============================================ */

.kp-btn--lightning {
  position: relative;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #16a34a 100%);
  overflow: visible;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 雷のフラッシュエフェクト */
.kp-btn--lightning::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  border-radius: 999px;
  opacity: 0;
  animation: lightning-flash 3s infinite;
  pointer-events: none;
}

/* 雷の稲妻エフェクト（上部） */
.kp-btn--lightning::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 20%;
  width: 2px;
  height: 10px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  animation: lightning-bolt 3s infinite;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* パルスグロー */
.kp-btn--lightning {
  animation: lightning-glow 2s ease-in-out infinite;
}

@keyframes lightning-flash {
  0%,
  100% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  10.5% {
    opacity: 1;
  }
  11% {
    opacity: 0;
  }
  11.5% {
    opacity: 0.8;
  }
  12% {
    opacity: 0;
  }
}

@keyframes lightning-bolt {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 0;
  }
  10.5% {
    opacity: 1;
    transform: translateY(5px);
  }
  11% {
    opacity: 0;
  }
  11.5% {
    opacity: 0.6;
    transform: translateY(3px);
  }
  12% {
    opacity: 0;
  }
}

@keyframes lightning-glow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5),
      0 0 40px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.7),
      0 0 50px rgba(34, 197, 94, 0.5), 0 0 80px rgba(34, 197, 94, 0.2);
  }
}

/* 雷エフェクト強化版 */
.kp-btn--lightning-strong {
  animation: lightning-glow 2s ease-in-out infinite, lightning-shake 3s infinite;
}

@keyframes lightning-shake {
  0%,
  100% {
    transform: translateY(0);
  }
  10.2% {
    transform: translateY(-1px);
  }
  10.4% {
    transform: translateY(1px);
  }
  10.6% {
    transform: translateY(0);
  }
}

/* ホバー時に雷を激しく */
.kp-btn--lightning:hover::before {
  animation: lightning-flash 1s infinite;
}

.kp-btn--lightning:hover::after {
  animation: lightning-bolt 1s infinite;
}

.kp-btn--lightning:hover {
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.7),
    0 0 60px rgba(34, 197, 94, 0.5), 0 0 100px rgba(34, 197, 94, 0.3) !important;
}

/* 複数の雷を追加 */
.kp-btn--lightning-multi {
  position: relative;
}

.kp-btn--lightning-multi::before {
  left: 20%;
  animation-delay: 0s;
}

/* 追加の雷要素（疑似要素で実現） */
.kp-btn--lightning-multi {
  background-image: linear-gradient(
      135deg,
      #22c55e 0%,
      #10b981 50%,
      #16a34a 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 11px
    );
}

/* サイバー雷ボーダー */
.kp-btn--cyber-lightning {
  border: 2px solid transparent;
  background-image: linear-gradient(
      135deg,
      #22c55e 0%,
      #10b981 50%,
      #16a34a 100%
    ),
    linear-gradient(45deg, #22c55e, #10b981, #22c55e, #10b981);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
}

.kp-btn--cyber-lightning::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    transparent 20%,
    rgba(34, 197, 94, 0.8) 40%,
    rgba(34, 197, 94, 0.8) 60%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: cyber-lightning-border 2s infinite;
  pointer-events: none;
}

@keyframes cyber-lightning-border {
  0%,
  100% {
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0;
  }
  10.5% {
    opacity: 1;
  }
  11% {
    opacity: 0;
  }
  11.5% {
    opacity: 0.7;
  }
  12% {
    opacity: 0;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .kp-btn--lightning::after {
    height: 8px;
    top: -8px;
  }
}

/* ============================================
   ka-card - サイバーダークデザイン
   ============================================ */

.ka-card {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(13, 31, 26, 0.95) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.1),
    inset 0 1px 0 rgba(34, 197, 94, 0.1);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* ホバーエフェクト */
.ka-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.2),
    inset 0 1px 0 rgba(34, 197, 94, 0.2);
}

/* カード内のリンク */
.ka-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* サムネイル */
.ka-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d1f1a 100%);
}

.ka-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ka-card:hover .ka-thumb img {
  transform: scale(1.05);
}

/* No Image表示 */
.ka-thumb span {
  display: grid;
  place-items: center;
  height: 200px;
  color: #6b7280;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d1f1a 100%);
  font-weight: 700;
}

/* メタ情報エリア */
.ka-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 0;
  flex-wrap: wrap;
}

/* カテゴリピル */
.ka-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* 星評価 */
.ka-meta .star-list {
  display: flex;
  gap: 2px;
  color: #fbbf24;
}

/* タイトル */
.ka-title {
  margin: 0;
  padding: 12px 18px 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ka-card:hover .ka-title {
  color: #22c55e;
}

/* 抜粋テキスト */
.ka-ex {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 日付 */
.ka-date {
  padding: 5px 18px 0px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

/* グリッドレイアウト */
.ka-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* カードの光るボーダーエフェクト */
.ka-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.8) 50%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ka-card:hover::before {
  opacity: 1;
}

/* サイバーグリッド背景 */
.ka-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(34, 197, 94, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.5;
  border-radius: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .ka-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ka-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .ka-thumb {
    height: 160px;
  }

  .ka-title {
    font-size: 16px;
  }

  .ka-ex {
    font-size: 13px;
  }
}

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

  .ka-thumb {
    height: 180px;
  }
}

/* 特殊エフェクト: パルスグロー */
.ka-card--featured {
  animation: ka-card-pulse 3s ease-in-out infinite;
}

@keyframes ka-card-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 197, 94, 0.3);
  }
}

/* NEWバッジ */
.ka-card.is-new .ka-thumb::after {
  content: "NEW";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

/* ============================================
   ka-list（記事一覧ページ）- コンパクトレイアウト
   ============================================ */

.ka-list {
  /*
  background: linear-gradient(180deg, #0a0a0a 0%, #0d2e1f 50%, #0a0a0a 100%);
  */
  min-height: 100vh;
  padding: 40px 0;
}

.ka-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローセクション */
.ka-hero {
  background: linear-gradient(135deg, #0d4d2e 0%, #064e3b 100%);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
  border: 2px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 197, 94, 0.2);
}

.ka-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

/* リストグリッド */
.ka-list-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* カードスタイル */
.ka-list-grid .ka-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(13, 31, 26, 0.95) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.ka-list-grid .ka-card:hover {
  transform: translateX(5px);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.2);
}

/* サムネイル */
.ka-list-grid .ka-thumb {
  display: block;
  width: 240px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d1f1a 100%);
  position: relative;
  flex-shrink: 0;
}

.ka-list-grid .ka-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ka-list-grid .ka-card:hover .ka-img {
  transform: scale(1.05);
}

.ka-list-grid .ka-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
}

/* メインコンテンツエリア */
.ka-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* トップ行（カテゴリ・星・日付） */
.ka-toprow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* カテゴリピル */
.ka-toprow .ka-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* 星評価 */
.ka-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: #4b5563;
}

.ka-star {
  transition: color 0.2s ease;
}

.ka-star.ka-on {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.ka-rating {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
}

/* 日付 */
.ka-date {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

/* タイトル */
.ka-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.ka-title a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ka-card:hover .ka-title a {
  color: #22c55e;
}

/* 抜粋テキスト */
.ka-ex {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ページネーション */
.ka-more {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.ka-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ka-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ka-page:hover {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.ka-page.-current {
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .ka-wrap {
    max-width: 100%;
    padding: 0 16px;
  }

  .ka-hero h1 {
    font-size: 24px;
  }

  .ka-list-grid .ka-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .ka-list-grid .ka-thumb {
    width: 100%;
    height: 200px;
  }

  .ka-title {
    font-size: 16px;
  }

  .ka-ex {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .ka-toprow {
    gap: 8px;
  }

  .ka-date {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ka-list {
    padding: 20px 0;
  }

  .ka-hero {
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .ka-hero h1 {
    font-size: 20px;
  }

  .ka-list-grid {
    gap: 16px;
  }

  .ka-list-grid .ka-card {
    padding: 12px;
  }

  .ka-page {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* 空の状態 */
.ka-list-grid > li > div[style*="text-align:center"] {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(13, 31, 26, 0.95) 100%
  );
  border: 2px dashed rgba(34, 197, 94, 0.3);
  color: #9ca3af;
  padding: 40px 20px;
  border-radius: 16px;
}

/* ============================================
   ka-list 記事一覧ページ - 横幅調整
   ============================================ */

/* 全体コンテナの横幅を適切に */
.ka-list {
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.ka-wrap {
  max-width: 100%;
}

/* リストグリッド - 縦並び */
.ka-list-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}

/* カード本体 - サイバーダークデザイン */
.ka-list .ka-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(13, 31, 26, 0.95) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ka-list .ka-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.6) 50%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ka-list .ka-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 197, 94, 0.2);
}

.ka-list .ka-card:hover::before {
  opacity: 1;
}

/* サムネイル */
.ka-list .ka-thumb {
  display: block;
  width: 280px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d1f1a 100%);
  flex-shrink: 0;
}

.ka-list .ka-thumb .ka-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ka-list .ka-card:hover .ka-thumb .ka-img {
  transform: scale(1.05);
}

.ka-list .ka-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
}

/* メインコンテンツエリア */
.ka-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* トップ行（ピル・星・日付） */
.ka-toprow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* カテゴリピル */
.ka-list .ka-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* 星評価 */
.ka-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ka-star {
  color: #374151;
  font-size: 16px;
  transition: color 0.2s ease;
}

.ka-star.ka-on {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.ka-rating {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 900;
  color: #22c55e;
}

/* 日付 */
.ka-list .ka-date {
  margin-left: auto;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

/* タイトル */
.ka-list .ka-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.ka-list .ka-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ka-list .ka-title a:hover {
  color: #22c55e;
}

/* 抜粋 */
.ka-list .ka-ex {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
}

/* ページネーション */
.ka-more {
  margin-top: 40px;
  padding: 24px 0;
}

.ka-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ka-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ka-page:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  transform: translateY(-2px);
}

.ka-page.-current {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  cursor: default;
  pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .ka-list {
    max-width: 900px;
  }

  .ka-list .ka-card {
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .ka-list .ka-thumb {
    width: 240px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .ka-list {
    padding: 0 12px;
  }

  .ka-list .ka-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ka-list .ka-thumb {
    width: 100%;
    height: 200px;
  }

  .ka-list .ka-title {
    font-size: 18px;
  }

  .ka-toprow {
    gap: 8px;
  }

  .ka-list .ka-date {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ka-list .ka-thumb {
    height: 180px;
  }

  .ka-list .ka-title {
    font-size: 16px;
  }

  .ka-list .ka-ex {
    font-size: 13px;
    height: 100px;
  }
}

/* 記事なしメッセージ */
.ka-list-grid > li > div[style*="text-align:center"] {
  padding: 32px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  color: #9ca3af;
  font-weight: 700;
  text-align: center;
}

/* ka-heroヘッダー部分 */
.ka-hero {
  background: #2f964b;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 0 0 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ka-hero .kb-h2 {
  margin: 0;
  font-weight: 900;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.ka-hero .kb-h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fff000;
  padding-top: 10px;
  padding-bottom: 10px;
  letter-spacing: 3px;
}

.ka-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 70%
  );
  animation: pulse-glow 3s ease-in-out infinite;
}

.ka-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  position: relative;
  z-index: 1;
}
