/* ============================================================
   消費者目線 by TWELVE — Z世代向けダイナミックデザイン
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #aaaaaa;
  --border: #2a2a2a;
  --accent: #00e5a0;
  --accent2: #00c8ff;
  --accent3: #ff6b9d;
  --gradient: linear-gradient(135deg, #00e5a0 0%, #00c8ff 50%, #7b61ff 100%);
  --gradient2: linear-gradient(135deg, #ff6b9d 0%, #ff9a5c 100%);
  --font: 'Noto Sans JP', -apple-system, sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

a { color: var(--accent); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; }

/* --- Ticker --- */
.ticker-bar {
  width: 100%;
  height: 40px;
  max-height: 40px;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  overflow: hidden !important;
  display: block; /* iOS Safari flex+overflow bugを回避 */
  white-space: nowrap; /* バーレベルでも折り返し禁止 */
  line-height: 40px;
}
.ticker-track {
  display: inline-block; /* flex→inline-blockでiOS互換 */
  white-space: nowrap;
  width: 100%;
  height: 40px;
  overflow: hidden;
  vertical-align: top;
}
.ticker-content {
  display: inline-block; /* flex→inline-blockでiOS互換 */
  white-space: nowrap !important;
  animation: tickerScroll 40s linear infinite;
  vertical-align: middle;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline; /* block非推奨、inline-blockもNG */
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  padding: 0 32px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker-item .ticker-val { color: var(--white); font-weight: 700; }
.ticker-item .ticker-up   { color: #ff6b9d; }
.ticker-item .ticker-down { color: var(--accent); }
.ticker-sep {
  display: inline;
  color: var(--border);
  font-size: 14px;
}

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-mark {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 14px; font-weight: 900;
}
.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-sub { font-size: 8px; font-weight: 500; color: var(--gray); letter-spacing: 0.1em; }

.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--gray-light);
  transition: color var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

.header-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--black) !important;
  background: var(--gradient);
  padding: 8px 22px;
  border-radius: 100px;
  transition: all var(--transition);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,160,0.3); }

/* Mobile */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.mobile-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--white);
  position: absolute; left: 7px; transition: all 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 11px; }
.mobile-toggle span:nth-child(2) { top: 16px; }
.mobile-toggle span:nth-child(3) { top: 21px; }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .header-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
  .header-nav.open { display: flex; }
  .header-cta { display: none; }
}

/* --- Hero --- */
.hero {
  background: var(--black);
  padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -30%; width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,229,160,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
}
.hero-label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--gray-light);
  max-width: 600px;
  line-height: 1.9;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat-num {
  font-family: var(--font-en);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 11px; color: var(--gray); letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --- Data Section (Charts) --- */
.data-section {
  background: var(--dark);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-section .container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.data-grid {
  display: grid;
  /* min() でモバイルでも1カラムに収まるよう保証 */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}
.data-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  overflow: hidden; /* 内部コンテンツのはみ出しを防止 */
  min-width: 0;     /* grid子要素がshrinkできるように */
}
.data-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.data-card-title {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.data-card-desc {
  font-size: 12px; color: var(--gray); margin-bottom: 20px; line-height: 1.6;
}
.chart-wrap { position: relative; height: 200px; }

/* --- Section Headings --- */
.section-heading { margin-bottom: 12px; }
.section-heading-en {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.25em;
  color: var(--accent);
}
.section-heading-ja {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,229,160,0.1);
}
.article-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark3);
  position: relative;
}
.article-card-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(transparent, rgba(10,10,10,0.6));
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 8px;
}
.article-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.55;
  color: var(--white); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-meta {
  margin-top: auto;
  font-size: 11px; color: var(--gray);
}

