:root {
  --blue: #1f3a5f;
  --blue-dark: #14283f;
  --blue-light: #e7ebf1;
  --accent: #3fc1c9;
  --accent-light: #e3f7f8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  overflow-x: hidden;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

h3 {
  font-weight: 700;
}

.section-card {
  background-color: var(--blue-light);
  padding: clamp(28px, 6vw, 48px) clamp(20px, 6vw, 40px);
  border-radius: 8px;
}

.section-card > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block h3 {
  color: var(--blue-dark);
  margin: 0 0 10px;
}

.about-block p {
  margin: 0;
  line-height: 1.8;
}


header {
  background-color: var(--blue);
  color: white;
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.no-intro .intro-splash {
  display: none;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: intro-splash-out 0.6s ease-in 1.6s forwards;
}

.intro-logo {
  width: min(80vw, 640px);
  height: auto;
  overflow: visible;
}

@keyframes intro-splash-out {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

header h1.logo {
  margin: 0;
  line-height: 0;
}

header h1.logo a {
  display: inline-block;
}

header h1.logo .logo-svg {
  height: 64px;
  width: auto;
  display: block;
  overflow: visible;
}

.logo-sq {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: roll-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-sq--white {
  animation-name: roll-in-left;
}

.logo-sq--turq {
  animation-name: roll-in-right;
  animation-delay: 0.15s;
}

.logo-text {
  opacity: 0;
  animation: logo-text-in 0.6s ease-out 0.75s forwards;
}

@keyframes roll-in-left {
  0% {
    opacity: 0;
    transform: translateX(-140px) rotate(-340deg) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateX(6px) rotate(-2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-4deg) scale(1);
  }
}

@keyframes roll-in-right {
  0% {
    opacity: 0;
    transform: translateX(140px) rotate(340deg) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateX(-6px) rotate(5deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(3deg) scale(1);
  }
}

@keyframes logo-text-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav a {
  position: relative;
  color: white;
  margin-left: 20px;
  text-decoration: none;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

@media (max-width: 760px) {
  header {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
  }

  nav a {
    margin-left: 0;
    padding: 10px 0;
  }

  .nav-toggle-input:checked ~ nav {
    display: flex;
  }
}

main {
  padding: 40px;
}

.reveal-ready main section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready main section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready main section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

section {
  margin-bottom: 60px;
  text-align: center;
}

#hero {
  background-color: var(--blue-light);
  padding: 60px 40px;
  margin: -40px -40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero > *:not(.hero-bg-shapes) {
  position: relative;
  z-index: 1;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sq {
  position: absolute;
  top: var(--sq-top);
  left: var(--sq-left);
  width: var(--sq-size);
  height: var(--sq-size);
  border: 10px solid var(--accent);
  border-radius: 4px;
  opacity: 0.55;
  animation: hero-sq-roll var(--sq-duration) ease-in-out var(--sq-delay, 0s) infinite alternate;
}

.hero-sq--grey {
  border-color: #a7b1c2;
}

@keyframes hero-sq-roll {
  0% {
    transform: rotate(var(--sq-rot)) translate(0, 0);
  }
  100% {
    transform: rotate(calc(var(--sq-rot) + var(--sq-rot-span))) translate(var(--sq-dx), var(--sq-dy));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sq {
    animation: none;
  }
}

.hero-catch {
  font-size: 1.15em;
  font-weight: bold;
  line-height: 1.9;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

#hero h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.4;
}

#hero p {
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.8;
}

section ul {
  line-height: 2;
  list-style-position: inside;
}

.bubble-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  padding: 20px 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.65), rgba(63, 193, 201, 0.18) 45%, var(--accent-light) 75%);
  border: 1px solid rgba(63, 193, 201, 0.4);
  box-shadow: 0 8px 20px rgba(20, 40, 63, 0.1), inset 0 0 14px rgba(255, 255, 255, 0.6);
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(60px) scale(0.7);
}

.bubble-list.is-floating .bubble {
  animation: bubble-rise 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             bubble-bob 3s ease-in-out infinite;
}

.bubble-list.is-floating .bubble:nth-child(1) { animation-delay: 0s, 0.9s; }
.bubble-list.is-floating .bubble:nth-child(2) { animation-delay: 0.15s, 1.05s; }
.bubble-list.is-floating .bubble:nth-child(3) { animation-delay: 0.3s, 1.2s; }
.bubble-list.is-floating .bubble:nth-child(4) { animation-delay: 0.45s, 1.35s; }

@keyframes bubble-rise {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bubble-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

#service h2 {
  text-align: center;
}

.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--blue-dark);
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 999px;
  margin: 8px 0 32px;
  opacity: 0;
  animation: badge-fade-in 0.8s ease-out 0.2s forwards;
}

#flow {
  text-align: center;
}

@keyframes badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speed-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.flow-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px 0;
}

