/* ========================================
   AIデータ二刀流ブログ - 共通スタイル
   ======================================== */

:root {
  --color-primary: #1a2744;
  --color-primary-light: #243660;
  --color-accent-sports: #c0392b;
  --color-accent-sports-light: #e74c3c;
  --color-accent-gold: #e8a020;
  --color-accent-economy: #1a6fa8;
  --color-accent-economy-light: #2980b9;
  --color-accent-green: #27ae60;
  --color-bg: #f4f5f7;
  --color-bg-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-border: #e0e0e0;
  --font-main: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius: 6px;
  --radius-large: 12px;
  --max-width: 1080px;
  --transition: 0.22s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative; /* iOS Safari: overflow-x:hidden が効くための必須指定 */
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover { opacity: 0.8; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* ========================================
   HEADER
   ======================================== */

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

/* ロゴ画像 */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ゲートカードのロゴ */
.gate-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* 経済ページヒーローのロゴ */
.page-hero-logo {
  margin-bottom: 12px;
}
.page-hero-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

.site-logo .logo-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-logo .logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO / PAGE HERO
   ======================================== */

.site-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f6e 60%, #1a4060 100%);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.site-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26,111,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── トップページ ヒーローのロゴ2枚 ── */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.hero-logo-main {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  animation: hero-float 4s ease-in-out infinite;
}
.hero-logo-econ {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  animation: hero-float 4s ease-in-out infinite 2s;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@media (max-width: 480px) {
  .hero-logo-main { width: 68px; height: 68px; }
  .hero-logo-econ { width: 56px; height: 56px; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  border: 1px solid rgba(232,160,32,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent-gold);
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

/* ========================================
   PAGE HERO (subpages)
   ======================================== */

.page-hero {
  padding: 44px 20px 36px;
  text-align: center;
  color: #fff;
}

.page-hero-sports {
  background: linear-gradient(135deg, #7b1a1a 0%, #a82020 50%, #c0392b 100%);
}

.page-hero-economy {
  background: linear-gradient(135deg, #0d3a5c 0%, #1a5a8a 50%, #1a6fa8 100%);
}

.page-hero-default {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.page-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 40px 0 60px;
}

/* ========================================
   SECTION
   ======================================== */

.section {
  margin-bottom: 52px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.section-header.sports { border-bottom-color: var(--color-accent-sports); }
.section-header.economy { border-bottom-color: var(--color-accent-economy); }
.section-header.gold { border-bottom-color: var(--color-accent-gold); }

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.section-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  color: #fff;
}

.badge-sports { background: var(--color-accent-sports); }
.badge-economy { background: var(--color-accent-economy); }
.badge-gold { background: var(--color-accent-gold); color: #333; }
.badge-new { background: #e74c3c; }

/* ========================================
   ENTRY CARDS (2-column gate)
   ======================================== */

.entry-gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.gate-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.gate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.gate-card-header {
  padding: 28px 28px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gate-card-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.gate-sports .gate-card-header {
  background: linear-gradient(135deg, #8b1a1a 0%, #c0392b 100%);
}

.gate-economy .gate-card-header {
  background: linear-gradient(135deg, #0d3a5c 0%, #1a6fa8 100%);
}

.gate-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.gate-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.gate-card-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.gate-card-body {
  padding: 22px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gate-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}

.gate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.tag-sports { border-color: rgba(192,57,43,0.3); color: var(--color-accent-sports); background: rgba(192,57,43,0.04); }
.tag-economy { border-color: rgba(26,111,168,0.3); color: var(--color-accent-economy); background: rgba(26,111,168,0.04); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  text-align: center;
}

.btn:hover { opacity: 1; transform: translateY(-1px); }

.btn-sports {
  background: var(--color-accent-sports);
  color: #fff;
}
.btn-sports:hover { background: var(--color-accent-sports-light); }

.btn-economy {
  background: var(--color-accent-economy);
  color: #fff;
}
.btn-economy:hover { background: var(--color-accent-economy-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-full { width: 100%; }

.btn-arrow::after {
  content: '→';
  font-size: 1rem;
}

/* ========================================
   ARTICLE CARDS
   ======================================== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.article-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #bbb;
  overflow: hidden;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-thumb.sports-thumb {
  background: linear-gradient(135deg, rgba(192,57,43,0.08), rgba(192,57,43,0.15));
  color: var(--color-accent-sports);
}

.article-card-thumb.economy-thumb {
  background: linear-gradient(135deg, rgba(26,111,168,0.08), rgba(26,111,168,0.15));
  color: var(--color-accent-economy);
}

.article-card-body {
  padding: 16px 18px 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.article-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}

.cat-sports { background: var(--color-accent-sports); }
.cat-economy { background: var(--color-accent-economy); }
.cat-horse { background: #7b5ea7; }
.cat-stocks { background: var(--color-accent-green); }

.article-date {
  font-size: 0.7rem;
  color: var(--color-text-lighter);
}

.article-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 8px;
}

.article-excerpt {
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   CHANNEL LINKS
   ======================================== */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--color-text);
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  opacity: 1;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.channel-icon-yt { background: rgba(255,0,0,0.08); color: #ff0000; }
.channel-icon-x { background: rgba(0,0,0,0.06); color: #000; }

.channel-info {}
.channel-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.channel-desc {
  font-size: 0.72rem;
  color: var(--color-text-lighter);
}

/* ========================================
   NOTICE / AFFILIATE BOX
   ======================================== */

.notice-box {
  background: rgba(232,160,32,0.06);
  border: 1px solid rgba(232,160,32,0.25);
  border-left: 4px solid var(--color-accent-gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.83rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.notice-box strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

/* Affiliate placeholder - easy to fill later */
.affiliate-area {
  background: var(--color-bg-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--color-text-lighter);
  font-size: 0.82rem;
  margin: 28px 0;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-lighter);
}

.breadcrumb-inner a {
  color: var(--color-accent-economy);
}

.breadcrumb-sep { color: var(--color-border); }

/* ========================================
   FEATURE LIST (for subpages)
   ======================================== */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.feature-text h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   ARTICLE LIST (for subpages)
   ======================================== */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-list-item {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-list-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-card-hover);
}

.article-list-thumb {
  width: 120px;
  height: 68px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-bg);
  overflow: hidden;
}
.article-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.article-list-body { flex: 1; }

.article-list-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--color-text);
}

.article-list-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========================================
   FORM
   ======================================== */

.form-wrap {
  background: var(--color-bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-accent-sports);
  font-size: 0.72rem;
  margin-left: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent-economy);
  box-shadow: 0 0 0 3px rgba(26,111,168,0.1);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.form-note {
  font-size: 0.76rem;
  color: var(--color-text-lighter);
  margin-top: 6px;
  line-height: 1.6;
}

.btn-submit {
  background: var(--color-primary);
  color: #fff;
  padding: 13px 40px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

/* ========================================
   PROFILE
   ======================================== */

.profile-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 32px;
}

.profile-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 36px 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  color: #fff;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
}

.profile-header-info {}
.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.profile-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.profile-body {
  padding: 32px 40px;
}

.profile-section {
  margin-bottom: 28px;
}

.profile-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent-gold);
  padding-left: 10px;
  margin-bottom: 12px;
}

.profile-section p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.85;
}

.policy-section {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.policy-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.policy-section p,
.policy-section li {
  font-size: 0.87rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

.policy-section ul {
  list-style: disc;
  padding-left: 20px;
}

.policy-section li { margin-bottom: 6px; }

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  margin-top: 60px;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition);
}
.social-btn:hover { opacity: 0.85; }
.social-yt { background: #ff0000; }
.social-x { background: #333; }

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   DARK MODE — システムダークモード対応
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0d1a2d;
    --color-bg-white: #0a1628;
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-text-lighter: #64748b;
    --color-border: #1e3a5f;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 6px 24px rgba(0,0,0,0.4);
  }

  body {
    background: var(--color-bg);
    color: var(--color-text);
  }

  /* Cards & boxes */
  .gate-card,
  .article-card,
  .channel-card,
  .feature-item,
  .article-list-item,
  .form-wrap,
  .profile-card,
  .policy-section {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-card);
  }

  /* Article list items */
  .article-list-item {
    border: 1px solid var(--color-border);
  }
  .article-list-title { color: var(--color-text); }
  .section-title { color: #93c5fd; }

  /* Breadcrumb (light pages use <div class="breadcrumb">) */
  div.breadcrumb {
    background: var(--color-bg-white);
    border-bottom-color: var(--color-border);
  }
  .breadcrumb-inner { color: var(--color-text-lighter); }
  .breadcrumb-inner a { color: #60a5fa; }

  /* Form inputs */
  .form-input,
  .form-textarea,
  .form-select {
    background: #0d1a2d;
    border-color: var(--color-border);
    color: var(--color-text);
  }

  /* Notice box */
  .notice-box {
    background: rgba(232,160,32,.04);
    border-color: rgba(232,160,32,.2);
    color: var(--color-text-light);
  }
  .notice-box strong { color: var(--color-text); }

  /* Affiliate area */
  .affiliate-area {
    background: var(--color-bg-white);
    border-color: var(--color-border);
    color: var(--color-text-lighter);
  }

  /* Tags */
  .tag {
    border-color: var(--color-border);
    color: var(--color-text-light);
  }

  /* Section headers */
  .section-header { border-bottom-color: var(--color-border); }

  /* Profile */
  .profile-section h3 { color: #93c5fd; }
  .profile-section p { color: var(--color-text-light); }
  .policy-section h2 { color: #93c5fd; border-bottom-color: var(--color-border); }
  .policy-section p,
  .policy-section li { color: var(--color-text-light); }

  /* Form */
  .form-label { color: var(--color-text); }

  /* ─ チャンネルアイコン（X は黒→白） ─ */
  .channel-icon-x { background: rgba(255,255,255,.1); color: #e2e8f0; }

  /* ─ 記事カードサムネイル背景 ─ */
  .article-card-thumb        { background: #0d1a2d; }
  .article-card-thumb.sports-thumb  { background: rgba(192,57,43,.15); }
  .article-card-thumb.economy-thumb { background: rgba(26,111,168,.15); }
  .article-card-thumb img    { opacity: .95; }

  /* ─ 記事カード本文テキスト ─ */
  .article-title   { color: var(--color-text); }
  .article-excerpt { color: var(--color-text-light); }
  .article-date    { color: var(--color-text-lighter); }

  /* ─ page-hero は元々グラデーションなので基本OK。
       ただしフォントカラーを明示 ─ */
  .page-hero h1, .page-hero p { color: #fff; }
  .page-hero-tag { opacity: .85; }

  /* ─ ブログ一覧: カテゴリフィルターバー ─ */
  .cat-filter-bar {
    background: #0a1628;
    border-bottom-color: #1e3a5f;
  }
  .cat-btn { color: #94a3b8; }
  .cat-btn:hover  { color: #f87171; }
  .cat-btn.active { color: #f87171; border-bottom-color: #f87171; }

  /* ─ ブログ一覧: 記事カード ─ */
  .post-card {
    background: #0d1a2d;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
  }
  .post-thumb { background: #0a1628; }
  .post-thumb-ph { background: rgba(192,57,43,.12); }
  .post-title   { color: #e2e8f0; }
  .post-excerpt { color: #64748b; }
  .post-date    { color: #475569; }
  .post-card:hover .post-title { color: #f87171; }

  /* ─ ブログ一覧: ページネーション ─ */
  .page-link {
    background: #0d1a2d;
    color: #e2e8f0;
    border-color: #1e3a5f;
  }
  .page-link:hover { background: #0a1628; }

  /* ─ ブログ一覧: サイドバー ─ */
  .widget {
    background: #0d1a2d;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .widget-title { background: #060f1e; }
  .cat-list li  { border-bottom-color: #1e3a5f; }
  .cat-list li:last-child { border-bottom: none; }
  .cat-list a   { color: #cbd5e1; }
  .cat-list a:hover { color: #f87171; }
  .cat-list a span  { background: #0a1628; color: #64748b; }
  .archive-list li  { border-bottom-color: #1e3a5f; }
  .archive-list a   { color: #cbd5e1; }
  .archive-list a:hover { color: #f87171; }
  .archive-list a span  { color: #475569; }
  .side-channel { color: #cbd5e1; border-bottom-color: #1e3a5f; }
  .side-channel:hover { color: #f87171; }
  .x-icon { background: #1e2936; }
}

/* ========================================
   BLOG LISTING — 2カラムレイアウト共通
   (hanshin-keiba/index.html, page2/ など)
   ======================================== */

/* ─ カテゴリフィルターバー ─ */
.cat-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e0e6f0;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.cat-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-filter-inner::-webkit-scrollbar { display: none; }
.cat-btn {
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  color: #64748b;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  letter-spacing: .04em;
}
.cat-btn:hover  { color: #c0392b; }
.cat-btn.active { color: #c0392b; border-bottom-color: #c0392b; }

/* ─ メインラッパー 2カラム ─ */
.blog-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  overflow: hidden;        /* グリッド内のはみ出しをクリップ */
}

/* グリッドアイテムのオーバーフロー防止（必須） */
.blog-main    { min-width: 0; }
.blog-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ─ 記事カード ─ */
.post-list { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.post-card.hidden { display: none; }

.post-thumb {
  width: 180px;
  height: 120px;        /* 明示的に高さを固定 */
  flex-shrink: 0;
  background: #e8eef4;
  overflow: hidden;
  position: relative;
}
.post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(192,57,43,.08), rgba(192,57,43,.16));
}

.post-body {
  padding: 14px 18px 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-cat {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--color-accent-sports);
  color: #fff;
}
.post-cat.cat-analysis { background: #1a6fa8; }
.post-cat.cat-roster   { background: #7c3aed; }
.post-cat.cat-summary  { background: #d97706; }
.post-date {
  font-size: .75rem;
  color: #94a3b8;
}
.post-title {
  font-size: .97rem;
  font-weight: 800;
  color: #1a2744;
  line-height: 1.5;
  margin: 0;
}
.post-card:hover .post-title { color: #c0392b; }
.post-excerpt {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─ ページネーション ─ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.page-link, .page-current, .page-dots {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
}
.page-current { background: #c0392b; color: #fff; }
.page-link {
  background: #fff;
  color: #1a2744;
  border: 1px solid #dde3ec;
  text-decoration: none;
  transition: background .15s;
}
.page-link:hover { background: #f1f5f9; opacity: 1; }
.page-prev, .page-next { padding: 0 16px; width: auto; font-size: .82rem; }

/* ─ サイドバー ─ */
.widget {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
}
.widget-title {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: #1a2744;
  color: #facc15;
  margin: 0;
}
.widget-body { padding: 16px; }

.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-bottom: 1px solid #f0f3f8; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: .84rem;
  color: #1a2744;
  text-decoration: none;
  transition: color .15s;
  gap: 8px;
}
.cat-list a:hover { color: #c0392b; opacity: 1; }
.cat-list a span {
  background: #f0f3f8;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-list a::before { content: '▸'; color: #c0392b; font-size: .7rem; flex-shrink: 0; }

.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { border-bottom: 1px solid #f0f3f8; }
.archive-list li:last-child { border-bottom: none; }
.archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: .83rem;
  color: #1a2744;
  text-decoration: none;
  transition: color .15s;
}
.archive-list a:hover { color: #c0392b; opacity: 1; }
.archive-list a span { font-size: .72rem; color: #94a3b8; }

.side-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  text-decoration: none;
  color: #1a2744;
  font-size: .83rem;
  font-weight: 700;
  border-bottom: 1px solid #f0f3f8;
  transition: color .15s;
}
.side-channel:last-child { border-bottom: none; }
.side-channel:hover { color: #c0392b; opacity: 1; }
.side-ch-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.yt-icon { background: #ff0000; color: #fff; }
.x-icon  { background: #000;    color: #fff; font-weight: 900; font-size: .85rem; }

/* ─ レスポンシブ ─ */
@media (max-width: 860px) {
  .blog-wrap {
    grid-template-columns: 1fr !important;
    padding: 20px 16px 48px !important;
    gap: 32px;
  }
  .blog-main, .blog-sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .blog-wrap { padding: 16px 12px 40px !important; }
  .post-thumb { width: 110px !important; height: 80px !important; }
  .post-title  { font-size: .88rem; }
  .post-excerpt { display: none; }
  /* ウィジェット幅を確実にコンテナ内に収める */
  .widget, .cat-list, .archive-list { max-width: 100%; }
}
@media (max-width: 480px) {
  .blog-wrap { padding: 12px 10px 32px !important; gap: 20px; }
  .post-card   { flex-direction: column !important; width: 100% !important; box-sizing: border-box !important; }
  .post-thumb  { width: 100% !important; height: 160px !important; }
  .post-body   { padding: 10px 12px 12px; min-width: 0 !important; }
  .post-title  { font-size: .9rem; }
  .post-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; }
  /* カテゴリフィルターバーのパディング削減 */
  .cat-filter-inner { padding: 0 10px; }
  .cat-btn { padding: 8px 12px; font-size: .78rem; }
}

/* ========================================
   UTILITY
   ======================================== */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 32px 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  /* ヘッダーロゴ画像を少し小さく */
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .entry-gates {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-primary-light);
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.9rem;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
  .form-wrap {
    padding: 24px 20px;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .profile-body {
    padding: 24px;
  }
  .policy-section {
    padding: 20px;
  }
  .page-hero {
    padding: 32px 20px 28px;
  }
}

/* ============================================================
   ブログ一覧 ダークモード（BLOG LISTING CSS より後ろに配置）
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* ─ カテゴリフィルターバー ─ */
  .cat-filter-bar {
    background: #0a1628;
    border-bottom-color: #1e3a5f;
  }
  .cat-btn { color: #94a3b8; }
  .cat-btn:hover  { color: #f87171; }
  .cat-btn.active { color: #f87171; border-bottom-color: #f87171; }

  /* ─ 記事カード ─ */
  .post-card {
    background: #0d1a2d;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
  }
  .post-thumb { background: #0a1628; }
  .post-thumb-ph { background: rgba(192,57,43,.12); }
  .post-title   { color: #e2e8f0; }
  .post-excerpt { color: #64748b; }
  .post-date    { color: #475569; }
  .post-card:hover .post-title { color: #f87171; }

  /* ─ ページネーション ─ */
  .page-link {
    background: #0d1a2d;
    color: #e2e8f0;
    border-color: #1e3a5f;
  }
  .page-link:hover { background: #0a1628; }

  /* ─ サイドバー ─ */
  .widget {
    background: #0d1a2d;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .widget-title { background: #060f1e; }
  .cat-list li  { border-bottom-color: #1e3a5f; }
  .cat-list li:last-child { border-bottom: none; }
  .cat-list a   { color: #cbd5e1; }
  .cat-list a:hover { color: #f87171; }
  .cat-list a span  { background: #0a1628; color: #64748b; }
  .archive-list li  { border-bottom-color: #1e3a5f; }
  .archive-list a   { color: #cbd5e1; }
  .archive-list a:hover { color: #f87171; }
  .archive-list a span  { color: #475569; }
  .side-channel { color: #cbd5e1; border-bottom-color: #1e3a5f; }
  .side-channel:hover { color: #f87171; }
  .x-icon { background: #1e2936; }
}
