/* ============================================================
   HAPILY Corporate Site — Shared Design System
   ============================================================ */

:root {
  /* Brand: yellow-dominant, mirroring legacy hapily-inc.com */
  --accent: #facc15;
  --accent-dark: #ca8a04;
  --accent-mid: #eab308;
  --accent-light: #fef9c3;
  --accent-glow: #ffe371;

  /* CTA blue (used on mid-page CTA section + secondary buttons) */
  --cta-blue: #2463eb;
  --cta-blue-dark: #1d4ed8;

  /* Text & surfaces */
  --primary: #1f2937;          /* dark text, replaces former navy */
  --primary-light: #374151;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fafaf7;
  --bg-soft: #fef9c3;
  --bg-dark: #1a1a2e;
  --border: #e5e7eb;

  /* Gradients */
  --gradient-yellow: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
  --gradient-yellow-soft: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  --gradient-rainbow-soft: linear-gradient(180deg, #fee2e2 0%, #ffedd5 15%, #fef9c3 35%, #dcfce7 65%, #e0f2fe 100%);
  --gradient-cta-blue: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  /* Backwards-compat aliases */
  --gradient: var(--gradient-yellow);
  --gradient-soft: var(--gradient-yellow-soft);
  --gradient-gold: var(--gradient-yellow);

  --card-shadow: 0 2px 12px rgba(15,23,42,0.05);
  --card-shadow-hover: 0 12px 32px rgba(15,23,42,0.10);
  --radius: 12px;
  --radius-lg: 18px;
  --border-soft: 1px solid #ececec;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

a { color: inherit; }

/* --- Typography --- */
h1 { font-size: 2.5rem; font-weight: 900; line-height: 1.35; letter-spacing: -0.015em; }
h2 { font-size: 2rem; font-weight: 800; line-height: 1.4; margin-bottom: 1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 { margin-bottom: 0.8rem; }
.section-title p { color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

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

.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-soft); }

/* --- Hero (photo background + refined yellow tint + navy depth) --- */
.hero {
  background-color: var(--primary);
  background-image:
    linear-gradient(135deg, rgba(31,41,55,0.45) 0%, rgba(202,138,4,0.45) 60%, rgba(202,138,4,0.55) 100%),
    url('/images/hero-family-tablet.webp?v=66e04436');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 160px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(202,138,4,0.25) 0%, transparent 55%);
  animation: heroGlow 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}

.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.9rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.32), 0 1px 4px rgba(0,0,0,0.24);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: var(--accent-dark);
  padding: 0 14px;
  border-radius: 8px;
  text-shadow: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin: 0 4px;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.96;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--accent-dark);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* hero-compact: smaller hero for inner pages */
.hero-compact { padding: 140px 0 80px; }
.hero-compact h1 { font-size: 2.2rem; }
.hero-compact .subtitle { font-size: 1.02rem; }

/* hero variants per business pillar (override background-image) */
.hero-consulting { background-image: linear-gradient(135deg, rgba(31,41,55,0.5) 0%, rgba(202,138,4,0.42) 70%), url('/images/hero-business-team.webp?v=0a5ee908'); }
.hero-regional   { background-image: linear-gradient(135deg, rgba(31,41,55,0.45) 0%, rgba(234,179,8,0.4) 70%), url('/images/hero-family-field.webp?v=a120f02a'); }
.hero-innovator  { background-image: linear-gradient(135deg, rgba(31,41,55,0.5) 0%, rgba(202,138,4,0.42) 70%), url('/images/hero-family-living.webp?v=d55860da'); }

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.95);
}
.breadcrumb a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;     /* pill shape, matches legacy */
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn-primary { background: var(--gradient-yellow); color: #fff; box-shadow: 0 4px 14px rgba(202,138,4,0.25); }
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(202,138,4,0.35);
}

.btn-secondary {
  background: var(--cta-blue);
  color: #fff;
  margin-left: 16px;
  box-shadow: 0 4px 14px rgba(36,99,235,0.25);
}
.btn-secondary:hover {
  background: var(--cta-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(36,99,235,0.35);
}

.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #854d0e;  /* amber-900 — WCAG AA on white */
  border: 2px solid var(--accent);
  font-weight: 700;
}
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* On dark/colored backgrounds (e.g. CTA section) */
.btn-on-dark { background: #fff; color: var(--cta-blue); }
.btn-on-dark:hover { background: #f3f4f6; transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 16px 42px; font-size: 1.05rem; }

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: var(--border-soft);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: #d4d4d8;
}

.card .icon { font-size: 1.8rem; margin-bottom: 0.8rem; opacity: 0.9; }
.card h3 { color: var(--primary); font-size: 1.15rem; line-height: 1.5; }
.card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.75; }
.card .card-cta { color: var(--accent-dark); font-weight: 700; font-size: 0.88rem; text-decoration: none; letter-spacing: 0.01em; }
.card .card-cta:hover { text-decoration: underline; }

