/* ==========================================================================
   Sticky! - Friendly & Clean Landing Page Stylesheet
   ========================================================================== */

:root {
  /* Warm & Friendly Color Palette */
  --bg-page: #fbfaf8;
  --bg-card: #ffffff;
  --bg-subtle: #f3f1ec;
  --bg-accent: #fef9e7;

  --text-main: #2d3748;
  --text-sub: #5a6a80;
  --text-muted: #8c9ba5;

  /* Sticky Note Accent Colors */
  --note-yellow: #fff3a8;
  --note-green: #d1fae5;
  --note-blue: #dbeafe;
  --note-pink: #fce7f3;
  --note-orange: #ffedd5;
  --note-purple: #f3e8ff;

  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -10px rgba(45, 55, 72, 0.08);
  --shadow-sticky: 0 6px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-screenshot: 0 16px 36px -8px rgba(30, 41, 59, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);

  --font-family: 'Zen Maru Gothic', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1100px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(243, 241, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  padding: 12px 0;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--text-main);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Switch */
.lang-switch {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.lang-switch:hover {
  color: var(--text-main);
}

/* Refined Google Play Button with High Contrast & Clear Icon */
.btn-header-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #0f172a; /* High contrast text: 12.6:1 (WCAG AAA) */
  border: 1.5px solid #cbd5e1;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  line-height: 1;
}

.btn-header-play .play-svg {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.btn-header-play:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background 0.15s, border-color 0.15s;
}

.mobile-menu-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Dropdown / Drawer */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(251, 250, 248, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  padding: 16px 24px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-list a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 60px 0 70px 0;
  position: relative;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--note-yellow);
  color: #854d0e;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #1e293b;
}

.hero-title span.accent {
  color: #ea580c;
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.play-badge-img {
  height: 58px;
  width: auto;
  transition: transform 0.2s ease;
}

.play-badge-img:hover {
  transform: scale(1.03);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  max-width: 320px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-screenshot);
  background: #ffffff;
  transition: transform 0.3s ease;
}

.hero-image-card:hover {
  transform: translateY(-4px);
}

.hero-sticky-note {
  position: absolute;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #374151;
  box-shadow: var(--shadow-sticky);
  z-index: 2;
  transition: transform 0.2s ease;
}

.hero-sticky-note:hover {
  transform: scale(1.05) !important;
}

.note-top-right {
  background: var(--note-yellow);
  top: 8%;
  right: -24px;
  transform: rotate(5deg);
}

.note-bottom-left {
  background: var(--note-green);
  bottom: 12%;
  left: -28px;
  transform: rotate(-6deg);
}

/* ==========================================================================
   Screenshots Carousel / Gallery Section
   ========================================================================== */

.gallery-section {
  padding: 70px 0 80px 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-title-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px auto;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1e293b;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* Gallery Scroll / Grid */
.gallery-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 28px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.gallery-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--bg-page);
  border-radius: 20px;
  padding: 12px 12px 16px 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(30, 41, 59, 0.12);
}

.gallery-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
}

.gallery-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card-caption {
  text-align: center;
}

.gallery-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.gallery-card-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==========================================================================
   Features Section (Friendly 3 Cards)
   ========================================================================== */

.features-section {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-4px);
}

.feature-tag-pill {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tag-yellow { background: var(--note-yellow); }
.tag-pink   { background: var(--note-pink); }
.tag-blue   { background: var(--note-blue); }

.feature-box-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-box-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  padding: 40px 0 90px 0;
}

.cta-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.cta-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cta-logo-wrap .brand-icon {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.cta-logo-wrap .brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.cta-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.cta-lead {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 500px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.cta-button-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #f1efe9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 44px 0 32px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.footer-brand .brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */

.policy-container {
  padding: 50px 0 80px 0;
}

.policy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 50px 56px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ea580c;
  margin-bottom: 28px;
}

.policy-header {
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.policy-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.policy-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.policy-content {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
}

.policy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bg-subtle);
}

.policy-content p {
  margin-bottom: 16px;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content a {
  color: #2563eb;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & Mobile Nav Breakpoint */
@media (max-width: 840px) {
  .nav-menu {
    display: none; /* Hide wide desktop links */
  }

  .mobile-menu-btn {
    display: inline-flex; /* Show hamburger button */
  }
}

@media (max-width: 960px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-pill, .hero-cta {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-sticky-note {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.7rem;
  }

  .policy-card {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Extra small mobile screens (iPhone SE, etc.) */
@media (max-width: 440px) {
  .brand-icon {
    height: 32px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-header-play {
    padding: 6px 11px;
    font-size: 0.8rem;
  }

  .btn-header-play .play-svg {
    width: 13px;
    height: 13px;
  }

  .mobile-menu-btn {
    width: 32px;
    height: 32px;
  }
}

/* Keep the menu button on screen with the language switch on very narrow phones */
@media (max-width: 380px) {
  .btn-header-play span {
    display: none;
  }
}
