/* ==========================================================================
   ポイ活サイト - メインスタイルシート
   Design: Warm, approachable, trustworthy
   Target: 副収入を目指す方（主婦・会社員）
   ========================================================================== */

/* --- Icon system (SVG sprite, モノクロ・currentColor 継承) --- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
  line-height: 1;
}

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Warm gold + Deep navy */
  --c-primary: #1B2541;
  --c-primary-light: #2A3A5C;
  --c-primary-rgb: 27, 37, 65;
  --c-gold: #D4A853;
  --c-gold-light: #F0D48A;
  --c-gold-dark: #B8922F;
  --c-gold-rgb: 212, 168, 83;
  --c-accent: #E8636F;
  --c-accent-light: #FF8A93;
  --c-accent-rgb: 232, 99, 111;
  --c-success: #4CAF82;
  --c-bg: #FDFBF7;
  --c-bg-alt: #F5F0E8;
  --c-bg-dark: #1B2541;
  --c-text: #2C2C2C;
  --c-text-light: #6B6B6B;
  --c-text-inverse: #F5F0E8;
  --c-border: #E0D8CC;

  /* Typography */
  --ff-heading: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ff-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-accent: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ff-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --ff-en: "Cormorant Garamond", "Playfair Display", serif;

  /* Type Scale (fluid) */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  --fs-lg: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  --fs-xl: clamp(1.5rem, 1.1rem + 2vw, 2.2rem);
  --fs-2xl: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  --fs-3xl: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  --fs-hero: clamp(2.6rem, 1.5rem + 5.5vw, 5.5rem);

  /* Spacing Scale */
  --sp-3xs: clamp(0.25rem, 0.2rem + 0.15vw, 0.375rem);
  --sp-2xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --sp-xs: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  --sp-s: clamp(1rem, 0.8rem + 0.7vw, 1.5rem);
  --sp-m: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --sp-l: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --sp-xl: clamp(3rem, 2rem + 3vw, 5rem);
  --sp-2xl: clamp(4rem, 2.5rem + 5vw, 7rem);
  --sp-3xl: clamp(5rem, 3rem + 6vw, 9rem);

  /* Layout */
  --max-w: 1140px;
  --max-w-narrow: 780px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 37, 65, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 37, 65, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 37, 65, 0.1);
  --shadow-xl: 0 16px 48px rgba(27, 37, 65, 0.14);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.25);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Easing */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--c-text);
  background-color: var(--c-bg);
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-gold-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--c-accent);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SP-only line break */
.sp-only {
  display: none;
}

@media (max-width: 640px) {
  .sp-only {
    display: inline;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  font-feature-settings: "palt" 1;
}
h1 { font-weight: 700; }
h2 { font-weight: 600; }

.section-label {
  font-family: var(--ff-accent);
  font-size: var(--fs-sm);
  color: var(--c-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2xs);
  display: block;
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-xs);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  margin-top: var(--sp-xs);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out-expo) 0.3s;
}

.section-title.is-visible::after,
.is-visible .section-title::after,
.section-title:not(.reveal)::after {
  transform: scaleX(1);
}

.section-title--center::after {
  transform-origin: center;
}

@keyframes underlineShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.section-title.is-visible::after {
  background: linear-gradient(90deg, var(--c-gold-dark), var(--c-gold-light), var(--c-gold));
  background-size: 200% 100%;
  animation: underlineShimmer 3.5s ease-in-out 1.2s infinite;
}

.section-title--center::after {
  margin-inline: auto;
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--c-text-light);
  line-height: 1.9;
  max-width: 640px;
}

.section-desc--center {
  margin-inline: auto;
  text-align: center;
}

.accent-text {
  font-family: var(--ff-accent);
  color: var(--c-gold-dark);
}

.highlight {
  background: linear-gradient(transparent 60%, rgba(212, 168, 83, 0.25) 60%);
  padding-inline: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2.2em;
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 168, 83, 0.4);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn--secondary:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn--accent {
  background: linear-gradient(135deg, var(--c-accent), #d4505c);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 99, 111, 0.3);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 99, 111, 0.45);
  color: #fff;
}

.btn--lg {
  padding: 1.1em 3em;
  font-size: var(--fs-md);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--sp-s) 0;
  transition: all 0.4s var(--ease-out);
}

.header--scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-2xs) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}

.nav__link {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-gold);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--c-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--sp-xs);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1100;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-l);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.is-open {
  display: flex;
  opacity: 1;
}

.nav-overlay__link {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-bg-768.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.85;
}
@media (min-width: 769px) {
  .hero::before { background-image: url("../images/hero-bg-1280.webp"); }
}
@media (min-width: 1281px) {
  .hero::before { background-image: url("../images/hero-bg-1536.webp"); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(253, 251, 247, 0.97) 0%,
    rgba(253, 251, 247, 0.85) 38%,
    rgba(253, 251, 247, 0.35) 62%,
    rgba(253, 251, 247, 0.1) 100%
  );
}
@media (max-width: 1024px) {
  .hero::before { background-position: center; opacity: 0.45; }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(253, 251, 247, 0.96) 0%,
      rgba(253, 251, 247, 0.85) 50%,
      rgba(253, 251, 247, 0.92) 100%
    );
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(232, 99, 111, 0.05) 0%, transparent 70%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 1px 1px, var(--c-primary) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Film grain overlay — subtle noise texture for depth */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.14  0 0 0 0 0.25  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--c-gold);
  filter: blur(60px);
}

.hero__deco--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -50px;
}

.hero__deco--2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: var(--c-accent);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-2xl);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.hero__text {
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.25);
  padding: 0.4em 1.2em;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-gold-dark);
  margin-bottom: var(--sp-m);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-m);
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--c-gold-dark);
  position: relative;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-light);
  line-height: 1.7;
  margin-bottom: var(--sp-l);
  font-weight: 400;
}

.hero__cta-group {
  display: flex;
  gap: var(--sp-s);
  flex-wrap: wrap;
  align-items: center;
}

.hero__stats {
  display: flex;
  gap: var(--sp-l);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-l);
  border-top: 1px solid var(--c-border);
}

