/* ベース */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666;
  --accent: #1f6feb; /* GitHub風ブルー */
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  line-height: 1.9; /* わずかに行間を拡張 */
}

/* レイアウト */
.container {
  width: min(100%, 960px);
  margin-inline: auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.site-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  margin-left: 16px;
  padding: 8px 12px;
  border-radius: 10px;
}
.site-nav a:hover {
  background: #f4f6f8;
}
.site-nav a.cta {
  background: var(--accent);
  color: #fff;
}
.site-nav a.cta:hover {
  filter: brightness(0.95);
}

.main {
  padding-block: 32px 64px;
}

.section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 28px);
  margin-bottom: 28px;
}
.section h2 {
  margin-top: 0;
  font-size: clamp(20px, 2.2vw, 26px);
}

/* ヒーロー */
.hero {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(135deg, #6d5dfc, #46c6ff);
  color: #fff;
}
.hero__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 48px);
}
.hero__subtitle {
  margin: 0 0 32px;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__button--primary {
  background: #ff5851;
}
.hero__button--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* サービスカード */
.services__list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}
.services__item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.services__title {
  margin-top: 0;
}

/* お問い合わせ */
.contact__methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact__link {
  text-decoration: none;
  color: var(--fg);
  background: #f4f6f8;
  padding: 12px 18px;
  border-radius: 8px;
}
.contact__link:hover {
  background: #e8eaed;
}

/* ボタン */
.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}
.button:hover {
  filter: brightness(0.95);
}

/* フッター */
.site-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
  padding: 24px 0;
  color: var(--muted);
}

/* 小さめ画面でナビを折返し */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 20px;
  }
  .site-nav a {
    margin-left: 0;
    margin-right: 8px;
  }
  /* モバイルで本文をやや大きく・行間を少し広く */
  body {
    font-size: 17px;
    line-height: 1.95;
  }
}
