:root {
  --bg: #0a0e14;
  --bg-elevated: #111820;
  --surface: #161f2c;
  --surface-hover: #1c2736;
  --text: #eef2f7;
  --muted: #8b9aaf;
  --accent: #5b9cfa;
  --accent-soft: rgba(91, 156, 250, 0.15);
  --amazon: #ff9900;
  --rakuten: #e11d2e;
  --ec: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.page-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 156, 250, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(52, 211, 153, 0.08), transparent),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(255, 153, 0, 0.06), transparent),
    var(--bg);
  pointer-events: none;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.landing-header {
  margin-bottom: 2.25rem;
}

.landing-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.landing-header h1 {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.landing-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36em;
}

header:not(.landing-header):not(.ec-header) {
  margin-bottom: 2rem;
}

.banners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.banner-link:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.25),
    0 28px 56px rgba(0, 0, 0, 0.4);
}

.banner-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  min-height: 92px;
  position: relative;
}

.banner-amazon {
  background: linear-gradient(135deg, #1a2330 0%, #2d3d52 55%, #1f2a3a 100%);
  border-left: 4px solid var(--amazon);
}

.banner-rakuten {
  background: linear-gradient(135deg, #4a0c10 0%, #7a151c 50%, #5c1015 100%);
  border-left: 4px solid rgba(255, 255, 255, 0.95);
}

.banner-ec {
  background: linear-gradient(135deg, #0d2818 0%, #14532d 45%, #166534 100%);
  border-left: 4px solid var(--ec);
}

.banner-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.banner-amazon .banner-icon {
  background: linear-gradient(145deg, #ffb84d, var(--amazon));
  color: #1a1003;
}

.banner-rakuten .banner-icon {
  background: linear-gradient(145deg, #fff, #f5f5f5);
  color: var(--rakuten);
}

.banner-ec .banner-icon {
  background: linear-gradient(145deg, #4ade80, var(--ec));
  color: #052e16;
}

.banner-body {
  flex: 1;
  min-width: 0;
}

.banner-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.88;
  margin-bottom: 0.3rem;
}

.banner-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.banner-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.banner-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ec-ad-link:hover .banner-chevron {
  opacity: 0.85;
  transform: translateX(2px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

footer.note {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--muted);
}

footer.note code {
  font-size: 0.78em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

/* EC store */
.ec-body {
  background: var(--bg);
  position: relative;
}

.ec-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(91, 156, 250, 0.1), transparent 55%),
    var(--bg);
  pointer-events: none;
}

.ec-header {
  background: rgba(17, 24, 32, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ec-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ec-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.ec-logo-mark {
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.15em;
}

.ec-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.ec-nav-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.ec-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.ec-hero {
  margin-bottom: 2.5rem;
}

.ec-hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.ec-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.ec-hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40em;
  line-height: 1.6;
}

.ec-ad-section {
  margin-top: 0.5rem;
}

.ec-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.ec-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.ec-section-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ec-banners .banner {
  min-height: 96px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.breadcrumb-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.45;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.product-article {
  margin-top: 0.25rem;
}

.product-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .product-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.product-visual-wrap {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-visual {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

.product-theme-amazon .product-visual {
  background: linear-gradient(145deg, #2d3d52 0%, #1a2330 50%, #232f3e 100%);
  color: #fff;
}

.product-theme-rakuten .product-visual {
  background: linear-gradient(145deg, #8b1515 0%, #5c0a0a 50%, #6b1014 100%);
}

.product-theme-ec .product-visual {
  background: linear-gradient(145deg, #166534 0%, #0d2818 50%, #14532d 100%);
}

.product-channel {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.product-detail h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-detail .price {
  font-size: 1.45rem;
  color: var(--ec);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.product-theme-amazon .product-detail .price {
  color: var(--amazon);
}

.product-theme-rakuten .product-detail .price {
  color: #f87171;
}

.product-desc {
  color: var(--muted);
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, #6ba8fc 0%, var(--accent) 100%);
  color: #0a1628;
  box-shadow: 0 2px 8px rgba(91, 156, 250, 0.35);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.product-theme-amazon .btn {
  background: linear-gradient(180deg, #ffc14d 0%, var(--amazon) 100%);
  color: #1a1003;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.35);
}

.product-theme-rakuten .btn {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.product-theme-ec .btn {
  background: linear-gradient(180deg, #4ade80 0%, #059669 100%);
  color: #052e16;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.35);
}

.tracking-debug {
  margin-top: 2.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tracking-debug strong {
  color: var(--text);
  font-weight: 600;
}
