/* =============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================= */
:root {
  --color-primary: #0056d8;
  --color-gradient: linear-gradient(45deg, #0056d8, #32c066);
  --color-hover-green: #24aa17;
  --color-text: #000000;
  --color-text-sub: #333333;
  --color-text-sub2: #222222;
  --color-bg: #ffffff;
  --color-footer-bg: #000000;
  --font-main: 'Poppins', 'Noto Sans JP', sans-serif;
  --font-sub: 'Noto Sans', sans-serif;
  --header-height: 64px;
  --container-max: 1280px;
}

/* =============================================================
   2. CSS Reset / Base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* =============================================================
   3. Layout
   ============================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* =============================================================
   4. Shared Components
   ============================================================= */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading .en {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.section-heading .ja {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 64px;
  padding: 18px 48px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  transition: background 200ms;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  background: #000000;
  transition-duration: 400ms;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 64px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  transition: background 400ms;
  text-decoration: none;
}

.btn-download:hover {
  background: var(--color-hover-green);
}

.btn-download .material-symbols-outlined {
  font-size: 20px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* =============================================================
   5. Header & Navigation
   ============================================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 4;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  transition: box-shadow 200ms;
}

#header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  width: 32px;
  height: 32px;
}

.header-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 200ms;
}

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

.hamburger-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn .material-symbols-outlined {
  font-size: 24px;
}

/* =============================================================
   6. Hamburger Menu Modal
   ============================================================= */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

.menu-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-modal nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.menu-modal nav a {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  transition: color 200ms;
}

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

.menu-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-close-btn .material-symbols-outlined {
  font-size: 24px;
}

/* =============================================================
   7. Hero Section
   ============================================================= */
#top {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 80px;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gradient);
  color: #ffffff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .material-symbols-outlined {
  font-size: 18px;
}

.hero-title {
  font-size: 70px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.hero-avatars img:not(:first-child) {
  margin-left: -12px;
}

.hero-stats-divider {
  color: #cccccc;
  margin: 0 4px;
}

.hero-description {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--color-text-sub2);
}

.hero-image {
  width: 48%;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  border-radius: 25px;
  object-fit: cover;
}

/* =============================================================
   8. What's Agile Label Section
   ============================================================= */
#whats {
  padding: 96px 0;
  background: #f8f9fb;
}

#whats .section-heading {
  margin-bottom: 32px;
}

.whats-body {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
  color: var(--color-text-sub);
}

.whats-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.whats-download-label {
  font-size: 16px;
  font-weight: 700;
}

/* =============================================================
   9. Image Slider Section
   ============================================================= */
#slider {
  padding: 80px 0;
  overflow: hidden;
}

.slider-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #eee;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, color 200ms;
}

.slider-controls button:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.slider-controls .material-symbols-outlined {
  font-size: 22px;
}

/* =============================================================
   10. Feature Section
   ============================================================= */
#feature {
  padding: 96px 0;
}

.feature-bg {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 64px;
}

.feature-copy {
  text-align: center;
  margin-bottom: 48px;
}

.feature-copy h3 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.feature-copy p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
}

.feature-cards {
  display: flex;
  gap: 32px;
  margin-bottom: 64px;
}

.feature-card {
  flex: 1;
  background: #f8f9fb;
  border-radius: 16px;
  padding: 32px;
}

.feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.feature-steps {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.feature-steps-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}

.feature-steps-image img {
  width: 100%;
}

.feature-steps-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  padding: 16px 0;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h5 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sub);
}

/* =============================================================
   11. Stats Section
   ============================================================= */
#stats {
  padding: 80px 0;
  background: var(--color-gradient);
  color: #ffffff;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 500;
  display: block;
}

.stat-label {
  font-size: 18px;
  font-weight: 500;
  display: block;
  opacity: 0.9;
}

/* =============================================================
   12. User's Voice Section
   ============================================================= */
#voice {
  padding: 96px 0;
  background: #f8f9fb;
}

.voice-cards {
  display: flex;
  gap: 32px;
}

