/* ================================================================
   components.css — BitTradeBlog
   ボタン・バッジ・カード・共通UIパーツ
================================================================ */

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-5);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  box-shadow: var(--shadow-focus);
  outline: none;
}

/* Primary */
.btn--primary {
  background: #1191E5;
  color: #fff;
  border-color: #1191E5;
}
.btn--primary:hover {
  background: #0d7acc;
  border-color: #0d7acc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* Secondary (outline) */
.btn--secondary {
  background: transparent;
  color: #1191E5;
  border-color: #1191E5;
}
.btn--secondary:hover {
  background: rgba(17, 145, 229, 0.12);
  color: #1191E5;
}

/* Dark */
.btn--dark {
  background: var(--gray-900);
  color: #fff;
  border-color: var(--gray-900);
}
.btn--dark:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: #fff;
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-sub);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Sizes */
.btn--sm { padding: 6px var(--sp-3); font-size: var(--text-xs); border-radius: var(--r-sm); }
.btn--lg { padding: 14px var(--sp-8); font-size: var(--text-base); border-radius: var(--r-lg); }

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ================================================================
   BADGES
================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.badge--primary {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
}
.badge--brand {
  background: var(--color-primary);
  color: var(--gray-900);
}
.badge--dark {
  background: var(--gray-900);
  color: var(--color-primary);
}
.badge--new {
  background: rgba(255,255,255,0.9);
  color: var(--blue-600);
}
.badge--success {
  background: var(--color-success-bg);
  color: #065F46;
}
.badge--warning {
  background: var(--color-warning-bg);
  color: #92400E;
}
.badge--danger {
  background: var(--color-danger-bg);
  color: #991B1B;
}
.badge--gray {
  background: var(--gray-100);
  color: var(--gray-600);
}
.badge--live {
  background: var(--color-danger);
  color: #fff;
}

/* ================================================================
   TAGS
================================================================ */
.tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-xs);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}
.tag:hover {
  border-color: #1191E5;
  color: #1191E5;
  background: rgba(17, 145, 229, 0.12);
}
.tag.is-active {
  border-color: #1191E5;
  background: #1191E5;
  color: #fff;
  font-weight: 700;
}

/* ================================================================
   ARTICLE CARD
================================================================ */
.art-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.art-card a {
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.art-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  flex-shrink: 0;
}
.art-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.art-card:hover .art-card__thumb img {
  transform: scale(1.04);
}
.art-card__cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
}
.art-card__new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* Body */
.art-card__body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.art-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: var(--sp-3);
  flex: 1;
  /* 3行クランプ */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.art-card__date,
.art-card__author {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.art-card__author::before {
  content: '·';
  margin-right: var(--sp-2);
}

/* ================================================================
   HERO CARD (トップFV)
================================================================ */
.hero-section {
  padding: var(--sp-8) 0;
  background: var(--color-bg);
}

.hero-card {
  background: var(--blue-900);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;   /* SP: 縦積み */
  position: relative;
  text-decoration: none;
  min-height: 260px;
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;  /* PC: 50:50 */
    min-height: 280px;
  }
}

.hero-card__body {
  padding: var(--sp-8) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-card__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}
.hero-card__eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.hero-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-4);
}
.hero-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero-card__date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}
.hero-card__image {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ================================================================
   CTA BANNER (口座開設導線)
================================================================ */
.cta-banner {
  background: #F2F5F8;
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* 装飾円 */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::before {
  width: 220px;
  height: 220px;
  right: -30px;
  top: -30px;
  background: rgba(17, 145, 229, 0.15);
}
.cta-banner::after {
  width: 150px;
  height: 150px;
  right: 100px;
  bottom: -50px;
  background: rgba(17, 145, 229, 0.10);
}

@media (min-width: 768px) {
  .cta-banner {
    grid-template-columns: 1fr auto;
  }
}

.cta-banner__body { position: relative; z-index: 1; }
.cta-banner__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1191E5;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cta-banner__eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #1191E5;
  border-radius: var(--r-full);
}
.cta-banner__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #111820;
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-2);
}
.cta-banner__title strong { color: #1191E5; }
.cta-banner__desc {
  font-size: var(--text-xs);
  color: #546070;
  margin-bottom: var(--sp-5);
}
.cta-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cta-banner__sub-link {
  font-size: var(--text-xs);
  color: #546070;
  text-decoration: underline;
  cursor: pointer;
}
.cta-banner__stats {
  display: flex;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.cta-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  min-width: 110px;
}
.cta-stat__label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-1);
}
.cta-stat__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.cta-stat__unit {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: var(--sp-1);
}

