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

:root {
  --color-primary: #FFDD00;
  --color-primary-dark: #E5C700;
  --color-primary-text: #8B7500;
  --color-primary-light: #FFFDE6;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f8f8f8;
  --color-border: #e0e0e0;
  --max-width: 800px;
  --nav-height: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--color-primary-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-primary-text);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #FFE94A 100%);
  color: var(--color-text);
  text-align: center;
  padding: 60px 20px 50px;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.store-badge {
  display: inline-block;
  transition: transform 0.15s, opacity 0.15s;
}

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

.store-badge img {
  width: auto;
  display: block;
}

.store-badge--appstore img,
.store-badge--googleplay img {
  height: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white {
  background: #fff;
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.btn-dark {
  background: var(--color-text);
  color: #fff;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

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

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* CTA */
.cta {
  background: var(--color-bg-gray);
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cta p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

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

/* ===== Page content (terms, privacy, support) ===== */
.page-header {
  background: var(--color-primary-light);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.page-header p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 8px;
}

.page-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.page-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-body p,
.page-body li {
  margin-bottom: 8px;
  color: var(--color-text);
}

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

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--color-bg);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.6;
}

.faq-question:hover {
  background: var(--color-bg-gray);
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-primary-text);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Contact box */
.contact-box {
  background: var(--color-primary-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 32px;
}

.contact-box h2 {
  border: none;
  margin-top: 0;
  padding-bottom: 0;
  text-align: center;
}

.contact-box p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* Troubleshooting */
.troubleshoot-item {
  background: var(--color-bg-gray);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}

.troubleshoot-item h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.footer-brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ccc;
  font-size: 0.875rem;
}

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

/* ===== Utility ===== */
.last-updated {
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: right;
  margin-top: 40px;
}