.voice-card {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.voice-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.voice-card-header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.voice-card-meta .role {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 2px;
}

.voice-card-meta .name {
  font-size: 16px;
  font-weight: 700;
}

.voice-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.voice-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* =============================================================
   13. FAQ Section
   ============================================================= */
#faq {
  padding: 96px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e0e0e0;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 200ms;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question .material-symbols-outlined {
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 300ms;
  color: var(--color-primary);
}

.faq-question[aria-expanded="true"] .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer p {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* =============================================================
   14. Contact Section
   ============================================================= */
#contact {
  padding: 96px 0;
  background: #f8f9fb;
}

.contact-desc {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
}

.form-group label .required {
  color: #e53e3e;
  margin-left: 4px;
  font-size: 12px;
}

.form-group label .optional {
  color: #888;
  margin-left: 4px;
  font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: #ffffff;
  transition: border-color 200ms;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.radio-item span {
  font-size: 15px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 64px;
  padding: 18px 48px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 200ms;
}

.btn-submit:hover {
  background: #000000;
  transition-duration: 400ms;
}

.btn-submit img {
  width: 20px;
  height: 20px;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.form-success {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-hover-green);
  padding: 32px;
}

.form-error-msg {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 4px;
}

/* =============================================================
   15. CTA Section
   ============================================================= */
#cta {
  padding: 96px 0;
  background-image: url('/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  text-align: center;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

#cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

#cta .cta-sub {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  opacity: 0.9;
}

#cta .download-buttons {
  justify-content: center;
}

#cta .btn-download {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

#cta .btn-download:hover {
  background: #ffffff;
  color: var(--color-text);
}

/* =============================================================
   16. Footer
   ============================================================= */
#footer {
  background: var(--color-footer-bg);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 200ms;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* =============================================================
   17. Scroll Animations (data-appear)
   ============================================================= */
[data-appear] {
  opacity: 0;
  transform: translate(0px, 24px);
  transition: opacity 600ms, transform 600ms;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

[data-appear="left"] {
  transform: translate(-24px, 0px);
}

[data-appear="scale"] {
  transform: scale(0.95) translate(0px, 0px);
}

[data-appear].visible {
  opacity: 1;
  transform: translate(0px, 0px);
}

[data-appear="scale"].visible {
  transform: scale(1) translate(0px, 0px);
}

/* =============================================================
   18. Responsive Breakpoints
   ============================================================= */

/* small: 1140px - laptop adjustments */
@media (max-width: 1140px) {
  .hero-title {
    font-size: 64px;
  }
}

/* tablet: 840px */
@media (max-width: 840px) {
  .container {
    padding: 0 24px;
  }

  /* Header */
  .header-inner {
    padding: 0 24px;
  }

  .header-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    padding: 0 24px;
    flex-direction: column;
    gap: 40px;
  }

  .hero-image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-stats {
    display: none;
  }

  /* Features */
  .feature-cards {
    flex-direction: column;
  }

  .feature-steps {
    flex-direction: column;
  }

  /* Voice */
  .voice-cards {
    flex-direction: column;
  }

  /* Stats */
  .stats-inner {
    gap: 40px;
  }
}

/* mobile: 540px */
@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  /* Hero */
  #top {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-image img {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Section headings */
  .section-heading .en {
    font-size: 36px;
  }

  /* Whats */
  .whats-body {
    font-size: 14px;
    text-align: left;
  }

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

  .btn-download {
    justify-content: center;
  }

  /* Feature */
  .feature-copy h3 {
    font-size: 28px;
  }

  /* Stats */
  .stats-inner {
    gap: 32px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-label {
    font-size: 15px;
  }

  /* FAQ */
  .faq-question {
    font-size: 14px;
    padding: 18px 0;
  }

  /* Footer */
  .footer-links {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  /* CTA */
  #cta h2 {
    font-size: 28px;
  }

  /* Contact */
  .contact-form {
    padding: 0;
  }
}

/* mini: 320px */
@media (max-width: 320px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-badge {
    font-size: 13px;
  }

  .btn-primary,
  .btn-submit {
    padding: 14px 28px;
    font-size: 14px;
  }
}
