/* サイト共通の見た目（白とグレーを基調にしたシンプルなデザイン） */
:root {
  --bg: #f5f5f4; --surface: #ffffff; --text: #262626; --muted: #737373;
  --line: #e5e5e5; --accent: #262626; --link: #1d4ed8; --soft: #fafaf9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.85;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.mark { width: 32px; height: 32px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* 本文 */
.main { padding-top: 28px; padding-bottom: 48px; }
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 24px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(22px, 4.6vw, 32px); line-height: 1.4; margin: 0 0 10px; }
.hero p { margin: 0; color: var(--muted); }
h2.sec { font-size: 18px; margin: 32px 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #a3a3a3; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card strong { font-size: 16px; line-height: 1.5; color: var(--text); }
.card span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.card .card-meta { font-size: 12px; }
.card.app { flex-direction: row; align-items: flex-start; gap: 14px; }
.card.app > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.app-mark { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--accent); color: #fff !important; display: grid; place-items: center; font-size: 20px !important; font-weight: 700; }

/* 記事 */
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 20px; }
@media (min-width: 640px) { .prose { padding: 40px 48px; } }
.prose h1 { font-size: clamp(21px, 4.2vw, 28px); line-height: 1.45; margin: 0 0 6px; }
.prose .meta { font-size: 12px; color: var(--muted); margin: 0 0 24px; }
.prose h2 { font-size: 19px; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose .lead { font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 420px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 700; }
.point { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.point p { margin: 0; }
.note { font-size: 13px; color: var(--muted); }
.sources { font-size: 13px; color: var(--muted); margin-top: 32px; }
.cta { margin-top: 36px; padding: 20px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); text-align: center; }
.cta p { margin: 0 0 12px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.btn:hover { opacity: .9; }

/* フッター */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); padding: 24px 0; }
.site-footer p { margin: 4px 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-nav a { color: var(--text); text-decoration: none; font-size: 13px; }
.foot-nav a:hover { text-decoration: underline; }
