/* ==========================================================================
   バズノビ Corporate Site - Common Stylesheet
   Base: White / Accent: Green (Teal) / Style: Simple & Modern
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #eef6f5;
  --color-bg-dark: #17181c;
  --color-text: #1a1a1e;
  --color-text-sub: #6b6f76;
  --color-text-inverse: #ffffff;
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #f0fdfa;
  --color-primary-soft: #2dd4bf;
  --color-border: #ebebee;
  --color-border-dark: #2a2b30;

  --font-base: "Yu Gothic Medium", "Yu Gothic", YuGothic, "游ゴシック体", "游ゴシック",
    "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
  --font-heading: "Yu Gothic Bold", "Yu Gothic Medium", "Yu Gothic", YuGothic, "游ゴシック体",
    "游ゴシック", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI",
    sans-serif;

  --max-width: 1360px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --shadow-s: 0 2px 8px rgba(20, 20, 25, 0.06);
  --shadow-m: 0 8px 30px rgba(20, 20, 25, 0.08);
  --shadow-l: 0 20px 60px rgba(20, 20, 25, 0.12);

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo,
.plan-price,
.value-num {
  font-family: var(--font-heading);
  /* font-weight is already at the CSS ceiling (900) on these elements;
     a hairline text-stroke pushes the rendered weight a touch further
     for extra visual impact. Degrades harmlessly on browsers without
     -webkit-text-stroke support (plain 900 weight is still applied). */
  -webkit-text-stroke: 0.4px currentColor;
}

.section-tag,
.btn,
.main-nav a[aria-current="page"] {
  -webkit-text-stroke: 0.2px currentColor;
}

body {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative gradient blobs
   ========================================================================== */

.deco-section {
  position: relative;
  overflow: hidden;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.deco-blob--teal {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 72%);
}

.deco-blob--mint {
  background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 72%);
  opacity: 0.32;
}

.deco-blob--glow {
  background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 70%);
  opacity: 0.28;
}

.deco-blob--white {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  opacity: 0.25;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 18px) scale(1.06); }
}

.deco-blob {
  animation: blobDrift 14s ease-in-out infinite;
}

.deco-blob--slow {
  animation-duration: 20s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .deco-blob {
    animation: none;
  }
}

/* Ensure section content sits above the blob layer
   (blobs are siblings of .container, positioned absolute/z-index:0 above) */
.deco-section > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Prevent CSS Grid items from growing past their track due to
   unshrinkable content (the classic implicit min-width:auto issue) */
.hero-grid > *,
.grid-3 > *,
.grid-2 > *,
.footer-grid > *,
.contact-layout > *,
.demo-stats > * {
  min-width: 0;
}

section {
  padding: 108px 0;
}

@media (max-width: 768px) {
  section {
    padding: 68px 0;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* Hero eyebrow tag: sized up from the standard .section-tag for stronger first-view presence. */
.section-tag--lg {
  font-size: 18px;
  padding: 9px 20px;
}

/* "日本初" claim badge — a distinct amber pill used to call out a first-in-Japan claim,
   readable on both plain white sections and the flagship's colored gradient background. */
.claim-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(120deg, #f59e0b, #f97316);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  margin-bottom: 16px;
}

/* Larger claim badge variant for the demo section, where "日本初" needs to read at a glance. */
.claim-badge--lg {
  font-size: 19px;
  padding: 10px 22px;
}
.claim-badge--lg + .claim-note {
  font-size: 14px;
}
.claim-note {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-left: 8px;
}
.spotlight-text .claim-badge { margin-bottom: 0; }
.spotlight-text .claim-badge + .claim-note { display: block; margin-left: 0; margin-top: 8px; margin-bottom: 14px; }
.spotlight--flagship .claim-note { color: rgba(255, 255, 255, 0.65); }

/* Hero headline: a smaller lead-in line + a highlighter-pen accent on the key word,
   so the big bold line reads as a crafted headline rather than a flat template block. */
.hero-lead {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--color-text-sub);
  margin-bottom: 6px;
}
.hero-highlight {
  position: relative;
  color: var(--color-primary-dark);
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.38) 0%, rgba(45, 212, 191, 0.38) 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 90%;
  padding: 0 3px;
}

