/* ═══════════════════════════════════════════════════
   BrainLog — Shared Stylesheet
   Children's Mental Wellbeing Platform
═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --yellow:  #FFC837;
  --sun:     #FFD166;
  --blue:    #0283E1;
  --green:   #50C75B;
  --pink:    #FF5A76;
  --purple:  #8B5CF6;
  --orange:  #FF8C42;
  --teal:    #00C9B1;
  --dark:    #1E2642;
  --mid:     #4A5680;
  --muted:   #8595BB;
  --light:   #F0F8FF;
  --cream:   #FFFEF9;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  /* Layered, colour-tinted shadows */
  --shadow-sm:  0 1px 2px rgba(30,38,66,.04), 0 3px 10px rgba(30,38,66,.06);
  --shadow:     0 2px 4px rgba(30,38,66,.04), 0 8px 24px rgba(30,38,66,.08), 0 20px 40px rgba(30,38,66,.05);
  --shadow-lg:  0 4px 8px rgba(30,38,66,.04), 0 16px 40px rgba(30,38,66,.10), 0 40px 80px rgba(30,38,66,.07);
  --shadow-yellow: 0 4px 16px rgba(255,140,66,.28), 0 12px 36px rgba(255,140,66,.14);
  --shadow-blue:   0 4px 16px rgba(2,131,225,.22), 0 12px 36px rgba(2,131,225,.10);
  --shadow-green:  0 4px 16px rgba(80,199,91,.22), 0 12px 36px rgba(80,199,91,.10);

  /* Spring easing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }

/* ── BASE ── */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Grain texture layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark);
}
p { line-height: 1.75; }

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow), var(--sun));
  color: var(--dark);
  padding: .35rem 1.1rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: .82rem;
  margin-bottom: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-h {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 900;
  margin-bottom: .9rem;
}

.section-sub {
  font-size: 1.08rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 580px;
}

/* ── DECORATIVE BLOBS ── */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.blob-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(255,200,55,.22) 0%, rgba(255,200,55,.04) 70%); top: -180px; left: -120px; animation: floatBlob 11s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(2,131,225,.18) 0%, rgba(2,131,225,.03) 70%); top: 25%; right: -120px; animation: floatBlob 13s ease-in-out infinite reverse; }
.blob-3 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(80,199,91,.16) 0%, rgba(80,199,91,.02) 70%); bottom: 8%; left: 3%; animation: floatBlob 9s ease-in-out infinite 2s; }
.blob-4 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,90,118,.14) 0%, rgba(255,90,118,.02) 70%); bottom: 18%; right: 5%; animation: floatBlob 10s ease-in-out infinite 1s; }