/* ================================================================
   MARKET TICKER (マーケット速報)
================================================================ */
.market-ticker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 1024px) {
  .market-ticker {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ticker-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ticker-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ticker-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.ticker-card__coin {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.ticker-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.ticker-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ticker-card__symbol {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  display: block;
  line-height: 1.2;
}
.ticker-card__name {
  font-size: 9px;
  color: var(--color-text-muted);
}
.ticker-card__change {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.ticker-card__change--up {
  background: var(--color-success-bg);
  color: #065F46;
}
.ticker-card__change--down {
  background: var(--color-danger-bg);
  color: #991B1B;
}
.ticker-card__price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
/* News feed */
.news-feed {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--sp-4);
}
.news-feed__header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--sp-2) var(--sp-4);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.news-feed__dot {
  width: 7px;
  height: 7px;
  background: var(--color-danger);
  border-radius: 50%;
  flex-shrink: 0;
}
.news-feed__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border-light);
}
.news-feed__item:last-child { border-bottom: none; }
.news-feed__label { flex-shrink: 0; margin-top: 2px; }
.news-feed__text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.55;
}
.news-feed__time {
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* ================================================================
   FEATURE SPECIAL (今から始める仮想通貨特集)
================================================================ */
.feature-banner {
  background: #F2F5F8;
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
@media (min-width: 768px) {
  .feature-banner {
    grid-template-columns: 1fr 200px;
  }
}
.feature-banner__eyebrow {
  display: none;
}
.feature-banner__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #111820;
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-2);
}
.feature-banner__desc {
  font-size: var(--text-xs);
  color: #546070;
  margin-bottom: var(--sp-5);
}
.feature-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.feature-step {
  background: #fff;
  border: 1px solid #DDE3ED;
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.feature-step__num {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #9EACBB;
  min-width: 20px;
}
.feature-step__label {
  font-size: var(--text-xs);
  color: #3A4553;
}

/* Step cards */
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step-card__thumb {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  position: relative;
}
.step-card__step-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,217,255,0.9);
  color: var(--blue-900);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.step-card__body { padding: var(--sp-3) var(--sp-3); }
.step-card__title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--sp-1);
}
.step-card__time {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* ================================================================
   SIDEBAR WIDGETS
================================================================ */
.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.widget__header {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--gray-50);
}
.widget__title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.widget__title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--color-primary);
  border-radius: var(--r-full);
}
.widget__body { padding: var(--sp-3) var(--sp-4); }

/* Popular posts widget */
.popular-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.popular-item:last-child { border-bottom: none; }
.popular-item__rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-border);
  min-width: 24px;
  line-height: 1.2;
}
.popular-item__rank--top { color: var(--color-primary); }
.popular-item__title {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.55;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
  margin-bottom: var(--sp-6);
}
.sidebar-cta__label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-1);
}
.sidebar-cta__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: var(--sp-4);
}

/* ================================================================
   NOTICE BOX
================================================================ */
.notice-box {
  background: var(--color-primary-dim);
  border: 1px solid var(--blue-200);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  color: var(--blue-700);
  line-height: var(--leading-normal);
}

/* ================================================================
   NEWS FEED — RSS追加スタイル
================================================================ */
.news-feed__sources {
  display: flex;
  gap: var(--sp-2);
  margin-left: auto;
  flex-wrap: wrap;
}
.news-feed__source-tag {
  font-size: 9px;
  font-weight: 700;
  background: rgba(0,217,255,.12);
  color: var(--blue-600);
  padding: 2px 6px;
  border-radius: var(--r-full);
}

.news-feed__footer {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--gray-50);
  border-top: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}
