/* ================================================================
   Sample Superstore — Design System v2 "Wakuwaku"
   ================================================================ */
:root {
  --brand: #0e7c66;
  --brand-dark: #0a5c4c;
  --brand-light: #e6f4f1;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --pop-pink: #ec4899;
  --pop-violet: #8b5cf6;
  --pop-cyan: #06b6d4;
  --ink: #101828;
  --ink-soft: #5b6472;
  --line: #e5e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- Demo ribbon ---------------- */
.demo-ribbon {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 12.5px; padding: 7px 12px; letter-spacing: .02em;
  position: sticky; top: 0; z-index: 60;
}
.demo-ribbon strong { color: #fbbf24; font-weight: 700; }
.demo-ribbon.collapsed { display: block; } /* 免責は常時表示: 折りたたみ廃止 */
/* 折りたたみ後の常時表示ピル(左下固定) — コンプライアンス上、必ず何かは見える状態を保つ */
.demo-ribbon-pill {
  display: none; align-items: center; gap: 6px;
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 9px 16px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.demo-ribbon-pill strong { color: #fbbf24; }
.demo-ribbon-pill.show { display: inline-flex; }
.demo-ribbon-pill:hover { transform: translateY(-2px); }
@media (max-width: 768px) { .demo-ribbon-pill { bottom: 76px; } }

/* ---------------- Header ---------------- */
.site-header {
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--ribbon-h, 0px); z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; flex: 0 0 auto; }
.logo .mark { width: 34px; height: 34px; flex: 0 0 auto; transition: transform .4s; }
.logo:hover .mark { transform: rotate(-8deg) scale(1.08); }
.logo small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-soft); letter-spacing: .12em; line-height: 1.2; }

/* ---------------- ロゴ画像(店舗ロゴ) — 深緑地に金SAMPLE/白SUPERSTORE+カート意匠の画像ロックアップ。
   白地の .site-header ではそのまま角丸タイルとして使う。
   .p-header(トップページ密度ヘッダー・緑グラデ地)と .site-footer(#111c2e ダーク地)は背景色が
   ロゴ画像自体の深緑地に近い/暗いため、うっすら白いリング+影で縁取って浮かせる。 ---------------- */
.logo-img { height: 42px; width: auto; border-radius: 4px; display: block; flex: 0 0 auto; }
.logo-divider { width: 1px; height: 30px; background: var(--line); flex: 0 0 auto; }
.logo-jp { font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 12px; line-height: 1.55; color: var(--ink); white-space: nowrap; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* ダーク地(密度ヘッダー緑グラデ・フッター#111c2e)での上書き — ロゴ画像が背景に沈まないよう白リングで浮かせ、日本語・区切り線も白系にする */
.p-header .logo-jp, .site-footer .logo-jp { color: #fff; }
.p-header .logo-divider, .site-footer .logo-divider { background: rgba(255,255,255,.35); }
.p-header .logo-img, .site-footer .logo-img { box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.35); }
.site-footer .logo-img { height: 36px; }
@media (max-width: 768px) {
  .logo-divider, .logo-jp { display: none; }
}

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a { padding: 8px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: .15s; position: relative; }
.main-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.main-nav a.active { color: var(--brand-dark); background: var(--brand-light); }
.cart-link { position: relative; display: flex; align-items: center; gap: 6px; }
.cart-badge {
  position: absolute; top: -2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px;
  animation: pop .3s;
}
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cart-badge.empty { display: none; }

/* ---------------- ヘッダー内検索(オートコンプリート) ---------------- */
.hdr-search { position: relative; flex: 1 1 auto; max-width: 340px; margin: 0 4px; }
.hdr-search .ss-search-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  padding: 8px 16px; font-family: inherit; font-size: 13.5px; transition: .15s;
}
.hdr-search .ss-search-input:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(14,124,102,.14);
}
.ss-ac-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 80; max-height: 360px; overflow-y: auto; display: none;
}
.ss-ac-drop.show { display: block; }
.ss-ac-item { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 12.5px; cursor: pointer; }
.ss-ac-item .thumb { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: var(--bg-soft); }
.ss-ac-item .thumb img, .ss-ac-item .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-ac-item .t { flex: 1; min-width: 0; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.ss-ac-item .ss-ac-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-ac-id { font-family: ui-monospace, monospace; font-size: 11px; color: var(--ink-soft); }
.ss-ac-id.shared { color: #92400e; font-weight: 700; }
.ss-ac-item .p { font-weight: 800; color: var(--brand-dark); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.ss-ac-item.on, .ss-ac-item:hover { background: var(--brand-light); }
.ss-ac-empty { padding: 16px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

/* ---------------- ヘッダーのカート独立ブロック ---------------- */
.hdr-cart { position: relative; flex: 0 0 auto; }
.hdr-cart-pill {
  display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
  border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 800; font-size: 13.5px;
  transition: .18s; box-shadow: 0 2px 10px rgba(14,124,102,.32); white-space: nowrap;
}
.hdr-cart-pill:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hdr-cart-icon { position: relative; font-size: 17px; line-height: 1; display: inline-flex; }
.hdr-cart-icon .cart-badge { position: absolute; top: -11px; right: -13px; background: var(--accent); }
.hdr-cart-sub { font-variant-numeric: tabular-nums; }
.hdr-cart-drop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 80;
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.hdr-cart:hover .hdr-cart-drop, .hdr-cart:focus-within .hdr-cart-drop { opacity: 1; visibility: visible; transform: none; }
.hdr-cart-drop-empty { padding: 18px 8px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.hdr-cart-drop-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.hdr-cart-drop-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; }
.hdr-cart-drop-item:hover { background: var(--bg-soft); }
.hdr-cart-drop-item .thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: 0 0 44px; background: var(--bg-soft); }
.hdr-cart-drop-item .thumb img, .hdr-cart-drop-item .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdr-cart-drop-item .t { flex: 1; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hdr-cart-drop-item .t small { color: var(--ink-soft); font-weight: 600; }
.hdr-cart-drop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 12.5px; }
.hdr-cart-drop-foot b { color: var(--brand-dark); }

/* ---------------- モバイル下部固定バー ---------------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,24,40,.10);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10px; font-weight: 700; color: var(--ink-soft); padding: 6px 2px; position: relative;
  }
  .mobile-bar a span:first-child { font-size: 19px; line-height: 1; position: relative; }
  .mobile-bar .cart-badge { position: absolute; top: -6px; right: -12px; }
  body { padding-bottom: 64px; }
  .hdr-search { display: none; }
  .hdr-cart-sub { display: none; }
  .hdr-cart-drop { display: none !important; }
}

/* ---------------- Hero v2 ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(-45deg, #0a5c4c, #0e7c66, #0891b2, #6d28d9, #0e7c66);
  background-size: 400% 400%;
  animation: heroflow 16s ease infinite;
  padding: 84px 0 70px;
}
@keyframes heroflow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.18) 0%, transparent 42%),
              radial-gradient(circle at 12% 88%, rgba(255,255,255,.10) 0%, transparent 38%);
}
.hero-float { position: absolute; font-size: 42px; opacity: .28; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 900; line-height: 1.25; letter-spacing: .01em; position: relative; }
.hero h1 .grad { background: linear-gradient(90deg, #fde68a, #fca5a5, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 18px; font-size: 16.5px; opacity: .94; max-width: 580px; position: relative; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.hero-stats { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.stat-chip {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); padding: 10px 18px; border-radius: 12px; font-size: 13.5px;
  transition: .2s;
}
.stat-chip:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.stat-chip b { font-size: 18px; margin-right: 4px; }

/* ---------------- Ticker ---------------- */
.ticker-wrap { background: var(--ink); color: #e7ecf3; overflow: hidden; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ticker { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: tick 40s linear infinite; font-size: 13px; }
.ticker span b { color: #fbbf24; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: none; transition: .2s; position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(120deg, var(--accent), #f97316); color: #fff; box-shadow: 0 6px 18px rgba(245,158,11,.35); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgba(245,158,11,.45); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 26px; font-weight: 900; letter-spacing: .01em; }
.section-head .sub { color: var(--ink-soft); font-size: 13.5px; }
.section-head a.more { color: var(--brand); font-weight: 700; font-size: 14px; transition: .15s; }
.section-head a.more:hover { letter-spacing: .04em; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; margin-bottom: 6px; }

/* ---------------- Category cards ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  border-radius: 18px; padding: 30px 26px; color: #fff; position: relative;
  overflow: hidden; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.cat-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.cat-card .emoji { position: absolute; right: 10px; top: 4px; font-size: 84px; opacity: .3; transition: .35s; }
.cat-card:hover .emoji { transform: scale(1.15) rotate(8deg); opacity: .45; }
.cat-card h3 { font-size: 22px; font-weight: 900; }
.cat-card p { font-size: 13px; opacity: .92; margin-top: 4px; }
.cat-card .cnt { position: absolute; top: 18px; left: 24px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 12px; backdrop-filter: blur(4px); }
.cat-office { background: linear-gradient(135deg, #0e7c66, #10b981); }
.cat-furniture { background: linear-gradient(135deg, #b45309, #f59e0b); }
.cat-tech { background: linear-gradient(135deg, #4338ca, #8b5cf6); }

/* ---------------- Product cards ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.prod-tile { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.prod-tile svg.art { width: 100%; height: 100%; display: block; transition: transform .4s; }
.prod-card:hover .prod-tile svg.art { transform: scale(1.06); }
img.art.photo { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f4f2ec; transition: transform .4s; }
.prod-card:hover .prod-tile img.art.photo { transform: scale(1.06); }
.detail-tile img.art.photo { height: auto; aspect-ratio: 4/3; }
.cart-item .thumb img.art.photo { height: auto; aspect-ratio: 4/3; }
.prod-tile .rank {
  position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff;
  width: 27px; height: 27px; border-radius: 8px; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.prod-tile .rank.r1 { background: linear-gradient(135deg,#f59e0b,#d4a017); } .prod-tile .rank.r2 { background: #8a94a6; } .prod-tile .rank.r3 { background: #a05a2c; }
.prod-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-sub { font-size: 11.5px; color: var(--brand-dark); font-weight: 700; }
.prod-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price { font-size: 17px; font-weight: 800; }
.prod-price small { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.prod-meta { font-size: 11.5px; color: var(--ink-soft); }

/* ---------------- Chips ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; transition: .18s; display: inline-flex; gap: 7px; align-items: center;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); transform: translateY(-2px); }

/* ---------------- Feature band ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature .icon { font-size: 34px; }
.feature h4 { font-size: 14.5px; font-weight: 800; margin-top: 8px; }
.feature p { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------------- Story cards ---------------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.story-cover { aspect-ratio: 16/8.5; position: relative; display: flex; align-items: center; justify-content: center; font-size: 52px; overflow: hidden; }
.story-cover .big { filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transition: .35s; }
.story-card:hover .story-cover .big { transform: scale(1.18) rotate(-4deg); }
.story-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .06em; border-radius: 6px; padding: 3px 10px; }
.tag-interview { background: #ede9fe; color: #6d28d9; }
.tag-data { background: #e6f4f1; color: #0a5c4c; }
.tag-inside { background: #fef3c7; color: #b45309; }
.tag-culture { background: #fce7f3; color: #be185d; }
.story-title { font-size: 15.5px; font-weight: 800; line-height: 1.5; flex: 0; }
.story-ex { font-size: 12.5px; color: var(--ink-soft); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { font-size: 11.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.story-fact { font-size: 11px; font-weight: 700; color: var(--brand-dark); background: var(--brand-light); border-radius: 6px; padding: 2px 8px; }

.story-cover { position: relative; }
.story-cover .pat { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-cover .cover-photo {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s;
}
.story-card:hover .cover-photo { transform: scale(1.06); }
.article-hero .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.article-hero .hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(13,20,33,.88) 25%, rgba(13,20,33,.55) 60%, rgba(13,20,33,.35));
}
.article-hero .container, .article-hero .emoji-bg { position: relative; z-index: 2; }
figure.article-photo { margin: 2.2em 0; }
figure.article-photo img { width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow); }
figure.article-photo figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; text-align: right; }
.story-cover .big { position: relative; z-index: 2; }
.cover-num {
  position: absolute; right: 12px; bottom: 6px; z-index: 2;
  font-size: 30px; font-weight: 900; letter-spacing: -.01em;
  color: #1a2233; opacity: .32; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.story-author { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.story-author svg { border-radius: 50%; flex: 0 0 auto; }

/* 記事バイライン */
.byline { display: inline-flex; align-items: center; gap: 10px; margin-right: 8px; }
.byline svg { border-radius: 50%; border: 2px solid rgba(255,255,255,.65); }
.byline b { font-size: 14px; }
.byline small { font-size: 11px; opacity: .8; }

/* 記事内チャート */
.article-chart {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 14px; margin: 2.2em 0; box-shadow: var(--shadow);
}
.article-chart h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.article-chart .wrap { position: relative; height: 260px; }
.article-chart .src { font-size: 11px; color: var(--ink-soft); margin-top: 10px; text-align: right; }

/* story filter bar */
.story-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.story-filter button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); transition: .18s;
}
.story-filter button:hover { border-color: var(--brand); color: var(--brand-dark); }
.story-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- Article page ---------------- */
.article-hero { color: #fff; padding: 70px 0 54px; position: relative; overflow: hidden; }
.article-hero .emoji-bg { position: absolute; right: -20px; bottom: -34px; font-size: 200px; opacity: .16; transform: rotate(-8deg); }
.article-hero h1 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; line-height: 1.4; max-width: 820px; position: relative; }
.article-hero .meta { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; opacity: .92; position: relative; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 20px 20px; font-size: 15.5px; line-height: 2.05; }
.article-body p { margin-bottom: 1.6em; }
.article-body .fact-box {
  background: var(--bg-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 2em 0; font-size: 13.5px; line-height: 1.9;
}
.article-body .fact-box b { color: var(--brand-dark); }
.article-nav { max-width: 760px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.article-disclaimer { max-width: 760px; margin: 0 auto; padding: 0 20px 40px; font-size: 12px; color: var(--ink-soft); }

/* ---------------- Data banner ---------------- */
.data-banner {
  background: linear-gradient(120deg, #111c2e 0%, #1e3a5f 60%, #0e7c66 130%); color: #fff;
  border-radius: 20px; padding: 44px 48px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.data-banner::after { content: "📊"; position: absolute; right: 24px; top: -18px; font-size: 130px; opacity: .14; transform: rotate(10deg); pointer-events: none; }
.data-banner h3 { font-size: 25px; font-weight: 900; }
.data-banner p { opacity: .88; font-size: 14px; margin-top: 8px; max-width: 520px; }
.data-banner .spacer { flex: 1; }

/* ---------------- Partners ---------------- */
.partner-band { padding: 44px 0 56px; }
.partner-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.partner-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 26px;
  font-weight: 800; font-size: 15px; transition: .2s; min-width: 210px;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.partner-card .plogo { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 900; flex: 0 0 auto; }
.partner-card small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.partner-note { text-align: center; font-size: 11.5px; color: var(--ink-soft); margin-top: 18px; }

/* ---------------- Catalog layout ---------------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; padding: 34px 0 60px; }
.filters { position: sticky; top: calc(84px + var(--ribbon-h, 0px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 4px; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.filter-group input { accent-color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--ink-soft); font-size: 13.5px; }
.toolbar select, .search-input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-family: inherit; font-size: 14px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.toolbar select:focus, .search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,102,.14); }
.search-input { flex: 1; min-width: 220px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 13.5px; transition: .15s;
}
.pagination button.cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination button:hover:not(.cur):not(:disabled) { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }

/* ---------------- Product detail ---------------- */
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--brand-dark); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 26px 0 50px; align-items: start; }
.detail-tile { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.detail-tile svg.art { width: 100%; height: auto; display: block; }
.detail h1 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.detail .price { font-size: 32px; font-weight: 900; margin: 14px 0 2px; }
.detail .price small { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.detail .tax-note { font-size: 12px; color: var(--ink-soft); }
.buy-box { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty-row label { font-size: 13.5px; font-weight: 700; }
.qty-ctl { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-ctl button { width: 38px; height: 38px; border: none; background: #fff; font-size: 17px; font-weight: 700; }
.qty-ctl button:hover { background: var(--brand-light); }
.qty-ctl input { width: 52px; text-align: center; border: none; font-size: 15px; font-weight: 700; font-family: inherit; }
.qty-ctl input:focus { outline: none; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 13.5px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 130px; }
.badge { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 3px 9px; }
.badge.hot { background: #fef3c7; color: #b45309; }
/* Stage-2: 複合キー化(製品ID×製品名)関連UI */
.badge.shared { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.shared-note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 14px 16px; margin-top: 18px; font-size: 12.5px; line-height: 1.8; color: #78350f;
}
.shared-note b { color: #92400e; }
.shared-note code { background: #fff; border: 1px solid #fde68a; border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }
.ambiguous-notice {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; text-align: center;
}
.ambiguous-notice .ambiguous-icon { font-size: 40px; }
.ambiguous-notice h2 { font-size: 19px; font-weight: 800; margin: 10px 0 8px; }
.ambiguous-notice p { max-width: 560px; margin: 0 auto 20px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.ambiguous-notice p code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.ambiguous-grid { max-width: 560px; margin: 0 auto; grid-template-columns: repeat(2, 1fr); text-align: left; }

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; padding: 34px 0 60px; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  transition: .2s;
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item .thumb { width: 92px; border-radius: 10px; overflow: hidden; display: block; }
.cart-item .thumb svg.art { display: block; width: 100%; height: auto; }
.cart-item .name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cart-item .sub { font-size: 12px; color: var(--ink-soft); }
.cart-item .line-price { font-weight: 800; font-size: 16px; text-align: right; }
.cart-item .remove { background: none; border: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.cart-item .remove:hover { text-decoration: underline; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(84px + var(--ribbon-h, 0px)); }
.summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.sum-row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 900; }
.summary select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 13.5px; margin: 4px 0 10px; }
.demo-note {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: 12px 14px; font-size: 12.5px; margin-top: 14px; line-height: 1.6;
}
.empty-state { text-align: center; padding: 70px 0; color: var(--ink-soft); }
.empty-state .icon { font-size: 56px; }
.empty-state h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 12px 0 6px; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 20px; max-width: 480px; width: 100%;
  padding: 36px 32px; text-align: center; transform: translateY(16px) scale(.97); transition: .3s cubic-bezier(.16,1,.3,1);
  max-height: 88vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal .check {
  width: 76px; height: 76px; border-radius: 50%; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 38px;
  animation: pop .5s .1s both;
}
.modal h2 { font-size: 21px; font-weight: 800; }
.modal .order-id { font-family: ui-monospace, monospace; background: var(--bg-soft); border-radius: 8px; padding: 10px; margin: 16px 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.modal p { font-size: 13.5px; color: var(--ink-soft); }

/* confetti */
.confetti { position: fixed; top: -12px; z-index: 120; font-size: 18px; animation: confall linear forwards; pointer-events: none; }
@keyframes confall { to { transform: translateY(105vh) rotate(720deg); opacity: .6; } }

/* ---------------- About / Data page ---------------- */
.about-hero { background: linear-gradient(120deg, #111c2e 0%, #1e3a5f 70%, #0e7c66 130%); color: #fff; padding: 68px 0 58px; position: relative; overflow: hidden; }
.about-hero::after { content: ""; position: absolute; right: -140px; top: -100px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(14,124,102,.5), transparent 70%); }
.about-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; position: relative; }
.about-hero p { margin-top: 12px; opacity: .88; max-width: 640px; font-size: 15px; position: relative; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 38px; position: relative; }
.kpi {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 16px 14px; text-align: center; transition: .2s;
}
.kpi:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.kpi .v { font-size: 22px; font-weight: 900; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 12px; font-weight: 600; }
.kpi .l { font-size: 11.5px; opacity: .78; margin-top: 3px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 16.5px; font-weight: 800; }
.chart-card .desc { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 16px; }
.chart-wrap { position: relative; height: 320px; }
.chart-wrap.tall { height: 420px; }
.chart-wrap.short { height: 260px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-32 { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; }
.mt { margin-top: 22px; }
.toggle-row { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.toggle-row button { border: none; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.toggle-row button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .2s; }
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.region-card h4 { font-size: 14.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.region-card .mgr { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.region-card .mgr a { color: var(--brand-dark); font-weight: 700; }
.region-card .mgr a:hover { text-decoration: underline; }
.region-card .val { font-size: 17px; font-weight: 900; margin-top: 8px; }
.region-card .bar { height: 6px; background: var(--bg-soft); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.region-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #10b981); border-radius: 4px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rank-table th { text-align: left; color: var(--ink-soft); font-weight: 600; font-size: 12px; border-bottom: 2px solid var(--line); padding: 8px; }
.rank-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; }
.rank-table .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.insight {
  border-left: 4px solid var(--accent); background: #fffbeb;
  border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 13.5px; margin-top: 16px;
}
.insight b { color: #b45309; }

/* ---------------- Footer ---------------- */
.site-footer { background: #111c2e; color: #c6cedb; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 48px 0 36px; }
.footer-grid h4 { color: #fff; font-size: 13.5px; font-weight: 800; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 7px 0; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .desc { font-size: 12.5px; line-height: 1.8; margin-top: 10px; opacity: .8; }
.footer-partners { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.footer-partners a {
  font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  padding: 7px 14px; transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.footer-partners a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; opacity: .7; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none; transition: .3s;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-32 { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .main-nav a:not(.cart-link) { padding: 8px 7px; font-size: 12px; }
  .header-inner { gap: 8px; }
  .logo { font-size: 14px; }
  .logo small { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-float { display: none; }
}

/* ---------------- 施策3: rankbadge (P1マージ) ---------------- */
.badge.rankbadge { background: #fff7e0; color: #92400e; }

/* ---------------- 商品詳細: データで語る(販売実績スタッツ) ---------------- */
.stats-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.stats-grid .stat-cooc { grid-column: 1 / -1; }
.stats-grid .pbox { margin-bottom: 0; }

.stat-summary { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.stat-summary b { color: var(--ink); font-size: 15px; }

.spark-row { display: flex; align-items: flex-end; gap: 14px; }
.spark-wrap { flex: 1; min-width: 0; }
.spark-wrap svg { display: block; width: 100%; height: auto; }
.bars-wrap { flex: 0 0 96px; width: 96px; }
.bars-wrap svg { display: block; width: 100%; height: auto; }

.region-copy { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.region-copy b { color: var(--brand-dark); font-weight: 800; }
.region-bar-list { display: flex; flex-direction: column; gap: 7px; }
.region-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.region-name { flex: 0 0 76px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-bar-track { flex: 1; height: 9px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.region-bar-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #10b981); }
.region-bar-row.top .region-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.region-bar-row.top .region-name { color: var(--ink); font-weight: 700; }
.region-pct { flex: 0 0 32px; text-align: right; font-weight: 800; color: var(--ink); }

.cooc-grid.prod-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cooc-grid.prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cooc-grid.prod-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   グローバルネットワークページ (global.html) — .gnet- プレフィックス
   ================================================================ */
.gnet-footnote { font-size: 12px; color: var(--ink-soft); margin-top: 16px; }

/* エリア色(既存の --brand / --accent / --pop-* アクセントに揃えた5色 + 商圏外グレー) */
:root {
  --gnet-c-na: var(--accent);
  --gnet-c-eu: var(--pop-cyan);
  --gnet-c-jp: var(--brand);
  --gnet-c-cn: var(--pop-violet);
  --gnet-c-apac: var(--pop-pink);
  --gnet-c-none: #cbd5e1;
}

.gnet-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gnet-area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 22px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.gnet-area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gnet-area-card.is-here { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light), var(--shadow); }

/* ネットワーク合計カード(6枠目) — 他カードと調和しつつ「合計」と分かる差別化 */
.gnet-area-card.is-total {
  position: relative;
  border: 2px dashed var(--ink);
  background: linear-gradient(160deg, var(--bg-soft), #fff 70%);
}
.gnet-area-card.is-total::before {
  content: "5エリア合計";
  position: absolute; top: -11px; left: 20px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 11px; border-radius: 999px; letter-spacing: .02em;
}
.gnet-total-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: center; }
.gnet-total-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; }
.gnet-total-stats b { display: block; font-size: 16.5px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }
.gnet-total-stats span { font-size: 10.5px; color: var(--ink-soft); }
.gnet-total-note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 10px; }
.gnet-area-head { display: flex; align-items: flex-start; gap: 12px; }
.gnet-area-flag { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.gnet-area-titles { display: flex; flex-direction: column; gap: 4px; }
.gnet-area-titles h3 { font-size: 17px; font-weight: 900; }
.gnet-area-titles h3 small { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.gnet-area-titles .badge.hot { align-self: flex-start; }
.gnet-area-hq { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.gnet-area-hq b { color: var(--ink); }
.gnet-area-hq sup { color: var(--brand); font-weight: 800; }
.gnet-area-sales { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.gnet-sales-v { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gnet-sales-v small { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.gnet-sales-note { font-size: 11px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gnet-cur-badge { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.gnet-cur-badge.warn { background: #fffbeb; color: #92400e; }
.gnet-area-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.gnet-area-stats div { background: var(--bg-soft); border-radius: 10px; padding: 8px 4px; }
.gnet-area-stats b { display: block; font-size: 15.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gnet-area-stats span { font-size: 10.5px; color: var(--ink-soft); }
.gnet-area-top { border-top: 1px dashed var(--line); padding-top: 10px; }
.gnet-top-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.gnet-top-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.gnet-top-name { flex: 0 0 auto; min-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnet-top-bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.gnet-top-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brand), #10b981); }
.gnet-top-pct { flex: 0 0 40px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- 世界地図 ---- */
.gnet-worldmap-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow);
}
.gnet-map-svg-holder { width: 100%; line-height: 0; }
.gnet-map-svg-holder svg { width: 100%; height: auto; display: block; background: var(--bg-soft); border-radius: 10px; }
.gnet-map-country { stroke: #fff; stroke-width: .5; transition: opacity .15s; }
.gnet-map-marker { stroke: #fff; stroke-width: 1; transition: opacity .15s; }
.gnet-map-country:hover, .gnet-map-marker:hover { opacity: .72; cursor: pointer; }
.gnet-map-country.gnet-map-nocover { fill: var(--gnet-c-none); }
.gnet-map-area-na { fill: var(--gnet-c-na); }
.gnet-map-area-eu { fill: var(--gnet-c-eu); }
.gnet-map-area-jp { fill: var(--gnet-c-jp); }
.gnet-map-area-cn { fill: var(--gnet-c-cn); }
.gnet-map-area-apac { fill: var(--gnet-c-apac); }
.gnet-map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.gnet-map-legend .item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.gnet-map-legend .sw { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; display: inline-block; }
.gnet-map-note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.75; margin-top: 12px; }
.gnet-map-loading { padding: 60px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }

.gnet-cov-block { margin-bottom: 22px; }
.gnet-cov-block:last-child { margin-bottom: 0; }
.gnet-cov-block h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.gnet-cov-block h4 .sub { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }

.gnet-mystery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gnet-mystery-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; box-shadow: var(--shadow); position: relative; transition: transform .25s, box-shadow .25s;
}
.gnet-mystery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gnet-mystery-num { font-size: 26px; font-weight: 900; color: var(--brand); opacity: .5; margin-bottom: 4px; }
.gnet-mystery-card h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.gnet-mystery-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.85; }
.gnet-mystery-card code { background: var(--bg-soft); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }

@media (min-width: 961px) {
  /* 七不思議=7枚固定。3列グリッドだと3+3+1になるため、最後の1枚(7枚目)だけ
     中央列に寄せて座りをよくする(カード枚数が変わらない前提の固定ルール)。 */
  .gnet-mystery-grid > *:nth-child(7):last-child { grid-column: 2; }
}
@media (max-width: 960px) {
  .gnet-mystery-grid { grid-template-columns: 1fr; }
  .gnet-area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gnet-area-grid { grid-template-columns: 1fr; }
}