/* Pillar card (big) */
.pillar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.pillar-card.pillar-regional::before { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); }
.pillar-card.pillar-innovator::before { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }
.pillar-card .pillar-label { font-size: 0.8rem; color: var(--accent-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.pillar-card.pillar-regional .pillar-label { color: #059669; }
.pillar-card.pillar-innovator .pillar-label { color: #7c3aed; }
.pillar-card h3 { font-size: 1.5rem; margin-top: 8px; }
.pillar-card .subservices { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pillar-card .subservices li { list-style: none; padding: 4px 0; color: var(--text-light); font-size: 0.9rem; }
.pillar-card .subservices li::before { content: '— '; color: var(--accent-dark); }
.pillar-card.pillar-regional .subservices li::before { color: #059669; }
.pillar-card.pillar-innovator .subservices li::before { color: #7c3aed; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
  margin: 2rem 0;
}

.stat-item {
  background: #fff;
  border: var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.stat-item .number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.5;
}

/* --- Feature Row (alternating) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-row:last-child { margin-bottom: 0; }

.feature-text { min-width: 0; }
.feature-visual {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  font-size: 4rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
}

.pricing-card.featured {
  border: 3px solid var(--accent);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
}

.pricing-card .plan-name { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin: 16px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; text-align: left; margin: 24px 0; }
.pricing-card li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; color: var(--text-light); }
.pricing-card li::before { content: '✓ '; color: var(--accent-dark); font-weight: 700; }

/* --- Flow / Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.9rem; color: var(--text-light); }

/* --- Testimonial --- */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--card-shadow);
  max-width: 720px;
  margin: 2rem auto;
  border: 1px solid var(--border);
}

.testimonial blockquote {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.9;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -12px;
  font-size: 3rem;
  color: var(--accent);
  font-family: serif;
  line-height: 1;
}

.testimonial .author { font-weight: 700; color: var(--primary); }
.testimonial .role { font-size: 0.85rem; color: var(--text-light); }

/* --- CTA Section (blue indigo, matches legacy "HAPILYと一緒に成長しませんか？" block) --- */
.cta-section {
  background: var(--gradient-cta-blue);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255,210,0,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; }
.cta-section p { opacity: 0.92; max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-section .btn-primary { background: var(--gradient-yellow); }
.cta-section .btn-secondary { background: #fff; color: var(--cta-blue); border: none; }
.cta-section .btn-secondary:hover { background: #f3f4f6; }

/* --- FAQ --- */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--primary);
  list-style: none;
  padding: 2px 0;
}

.faq-item summary::before { content: 'Q. '; color: var(--accent-dark); }
.faq-item summary::after { content: '＋'; float: right; color: var(--text-light); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p { margin-top: 12px; color: var(--text-light); font-size: 0.95rem; padding-left: 1.5rem; }

/* --- Navigation (yellow bar, mirrors legacy site) --- */
nav#nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 0;
  background: var(--gradient-yellow);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: padding 0.25s;
}

nav#nav.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

nav#nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav#nav .logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}
nav#nav .logo img { display: block; height: 32px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

nav#nav .logo .accent { color: #fff; }

.site-footer .footer-logo img { display: block; height: 40px; width: auto; }

nav#nav .nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav#nav .nav-links > a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

nav#nav .nav-links > a:hover { opacity: 0.75; }
nav#nav .nav-drop > a { color: #fff; font-weight: 600; }

nav#nav .nav-cta {
  background: #fff;
  color: var(--accent-dark) !important;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
nav#nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 1 !important; }

/* Nav dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.nav-drop:hover .nav-drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text) !important;
  font-size: 0.9rem;
  border-radius: 6px;
}
.nav-drop-menu a:hover { background: var(--bg-alt); }
.nav-drop-menu .drop-heading { font-weight: 700; color: var(--primary) !important; padding: 8px 14px 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Footer (dark navy with gold accent) --- */
footer.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 32px;
  position: relative;
  font-size: 0.9rem;
  overflow: hidden;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  z-index: 2;
}
footer.site-footer .container { position: relative; z-index: 1; }

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
footer.site-footer .footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  text-shadow: none;
}
footer.site-footer .footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 28px; height: 1px;
  background: var(--accent);
}
footer.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer .footer-col li { margin-bottom: 12px; }
footer.site-footer .footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
footer.site-footer .footer-col a:hover { color: var(--accent); padding-left: 4px; text-decoration: none; }

footer.site-footer .footer-logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 0;
  text-shadow: none;
}
footer.site-footer .footer-logo img { filter: brightness(1.05); height: 40px; width: auto; }
footer.site-footer .footer-mission {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.95;
  margin-top: 20px;
  max-width: 360px;
  opacity: 1;
}
footer.site-footer .footer-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer.site-footer .footer-contact a {
  color: #cbd5e1;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
footer.site-footer .footer-contact a:hover { color: var(--accent); padding-left: 0; }
footer.site-footer .footer-contact svg {
  width: 16px; height: 16px;
  color: var(--accent);
}
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: left;
}
footer.site-footer .footer-bottom .legal {
  display: flex;
  gap: 20px;
}
footer.site-footer .footer-bottom .legal a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
footer.site-footer .footer-bottom .legal a:hover { color: #e2e8f0; }

/* --- Case study card (for top page) --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Case card — magazine style (used in TOP / consulting/cases/) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.case-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .case-grid, .case-grid-2 { grid-template-columns: 1fr; } }
.case-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px rgba(15,23,42,0.10); }
.case-card .case-header {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--cs-1) 0%, var(--cs-2) 100%);
  overflow: hidden;
}
.case-card .case-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.7;
}
.case-card .case-header::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  right: -60px; bottom: -80px;
}
.case-card .case-header .case-icon {
  position: absolute;
  top: 24px; left: 24px;
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.96);
  stroke-width: 1.6;
}
.case-card .case-header .case-watermark {
  position: absolute;
  right: 22px; bottom: -18px;
  font-family: 'Lato', sans-serif;
  font-size: 5.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.16);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
}
.case-card .case-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-card .case-body .case-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cs-accent);
}
.case-card .case-body h3 {
  font-size: 1.18rem;
  margin: 12px 0 12px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.case-card .case-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
/* Case metrics — quick-glance KPI badges (e.g. "2年+伴走 / 業務 3→5領域") */
.case-card .case-metrics {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 4px;
}
.case-card .case-metrics .metric {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 11px;
  background: var(--cs-soft);
  color: var(--cs-accent);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.case-card .case-metrics .metric b {
  font-family: 'Lato', 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}
.case-card.is-coming .case-metrics .metric {
  background: var(--cs-soft);
  color: var(--text-light);
}
.case-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.case-chips .chip {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--cs-soft);
  color: var(--cs-accent);
  border-radius: 999px;
  font-weight: 700;
}
.case-more {
  margin-top: auto;
  color: var(--cs-accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.case-card:hover .case-more { gap: 12px; }

/* Coming Soon variant */
.case-card.is-coming { background: #f8f8fa; border: 2px dashed var(--border); }
.case-card.is-coming .case-header { background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%); opacity: 0.6; }
.case-card.is-coming .case-body .case-tag { color: var(--text-light); }
.case-card.is-coming .case-body h3 { color: var(--text-light); }

/* Color variants (cs-*) shared by TOP / cases/index / case detail */
.case-card.cs-it    { --cs-1: #1e3a8a; --cs-2: #3b82f6; --cs-accent: #1e40af; --cs-soft: #dbeafe; }
.case-card.cs-dx    { --cs-1: #9a3412; --cs-2: #f97316; --cs-accent: #c2410c; --cs-soft: #ffedd5; }
.case-card.cs-ai    { --cs-1: #312e81; --cs-2: #7c3aed; --cs-accent: #6d28d9; --cs-soft: #ede9fe; }
.case-card.cs-shop  { --cs-1: #14532d; --cs-2: #16a34a; --cs-accent: #15803d; --cs-soft: #dcfce7; }
.case-card.cs-ec    { --cs-1: #134e4a; --cs-2: #14b8a6; --cs-accent: #0f766e; --cs-soft: #ccfbf1; }
.case-card.cs-inno  { --cs-1: #581c87; --cs-2: #a855f7; --cs-accent: #7e22ce; --cs-soft: #f3e8ff; }
.case-card.cs-d2c   { --cs-1: #7c2d12; --cs-2: #f59e0b; --cs-accent: #b45309; --cs-soft: #fef3c7; }
.case-card.cs-gray  { --cs-1: #64748b; --cs-2: #94a3b8; --cs-accent: #475569; --cs-soft: #e2e8f0; }

/* --- Member / Innovator grid --- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.member-card .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gradient-soft);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 900;
  color: var(--primary);
}
.member-card .m-name { font-weight: 700; color: var(--primary); margin-top: 8px; }
.member-card .m-org { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
.member-card .m-role { font-size: 0.78rem; color: var(--accent-dark); margin-top: 6px; font-weight: 600; }

/* --- Checks / lists --- */
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

/* --- Badge / Tags --- */
.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  margin-right: 6px;
  margin-bottom: 6px;
}
.tag-accent { background: #fef3c7; color: #92400e; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-purple { background: #ede9fe; color: #5b21b6; }

/* --- Coming soon box --- */
.coming-soon {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  border: 2px dashed var(--border);
}
.coming-soon .cs-label { font-size: 0.9rem; color: var(--accent-dark); font-weight: 700; letter-spacing: 2px; }
.coming-soon h3 { font-size: 1.8rem; margin: 1rem 0; }
.coming-soon p { color: var(--text-light); max-width: 560px; margin: 0 auto 2rem; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 8px;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
}
.timeline-content { background: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.timeline-content h4 { color: var(--primary); margin-bottom: 8px; }
.timeline-content p { font-size: 0.92rem; color: var(--text-light); }

/* --- Form --- */
.contact-form {
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-row .req { color: #ef4444; margin-left: 4px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,210,0,0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* --- Hamburger for mobile nav --- */
.nav-toggle {
  display: none;  /* shown by media query below */
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 1100;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,0.32); }

.ham-box {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}
.ham-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.25s ease 0.2s,
    opacity 0.18s ease 0.1s,
    background 0.25s ease;
}
.ham-bar:nth-child(1) { top: 0; }
.ham-bar:nth-child(2) { top: 7px; }
.ham-bar:nth-child(3) { top: 14px; }

/* Animated → X */
body.nav-open .nav-toggle {
  background: rgba(255,255,255,0.12);
  transform: rotate(180deg);
}
body.nav-open .ham-bar {
  background: var(--accent, #facc15);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    top 0.25s ease,
    opacity 0.18s ease,
    background 0.25s ease;
}
body.nav-open .ham-bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .ham-bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }
/* Innovator brand: dark icon over light hero */
body.brand-innovator .nav-toggle { background: rgba(15,23,42,0.85); border-color: rgba(15,23,42,0.5); color: #fff; }
body.brand-innovator .nav-toggle:hover { background: rgba(15,23,42,1); }

/* Fullscreen menu overlay (mobile, editorial style with grouped sections) */
body.nav-open { overflow: hidden; }
body.nav-open nav#nav .nav-links {
  display: flex !important;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0 !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(234,179,8,0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(202,138,4,0.08) 0%, transparent 55%),
    linear-gradient(180deg, #050b1a 0%, #0f172a 60%, #1e293b 100%);
  z-index: 1050;
  padding: 88px 0 32px;
  overflow-y: auto;
  animation: navPanelReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}

@keyframes navPanelReveal {
  0% {
    opacity: 0;
    clip-path: circle(0% at calc(100% - 36px) 36px);
  }
  60% { opacity: 1; }
  100% {
    opacity: 1;
    clip-path: circle(150% at calc(100% - 36px) 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nav-open nav#nav .nav-links { animation: none; }
}
body.nav-open nav#nav .nav-links::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
body.nav-open nav#nav .nav-links > * { position: relative; z-index: 1; }

/* Drop-down section card (Services) */
body.nav-open nav#nav .nav-drop {
  margin: 0 24px 8px;
  padding: 20px 22px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
body.nav-open nav#nav .nav-drop > a {
  display: block;
  color: var(--accent) !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 0 12px !important;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(234,179,8,0.18);
  pointer-events: none;
}
body.nav-open nav#nav .nav-drop > a::after { content: ''; }
body.nav-open nav#nav .nav-drop-menu {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  border: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
}
@media (max-width: 480px) {
  body.nav-open nav#nav .nav-drop-menu { grid-template-columns: 1fr; }
}
body.nav-open nav#nav .nav-drop-menu .drop-heading {
  grid-column: 1 / -1;
  color: rgba(234,179,8,0.7) !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  font-weight: 800 !important;
  padding: 10px 4px 4px !important;
  margin-top: 4px;
  border: none;
}
body.nav-open nav#nav .nav-drop-menu .drop-heading:first-child { margin-top: 0; }
body.nav-open nav#nav .nav-drop-menu a {
  color: #fff !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
body.nav-open nav#nav .nav-drop-menu a:hover {
  background: rgba(234,179,8,0.14);
  color: var(--accent) !important;
}

/* Top-level direct links section */
body.nav-open nav#nav .nav-links > a {
  display: flex;
  align-items: center;
  margin: 0 24px;
  padding: 14px 22px !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-shadow: none !important;
}
body.nav-open nav#nav .nav-links > a::before {
  content: '›';
  color: var(--accent);
  font-weight: 900;
  margin-right: 12px;
  font-size: 1.1rem;
  opacity: 0.7;
}
body.nav-open nav#nav .nav-links > a:hover {
  color: var(--accent) !important;
  background: rgba(234,179,8,0.06);
  border-radius: 8px;
}
body.nav-open nav#nav .nav-links .nav-cta {
  margin: 20px 24px 0;
  padding: 16px 28px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border-radius: 999px;
  text-align: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 22px rgba(234,179,8,0.32);
}
body.nav-open nav#nav .nav-links .nav-cta::before { content: ''; margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-compact h1 { font-size: 1.8rem; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row:nth-child(even) .feature-text { order: 0; }
  .pricing-card.featured { transform: none; }
  .btn-secondary { margin-left: 0; }
  nav#nav .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .timeline::before { left: 20px; }
  .timeline-item { padding-left: 60px; }
  .timeline-item::before { left: 12px; }
  .timeline-year { position: static; margin-bottom: 4px; }
}

/* --- Misc --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ====================================================================
   Shared Component: History Timeline (used in vision, company, etc.)
   ==================================================================== */
.history-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 90% 50%, rgba(234,179,8,0.05) 0%, transparent 50%),
    linear-gradient(180deg, #fafaf9 0%, #fff 100%);
  position: relative;
}
.history-timeline {
  position: relative;
  max-width: 880px;
  margin: 64px auto 0;
  padding: 0 20px;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 140px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 8%, var(--accent-dark) 50%, var(--accent) 92%, transparent 100%);
}
@media (max-width: 600px) { .history-timeline::before { left: 18px; } }

.h-phase {
  position: relative;
  margin: 32px 0 18px;
  padding-left: 172px;
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 600px) { .h-phase { padding-left: 48px; } }
.h-phase:first-of-type { margin-top: 0; }
.h-phase::before {
  content: '';
  position: absolute;
  left: 132px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(234,179,8,0.18);
}
@media (max-width: 600px) { .h-phase::before { left: 10px; } }
.h-phase .h-phase-tag {
  font-family: 'Lato', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-dark);
}
.h-phase .h-phase-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.h-phase .h-phase-range {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.h-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  padding: 8px 0 28px;
}
@media (max-width: 600px) {
  .h-item { grid-template-columns: 1fr; gap: 8px; padding-left: 48px; }
}
.h-item .h-year {
  font-family: 'Lato', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2.2rem;
  letter-spacing: 0;
  text-align: right;
  line-height: 1;
  padding-top: 6px;
  padding-right: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 600px) { .h-item .h-year { text-align: left; font-size: 1.8rem; padding-top: 0; padding-right: 0; } }

.h-item::before {
  content: '';
  position: absolute;
  left: 134px;
  top: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-dark);
  transition: transform 0.3s, background 0.3s;
}
@media (max-width: 600px) { .h-item::before { left: 12px; top: 8px; } }

.h-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.h-item:hover .h-card { transform: translateX(4px); box-shadow: 0 16px 32px rgba(15,23,42,0.08); border-color: var(--accent); }
.h-item:hover::before { background: var(--accent); transform: scale(1.2); }

.h-card .h-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 4px;
  margin-bottom: 10px;
}
.h-card h4 { font-size: 1.08rem; margin: 0 0 10px; letter-spacing: 0.02em; line-height: 1.5; }
.h-card p { color: var(--text-light); line-height: 1.9; font-size: 0.92rem; margin: 0; }

.h-item.h-now .h-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
  border-color: var(--accent-dark);
}
.h-item.h-now .h-tag { background: #0f172a; color: var(--accent); }
.h-item.h-now::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(234,179,8,0.25); }

@media (prefers-reduced-motion: no-preference) {
  .h-item.h-now::before {
    animation: nowPulse 2.4s ease-in-out infinite;
  }
  @keyframes nowPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(234,179,8,0.25); }
    50%      { box-shadow: 0 0 0 12px rgba(234,179,8,0.08); }
  }
}