.news-feed__updated {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-right: auto;
}
.news-feed__src-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.news-feed__src-link:hover { color: var(--color-primary); }

/* ================================================================
   HERO FALLBACK IMAGE（サムネなし時）
================================================================ */
.hero-card__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-400) 100%);
}
.hero-card__image-fallback-icon {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  line-height: 1;
}
.hero-card__image-fallback-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.25);
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* ================================================================
   CTA BANNER — 確実に表示されるベースリセット
================================================================ */
.cta-section {
  display: block !important;
  width: 100%;
}
.cta-banner {
  display: grid;
}

/* ================================================================
   FRONT PAGE セクション間の余白統一
================================================================ */
.front-page .page-section {
  padding: var(--sp-10) 0;
}
.front-page .articles-section {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
  background: var(--color-bg);
}
.front-page .cta-section {
  padding: var(--sp-8) 0;
  background: var(--color-bg);
}
.front-page .market-section {
  background: var(--color-surface);
  padding: var(--sp-10) 0;
}
.front-page .feature-section {
  background: var(--color-bg);
  padding: var(--sp-10) 0 var(--sp-16);
}

/* ================================================================
   CTA BANNER レイアウト修正
   （WordPressでは @import が効かないためここに明示）
================================================================ */
.cta-banner {
  background: #F2F5F8;
  border-radius: 20px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .cta-banner {
    grid-template-columns: 1fr auto;
  }
}
.cta-banner * {
  position: relative;
  z-index: 1;
}
.cta-banner__title {
  font-family: 'Noto Serif JP', 'Georgia', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111820;
  line-height: 1.45;
  margin-bottom: 8px;
}
.cta-banner__title strong { color: #1191E5; font-style: normal; }
.cta-banner__desc  { font-size: 12px; color: #546070; margin-bottom: 20px; }
.cta-banner__eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #1191E5; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.cta-banner__eyebrow::before {
  content: ''; width: 14px; height: 2px;
  background: #1191E5; border-radius: 999px;
}
.cta-banner__actions {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.cta-banner__sub-link {
  font-size: 12px; color: #546070;
  text-decoration: underline; cursor: pointer;
}
.cta-banner__stats {
  display: flex; gap: 12px;
  flex-shrink: 0;
}
.cta-stat {
  background: #fff;
  border: 1px solid #DDE3ED;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  min-width: 110px;
}
.cta-stat__label { font-size: 10px; color: #768898; margin-bottom: 4px; }
.cta-stat__value { font-size: 28px; font-weight: 700; color: #1191E5; line-height: 1; }
.cta-stat__unit  { font-size: 10px; color: #768898; margin-top: 4px; }

/* ================================================================
   HERO SLIDER
   PC  : 左 画像80% / 右 テキスト20%
   SP  : 上 画像60% / 下 テキスト40%
================================================================ */

.hero-slider-section {
  background: var(--color-bg);
}

/* スライダー本体 — フルwidth・角丸なし */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--blue-900);
  box-shadow: var(--shadow-lg);
}

/* トラック */
.hero-slider__track {
  position: relative;
  width: 100%;
}

/* ── スライド 1枚 ── */
.hero-slide {
  display: none;                 /* 非アクティブは非表示 */
  width: 100%;

  /* SP: 縦積み（画像固定高 / テキストは自動高） */
  display: grid;
  grid-template-rows: 220px auto;
  grid-template-columns: 1fr;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.6s ease;
}

/* アクティブスライド */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;           /* レイアウトに影響させる */
}

/* 退場中スライド */
.hero-slide.is-leaving {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* PC: 横並び（画像75% / テキスト25%） */
@media (min-width: 768px) {
  .hero-slide {
    grid-template-rows: 1fr;
    grid-template-columns: 75fr 25fr;
    height: clamp(360px, 38vw, 560px);
  }
}

/* ── 画像エリア ── */
.hero-slide__image {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  text-decoration: none;
}
.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.5s ease;
}
.hero-slide.is-active .hero-slide__image img {
  transform: scale(1.02);
}
.hero-slide__image-fallback {
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.hero-slide__cat {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
}

/* ── テキストエリア ── */
.hero-slide__body {
  background: var(--blue-900);
  padding: var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .hero-slide__body {
    padding: var(--sp-8) var(--sp-6);
  }
}

.hero-slide__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.hero-slide__eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.hero-slide__title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.hero-slide__title a {
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}
.hero-slide__title a:hover {
  color: var(--color-primary);
}

.hero-slide__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.hero-slide__btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 11px;
  padding: 7px 14px;
}

/* ── コントロールバー ── */
.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(0,0,0,0.3);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* 矢印ボタン */
.hero-slider__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.hero-slider__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--gray-900);
}

