/* =========================================================
   style.css — テンプレートの土台。design/spec.md に合わせて調整する。
   モバイルファースト。色やフォントは仕様に差し替える。
   ========================================================= */

:root {
  --color-primary: #2563eb;
  --color-text: #1f2937;
  --color-bg: #ffffff;
  --color-muted: #6b7280;
  --max-width: 1100px;
  --space: 1rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

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

/* ボタン */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.85em 1.8em;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

/* ヘッダー */
.site-header { border-bottom: 1px solid #eee; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.logo { font-weight: 700; text-decoration: none; color: var(--color-text); }
.nav a { margin-left: 1.2rem; text-decoration: none; color: var(--color-text); }

/* ヒーロー */
.hero { padding-block: 4rem; text-align: center; }
.hero-title { font-size: 2rem; line-height: 1.3; margin-bottom: 1rem; }
.hero-lead { color: var(--color-muted); margin-bottom: 2rem; }

/* セクション共通 */
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 2rem; }
section { padding-block: 3rem; }

/* 特徴 */
.feature-grid { display: grid; gap: 1.5rem; }
.feature-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
}
.feature-card h3 { margin-bottom: 0.5rem; }

/* フォーム */
#contact-form { max-width: 560px; margin-inline: auto; display: grid; gap: 1.2rem; }
#contact-form label { display: grid; gap: 0.4rem; font-size: 0.95rem; }
#contact-form input,
#contact-form textarea {
  font: inherit;
  padding: 0.7em;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  width: 100%;
}

/* フッター */
.site-footer {
  border-top: 1px solid #eee;
  text-align: center;
  padding-block: 2rem;
  color: var(--color-muted);
}

/* ===== タブレット以上 ===== */
@media (min-width: 768px) {
  .hero-title { font-size: 2.6rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
