/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #1e293b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  max-width: 280px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-color);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--bg-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), #60a5fa);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Exam Info Section */
.exam-info {
  padding: 80px 0;
  background: var(--bg-light);
}

.exam-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.exam-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 16px;
  color: var(--text-color);
}

.exam-text p {
  color: var(--text-light);
  line-height: 1.8;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.exam-table th,
.exam-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.exam-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.exam-table tr:last-child td {
  border-bottom: none;
}

.exam-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef3c7;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: #92400e;
}

.exam-image {
  display: flex;
  justify-content: center;
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
  background: var(--bg-color);
}

.screenshots-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.screenshots-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.screenshots-container::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-item img {
  width: 200px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

.screenshot-item p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--bg-color);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--primary-color);
  color: white;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.slider-dots .dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

/* Download Section */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #334155 100%);
  text-align: center;
}

.download .section-title {
  color: white;
}

.download-text {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge img {
  height: 50px;
  transition: transform var(--transition);
}

.store-badge:hover img {
  transform: scale(1.05);
}

.coming-soon {
  margin-top: 20px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid #334155;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 600;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .exam-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    gap: 16px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    max-width: 220px;
  }

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

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .screenshot-item img {
    width: 160px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}
