/* =========================================================
   Studio Rocky — Design System (Renewal)
   Apple / Stripe / Linear / Vercel inspired. Light, calm, premium.
   ========================================================= */

:root {
  /* Brand palette (as specified) */
  --brand: #1E88E5;
  --brand-2: #42A5F5;
  --accent: #00C853;
  --bg: #F8FBFF;
  --text: #222222;

  /* Derived neutrals */
  --surface: #ffffff;
  --surface-2: #f1f6fd;
  --text-soft: #5b6675;
  --text-mute: #93a0b0;
  --line: rgba(30, 136, 229, 0.12);
  --line-strong: rgba(30, 136, 229, 0.22);

  /* Soft, blue-tinted elevation */
  --shadow-xs: 0 1px 2px rgba(20, 60, 110, 0.05);
  --shadow-sm: 0 4px 14px rgba(20, 70, 130, 0.06);
  --shadow: 0 14px 40px rgba(20, 70, 130, 0.10);
  --shadow-lg: 0 30px 70px rgba(20, 70, 130, 0.14);
  --ring: 0 0 0 4px rgba(30, 136, 229, 0.16);

  --grad-brand: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --gutter: clamp(24px, 5vw, 64px);

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
::selection { background: rgba(30, 136, 229, 0.18); }

/* Subtle animated background wash + dot pattern */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(66, 165, 245, 0.10), transparent 60%),
    radial-gradient(50% 45% at 100% 10%, rgba(0, 200, 83, 0.06), transparent 55%),
    var(--bg);
  background-size: 200% 200%;
  animation: bgShift 22s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(30, 136, 229, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}
@keyframes bgShift { 0%,100%{background-position:0 0} 50%{background-position:100% 100%} }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--soft { background: linear-gradient(180deg, rgba(241,246,253,0.7), rgba(248,251,255,0)); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; }
.section-lead { color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; background: var(--btn-bg); color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  box-shadow: 0 8px 22px rgba(30, 136, 229, 0.28);
  isolation: isolate;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 136, 229, 0.34); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--brand);
  border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover { background: rgba(30, 136, 229, 0.06); box-shadow: 0 10px 24px rgba(30,136,229,0.12); }
.btn--white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }
.btn--white:hover { background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2); }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }

/* Ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.5); pointer-events: none; animation: ripple 0.6s ease-out; z-index: -1; }
.btn--ghost .ripple, .btn--white .ripple { background: rgba(30,136,229,0.25); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 251, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 26px rgba(20, 70, 130, 0.08);
  border-color: var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center;
  font-weight: 900; box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
}
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--text-mute); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; padding: 9px 16px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem; color: var(--text-soft);
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--brand); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { padding: 10px 22px; font-size: 0.9rem; }
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.6); color: var(--text);
  place-items: center;
}

/* ---------- HERO SLIDER (Swiper) ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; width: 100%; }
.hero .swiper, .hero .swiper-wrapper, .hero .swiper-slide { height: 100%; }
.hero-slide { position: relative; overflow: hidden; background: var(--grad-brand); }
.hero-slide__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.08);
  will-change: transform;
}
/* Ken Burns: active slide slowly zooms out */
.hero .swiper-slide-active .hero-slide__bg { animation: kenburns 6.2s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-slide__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 42%, rgba(0,0,0,0.14) 100%),
    rgba(0, 0, 0, 0.12);
}

.hero-content {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  left: clamp(24px, 9vw, 120px);
  max-width: 600px; width: calc(100% - 48px); color: #fff;
}
.hero-content .eyebrow { color: #bfe0ff; }
.hero-content h2 {
  font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin: 0 0 20px; text-shadow: 0 2px 30px rgba(0,0,0,0.28);
}
.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,0.92);
  margin: 0 0 34px; font-weight: 400; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  white-space: pre-line;
}
/* Entrance animation for the active slide's text */
.hero-content .anim { opacity: 0; transform: translateY(40px); }
.hero .swiper-slide-active .hero-content .anim { animation: heroIn 0.8s var(--ease) forwards; }
.hero .swiper-slide-active .hero-content .eyebrow.anim { animation-delay: 0.1s; }
.hero .swiper-slide-active .hero-content h2.anim { animation-delay: 0.2s; }
.hero .swiper-slide-active .hero-content p.anim { animation-delay: 0.35s; }
.hero .swiper-slide-active .hero-content .hero-cta.anim { animation-delay: 0.6s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-cta { display: inline-flex; }

/* Swiper pagination (minimal, bottom-left aligned with content) */
.hero .swiper-pagination { text-align: left; left: clamp(24px, 9vw, 120px); bottom: 40px; width: auto; }
.hero .swiper-pagination-bullet { width: 32px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.45); opacity: 1; transition: background 0.3s, width 0.3s; }
.hero .swiper-pagination-bullet-active { background: #fff; width: 48px; }

/* Scroll-down indicator */
.scroll-down {
  position: absolute; z-index: 4; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.85);
  font-size: 0.7rem; letter-spacing: 0.2em;
}
.scroll-down__mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7); border-radius: 14px; position: relative; }
.scroll-down__mouse::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} 100%{opacity:0} }

