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

:root {
  /* Junbicho Cream Coral tokens */
  --bg-base: #FFFCF9;
  --bg-soft: #FFF8F2;
  --bg-card: #FFFFFF;
  --bg-muted: #FFF3EA;
  --primary: #EDA87C;
  --primary-hover: #E0955F;
  --primary-soft: #FFF0E6;
  --secondary: #C67B55;
  --secondary-soft: #FDDCC5;
  --success: #7CB87C;
  --success-soft: #F0F8F0;
  --info: #7CAFC4;
  --info-soft: #EEF6FF;
  --text-primary: #4A3020;
  --text-secondary: #8B7B70;
  --text-on-primary: #FFFFFF;
  --border: #F0E8E2;
  --border-light: #F5EDE7;

  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'DM Sans', 'Noto Sans JP', sans-serif;
  --max-width: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

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

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

section { padding: 60px 0; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.lang-switch {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.lang-switch:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-switch.is-active {
  color: var(--text-on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Phone mockup */
.hero-mockup {
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--bg-card);
  border-radius: 40px;
  border: 2px solid var(--border-light);
  padding: 8px;
  box-shadow:
    0 8px 32px rgba(74, 48, 32, 0.08),
    0 2px 8px rgba(74, 48, 32, 0.04);
}

.phone-screen {
  background: var(--bg-soft);
  border-radius: 32px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 0 0 16px 16px;
}

.placeholder-text {
  opacity: 0.6;
  font-size: 13px;
  line-height: 1.6;
}

.placeholder-text .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

/* Store badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--text-on-primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
  opacity: 0.4;
  cursor: default;
}

.store-badge .small-text {
  font-size: 10px;
  font-weight: 400;
  display: block;
  line-height: 1;
}

/* ===== Features ===== */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 48, 32, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.coral { background: var(--primary-soft); }
.feature-icon.green { background: var(--success-soft); }
.feature-icon.blue { background: var(--info-soft); }
.feature-icon.cream { background: var(--bg-muted); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Destinations ===== */
.destinations {
  text-align: center;
}

.destinations h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.destinations > .container > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
}

.dest-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s;
}

.dest-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dest-chip .dest-emoji {
  font-size: 20px;
}

/* ===== Screenshots ===== */
.screenshots {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.screenshots h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 40px;
}

.screenshots-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 24px 20px;
}

.screenshot-item {
  flex: 0 0 200px;
}

.screenshot-placeholder {
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  padding: 16px;
}

.screenshot-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== How it works ===== */
.how-it-works {
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 0 1 240px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-primary);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-icon {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.about-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Data & Privacy ===== */
.privacy-section { text-align: center; }

.privacy-section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 32px;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  text-align: left;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}

.privacy-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== English Section ===== */
.english-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: none;
}

.english-section.is-visible { display: block; }

.english-section .container { font-family: var(--font-en); }

.english-section h2 {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.english-section .en-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.en-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.en-block h3 {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.en-block p, .en-block ul {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.en-block ul { padding-left: 20px; margin-top: 8px; }
.en-block ul li { margin-bottom: 4px; }

.en-data-table {
  margin-top: 24px;
  grid-column: 1 / -1;
}

.en-data-table h3 {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--secondary);
}

.en-data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.en-data-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.en-data-table td {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

/* ===== Contact ===== */
.support { text-align: center; }

.support h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.support p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  transition: all 0.2s;
}

.support-email:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(237, 168, 124, 0.15);
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 16px;
}

.footer-brand span { color: var(--primary); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-attribution {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-mockup { max-width: 260px; }
  .store-badges { flex-direction: column; align-items: center; }
  .about-inner { flex-direction: column; text-align: center; }
  .en-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  section { padding: 40px 0; }
  .steps { flex-direction: column; align-items: center; }

  .screenshots-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
  }

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

  .screenshot-item {
    flex: 0 0 160px;
    scroll-snap-align: center;
  }
}
