/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --bg-white: #ffffff;
  --bg-surface: #f8f8f8;
  --text-primary: #3d3d3d;
  --text-secondary: #7a7a7a;
  --accent: #ff7272;
  --accent-hover: #e85c5c;

  /* Seasonal theme colors */
  --spring-primary: #ff7272;
  --spring-secondary: #ffd31d;
  --spring-bg: #fae7cb;

  --summer-primary: #beaee2;
  --summer-secondary: #ddb9d3;
  --summer-bg: #f9f3fe;

  --autumn-primary: #bb3b0e;
  --autumn-secondary: #dd7631;
  --autumn-bg: #d8c593;

  --winter-primary: #1b1717;
  --winter-secondary: #ce1212;
  --winter-bg: #c0c0c0;

  --font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --header-height: 64px;
  --max-width: 1100px;
  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   Section common
   =========================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ===========================
   Section 1: Header
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-height);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.header-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
}

.header-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  transition: background 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(255, 114, 114, 0.35);
}

/* ===========================
   Section 2: Hero
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  align-items: center;
  gap: 48px;
}

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

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-button img {
  height: 48px;
  transition: box-shadow 0.2s, transform 0.2s;
  border-radius: 8px;
}

.store-button:hover img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.hero-mockups {
  flex: 1;
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  position: absolute;
}

.hero-mockup-back {
  right: 0;
  top: 20px;
  transform: rotate(3deg);
  opacity: 0.85;
}

.hero-mockup-front {
  left: 20px;
  top: 40px;
  z-index: 2;
  transform: rotate(-2deg);
}

/* ---- Phone frame (iPhone style) ---- */
.phone-frame {
  position: relative;
  width: 240px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px #333,
    inset 0 0 0 4px #1a1a1a;
}

.phone-frame::before {
  /* Side button (right) */
  content: "";
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}

.phone-frame::after {
  /* Volume buttons (left) */
  content: "";
  position: absolute;
  left: -3px;
  top: 80px;
  width: 3px;
  height: 28px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #2a2a2a;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Smaller phone frame for feature section */
.phone-frame-sm {
  width: 220px;
}

/* Decorative circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-circle-1 {
  width: 300px;
  height: 300px;
  background: rgba(255, 114, 114, 0.08);
  top: -60px;
  right: -80px;
}

.hero-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(255, 211, 29, 0.1);
  bottom: -40px;
  left: -60px;
}

/* ===========================
   Section 3: 課題提起
   =========================== */
.problems {
  background: var(--bg-surface);
}

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

.problem-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.problem-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}

.problem-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===========================
   Section 4: 機能紹介
   =========================== */
.features {
  background: var(--bg-white);
}

.features .section-inner {
  max-width: 860px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}


.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-image > img {
  max-width: 260px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-image .phone-frame-sm {
  margin: 0 auto;
}

.feature-text {
  flex: 1;
}

.feature-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 2;
}

/* Lockscreen mock */
.lockscreen {
  background: linear-gradient(165deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border-radius: 24px;
  padding: 16px 12px 12px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.lockscreen::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 114, 114, 0.15), transparent 70%);
  border-radius: 50%;
}

.lockscreen-statusbar {
  display: flex;
  justify-content: center;
  padding: 4px 0 20px;
}

.lockscreen-time {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
}

.lockscreen-date {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-bottom: 32px;
}

.lockscreen-notifications {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4px 12px;
}

.notification-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-icon img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-app {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.notification-text {
  font-size: 0.7rem;
  line-height: 1.5;
  color: #fff;
}

.lockscreen-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px 0;
}

.lockscreen-flashlight,
.lockscreen-camera {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lockscreen-homebar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 8px auto 2px;
}

/* ===========================
   Section 5: テーマ紹介
   =========================== */
