/* ===== ベース ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #bfdbfe55 0, transparent 55%),
    radial-gradient(circle at 100% 0%, #fef3c755 0, transparent 55%),
    radial-gradient(circle at 50% 100%, #a5f3fc55 0, transparent 60%),
    var(--bg);
  color: var(--text-main);
}

/* ===== ページレイアウト ===== */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== ヒーロー ===== */
.hero {
  text-align: center;
  padding: 8px 8px 4px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
}

.hero-highlight {
  color: var(--accent);
}

.hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===== アップロードカード ===== */
.upload {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-radius: 26px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border-radius: 22px;
  border: 2px dashed rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.1s ease;
  text-align: center;
}

.upload-area:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 26px;
  color: var(--accent);
}

.upload-main-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-sub-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* inputは隠す */
.upload-input {
  display: none;
}

/* ===== 広告枠 ===== */
.ad-slot {
  margin-top: 16px;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 処理結果 ===== */
.results {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 20px 18px 24px;
  border: 1px solid rgba(209, 213, 219, 0.7);
  box-shadow: var(--shadow-card);
}

.results h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tool-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

/* プレビュー */
.preview {
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  min-height: 160px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* ダウンロードボタン */
.download-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

/* ===== 特長カード ===== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(209, 213, 219, 0.7);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.25);
}

.feature-emoji {
  font-size: 50px;
  height: 66px;
  margin: 0 auto 4px auto;
  text-align: center;
}

.feature-card h3 {
  margin: 0 auto 8px auto;
  font-size: 20px;
  text-align: center;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 下部情報 ===== */
.info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(209, 213, 219, 0.7);
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.3);
}

.info h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

/* ===== フッター ===== */
footer {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== レスポンシブ ===== */
@media (min-width: 768px) {
  .page {
    padding: 40px 24px 48px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}