.hero__stat-number {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1;
  display: block;
}

.hero__stat-unit {
  font-size: var(--fs-md);
  color: var(--c-gold-dark);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  margin-top: 0.3em;
  display: block;
}

/* Hero Visual */
.hero__visual {
  position: relative;
}

.hero__card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
}

.hero__card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-m);
  transition: transform 0.5s var(--ease-out);
}

.hero__card--main {
  width: 85%;
  top: 8%;
  left: 8%;
  z-index: 3;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.hero__card--secondary {
  width: 70%;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(3deg);
  background: var(--c-primary);
  color: var(--c-text-inverse);
}

.hero__card--tertiary {
  width: 60%;
  bottom: 5%;
  left: 0;
  z-index: 1;
  transform: rotate(-2deg);
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
}

.hero__card-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-2xs);
}

.hero__card--secondary .hero__card-title,
.hero__card--tertiary .hero__card-title {
  color: #fff;
}

.hero__card-amount {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 900;
}

.hero__card-amount--gold {
  color: var(--c-gold);
}

.hero__card-list {
  margin-top: var(--sp-xs);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.hero__card-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
}

.hero__card-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(76, 175, 130, 0.1);
  color: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* --- Marquee Ticker --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--sp-s) 0;
  background: var(--c-primary);
  color: var(--c-gold-light);
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
}

.marquee__track {
  display: inline-flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 var(--sp-xl);
  flex-shrink: 0;
}

.marquee__sep {
  opacity: 0.3;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Pain Points --- */
.pain {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  background: var(--c-bg);
  position: relative;
}

.pain__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: var(--sp-s);
  margin-top: var(--sp-xl);
}

.pain__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-m) var(--sp-m);
  border: 1px solid var(--c-border);
  transition: all 0.4s var(--ease-out);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
}

/* 1枚目を大きくして目立たせる */
.pain__card:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFF9ED, #FFF5E0);
  border-color: rgba(212, 168, 83, 0.2);
  padding: var(--sp-l) var(--sp-m);
}

.pain__card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 6px 24px rgba(232, 99, 111, 0.1);
}

/* カードごとに異なるホバー */
.pain__card:nth-child(2):hover { transform: rotate(-0.5deg) scale(1.02); }
.pain__card:nth-child(3):hover { transform: rotate(0.3deg) scale(1.02); }
.pain__card:nth-child(4):hover { transform: translateX(6px); }
.pain__card:nth-child(5):hover { transform: translateX(-6px); }
.pain__card:nth-child(6):hover { transform: scale(1.03); }

.pain__card-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-light);
  margin-top: 2px;
}

.pain__card:first-child .pain__card-num {
  border-color: var(--c-gold);
  color: var(--c-gold-dark);
  background: rgba(212, 168, 83, 0.08);
}

.pain__card-text {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.6;
}

.pain__card:first-child .pain__card-text {
  font-size: var(--fs-md);
}

.pain__card-text .highlight {
  background: linear-gradient(transparent 60%, rgba(232, 99, 111, 0.15) 60%);
}

/* --- Solution --- */
.solution {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
  background: var(--c-bg-dark);
  color: var(--c-text-inverse);
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.solution .section-label {
  color: var(--c-gold-light);
}

.solution .section-title {
  color: #fff;
}

.solution__flow {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: var(--sp-m);
  margin-top: var(--sp-xl);
  position: relative;
}

/* 特徴バッジ（solution） */
.solution__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-s);
  margin-top: var(--sp-l);
  padding: 0;
  list-style: none;
}
.solution__badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--sp-m) var(--sp-s);
  text-align: center;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s;
}
.solution__badge:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 83, 0.55);
}
.solution__badge-icon {
  display: block;
  font-size: 2rem;
  color: var(--c-gold-light);
  margin-bottom: 0.3em;
}
.solution__badge-title {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.2em;
}
.solution__badge-sub {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .solution__badges { grid-template-columns: 1fr; }
}

/* 実例ハイライトカード（results） */
.results__highlights {
  margin-top: var(--sp-2xl);
  text-align: center;
}
.results__highlights-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  color: var(--c-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
}
.results__highlights-title::before {
  content: "\2605  ";
  color: var(--c-gold);
}
.results__highlights-sub {
  color: var(--c-text-light);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-l);
}
.results__highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-s);
}
.result-hl {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-m) var(--sp-s);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  overflow: hidden;
}
.result-hl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,168,83,0.05), transparent 60%);
  pointer-events: none;
}
.result-hl:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.result-hl--featured {
  background: linear-gradient(150deg, #1B2541, #2A3A5C);
  color: #fff;
  border-color: var(--c-gold);
}
.result-hl--featured::before {
  background: linear-gradient(135deg, rgba(212,168,83,0.22), transparent 70%);
}
.result-hl__tag {
  display: inline-block;
  font-family: var(--ff-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-full);
  background: rgba(27,37,65,0.08);
  color: var(--c-primary);
  margin-bottom: var(--sp-s);
  position: relative;
  z-index: 1;
}
.result-hl__tag--gold {
  background: var(--c-gold);
  color: #fff;
}
.result-hl--featured .result-hl__tag:not(.result-hl__tag--gold) {
  background: rgba(255,255,255,0.15);
  color: var(--c-gold-light);
}
.result-hl__amount {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3rem);
  font-weight: 700;
  color: var(--c-gold-dark);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.result-hl--featured .result-hl__amount {
  color: var(--c-gold-light);
}
.result-hl__amount span {
  font-size: 0.5em;
  color: var(--c-text-light);
  margin-left: 0.2em;
  font-weight: 500;
}
.result-hl--featured .result-hl__amount span {
  color: rgba(255,255,255,0.7);
}
.result-hl__label {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--c-primary);
  margin: 0.5em 0 0.4em;
  position: relative;
  z-index: 1;
}
.result-hl--featured .result-hl__label {
  color: #fff;
}
.result-hl__note {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.result-hl--featured .result-hl__note {
  color: rgba(255,255,255,0.7);
}
@media (max-width: 960px) {
  .results__highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .results__highlights-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STORY SECTION
   ========================================================================== */
.story {
  padding: var(--sp-2xl) 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(232, 99, 111, 0.05) 0%, transparent 60%),
    var(--c-bg);
}
.story__wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-xl);
  margin-top: var(--sp-l);
  align-items: start;
}
.story__body {
  font-family: var(--ff-body);
  color: var(--c-text);
  font-size: var(--fs-base);
  line-height: 2;
}
.story__body p {
  margin-bottom: 1.5em;
}
.story__lead {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  color: var(--c-primary);
  line-height: 1.7;
  padding: var(--sp-s) var(--sp-m);
  border-left: 3px solid var(--c-gold);
  background: rgba(212, 168, 83, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.story__close {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--c-primary);
  border-top: 1px dashed var(--c-border);
  padding-top: var(--sp-m);
  margin-top: var(--sp-m);
}
.story__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-s);
  position: sticky;
  top: calc(var(--sp-xl) + 48px);
}
.story__stat {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-m) var(--sp-s);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.story__stat--accent {
  background: linear-gradient(150deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
}
.story__stat-val {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}
.story__stat--accent .story__stat-val {
  color: #fff;
}
.story__stat-val small {
  font-size: 0.4em;
  color: var(--c-text-light);
  margin-left: 0.2em;
  font-weight: 500;
}
.story__stat--accent .story__stat-val small {
  color: rgba(255,255,255,0.75);
}
.story__stat-lbl {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  margin-top: 0.5em;
  letter-spacing: 0.05em;
}
.story__stat--accent .story__stat-lbl {
  color: rgba(255,255,255,0.85);
}
@media (max-width: 768px) {
  .story__wrap { grid-template-columns: 1fr; }
  .story__stats { position: static; }
}

.solution__step {
  text-align: left;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--sp-l) var(--sp-m);
  transition: all 0.4s var(--ease-out);
}