/* SVG wave divider */
.wave { display: block; width: 100%; height: auto; margin-top: -1px; color: var(--surface); }

/* ---------- Glass cards (services) ---------- */
.glass-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.glass-card {
  position: relative; display: block; padding: 34px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  color: var(--text); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s;
  background: radial-gradient(120% 80% at 50% 0%, rgba(66, 165, 245, 0.16), transparent 60%);
}
.glass-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(66,165,245,0.5); }
.glass-card:hover::before { opacity: 1; }
.glass-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(30, 136, 229, 0.32);
  transition: transform 0.45s var(--ease);
}
.glass-card:hover .glass-card__icon { transform: scale(1.08) rotate(-4deg); }
.glass-card__icon svg { width: 28px; height: 28px; }
.glass-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.glass-card p { color: var(--text-soft); font-size: 0.94rem; margin: 0; }
.glass-card__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.glass-card:hover .glass-card__link { gap: 10px; }
.badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.badge--brand { background: var(--brand); }

/* ---------- Feature cards (generic) ---------- */
.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: rgba(30, 136, 229, 0.08); color: var(--brand);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-soft); margin: 0; font-size: 0.97rem; }
a.card { display: block; color: inherit; }
a.card .card__link, .card__link { margin-top: 16px; display: inline-flex; gap: 6px; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
a.card:hover .card__link { gap: 10px; }

/* ---------- Stat counters ---------- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); justify-content: center; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-mute); font-size: 0.92rem; font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 28px; padding: clamp(48px, 7vw, 84px);
  background: var(--grad-brand); box-shadow: var(--shadow-lg);
}
.cta-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 100% 0%, rgba(0,200,83,0.35), transparent 60%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); max-width: 540px; margin: 0 auto 30px; }
.cta-banner .btn--white { color: var(--brand); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.page-hero .crumbs { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 16px; }
.page-hero .crumbs a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero > .container > p { color: var(--text-soft); font-size: 1.12rem; max-width: 640px; margin: 0; }

/* offset fixed nav for anchor scrolling on non-hero pages */
body:not(.has-hero) { padding-top: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ---------- App cards / tags (apps page) ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.app-card__thumb { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 3rem; position: relative; color: #fff; }
.app-card__badge { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,0.32); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.app-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-card__body h3 { font-size: 1.15rem; margin: 0; }
.app-card__body p { color: var(--text-soft); font-size: 0.93rem; margin: 0; flex: 1; }
.app-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tag { font-size: 0.72rem; font-weight: 700; color: var(--brand); background: rgba(30,136,229,0.1); padding: 4px 11px; border-radius: 999px; }
.app-card__link { font-weight: 600; font-size: 0.9rem; color: var(--brand); display: inline-flex; gap: 4px; }
.app-card__link:hover { gap: 8px; }

/* ---------- Steps / timeline / values / about ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 14px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 2rem; margin-bottom: 8px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-soft); font-size: 0.93rem; margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.value p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-visual { aspect-ratio: 4/3; border-radius: 26px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-size: 5rem; box-shadow: var(--shadow-lg); }
.timeline { max-width: 720px; margin-inline: auto; position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px var(--bg); }
.tl-item b { color: var(--brand); font-size: 0.9rem; }
.tl-item h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.tl-item p { color: var(--text-soft); margin: 0; font-size: 0.94rem; }

/* ---------- AI chat ---------- */
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--grad-brand); color: #fff; }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255,255,255,0.22); }
.chat__head b { display: block; font-size: 1rem; }
.chat__head span { font-size: 0.78rem; opacity: 0.92; display: flex; align-items: center; gap: 6px; }
.chat__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9f6ca; box-shadow: 0 0 0 3px rgba(185,246,202,0.35); }
.chat__log { padding: 22px; display: flex; flex-direction: column; gap: 12px; height: 340px; overflow-y: auto; background: var(--surface-2); }
.chat-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 0.94rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { display: flex; gap: 5px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); animation: chatBlink 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2){animation-delay:.2s}.chat-typing span:nth-child(3){animation-delay:.4s}
@keyframes chatBlink { 0%,80%,100%{opacity:.3;transform:translateY(0)} 40%{opacity:1;transform:translateY(-3px)} }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 0; }
.chat-chip { font-size: 0.82rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--text-soft); transition: border-color 0.2s, color 0.2s; }
.chat-chip:hover { border-color: var(--brand); color: var(--brand); }
.chat__form { display: flex; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 0.94rem; }
.chat__form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.chat__send { width: 48px; height: 48px; border: none; border-radius: 50%; flex: none; cursor: pointer; background: var(--grad-brand); color: #fff; font-size: 1.15rem; display: grid; place-items: center; transition: transform 0.2s; }
.chat__send:hover { transform: scale(1.08); }
.chat__note { font-size: 0.78rem; color: var(--text-mute); padding: 0 18px 16px; margin: 0; text-align: center; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 9px; }
.field label .req { color: #e53935; margin-left: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; font-size: 0.96rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { min-height: 150px; resize: vertical; }
.field .error { color: #e53935; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #e53935; }
.field.invalid .error { display: block; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.radio-card .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: border-color 0.2s; }
.radio-card .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform 0.15s; }
.radio-card:has(input:checked) { border-color: var(--brand); background: rgba(30,136,229,0.06); }
.radio-card:has(input:checked) .dot { border-color: var(--brand); }
.radio-card:has(input:checked) .dot::after { transform: scale(1); }
.field.invalid .radio-group .radio-card { border-color: #e53935; }
.form-note { font-size: 0.84rem; color: var(--text-mute); }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(0,200,83,0.1); border: 1px solid rgba(0,200,83,0.4); color: var(--text); margin-bottom: 22px; }
.contact-aside { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-aside h3 { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.2rem; background: rgba(30,136,229,0.08); }
.contact-list b { display: block; font-size: 0.95rem; }
.contact-list span { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, rgba(241,246,253,0) , rgba(241,246,253,0.9)); border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--text-soft); font-size: 0.93rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--brand); }
.footer__brand p { color: var(--text-soft); font-size: 0.93rem; max-width: 300px; margin: 14px 0 0; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 0.85rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); transition: all 0.2s; }
.socials a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal--scale { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }
/* stagger children */
.reveal[data-delay="1"]{transition-delay:.1s}.reveal[data-delay="2"]{transition-delay:.2s}
.reveal[data-delay="3"]{transition-delay:.3s}.reveal[data-delay="4"]{transition-delay:.4s}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  body::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .glass-cards { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .apps-grid, .steps, .values, .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero, .form-wrap { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: grid; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(18px);
    padding: 14px var(--gutter) 22px; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open a { padding: 13px 14px; }
  .hero-content h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .glass-cards, .grid--3, .apps-grid, .steps, .values { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile hero: 画像フル(16:9・切れなし)＋白文字を中央オーバーレイ ---------- */
@media (max-width: 820px) {
  .hero { height: auto; min-height: 0; padding-top: var(--nav-h); }
  .hero .swiper, .hero .swiper-wrapper, .hero .swiper-slide { height: auto; }
  .hero-slide { position: relative; display: block; background: var(--grad-brand); }
  .hero-slide__bg {
    position: relative; width: 100%; height: auto;
    aspect-ratio: 16 / 9; object-fit: cover; transform: none;
  }
  .hero .swiper-slide-active .hero-slide__bg { animation: none; }
  /* 画像の上に白文字を読みやすくするための暗いオーバーレイ */
  .hero-slide__overlay { display: block; background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.55)); }

  .hero-content {
    position: absolute; inset: 0; z-index: 3; transform: none;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 8px 18px; width: 100%; max-width: 100%; color: #fff;
  }
  /* スマホでは入場アニメの縦ズレを無効化（常に中央・安定表示） */
  .hero-content .anim { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-content .eyebrow { color: #d9edff; margin-bottom: 4px; font-size: 0.64rem; letter-spacing: 0.16em; }
  .hero-content h2 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.5); font-size: clamp(1.2rem, 5.6vw, 1.75rem); margin-bottom: 6px; line-height: 1.18; }
  .hero-content p { color: rgba(255,255,255,0.96); text-shadow: 0 1px 10px rgba(0,0,0,0.55); font-size: 0.82rem; margin-bottom: 12px; line-height: 1.5; }
  .hero-content .btn--white { background: #fff; color: var(--brand); padding: 9px 22px; font-size: 0.84rem; box-shadow: 0 6px 18px rgba(0,0,0,0.24); }
  .hero .swiper-slide-active .hero-content .anim { opacity: 1; }

  .hero .swiper-pagination { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; margin: 0; }
  .hero .swiper-pagination-bullet { width: 22px; background: rgba(255,255,255,0.5); }
  .hero .swiper-pagination-bullet-active { background: #fff; }

  .scroll-down { display: none; }
  .wave { display: none; }
}
