/* 共通部分 */
:root {
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-sub: #6b7280;
  --accent: #2563eb;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

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

/* アプリ一覧のカード化 */
.hero {
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-sub);
}

.app-card {
  display: flex;
  gap: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.app-card img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
}

.app-info h2 {
  margin: 0 0 8px;
}

.app-info p {
  color: var(--text-sub);
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
}

/* 詳細ページ用 */
.app-detail {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}

.app-detail img {
  width: 140px;
  border-radius: 16px;
}

.app-detail h1 {
  margin-top: 16px;
}

.lead {
  color: var(--text-sub);
  font-size: 1.05rem;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.screenshots img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.screenshots img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-card img {
    width: 100px;
    height: 100px;
  }
}