.section-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--color-text-sub);
  font-size: 18px;
  max-width: 700px;
}

.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 780px;
}

.section-head .section-lead {
  margin: 0 auto;
}

.bg-alt {
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(rgba(13, 148, 136, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.bg-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.bg-dark .section-lead {
  color: #a9abb3;
}

/* Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

/* Fallback hover feedback for any .btn that isn't a .btn-primary/.btn-outline
   variant (e.g. a plain white CTA button on a colored section background).
   .btn-primary:hover / .btn-outline:hover below take precedence where they apply. */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline.on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline.on-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 26px 50px;
  font-size: 18px;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

/* Anchor target for the single-page nav (TOP page's #features section).
   Offsets the scroll position so content isn't hidden behind the sticky
   header when jumping via nav link or URL hash. */
#features {
  scroll-margin-top: 116px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  position: relative;
  flex: none;
}

.logo .mark::before,
.logo .mark::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: #fff;
}

.logo .mark::before {
  width: 4px;
  height: 16px;
  left: 12px;
  top: 11px;
  transform: rotate(20deg);
}

.logo .mark::after {
  width: 4px;
  height: 10px;
  left: 21px;
  top: 17px;
  transform: rotate(20deg);
}

.logo span.brand-sub {
  color: var(--color-text-sub);
  font-weight: 700;
  font-size: 12px;
  display: block;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* .main-nav a { color: var(--color-text); } is more specific than
   .btn-primary { color: #fff; } since both header-cta buttons live
   inside .main-nav, so it was silently overriding the primary button's
   text to dark. Force it back to white here explicitly. */
.main-nav .btn-primary,
.main-nav .btn-primary:hover {
  color: #fff;
}

/* Header CTA buttons: match the surrounding nav link weight instead of
   the bolder default .btn weight, and drop the primary button's glow
   shadow (was reading as a blur/halo around the button).

   Note: .main-nav a { padding: 6px 0; font-size: 15.5px; } is more
   specific than the plain .btn-sm class, so it was silently overriding
   .btn-sm's padding/font-size this whole time too (same root cause as
   the color bug above) — every previous "make the button bigger" edit
   to .btn-sm had zero visible effect. Setting padding/font-size here,
   scoped to .header-cta .btn, finally wins the specificity fight. */
.header-cta .btn {
  padding: 20px 40px;
  font-size: 15.5px;
  font-weight: 800;
}

.header-cta .btn-primary,
.header-cta .btn-primary:hover {
  box-shadow: none;
}

/* Utility bar: thin strip above the header for secondary/legal links,
   kept out of .main-nav so it never competes with the primary nav for
   space (that caused links to shrink-wrap into single characters at
   in-between desktop widths). */
.utility-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.utility-bar a {
  color: var(--color-text-sub);
  transition: color var(--transition);
}

.utility-bar a:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .utility-bar .container {
    justify-content: center;
    font-size: 12px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    height: calc(100vh - 100px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav ul a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
  }

  .header-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-dark);
  color: #cfd0d5;
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-dark);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #9294a0;
  font-size: 15px;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: 13px;
}

.footer-col a {
  font-size: 15px;
  color: #9294a0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #71727c;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links a {
  color: #71727c;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: #fff;
}

.footer-legal-links a + a {
  margin-left: 2px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Hero (inner pages)
   ========================================================================== */

.page-hero {
  padding: 76px 0 64px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 900;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-sub);
  max-width: 700px;
  font-size: 18px;
}

/* Cards / Grid utilities
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* When a card count doesn't divide evenly into the grid, switch to a
   centered flex-wrap layout so the leftover last-row card(s) sit
   centered instead of dangling to the left with empty space beside them. */
.grid-3.is-centered,
.grid-4.is-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.grid-3.is-centered > * { flex: 0 1 calc((100% - 64px) / 3); min-width: 0; }
.grid-4.is-centered > * { flex: 0 1 calc((100% - 72px) / 4); min-width: 0; }

@media (max-width: 900px) {
  .grid-3.is-centered > * { flex: 0 1 calc((100% - 32px) / 2); }
  .grid-4.is-centered > * { flex: 0 1 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .grid-3.is-centered > *,
  .grid-4.is-centered > * { flex: 0 1 100%; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(20, 20, 25, 0.045);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(20, 20, 25, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 22px 44px rgba(13, 148, 136, 0.18), var(--shadow-m);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex: none;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.35s ease, border-radius 0.35s ease, box-shadow var(--transition);
}

.card:hover .icon-box {
  transform: rotate(-6deg) scale(1.1);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.icon-box svg {
  width: 26px;
  height: 26px;
}

/* Staggered entrance for card grids so items cascade in rather than
   popping in all at once */
.grid-3 > *:nth-child(1), .grid-2 > *:nth-child(1) { animation-delay: 0s; }
.grid-3 > *:nth-child(2), .grid-2 > *:nth-child(2) { animation-delay: 0.09s; }
.grid-3 > *:nth-child(3) { animation-delay: 0.18s; }
.grid-3 > *:nth-child(4), .grid-2 > *:nth-child(4) { animation-delay: 0.27s; }
.grid-3 > *:nth-child(5) { animation-delay: 0.36s; }
.grid-3 > *:nth-child(6) { animation-delay: 0.45s; }
.grid-3 > *:nth-child(7) { animation-delay: 0.54s; }
.grid-3 > *:nth-child(8) { animation-delay: 0.63s; }
.grid-3 > *:nth-child(9) { animation-delay: 0.72s; }

.card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.card h3:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--color-text-sub);
  font-size: 16px;
}

/* Case study cards: a bold "CASE 0N" label + a persona tag pill, reusing
   the site's existing .card shell (see "How it works" STEP N for the number style). */
.case-num {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.case-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.case-catch {
  display: inline-block;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--color-primary-dark);
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.38) 0%, rgba(45, 212, 191, 0.38) 100%);
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 88%;
  padding: 0 3px;
  margin-bottom: 12px;
}

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.fade-up {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
  }
}

