/* === Design Tokens === */
:root {
  --color-primary: #ff8c00;
  --color-secondary: #ffa231;
  --color-accent: #ff3366;
  --color-text: #1a1a1a;
  --color-text-sub: #666;
  --color-text-label: #80808d;
  --color-bg: #f4f8f7;
  --color-surface: #fafafa;
  --color-border: #e5e5e5;
  --color-white: #fff;
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 14.6%, var(--color-accent) 85.4%);
  --gradient-horizontal: linear-gradient(to right, var(--color-primary), var(--color-accent));
  --gradient-hero: linear-gradient(208deg, #ffaa00 32%, #f4d400 95%);
  --gradient-section: linear-gradient(192deg, var(--color-primary) 3.8%, var(--color-secondary) 95.1%);
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-data: 'Outfit', sans-serif;
  --radius-card: 20px;
  --radius-button: 14px;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-faq: 6px 6px 0 0 rgba(255, 140, 0, 0.7);
  --shadow-cta: 0 4px 5px rgba(0, 0, 0, 0.15);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
table { border-collapse: collapse; }

/* === Header === */
.header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: var(--color-white);
}
.header-logo { width: 107px; height: 32px; }
.hamburger {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--color-text);
}
.hamburger span.short {
  width: 12px;
  margin-left: auto;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}
.hero .cta-button {
  margin-top: 0;
  margin-bottom: 32px;
}

/* === CTA Button === */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 337px;
  margin: 32px auto;
  padding: 12px 24px;
  background: var(--gradient-horizontal);
  border-radius: var(--radius-button);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.9;
  box-shadow: var(--shadow-cta);
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}
.cta-button:hover { opacity: 0.9; }
.cta-icon { flex-shrink: 0; }

/* === Pain Point === */
.pain-point {
  padding: 48px 32px;
  text-align: center;
  background: var(--color-white);
}
.section-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;
}
.section-body {
  font-family: var(--font-sans);
  font-weight: 350;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
  margin-top: 16px;
}

/* === App Screens === */
.app-screens {
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.app-screens-image {
  width: 120%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 -10%;
}

/* === Mockup Banner === */
.mockup-banner {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.mockup-phones {
  width: 100%;
  height: auto;
}

/* === Features === */
.features {
  padding: 0;
  text-align: center;
}
.features .section-body {
  text-align: left;
  padding: 0 16px;
}
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 0 16px;
}
.feature-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
  overflow: hidden;
}
.feature-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  opacity: 0.2;
}
.feature-card:nth-child(1) .feature-icon,
.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(3) .feature-icon {
  opacity: 1;
}
.feature-number {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  background: var(--gradient-horizontal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: 12px;
  width: 280px;
}
.feature-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin-top: 12px;
  width: 280px;
}

/* === CTA Section === */
.cta-section {
  padding: 44px 28px;
}
.cta-section .cta-button {
  margin: 0 auto;
}

/* === Pricing === */
.pricing {
  background: var(--color-white);
  padding: 48px 0;
  text-align: center;
}
.pricing-scroll {
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: 16px;
}
.pricing-scroll::-webkit-scrollbar { display: none; }
.pricing-cards {
  display: flex;
  gap: 20px;
  padding-right: 16px;
  width: max-content;
}
.price-card {
  width: min(75vw, 295px);
  flex-shrink: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 425px;
}
.price-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}
.price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow: hidden;
}
.price-currency {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text);
  line-height: 1;
}
.price-amount {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-text);
  line-height: 1;
}
.price-card:first-child .price-amount { font-size: 56px; }
.price-period {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1;
  white-space: nowrap;
}
.price-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}
.price-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-sub);
  white-space: nowrap;
}
.price-features li img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-horizontal);
  border-radius: 12px;
  padding: 0 24px;
  height: 52px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.price-cta:hover { opacity: 0.9; }

/* === FAQ === */
.faq {
  background: var(--gradient-section);
  padding: 48px 16px 54px;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}
.faq::before,
.faq::after {
  content: '';
  position: absolute;
  width: 252px;
  height: 213px;
  background: url('assets/faq-bg.svg') no-repeat;
  background-size: contain;
}
.faq::before {
  top: -130px;
  right: -110px;
}
.faq::after {
  bottom: -60px;
  left: -30px;
}
.faq-title { color: var(--color-white); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-right: 6px;
  padding-bottom: 6px;
  position: relative;
  z-index: 1;
}
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-faq);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 60px;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-q-mark {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq-q-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}
.faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-sub);
  border-bottom: 2px solid var(--color-text-sub);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] .faq-arrow::before {
  transform: translate(-50%, -40%) rotate(-135deg);
}
.faq-answer {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}
.faq-a-mark {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq-answer p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
  flex: 1;
  min-width: 0;
}

/* === Final CTA === */
.final-cta {
  padding: 48px 28px;
  text-align: center;
}

/* === Footer === */
.footer {
  background: var(--color-white);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
}
.company-table {
  width: 100%;
  text-align: left;
}
.company-table tr {
  border-bottom: 1px solid var(--color-border);
}
.company-table th,
.company-table td {
  padding: 12px 0;
  vertical-align: top;
  font-weight: 400;
}
.company-table th {
  font-size: 12px;
  color: var(--color-text-label);
  width: 72px;
  line-height: 1;
}
.company-table td {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}
.footer-logo {
  width: 133px;
  height: 40px;
}
.copyright {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  color: var(--color-text);
}

/* === Desktop elements (hidden on SP) === */
.desktop-left-panel { display: none; }
.desktop-deco-right { display: none; }
.desktop-copyright { display: none; }

/* === Desktop === */
@media (min-width: 768px) {
  body {
    background: linear-gradient(163deg, #FFAA00 13.15%, #F4D400 99.32%);
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    gap: 40px;
  }

  /* Left Panel */
  .desktop-left-panel {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(80vw - 393px);
    height: 100vh;
    padding: 40px;
    z-index: 0;
  }
  .desktop-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
  }
  .desktop-left-logo {
    width: 80px;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
  }
  .desktop-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .desktop-left-title-img {
    width: 100%;
    max-width: 420px;
    height: auto;
  }
  .desktop-store-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
  }
  .store-badge img {
    display: block;
    height: 40px;
    width: auto;
  }
  .desktop-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
  }
  .desktop-qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 16px;
  }
  .desktop-qr-label {
    margin-top: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
  }

  /* Decorative motifs */
  .desktop-deco {
    display: none;
  }
  .desktop-deco-left {
    display: block;
    position: fixed;
    top: 5%;
    left: 0;
    width: 60vw;
    height: 100vh;
    object-fit: contain;
    object-position: left center;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }
  .desktop-deco-right {
    display: block !important;
    position: fixed;
    bottom: -40px;
    right: 60px;
    width: 200px;
    height: auto;
    opacity: 0.2;
    z-index: 0;
  }

  /* Vertical copyright */
  .desktop-copyright {
    display: block !important;
    position: fixed;
    right: 24px;
    bottom: 24px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    color: var(--color-text);
    white-space: nowrap;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
    z-index: 10;
  }

  /* Right Panel (SP content in phone-like card) */
  .sp-content {
    width: 393px;
    flex-shrink: 0;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-left: auto;
    margin-right: 20vw;
    position: relative;
    z-index: 1;
  }
}
