/* ================================================================
   shifpochi TOP — Design Tokens + Base Styles
   やわらかい丸ゴシック × ネイビー × アクセント
   ================================================================ */

:root {
  /* Brand / Palette */
  --navy-950: #0b1638;
  --navy-900: #111c44;
  --navy-800: #1a2656;
  --navy-700: #2a376e;
  --navy-600: #3d4a85;
  --navy-500: #5a68a5;
  --navy-400: #8a94c0;
  --navy-300: #b8bfdc;
  --navy-200: #d9dced;
  --navy-100: #eceef7;
  --navy-50:  #f5f6fb;

  /* Accent — スカイブルー（信頼・清潔） */
  --accent: #4f97ff;
  --accent-600: #3a7fdc;
  --accent-500: #4f97ff;
  --accent-400: #7db0ff;
  --accent-200: #b9d2ff;
  --accent-100: #d9e5ff;
  --accent-50:  #edf3ff;

  /* Secondary accents for variety */
  --mint: #6fd7b7;
  --mint-soft: #d5f3e9;
  --sky: #7cb8ff;
  --sky-soft: #dbeaff;
  --butter: #ffcf6b;
  --butter-soft: #fff0cf;
  --pink: #ff9fb5;
  --pink-soft: #ffe1e8;
  --line-green: #06c755;

  /* Neutrals */
  --ink: #15203f;
  --ink-soft: #4b5578;
  --ink-muted: #7a84a4;
  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-tint: #f5f6fb;
  --border: #e6e8f3;
  --border-strong: #d4d8ea;

  /* Type */
  --font-jp: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-rounded: "M PLUS Rounded 1c", "Zen Maru Gothic",
    "Hiragino Maru Gothic ProN", system-ui, sans-serif;

  /* Radii */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(17, 28, 68, 0.06), 0 2px 6px rgba(17, 28, 68, 0.04);
  --sh-md: 0 4px 10px rgba(17, 28, 68, 0.06), 0 14px 28px rgba(17, 28, 68, 0.08);
  --sh-lg: 0 20px 40px rgba(17, 28, 68, 0.12), 0 40px 80px rgba(17, 28, 68, 0.08);
  --sh-float: 0 24px 60px -20px rgba(17, 28, 68, 0.35);
  --sh-inset: inset 0 0 0 1px var(--border);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --ink: #eef1ff;
  --ink-soft: #c6ccea;
  --ink-muted: #9099ba;
  --bg: #0a1230;
  --surface: #111c44;
  --surface-tint: #0e1a3c;
  --border: #24315e;
  --border-strong: #334374;
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
  --sh-md: 0 4px 10px rgba(0, 0, 0, 0.3), 0 14px 28px rgba(0, 0, 0, 0.25);
  --sh-lg: 0 20px 40px rgba(0, 0, 0, 0.45), 0 40px 80px rgba(0, 0, 0, 0.3);
  --sh-float: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --navy-50: #1a2656;
  --navy-100: #24315e;
  --navy-200: #334374;
  --navy-900: #eef1ff;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Section rhythm */
section {
  padding: 100px 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
}

/* Type scale */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--accent-50);
  color: var(--accent-600);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-100);
}
[data-theme="dark"] .eyebrow { background: rgba(255,138,91,0.15); }

.h-xxl {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.h-xl {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  color: var(--ink);
}
.h-lg {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--ink);
}
.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

.hl-accent {
  background: linear-gradient(180deg, transparent 62%, var(--accent-200) 62%);
  padding: 0 2px;
}
.ink-accent { color: var(--accent-600); }
.ink-navy { color: var(--navy-900); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(79, 151, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-600);
  box-shadow: 0 14px 26px -8px rgba(79, 151, 255, 0.6),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-inset), var(--sh-sm);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-inset), var(--sh-md);
}
.btn-ghost {
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r-pill);
}
.btn-ghost:hover { background: var(--surface-tint); }

.btn-line {
  background: var(--line-green);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(6, 199, 85, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}
.btn-line:hover { transform: translateY(-2px); background: #04a847; }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 20px 36px; font-size: 18px; }

/* Card base */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-inset), var(--sh-sm);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-inset), var(--sh-md);
}

/* Section header shared */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }

/* Decorative blob backgrounds */
.bg-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.6;
}

/* keyframes */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes chipPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.in-view { animation: slideUp 0.7s var(--ease) both; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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