.solution__step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 83, 0.3);
}

/* 2番目を少し下げてリズム */
.solution__step:nth-child(2) {
  transform: translateY(var(--sp-l));
}

.solution__step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 900;
  margin-bottom: var(--sp-s);
}

.solution__step-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-xs);
}

.solution__step-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* Step connector arrow */
.solution__step-arrow {
  position: absolute;
  right: calc(-1 * var(--sp-m) / 2 - 8px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gold);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* --- Results --- */
.results {
  padding: var(--sp-3xl) 0;
  background: var(--c-bg);
}

.results__showcase {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-2xl);
  align-items: center;
  margin-top: var(--sp-xl);
}

.results__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-m);
}

.results__number-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-l) var(--sp-m);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all 0.35s var(--ease-out);
}

.results__number-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
}

.results__number-card:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border: none;
  color: #fff;
}

.results__number-value {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
  display: block;
}

.results__number-card:first-child .results__number-value {
  font-size: var(--fs-3xl);
  color: var(--c-gold-light);
}

.results__number-label {
  font-size: var(--fs-sm);
  margin-top: 0.4em;
  display: block;
}

.results__number-card:first-child .results__number-label {
  color: rgba(255, 255, 255, 0.75);
}

.results__detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
}

.results__detail-item {
  display: flex;
  gap: var(--sp-s);
  align-items: flex-start;
  padding: var(--sp-m);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.results__detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  filter: grayscale(1);
}

.results__detail-text h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 0.3em;
}

.results__detail-text p {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.7;
}

/* --- Divider wave between results and testimonials --- */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--sp-xl) 0 var(--sp-3xl);
  background: var(--c-bg-alt);
  position: relative;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-m);
  margin-top: var(--sp-xl);
}

.testimonial {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-l);
  border: 1px solid var(--c-border);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

/* 交互に少しずらしてリズムを出す */
.testimonial:nth-child(2) {
  transform: translateY(var(--sp-l));
}

.testimonial:nth-child(3) {
  margin-top: calc(-1 * var(--sp-s));
}

/* カードごとに違うホバー */
.testimonial:nth-child(1):hover {
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.12);
  border-color: var(--c-gold);
}
.testimonial:nth-child(2):hover {
  box-shadow: 0 8px 30px rgba(232, 99, 111, 0.1);
  border-color: var(--c-accent-light);
}
.testimonial:nth-child(3):hover {
  box-shadow: 0 8px 30px rgba(76, 175, 130, 0.1);
  border-color: var(--c-success);
}
.testimonial:nth-child(4):hover {
  box-shadow: 0 8px 30px rgba(27, 37, 65, 0.08);
  border-color: var(--c-primary-light);
}

.testimonial__quote {
  font-size: var(--fs-md);
  line-height: 1.9;
  margin-bottom: var(--sp-m);
  position: relative;
  padding-left: var(--sp-m);
}

.testimonial__quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-gold-light));
  border-radius: 2px;
}

.testimonial:nth-child(2) .testimonial__quote::before {
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-light));
}

.testimonial:nth-child(3) .testimonial__quote::before {
  background: linear-gradient(180deg, var(--c-success), #7DDBA8);
}

.testimonial:nth-child(4) .testimonial__quote::before {
  background: linear-gradient(180deg, var(--c-primary), var(--c-primary-light));
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}

.testimonial:nth-child(2) .testimonial__avatar {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-light));
}

.testimonial:nth-child(3) .testimonial__avatar {
  background: linear-gradient(135deg, var(--c-success), #7DDBA8);
}

.testimonial:nth-child(4) .testimonial__avatar {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
}

.testimonial__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  display: block;
}

.testimonial__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}

/* --- Pricing --- */
.pricing {
  padding: var(--sp-3xl) 0;
  background: var(--c-bg);
}

.pricing__card {
  max-width: 520px;
  margin: var(--sp-xl) auto 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--c-gold);
  position: relative;
}

.pricing__card-header {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  padding: var(--sp-l) var(--sp-l) var(--sp-m);
  text-align: center;
  color: #fff;
}

.pricing__card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
  padding: 0.3em 1.2em;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-s);
  letter-spacing: 0.08em;
}

.pricing__card-price {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1;
}