/* Pricing page
   ========================================================================== */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto;
}

.billing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: var(--color-text-sub);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.billing-toggle button.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-s);
}

.billing-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
  margin-top: 14px;
}

.billing-note strong {
  color: var(--color-text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-grid.row-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-grid.row-2 {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.plan-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.14);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 999px;
}

.plan-name {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 14px;
}

.plan-price {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.plan-price .unit {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-sub);
  margin-left: 4px;
}

.plan-price.enterprise {
  font-size: 26px;
}

.plan-tax {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 4px;
  margin-bottom: 22px;
}

.plan-specs {
  list-style: none;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 7px 0;
  color: var(--color-text);
}

.plan-specs li span:first-child {
  color: var(--color-text-sub);
}

.plan-specs li strong {
  font-weight: 900;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--color-text-sub);
  background: var(--color-bg-alt);
  position: sticky;
  left: 0;
}

.compare-table thead th {
  font-weight: 900;
  background: #fff;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.faq-item h3 {
  font-size: 15.5px;
  font-weight: 900;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--color-text-sub);
  font-size: 14.5px;
}

/* Company page
   ========================================================================== */

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 22px 18px;
  font-size: 16px;
  vertical-align: top;
}

.company-table th {
  width: 200px;
  color: var(--color-text-sub);
  font-weight: 800;
}

.company-table td {
  font-weight: 700;
}

.timeline {
  border-left: 2px solid var(--color-border);
  margin-left: 8px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.timeline-date {
  font-size: 14px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.timeline-text {
  font-size: 16px;
  color: var(--color-text-sub);
}

.value-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-primary);
}

/* Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-m);
  padding: 36px;
}

.contact-info-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 22px;
}

.contact-info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-row .icon-box {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: 10px;
}

.contact-info-row .icon-box svg {
  width: 20px;
  height: 20px;
}

.contact-info-row div p:first-child {
  font-size: 13.5px;
  color: var(--color-text-sub);
  margin-bottom: 3px;
}

.contact-info-row div p:last-child {
  font-size: 16px;
  font-weight: 800;
}

.contact-info-row div p:last-child a {
  transition: color var(--transition);
}

.contact-info-row div p:last-child a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  margin-bottom: 9px;
}

.form-group label .required {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 900;
  background: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.form-group label .optional {
  color: var(--color-text-sub);
  font-size: 11px;
  font-weight: 900;
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  font-size: 16px;
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-chip {
  position: relative;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-chip span {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-text-sub);
  transition: all var(--transition);
}

.radio-chip input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text-sub);
}

.checkbox-row input {
  margin-top: 3px;
}

.checkbox-row a {
  color: var(--color-primary);
  font-weight: 800;
}

.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-s);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-status.success {
  display: block;
  background: #ecfbf1;
  color: #1a7a44;
  border: 1px solid #bdeccb;
}

.form-status.error {
  display: block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid #f7c7cd;
}

/* Demo section (scroll-triggered auto-play mockup / video)
   ========================================================================== */

.demo-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--color-border-dark);
  background: #101114;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1c1d22;
}

