/* つくる人の覚え書き 新デザインページの共通スタイル（ヘッダー・フッターは nav.css） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f2f0ed;
  --surface:     #ffffff;
  --border:      #e3e0db;
  --border2:     #d0ccc6;
  --text:        #252220;
  --text-muted:  #7a746e;
  --accent:      #607060;
  --accent-pale: #e8ede8;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  padding: 24px 24px 48px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

a { color: var(--accent); }

/* ── 見出し ── */
.section-label, .box .section-label {
  font-size: 11px; line-height: 1.8; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.section-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.section-lead { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }

/* ── 白い枠 ── */
.box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
}
.box h2 { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.box p, .box li { font-size: 16px; line-height: 1.9; }
.box p { margin-bottom: 14px; }
.box p:last-child { margin-bottom: 0; }
.box ul { padding-left: 1.4em; margin-bottom: 14px; }

/* ── カード ── */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.card:hover { border-color: var(--accent); background: var(--accent-pale); }
.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-pale); border: 1px solid #c8d4c8;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 2px; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.card-arrow { font-size: 16px; color: var(--border2); flex-shrink: 0; margin-top: 2px; }
.card:hover .card-arrow { color: var(--accent); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.8;
  color: var(--accent); background: var(--accent-pale);
  border-radius: 4px; padding: 0 8px; margin-bottom: 4px;
}
.badge.log { color: var(--text-muted); background: #efedea; }

.more-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; padding: 12px 28px;
  border-radius: 8px; text-decoration: none;
}
.btn:hover { opacity: 0.9; }

/* ── スマホ ── */
@media (max-width: 600px) {
  body { padding: 16px 16px 40px; }
  .container { gap: 44px; }
  .box { padding: 22px 18px; }
  .card { padding: 16px; gap: 12px; }
  .section-title { font-size: 19px; }
}