.pricing__card-price-unit {
  font-size: var(--fs-md);
  font-weight: 500;
  opacity: 0.8;
}

.pricing__card-note {
  font-size: var(--fs-xs);
  opacity: 0.7;
  margin-top: 0.5em;
}

.pricing__card-body {
  padding: var(--sp-l);
}

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: var(--fs-base);
  padding: var(--sp-2xs) 0;
}

.pricing__feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 175, 130, 0.1);
  color: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pricing__card-cta {
  text-align: center;
  padding: 0 var(--sp-l) var(--sp-l);
}

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

/* --- FAQ --- */
.faq {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
  background: var(--c-bg-alt);
}

.faq__list {
  max-width: 720px;
  margin: var(--sp-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.faq__item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.faq__item.is-open {
  border-color: var(--c-gold);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-s);
  width: 100%;
  padding: var(--sp-m);
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-primary);
  text-align: left;
  cursor: pointer;
}

.faq__question-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
  font-size: 0.8rem;
  color: var(--c-text-light);
}

.faq__item.is-open .faq__question-icon {
  background: var(--c-gold);
  color: #fff;
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq__answer-inner {
  padding: 0 var(--sp-m) var(--sp-m);
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.9;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  /* background + animation defined in ANIMATIONS section */
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 30% 50%, rgba(212, 168, 83, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(232, 99, 111, 0.08) 0%, transparent 70%);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: var(--fs-2xl);
  color: #fff;
  margin-bottom: var(--sp-s);
}

.cta-section__title::after {
  display: none;
}

.cta-section__desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-l);
  max-width: 500px;
  margin-inline: auto;
}

/* --- Footer --- */
.footer {
  position: relative;
  background-color: #111827;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.88) 55%, rgba(17, 24, 39, 0.97) 100%),
    url(../images/footer-bg-1280.webp);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.72);
  padding: var(--sp-2xl) 0 var(--sp-l);
  overflow: hidden;
  isolation: isolate;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 15%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(212, 168, 83, 0.06) 0%, transparent 60%);
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 83, 0.5) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

@media (min-width: 1280px) {
  .footer {
    background-image:
      linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.88) 55%, rgba(17, 24, 39, 0.97) 100%),
      url(../images/footer-bg-1920.webp);
  }
}

@media (max-width: 768px) {
  .footer {
    background-image:
      linear-gradient(180deg, rgba(17, 24, 39, 0.6) 0%, rgba(17, 24, 39, 0.9) 55%, rgba(17, 24, 39, 0.97) 100%),
      url(../images/footer-bg-768.webp);
  }
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-xl);
}

.footer__brand {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--sp-s);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-s);
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s var(--ease-out);
}

.footer__link:hover {
  color: var(--c-gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-m);
  text-align: center;
  font-size: var(--fs-xs);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* --- Base Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

/* Stagger delays */
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }
.reveal--delay-5 { transition-delay: 0.4s; }
.reveal--delay-6 { transition-delay: 0.48s; }

/* --- Variant: Scale up --- */
.reveal--scale {
  transform: scale(0.92);
}

/* --- Variant: Slide from left --- */
.reveal--left {
  transform: translateX(-40px);
}

/* --- Variant: Slide from right --- */
.reveal--right {
  transform: translateX(40px);
}

/* --- Variant: Rotate in --- */
.reveal--rotate {
  transform: translateY(20px) rotate(-3deg);
}

/* --- Variant: Clip reveal (wipe up) --- */
.reveal--clip {
  clip-path: inset(100% 0 0 0);
  transform: none;
  transition: clip-path 0.8s var(--ease-out-expo), opacity 0.5s var(--ease-out);
}

.reveal--clip.is-visible {
  clip-path: inset(0 0 0 0);
}