.demo-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.demo-chrome .dot.red { background: #ff5f57; }
.demo-chrome .dot.yellow { background: #febc2e; }
.demo-chrome .dot.green { background: #28c840; }

.demo-chrome .url {
  margin-left: 14px;
  font-size: 12px;
  color: #8b8d98;
  background: #26272e;
  padding: 5px 14px;
  border-radius: 6px;
  flex: 1;
  max-width: 300px;
}

.demo-live-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(13, 148, 136, 0.9);
  padding: 4px 10px;
  border-radius: 999px;
  flex: none;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: demoPulse 1.4s ease-in-out infinite;
}

.demo-live-badge .pulse-dot {
  background: #fff;
}

@keyframes demoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.demo-body {
  padding: 40px;
  background: linear-gradient(160deg, #1a1b20 0%, #101114 100%);
  color: #fff;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.demo-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.demo-stat .label {
  font-size: 13px;
  color: #9294a0;
}

.demo-stat .num {
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
  font-family: var(--font-heading);
}

.demo-stat.up .num {
  color: var(--color-primary-soft);
}

.demo-chart-wrap {
  margin-bottom: 24px;
}

.demo-chart-wrap svg {
  display: block;
  width: 100%;
  height: 190px;
}

.demo-chart-line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.8s ease;
}

.demo-chart-line-sub {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.8s ease 0.15s;
}

.demo-frame.is-playing .demo-chart-line,
.demo-frame.is-playing .demo-chart-line-sub {
  stroke-dashoffset: 0;
}

.demo-cursor {
  opacity: 0;
  transition: opacity 0.4s ease 1.6s, transform 1.8s ease 0.2s;
  transform: translate(40px, 90px);
}

.demo-frame.is-playing .demo-cursor {
  opacity: 1;
  transform: translate(230px, 28px);
}

.demo-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-tag {
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7c9d1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo-tag.hot {
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
}

.demo-frame.is-playing .demo-tag {
  opacity: 1;
  transform: translateY(0);
}

.demo-tag:nth-child(1) { transition-delay: 0.45s; }
.demo-tag:nth-child(2) { transition-delay: 0.6s; }
.demo-tag:nth-child(3) { transition-delay: 0.75s; }
.demo-tag:nth-child(4) { transition-delay: 0.9s; }
.demo-tag:nth-child(5) { transition-delay: 1.05s; }

.demo-caption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
  margin-top: 20px;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

@media (max-width: 640px) {
  .demo-stats {
    grid-template-columns: 1fr;
  }
  .demo-chrome .url {
    display: none;
  }
}

/* Media / platform badges (placeholder brand icons)
   ========================================================================== */

.media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1;
}

.media-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-icon svg {
  width: 15px;
  height: 15px;
}

.media-icon--google {
  background: #ffffff;
  color: #4285f4;
  border: 1.5px solid #e6e6e6;
}

.media-icon--yahoo { background: #6001d2; }
.media-icon--youtube { background: #ff0000; }
.media-icon--tiktok { background: #010101; }
.media-icon--amazon { background: #14202b; }
.media-icon--rakuten { background: #bf0000; }
.media-icon--qoo10 { background: #e6007e; }
.media-icon--x { background: #000000; }

.media-icon--instagram {
  background: linear-gradient(135deg, #4f5bd5 0%, #962fbf 25%, #d62976 50%, #fa7e1e 75%, #feda75 100%);
}

.media-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Larger variant used on the features page media cards */
.media-icon--lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
  margin-bottom: 18px;
}

.media-icon--lg svg {
  width: 28px;
  height: 28px;
}

/* Real brand logo images
   ========================================================================== */

.media-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 13px 26px;
  border-radius: 999px;
  min-height: 52px;
  flex: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.media-logo-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: transparent;
}

.media-logo-chip img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.media-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  margin-bottom: 18px;
}

.media-logo-badge img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Logo-only cards (no title/description text below the badge) */
.card-logo-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}

.card-logo-only .media-logo-badge,
.card-logo-only .media-icon--lg {
  margin-bottom: 0;
}

.card-logo-only .media-logo-badge img {
  height: 56px;
}

.card-logo-only .media-icon--lg {
  width: 64px;
  height: 64px;
}

/* Auto-scrolling logo marquee (TOP page "対応媒体" strip)
   ========================================================================== */

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: logoMarquee 32s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

/* Hero dashboard mockup: gentle floating motion
   ========================================================================== */

.hero-mockup-card {
  animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mockup-card {
    animation: none;
  }
}

/* Legal pages (Specified Commercial Transactions Act / Privacy Policy)
   ========================================================================== */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content .legal-lead {
  color: var(--color-text-sub);
  margin-bottom: 40px;
  line-height: 1.9;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--color-primary-dark);
}

.legal-content p {
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--color-text);
  line-height: 1.9;
}

.legal-content ul li {
  margin-bottom: 4px;
}

.legal-content strong {
  font-weight: 800;
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 40px;
}

.legal-info-table th,
.legal-info-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.8;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-info-table th {
  width: 220px;
  font-weight: 800;
  color: var(--color-text-sub);
  font-size: 14.5px;
}

.legal-content .legal-updated {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-size: 14.5px;
}

@media (max-width: 640px) {
  .legal-info-table th,
  .legal-info-table td {
    display: block;
    width: auto;
    padding: 8px 0;
    border-bottom: none;
  }
  .legal-info-table tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* Features page: expanded sections
   ========================================================================== */

/* Insight / callout box for problem-solution statements */
.insight-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-primary-light);
  border-radius: var(--radius-m);
  padding: 28px 32px;
  margin-top: 40px;
  font-size: 19px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.7;
}
.insight-box .icon-box {
  margin-bottom: 0;
}
.insight-box strong { color: var(--color-primary-dark); }
.insight-box.insight-box--sm {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-sub);
  padding: 20px 26px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
@media (max-width: 640px) {
  .insight-box { flex-direction: column; align-items: flex-start; padding: 22px; font-size: 16.5px; }
}

/* Compact two-column checklist for secondary bullet points */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin-top: 32px;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}
.check-list li svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .check-list { grid-template-columns: 1fr; }
}

/* Four-column grid (dense feature lists) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.grid-4 > *:nth-child(1) { animation-delay: 0s; }
.grid-4 > *:nth-child(2) { animation-delay: 0.08s; }
.grid-4 > *:nth-child(3) { animation-delay: 0.16s; }
.grid-4 > *:nth-child(4) { animation-delay: 0.24s; }
.grid-4 > *:nth-child(5) { animation-delay: 0.32s; }
.grid-4 > *:nth-child(6) { animation-delay: 0.4s; }
.grid-4 > *:nth-child(7) { animation-delay: 0.48s; }
.grid-4 > *:nth-child(8) { animation-delay: 0.56s; }

/* Compact card variant used inside dense grids */
.card-compact {
  padding: 26px 24px;
}
.card-compact .icon-box {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}
.card-compact .icon-box svg { width: 22px; height: 22px; }
.card-compact h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.card-compact p {
  font-size: 13.5px;
  line-height: 1.7;
}

/* Full feature list: a bordered "spec sheet" of rows (square icon tile + text),
   deliberately different from the Benefits section's icon-top card grid above it. */
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 32px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: background var(--transition);
}
.feature-row:nth-child(2n) { border-right: none; }
.feature-row:nth-last-child(-n+2) { border-bottom: none; }
.feature-row:hover { background: var(--color-primary-light); }
.feature-row-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row:hover .feature-row-icon {
  background: var(--color-primary);
  color: #fff;
}
.feature-row-icon svg { width: 22px; height: 22px; }
.feature-row h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-row p { font-size: 13.5px; color: var(--color-text-sub); line-height: 1.7; }