.flow-steps li {
  flex: 1 1 160px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.flow-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 10px;
  right: -6px;
  color: var(--blue);
  font-size: 1.4em;
  font-weight: bold;
}

.flow-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #cfd6de;
  color: #8993a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 12px;
  box-shadow: none;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.flow-steps.is-lit li .flow-step-num {
  animation: bulb-on 0.7s ease forwards;
}

.flow-steps.is-lit li:nth-child(1) .flow-step-num { animation-delay: 0s; }
.flow-steps.is-lit li:nth-child(2) .flow-step-num { animation-delay: 0.25s; }
.flow-steps.is-lit li:nth-child(3) .flow-step-num { animation-delay: 0.5s; }
.flow-steps.is-lit li:nth-child(4) .flow-step-num { animation-delay: 0.75s; }
.flow-steps.is-lit li:nth-child(5) .flow-step-num { animation-delay: 1s; }
.flow-steps.is-lit li:nth-child(6) .flow-step-num { animation-delay: 1.25s; }
.flow-steps.is-lit li:nth-child(7) .flow-step-num { animation-delay: 1.5s; }

@keyframes bulb-on {
  0% {
    background-color: #cfd6de;
    color: #8993a1;
    box-shadow: none;
    transform: scale(1);
  }
  55% {
    transform: scale(1.18);
    background-color: var(--blue);
    color: white;
    box-shadow: 0 0 0 8px rgba(255, 205, 90, 0.3), 0 0 26px 8px rgba(255, 205, 90, 0.55);
  }
  100% {
    transform: scale(1);
    background-color: var(--blue);
    color: white;
    box-shadow: 0 0 14px 3px rgba(255, 205, 90, 0.45);
  }
}

.flow-step-body h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1em;
}

.flow-step-body p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.9em;
}

@media (max-width: 700px) {
  .flow-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .flow-steps li {
    flex: none;
    min-width: 0;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--blue-light);
  }

  .flow-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .flow-steps li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -22px;
    left: 19px;
  }

  .flow-step-num {
    margin-bottom: 0;
    margin-right: 16px;
  }
}

.works-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  max-width: 100%;
}

.works-nav {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--blue-light);
  background-color: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 40, 63, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-nav:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(20, 40, 63, 0.18);
}

.works-nav:active {
  transform: scale(0.96);
}

.works-track {
  display: grid;
  justify-items: center;
  align-items: start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
  padding: 24px 0;
}