/* --- Data Card Source --- */
.data-card-source {
  font-size: 10px; color: var(--gray); margin-top: 12px;
  padding-top: 8px; border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* --- Trends / Ranking List --- */
.trends-list, .ranking-list { display: flex; flex-direction: column; gap: 0; max-height: 200px; overflow-y: auto; }
.trends-item, .ranking-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--gray-light);
}
.trends-item:last-child, .ranking-item:last-child { border-bottom: none; }
.trends-rank, .ranking-rank {
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  color: var(--accent); min-width: 22px; text-align: center;
}
.trends-rank.top3 { color: var(--accent3); }
.trends-kw { flex: 1; font-weight: 500; }
.trends-val { font-family: var(--font-en); font-size: 11px; color: var(--gray); }
.ranking-title { flex: 1; font-size: 12px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ranking-cat { font-size: 10px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* --- Heatmap --- */
.heatmap-wrap { overflow-x: auto; }
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.heatmap-table th { padding: 4px 6px; font-weight: 600; color: var(--gray); text-align: center; white-space: nowrap; }
.heatmap-table td { padding: 4px 6px; text-align: center; border-radius: 3px; font-family: var(--font-en); font-weight: 600; font-size: 10px; }
.heatmap-table .hm-label { text-align: left; color: var(--gray-light); font-size: 11px; font-weight: 500; white-space: nowrap; }
.hm-0 { background: rgba(0,229,160,0.05); color: var(--gray); }
.hm-1 { background: rgba(0,229,160,0.15); color: #aaa; }
.hm-2 { background: rgba(0,229,160,0.3); color: #ccc; }
.hm-3 { background: rgba(0,229,160,0.5); color: #fff; }
.hm-4 { background: rgba(0,229,160,0.75); color: #fff; }
.hm-5 { background: rgba(0,229,160,1); color: var(--black); font-weight: 900; }

/* --- AI Commentary --- */
.ai-comment {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ai-comment::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.ai-comment-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.ai-comment-icon { font-size: 18px; }
.ai-comment-name {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--accent);
}
.ai-comment-tag {
  font-family: var(--font-en);
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gray);
  background: var(--dark3);
  padding: 2px 8px; border-radius: 100px;
  margin-left: auto;
}
.ai-comment-body {
  padding: 24px;
  font-size: 14px;
  line-height: 2.0;
  color: var(--gray-light);
}
.ai-comment-body p { margin-bottom: 12px; }
.ai-comment-body p:last-child { margin-bottom: 0; }
.ai-comment-body strong { color: var(--white); }
.ai-comment-body .ai-hot { color: var(--accent3); font-weight: 700; }
.ai-comment-body .ai-cool { color: var(--accent); font-weight: 700; }
.ai-comment-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--gray);
}

/* --- More Link --- */
.data-more-row {
  display: flex; justify-content: center; margin-top: 20px;
}
.data-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent) !important;
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 10px 28px;
  border-radius: 100px;
  transition: all var(--transition);
}
.data-more-btn:hover {
  border-color: var(--accent);
  background: rgba(0,229,160,0.08);
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.data-more-btn::after { content: '→'; }

/* --- Forecast Mobile --- */
@media (max-width: 768px) {
  #forecast-wrap { grid-template-columns: 1fr !important; }
  .econ-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Global Overflow Prevention ---
   overflow-x: clip は iOS Safari 16未満で未サポート → hidden を使用 */
.hero, .data-section, .cta-banner, .site-footer, section {
  overflow-x: hidden;
  max-width: 100%;
}

/* --- Global Mobile Fix --- */
@media (max-width: 600px) {
  /* テキスト */
  .hero-title { font-size: 26px !important; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 28px !important; }
  .hero-stat-label { font-size: 10px; }
  .section-heading-ja { font-size: 20px !important; }

  /* レイアウト */
  .container { padding: 0 16px !important; }
  .data-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .data-card { padding: 18px !important; min-width: 0 !important; }
  .data-card[style*="grid-column: span"] { grid-column: span 1 !important; }
  .article-grid { grid-template-columns: 1fr !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* EC予報 */
  #forecast-wrap { grid-template-columns: 1fr !important; }
  .econ-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* フィルタ・ボタン */
  .cat-filter { gap: 6px; }
  .cat-filter-btn { font-size: 11px; padding: 5px 12px; }
  .data-more-row { flex-wrap: wrap; }
  .data-more-btn { font-size: 12px; padding: 8px 20px; width: 100%; justify-content: center; }

  /* AIコメント */
  .ai-comment-body { font-size: 13px; padding: 16px; }
  .ai-comment-header { padding: 12px 16px; }

  /* ヒートマップ（内部スクロール） */
  .heatmap-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .heatmap-table { min-width: 500px; }

  /* インライン grid 2カラム → 1カラム（JS生成要素） */
  #econ-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Econ Stats Mobile --- */
@media (max-width: 768px) {
  .econ-stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .econ-stats { grid-template-columns: 1fr !important; }
}

/* --- Featured Card --- */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all var(--transition);
  margin-bottom: 48px;
}
.featured-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,229,160,0.08); }
.featured-card .article-card-img { aspect-ratio: auto; min-height: 300px; }
.featured-card .article-card-body { padding: 36px; justify-content: center; }
.featured-card .article-card-title { font-size: 22px; -webkit-line-clamp: 4; }

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .article-card-img { aspect-ratio: 16 / 9; min-height: auto; }
}

/* --- Category Filter --- */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-filter-btn {
  font-size: 12px; font-weight: 600;
  color: var(--gray-light);
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-filter-btn:hover, .cat-filter-btn.active {
  color: var(--black);
  background: var(--accent);
  border-color: var(--accent);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.cta-banner-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; margin-bottom: 16px; line-height: 1.4;
}
.cta-banner-desc {
  font-size: 14px; color: var(--gray-light);
  margin-bottom: 32px; line-height: 1.8;
}
.cta-banner-btn {
  display: inline-block;
  background: var(--gradient);
  color: var(--black) !important;
  font-size: 14px; font-weight: 700;
  padding: 14px 40px;
  border-radius: 100px;
  transition: all var(--transition);
}
.cta-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,160,0.25); }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  color: var(--gray);
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 48px) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-name {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--white);
}
.footer-brand-desc { font-size: 13px; line-height: 1.8; }
.footer-col-title {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gray); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--gray-light); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 11px; color: var(--gray);
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* --- Marquee ---
   position:relative が必須（overflow:hidden がクリッピングコンテキストとして機能するため）
   will-change: transform は isolated スタッキングコンテキストを作るため contain を追加 */