/* --- Variant: Blur in --- */
.reveal--blur {
  transform: translateY(12px);
  filter: blur(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.reveal--blur.is-visible {
  filter: blur(0);
}

/* --- Hero Title Letter Reveal --- */
@keyframes hero-letter-in {
  0% {
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title .hero__title-line {
  animation: hero-letter-in 0.8s var(--ease-out-expo) both;
}

.hero__title .hero__title-line:nth-child(2) {
  animation-delay: 0.15s;
}

.hero__title .hero__title-line:nth-child(3) {
  animation-delay: 0.3s;
}

/* --- Hero badge pulse --- */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(212, 168, 83, 0); }
}

.hero__badge {
  animation: badge-pulse 2.5s ease-in-out infinite 1.5s;
}

/* --- Gold shimmer on hero title accent --- */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero__title-accent {
  background: linear-gradient(
    90deg,
    var(--c-gold-dark) 0%,
    var(--c-gold-light) 25%,
    var(--c-gold-dark) 50%,
    var(--c-gold-light) 75%,
    var(--c-gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 4s linear infinite 2s;
}

/* --- Number counter pulse --- */
@keyframes count-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.results__number-value.is-counted {
  animation: count-pop 0.4s var(--ease-spring);
}

/* --- Floating decoration --- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-rotate {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.hero__card--tertiary {
  animation: float-y 5s ease-in-out infinite 2s;
}

.hero__card--secondary {
  animation: float-rotate 6s ease-in-out infinite 1s;
}

/* --- CTA glow pulse --- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232, 99, 111, 0.3); }
  50% { box-shadow: 0 4px 36px rgba(232, 99, 111, 0.55), 0 0 60px rgba(232, 99, 111, 0.15); }
}

.pricing__card-cta .btn--accent {
  animation: glow-pulse 2.5s ease-in-out infinite;
}

/* --- Progress bar on scroll --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-accent));
  z-index: 1100;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

/* --- Gradient background animation for CTA --- */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-section {
  background: linear-gradient(
    -45deg,
    var(--c-primary),
    var(--c-primary-light),
    #1a2d50,
    #243356
  );
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
}

/* Reduced motion — 全アニメーション/トランジションを無効化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  .marquee__track { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .hero__text {
    max-width: 100%;
    text-align: center;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .hero__card-stack {
    aspect-ratio: 5/4;
  }

  .solution__flow {
    grid-template-columns: 1fr;
    gap: var(--sp-m);
  }

  .solution__step:nth-child(2) {
    transform: none;
  }

  .solution__step-arrow {
    display: none;
  }

  .results__showcase {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonial:nth-child(2) {
    transform: none;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-l);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav__list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
  }

  .hero__title {
    letter-spacing: -0.01em;
  }

  .hero__stats {
    gap: var(--sp-m);
  }

  .hero__visual {
    max-width: 300px;
  }

  .pain__grid {
    grid-template-columns: 1fr;
  }

  .pain__card:first-child {
    grid-column: 1;
  }

  .results__numbers {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-l);
  }

  .section-title {
    text-align: left;
  }

  .section-title--center {
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 375px) {
  .hero__card-stack {
    aspect-ratio: 1/1;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--sp-s);
    text-align: center;
  }
}

/* ==========================================================================
   Enhancements (v2): charts, trust, sticky CTA, mobile readability
   ========================================================================== */

/* --- Hero mini chart card --- */
.hero__card--chart {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 58%;
  background: linear-gradient(135deg, #fff 0%, #FFF9EC 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-s);
  border: 1px solid rgba(212, 168, 83, 0.3);
  z-index: 3;
}
.hero__card--chart .hero__card-title {
  font-size: var(--fs-xs);
  color: var(--c-primary);
  margin-bottom: 6px;
}
.hero__minichart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}
.hero__minichart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--c-gold-light), var(--c-gold-dark));
  border-radius: 3px 3px 0 0;
  animation: barGrow 1.2s var(--ease-out-expo) both;
  transform-origin: bottom;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.hero__minichart-labels {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--c-text-light);
  font-family: var(--ff-en);
}
.hero__minichart-labels span { flex: 1; text-align: center; }

/* --- Results bar chart --- */
.results__chart {
  margin-top: var(--sp-xl);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-l) var(--sp-m);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.results__chart-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--c-primary);
  text-align: center;
  margin-bottom: var(--sp-s);
  font-weight: 600;
}
.results__chart-sub {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  margin-bottom: var(--sp-m);
}
.results__bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
  align-items: end;
  height: 220px;
  padding: 0 var(--sp-xs);
  border-bottom: 2px solid var(--c-border);
}
.results__bar {
  position: relative;
  background: linear-gradient(180deg, var(--c-gold-light) 0%, var(--c-gold) 60%, var(--c-gold-dark) 100%);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease-out-expo);
  box-shadow: 0 -2px 6px rgba(212,168,83,0.25);
}
.results__bar.is-visible { transform: scaleY(1); }
.results__bar::after {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-en);
  font-size: 0.72rem;
  color: var(--c-primary);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}
.results__bar.is-visible::after { opacity: 1; }
.results__bar-labels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
  padding: var(--sp-2xs) var(--sp-xs) 0;
  font-family: var(--ff-en);
  font-size: 0.75rem;
  color: var(--c-text-light);
  text-align: center;
}
.results__pie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-l);
  flex-wrap: wrap;
  margin-top: var(--sp-l);
  padding-top: var(--sp-l);
  border-top: 1px dashed var(--c-border);
}
.results__pie {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--c-gold) 0 38%,
    var(--c-primary) 38% 62%,
    var(--c-accent) 62% 82%,
    var(--c-success) 82% 100%
  );
  position: relative;
  box-shadow: var(--shadow-md);
}
.results__pie::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: #fff;
  border-radius: 50%;
}
.results__legend {
  list-style: none;
  display: grid;
  gap: var(--sp-2xs);
  font-size: var(--fs-sm);
}
.results__legend li {
  display: flex;
  align-items: center;
  gap: var(--sp-2xs);
}
.results__legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- Trust section (operator + meta) --- */
.trust {
  padding: var(--sp-xl) 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-l);
  margin-top: var(--sp-l);
}
.trust__grid--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.trust__operator {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-l);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--c-gold);
  display: flex;
  gap: var(--sp-m);
  align-items: center;
}
.trust__avatar {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.trust__operator h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--c-primary);
  margin-bottom: 4px;
}
.trust__operator-role {
  font-size: var(--fs-xs);
  color: var(--c-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2xs);
}
.trust__operator p {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.7;
}
.trust__meta {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-l);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--c-accent);
}
.trust__meta h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--c-primary);
  margin-bottom: var(--sp-s);
}
.trust__stats {
  list-style: none;
  display: grid;
  gap: var(--sp-xs);
}
.trust__stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--sp-2xs);
  border-bottom: 1px dashed var(--c-border);
  font-size: var(--fs-sm);
}
.trust__stats li:last-child { border-bottom: 0; }
.trust__stats-val {
  font-family: var(--ff-en);
  font-weight: 600;
  color: var(--c-gold-dark);
  font-size: var(--fs-md);
}
.trust__updated {
  margin-top: var(--sp-m);
  padding: var(--sp-xs) var(--sp-s);
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}
.trust__updated strong {
  color: var(--c-primary);
  font-family: var(--ff-en);
  font-size: var(--fs-sm);
  font-weight: 600;
}

@media (max-width: 768px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__operator { flex-direction: column; text-align: center; }
}