/* ── KEYFRAMES ── */
@keyframes floatBlob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-20px) rotate(3deg); }
  66%  { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes floatEl {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(.5) translateY(28px); }
  60%  { transform: scale(1.07) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.fade-in {
  opacity: 0;
  animation: slideUp .65s var(--ease-out) forwards;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .75rem 0;
  background: rgba(255, 254, 249, .88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 200, 55, .18);
  box-shadow: 0 1px 0 rgba(255,200,55,.08), 0 4px 20px rgba(30,38,66,.06);
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.logo img {
  height: 42px;
  width: auto;
  transition: transform .35s var(--ease-spring);
}
.logo:hover img { transform: rotate(-6deg) scale(1.06); }
.logo-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-weight: 800;
  font-size: .92rem;
  padding: .38rem .75rem;
  border-radius: 50px;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-links a:hover { color: var(--dark); background: rgba(255, 200, 55, .14); }
.nav-links a.active { color: var(--dark); background: rgba(255, 200, 55, .18); }
.nav-links a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.btn-nav {
  background: linear-gradient(135deg, var(--yellow), var(--orange)) !important;
  color: var(--dark) !important;
  padding: .55rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 900 !important;
  box-shadow: var(--shadow-yellow) !important;
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out) !important;
}
.btn-nav:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(255,140,66,.4) !important;
  background: linear-gradient(135deg, var(--yellow), var(--orange)) !important;
  color: var(--dark) !important;
}
.btn-nav:active { transform: translateY(0) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform .3s var(--ease-out), opacity .2s;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.1rem;
    box-shadow: -4px 0 40px rgba(30,38,66,.12);
    transition: right .3s var(--ease-out);
    list-style: none;
    z-index: 999;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .75rem 1rem; }
  .btn-nav { display: block; text-align: center !important; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  padding: .95rem 2.4rem;
  border-radius: 50px;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-yellow);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255,140,66,.42), 0 4px 12px rgba(255,140,66,.2);
}
.btn-primary:active { transform: translateY(-1px) scale(1); }
.btn-primary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn-secondary {
  background: white;
  color: var(--blue);
  padding: .95rem 2.4rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
  border: 2.5px solid var(--blue);
  box-shadow: var(--shadow-blue);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .3s var(--ease-spring);
  display: inline-block;
}
.btn-secondary:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-white {
  background: white;
  color: var(--dark);
  padding: .95rem 2.4rem;
  border-radius: 50px;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.02rem;
  box-shadow: 0 4px 16px rgba(255,255,255,.25), 0 12px 32px rgba(0,0,0,.12);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  display: inline-block;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,255,255,.35), 0 18px 48px rgba(0,0,0,.15); }
.btn-white:active { transform: translateY(-1px); }
.btn-white:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.btn-outline-white {
  background: transparent;
  color: white;
  padding: .95rem 2.4rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
  border: 2.5px solid rgba(255,255,255,.55);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), transform .3s var(--ease-spring);
  display: inline-block;
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline-white:active { transform: translateY(0); }
.btn-outline-white:focus-visible { outline: 3px solid white; outline-offset: 3px; }

/* ── PAGE HERO (shared) ── */
.page-hero {
  padding: 10rem 2rem 5.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero-tag {
  display: inline-block;
  padding: .45rem 1.3rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: .86rem;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
  color: var(--dark);
}
.page-hero p {
  font-size: 1.18rem;
  color: var(--mid);
  max-width: 620px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}

/* ── BENEFIT ROWS ── */
.benefits-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem 6rem; }
.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1.5px solid rgba(74,86,128,.07);
}
.benefit-row:last-child { border-bottom: none; }
.benefit-row.flip { direction: rtl; }
.benefit-row.flip > * { direction: ltr; }

.benefit-visual {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  text-align: center;
  font-size: 7.5rem;
  box-shadow: var(--shadow-lg);
  animation: floatEl 6.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.benefit-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, rgba(255,200,55,.08) 0%, transparent 65%);
}

.benefit-content .tag {
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: .9rem;
  text-transform: uppercase;
}
.benefit-content h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 900;
  margin-bottom: .9rem;
  letter-spacing: -0.03em;
}
.benefit-content p {
  font-size: 1.03rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--mid);
  font-size: .93rem;
  line-height: 1.55;
}
.benefit-list li::before {
  content: '✓';
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

@media (max-width: 768px) {
  .benefit-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefit-row.flip { direction: ltr; }
}

/* ── CTA STRIP ── */
.cta-strip {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0,0,0,.06) 0%, transparent 55%);
  pointer-events: none;
}
.cta-strip h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}
.cta-strip p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2.4rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-strip-btns {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── SOLUTIONS GRID ── */
.sol-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 2.5rem;
}
.sol-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .25s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  opacity: 0;
  transition: opacity .25s;
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sol-card:hover::before { opacity: 1; }
.sol-icon { font-size: 4rem; margin-bottom: 1.4rem; display: block; animation: floatEl 6s ease-in-out infinite; }
.sol-card h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: .9rem; }
.sol-card p { color: var(--mid); line-height: 1.75; margin-bottom: 1.4rem; }
.sol-card ul { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .5rem; }
.sol-card ul li { display: flex; align-items: flex-start; gap: .6rem; color: var(--mid); font-size: .92rem; }
.sol-card ul li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.sol-btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
  transition: transform .3s var(--ease-spring), box-shadow .25s var(--ease-out);
}
.sol-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,140,66,.38); }
.sol-btn:active { transform: translateY(0); }
.sol-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 640px) { .sol-grid { grid-template-columns: 1fr; } }