.marquee-wrap {
  overflow: hidden;
  position: relative; /* clipping context に必須 */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--dark);
  width: 100%;
  max-width: 100%;
  contain: paint; /* 子要素のはみ出しをこの要素内に封じ込める */
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--gray); white-space: nowrap;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 12px; color: var(--gray);
  padding: 16px 0;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* --- Pagination --- */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; font-weight: 600;
  color: var(--gray-light); border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--black); border-color: var(--accent); }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section-pad { padding: clamp(60px, 8vw, 100px) 0; }
.glow-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Share Buttons --- */
.share-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.2s;
}
.data-card:hover .share-bar { opacity: 1; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--dark3);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: var(--dark3) !important;
  color: var(--gray) !important;
  box-sizing: border-box;
}
.share-btn:hover { color: var(--white); border-color: #444; background: #2a2a2a; }
.share-btn.x-btn:hover   { border-color: #fff; color: #fff; }
.share-btn.img-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn.copy-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.share-btn.copied { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  .share-bar { opacity: 1; } /* モバイルは常時表示 */
  .share-btn {
    font-size: 9px;
    padding: 3px 8px;
    background: var(--dark3) !important;
    color: var(--gray) !important;
    border-color: var(--border) !important;
    -webkit-appearance: none;
    appearance: none;
  }
}

/* ============================================================
   モバイル直帰率改善 — ファーストビュー最適化
   ============================================================ */

/* ① ヒーロー: スマホでパディングを詰めてCTAを素早く見せる */
@media (max-width: 600px) {
  .ticker-bar { height: 34px; max-height: 34px; line-height: 34px; }
  .ticker-track { height: 34px; }
  .ticker-item { font-size: 11px; padding: 0 20px; }
  .hero {
    padding-top: 96px !important;
    padding-bottom: 36px !important;
  }
  .hero-title {
    font-size: 24px !important;
    line-height: 1.45 !important;
    letter-spacing: -0.01em;
  }
  .hero-desc {
    font-size: 13px !important;
    line-height: 1.7;
    margin-top: 12px !important;
  }
  .hero-stats {
    margin-top: 20px !important;
    gap: 12px !important;
    justify-content: space-around;
  }
  .hero-stat-num { font-size: 24px !important; }
  .hero-cta-group {
    margin-top: 24px !important;
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center;
    font-size: 14px !important;
    padding: 14px 20px !important;
  }
}

/* ② セクションタイトル: スマホで読みやすく */
@media (max-width: 600px) {
  .section-heading-en {
    font-size: 10px !important;
    letter-spacing: 0.18em;
  }
  .section-heading-ja {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
  .section-pad { padding: 40px 0 !important; }
}

/* ③ データカード: スマホで余白を減らしスキャンしやすく */
@media (max-width: 600px) {
  .data-card { padding: 16px !important; }
  .card-title { font-size: 12px !important; letter-spacing: 0.06em; }
  .card-value { font-size: 36px !important; line-height: 1.1; }
  .card-unit  { font-size: 12px !important; }
  .card-note  { font-size: 10px !important; margin-top: 6px; }
  .chart-wrap { margin-top: 12px !important; }
}

/* ④ 固定フッターCTA（モバイルのみ表示） */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 600px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 16px 14px;
    gap: 8px;
    align-items: center;
  }
  .mobile-cta-bar .mcta-text {
    flex: 1;
    font-size: 11px;
    color: var(--gray-light);
    line-height: 1.3;
  }
  .mobile-cta-bar .mcta-text strong {
    display: block;
    font-size: 12px;
    color: var(--white);
  }
  .mobile-cta-bar .mcta-btn {
    background: var(--gradient);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 100px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
  }
  /* フッターCTA分だけbodyにパディング */
  body { padding-bottom: 68px; }
}

/* ============================================================
   スマホ最適化 — 追加修正
   ============================================================ */

@media (max-width: 600px) {
  /* SNS急上昇KW: 3列 → 1列 */
  #fc-sns-trends { grid-template-columns: 1fr !important; gap: 20px !important; }
  #fc-sns-trends > div { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  #fc-sns-trends > div:last-child { border-bottom: none; padding-bottom: 0; }

  /* 消費者気分指数: 2列 → 縦並び */
  #mood-index-wrap { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Featured card: 横並び → 縦並び */
  .featured-card { grid-template-columns: 1fr !important; }
  .featured-card .article-card-img { min-height: 180px !important; aspect-ratio: 16/9 !important; }
  .featured-card .article-card-body { padding: 20px !important; }
  .featured-card .article-card-title { font-size: 17px !important; -webkit-line-clamp: 3 !important; }

  /* TOOLSショーケース: カード内パディング縮小 */
  #tools .container { padding: 0 16px !important; }
  #tools h2 { font-size: 22px !important; }
  #tools p { font-size: 13px !important; }

  /* シェアボタン4個: フォントサイズを小さく */
  .share-btn-x, .share-btn-line, .share-btn-fb, .share-btn-copy,
  .sbtn-x, .sbtn-line, .sbtn-fb, .sbtn-copy {
    font-size: 12px !important;
    padding: 10px 6px !important;
    gap: 4px !important;
  }

  /* 記事カード: タイトル行数 */
  .article-card-title { font-size: 14px !important; }

  /* SNSトレンドカード見出し */
  #sns-trends-card .data-card-title { font-size: 13px; }

  /* 今日買っていい日？ ボタン */
  #buy-check-btn { font-size: 15px !important; padding: 14px 28px !important; }
  #buy-result { padding: 0 4px; }
  #buy-verdict-emoji { font-size: 48px !important; }
}

/* ── もっと見るボタン ── */
.more-articles-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.more-articles-btn:hover {
  background: var(--accent);
  color: #fff;
}
