/* Harapeko App Landing Page */

:root {
  --cream: #fff7e8;
  --cream2: #fff1d7;
  --brown: #654326;
  --brown2: #8a6743;
  --orange: #ff8a2a;
  --dark: #201814;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

body.lang-en {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

.page {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(90, 60, 32, 0.08);
}

.hero-logo {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 26px;
  z-index: 10;
  line-height: 0;
}

.hero-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(90, 60, 32, 0.18);
}

.lang-switcher--harapeko {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 26px;
  z-index: 11;
}

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 72px 26px 42px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 2.2s ease;
}

.section.active .bg img {
  transform: scale(1);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,247,232,0.12), rgba(255,247,232,0.54)),
    linear-gradient(to right, rgba(255,247,232,0.72), rgba(255,247,232,0.08));
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  filter: blur(10px);
  transition:
    opacity 1.1s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.1s ease;
}

.section.active .content {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero .content {
  padding-top: 8vh;
}

.eyebrow {
  display: inline-block;
  padding: 9px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  font-size: 14px;
  font-weight: 900;
  color: var(--brown2);
  box-shadow: 0 10px 26px rgba(95, 65, 35, 0.08);
}

h1, h2 {
  color: var(--brown);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(42px, 11vw, 62px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(38px, 10vw, 56px);
  margin-bottom: 22px;
}

.lead {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
  color: #745034;
  margin-bottom: 30px;
}

.orange {
  color: var(--orange);
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge:active {
  transform: scale(0.98);
}

.app-store-badge img {
  width: auto;
  height: 54px;
  max-width: 100%;
}

.mini {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(101, 67, 38, 0.72);
}

.section.light {
  background: linear-gradient(180deg, #fff8ea, #fff0d5);
}

.section.light .bg::after {
  background:
    linear-gradient(to bottom, rgba(255,247,232,0.10), rgba(255,247,232,0.48)),
    linear-gradient(to right, rgba(255,247,232,0.62), rgba(255,247,232,0.10));
}

.number {
  font-size: 15px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 14px;
}

.bottom-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 18px;
  opacity: 0.75;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.footer {
  padding: 28px 20px 36px;
  text-align: center;
  background: #fffaf1;
  color: #9a7650;
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Language switcher (harapeko light theme) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.lang-switcher a {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.lang-switcher a:hover {
  opacity: 1;
  text-decoration: none;
}

.lang-switcher a[aria-current="page"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 12px rgba(95, 65, 35, 0.08);
}

.lang-switcher--harapeko {
  background: rgba(255, 255, 255, 0.76);
  padding: 4px 6px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(90, 60, 32, 0.12);
}

.lang-switcher--harapeko a[aria-current="page"] {
  background: rgba(255, 138, 42, 0.15);
}

.lang-switcher span[aria-hidden="true"] {
  opacity: 0.35;
  font-weight: 400;
}

@media (max-width: 380px) {
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-logo {
    left: 22px;
  }

  .lang-switcher--harapeko {
    right: 22px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }
}

@media (min-width: 521px) {
  body {
    background: linear-gradient(90deg, var(--cream) calc(50% - 260px), #fff3e0 calc(50% - 260px), #fff3e0 calc(50% + 260px), var(--cream) calc(50% + 260px));
  }
}
