/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-bg-subtle: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-border: #E5E7EB;

  --font-sans-en: 'DM Sans', sans-serif;
  --font-sans-ja: 'Noto Sans JP', 'DM Sans', sans-serif;

  --content-max-width: 720px;
  --header-height: 64px;
}

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

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Language-specific font */
html[lang="ja"] body {
  font-family: var(--font-sans-ja);
  letter-spacing: 0.05em;
}

html[lang="en"] body {
  font-family: var(--font-sans-en);
  letter-spacing: 0.02em;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5em;
}

/* ==========================================================================
   Page Fade-in
   ========================================================================== */

.page-fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--color-text);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.lang-link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.lang-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.lang-link.lang-active {
  color: var(--color-accent);
}

.lang-sep {
  color: var(--color-text-muted);
  user-select: none;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-links span {
  color: var(--color-text-muted);
  user-select: none;
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  padding: 80px 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-sans-en);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  font-weight: 300;
}

/* ==========================================================================
   Apps Section
   ========================================================================== */

.apps-section {
  padding-bottom: 80px;
  text-align: center;
}

.apps-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.coming-soon {
  padding: 48px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
  padding-bottom: 120px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.about-section p {
  color: var(--color-text);
  line-height: 1.75;
}

/* ==========================================================================
   Legal Content (Privacy Policy / Terms)
   ========================================================================== */

.legal-content {
  padding: 80px 0 120px;
}

.legal-content h1 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 4px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-content {
  padding: 80px 0 120px;
}

.contact-content h1 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 16px;
}

.contact-content p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.contact-email {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 400;
}

.contact-email:hover {
  color: var(--color-accent-hover);
}

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

@media (max-width: 768px) {
  .hero-inner {
    padding: 60px 0;
  }

  .about-section {
    padding-bottom: 80px;
  }

  .legal-content {
    padding: 60px 0 80px;
  }

  .contact-content {
    padding: 60px 0 80px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 48px 0;
  }

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

  .footer-links {
    font-size: 0.8rem;
  }

  .legal-content h1,
  .contact-content h1 {
    font-size: 1.5rem;
  }
}
