/* ============================================
   TAIGA_Lab Landing Page — Styles
   Theme: Blue & White, Clean, Trustworthy
   ============================================ */

:root {
  --c-blue-600: #2563EB;
  --c-sky-500: #0EA5E9;
  --c-sky-400: #38BDF8;
  --c-sky-50:  #F0F9FF;
  --c-sky-100: #E0F2FE;
  --c-yellow-400: #FACC15;
  --c-yellow-500: #EAB308;
  --c-ink-900: #0F172A;
  --c-ink-700: #334155;
  --c-ink-500: #64748B;
  --c-ink-300: #CBD5E1;
  --c-ink-200: #E2E8F0;
  --c-ink-100: #F1F5F9;
  --c-white: #FFFFFF;

  --radius: 1rem;          /* rounded-2xl */
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 165, 233, 0.18);

  --container: 1180px;
  --section-pad-y: clamp(4rem, 9vw, 7rem);

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--c-ink-900);
  background: var(--c-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.en { font-family: var(--font-en); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-sky-500);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.01em;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--c-ink-500);
  font-size: 1rem;
  max-width: 640px;
}

.section-head {
  margin-bottom: 3rem;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-sky-500);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--c-blue-600); }

.btn-line {
  background: #06C755;
  color: #fff;
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.28);
}
.btn-line:hover { background: #05A647; }

.btn-yellow {
  background: var(--c-yellow-400);
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.35);
}
.btn-yellow:hover { background: var(--c-yellow-500); }

.btn-outline {
  background: #fff;
  color: var(--c-sky-500);
  border-color: var(--c-sky-500);
}
.btn-outline:hover { background: var(--c-sky-50); }

.btn-ghost {
  color: var(--c-ink-700);
}
.btn-ghost:hover { color: var(--c-sky-500); background: var(--c-sky-50); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.site-header.scrolled {
  border-color: var(--c-ink-200);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--c-ink-900);
}
.logo .logo-dot { color: var(--c-sky-500); }
.logo .logo-mark {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-sky-500), var(--c-blue-600));
  position: relative;
  margin-right: 0.5rem;
  transform: translateY(4px);
}
.logo .logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-ink-700);
  transition: color .15s ease;
}
.nav-desktop a:hover { color: var(--c-sky-500); }

.header-cta { display: none; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--c-sky-50);
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .menu-btn { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 55;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  overflow-y: auto;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  padding: 1.1rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink-900);
  border-bottom: 1px solid var(--c-ink-100);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s ease, color .15s ease;
}
.nav-mobile a::after {
  content: "›";
  color: var(--c-ink-300);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.nav-mobile a:hover,
.nav-mobile a:active {
  background: var(--c-sky-50);
  color: var(--c-sky-500);
}
.nav-mobile .btn {
  margin: 1.5rem 0.25rem 0;
  padding: 1rem 1.5rem;
  justify-content: center;
}
.nav-mobile .btn::after {
  display: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: calc(72px + 3rem) 0 var(--section-pad-y);
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--c-sky-50) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-sky-100);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-ink-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
  margin-bottom: 1.25rem;
}
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(250, 204, 21, 0.55) 60%);
  padding: 0 0.15em;
}
.hero h1 .blue { color: var(--c-sky-500); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--c-ink-700);
  margin-bottom: 2rem;
  line-height: 1.95;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-ink-700);
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius-pill);
}
.trust-badge svg { width: 14px; height: 14px; color: var(--c-sky-500); }

/* Profile picture */
.hero-portrait {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.hero-portrait .portrait-bg {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-sky-400), var(--c-blue-600));
  filter: blur(40px);
  opacity: 0.35;
}
.hero-portrait .portrait-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-sky-100), var(--c-sky-50));
  border: 6px solid #fff;
  box-shadow: 0 30px 80px rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-portrait .portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-portrait .portrait-initial {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  color: rgba(15, 23, 42, 0.4);
  letter-spacing: -0.04em;
}
.hero-portrait .portrait-caption {
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink-900);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-portrait .portrait-caption span {
  color: var(--c-sky-500);
  margin-left: 0.35rem;
  font-family: var(--font-en);
}