/* --- Sticky floating CTA --- */
.sticky-cta {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 28px rgba(232, 99, 111, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta:hover {
  box-shadow: 0 12px 36px rgba(232, 99, 111, 0.55);
  transform: translateY(-3px);
}
.sticky-cta::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.125em;
  background-color: var(--c-gold-light);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.78 7.45h7.97l-6.49 4.7 2.49 7.85L12 17.27l-6.75 4.73 2.49-7.85-6.49-4.7h7.97z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.78 7.45h7.97l-6.49 4.7 2.49 7.85L12 17.27l-6.75 4.73 2.49-7.85-6.49-4.7h7.97z'/></svg>") center/contain no-repeat;
}
@media (max-width: 480px) {
  .sticky-cta {
    padding: 12px 18px;
    font-size: 0.82rem;
  }
}

/* --- Responsive fixes for enhancements --- */
@media (max-width: 1024px) {
  /* With background image now doing the visual work, keep card stack compact */
  .hero__visual { max-width: 360px; }
  .hero__card--chart { width: 62%; }
}

@media (max-width: 768px) {
  /* Mini chart was overlapping tertiary card on narrow layouts — hide it */
  .hero__card--chart { display: none; }

  /* Results bars: fewer label marks, shorter height */
  .results__bars { height: 160px; gap: 3px; }
  .results__bar::after { font-size: 0.6rem; top: -16px; }
  .results__bar-labels { font-size: 0.62rem; gap: 3px; }

  /* Pie: smaller */
  .results__pie { width: 140px; height: 140px; }
  .results__pie-wrap { gap: var(--sp-m); }
}

@media (max-width: 480px) {
  /* Hide every other month label so they don't overlap */
  .results__bar-labels span:nth-child(even) { visibility: hidden; }
  .results__bar::after { display: none; }

  /* Make sure sticky CTA doesn't cover pricing CTA on tap */
  .sticky-cta { bottom: 14px; right: 14px; }

  /* Hero stats don't collapse to column until very small — keep 3 compact */
  .hero__stats { gap: var(--sp-s); }
  .hero__stat-number { font-size: var(--fs-xl); }
}

/* --- Mobile font readability --- */
@media (max-width: 600px) {
  :root {
    --ff-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    --ff-accent: "Noto Sans JP", sans-serif;
  }
  .section-title,
  .hero__title,
  .cta-section__title {
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .section-desc,
  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* ==========================================================================
   Global Responsive Overhaul (v3)
   ========================================================================== */

/* Overall container widening on small screens */
@media (max-width: 768px) {
  .container { width: 92%; }
}
@media (max-width: 480px) {
  .container { width: 94%; }
}

/* Long Japanese text can cause horizontal scroll — guard */
html, body { max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* Make section titles wrap nicely on narrow screens */
.section-title { word-break: keep-all; overflow-wrap: anywhere; }
.hero__title { word-break: keep-all; overflow-wrap: anywhere; }

/* ----- Tablet (<=1024px) ----- */
@media (max-width: 1024px) {
  /* Reset offset tricks that break in a single column */
  .testimonial:nth-child(2) { transform: none; }
  .testimonial:nth-child(3) { margin-top: 0; }
  .solution__step:nth-child(2) { transform: none; }
  .solution__step-arrow { display: none; }

  /* Results pie a touch smaller */
  .results__pie { width: 160px; height: 160px; }
}

/* ----- Medium (<=900px) ----- */
@media (max-width: 900px) {
  .btn--lg { padding: 0.95em 2em; font-size: var(--fs-base); }

  .marquee { padding: var(--sp-2xs) 0; }
  .marquee__item { font-size: var(--fs-xs); }

  .pricing__card-body,
  .pricing__card-cta { padding-inline: var(--sp-m); }
  .pricing__card-header { padding: var(--sp-m); }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-l); }
}

/* ----- Tablet / small tablet (<=768px) ----- */
@media (max-width: 768px) {
  /* Collapse pain grid to single column earlier */
  .pain__grid { grid-template-columns: 1fr; }
  .pain__card:first-child { grid-column: 1; }

  /* Reduce heavy section padding */
  section { padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
  .solution { padding-top: var(--sp-2xl); padding-bottom: var(--sp-2xl); }

  /* Section titles center for visual balance when stacked */
  .section-title::after { margin-inline: 0; }

  /* Testimonials single column confirmed */
  .testimonials__grid { grid-template-columns: 1fr; }

  /* Results number cards: keep 2x2 but slightly smaller */
  .results__number-card { padding: var(--sp-m) var(--sp-s); }

  /* Hero visual narrower */
  .hero__visual { max-width: 320px; }
  .hero__stats { gap: var(--sp-s); padding-top: var(--sp-m); margin-top: var(--sp-l); }
  .hero__content { padding-top: calc(var(--sp-2xl) + 20px); padding-bottom: var(--sp-xl); }

  /* CTA buttons stack nicely */
  .hero__cta-group { width: 100%; }
  .hero__cta-group .btn { flex: 1 1 auto; min-width: 45%; }
}

/* ----- Mobile (<=640px) ----- */
@media (max-width: 640px) {
  :root {
    --sp-3xl: clamp(3rem, 2rem + 5vw, 5rem);
    --sp-2xl: clamp(2.5rem, 1.8rem + 4vw, 4rem);
  }

  .header__logo { font-size: var(--fs-md); }
  .header__logo-icon { width: 26px; height: 26px; }

  /* Hero tidy */
  .hero__badge { font-size: 0.7rem; padding: 0.35em 1em; }
  .hero__visual { max-width: 280px; margin-top: var(--sp-m); }

  /* Pricing card */
  .pricing__card { margin-inline: 0; }
  .pricing__card-price { font-size: var(--fs-2xl); }
  .pricing__feature { font-size: var(--fs-sm); }

  /* FAQ */
  .faq__question { font-size: var(--fs-sm); padding: var(--sp-s) var(--sp-m); }
  .faq__answer-inner { padding-inline: var(--sp-m); }

  /* CTA section tightens */
  .cta-section__title { font-size: var(--fs-xl); }

  /* Footer: reduce gap */
  .footer__inner { gap: var(--sp-m); }
  .footer__desc { max-width: 100%; }

  /* Results chart: allow scroll rather than cramming */
  .results__chart { padding: var(--sp-m) var(--sp-s); }
  .results__bars { height: 140px; }
  .results__pie-wrap { flex-direction: column; text-align: center; }
  .results__legend li { justify-content: center; }

  /* Trust spacing */
  .trust__operator, .trust__meta { padding: var(--sp-m); }
}

/* ==========================================================================
   A11Y — Focus & Link polish
   ========================================================================== */

/* Skip to main content link — visible only when focused */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 9999;
  padding: 0.7em 1.4em;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.25s var(--ease-out-expo);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* Unified focus-visible ring (keyboard nav only) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible {
  outline-color: var(--c-gold);
  outline-offset: 4px;
}

/* Nav link: sliding underline on hover */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out-expo);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Footer link: same underline pattern */
.footer__link {
  position: relative;
  display: inline-block;
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out-expo);
}
.footer__link:hover::after,
.footer__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ----- Narrow mobile (<=420px) ----- */
@media (max-width: 420px) {
  .hero__stats { flex-direction: column; }
  .hero__stat { text-align: center; }
  .hero__cta-group .btn { min-width: 100%; }
  .btn--lg { padding: 0.9em 1.6em; }

  .results__numbers { grid-template-columns: 1fr; }

  /* Avatar smaller */
  .trust__avatar { width: 72px; height: 72px; font-size: 1.8rem; }

  /* Sticky CTA subtler */
  .sticky-cta { padding: 10px 16px; font-size: 0.78rem; }

  /* Pricing card padding */
  .pricing__card-body,
  .pricing__card-cta { padding-inline: var(--sp-s); }
  .pricing__card-header { padding: var(--sp-m) var(--sp-s); }
}

/* ==========================================================================
   Mobile Fixes (v4) — SP崩れ対策
   ========================================================================== */

/* Hero visualはモバイルで崩壊するため非表示（テキスト中心に） */
@media (max-width: 640px) {
  .hero__visual { display: none; }

  /* テキストを中央からやや左寄せに調整 */
  .hero__inner { gap: 0; }
  .hero__content {
    padding-top: calc(var(--sp-2xl) + 20px);
    padding-bottom: var(--sp-xl);
  }

  /* Hero titleは画面幅に合わせてサイズ縮小（clampが効かないケース対策） */
  .hero__title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); letter-spacing: -0.01em; }
  .hero__subtitle { font-size: var(--fs-md); }

  /* CTA 2つはスマホで縦積み、100%幅 */
  .hero__cta-group { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta-group .btn { width: 100%; min-width: 0; }

  /* hero stats は縦積みで確実に収める */
  .hero__stats {
    flex-direction: column;
    gap: var(--sp-s);
    align-items: center;
    padding-top: var(--sp-m);
  }
  .hero__stat { text-align: center; width: 100%; min-width: 0; }
  .hero__stat-number { font-size: var(--fs-xl); }
  .hero__stat-unit { font-size: var(--fs-sm); }

  /* Pain: first cardの特大フォントを通常に戻し、paddingも縮める */
  .pain__card { padding: var(--sp-s) var(--sp-xs); gap: var(--sp-2xs); }
  .pain__card:first-child { padding: var(--sp-m) var(--sp-s); }
  .pain__card:first-child .pain__card-text { font-size: var(--fs-base); }
  /* 日本語を自然に折り返させる（keep-allだと切れずはみ出す） */
  .pain__card-text { word-break: normal; overflow-wrap: anywhere; line-height: 1.7; }

  /* Results numbers を1列に（2列だと「5分」等が見切れる） */
  .results__numbers { grid-template-columns: 1fr; }
  .results__number-card { padding: var(--sp-m) var(--sp-s); }

  /* Solution step paddingも縮める */
  .solution__step { padding: var(--sp-m) var(--sp-s); }

  /* Results detail paddingも縮める */
  .results__detail-item { padding: var(--sp-s); }

  /* Story lead の左ボーダー＋パディングを縮める */
  .story__lead { padding: var(--sp-s); }
  .story__stats { grid-template-columns: 1fr 1fr; }

  /* Testimonial paddingも縮める */
  .testimonial { padding: var(--sp-m) var(--sp-s); }
  .testimonial__quote { padding-left: var(--sp-s); font-size: var(--fs-base); }

  /* FAQ questionのパディング縮小 */
  .faq__question { padding: var(--sp-s); }
  .faq__answer-inner { padding: 0 var(--sp-s) var(--sp-s); }

  /* Container 内 padding安全側 */
  section { overflow-x: hidden; }
}

