@charset "UTF-8";

/* ===================================================================
 * 東武証券 v2 強化スタイル
 * - style.css の上にロード（オーバーライド・追加分のみ）
 * - メインカラーは Tweaks で動的変更可
 * =================================================================== */

:root {
  --color-primary: #009944;
  --color-primary-dark: #007a35;
  --color-primary-light: #e6f5ec;
  --color-primary-tint: rgba(0, 153, 68, 0.08);
}

/* ---------- Section heads: better hierarchy ---------- */
.section-label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 1px;
  background: var(--color-primary);
}

.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

@media (max-width: 820px) {
  .section-title { font-size: 2.4rem; }
  .section-label { font-size: 1rem; padding-left: 24px; }
}

/* =============================================
 * Hero — gradient overlay, sub-copy, scroll hint
 * ============================================= */
.hero {
  height: 100vh;
  min-height: 600px;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 30, 18, 0.04) 0%, rgba(0, 30, 18, 0.14) 60%, rgba(0, 30, 18, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.04) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  padding-top: 200px;
}

.hero-copy {
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-catchphrase {
  font-size: clamp(3.2rem, 4.6vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.22;
  margin-bottom: 28px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-subcopy {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.4rem, 1.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  max-width: 32em;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  pointer-events: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hero-cta-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 153, 68, 0.45);
}

.hero-cta-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 153, 68, 0.55);
  opacity: 1;
}

.hero-cta-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.hero-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 70px;
  right: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@media (max-width: 820px) {
  .hero-scroll { display: none; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta { width: fit-content; }
  .hero-eyebrow { font-size: 1rem; letter-spacing: 0.24em; }
}

/* Hero dots polish */
.hero-dots {
  bottom: 36px;
}

.hero-dot {
  width: 32px;
  height: 3px;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.is-active {
  background: #ffffff;
  transform: none;
  width: 56px;
}

/* =============================================
 * Stats Strip — 数字で見る東武証券
 * ============================================= */
.stats-strip {
  background: #ffffff;
  padding: 0;
  position: relative;
  margin-top: -80px;
  z-index: 10;
}

.stats-strip-inner {
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--color-primary);
}

.stats-item {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-right: 1px solid #ececec;
  position: relative;
}

.stats-item:last-child {
  border-right: none;
}

.stats-label {
  font-size: 1.15rem;
  color: var(--color-text-mute);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.stats-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--color-text);
}

.stats-number {
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-primary);
}