/* ====================================================================
   Editorial common patterns — Hero / Section / Pricing / Note
   Used across consulting/* + about/* + news/* + contact + download
   ==================================================================== */

/* Hero — editorial dark with grid lines + gold accent */
.co-hero { margin-top: 70px; padding: 110px 0 90px; position: relative; background: radial-gradient(circle at 15% 25%, rgba(234,179,8,0.12) 0%, transparent 50%), radial-gradient(circle at 85% 75%, rgba(202,138,4,0.10) 0%, transparent 55%), linear-gradient(180deg, #050b1a 0%, #0f172a 50%, #1e293b 100%); overflow: hidden; }
.co-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.co-hero .container { position: relative; z-index: 2; }
.co-hero-header { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.co-hero-header .v-label { font-family: 'Lato', sans-serif; font-size: 0.75rem; letter-spacing: 0.36em; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.co-hero-header .v-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(234,179,8,0.7) 0%, rgba(234,179,8,0.1) 100%); max-width: 200px; }
.co-hero-header .v-meta { font-family: 'Lato', sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.co-hero .breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-bottom: 18px; }
.co-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.co-hero .breadcrumb a:hover { color: var(--accent); }
.co-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.4; letter-spacing: 0.04em; color: #fff; margin: 0 0 24px; font-weight: 900; }
.co-hero h1 .accent { color: var(--accent); font-style: italic; }
.co-hero .co-lead { color: rgba(255,255,255,0.78); font-size: 1.02rem; line-height: 2.05; max-width: 720px; margin: 0 0 28px; }

/* Hero buttons (in-hero CTA) */
.co-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.co-hero-buttons .hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; text-decoration: none; letter-spacing: 0.02em; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.co-hero-buttons .hbtn.is-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #0f172a; box-shadow: 0 6px 18px rgba(234,179,8,0.3); }
.co-hero-buttons .hbtn.is-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234,179,8,0.4); }
.co-hero-buttons .hbtn.is-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.co-hero-buttons .hbtn.is-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.co-hero-buttons .hbtn svg { width: 14px; height: 14px; }