/* Hero title はアニメ用のoverflow:hiddenがmobileで文字を切るため緩める */
@media (max-width: 640px) {
  .hero__title-line { overflow: visible; }
  /* hero 自体も overflow を強制 */
  .hero { overflow-x: clip; }
  .hero__title { font-size: 2.2rem !important; line-height: 1.2; letter-spacing: -0.01em; }
}

/* 超ナローモバイル（<=380px） — iPhoneSE 320 など含む */
@media (max-width: 380px) {
  .hero__stats { flex-direction: column; gap: var(--sp-2xs); }
  .hero__stat-number { font-size: var(--fs-xl); }
  .hero__title { font-size: 1.75rem !important; letter-spacing: -0.02em; }
  .hero__subtitle { font-size: var(--fs-base); }

  /* Header logo を短縮感に */
  .header__logo { font-size: var(--fs-base); }

  /* Marquee 文字小さく */
  .marquee__item { padding: 0 var(--sp-l); }

  /* pain card paddingさらに縮小 */
  .pain__card { padding: var(--sp-xs); gap: var(--sp-2xs); }
  .pain__card:first-child { padding: var(--sp-s) var(--sp-xs); }
  .pain__card-num { width: 24px; height: 24px; min-width: 24px; }

  /* section title縮小 */
  .section-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
}

/* iPhone SE / 極狭端末（<=340px）用のさらなる縮小 */
@media (max-width: 340px) {
  .hero__title { font-size: 1.5rem !important; }
  .section-title { font-size: 1.35rem !important; }
  .container { width: 96%; }
}

/* Results chart はモバイルで横スクロール対応（12ヶ月が潰れるのを回避） */
@media (max-width: 480px) {
  .results__chart { padding: var(--sp-m) var(--sp-xs); }
  .results__bars,
  .results__bar-labels {
    gap: 2px;
    padding-inline: 0;
  }
}

/* ========================================
   COMPARE section（このサイトの強み / 最高額比較）
   ======================================== */
.compare {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,168,83,0.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(27,37,65,0.05), transparent 50%);
  pointer-events: none;
}

.compare__demo {
  max-width: 780px;
  margin: var(--sp-xl) auto 0;
  background: #fff;
  border: 1px solid rgba(27,37,65,0.08);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px -20px rgba(27,37,65,0.18),
    0 10px 20px -10px rgba(27,37,65,0.08);
  overflow: hidden;
  position: relative;
}
.compare__demo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light), var(--c-gold));
}

