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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.4;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

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

.btn-secondary:hover {
  background: #0f172a;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

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

.logo-app {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Apps */
.apps {
  padding: 100px 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.app-card.coming-soon {
  opacity: 0.75;
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.app-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: cover;
}

.app-video {
  width: 100%;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
}

.app-video iframe {
  border-radius: 8px;
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.app-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.app-status.available {
  background: #d1fae5;
  color: #065f46;
}

.app-status.upcoming {
  background: #fef3c7;
  color: #92400e;
}

.app-description {
  color: var(--text-light);
  margin-bottom: 16px;
}

.app-features {
  list-style: none;
  margin-bottom: 24px;
}

.app-features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
}

.app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 32px;
}

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

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

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

/* About */
.about {
  padding: 100px 0;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid var(--border);
}

.about-table th,
.about-table td {
  padding: 16px;
  text-align: left;
}

.about-table th {
  width: 120px;
  color: var(--text-light);
  font-weight: 500;
}

/* Contact */
.contact {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-alt);
}

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

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.footer-nav a {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.copyright {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-page section {
  margin-bottom: 40px;
}

.legal-page section h2 {
  font-size: 1.25rem;
  text-align: left;
  margin-bottom: 16px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  h2 {
    font-size: 1.5rem;
  }

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

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