@media (max-width: 900px) {
  .feature-row { padding: 24px; }
}
@media (max-width: 640px) {
  .feature-list-grid { grid-template-columns: 1fr; }
  .feature-row { border-right: none !important; }
  .feature-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .feature-row:last-child { border-bottom: none; }
}

/* Numbered badge used in the analysis-menu grid */
.menu-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
  margin-bottom: 16px;
}

/* TOP hero: live dashboard mockup
   ========================================================================== */

.hero-dashboard { overflow: hidden; transition: box-shadow 0.4s ease; }
.hero-dashboard:hover { box-shadow: 0 26px 70px rgba(20, 20, 25, 0.18); }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title { font-weight: 900; font-size: 16px; color: var(--color-text); }
.dash-sub { font-size: 12px; color: var(--color-text-sub); margin-top: 3px; }

.live-badge {
  font-size: 12px; font-weight: 900; color: var(--color-primary);
  background: var(--color-primary-light); padding: 6px 14px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  animation: badgeGlow 2.2s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat-tile {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.stat-tile.flash {
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25) inset;
}
.stat-label { font-size: 12px; color: var(--color-text-sub); }
.stat-num { font-size: 21px; font-weight: 900; margin-top: 4px; color: var(--color-text); }
.stat-num.accent { color: var(--color-primary); }
.stat-delta {
  position: absolute;
  top: -6px; right: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0;
  pointer-events: none;
}
.stat-delta.show { animation: statDeltaFloat 1s ease-out forwards; }
@keyframes statDeltaFloat {
  0% { opacity: 0; transform: translateY(4px); }
  20% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}

.chart-row {
  /* Stacked (not side-by-side) at every width: the hero column's max
     content width is capped well under 620px by the site's --max-width,
     which never leaves enough room for two 7-bar charts side by side
     without the bar labels overlapping or truncating illegibly. */
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.chart-card {
  background: var(--color-bg-alt);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.chart-card h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-sub);
}

.donut-wrap { display: flex; align-items: center; gap: 10px; }
.donut-svg { flex: none; overflow: visible; }
.donut-svg circle { cursor: pointer; transition: opacity 0.25s ease, stroke-width 0.25s ease; transform-origin: 46px 46px; }
.donut-svg circle:hover { opacity: 0.85; stroke-width: 16; }
.donut-center-label { font-size: 12.5px; font-weight: 900; fill: var(--color-text); }
.donut-legend { font-size: 10.5px; color: var(--color-text-sub); line-height: 1.85; }
.donut-legend > div {
  border-radius: 6px;
  padding: 1px 4px;
  margin: 0 -4px;
  transition: background 0.2s ease;
}
.donut-legend > div:hover { background: #fff; }
.donut-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.donut-legend .pct { font-weight: 800; color: var(--color-text); margin-left: 4px; }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 100px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.bar-col .bar { align-self: center; }
.bar {
  width: 100%;
  max-width: 18px;
  background: linear-gradient(180deg, #2dd4bf 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease, transform 0.2s ease;
  transform-origin: bottom;
}
.bar-col:nth-child(1) .bar { transition-delay: 0.05s; }
.bar-col:nth-child(2) .bar { transition-delay: 0.13s; }
.bar-col:nth-child(3) .bar { transition-delay: 0.21s; }
.bar-col:nth-child(4) .bar { transition-delay: 0.29s; }
.bar-col:nth-child(5) .bar { transition-delay: 0.37s; }
.bar-col:nth-child(6) .bar { transition-delay: 0.45s; }
.bar-col:nth-child(7) .bar { transition-delay: 0.53s; }
.bar:hover { filter: brightness(1.08); transform: scaleX(1.15); }
.bar-label {
  font-size: 8.5px;
  color: var(--color-text-sub);
  margin-top: 6px;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2;
}
.bar-col:hover .bar-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1150px) and (min-width: 901px) {
  .hero-dashboard { padding: 20px !important; }
}

@media (max-width: 480px) {
  .hero-dashboard { padding: 18px !important; }
  .stat-num { font-size: 18px; }
}

/* Demo section: real "ボリューム推移" chart recreation
   ========================================================================== */

.volume-chart-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 28px;
  color: var(--color-text);
}

.volume-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.volume-chart-head h4 { font-size: 16px; font-weight: 900; margin: 0 0 4px; }
.volume-chart-head p { font-size: 12.5px; color: var(--color-text-sub); margin: 0; }

.volume-save-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-sub);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  cursor: default;
}
.volume-save-btn svg { width: 13px; height: 13px; }

