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

:root {
  --color-primary: #007AFF;
  --color-primary-dark: #0055D4;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f7;
  --color-border: #d2d2d7;
  --color-ios: #000000;
  --color-android: #01875f;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.14);
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}
.site-title:hover { text-decoration: none; }

.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500; }
.site-header nav a:hover { color: var(--color-primary); text-decoration: none; }

/* Main */
.site-main { padding: 48px 0 80px; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Button */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Section titles */
.featured-apps h2, .page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
}
.page-header { margin-bottom: 40px; }
.page-header p { color: var(--color-text-secondary); margin-top: 8px; }

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* App Card */
.app-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.app-icon-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.app-card h3 { font-size: 1.1rem; font-weight: 700; }
.app-card h3 a { color: var(--color-text); }
.app-card h3 a:hover { color: var(--color-primary); text-decoration: none; }
.app-card p { color: var(--color-text-secondary); font-size: 0.9rem; flex: 1; }

/* Badges */
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: opacity .2s;
}
.badge:hover { opacity: .8; text-decoration: none; }

.badge-ios {
  background: var(--color-ios);
  color: #fff;
}
.badge-android {
  background: var(--color-android);
  color: #fff;
}

/* App Detail */
.app-detail-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  flex-shrink: 0;
  font-size: 3rem;
}

.app-detail-info h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.app-description { color: var(--color-text-secondary); margin-bottom: 12px; }
.app-meta { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 4px; }
.app-detail-info .app-badges { margin-top: 16px; }
.app-detail-info .badge { padding: 10px 22px; font-size: 0.9rem; }

/* Screenshots */
.screenshots { margin-bottom: 40px; }
.screenshots h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.screenshot-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.screenshot {
  height: 400px;
  width: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

/* App Content */
.app-content { max-width: 720px; }
.app-content h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.app-content p { margin-bottom: 16px; color: var(--color-text-secondary); }
.app-content ul { padding-left: 24px; margin-bottom: 16px; }
.app-content li { margin-bottom: 8px; color: var(--color-text-secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 0.8rem; }
  .hero { padding: 48px 0 40px; }
  .app-detail-header { flex-direction: column; }
  .screenshot { height: 280px; }
}