/* ドット */
.hero-slider__dots {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}
.hero-slider__dot.is-active {
  background: var(--color-primary);
  width: 22px;
  border-radius: var(--r-full);
}
.hero-slider__dot:hover:not(.is-active) {
  background: rgba(255,255,255,0.6);
}

/* ================================================================
   PRICE TICKER BAR（ヘッダー直下）
================================================================ */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.price-ticker {
  background: var(--blue-900);
  border-bottom: 1px solid rgba(0,217,255,.15);
  height: 36px;
  overflow: hidden;
  position: sticky;
  top: var(--header-height);
  z-index: calc(var(--z-sticky) - 1);
  width: 100%;
}

.price-ticker__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
}

/* ── ラベル ── */
.price-ticker__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .08em;
  padding: 0 var(--sp-4);
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  height: 100%;
}

.price-ticker__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-danger);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── スクロールトラック ── */
.price-ticker__track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.price-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  /* 2セット分の幅で無限スクロール */
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

/* ホバーで一時停止 */
.price-ticker:hover .price-ticker__track,
.price-ticker:focus-within .price-ticker__track {
  animation-play-state: paused;
}

/* ── 各銘柄アイテム ── */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  height: 36px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.ticker-item:hover {
  background: rgba(0,217,255,.07);
}

.ticker-item__symbol {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.ticker-item__price {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
}

.ticker-item__change {
  font-size: 10px;
  font-weight: 700;
}
.ticker-item__change--up   { color: #4ade80; }
.ticker-item__change--down { color: #f87171; }

/* ── 全銘柄リンク ── */
.price-ticker__all {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-4);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  transition: var(--transition-fast);
}
.price-ticker__all:hover {
  background: rgba(0,217,255,.1);
  color: var(--color-primary);
}

/* reduced-motion: スクロール停止、静止表示 */
@media (prefers-reduced-motion: reduce) {
  .price-ticker__track {
    animation: none;
  }
}

/* ================================================================
   SIMULATOR PROMO（トップページセクション）
================================================================ */
.sim-promo {
  background: #F2F5F8;
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}
.sim-promo::before {
  content: '₿';
  position: absolute;
  font-size: 280px;
  font-weight: 900;
  color: rgba(17,145,229,.08);
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.sim-promo__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 768px) {
  .sim-promo__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* コピーエリア */
.sim-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1191E5;
  margin-bottom: var(--sp-4);
}
.sim-promo__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1191E5;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.sim-promo__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #111820;
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-4);
}
.sim-promo__desc {
  font-size: var(--text-sm);
  color: #546070;
  line-height: var(--leading-normal);
  margin-bottom: var(--sp-6);
}

/* 計算フォームエリア */
.sim-promo__calc {
  background: #fff;
  border: 1px solid #DDE3ED;
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  backdrop-filter: blur(4px);
}

.sim-calc__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.sim-calc__field { display: flex; flex-direction: column; gap: var(--sp-1); }
.sim-calc__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sim-calc__input-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
  transition: var(--transition-fast);
}
.sim-calc__input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0,217,255,.15);
}
.sim-calc__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  padding: var(--sp-2) 0;
  min-width: 0;
}
.sim-calc__input::placeholder { color: rgba(255,255,255,.25); }
.sim-calc__unit { font-size: 12px; color: rgba(255,255,255,.4); flex-shrink: 0; }

