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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
    'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  padding: 100px 0 120px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 122, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.app-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.hero-copy {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #475569;
  line-height: 1.8;
}

/* App Store ボタン */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  margin-top: 8px;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.btn-store:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-store:active {
  transform: translateY(0);
  opacity: 0.75;
}

.store-icon {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

.store-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.store-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ===== Section common ===== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: #0f172a;
}

.section-sub {
  text-align: center;
  color: #64748b;
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.75;
}

/* ===== Screenshots ===== */
.screenshots {
  padding: 100px 0;
  background: #f9fafb;
}

.screenshots-track {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.screenshot-frame {
  width: 200px;
  height: 430px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.09);
  flex-shrink: 0;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像が読み込めない場合のプレースホルダー */
.screenshot-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}

.screenshot-frame.placeholder::after {
  content: '📱';
  font-size: 48px;
  opacity: 0.4;
}

.screenshots-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0;
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.15s;
}

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

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

/* ===== Lightbox ===== */
.screenshot-frame {
  cursor: zoom-in;
}

.screenshot-frame:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
  transform: translateY(-4px) scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(320px, 85vw);
  max-height: 85vh;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
  object-fit: contain;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ===== Legal Pages ===== */
.legal-header {
  background: #0f172a;
  padding: 20px 0;
}

.legal-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.legal-brand:hover {
  opacity: 0.8;
}

.legal-main {
  padding: 72px 0 96px;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 680px;
  margin-inline: auto;
}

.legal-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-content h3 {
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 4px;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #1d4ed8;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero {
    padding: 72px 0 88px;
  }

  .features {
    padding: 72px 0;
  }

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

  .screenshots {
    padding: 72px 0;
  }

  .screenshot-frame {
    width: 160px;
    height: 345px;
  }
}
