/* ═══════════════════════════════════════════════════
   ガチャラボ v2 カスタムCSS
   ═══════════════════════════════════════════════════ */

/* ── ベース（PlayStation公式に近いリッチなゴシック） ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  /* ロゴ背景 #0a101c に合わせたベース色 */
  background-color: #0a101c;
  color: #e8eaf6;
  /* Inter: 欧文・数字 / Noto Sans JP: 日本語（SSTに近いモダンゴシック） */
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic UI", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0; padding: 0;
}

/* 見出し・強調は少しタイトに */
h1, h2, h3, h4, h5, h6,
.gl-section-title,
.gl-card-title,
.gl-prob-value,
.kitaiti,
.gl-stat-value,
.top10-rate,
.top10-name {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic UI", "Yu Gothic", sans-serif;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
}

/* 確率・数値は等幅に近い表示で読みやすく */
.kitaiti,
.gl-prob-value,
.try_con,
.hosi5_con,
.today_con,
.today_hosi5,
.top10-rate,
.gl-stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "palt" 1;
}

/* ── アニメーション ─────────────────────── */
@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.85); }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes luckGlow {
  0%,100% { opacity:1; }
  50%      { opacity:0.7; }
}

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

/* ── ヘッダー（ロゴ背景 #0a101c に合わせて馴染ませる） ── */
#gl-header {
  position: sticky; top: 0; z-index: 100;
  background: #0a101c;
  border-bottom: 1px solid rgba(80, 120, 180, 0.18);
}
.gl-header-inner {
  max-width: 900px; margin: 0 auto;
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gl-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.gl-logo img {
  height: 58px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .gl-logo img { height: 72px; }
}
.gl-search-form {
  flex: 1; max-width: 300px;
  display: flex; gap: 6px;
}
.gl-search-input {
  flex: 1; padding: 8px 14px;
  border-radius: 24px;
  background: rgba(12, 20, 40, 0.9);
  border: 1px solid rgba(80, 120, 180, 0.28);
  color: #e8eaf6;
  font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.gl-search-input::placeholder { color: #7070a0; }
.gl-search-input:focus { border-color: #ff7c00; }
.gl-search-btn {
  padding: 8px 16px; background: #ff7c00;
  color: #fff; border: none; border-radius: 24px;
  font-weight: bold; cursor: pointer; font-size: 13px;
  transition: background 0.2s;
}
.gl-search-btn:hover { background: #e06a00; }

/* ── TODAY STATS BAR ───────────────────── */
#all_info {
  background: #0a101c;
  border-bottom: 1px solid rgba(80, 120, 180, 0.15);
  padding: 7px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #b0b0d0;
  font-weight: bold;
}
#all_info .today_con  { color: #60c8ff; font-weight: bold; }
#all_info .today_hosi5{ color: #ffd700; font-weight: bold; }

/* ── 時間軸タブ / 属性タブ ───────────────── */
#gl-time-tabs,
.gl-tabs-bar {
  background: #0a101c;
  border-bottom: 1px solid rgba(80, 120, 180, 0.15);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#gl-time-tabs::-webkit-scrollbar,
.gl-tabs-bar::-webkit-scrollbar { display: none; }
.gl-time-nav { max-width: 900px; margin: 0 auto; }
.gl-time-nav ul {
  display: flex; list-style: none;
  margin: 0; padding: 0; min-width: max-content;
}
/* PC: 時間タブを中央寄せ */
@media (min-width: 768px) {
  #gl-time-tabs,
  .gl-tabs-bar {
    overflow-x: visible;
  }
  .gl-time-nav ul {
    justify-content: center;
    min-width: 0;
    width: 100%;
  }
}
.gl-time-nav li a {
  display: block; padding: 12px 22px;
  font-weight: bold; text-decoration: none;
  font-size: 14px;
  color: #a0a0c8;           /* ★ 明るく */
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.gl-time-nav li a:hover { color: #d0d0f0; border-bottom-color: #4a4a80; }
.gl-time-nav li.select a { color: #ff7c00; border-bottom-color: #ff7c00; }

/* ── ヒーローセクション ─────────────────── */
#gl-hero {
  background: linear-gradient(180deg, #0e1528 0%, #0a101c 100%);
  padding: 18px 14px 0;
}
.gl-hero-inner { max-width: 500px; margin: 0 auto; animation: fadeInUp 0.5s ease; padding-bottom: 14px; }

/* メイン〜ウマ娘バナーまで背景を連続（段差をなくす） */
#gl-hero + .gl-ad-unit {
  background: #0a101c;
  border-bottom: none;
  min-height: 0;
  padding: 8px 0;
}
#gl-hero + .gl-ad-unit + .gl-umakoi-section {
  background: #0a101c;
  border-top: 1px solid rgba(80, 120, 180, 0.18);
  padding-top: 12px;
}

/* スマホ: メインカードを横スワイプで時間帯切り替え */
@media (max-width: 767px) {
  #gl-hero .gl-prob-card {
    overscroll-behavior-x: contain;
    user-select: none;
    -webkit-user-select: none;
  }
}

/* カード共通：背景より一段明るく、縁取り＋影で浮かせる（文字色は明るめ維持） */
.gl-prob-card {
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* カードヘッダー */
.gl-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}

/* 確率・統計（ヘッダーと luck 画像の間） */
.gl-prob-summary {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gl-prob-summary .gl-prob-row {
  margin-bottom: 8px;
}
.gl-prob-summary .gl-stats-grid {
  margin-bottom: 0;
}
.gl-card-title {
  font-size: 0.95rem; font-weight: bold;
  color: #e0e2ff;           /* ★ 明るく */
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.period-badge {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 2px 10px;
  font-size: 0.75rem; color: #d4d6f5;
  font-weight: normal;
}
.gl-last-update-inline {
  font-size: 0.72rem; color: #a8a8d0; font-weight: normal;
}
.gl-card-actions {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.live-label { font-size: 0.78rem; color: #ef4444; font-weight: bold; }
.gl-reload-btn {
  padding: 5px 13px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px; color: #e0e2ff;
  font-size: 0.78rem; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .gl-reload-btn:hover { border-color: #ff7c00; color: #ff7c00; background: rgba(255,124,0,0.1); }
}
.gl-reload-btn:focus { outline: none; }
.gl-reload-btn:focus-visible {
  outline: 2px solid #ff7c00;
  outline-offset: 2px;
}
.gl-reload-btn.is-loading,
.gl-reload-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  border-color: #ff7c00;
  color: #ff7c00;
}
.gl-last-update-inline.just-updated {
  color: #ff7c00;
  font-weight: bold;
  transition: color 0.2s;
}

/* ══ MAIN: luck画像ヒーロー（全体表示・円トリミングなし） ══ */
.gl-luck-hero {
  text-align: center;
  position: relative;
  margin-bottom: 12px;
}
.gl-luck-img-wrap {
  display: inline-block;
  max-width: 100%;
  border-radius: 12px;
  border: 3px solid #22c55e;
  box-shadow: 0 0 24px rgba(34,197,94,0.5), 0 0 48px rgba(34,197,94,0.2);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  animation: luckGlow 3s ease-in-out infinite;
  line-height: 0;
  overflow: hidden;
}
.luck_img {
  display: block;
  width: 100%;
  max-width: 285px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}
.luck-status-badge {
  display: block;
  width: fit-content;
  margin: 10px auto 0; /* PC/スマホとも luck画像の下・中央 */
  background: #22c55e;
  color: #fff;
  padding: 5px 20px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.5s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* 確率バー（補助情報・画像下） */
.gl-prob-secondary {
  margin-bottom: 10px;
}
.gl-prob-bar-area {
  margin-bottom: 8px;
}
.gl-prob-bar-bg {
  height: 12px; background: #1e1e40; border-radius: 6px; overflow: hidden;
}
.gl-prob-bar-fill {
  height: 100%; background: #22c55e; border-radius: 6px;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1), background 0.5s;
  width: 0%;
}
.gl-prob-row {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.gl-prob-label {
  font-size: 0.85rem; color: #c0c0e8; /* ★ 明るく */
  font-weight: bold;
}
.gl-prob-value {
  font-size: 1.6rem; font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* 統計ミニカード */
.gl-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 10px;
}
.gl-stat-card {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 10px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.gl-stat-label {
  font-size: 0.72rem; color: #b8b8d8;
  margin-bottom: 3px;
}
.gl-stat-value { font-size: 1.1rem; font-weight: bold; color: #f0f2ff; }
.gl-stat-value.try_con  { color: #6ed0ff; }
.gl-stat-value.hosi5_con{ color: #ffe066; }
.gl-stat-unit  { font-size: 0.7rem; color: #a8a8c8; }

/* Highcharts */
#chart_10, #chart_15, #chart_60, #chart_24 {
  width: 100%; height: 180px; margin-top: 10px;
}
@media (min-width: 768px) {
  #chart_10, #chart_15, #chart_60, #chart_24 { height: 220px; }
}

/* ── 広告ユニット ─────────────────────── */
.gl-ad-unit {
  background: #0a101c;
  border-bottom: 1px solid rgba(80, 120, 180, 0.15);
  padding: 4px 0; text-align: center; min-height: 50px;
}

/* ── セクション共通 ────────────────────── */
.gl-section { padding: 18px 16px; border-bottom: 1px solid #1e1e38; }
.gl-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: bold;
  color: #e8eaf6;           /* ★ 明るく */
  margin-bottom: 14px;
}
.gl-section-title-bar {
  display: block; width: 4px; height: 20px;
  border-radius: 2px; flex-shrink: 0;
}

/* ── ウマ娘バナー ──────────────────────── */
.gl-umakoi-section {
  padding: 12px 16px;
  background: #0a101c;
  border-bottom: 1px solid rgba(80, 120, 180, 0.15);
  text-align: center;
}
.gl-umakoi-section p {
  font-size: 0.75rem; color: #9090b8; margin-bottom: 8px;
}
.gl-umakoi-link {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a48;
  max-width: 600px;
  width: 100%;
  transition: border-color 0.2s;
}
.gl-umakoi-link:hover { border-color: #ff7c00; }
.gl-umakoi-link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── モンスタースライダー ── */
.gl-monster-section { background: #0a101c; overflow-x: hidden; }

.gl-monster-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 4px 0 8px;
}

.gl-monster-viewport {
  overflow: hidden; /* ページ横スクロール防止 */
  min-width: 0;
}

.gl-monster-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.gl-monster-slide a {
  display: block;
  text-decoration: none;
}

.gl-monster-slide p {
  font-size: 0.75rem;
  font-weight: bold;
  color: #c0c0e0;
  text-align: center;
  margin: 0 0 6px;
}

.gl-monster-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gl-monster-slide a:hover img { border-color: #ff7c00; }

.gl-monster-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ff7c00;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.15s;
  padding: 0;
  font-family: inherit;
}
.gl-monster-arrow:hover {
  background: #e06a00;
  transform: scale(1.08);
}

/* ── スマホ: 2枚表示・スワイプ（矢印なし） ── */
@media (max-width: 767px) {
  .gl-monster-slider {
    max-width: 100%;
    width: 100%;
    gap: 0;
    padding: 0;
  }
  .gl-monster-viewport {
    width: 100%;
    max-width: none;
    /* pan-x は縦スクロールを常時止めてしまうため使わない。
       横スワイプ時のみ JS で preventDefault する */
  }
  .gl-monster-slide {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 0 6px;
  }
  .gl-monster-slide p {
    font-size: 0.72rem;
  }
  .gl-monster-arrow {
    display: none;
  }
}

/* ── PC: 3枚表示 + 左右矢印 ── */
@media (min-width: 768px) {
  .gl-monster-slider {
    max-width: 780px;
    gap: 12px;
    padding: 8px 0 12px;
  }
  .gl-monster-viewport {
    flex: 1;
    max-width: 660px;
  }
  .gl-monster-slide {
    flex: 0 0 220px;
    width: 220px;
    box-sizing: border-box;
    padding: 0 6px;
  }
  .gl-monster-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* アクション行 */
.gl-monster-actions { display: flex; gap: 8px; margin-top: 12px; }
.gl-action-btn {
  flex: 1; display: block; padding: 11px; text-align: center;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; color: #e0e2ff;
  text-decoration: none; font-size: 0.82rem; font-weight: bold;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}
.gl-action-btn:hover { border-color: #ff7c00; color: #ff9a40; background: rgba(255,124,0,0.1); }

/* ── TOP10 ランキング ─────────────────────── */
.gl-ranking-section { background: #0a101c; }

#haishutu_top10 {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}

.top10-item a {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.top10-item a:hover {
  border-color: #ff7c00; transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(255,124,0,0.15);
}
.rank-num {
  flex-shrink: 0;
  min-width: 40px;
  font-size: 0.72rem; font-weight: bold;
  color: #e0e2ff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 8px; border-radius: 10px;
  text-align: center;
}
.top10-item .trimming {
  flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #2a2a48;
  position: relative;
}
.top10-item .trimming img {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 108px; height: auto;
}
.top10-name {
  flex: 1; min-width: 0;
  font-size: 0.88rem; font-weight: bold;
  color: #e8eaf6;
  text-align: left; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top10-rate {
  flex-shrink: 0;
  min-width: 58px;
  font-size: 0.88rem; font-weight: bold; color: #ff7070;
  text-align: right;
}

/* ── サイト概要 ────────────────────────── */
.gl-about-section { background: #0a101c; }
.gl-about-box {
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border-radius: 14px; padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #ff7c00;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.gl-about-box p {
  font-size: 0.88rem; line-height: 1.9;
  color: #d0d2ee;
}

/* ── 特集記事 ──────────────────────────── */
.gl-articles-section { background: #0a101c; }
.gl-article-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gl-article-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; color: #e8eaf6;
  text-decoration: none; font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}
.gl-article-list li a:hover { border-color: #ff7c00; color: #ff9a40; background: rgba(255,124,0,0.08); }
.gl-article-arrow { color: #ff7c00; flex-shrink: 0; font-size: 0.8rem; }

/* ── SNS シェア ─────────────────────────── */
.gl-sns-section { background: #0a101c; }
.gl-sns-lead {
  font-size: 0.88rem; color: #a0a0c8; /* ★ 明るく */
  text-align: center; margin-bottom: 14px;
}
.gl-sns-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.gl-sns-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 24px;
  font-weight: bold; font-size: 0.82rem; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s; white-space: nowrap;
}
.gl-sns-btn:hover { opacity: 0.85; transform: scale(1.03); }
.gl-sns-btn-x      { background: #111; color: #fff; border: 1px solid #666; }
.gl-sns-btn-follow { background: #1d9bf0; color: #fff; }
.gl-sns-btn-line   { background: #06c755; color: #fff; }
.gl-sns-btn-insta  { background: linear-gradient(135deg,#405de6,#833ab4,#e1306c,#fd1d1d); color: #fff; }

/* ── RSS / リンク ─────────────────────────── */
.gl-rss-section { background: #0a101c; }
.gl-rss-heading {
  font-size: 0.9rem; font-weight: bold;
  color: #e0e2ff;           /* ★ 明るく */
  background: #14142e; padding: 9px 14px;
  border-radius: 8px; margin-bottom: 10px;
}
.gl-rss-list { list-style: none; margin: 0; padding: 0; }
.gl-rss-list li { border-bottom: 1px solid #1e1e38; padding: 8px 2px; }
.gl-rss-list li:last-child { border-bottom: none; }
.gl-rss-list li a { font-size: 0.85rem; color: #ff8080; text-decoration: none; }
.gl-rss-list li a:hover { color: #ffaaaa; }
.gl-links-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gl-links-list li a {
  display: block; padding: 6px 12px;
  background: #14142e; border: 1px solid #2a2a48;
  border-radius: 20px; font-size: 0.8rem;
  color: #a0a0cc;           /* ★ 明るく */
  text-decoration: none; transition: all 0.2s;
}
.gl-links-list li a:hover { border-color: #ff7c00; color: #ff7c00; }
.gl-mutual-link { margin-top: 14px; text-align: center; }
.gl-mutual-link a {
  display: inline-block; padding: 8px 20px;
  background: #14142e; border: 1px solid #2a2a50;
  border-radius: 8px; color: #a0a0cc; /* ★ 明るく */
  text-decoration: none; font-size: 0.8rem; transition: all 0.2s;
}
.gl-mutual-link a:hover { border-color: #ff7c00; color: #ff7c00; }

/* ── PAGE TOP ────────────────────────────── */
.gl-pagetop { text-align: right; padding: 12px 16px; background: #0a101c; }
.gl-pagetop a {
  display: inline-block; padding: 7px 16px;
  background: #14142e; border: 1px solid #2a2a50;
  border-radius: 14px; color: #9090c0; /* ★ 明るく */
  text-decoration: none; font-size: 0.8rem; transition: all 0.2s;
}
.gl-pagetop a:hover { border-color: #ff7c00; color: #ff7c00; }

/* ── フッター ─────────────────────────────── */
#gl-footer {
  background: #050810;
  border-top: 1px solid rgba(80, 120, 180, 0.15);
  padding: 22px 16px 28px;
}
.gl-footer-inner { max-width: 900px; margin: 0 auto; }
.gl-footer-nav {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 5px;
  justify-content: center;
}
.gl-footer-nav li a {
  display: block; padding: 7px 13px;
  border: 1px solid #2a2a40; border-radius: 6px;
  color: #9090c0;            /* ★ 明るく */
  text-decoration: none; font-size: 0.8rem; transition: all 0.2s;
}
.gl-footer-nav li a:hover { color: #ff7c00; border-color: #ff7c00; }
.gl-footer-copy { text-align: center; color: #404060; font-size: 0.72rem; }

/* ── サブページ共通 ───────────────────────── */
.gl-breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 16px 0;
  font-size: 0.78rem;
  color: #606090;
}
.gl-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.gl-breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: #404060;
}
.gl-breadcrumb a {
  color: #9090c0;
  text-decoration: none;
}
.gl-breadcrumb a:hover { color: #ff7c00; }

/* ── お問い合わせ ─────────────────────────── */
.gl-contact-page { padding-bottom: 8px; }
.gl-contact-section { max-width: 900px; margin: 0 auto; }
.gl-contact-lead {
  margin: 0 0 18px;
  color: #9090c0;
  font-size: 0.88rem;
  line-height: 1.7;
}
.gl-contact-form {
  padding: 22px 20px;
  border: 1px solid #2a2a50;
  border-radius: 12px;
  background: #0f1524;
}
.gl-form-field { margin-bottom: 18px; }
.gl-form-field:last-of-type { margin-bottom: 22px; }
.gl-form-label {
  display: block;
  margin-bottom: 8px;
  color: #e8eaf6;
  font-size: 0.9rem;
  font-weight: 600;
}
.gl-form-req {
  margin-left: 6px;
  color: #ff7c00;
  font-size: 0.72rem;
  font-weight: 500;
}
.gl-form-input,
.gl-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(12, 20, 40, 0.95);
  border: 1px solid rgba(80, 120, 180, 0.28);
  color: #e8eaf6;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gl-form-input::placeholder,
.gl-form-textarea::placeholder { color: #7070a0; }
.gl-form-input:focus,
.gl-form-textarea:focus {
  border-color: #ff7c00;
  box-shadow: 0 0 0 2px rgba(255, 124, 0, 0.15);
}
.gl-form-textarea { resize: vertical; min-height: 140px; }
.gl-form-hint {
  margin: 6px 0 0;
  color: #606090;
  font-size: 0.75rem;
}
.gl-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gl-form-submit {
  padding: 11px 28px;
  background: #ff7c00;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.gl-form-submit:hover { background: #e06a00; }
.gl-form-reset {
  padding: 11px 20px;
  background: transparent;
  color: #9090c0;
  border: 1px solid #2a2a50;
  border-radius: 24px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.gl-form-reset:hover { border-color: #ff7c00; color: #ff7c00; }
.gl-contact-done {
  padding: 28px 20px;
  border: 1px solid rgba(255, 124, 0, 0.35);
  border-radius: 12px;
  background: rgba(255, 124, 0, 0.08);
  text-align: center;
}
.gl-contact-done p {
  margin: 0;
  color: #e8eaf6;
  font-size: 0.95rem;
  font-weight: 600;
}
.gl-contact-done-note {
  margin-top: 8px !important;
  color: #9090c0 !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
}
.gl-contact-hidden-frame {
  display: none;
  width: 0;
  height: 0;
  border: 0;
}
.gl-contact-alt {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #606090;
}
.gl-contact-alt a { color: #ff7c00; }
.gl-contact-setup {
  padding: 28px 20px;
  border: 1px dashed #2a2a50;
  border-radius: 12px;
  background: #0f1524;
  text-align: center;
  color: #9090c0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── キャラ個別ページ ─────────────────────── */
#gl-main { min-height: 0; }
.gl-breadcrumb-sep { margin: 0 6px; color: #505070; }

.gl-monster-detail-section,
.gl-search-section,
.gl-bbs-section { background: #0a101c; }
.gl-monster-detail-section { padding-top: 8px; }
.gl-bbs-section { padding-top: 14px; }
.gl-monster-detail-wrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gl-ad-unit-monster {
  min-height: 0;
  margin: 0;
  border: none;
  padding: 0;
  text-align: center;
}

.gl-monster-chart-card {
  margin-bottom: 0;
  padding: 10px 10px 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
#chart_div {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .gl-monster-chart-card { padding-bottom: 12px; }
  #chart_div { height: 228px; }
  .gl-monster-links { margin-top: 2px; }
}
@media (min-width: 768px) {
  #chart_div { height: 240px; }
}
.gl-monster-links {
  margin: 0;
  position: relative;
  z-index: 2;
}
.gl-monster-detail-hero { text-align: center; margin-bottom: 14px; }
.gl-monster-detail-img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 360px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.gl-monster-detail-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #a8a8c8;
  text-align: center;
}
.gl-monster-detail-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0f2ff;
  text-align: center;
  line-height: 1.35;
}
.gl-monster-gacha-type {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #c0c0e8;
}
.gl-monster-gacha-type strong { color: #ffe066; }
.gl-badge-live {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  animation: gl-badge-blink 1.2s ease-in-out infinite;
}
@keyframes gl-badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.gl-monster-stats { margin-bottom: 0; }
.gl-stat-card-wide { grid-column: 1 / -1; }

.gl-monster-detail-card { margin-bottom: 0; }

.gl-bbs-note {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #a8a8c8;
}
.gl-bbs-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 16px;
}
.gl-bbs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gl-bbs-form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  color: #e8eaf6;
  list-style: none;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
.gl-bbs-form-toggle:hover {
  border-color: #ff7c00;
  color: #ff9a40;
}
.gl-bbs-pen-icon { flex-shrink: 0; }
.gl-bbs-form-toggle::-webkit-details-marker { display: none; }
.gl-bbs-form {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-sizing: border-box;
}
.gl-bbs-field { display: block; margin-bottom: 10px; }
.gl-bbs-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: #b8b8d8;
}
.gl-bbs-field input,
.gl-bbs-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #f0f2ff;
  font-family: inherit;
  font-size: 0.9rem;
}
.gl-bbs-field textarea { resize: vertical; min-height: 96px; }
.gl-bbs-submit { text-align: center; margin-top: 6px; }

.gl-bbs-list { display: flex; flex-direction: column; gap: 10px; }
.gl-bbs-item {
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
}
.gl-bbs-item-head {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.gl-bbs-no { color: #9090b8; }
.gl-bbs-name { color: #6ed0ff; font-weight: bold; }
.gl-bbs-time { color: #9090b8; margin-left: auto; }
.gl-bbs-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #e0e2ff;
  word-break: break-word;
}
.gl-bbs-img {
  display: block;
  max-width: 100%;
  margin-bottom: 8px;
  border-radius: 8px;
}

.gl-pagination {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-top: 16px;
}
.gl-page-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #2a2a40;
  border-radius: 6px;
  color: #c0c0e8;
  text-decoration: none;
  font-size: 0.82rem;
}
.gl-page-link:hover,
.gl-page-link.is-active {
  border-color: #ff7c00;
  color: #ff7c00;
}

.gl-attribute-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-bottom: 16px;
}
.gl-attribute-nav a {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: #e0e2ff;
  text-decoration: none;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
}
.gl-attribute-nav a:hover { border-color: #ff7c00; color: #ff7c00; }
.gl-attribute-group { margin-bottom: 18px; }
.gl-attribute-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #e8eaf6;
}
.gl-attribute-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.gl-attribute-list li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eaf6;
  text-decoration: none;
  font-size: 0.88rem;
}
.gl-attribute-list li a:hover { border-color: #ff7c00; color: #ff9a40; }

/* ── ★5モンスター一覧 ───────────────────── */
.gl-monster-list-section { background: #0a101c; padding-top: 14px; }
.gl-attr-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.gl-attr-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #e8eaf6;
  line-height: 1.4;
}
.gl-attr-count {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #a8a8c8;
}
.gl-monster-time-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) {
  .gl-monster-time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gl-monster-time-item a {
  display: block;
  background: linear-gradient(165deg, #22224a 0%, #181836 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.gl-monster-time-item img {
  display: block;
  width: 100%;
  height: auto;
}
.gl-monster-time-date {
  display: block;
  padding: 6px 8px;
  font-size: 0.72rem;
  color: #c0c0e8;
  text-align: center;
}

/* ── iOS モーダル ────────────────────────── */
.jqmWindow { border-radius: 16px; background: #12122a; border: 1px solid #2a2a50; }
.jqmWindow h3 span { background: #ff7c00; color: #fff; }