.hero-portrait .float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-ink-100);
}
.hero-portrait .float-card .ic {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--c-sky-50);
  color: var(--c-sky-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-portrait .fc-1 { top: 10%; left: -4%; }
.hero-portrait .fc-2 { bottom: 18%; right: -6%; }
.hero-portrait .fc-3 { top: 50%; right: -2%; }

@media (max-width: 600px) {
  .hero-portrait .fc-1, .hero-portrait .fc-3 { left: 0; right: auto; top: 4%; }
  .hero-portrait .fc-2 { right: 0; bottom: 4%; }
}

/* ============================================
   Section base
   ============================================ */
section {
  padding-block: var(--section-pad-y);
}

.bg-soft { background: var(--c-sky-50); }
.bg-ink { background: var(--c-ink-900); color: #fff; }

/* ============================================
   Problems Section
   ============================================ */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .problems-grid { grid-template-columns: 1fr 1fr; } }

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.problem-card:hover {
  border-color: var(--c-sky-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-card .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-sky-50);
  color: var(--c-sky-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.problem-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--c-ink-700);
  line-height: 1.75;
}

.problems-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--c-ink-700);
}
.problems-footer strong { color: var(--c-sky-500); }

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  border-color: var(--c-sky-100);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}
.service-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c-sky-500);
  letter-spacing: 0.05em;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-sky-50), var(--c-sky-100));
  color: var(--c-sky-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.service-card h3 {
  font-size: 1.25rem;
  line-height: 1.5;
}
.service-card .desc {
  color: var(--c-ink-700);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
}
.service-card .for {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-ink-200);
}
.service-card .for-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-sky-500);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}
.service-card .for ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.service-card .for li {
  font-size: 0.86rem;
  color: var(--c-ink-700);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.service-card .for li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-sky-400);
}
.service-card .for-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--c-ink-500);
}

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ============================================
   Reasons
   ============================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
}
.reason-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--c-ink-200);
  position: relative;
}
.reason-card .reason-num {
  position: absolute;
  top: -18px; left: 1.75rem;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--c-sky-500);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
}
.reason-card h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.reason-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-ink-700);
  line-height: 1.85;
}

/* ============================================
   Cases (Before/After)
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .cases-grid { grid-template-columns: 1fr 1fr 1fr; } }

.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-ink-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-thumb {
  aspect-ratio: 16 / 10;
  background: var(--c-sky-50);
  position: relative;
  overflow: hidden;
}
.case-slides {
  position: absolute;
  inset: 0;
}
.case-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .5s ease, transform .6s ease;
  transform: scale(1.02);
}
.case-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.case-card:hover .case-slide.is-active {
  transform: scale(1.05);
}

/* Carousel controls (injected by JS only when >1 slide) */
.case-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 3;
}
.case-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease, background .15s;
  border: none;
}
.case-arrow:hover { background: #fff; color: var(--c-sky-500); }
.case-card:hover .case-arrow,
.case-thumb:focus-within .case-arrow {
  opacity: 1;
  transform: translateY(0);
}
.case-arrow svg { width: 18px; height: 18px; }

.case-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}
.case-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, width .2s;
}
.case-dot.is-active {
  background: #fff;
  width: 18px;
  border-radius: 999px;
}

.case-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.case-thumb .industry {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-ink-900);
  z-index: 2;
}
.case-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.case-body h3 {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}
.case-ba {
  background: var(--c-sky-50);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--c-ink-700);
  line-height: 1.7;
}
.case-ba .row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.case-ba .tag {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.case-ba .tag.before { background: var(--c-ink-200); color: var(--c-ink-700); }
.case-ba .tag.after { background: var(--c-sky-500); color: #fff; }
.case-comment {
  font-size: 0.82rem;
  color: var(--c-ink-500);
  font-style: italic;
  border-left: 3px solid var(--c-sky-500);
  padding-left: 0.75rem;
}

/* ============================================
   Media / Logos — Auto-scrolling marquee
   ============================================ */
.media-marquee {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.media-marquee::-webkit-scrollbar { display: none; }
.media-marquee.dragging {
  cursor: grabbing;
  -webkit-mask-image: none;
  mask-image: none;
}
.media-marquee.dragging .media-item {
  pointer-events: none;
}

.media-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.25rem 0;
}
.media-marquee.dragging .media-item,
.media-marquee.dragging .media-track {
  user-select: none;
}

.media-item {
  flex: 0 0 auto;
  width: 220px;
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.media-item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.media-item .meta {
  font-size: 0.72rem;
  color: var(--c-ink-500);
  line-height: 1.4;
}

@media (hover: hover) {
  .media-item:hover {
    border-color: var(--c-sky-100);
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 600px) {
  .media-item { width: 180px; min-height: 130px; padding: 1.25rem 1rem; }
  .media-item img { max-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .media-track { animation: none; }
  .media-marquee { overflow-x: auto; }
}

/* ============================================
   Flow / Steps
   ============================================ */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.step-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--c-sky-500);
  margin-bottom: 0.6rem;
  display: block;
}
.step-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-ink-500);
  line-height: 1.75;
}
.step-card .step-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-sky-50);
  color: var(--c-sky-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.flow-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-ink-500);
}