.volume-chart-svg-wrap { position: relative; margin-bottom: 4px; }
.volume-chart-svg-wrap svg { display: block; width: 100%; height: 210px; overflow: visible; }

.volume-grid-line { stroke: var(--color-border); stroke-width: 1; }
.volume-axis-label { font-size: 10.5px; fill: var(--color-text-sub); font-family: var(--font-base); }

.volume-line-total {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.7s ease;
}
.volume-line-sub {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.5s ease;
  opacity: 0.7;
}
.demo-frame.is-playing .volume-line-total,
.demo-frame.is-playing .volume-line-sub {
  stroke-dashoffset: 0;
}
.volume-line-insta {
  stroke-width: 2.75;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(236,72,153,0.35));
}

.volume-point-marker {
  fill: var(--color-primary);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.4s ease 1.6s;
}
.demo-frame.is-playing .volume-point-marker { opacity: 1; }

.volume-point-pulse {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.demo-frame.is-playing .volume-point-pulse {
  animation: volumePulseRing 1.8s ease-out 1.8s infinite;
}
@keyframes volumePulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

.volume-growth-badge {
  position: absolute;
  font-size: 12.5px;
  font-weight: 900;
  color: #fff;
  background: var(--color-primary);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.5s ease 1.85s, transform 0.5s ease 1.85s;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
  white-space: nowrap;
}
.demo-frame.is-playing .volume-growth-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.volume-growth-badge svg { width: 11px; height: 11px; }

.volume-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--color-text-sub);
  padding-top: 16px;
  margin-bottom: 20px;
  border-top: 1px solid var(--color-border);
}
.volume-legend span { display: inline-flex; align-items: center; gap: 6px; }
.volume-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.12); }
.volume-legend .dot.total { width: 10px; height: 10px; }

.volume-list-head { font-size: 12.5px; font-weight: 800; color: var(--color-text); margin: 0 0 2px; }
.volume-list-sub { font-size: 11.5px; color: var(--color-text-sub); margin: 0 0 8px; }
.volume-list {
  border-top: 1px solid var(--color-border);
}
.volume-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.volume-list-row:last-child { border-bottom: none; }
.volume-list-date { color: var(--color-text-sub); width: 52px; flex: none; font-weight: 700; }
.volume-list-total { font-weight: 900; width: 96px; flex: none; }
.volume-list-kw { color: var(--color-text-sub); font-size: 12.5px; }
.volume-list-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 10px;
  border-radius: 999px;
  flex: none;
}

@media (max-width: 640px) {
  .volume-chart-card { padding: 20px; }
  .volume-chart-head { flex-direction: column; }
  .volume-save-btn { display: none; }
  .volume-growth-badge { font-size: 11px; padding: 4px 9px; }
  .volume-list-row { font-size: 13px; gap: 10px; }
  .volume-list-total { width: 80px; }
  /* SVG text is sized in viewBox units, so it shrinks along with the
     whole chart as the card narrows — by this width it renders as an
     illegible few-pixel-tall blur. The rising line shape + growth badge
     + the 計測一覧 list below already carry the story without it. */
  .volume-axis-label { display: none; }
}

/* Feature spotlight sections (機能紹介: 1機能ずつ大きく見せるレイアウト)
   ========================================================================== */

