/* ===== Kuramate Website Styles ===== */

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

/* --- Theme Variables --- */
:root {
  --primary: #0D9373;
  --primary-light: #14B8A6;
  --primary-lighter: #5EEAD4;
  --accent-warm: #F59E0B;
  --accent-warm-light: #FCD34D;
  --scaffold: #F0FDF4;
  --surface: #FFFFFF;
  --surface-container: #E6F5F0;
  --text: #1A1A2E;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --border: rgba(13, 147, 115, 0.08);
  --border-strong: rgba(13, 147, 115, 0.15);
  --nav-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --gradient-start: #0D9373;
  --gradient-end: #14B8A6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2DD4BF;
    --primary-light: #5EEAD4;
    --primary-lighter: #99F6E4;
    --accent-warm: #FBBF24;
    --accent-warm-light: #FDE68A;
    --scaffold: #0C1917;
    --surface: #1A2E2A;
    --surface-container: #1F3B35;
    --text: #E2E8F0;
    --text-secondary: rgba(226, 232, 240, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --nav-bg: #1A2E2A;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --gradient-start: #14B8A6;
    --gradient-end: #2DD4BF;
  }
}

/* --- Typography --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--scaffold);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; letter-spacing: -1px; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

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

a:hover {
  opacity: 0.8;
}

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

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Eyebrow Text --- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.eyebrow--warm {
  color: var(--accent-warm);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-container);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-switch a.active {
  color: var(--primary);
  background: var(--surface);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

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

.hero h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-group .store-badges {
  justify-content: flex-start;
}

.hero-cta-group .coming-soon {
  margin-top: 0;
}

/* --- Hero Scene (dual phones) --- */
.hero-scene {
  position: relative;
  width: 300px;
  height: 360px;
  flex-shrink: 0;
}

.hero-phone {
  position: absolute;
  width: 160px;
  height: 300px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .hero-phone {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

.hero-phone--left {
  top: 20px;
  left: 0;
  z-index: 2;
  transform: rotate(-4deg);
}

.hero-phone--right {
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-connect-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-connect-line svg {
  color: var(--primary);
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .store-badges {
  justify-content: flex-start;
}

/* Apple SVG: no padding (119.66x40)
   Google PNG: with padding (646x250, black area ~75%) */
.store-badge-img-apple {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.store-badge-img-apple:hover {
  transform: translateY(-2px);
}

.coming-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface-container);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Spotlight Sections --- */
.spotlight-section {
  border-top: 1px solid var(--border);
}

.spotlight-section .container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.spotlight-section--reversed .container {
  flex-direction: row-reverse;
}

.spotlight-visual {
  flex-shrink: 0;
  width: 340px;
}

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

.spotlight-text h2 {
  margin-bottom: 16px;
}

.spotlight-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Spotlight background alternation */
.spotlight-section:nth-of-type(odd) {
  background: var(--surface);
}

/* --- Spotlight Phone Frame (real screenshot) --- */
.spotlight-phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  border-radius: 32px;
  border: 2px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 280 / 607;
}

.spotlight-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .spotlight-phone {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  }
}

/* --- Lifestyle Gallery (2x2 thumbnail grid) --- */
.lifestyle-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 320px;
  margin: 0 auto;
}

.lifestyle-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lifestyle-thumb img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: block;
  background: var(--surface);
}

.lifestyle-thumb-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .lifestyle-thumb img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}


/* --- How It Works Section --- */
.how-it-works {
  text-align: center;
}

.how-it-works-heading {
  margin-bottom: 48px;
}

.how-it-works-heading p {
  color: var(--text-secondary);
  margin-top: 8px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: var(--border-strong);
  z-index: 1;
}

/* --- Final CTA Section --- */
.final-cta {
  background: linear-gradient(135deg, var(--scaffold), var(--surface-container));
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.download-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-badges-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-badges-group .coming-soon {
  margin-top: 0;
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* --- Privacy Policy Page --- */
.privacy-page {
  padding: 40px 0 80px;
}

.privacy-page article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 48px;
}

.privacy-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.privacy-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.privacy-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

.privacy-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.privacy-page ul,
.privacy-page ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-page li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.privacy-page strong {
  color: var(--text);
}

.privacy-page .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.privacy-page table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin-bottom: 0;
}

.privacy-page th,
.privacy-page td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}

.privacy-page th {
  background: var(--surface-container);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  width: 30%;
}

/* --- Language Banner --- */
.lang-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
  font-size: 0.9rem;
  align-items: center;
  gap: 12px;
}

.lang-banner.show {
  display: flex;
}

.lang-banner a {
  font-weight: 700;
}

.lang-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  h2 { font-size: 1.4rem; }

  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero */
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-cta-group .store-badges {
    justify-content: center;
  }

  .hero-scene {
    width: 240px;
    height: 300px;
    margin: 0 auto;
  }

  .hero-phone {
    width: 130px;
    height: 240px;
    border-radius: 20px;
  }

  /* Spotlight */
  .spotlight-section .container,
  .spotlight-section--reversed .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .spotlight-visual {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .spotlight-phone {
    width: 220px;
  }

  .lifestyle-gallery {
    width: 280px;
    gap: 12px;
  }

  /* How It Works */
  .steps {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .step {
    padding: 0;
  }

  .step:not(:last-child)::after {
    top: auto;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 24px;
    height: 2px;
  }

  /* Privacy */
  .privacy-page article {
    padding: 24px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-scene {
    width: 200px;
    height: 260px;
  }

  .hero-phone {
    width: 110px;
    height: 200px;
    border-radius: 16px;
  }

  .hero-connect-line {
    width: 40px;
    height: 40px;
  }
}
