@charset "utf-8";

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-y) var(--section-padding-x);
  background: transparent;
  text-align: center;
  overflow: visible;
  z-index: 1;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/public/img/index_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -1;
  animation: backgroundFadeIn 1.5s ease 0.5s both;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: -1;
  opacity: 0;
  animation: overlayFadeIn 1.5s ease 1s both;
}

@keyframes backgroundFadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1200px 0;
  }
  100% {
    background-position: 1200px 0;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 15px rgba(82, 179, 217, 0.3);
  }
  33% {
    box-shadow: 0 0 25px rgba(82, 179, 217, 0.5);
  }
  66% {
    box-shadow: 0 0 18px rgba(82, 179, 217, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(82, 179, 217, 0.3);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  20% {
    transform: translate(18px, -12px) scale(1.02) rotate(1deg);
  }
  40% {
    transform: translate(-0.5rem, 0.5rem) scale(0.98) rotate(-0.5deg);
  }
  60% {
    transform: translate(12px, -5px) scale(1.01) rotate(0.3deg);
  }
  80% {
    transform: translate(-5px, 3px) scale(0.99) rotate(-0.2deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

main {
  position: relative;
  background: linear-gradient(180deg, #fdfeff 0%, #f8fcfd 50%, #f5fafb 100%);
  overflow-x: hidden;
  overflow-y: visible;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  border-radius: 20px 18px 22px 19px;
  border: 2px solid rgba(82, 179, 217, 0.2);
  padding: var(--card-padding);
  box-shadow: 0 15px 35px rgba(82, 179, 217, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.3deg);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: var(--space-2xl);
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px) rotate(0.5deg);
  animation: fadeInUp 0.8s ease 0.2s both;
  text-transform: none;
  position: relative;
  font-feature-settings: "palt" 1;
}

.title-line-1 {
  display: block;
  font-size: 0.85em;
  margin-bottom: 0.2em;
  transform: translateX(-2px);
}

.title-line-2 {
  display: block;
  font-size: 1.1em;
  color: var(--color-accent);
  transform: translateX(3px);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  margin-bottom: var(--space-3xl);
  color: var(--color-text-secondary);
  font-weight: bold;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s both;
  letter-spacing: -0.01em;
}

.typing-cursor {
  display: inline-block;
  color: var(--color-accent);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-button i,
.hero-button .bi {
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
  z-index: 2;
}

.hero-button.primary {
  background: var(--color-accent);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 32px rgba(70, 190, 237, 0.25),
    0 4px 1rem rgba(70, 190, 237, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-button.primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(70, 190, 237, 0.35),
    0 6px 20px rgba(70, 190, 237, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-button.primary:active {
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(70, 190, 237, 0.25),
    0 2px 10px rgba(70, 190, 237, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.hero-button.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: left 0.6s ease;
  z-index: 1;
}

.hero-button.primary:hover::before {
  left: 100%;
}

.hero-button.primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.hero-button.primary:hover::after {
  opacity: 1;
}

.hero-button.secondary {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.hero-button.secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.animate {
  opacity: 1;
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}
.delay-600 {
  transition-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-md);
}

.section-header h2 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  position: relative;
}

.section-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: bold;
  letter-spacing: -0.015em;
}

.highlight-text {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

.flow-section {
  padding: var(--section-padding-y) 0;
  background: var(--color-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.flow-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5xl);
}

.flow-item {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.flow-item.right-aligned {
  flex-direction: row-reverse;
}

.flow-content {
  flex: 1;
}

.flow-text {
  max-width: 500px;
}

.flow-number {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.flow-text h3 {
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.flow-text p {
  margin-bottom: var(--space-xl);
}

.flow-link {
  display: inline-flex;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-weight: bold;
  transition: color var(--transition-normal);
}

.flow-link:hover {
  color: var(--color-accent-hover);
}

.flow-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.simple-intro-section {
  padding: var(--section-padding-y) 0;
  background: var(--color-gray-50);
}

.intro-features {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
}

.feature-content {
  flex: 1;
}

.feature-content h4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.final-cta-section {
  position: relative;
  padding: var(--section-padding-y) 0;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: 100%;
}

.grid-dot {
  width: 4px;
  height: 4px;
  background: var(--color-white);
  border-radius: 50%;
  margin: auto;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.cta-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.title-main {
  display: block;
}

.title-accent {
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.cta-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--card-padding);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.cta-card.featured {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-colored);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.cta-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon-wrapper {
  position: relative;
  margin-bottom: var(--space-xl);
}

.icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.card-icon-wrapper i {
  font-size: 2rem;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.cta-card h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.card-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.card-features {
  margin-bottom: var(--space-xl);
}

.card-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-sm);
}

.card-features li:last-child {
  margin-bottom: 0;
}

.card-features i {
  color: var(--color-white);
  flex-shrink: 0;
}

.card-cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: bold;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.card-cta-button.primary {
  background: var(--color-white);
  color: var(--color-accent);
}

.card-cta-button.primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  :root {
    --section-padding-y: var(--space-3xl);
    --section-padding-x: var(--space-md);
    --card-padding: var(--space-lg);
  }

  #hero {
    padding: var(--section-padding-y) var(--section-padding-x);
    min-height: 70vh;
  }

  #hero::before {
    background-image: none;
  }

  .hero-content {
    max-width: 100%;
    padding: var(--space-2xl);
  }

  .hero-title {
    margin-bottom: var(--space-lg);
  }

  .hero-subtitle {
    margin-bottom: var(--space-2xl);
  }

  .hero-buttons {
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .hero-button {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
  }

  .cta-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
  }

  .title-main,
  .title-accent {
    margin-bottom: var(--space-sm);
  }

  .cta-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .cta-content {
    padding: 0 var(--space-md);
  }

  .cta-cards {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
  }

  .cta-card {
    width: 100%;
  }

  .card-cta-button {
    width: 100%;
    justify-content: center;
  }

  .card-icon-wrapper {
    margin-bottom: var(--space-lg);
  }

  .icon-bg {
    width: 60px;
    height: 60px;
  }

  .cta-header {
    margin-bottom: var(--space-3xl);
  }

  .cta-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    margin-bottom: var(--space-lg);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --section-padding-y: var(--space-4xl);
    --section-padding-x: var(--space-xl);
    --card-padding: var(--space-xl);
  }

  #hero {
    min-height: 90vh;
  }

  .hero-content {
    max-width: 700px;
    padding: var(--space-3xl);
  }

  .hero-title {
    margin-bottom: var(--space-2xl);
  }

  /* Final CTA section responsive styles for tablet */
  .cta-cards {
    gap: var(--space-xl);
  }

  .cta-card {
    padding: var(--space-xl);
  }

  .card-cta-button {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.95rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .cta-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding-y: var(--space-5xl);
    --section-padding-x: var(--space-2xl);
    --card-padding: var(--space-2xl);
  }

  #hero {
    min-height: 100vh;
  }

  .hero-content {
    max-width: 1000px;
    padding: var(--space-4xl);
  }

  .hero-title {
    margin-bottom: var(--space-3xl);
  }

  .hero-subtitle {
    font-size: 1.75rem;
    max-width: 800px;
  }

  .cta-title {
    font-size: 3rem;
  }

  .cta-subtitle {
    font-size: 1.5rem;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in,
  .stagger-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