.spotlight {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

@media (max-width: 768px) {
  .spotlight { padding: 64px 0; }
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.spotlight-grid.is-reverse > .spotlight-media {
  order: -1;
}

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-grid.is-reverse > .spotlight-media {
    order: 0;
  }
}

.spotlight > .container {
  position: relative;
}

.spotlight-watermark {
  position: absolute;
  top: -0.22em;
  left: 0;
  font-size: clamp(56px, 8.6vw, 132px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  opacity: 0.11;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  font-family: var(--font-heading);
  user-select: none;
}

.spotlight-watermark--right {
  left: auto;
  right: 0;
}

@media (max-width: 640px) {
  .spotlight-watermark { display: none; }
}

.spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.spotlight-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.spotlight-title {
  font-size: clamp(23px, 3.1vw, 33px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.spotlight-text p {
  color: var(--color-text-sub);
  font-size: 16.5px;
  line-height: 1.9;
  max-width: 480px;
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-text);
  background: #fff;
}

.spotlight-tag svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  flex: none;
}

.spotlight-media {
  position: relative;
}

/* Mini device-frame mockup shared by the spotlight sections */
.spotlight-mock {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.spotlight-mock-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.spotlight-mock-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
}

.spotlight-mock-head .dot:nth-child(1) { background: #f87171; }
.spotlight-mock-head .dot:nth-child(2) { background: #fbbf24; }
.spotlight-mock-head .dot:nth-child(3) { background: #34d399; }

.spotlight-mock-head .mock-label {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-sub);
}

.spotlight-mock-body {
  padding: 22px 24px;
}

/* Flagship (gradient) variant — used for the single headline feature */
.spotlight--flagship {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.spotlight--flagship .spotlight-watermark { color: #fff; opacity: 0.12; }
.spotlight--flagship .spotlight-eyebrow { color: #baf3e9; }
.spotlight--flagship .spotlight-eyebrow::before { background: #baf3e9; }
.spotlight--flagship .spotlight-title { color: #fff; }
.spotlight--flagship .spotlight-text p { color: rgba(255, 255, 255, 0.85); }
.spotlight--flagship .spotlight-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.spotlight--flagship .spotlight-tag svg { color: #baf3e9; }

/* KPI summary rows (spotlight mockup A) */
.mock-kpi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
}
.mock-kpi-row:last-child { border-bottom: none; }
.mock-kpi-name {
  font-weight: 800;
  width: 82px;
  flex: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-kpi-track {
  flex: 1;
  height: 7px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.mock-kpi-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, var(--color-primary));
}
.mock-kpi-value { font-weight: 900; width: 70px; flex: none; text-align: right; }
.mock-kpi-delta { font-size: 11.5px; font-weight: 900; color: #16a34a; width: 44px; flex: none; text-align: right; }

/* Before / after comparison rows (spotlight mockup B) */
.mock-compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.mock-compare-row:last-child { border-bottom: none; }
.mock-compare-name { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-compare-before { color: var(--color-text-sub); width: 68px; flex: none; text-align: right; }
.mock-compare-arrow { color: var(--color-border); flex: none; width: 14px; height: 14px; }
.mock-compare-after { font-weight: 900; width: 68px; flex: none; text-align: right; }
.mock-compare-delta {
  font-size: 11px;
  font-weight: 900;
  color: #16a34a;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
  width: 48px;
  text-align: center;
}

/* Suggested-keyword rows (spotlight mockup C) */
.mock-kw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 800;
}
.mock-kw-row:last-child { margin-bottom: 0; }
.mock-kw-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 900;
  color: #16a34a;
  flex: none;
}
.mock-kw-trend svg { width: 12px; height: 12px; }

/* Live SNS trend feed rows (spotlight mockup D) */
.mock-feed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mock-feed-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 13px;
}
.mock-feed-row:last-child { border-bottom: none; }
.mock-feed-row .pulse-dot {
  color: #ef4444;
  margin-top: 5px;
}
.mock-feed-text { flex: 1; font-weight: 700; }
.mock-feed-time { color: var(--color-text-sub); font-size: 11.5px; flex: none; }