.sim-calc__select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}
.sim-calc__select:focus { border-color: var(--color-primary); }
.sim-calc__select option { background: var(--blue-900); color: #fff; }

/* 結果 */
.sim-calc__result {
  background: rgba(0,0,0,.2);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  text-align: center;
}
.sim-calc__result-label {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-2);
}
.sim-calc__result-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--sp-1);
  transition: color .3s;
}
.sim-calc__result-diff {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: var(--sp-2);
}
.sim-calc__result-diff--up   { color: #4ade80; }
.sim-calc__result-diff--down { color: #f87171; }
.sim-calc__result-note {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

.sim-calc__disclaimer {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}
.sim-calc__full-link {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.sim-calc__full-link:hover { text-decoration: underline; }

/* ================================================================
   SIMULATOR WIDGET（記事サイドバー）
================================================================ */
.sb-widget--sim {
  border: 1px solid var(--blue-200);
  overflow: visible;
  position: relative;
}
.sb-widget--sim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,.04), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.sb-sim__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--blue-900);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.sb-sim__icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  flex-shrink: 0;
}
.sb-sim__title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.sb-sim__sub {
  font-size: 10px;
  color: rgba(255,255,255,.5);
}

.sb-sim__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sb-sim__field { display: flex; flex-direction: column; gap: var(--sp-1); }
.sb-sim__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sb-sim__input-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
  transition: var(--transition-fast);
}
.sb-sim__input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.sb-sim__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  padding: 8px 0;
  min-width: 0;
}
.sb-sim__unit { font-size: 12px; color: var(--color-text-muted); flex-shrink: 0; }

.sb-sim__select {
  width: 100%;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  padding: 8px var(--sp-3);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}
.sb-sim__select:focus { border-color: var(--color-primary); }

.sb-sim__result {
  background: var(--blue-900);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
}
.sb-sim__result-label {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sb-sim__result-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--sp-1);
  transition: color .3s;
}
.sb-sim__result-diff {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.sb-sim__disclaimer {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================================================================
   レスポンシブ追加修正（モバイル）
================================================================ */

/* CTA バナー：統計カードをモバイルで横スクロール化 */
@media (max-width: 767px) {
  .cta-banner {
    padding: var(--sp-6) var(--sp-5);
  }
  .cta-banner__stats {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--sp-2);
    padding-bottom: var(--sp-1);
  }
  .cta-banner__stats::-webkit-scrollbar { display: none; }
  .cta-stat {
    min-width: 90px;
    flex-shrink: 0;
    padding: var(--sp-3) var(--sp-3);
  }
  .cta-stat__value { font-size: 22px; }
}

/* Feature バナー：モバイルで feature-steps を非表示（step cards で代替） */
@media (max-width: 767px) {
  .feature-steps { display: none; }
  .feature-banner {
    padding: var(--sp-6) var(--sp-5);
  }
}

/* Step cards（card-grid--four）：モバイルで2列 */
@media (max-width: 639px) {
  .card-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* シミュレーター：ボタン全幅・中央揃え */
@media (max-width: 639px) {
  .sim-promo__inner--simple {
    align-items: stretch;
  }
  .sim-promo__inner--simple .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* market ticker：モバイルで2列は維持しつつカードを小さく */
@media (max-width: 639px) {
  .ticker-card {
    padding: var(--sp-3);
  }
  .ticker-card__price {
    font-size: 14px;
  }
}

/* ================================================================
   ニュースポップアップモーダル
================================================================ */
.news-feed__item--popup {
  cursor: pointer;
  user-select: none;
}
.news-feed__item--popup:hover { background: var(--blue-50); }
.news-feed__item--popup .news-feed__text { pointer-events: none; }

/* モーダル本体 */
.bt-news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bt-news-modal[hidden] { display: none; }

.bt-news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,18,36,.7);
  backdrop-filter: blur(4px);
}

.bt-news-modal__box {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,18,36,.3);
  animation: btModalIn .2s ease;
}
@keyframes btModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.bt-news-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.bt-news-modal__close:hover { background: var(--gray-200); }

.bt-news-modal__source {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.bt-news-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 8px;
}
.bt-news-modal__time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}
.bt-news-modal__lead {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0 0 20px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}
.bt-news-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: background .15s;
}
.bt-news-modal__btn:hover { background: var(--color-primary-hover); color: var(--blue-900); }