.work-card-slot {
  grid-area: 1 / 1;
  width: clamp(240px, 34vw, 360px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.work-card-slot[data-rel="-1"] {
  transform: translateX(calc(-100% - 20px)) scale(0.8);
  opacity: 0.45;
  z-index: 1;
}

.work-card-slot[data-rel="1"] {
  transform: translateX(calc(100% + 20px)) scale(0.8);
  opacity: 0.45;
  z-index: 1;
}

.work-card-slot[data-rel="0"] {
  --drag-y: 0px;
  transform: translateX(0) scale(1.2) translateY(var(--drag-y));
  z-index: 2;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.work-card-slot[data-rel="0"].is-dragging {
  transition: opacity 0.5s ease;
  cursor: grabbing;
}

.work-card-slot[data-rel="hidden"] {
  transform: translateX(0) scale(0.6);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .work-card-slot[data-rel="-1"],
  .work-card-slot[data-rel="1"] {
    opacity: 0;
    pointer-events: none;
  }
}

.mock-browser {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--blue-light);
  box-shadow: 0 4px 12px rgba(20, 40, 63, 0.08);
  color: inherit;
  text-decoration: none;
}

.mock-browser--live {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mock-browser--live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 40, 63, 0.14);
}

.mock-frame {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background-color: #fff;
}

.mock-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform: scale(0.3);
  transform-origin: top left;
  pointer-events: none;
}

.mock-browser-bar {
  background-color: var(--blue-dark);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}

.mock-page {
  background-color: #fff;
  padding: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-nav {
  height: 12px;
  width: 60%;
  border-radius: 4px;
  background-color: var(--blue);
}

.mock-page--accent .mock-nav {
  background-color: var(--accent);
}

.mock-page--accent .mock-hero {
  background-color: var(--accent-light);
}

.mock-page--accent .mock-hero-line {
  background-color: var(--accent);
  opacity: 0.7;
}

.mock-page--accent .mock-block:first-child {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
}

.mock-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background-color: var(--blue-light);
  border-radius: 6px;
  padding: 14px;
}

.mock-hero-line {
  height: 8px;
  width: 80%;
  border-radius: 4px;
  background-color: var(--blue);
  opacity: 0.5;
}

.mock-hero-line--title {
  height: 12px;
  width: 60%;
  opacity: 0.85;
}

.mock-content {
  display: flex;
  gap: 8px;
}

.mock-block {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  background-color: var(--blue-light);
}

.work-card h3 {
  margin: 16px 0 6px;
  color: var(--blue-dark);
  font-size: 1em;
}

.work-card p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.7;
  color: #555;
}

.work-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85em;
  font-weight: bold;
  color: var(--blue);
}

.work-card-cta:hover {
  text-decoration: underline;
}

.work-card-note {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: var(--blue-dark);
  background-color: var(--blue-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-note {
  color: #666;
  font-size: 0.9em;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.pricing-item {
  background-color: #fff;
  border: 1px solid var(--blue-light);
  border-radius: 8px;
  padding: 18px 22px;
}

.pricing-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.pricing-item-name {
  font-weight: bold;
  color: var(--blue-dark);
  font-size: 1.05em;
}

.pricing-item-price {
  font-weight: bold;
  color: var(--blue);
  white-space: nowrap;
}

.pricing-item-desc {
  margin: 8px 0 0;
  color: #555;
  line-height: 1.7;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background-color: var(--accent-light);
}

.pricing-guarantee-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: bold;
}

.pricing-guarantee p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.1em;
  line-height: 1.6;
}

.pricing-guarantee strong {
  font-size: 1.1em;
}

.contact-links {
  list-style: none;
  padding: 0;
}

.contact-links li {
  margin-bottom: 16px;
}

.contact-links a {
  color: var(--blue);
}

.contact-links a:hover {
  color: var(--accent);
}

.app-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.app-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  transition: transform 0.15s ease;
}

.app-icon-link:hover {
  transform: translateY(-2px);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.app-icon--line {
  background-color: #06c755;
}

.app-icon-label {
  font-size: 0.85em;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f4f4f4;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-social .app-icon-link {
  gap: 0;
}

.footer-social .app-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.consult-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #16a34a;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.consult-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}

.consult-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  flex-shrink: 0;
  animation: consult-float-pulse 1.6s ease-in-out infinite;
}

@keyframes consult-float-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 500px) {
  .consult-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 0.8em;
  }
}

.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--blue-light);
  border-radius: 8px;
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: bold;
  color: var(--blue-dark);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--blue);
  font-size: 1.3em;
  font-weight: bold;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: #444;
}
