/* ===================================
   CSS Variables
   =================================== */
:root {
  --color-bg-white: #FFFFFF;
  --color-bg-alice: #F0F8FF;
  --color-bg-lavender: #F3EEFF;
  --color-bg-mint: #EDFFF5;
  --color-text: #333333;
  --color-heading: #6C4AB6;
  --color-cta-start: #FF6B9D;
  --color-cta-end: #FF8E53;
  --color-footer: #1A1A2E;
  --font-main: 'Satsuyako', 'Hiragino Maru Gothic Pro', 'Rounded Mplus 1c', sans-serif;
  --section-padding: 80px 24px;
  --max-width: 1080px;
}

/* ===================================
   Font Face
   =================================== */
@font-face {
  font-family: 'Satsuyako';
  src: url('assets/fonts/Satsuyako.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

/* ===================================
   Layout
   =================================== */
.section {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===================================
   Parallax Background Stars
   =================================== */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  pointer-events: none;
}

.star--sparkle {
  width: 24px;
  opacity: 0.2;
  animation: twinkle 3s ease-in-out infinite;
}

.star--flower {
  width: 30px;
  opacity: 0.2;
  animation: spin-slow 12s linear infinite;
}

.star--dot {
  width: 10px;
  opacity: 0.25;
  animation: twinkle 2.5s ease-in-out infinite;
}

.star--large {
  width: 28px;
  opacity: 0.1;
  animation: float-star 6s ease-in-out infinite;
}

.star--medium {
  width: 20px;
  opacity: 0.15;
  animation: float-star 5s ease-in-out infinite reverse;
}

.star--planet {
  width: 50px;
  opacity: 0.12;
  animation: float-star 8s ease-in-out infinite;
}

.parallax-bg .star:nth-child(2) { animation-delay: -1s; }
.parallax-bg .star:nth-child(3) { animation-delay: -2s; }
.parallax-bg .star:nth-child(4) { animation-delay: -0.5s; }
.parallax-bg .star:nth-child(5) { animation-delay: -3s; }
.parallax-bg .star:nth-child(6) { animation-delay: -1.5s; }

/* ===================================
   Hero Section
   =================================== */
.hero {
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-alice) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__app-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.hero__title {
  font-size: 3rem;
  color: var(--color-heading);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero__description {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #555;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__chara {
  max-width: 350px;
  animation: float 4s ease-in-out infinite;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: var(--font-main);
  font-weight: normal;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-cta-start), var(--color-cta-end));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* ===================================
   Feature Sections
   =================================== */
.feature--lavender {
  background-color: var(--color-bg-lavender);
}

.feature--white {
  background-color: var(--color-bg-white);
}

.feature--mint {
  background-color: var(--color-bg-mint);
}

.feature__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature__content--reverse {
  direction: rtl;
}

.feature__content--reverse > * {
  direction: ltr;
}

.feature__title {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 20px;
  line-height: 1.5;
}

.feature__description {
  font-size: 1.05rem;
  line-height: 2;
  color: #555;
}

.phone-frame {
  width: 260px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-frame__notch {
  display: none;
}

.phone-frame__screen {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9 / 19.5;
}

.phone-frame__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
   Marker Showcase
   =================================== */
.feature__markers {
  display: flex;
  justify-content: center;
  align-items: center;
}

.marker-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.marker-showcase--trio {
  grid-template-columns: repeat(3, 1fr);
  max-width: 360px;
}

.marker-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.marker-showcase__item:hover {
  transform: translateY(-4px);
}

.marker-showcase__icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.marker-showcase__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.marker-showcase__name {
  font-size: 0.85rem;
  color: #666;
}

/* ===================================
   Marker Section Divider
   =================================== */
.marker-divider {
  width: 70%;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-alice) 100%);
  text-align: center;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__chara {
  max-width: 180px;
  margin-bottom: 24px;
  animation: float 3.5s ease-in-out infinite;
}

.cta__title {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.cta__description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
}

.cta__buttons {
  margin-bottom: 32px;
}

.cta__badge-img {
  height: 64px;
  transition: transform 0.2s;
}

.cta__badge-img:hover {
  transform: scale(1.05);
}

.cta__qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta__qr-svg {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 2px solid #eee;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.85rem;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

/* ===================================
   Scroll Cart
   =================================== */
.scroll-cart {
  position: fixed;
  top: 55%;
  left: 0;
  height: 100px;
  width: auto;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform: translateX(100vw);
  opacity: 0.3;
}

/* ===================================
   Animations
   =================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.15); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-star {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

/* ===================================
   Legal Pages (Privacy Policy / Terms)
   =================================== */
.legal-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid #eee;
  padding: 16px 24px;
}

.legal-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--color-heading);
}

.legal-header__logo img {
  border-radius: 10px;
}

.legal-page {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', sans-serif;
}

.legal {
  background: var(--color-bg-white);
  padding: 60px 24px 80px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 14px 32px;
  background: var(--color-heading);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s, transform 0.3s;
}

.legal__back:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.legal__back::before {
  content: '←';
  font-size: 1.1rem;
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__title {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 32px;
}

.legal__intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 2;
}

.legal__section {
  margin-bottom: 36px;
}

.legal__section h2 {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-lavender);
}

.legal__section h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal__section p {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
  margin-bottom: 8px;
}

.legal__section ul {
  padding-left: 1.5em;
  margin-bottom: 8px;
}

.legal__section li {
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
}

.legal__contact a {
  color: var(--color-heading);
  text-decoration: underline;
}

.legal__contact a:hover {
  opacity: 0.7;
}

/* ===================================
   Contact Form (Support page)
   =================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 15px;
  color: var(--color-heading);
  font-weight: 600;
}

.contact-form__required {
  color: #E53935;
  font-size: 13px;
}

.contact-form__optional {
  color: #888;
  font-size: 13px;
  font-weight: normal;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid #D5CFE6;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-heading);
  box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form__submit {
  margin-top: 8px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--color-cta-start), var(--color-cta-end));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  align-self: center;
  min-width: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 157, 0.3);
}

/* ===================================
   Responsive (Mobile First)
   =================================== */
@media (max-width: 767px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__chara {
    max-width: 250px;
  }

  .hero__app-icon {
    display: flex;
    justify-content: center;
  }

  .feature__content,
  .feature__content--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
  }

  .feature__title {
    font-size: 1.6rem;
  }

  .phone-frame {
    width: 220px;
  }

  .marker-showcase {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
  }

  .marker-showcase--trio {
    grid-template-columns: repeat(3, 1fr);
    max-width: 260px;
  }

  .marker-showcase__icon {
    width: 36px;
    height: 36px;
  }

  .marker-showcase__icon-wrap {
    width: 72px;
    height: 72px;
  }

  .marker-showcase__name {
    font-size: 0.75rem;
  }

  .cta__title {
    font-size: 1.6rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