.cases-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-ink-300);
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.price-card {
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-card.featured {
  border-color: var(--c-sky-500);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
  position: relative;
}
.price-card.featured::after {
  content: "人気";
  position: absolute;
  top: -12px; right: 1.25rem;
  background: var(--c-yellow-400);
  color: #1e293b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}
.price-card .plan-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-sky-500);
  font-family: var(--font-en);
}
.price-card h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}
.price-card .price {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-ink-900);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.price-card .price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-ink-500);
}
.price-card .desc {
  font-size: 0.86rem;
  color: var(--c-ink-700);
  line-height: 1.8;
  margin: 0;
}
.pricing-callout {
  margin-top: 2rem;
  max-width: 760px;
  margin-inline: auto;
  background: #fff;
  border: 1.5px solid var(--c-sky-100);
  border-left: 5px solid var(--c-sky-500);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--c-ink-700);
  line-height: 1.85;
  box-shadow: var(--shadow-sm);
}
.pricing-callout strong {
  color: var(--c-ink-900);
  font-weight: 700;
}
.pricing-callout .pc-ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--c-sky-50);
  color: var(--c-sky-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 880px;
  margin-inline: auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--c-ink-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--c-sky-100); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink-900);
  line-height: 1.6;
}
.faq-q .q-mark {
  font-family: var(--font-en);
  color: var(--c-sky-500);
  font-weight: 800;
  flex-shrink: 0;
}
.faq-q .chev {
  margin-left: auto;
  transition: transform .2s ease;
  color: var(--c-ink-500);
  flex-shrink: 0;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a-inner {
  padding: 0 1.4rem 1.4rem calc(1.4rem + 1.6rem);
  font-size: 0.95rem;
  color: var(--c-ink-700);
  line-height: 1.95;
}

/* ============================================
   Profile
   ============================================ */
.profile-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-ink-200);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .profile-card { grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
}
.profile-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  position: relative;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.profile-role {
  color: var(--c-sky-500);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.profile-bio {
  color: var(--c-ink-700);
  font-size: 0.95rem;
  line-height: 1.95;
  margin-bottom: 1.5rem;
}
.mvv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) { .mvv { grid-template-columns: repeat(3, 1fr); } }
.mvv-item {
  background: var(--c-sky-50);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.mvv-item .label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-sky-500);
  margin-bottom: 0.35rem;
}
.mvv-item .text {
  font-size: 0.88rem;
  color: var(--c-ink-900);
  font-weight: 600;
  line-height: 1.6;
}
.profile-message {
  border-left: 4px solid var(--c-sky-500);
  padding: 0.5rem 0 0.5rem 1.1rem;
  color: var(--c-ink-700);
  font-size: 0.95rem;
  line-height: 1.95;
  background: linear-gradient(90deg, var(--c-sky-50), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}

/* ============================================
   Contact CTA Section
   ============================================ */
.contact {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--c-sky-500) 0%, var(--c-blue-600) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 100%, rgba(250, 204, 21, 0.15), transparent 50%);
}
.contact .container { position: relative; }

.contact .section-title { color: #fff; }
.contact .section-eyebrow { color: rgba(255,255,255,0.85); }
.contact .section-subtitle { color: rgba(255,255,255,0.9); }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  background: #fff;
  color: var(--c-ink-900);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.contact-card .cc-ic {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.contact-card.line .cc-ic { background: #E4F8EC; color: #06C755; }
.contact-card.mail .cc-ic { background: var(--c-sky-50); color: var(--c-sky-500); }
.contact-card.form .cc-ic { background: #FEF9C3; color: #CA8A04; }
.contact-card h3 { font-size: 1.15rem; line-height: 1.5; }
.contact-card .cc-desc { font-size: 0.88rem; color: var(--c-ink-500); margin: 0; line-height: 1.75; }
.contact-card .cc-meta {
  font-size: 0.75rem;
  color: var(--c-sky-500);
  font-weight: 600;
}
.contact-card .btn { margin-top: auto; }

/* Form */
.contact-form,
.contact-form-tally {
  background: #fff;
  color: var(--c-ink-900);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 760px;
  margin-inline: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18);
}
.contact-form-tally h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.contact-form-tally .form-lead {
  color: var(--c-ink-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.contact-form-tally iframe {
  width: 100%;
  border: none;
  display: block;
}
@media (max-width: 600px) {
  .contact-form-tally { padding: 1.5rem 1.25rem; }
}
.contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.contact-form .form-lead {
  color: var(--c-ink-500);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field label .req {
  background: var(--c-sky-500);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.field label .opt {
  background: var(--c-ink-100);
  color: var(--c-ink-500);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-ink-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--c-ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--c-ink-200);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink-700);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.checkbox-pill input { display: none; }
.checkbox-pill:has(input:checked) {
  background: var(--c-sky-500);
  border-color: var(--c-sky-500);
  color: #fff;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }
.form-success .ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.form-success h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--c-ink-500); }

.form-error-msg {
  font-size: 0.78rem;
  color: #DC2626;
  margin-top: 0.25rem;
  display: none;
}
.field.error .form-error-msg { display: block; }
.field.error input,
.field.error textarea {
  border-color: #DC2626;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--c-ink-900);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-grid .logo { color: #fff; }
.footer-grid .logo .logo-dot { color: var(--c-sky-400); }
.footer-grid .footer-intro {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  max-width: 380px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-en);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color .15s;
}
.footer-col a:hover { color: var(--c-sky-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab.line { background: #06C755; }
.fab.mail { background: var(--c-sky-500); }
.fab svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .floating-cta { bottom: 0.85rem; right: 0.85rem; }
  .fab { padding: 0.7rem 1rem; font-size: 0.82rem; }
}

/* ============================================
   Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