.compare__demo-head {
  padding: var(--sp-l) var(--sp-l) var(--sp-m);
  border-bottom: 1px dashed rgba(27,37,65,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6em 1em;
}
.compare__demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(212,168,83,0.12);
  color: var(--c-gold-dark);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.3em 0.9em;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.compare__demo-title {
  flex: 1 1 auto;
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.compare__demo-date {
  font-size: var(--fs-xs);
  color: rgba(27,37,65,0.55);
  font-variant-numeric: tabular-nums;
}

.compare__demo-list {
  list-style: none;
  margin: 0;
  padding: var(--sp-s) var(--sp-l);
}
.compare__demo-row {
  display: grid;
  grid-template-columns: 36px minmax(8em, 1fr) 2.2fr auto auto;
  align-items: center;
  gap: var(--sp-s);
  padding: 0.75em 0.6em;
  border-radius: var(--radius-md);
  transition: background 0.3s;
}
.compare__demo-row + .compare__demo-row {
  border-top: 1px solid rgba(27,37,65,0.06);
}
.compare__demo-row--top {
  background: linear-gradient(90deg, rgba(212,168,83,0.14), rgba(212,168,83,0.04));
  border: 1px solid rgba(212,168,83,0.35);
  margin: 0.3em 0;
  padding: 0.9em 0.6em;
}
.compare__demo-row--top + .compare__demo-row { border-top: none; }
.compare__demo-row--low { opacity: 0.78; }

.compare__demo-rank {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: rgba(27,37,65,0.4);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.compare__demo-row--top .compare__demo-rank {
  color: var(--c-gold-dark);
  font-size: var(--fs-lg);
}
.compare__demo-rank sup { font-size: 0.55em; font-weight: 600; margin-left: 1px; }

.compare__demo-site {
  font-weight: 600;
  color: var(--c-primary);
  font-size: var(--fs-base);
}
.compare__demo-row--top .compare__demo-site { font-weight: 800; }

.compare__demo-bar {
  display: block;
  height: 6px;
  background: rgba(27,37,65,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  min-width: 60px;
}
.compare__demo-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary));
  border-radius: inherit;
  transform-origin: left center;
  animation: compareBarGrow 0.9s var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)) both;
}
.compare__demo-row--top .compare__demo-bar-fill {
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-dark));
}
@keyframes compareBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.compare__demo-amount {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  min-width: 6em;
}
.compare__demo-amount small { font-size: 0.55em; font-weight: 500; margin-left: 2px; color: rgba(27,37,65,0.7); }
.compare__demo-row--top .compare__demo-amount {
  color: var(--c-gold-dark);
  font-size: calc(var(--fs-lg) * 1.15);
}

.compare__demo-mark {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-full);
  background: var(--c-gold);
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.compare__demo-mark--low {
  background: rgba(27,37,65,0.12);
  color: rgba(27,37,65,0.6);
}

.compare__demo-diff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-m);
  padding: var(--sp-l);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  position: relative;
}
.compare__demo-diff::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(212,168,83,0.25), transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(212,168,83,0.15), transparent 50%);
  pointer-events: none;
}
.compare__demo-diff-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.compare__demo-diff-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare__demo-diff-value {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem);
  font-weight: 900;
  color: var(--c-gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.compare__demo-diff-value small { font-size: 0.45em; font-weight: 600; margin-left: 4px; color: rgba(255,255,255,0.85); }
.compare__demo-diff-note {
  position: relative;
  margin: 0;
  max-width: 20em;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  text-align: right;
}
.compare__demo-diff-note strong { color: var(--c-gold-light); font-weight: 700; }

/* 強み3指標 */
.compare__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-m);
  margin: var(--sp-xl) auto 0;
  max-width: 780px;
  padding: 0;
  list-style: none;
}
.compare__stat {
  text-align: center;
  padding: var(--sp-m) var(--sp-s);
  border-top: 2px solid var(--c-gold);
  background: linear-gradient(180deg, rgba(212,168,83,0.04), transparent);
}
.compare__stat-num {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 1rem + 3vw, 2.6rem);
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.compare__stat-num small {
  font-size: 0.42em;
  font-weight: 600;
  margin-left: 2px;
  color: var(--c-gold-dark);
}
.compare__stat-lbl {
  display: block;
  margin-top: 0.6em;
  font-size: var(--fs-xs);
  color: rgba(27,37,65,0.7);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 720px) {
  .compare__demo-head { padding: var(--sp-m) var(--sp-s); }
  .compare__demo-list { padding: var(--sp-xs) var(--sp-s); }
  .compare__demo-row {
    grid-template-columns: 28px 1fr auto;
    grid-template-areas:
      "rank site amount"
      "rank bar bar"
      "rank mark mark";
    gap: 0.3em 0.6em;
    padding: 0.7em 0.4em;
  }
  .compare__demo-row--top { padding: 0.8em 0.4em; }
  .compare__demo-rank { grid-area: rank; font-size: var(--fs-sm); }
  .compare__demo-row--top .compare__demo-rank { font-size: var(--fs-md); }
  .compare__demo-site { grid-area: site; font-size: var(--fs-sm); }
  .compare__demo-bar { grid-area: bar; min-width: 0; }
  .compare__demo-amount { grid-area: amount; font-size: var(--fs-md); min-width: 0; }
  .compare__demo-row--top .compare__demo-amount { font-size: var(--fs-lg); }
  .compare__demo-mark { grid-area: mark; justify-self: start; font-size: 0.65rem; }
  /* mark が無い行では bar が2カラム分使う */
  .compare__demo-row:not(:has(.compare__demo-mark)) {
    grid-template-areas:
      "rank site amount"
      "rank bar bar";
  }

  .compare__demo-diff { flex-direction: column; align-items: flex-start; gap: var(--sp-s); padding: var(--sp-m); }
  .compare__demo-diff-note { text-align: left; }

  .compare__stats { grid-template-columns: 1fr; gap: var(--sp-s); }
  .compare__stat { padding: var(--sp-s); }
}