/* ── FEATURES PAGE ── */
.feat-page-grid { max-width: 1180px; margin: 0 auto; padding: 0 2rem 6rem; }
.feat-page-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1.5px solid rgba(74,86,128,.07);
}
.feat-page-item:last-child { border-bottom: none; }
.feat-page-item:nth-child(even) .feat-visual-box { order: -1; }
.feat-visual-box {
  background: linear-gradient(145deg, #F4F8FF, #FFF8EA);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  font-size: 7.5rem;
  animation: floatEl 6.5s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.feat-visual-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,200,55,.1) 0%, transparent 60%);
}
.feat-page-item h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: .9rem; }
.feat-page-item p { color: var(--mid); line-height: 1.8; margin-bottom: 1.4rem; font-size: 1.03rem; }
.feat-page-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.feat-page-list li { display: flex; align-items: flex-start; gap: .65rem; color: var(--mid); font-size: .93rem; }
.feat-page-list li::before {
  content: '✓';
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .feat-page-item { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-page-item:nth-child(even) .feat-visual-box { order: 0; }
}

/* ── PRICING ── */
.pricing-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem 6rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.price-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease-out);
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular { border-color: var(--yellow); }
.price-card.popular::before {
  content: '⭐ Most Popular';
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  padding: .28rem 1.1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: var(--shadow-yellow);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.popular:hover { transform: translateY(-6px); }
.price-icon { font-size: 2.8rem; margin-bottom: .9rem; display: block; }
.price-card h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: .25rem; }
.price-who { font-size: .83rem; color: var(--muted); margin-bottom: 1.4rem; font-weight: 700; }
.price-amount { font-family: 'Noto Sans JP', sans-serif; font-size: 2.7rem; font-weight: 900; color: var(--dark); line-height: 1; letter-spacing: -0.04em; }
.price-period { font-size: .86rem; color: var(--muted); font-weight: 700; margin-bottom: 1.4rem; }
.price-list { list-style: none; margin: 1.4rem 0; display: flex; flex-direction: column; gap: .55rem; }
.price-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--mid); }
.price-list li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.price-btn {
  display: block;
  text-align: center;
  padding: .85rem;
  border-radius: 50px;
  font-weight: 900;
  text-decoration: none;
  font-size: .92rem;
  transition: transform .3s var(--ease-spring), box-shadow .25s var(--ease-out);
  margin-top: auto;
}
.price-btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
}
.price-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,140,66,.4); }
.price-btn-primary:active { transform: translateY(0); }
.price-btn-primary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.price-btn-outline { border: 2.5px solid var(--blue); color: var(--blue); }
.price-btn-outline:hover { background: var(--blue); color: white; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.price-btn-outline:active { transform: translateY(0); }
.price-btn-outline:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.price-note { text-align: center; margin-top: 2.8rem; color: var(--muted); font-size: .88rem; }

/* ── ABOUT ── */
.about-wrap { max-width: 1080px; margin: 0 auto; padding: 0 2rem 6rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-bottom: 5.5rem; }
.story-illo {
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5rem;
  box-shadow: 0 20px 60px rgba(255,140,66,.28), 0 8px 24px rgba(255,140,66,.14);
  animation: floatEl 6.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.story-illo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, rgba(255,255,255,.25) 0%, transparent 55%);
}
.story-text h2 { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.story-text p { color: var(--mid); line-height: 1.8; margin-bottom: 1.1rem; }
.mission-box {
  background: linear-gradient(145deg, #F2F7FF, #FFF8EA);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mission-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,200,55,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.mission-box h2 { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 1.4rem; position: relative; }
.mission-box p { font-size: 1.08rem; color: var(--mid); line-height: 1.8; max-width: 680px; margin: 0 auto; position: relative; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; margin-top: 2.8rem; }
.value-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease-spring), box-shadow .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 3.2rem; margin-bottom: .9rem; display: block; }
.value-card h3 { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: .7rem; }
.value-card p { color: var(--mid); font-size: .9rem; line-height: 1.65; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem; margin: 3.5rem 0; text-align: center; }
.stat-item { padding: 2rem 1rem; }
.stat-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: .9rem; color: var(--mid); font-weight: 700; margin-top: .3rem; }
@media (max-width: 768px) { .story-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ── CONTACT ── */
.contact-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.contact-info-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.contact-info-box h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 2rem; }
.ci-item { margin-bottom: 1.9rem; }
.ci-item h3 { font-weight: 800; margin-bottom: .35rem; font-size: .95rem; }
.ci-item a, .ci-item p { color: var(--mid); font-size: .97rem; text-decoration: none; transition: color .2s; }
.ci-item a:hover { color: var(--blue); }
.ci-item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.demo-box {
  background: linear-gradient(135deg, rgba(255,200,55,.14), rgba(255,140,66,.08));
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.8rem;
  border-left: 4px solid var(--yellow);
}
.demo-box .db-title { font-weight: 800; color: var(--dark); margin-bottom: .45rem; font-size: .95rem; }
.demo-box .db-body { color: var(--mid); font-size: .88rem; line-height: 1.65; }
.contact-form-box {
  background: linear-gradient(145deg, #F2F7FF, #FFF8EA);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.contact-form-box h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 800; margin-bottom: .45rem; font-size: .88rem; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.15rem;
  border: 2px solid rgba(74,86,128,.14);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .97rem;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  background: white;
  color: var(--dark);
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: rgba(74,86,128,.28); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,131,225,.12);
}
.form-group textarea { min-height: 135px; resize: vertical; }
.submit-btn {
  width: 100%;
  padding: 1.05rem;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.02rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  box-shadow: var(--shadow-yellow);
  transition: transform .3s var(--ease-spring), box-shadow .25s var(--ease-out);
}
.submit-btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,140,66,.42); }
.submit-btn:active:not([disabled]) { transform: translateY(0); }
.submit-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.submit-btn[disabled] { opacity: .65; cursor: not-allowed; }
#form-success {
  display: none;
  background: linear-gradient(135deg, #F5FFED, #E8FFE8);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  margin-top: 1rem;
}
.s-icon { font-size: 1.9rem; margin-bottom: .35rem; }
.s-title { font-weight: 900; color: #1E6B25; font-size: 1.08rem; margin-bottom: .2rem; }
.s-sub { color: #2E7A35; font-size: .88rem; }
#form-error {
  display: none;
  background: #FFF5F5;
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  padding: .9rem 1.4rem;
  margin-top: 1rem;
}
#form-error-text { font-weight: 800; color: #C01235; font-size: .93rem; }
@media (max-width: 768px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ── TRUST STRIP ── */
.trust {
  background: white;
  padding: 1.8rem 2rem;
  border-top: 2px dashed rgba(255,200,55,.28);
  border-bottom: 2px dashed rgba(255,200,55,.28);
  position: relative;
  z-index: 1;
}
.trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: .88rem; color: var(--mid); }
.trust-item .ti { font-size: 1.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: white;
  padding: 4.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,200,55,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .9rem;
  display: block;
}
.footer-column h4 { font-size: .95rem; font-weight: 800; margin-bottom: 1.1rem; color: rgba(255,255,255,.9); letter-spacing: .01em; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: .55rem; }
.footer-column a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s var(--ease-out);
}
.footer-column a:hover { color: var(--yellow); }
.footer-column a:focus-visible { outline: 1px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.38);
  font-size: .83rem;
}
@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-container > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-container { grid-template-columns: 1fr; } }

/* ── SHARED SECTION WRAPPER ── */
section { position: relative; z-index: 1; }
