/* Design Tokens */
:root {
  /* Colors */
  --color-primary: #1075ef;
  --color-primary-light: #dbeafd;
  --color-text-high: #1a3755;
  --color-text-mid: #535d6e;
  --color-bg-low: #f2f4fa;
  --color-border-low: #ccd3d9;
  --color-theme-primary: #0276f1;

  /* Font Families */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Sizes */
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Line Heights */
  --line-height-sm: 21px;
  --line-height-md: 24px;
  --line-height-lg: 27px;
  --line-height-xl: 36px;
  --line-height-2xl: 48px;
  --line-height-3xl: 72px;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 64px;

  /* Shadows */
  --shadow-distant: 0px 8px 12px 0px rgba(12, 71, 161, 0.18);
  --shadow-shallow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text-high);
  background: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  background-color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Hamburger Button */
#mobile-menu-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 40px;
  width: 40px;
}

#mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 50px;
  background-color: #1a3755;
  transition: 0.2s ease;
}

#mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(-135deg);
}

#mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(135deg);
}

nav[aria-label="Main Navigation"] {
  display: flex !important;
}

#mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
  pointer-events: none;
}

@media (max-width: 1024px) {
  #mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  nav[aria-label="Main Navigation"] {
    display: none !important;
  }

  #mobile-menu.is-active {
    max-height: 400px;
    pointer-events: auto;
  }
}

/* Utility classes */
.text-nowrap {
  white-space: nowrap;
}

.gap-md {
  gap: var(--spacing-md);
}

/* GDPR Banner */
.gdpr-container {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a3755;
  color: #fff;
  padding: 12px 24px;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.gdpr-container.is-show {
  display: flex;
}

.gdpr-wording {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.gdpr-wording a {
  color: #90caf9;
}

.gdpr-btn {
  white-space: nowrap;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 6px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.gdpr-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../images/index/common/mainvisual_bg.jpg') 50% 0 / 100% no-repeat;
  z-index: 0;
}

.hero-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  height: 620px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 420px;
  padding-top: 180px;
}

.hero-mainvisual {
  position: absolute;
  top: 60px;
  left: 400px;
  width: 920px;
}

.hero-mainvisual img {
  width: 100%;
  height: auto;
}

.hero-label {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xl);
  display: block;
}

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-3xl);
  color: var(--color-text-high);
  margin: 0;
}

.hero-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-text-high);
  margin: 0;
}

.hero-btn {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  width: fit-content;
  text-decoration: none;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.hero-btn:hover {
  opacity: 0.9;
  color: white;
}

/* Section Container */
.section {
  padding: var(--spacing-3xl) var(--spacing-2xl);
  max-width: 1280px;
  margin: 0 auto;
}

.section-bg {
  background: var(--color-bg-low);
}

.section-center {
  text-align: center;
}

.section-title {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  display: inline-block;
}

.underline {
  height: 0;
  border-bottom: 2px solid var(--color-primary);
  width: 230px;
  margin: var(--spacing-md) auto var(--spacing-3xl);
}

.section-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-text-high);
  max-width: 800px;
  margin: 0 auto var(--spacing-3xl);
}

.what-is-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.card {
  background: white;
  border-radius: 20px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-distant);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  margin: 0;
}

.card-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-text-high);
  margin: 0;
}

/* Banner Section */
.bnr-section {
  background: var(--color-primary);
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.bnr-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  justify-content: center;
}

.bnr-image img {
  max-height: 200px;
  max-width: 300px;
  object-fit: contain;
}

.bnr-text {
  color: white;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

.bnr-text strong {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-top: var(--spacing-sm);
}

.bnr-text em {
  font-style: normal;
  font-weight: var(--font-weight-black);
}

/* Features Section */
.features-section {
  background: var(--color-bg-low);
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.feature-card {
  background: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  box-shadow: var(--shadow-shallow);
  margin-bottom: var(--spacing-2xl);
  border-radius: 12px;
  text-align: left;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--spacing-2xl);
  align-items: stretch;
  margin-bottom: var(--spacing-xl);
}

.feature-number {
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-right: 2px solid var(--color-primary-light);
}

.feature-number-text {
  color: var(--color-primary);
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.feature-number-label {
  color: var(--color-primary);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.feature-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-md);
}

.feature-info h3 {
  color: var(--color-text-high);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0;
  line-height: 1.3;
}

.feature-info p {
  color: var(--color-text-high);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  margin: 0;
}

.badge-ready {
  display: inline-block;
  background: var(--color-bg-low);
  color: var(--color-text-mid);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid var(--color-border-low);
  margin-right: 6px;
  vertical-align: middle;
}

.feature-image {
  width: 100%;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Flow / Timeline Section */
.flow-section {
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.flow-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.timeline {
  margin-top: var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--spacing-lg);
}

.timeline-badge {
  background: var(--color-primary);
  color: white;
  border-radius: 58.5px;
  border: 6px solid var(--color-primary-light);
  font-weight: var(--font-weight-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: var(--spacing-lg) var(--spacing-sm);
}

.timeline-badge .step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.timeline-badge .step-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.timeline-content {
  background: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-shallow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.timeline-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  margin-bottom: var(--spacing-sm);
}

.timeline-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-high);
  line-height: var(--line-height-sm);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-wrapper {
    height: 520px;
  }

  .hero-text {
    max-width: 340px;
    padding-top: 120px;
  }

  .hero-mainvisual {
    top: 40px;
    left: 300px;
    width: 740px;
  }

  .bnr-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero::before {
    left: -53vw;
    top: -80vw;
    width: 182vw;
    height: 181vw;
    background: url('../images/index/common/bg_mv.png') 50% / contain no-repeat;
  }

  .hero-wrapper {
    height: 560px;
    padding: 40px 24px 0;
  }

  .hero-text {
    padding-top: 0;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero-mainvisual {
    top: 54vw;
    left: -15vw;
    width: 134vw;
  }

  .section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-header {
    grid-template-columns: 1fr;
  }

  .feature-number {
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid var(--color-primary-light);
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-badge {
    height: 72px;
    flex-direction: row;
    border-radius: 8px;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .features-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .flow-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .bnr-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

}
