/* なんでもDX — 共通スタイル */
:root {
  --bg: #fff9f0;
  --card: #fff;
  --ink: #3d2f25;
  --sub: #8a7566;
  --line: #f0e2cf;
  --acc: #f26b4e;
  --acc-d: #d9512f;
  --yellow: #ffd84d;
  --soft: #fff1df;
  --radius: 18px;
  --shadow: 0 4px 0 rgba(61, 47, 37, 0.12);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--bg); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--acc); color: #fff; font-size: 15px; font-weight: 900; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.logo small { display: block; font-size: 11px; font-weight: 700; color: var(--sub); letter-spacing: 0.04em; line-height: 1.2; }
.header-links { display: flex; align-items: center; gap: 8px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); font-family: inherit; font-weight: 900; font-size: 15px;
  text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--acc); color: #fff; }
.btn-yt { background: #fff; }
.btn-yt::before { content: "▶"; display: grid; place-items: center; width: 22px; height: 16px; border-radius: 5px; background: #e62117; color: #fff; font-size: 9px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- トップ：ヒーロー ---------- */
.hero { padding: 52px 0 36px; text-align: center; }
.hero-badge { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font-size: 13px; font-weight: 900; text-decoration: none; }
a.hero-badge:hover { background: #ffe680; }
.hero h1 { margin-top: 18px; font-size: clamp(30px, 6vw, 52px); font-weight: 900; line-height: 1.35; letter-spacing: 0.02em; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero-lead { margin: 16px auto 0; max-width: 640px; color: var(--sub); font-size: 16px; font-weight: 700; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- トップ：絞り込み ---------- */
.finder { padding: 8px 0 20px; }
.finder-box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); }
.search:focus-within { border-color: var(--acc); }
.search span { font-size: 18px; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips-label { flex: 0 0 100%; font-size: 12px; font-weight: 900; color: var(--sub); letter-spacing: 0.06em; }
.chip { padding: 7px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { margin: 22px 0 14px; font-size: 14px; font-weight: 900; color: var(--sub); }
.result-count b { color: var(--ink); font-size: 20px; margin-right: 2px; }

/* ---------- ツールカード ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 64px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 rgba(61, 47, 37, 0.14); }
.card[hidden] { display: none; }
.card-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--soft); border-bottom: 2px solid var(--ink); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-thumb .emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 900; color: var(--acc-d); }
.tag-type { background: var(--ink); color: #fff; }
.tag-new { background: var(--yellow); color: var(--ink); }
.card h3 { font-size: 20px; font-weight: 900; line-height: 1.4; }
.card p { font-size: 14px; color: var(--sub); font-weight: 700; line-height: 1.7; }
.card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 900; color: var(--acc-d); }
.empty { display: none; padding: 40px 20px 80px; text-align: center; color: var(--sub); font-weight: 700; }
.empty.show { display: block; }

/* ---------- 共通セクション ---------- */
.band { background: var(--soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 52px 0; }
.band h2, .sec h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.5; }
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.about p { margin-top: 12px; font-weight: 700; color: var(--sub); }
.about-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; }
.about-box p { margin: 0 0 14px; color: var(--ink); font-weight: 900; }

/* ---------- 紹介ページ ---------- */
.crumb { padding: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--sub); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.tool-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 28px 0 48px; }
.tool-hero h1 { margin-top: 12px; font-size: clamp(30px, 5vw, 46px); font-weight: 900; line-height: 1.35; }
.tool-catch { margin-top: 10px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 900; color: var(--acc-d); line-height: 1.6; }
.tool-desc { margin-top: 14px; font-weight: 700; color: var(--sub); }
.tool-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.tool-free { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--sub); }
.tool-shot { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; background: #fff; }
.tool-shot .emoji { display: grid; place-items: center; aspect-ratio: 16 / 10; font-size: 96px; }
.sec { padding: 48px 0; }
.sec + .sec { border-top: 2px dashed var(--line); }
.sec h2 { margin-bottom: 22px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.point b { display: block; font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.point span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; }
.point p { font-size: 14.5px; font-weight: 700; color: var(--sub); }
.video { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #000; max-width: 860px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steps { counter-reset: step; display: grid; gap: 12px; max-width: 860px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: #fff; border: 2px solid var(--line); border-radius: 14px; font-weight: 700; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 900; }
.checks { display: grid; gap: 10px; max-width: 860px; }
.checks li { position: relative; padding-left: 30px; font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 11px; font-weight: 900; }
.notes { max-width: 860px; padding: 20px 22px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.notes li { position: relative; padding-left: 18px; font-size: 14.5px; font-weight: 700; color: var(--sub); }
.notes li + li { margin-top: 8px; }
.notes li::before { content: "・"; position: absolute; left: 0; }
.tool-cta { text-align: center; padding: 56px 0; }
.tool-cta p { margin-bottom: 18px; font-size: clamp(20px, 3vw, 26px); font-weight: 900; }
.related .grid { padding-bottom: 0; }

/* ---------- フッター ---------- */
.biz { background: var(--ink); color: #fff; padding: 48px 0; text-align: center; }
.biz h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; }
.biz p { margin: 10px auto 20px; max-width: 620px; font-weight: 700; opacity: 0.85; }
.biz .btn { border-color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.site-footer { padding: 28px 0 40px; text-align: center; font-size: 13px; font-weight: 700; color: var(--sub); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tool-hero { grid-template-columns: 1fr; gap: 26px; padding-bottom: 36px; }
  .points { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .logo small { display: none; }
  .hero { padding: 36px 0 28px; }
  .sec { padding: 36px 0; }
  .tool-actions .btn { width: 100%; }
  .header-links .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}