.stats-unit {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.stats-caption {
  font-size: 1.15rem;
  color: var(--color-text-mute);
  margin-top: 2px;
}

@media (max-width: 820px) {
  .stats-strip { margin-top: -40px; }
  .stats-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-item {
    padding: 22px 16px;
  }
  .stats-item:nth-child(1), .stats-item:nth-child(2) {
    border-bottom: 1px solid #ececec;
  }
  .stats-item:nth-child(2) {
    border-right: none;
  }
  .stats-number { font-size: 3.2rem; }
}

/* =============================================
 * Products slider — gentle polish
 * ============================================= */
.products-slider {
  padding-top: 100px;
}

.products-slider.section-tone-split::before {
  background: linear-gradient(180deg, #f5f7f6 0%, #efeff2 100%);
}

.product-card {
  border-radius: 4px;
  border: 1px solid #e8eaec;
}

.product-card-media {
  position: relative;
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.product-card-title {
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.product-card-meta {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-meta::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}

/* =============================================
 * News — subtle refinement
 * ============================================= */
.news-item a {
  padding: 24px 12px;
}

.news-tag {
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* =============================================
 * Products grid — visual upgrade
 * ============================================= */
.products-grid {
  padding-top: 90px;
  padding-bottom: 80px;
  background: var(--color-bg-alt);
}

.products-grid-list {
  margin-top: 32px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  column-gap: 0;
}

.products-grid-list li {
  border-top: 1px solid #e8eaec;
  border-right: 1px solid #e8eaec;
}

.products-grid-list li:nth-child(3n) {
  border-right: none;
}

.products-grid-list li:nth-child(-n+3) {
  border-top: none;
}

.products-grid-list li::before {
  display: none;
}

.products-grid-list li a {
  padding: 32px 24px;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  position: relative;
}

.products-grid-list li a::before {
  content: counter(prod-cnt, decimal-leading-zero);
  counter-increment: prod-cnt;
  position: absolute;
  left: 24px;
  top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.16em;
}

.products-grid-list {
  counter-reset: prod-cnt;
}

.products-grid-list li a {
  padding-top: 42px;
}

.products-grid-list li a::after {
  width: 32px;
  height: 32px;
  background-size: 10px;
}

.products-grid-list li a:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .products-grid-list li:nth-child(3n) {
    border-right: 1px solid #e8eaec;
  }
  .products-grid-list li:nth-child(2n) {
    border-right: none;
  }
  .products-grid-list li:nth-child(-n+3) {
    border-top: 1px solid #e8eaec;
  }
  .products-grid-list li:nth-child(-n+2) {
    border-top: none;
  }
}

@media (max-width: 480px) {
  .products-grid-list li {
    border-right: none !important;
    border-top: 1px solid #e8eaec !important;
  }
  .products-grid-list li:first-child {
    border-top: none !important;
  }
}

/* =============================================
 * Disclaimer — refined
 * ============================================= */
.disclaimer {
  background: var(--color-bg-alt);
  padding: 0 0 90px;
}

.disclaimer-inner {
  background: #ffffff;
  border: 1px solid #e8eaec;
  border-left: 4px solid var(--color-primary);
  padding: 32px 36px;
  gap: 40px;
}

.disclaimer-title {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
}

.disclaimer-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm.75 15h-1.5v-1.5h1.5V17zm0-3h-1.5V7h1.5v7z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 1.35rem;
  line-height: 1.95;
  color: #3a3a3a;
}

@media (max-width: 820px) {
  .disclaimer-inner { padding: 22px; }
}

/* =============================================
 * Recommend (Information)
 * ============================================= */
.recommend {
  padding-top: 90px;
  background: #ffffff;
}

.recommend-card-image {
  border-radius: 4px;
}

.recommend-card-lead {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.recommend-card-title {
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* =============================================
 * Action Banners polish
 * ============================================= */
.action-banners {
  background: #ffffff;
  padding-top: 20px;
  padding-bottom: 50px;
}

.action-banner a {
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* =============================================
 * Consult — promoted, branded
 * ============================================= */
.consult {
  padding: 0 0 80px;
  background: #ffffff;
}

.consult-card {
  background:
    linear-gradient(135deg, #007a35 0%, #009944 60%, #00b751 100%);
  border: none;
  padding: 44px 56px;
  color: #ffffff;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.consult-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

.consult-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}

.consult-text {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.3;
}

.consult-text small {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.consult-actions {
  position: relative;
  z-index: 1;
}

.consult-card .btn-primary {
  background: #ffffff;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.consult-card .btn-primary:hover {
  background: #f5f7f6;
  color: var(--color-primary-dark);
}

.consult-card .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.8);
}

.consult-card .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

@media (max-width: 820px) {
  .consult-card { padding: 28px 22px; }
  .consult-text { font-size: 2rem; }
}

/* =============================================
 * Contact bar — refined
 * ============================================= */
.contact-bar {
  background: linear-gradient(180deg, #16345a 0%, #0e2440 100%);
  padding: 22px 0;
}

.contact-label {
  font-size: 1.3rem;
  letter-spacing: 0.18em;
}

.contact-phone {
  font-size: 2.4rem;
  letter-spacing: 0.03em;
}

.contact-phone::before {
  width: 30px;
  height: 30px;
}

/* =============================================
 * Footer — refined spacing
 * ============================================= */
.site-footer {
  padding: 50px 0 28px;
}

.footer-links-row {
  gap: 8px 32px;
  font-size: 1.25rem;
}

.footer-links-row a {
  position: relative;
  padding-left: 14px;
}

.footer-links-row a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* =============================================
 * Slider buttons polish
 * ============================================= */
.slider-btn {
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
  background: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 153, 68, 0.25);
}

.slider-btn:hover {
  box-shadow: 0 6px 18px rgba(0, 153, 68, 0.4);
}

/* =============================================
 * Tweaks panel host styling (panel itself is built by JS)
 * ============================================= */
#tw-tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 0;
  z-index: 9999;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  color: var(--color-text);
  overflow: hidden;
  display: none;
}

#tw-tweaks-panel.is-active { display: block; }

#tw-tweaks-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e8eaec;
  background: #f9fafa;
}

#tw-tweaks-panel header strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#tw-tweaks-panel .tw-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  background: transparent;
}

#tw-tweaks-panel .tw-close:hover {
  background: #efeff2;
}

#tw-tweaks-panel .tw-section {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}

#tw-tweaks-panel .tw-section:last-child {
  border-bottom: none;
}

#tw-tweaks-panel .tw-label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}

#tw-tweaks-panel .tw-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#tw-tweaks-panel .tw-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}

#tw-tweaks-panel .tw-swatch.is-on {
  border-color: var(--color-text);
}

#tw-tweaks-panel .tw-swatch:hover {
  transform: scale(1.08);
}

#tw-tweaks-panel .tw-seg {
  display: flex;
  background: #efeff2;
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
}

#tw-tweaks-panel .tw-seg button {
  flex: 1;
  padding: 7px 8px;
  font-size: 1.15rem;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-mute);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

#tw-tweaks-panel .tw-seg button.is-on {
  background: #ffffff;
  color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Variant: hero center alignment */
body[data-hero-layout="center"] .hero-overlay {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0;
}

body[data-hero-layout="center"] .hero-overlay > .hero-copy-wrap {
  display: flex;
  justify-content: center;
}

body[data-hero-layout="center"] .hero-eyebrow {
  justify-content: center;
}

body[data-hero-layout="center"] .hero-cta-row {
  justify-content: center;
}

body[data-hero-layout="center"] .hero-slider::after {
  background:
    linear-gradient(180deg, rgba(0, 30, 18, 0.14) 0%, rgba(0, 30, 18, 0.22) 100%);
}

/* Variant: minimal hero — small copy left, no eyebrow */
body[data-hero-layout="minimal"] .hero-eyebrow,
body[data-hero-layout="minimal"] .hero-subcopy,
body[data-hero-layout="minimal"] .hero-cta-row {
  display: none;
}

body[data-hero-layout="minimal"] .hero-catchphrase {
  font-size: clamp(2.4rem, 3.4vw, 4.2rem);
}

body[data-hero-layout="minimal"] .hero-slider::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Density variant */
body[data-density="compact"] .news-item a { padding: 18px 10px; }
body[data-density="compact"] .products-grid-list li a { padding: 24px 24px 24px 24px; padding-top: 36px; }
body[data-density="compact"] .product-card-body { padding: 16px 14px 14px; }