/* Hero stats — 4-column glass cards with gold-grad numbers */
.co-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .co-hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .co-hero-stats { grid-template-columns: 1fr; } }
.co-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 22px; backdrop-filter: blur(8px); transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.co-stat:hover { transform: translateY(-4px); border-color: rgba(234,179,8,0.4); background: rgba(234,179,8,0.06); }
.co-stat .cs-label { font-family: 'Lato', sans-serif; font-size: 0.66rem; letter-spacing: 0.26em; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.co-stat .cs-num { font-family: 'Lato', 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 1.9rem; line-height: 1.1; margin-top: 6px; letter-spacing: 0.01em; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-stat .cs-num .cs-unit { color: rgba(255,255,255,0.6); font-weight: 600; font-size: 0.6em; margin-left: 4px; font-style: normal; -webkit-text-fill-color: rgba(255,255,255,0.6); }
.co-stat .cs-sub { color: rgba(255,255,255,0.72); font-size: 0.82rem; margin-top: 6px; line-height: 1.65; min-height: 2.65em; }

@media (prefers-reduced-motion: no-preference) {
  .co-hero h1 { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
  .co-hero .co-lead { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
  .co-hero-buttons { animation: heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
  .co-hero-stats { animation: heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
}

/* Section base (canonical: saas/agile/growth pattern) */
.co-section { padding: 120px 0; }
.co-section.alt { background: radial-gradient(circle at 90% 10%, rgba(234,179,8,0.05) 0%, transparent 50%), linear-gradient(180deg, #fafaf9 0%, #fff 100%); position: relative; }
.co-section.alt::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.025) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.co-section .container { position: relative; z-index: 1; }
.co-section-head { max-width: 1120px; margin: 0 auto 48px; display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.co-section-head .h-num { font-family: 'Lato', serif; font-style: italic; font-weight: 900; font-size: 1.6rem; color: var(--accent-dark); }
.co-section-head .h-jp { font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: 0.04em; }
.co-section-head .h-en { color: var(--text-light); font-family: 'Lato', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-left: auto; }
.co-section-intro { max-width: 760px; color: var(--text-light); line-height: 1.95; margin: 0 0 48px; }
.co-section-intro strong { color: var(--primary); font-weight: 800; }

/* Pricing — 3-column cards with featured (推奨) variant */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; background: #fff; border-radius: 18px; padding: 40px 32px; border: 1px solid var(--border); transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15,23,42,0.10); border-color: var(--accent); }
.price-card.featured { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); border-color: var(--accent-dark); color: #fff; }
.price-card.featured::before { content: '推奨'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #0f172a; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; border-radius: 999px; box-shadow: 0 6px 18px rgba(234,179,8,0.4); }
.price-card .pc-tag { display: inline-block; font-family: 'Lato', sans-serif; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; text-transform: uppercase; }
.price-card .pc-tag.tag-opt { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; }
.price-card .pc-plan { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 8px; }
.price-card.featured .pc-plan { color: #fff; }
.price-card .pc-price { font-family: 'Lato', 'Noto Sans JP', sans-serif; font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1.1; letter-spacing: 0.01em; margin-bottom: 8px; }
.price-card.featured .pc-price { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .pc-price small { font-size: 0.45em; font-weight: 600; color: var(--text-light); margin-left: 6px; -webkit-text-fill-color: var(--text-light); }
.price-card.featured .pc-price small { color: rgba(255,255,255,0.6); -webkit-text-fill-color: rgba(255,255,255,0.6); }
.price-card .pc-period { color: var(--text-light); font-size: 0.85rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-card.featured .pc-period { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.1); }
.price-card .pc-trial { margin: 16px 0 22px; padding: 14px 16px; background: rgba(234,179,8,0.12); border-left: 3px solid var(--accent); border-radius: 4px; font-size: 0.82rem; line-height: 1.7; }
.price-card .pc-trial .trial-tag { display: inline-block; font-family: 'Lato', sans-serif; font-size: 0.62rem; letter-spacing: 0.22em; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.price-card .pc-trial .trial-price { color: #fff; font-weight: 800; font-size: 1.05rem; }
.price-card .pc-trial .trial-note { color: rgba(255,255,255,0.7); margin-left: 6px; font-size: 0.85em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card li { padding: 7px 0; font-size: 0.92rem; color: var(--primary); display: flex; align-items: flex-start; gap: 10px; }
.price-card.featured li { color: rgba(255,255,255,0.85); }
.price-card li::before { content: ''; flex-shrink: 0; width: 14px; height: 14px; background: var(--accent-light); border-radius: 50%; margin-top: 6px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ca8a04' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
.price-card.featured li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); }
.price-card .pc-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 0.92rem; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.price-card:not(.featured) .pc-cta { background: var(--accent-light); color: var(--accent-dark); border: 1.5px solid var(--accent-dark); }
.price-card:not(.featured) .pc-cta:hover { background: var(--accent); color: #0f172a; transform: translateY(-2px); }
.price-card.featured .pc-cta { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #0f172a; box-shadow: 0 8px 22px rgba(234,179,8,0.3); }
.price-card.featured .pc-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(234,179,8,0.4); }

/* Item pricing (フェーズ別 / 項目別 ミニマムプラン table — canonical pattern) */
.item-pricing { max-width: 960px; margin: 64px auto 0; background: #fff; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.item-pricing .ip-head { padding: 24px 28px; background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%); border-bottom: 1px solid var(--border); }
.item-pricing .ip-head h4 { font-size: 1.1rem; margin: 0 0 6px; color: var(--primary); letter-spacing: 0.02em; }
.item-pricing .ip-head p { font-size: 0.86rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.item-pricing table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.item-pricing th, .item-pricing td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.item-pricing tr:last-child td { border-bottom: none; }
.item-pricing tbody th { background: #fafaf9; font-weight: 700; color: var(--primary); width: 30%; }
.item-pricing td.ip-price { font-family: 'Lato', 'Noto Sans JP', sans-serif; font-weight: 800; color: var(--primary); width: 28%; }
.item-pricing td.ip-price small { color: var(--text-light); font-weight: 600; font-size: 0.82em; margin-left: 4px; }
.item-pricing td.ip-desc { color: var(--text-light); font-size: 0.88em; line-height: 1.7; }
.item-pricing td.ip-desc strong { color: var(--primary); }
@media (max-width: 700px) { .item-pricing .ip-head { padding: 18px 18px; } .item-pricing th, .item-pricing td { padding: 10px 14px; font-size: 0.85rem; } .item-pricing td.ip-desc { display: none; } }

/* Price note (※ list with Notes label) */
.price-note { max-width: 960px; margin: 36px auto 0; padding: 22px 28px; background: #fafaf9; border-radius: 12px; border: 1px dashed var(--border); color: var(--text-light); font-size: 0.85rem; line-height: 1.95; }
.price-note .pn-label { font-family: 'Lato', sans-serif; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em; color: var(--accent-dark); text-transform: uppercase; margin-right: 8px; }
.price-note ul { list-style: none; padding: 0; margin: 10px 0 0; }
.price-note li { padding: 4px 0; display: flex; gap: 10px; align-items: flex-start; }
.price-note li::before { content: '※'; color: var(--accent-dark); font-weight: 700; flex-shrink: 0; }
.price-note strong { color: var(--accent-dark); }

/* Generic chip utility (badges, tags) */
.chip { display: inline-flex; align-items: center; font-size: 0.72rem; padding: 3px 9px; background: var(--accent-light); color: var(--accent-dark); border-radius: 999px; font-weight: 700; letter-spacing: 0.01em; }

/* Reveal anim utility (shared) — progressive enhancement.
   Default: content is visible. JS adds `js-reveal` to <html> on boot, which
   activates the opacity:0 → opacity:1 transition. This way, LCP isn't
   blocked by JS hydration. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js-reveal .reveal.in { opacity: 1; transform: translateY(0); }
  html.js-reveal .reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js-reveal .reveal-left.in { opacity: 1; transform: translateX(0); }
  html.js-reveal .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js-reveal .reveal-scale.in { opacity: 1; transform: scale(1); }
  html.js-reveal .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  html.js-reveal .reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.04s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.20s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.28s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.36s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.44s; }
  html.js-reveal .reveal-stagger.in > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.52s; }
}

/* ====================================================================
   Shared Component: Final CTA (dark navy + gold) — used across pages
   ==================================================================== */
.cta-final {
  padding: 100px 0 110px;
  position: relative;
  background:
    radial-gradient(circle at 18% 28%, rgba(234,179,8,0.14) 0%, transparent 55%),
    radial-gradient(circle at 82% 72%, rgba(202,138,4,0.12) 0%, transparent 55%),
    linear-gradient(180deg, #050b1a 0%, #0f172a 50%, #1e293b 100%);
  overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-final .cta-wrap { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; text-align: center; padding: 0 24px; }
.cta-final .cta-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.32em; font-weight: 800;
  color: var(--accent); padding: 9px 18px; border: 1.5px solid rgba(234,179,8,0.4);
  border-radius: 999px; margin-bottom: 28px; text-transform: uppercase;
}
.cta-final .cta-label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.5;
  margin: 0 0 22px;
  letter-spacing: 0.02em;
  font-weight: 900;
}
.cta-final h2 .em { color: var(--accent); font-style: italic; font-weight: 900; }
.cta-final .cta-lead { color: #cbd5e1; font-size: 1.02rem; line-height: 2; margin: 0 auto 36px; max-width: 680px; }
.cta-final .cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-final .btn-cta-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 38px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0f172a; font-weight: 800; font-size: 1rem; border-radius: 999px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 28px rgba(234,179,8,0.3); letter-spacing: 0.02em;
}
.cta-final .btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(234,179,8,0.4); }
.cta-final .btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px;
  background: transparent; color: #fff; font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.4);
  transition: background 0.2s, border-color 0.2s;
}
.cta-final .btn-cta-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }

@media (prefers-reduced-motion: no-preference) {
  .cta-final .cta-label::before {
    animation: ctaLabelPulse 2.2s ease-in-out infinite;
    will-change: opacity, transform;
  }
  @keyframes ctaLabelPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(1.4); }
  }
}

/* ---- Accessibility utility ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Share buttons (news / innovator_profile articles) ---- */
.share-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 56px auto 16px;
  padding: 28px 24px;
  background: #fbf6ec;
  border-radius: 12px;
  max-width: 720px;
}
.share-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light, #6b7280);
  font-weight: 700;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.10);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.12);
}
.share-btn.share-x:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn.share-line:hover { background: #06c755; color: #fff; border-color: #06c755; }
.share-btn .sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Image intrinsic-ratio safety ---- */
/* PR #27 added width/height attributes to every <img> for CLS protection,
   but without this rule the height attribute is applied as a fixed pixel
   value when the image is shrunk to container width — causing weird
   vertical stretch (例: consulting/cases/d2c-petfood の画像).
   This pair lets the browser compute aspect-ratio from the attributes,
   while keeping height fluid. */
img {
  max-width: 100%;
  height: auto;
}

/* Pending profile link (Innovator Profile preparation) */
.profile-link-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-light, #6b7280);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: default;
}

/* ============================================================
   Mobile polish — global safety nets
   ============================================================ */
html, body { overflow-x: hidden; }

img, svg, video, iframe { max-width: 100%; }

/* Long Japanese sentences shouldn't blow out the viewport */
h1, h2, h3, h4, p, li { overflow-wrap: break-word; word-break: normal; }

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; line-height: 1.45; }
  h2 { font-size: 1.5rem; line-height: 1.45; }
  h3 { font-size: 1.1rem; }
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-title { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  section { padding: 56px 0; }
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Tables — horizontally scrollable on small screens */
@media (max-width: 600px) {
  .legal-section table,
  .case-table,
  .pricing-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* Pre / code blocks shouldn't overflow */
pre, code {
  max-width: 100%;
  overflow-x: auto;
}

/* Forms — full width inputs on mobile */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* CTA buttons on mobile — easier tap target */
@media (max-width: 480px) {
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-cta-primary,
  .btn-cta-secondary,
  .nf-cta-primary,
  .nf-cta-secondary {
    min-height: 44px;       /* WCAG tap target */
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.92rem;
  }
}

/* ============================================================
   iPhone (≤ 414px) polish — text fit
   - Cap oversize hero / stat numbers
   - Drop nowrap that breaks small screens
   - Tighten container / typography for narrow viewports
   ============================================================ */
@media (max-width: 414px) {
  /* Container further tightened */
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Hero h1 lines */
  .hero h1 { font-size: 1.7rem; line-height: 1.45; }

  /* Body copy slightly smaller for readability balance */
  p, li { font-size: 0.94rem; line-height: 1.85; }

  /* Buttons should wrap, not overflow */
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-cta-primary,
  .btn-cta-secondary,
  .nf-cta-primary,
  .nf-cta-secondary {
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  /* Vision hero — cap the huge "100" */
  .v-stat-block .v-stat-num { font-size: clamp(4.2rem, 24vw, 6.2rem); }
  .v-stat-block .v-stat-unit { font-size: 1rem; padding-bottom: 0.35em; white-space: normal; }
  .v-title-block h1 { font-size: 1.7rem; line-height: 1.4; }
  .v-title-block .v-lead { font-size: 0.92rem; line-height: 1.95; }

  /* TOP page mission band stat */
  .mb-stat-num { font-size: clamp(3.4rem, 22vw, 5rem); }

  /* 404 page big "404" */
  .nf-code { font-size: clamp(3.8rem, 20vw, 5.5rem); }

  /* Mission/Vision statement lines — allow wrap on iPhone */
  .mv-card .mv-statement .line { white-space: normal; }
  .mv-card .mv-statement { font-size: 0.96rem; line-height: 2; }

  /* MV pillars stack tag/title/desc cleanly */
  .mv-pillar { padding: 14px 16px; }
  .mv-pillar-title { font-size: 1.1rem; }
  .mv-pillar-desc { font-size: 0.88rem; line-height: 1.8; }

  /* Mission Key Concept box */
  .mv-keyphrase { padding: 16px 18px; }
  .mv-keyphrase p { font-size: 0.92rem; line-height: 1.9; }

  /* 100-person progress numbers stay readable */
  .mv-progress { padding: 20px 20px 18px; }
  .mv-progress-current { font-size: 2rem; }
  .mv-progress-count { font-size: 1.05rem; }
  .mv-progress-bar { height: 11px; }

  /* CEO message — stacked photo on top */
  .ceo-quote { gap: 16px; padding: 22px 18px; }
  .ceo-quote-photo { max-width: 200px; margin: 0 auto; }
  .ceo-quote blockquote { font-size: 0.94rem; line-height: 1.95; }

  /* Section title tweaks */
  .section-title { margin-bottom: 1.8rem; }
  .section-title h2 { font-size: 1.4rem; line-height: 1.5; }
  .section-label { font-size: 0.74rem; letter-spacing: 0.16em; }

  /* Trait card sub copy */
  .innov-trait-card { padding: 18px 18px 16px; }
  .it-sub { font-size: 0.78rem; }

  /* Persona cards */
  .persona-card { padding: 20px 18px; }
  .persona-card .p-pain p,
  .persona-card .p-offer p { font-size: 0.88rem; line-height: 1.8; }
  .persona-card ul li { font-size: 0.88rem; }

  /* Persona closing channels — already responsive, just tighten padding */
  .persona-closing { padding: 36px 20px; }
  .persona-closing h3 { font-size: 1.2rem; }
  .pc-channel { padding: 14px 16px 16px; }
  .pc-channel-title { font-size: 0.96rem; }

  /* Members hero stat */
  .co-stat .cs-num { font-size: clamp(1.6rem, 8vw, 2rem); }
}

/* Anything that explicitly says "don't wrap" but should be allowed
   to wrap once the viewport is narrow */
@media (max-width: 480px) {
  .mv-statement .line,
  .v-stat-block .v-stat-label .nowrap {
    white-space: normal !important;
  }
}

/* ============================================================
   Mobile nav: staggered item reveal when menu opens
   ============================================================ */
body.nav-open nav#nav .nav-links > * {
  animation: navItemRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.nav-open nav#nav .nav-links > *:nth-child(1) { animation-delay: 0.22s; }
body.nav-open nav#nav .nav-links > *:nth-child(2) { animation-delay: 0.28s; }
body.nav-open nav#nav .nav-links > *:nth-child(3) { animation-delay: 0.32s; }
body.nav-open nav#nav .nav-links > *:nth-child(4) { animation-delay: 0.36s; }
body.nav-open nav#nav .nav-links > *:nth-child(5) { animation-delay: 0.40s; }
body.nav-open nav#nav .nav-links > *:nth-child(6) { animation-delay: 0.44s; }
body.nav-open nav#nav .nav-links > *:nth-child(7) { animation-delay: 0.48s; }
body.nav-open nav#nav .nav-links > *:nth-child(8) { animation-delay: 0.52s; }

@keyframes navItemRise {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Sub-menu items inside Services drop also stagger gently */
body.nav-open nav#nav .nav-drop-menu > * {
  animation: navItemRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.45s;
}
body.nav-open nav#nav .nav-drop-menu > *:nth-child(n+5) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  body.nav-open nav#nav .nav-links > *,
  body.nav-open nav#nav .nav-drop-menu > * { animation: none; }
}

/* ---- Cookie consent banner ---- */
.hapily-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  animation: hapilyConsentIn 0.25s ease-out;
}
@keyframes hapilyConsentIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hapily-consent.hapily-consent-out { opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; }
.hapily-consent-body { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 880px; width: 100%; }
.hapily-consent-body p { margin: 0; font-size: 0.88rem; color: #334155; line-height: 1.6; flex: 1 1 280px; }
.hapily-consent-body a { color: var(--accent-dark, #854d0e); text-decoration: underline; }
.hapily-consent-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.hapily-consent-actions button {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.hapily-consent-deny { background: #fff; border-color: #cbd5e1; color: #475569; }
.hapily-consent-deny:hover { background: #f1f5f9; }
.hapily-consent-allow { background: #0f172a; color: #fff; border-color: #0f172a; }
.hapily-consent-allow:hover { background: #1e293b; }
@media (max-width: 520px) {
  .hapily-consent { inset: auto 10px 10px 10px; padding: 14px; }
  .hapily-consent-body p { font-size: 0.82rem; }
}

/* ---- Sticky CTA (article pages) ---- */
.hapily-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 998;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.42);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hapily-sticky-cta-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hapily-sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 158, 11, 0.55); }
@media (max-width: 520px) {
  .hapily-sticky-cta { right: 12px; bottom: 12px; font-size: 0.9rem; padding: 12px 18px; }
  .hapily-sticky-cta span { font-size: 0.88rem; }
}

/* ---- Newsletter signup card — editorial cream theme ----
   The next section (cta-final) is dark navy, so newsletter is intentionally
   light + warm to give the page rhythm. */
.newsletter-section {
  padding: 80px 24px;
  background:
    radial-gradient(circle at 0% 0%, #fef3c7 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, #fef9c3 0%, transparent 55%),
    #fffbeb;
}
.newsletter-card {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 56px 56px 48px;
  position: relative;
  border: 1px solid #fde68a;
  box-shadow: 0 20px 50px -20px rgba(180, 83, 9, 0.25);
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #facc15 0%, #f59e0b 50%, #d97706 100%);
  border-radius: 18px 18px 0 0;
}
.newsletter-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .newsletter-section { padding: 48px 16px; }
  .newsletter-card { padding: 40px 28px 32px; border-radius: 14px; }
  .newsletter-card::before { border-radius: 14px 14px 0 0; }
  .newsletter-card-grid { grid-template-columns: 1fr; gap: 32px; }
}

.newsletter-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
  color: #b45309;
  background: #fef3c7;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.newsletter-card-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.newsletter-card-title {
  font-size: 1.9rem;
  line-height: 1.45;
  font-weight: 900;
  margin: 0 0 18px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .newsletter-card-title { font-size: 1.55rem; line-height: 1.5; }
}
.newsletter-card-em {
  position: relative;
  z-index: 0;
  background: linear-gradient(180deg, transparent 62%, #fde68a 62%, #fde68a 96%, transparent 96%);
  padding: 0 2px;
}

.newsletter-card-lead {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #475569;
  margin: 0 0 22px;
}
.newsletter-card-lead strong { color: #92400e; font-weight: 700; }

.newsletter-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-card-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
}
.newsletter-card-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #f59e0b;
  border-radius: 50%;
  font-weight: 900;
}

.newsletter-card-form {
  background: #f8fafc;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #e2e8f0;
}
.newsletter-card-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-form input[type="email"]::placeholder { color: #94a3b8; }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.newsletter-form input[type="email"].is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
.newsletter-form input[type="email"].is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}
.newsletter-form-error {
  margin: 4px 0 -4px;
  font-size: 0.82rem;
  color: #b91c1c;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.newsletter-form-error::before {
  content: "⚠";
  font-size: 0.9rem;
}
.newsletter-form button {
  width: 100%;
  padding: 14px 22px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.45);
}
.newsletter-form button:hover {
  transform: translateY(-1px);
  background: #1e293b;
  box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.55);
}
.newsletter-card-fineprint {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.6;
  text-align: center;
}
.newsletter-card-fineprint a { color: #475569; text-decoration: underline; }
.newsletter-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
  color: #475569;
}
.newsletter-status.is-ok { color: #047857; font-weight: 700; }
.newsletter-status.is-err { color: #b91c1c; font-weight: 700; }

/* ---- Logo wall (TOP page social proof) ---- */
.logo-wall-section {
  padding: 56px 0 40px;
  background: #fafaf9;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.logo-wall-kicker {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
  margin: 0 0 24px;
}
.logo-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color .2s, transform .2s;
}
.logo-wall-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.logo-wall-item span {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #475569;
  text-align: center;
}
.logo-wall-note {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin: 24px 0 0;
  line-height: 1.7;
}

/* ---- Topic cluster (pillar ↔ service) ---- */
.topic-cluster {
  max-width: 880px;
  margin: 48px auto;
  padding: 28px 32px;
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.topic-cluster-title {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin: 0 0 8px;
  font-weight: 800;
}
.topic-cluster-lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #475569;
}
.topic-cluster-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-cluster-list li::before {
  content: "→";
  color: var(--accent-dark);
  margin-right: 8px;
  font-weight: 700;
}
.topic-cluster-list a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.topic-cluster-list a:hover { border-bottom-color: var(--accent); }
@media (max-width: 600px) {
  .topic-cluster { margin: 32px 16px; padding: 22px 22px; }
}

/* ---- Compare table (HAPILY vs 大手コンサル) ---- */
.compare-section { padding: 64px 24px; }
.compare-table {
  max-width: 980px;
  margin: 24px auto;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12);
  background: #fff;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.compare-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.compare-table th.compare-hapily {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #0f172a;
}
.compare-table td.compare-axis {
  font-weight: 700;
  background: #f8fafc;
  width: 22%;
}
.compare-table td.compare-hapily { background: #fffbeb; }
.compare-table .check::before { content: "✓ "; color: #047857; font-weight: 800; }
.compare-table .cross::before { content: "× "; color: #94a3b8; font-weight: 800; }
@media (max-width: 720px) {
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.88rem; }
}