.themes {
  background: var(--bg-surface);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.theme-card {
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.theme-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.phone-frame-theme {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 12px;
  border-radius: 28px;
  padding: 8px;
}

.theme-screen {
  border-radius: 20px;
  overflow: hidden;
  font-size: 0;
}

/* Statusbar inside theme */
.theme-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px 4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
}

/* Appbar */
.theme-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.theme-appbar-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

.theme-appbar-title {
  font-size: 0.6rem;
}

/* Chips */
.theme-chips {
  display: flex;
  gap: 4px;
  padding: 4px 8px 6px;
}

.theme-chip {
  font-size: 0.4rem;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.theme-chip-active {
  background: rgba(255, 255, 255, 0.25);
  border-color: transparent;
}

/* List items */
.theme-list {
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-list-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 8px;
}

.theme-list-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.theme-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-list-name {
  height: 6px;
  width: 70%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.theme-list-date {
  height: 5px;
  width: 50%;
  border-radius: 3px;
}

/* Spring theme */
.theme-spring .theme-screen {
  background: var(--spring-bg);
}
.theme-spring .theme-appbar {
  background: var(--spring-primary);
}
.theme-spring .theme-statusbar {
  background: var(--spring-primary);
}
.theme-spring .theme-list-date {
  background: var(--spring-primary);
  opacity: 0.5;
}

/* Summer theme */
.theme-summer .theme-screen {
  background: var(--summer-bg);
}
.theme-summer .theme-appbar {
  background: var(--summer-primary);
}
.theme-summer .theme-statusbar {
  background: var(--summer-primary);
}
.theme-summer .theme-list-date {
  background: var(--summer-primary);
  opacity: 0.5;
}

/* Autumn theme */
.theme-autumn .theme-screen {
  background: var(--autumn-bg);
}
.theme-autumn .theme-appbar {
  background: var(--autumn-primary);
}
.theme-autumn .theme-statusbar {
  background: var(--autumn-primary);
}
.theme-autumn .theme-list-date {
  background: var(--autumn-primary);
  opacity: 0.5;
}

/* Winter theme */
.theme-winter .theme-screen {
  background: var(--winter-bg);
}
.theme-winter .theme-appbar {
  background: var(--winter-primary);
}
.theme-winter .theme-statusbar {
  background: var(--winter-primary);
}
.theme-winter .theme-list-date {
  background: var(--winter-secondary);
  opacity: 0.5;
}

.theme-label {
  font-size: 1rem;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

/* ===========================
   Section 6: 料金プラン
   =========================== */
.pricing {
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-white);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
}


.pricing-card-premium {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(255, 114, 114, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 999px;
}

.pricing-plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-annual {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-save {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.pricing-features {
  text-align: left;
  margin-top: auto;
  padding-top: 24px;
}

.pricing-features li {
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li.pricing-limited {
  color: #aaa;
}

.pricing-features li.pricing-limited::before {
  content: "△";
  color: #aaa;
}

.pricing-features li.pricing-disabled {
  color: #ccc;
}

.pricing-features li.pricing-disabled::before {
  content: "—";
  color: #ccc;
}

/* ===========================
   Section 7: CTA
   =========================== */
.cta {
  background: linear-gradient(135deg, #ff7272 0%, #ffd31d 50%, #a8edea 100%);
}

.cta .section-inner {
  text-align: center;
  padding: 64px 24px;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta .store-button img {
  height: 56px;
}

/* ===========================
   Section 8: Footer
   =========================== */
.footer {
  background: var(--text-primary);
  color: #ccc;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #aaa;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.footer-domain {
  font-size: 0.8rem;
  color: #888;
}

/* ===========================
   Responsive: Tablet (640px - 1024px)
   =========================== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }

  .hero-text {
    order: 1;
  }

  .hero-mockups {
    order: 2;
    min-height: 340px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-mockup .phone-frame {
    width: 200px;
    border-radius: 30px;
    padding: 10px;
  }

  .hero-mockup .phone-frame img {
    border-radius: 20px;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

}

/* ===========================
   Responsive: Mobile (< 640px)
   =========================== */
@media (max-width: 640px) {
  .section-inner {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  .header-cta {
    display: none;
  }

  .hero-inner {
    padding: 40px 16px;
  }

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

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-mockups {
    min-height: 280px;
  }

  .hero-mockup .phone-frame {
    width: 160px;
    border-radius: 24px;
    padding: 8px;
  }

  .hero-mockup .phone-frame img {
    border-radius: 16px;
  }

  .hero-mockup-front {
    left: 10px;
  }

  .phone-frame-sm {
    width: 180px;
    border-radius: 28px;
    padding: 9px;
  }

  .phone-frame-sm img {
    border-radius: 18px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-row,
  .feature-row-reverse {
    gap: 24px;
    margin-bottom: 56px;
  }

  .feature-heading {
    font-size: 1.25rem;
  }

  .feature-description {
    font-size: 0.85rem;
  }

  .feature-image > img {
    max-width: 200px;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .phone-frame-theme {
    max-width: 140px;
    border-radius: 22px;
    padding: 6px;
  }

  .phone-frame-theme .theme-screen {
    border-radius: 16px;
  }

  .lockscreen {
    min-height: 300px;
    padding: 12px 10px 10px;
  }

  .lockscreen-time {
    font-size: 2.2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ===========================
   Scroll reveal animation
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-children.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-children.is-visible > *:nth-child(4) { transition-delay: 0.45s; }

.reveal-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
