:root {
  --bg: #eef6f2;
  --panel: #ffffff;
  --ink: #14241d;
  --muted: #5f7269;
  --line: #d8ebe2;
  --brand: #0ea674;
  --brand-dark: #07825a;
  --brand-2: #14b8a6;
  --accent: #f59e0b;
  --accent-dark: #d97f06;
  --good: #0ea674;
  --grad: linear-gradient(135deg, #0ea674 0%, #14b8a6 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --shadow: 0 12px 34px rgba(7, 70, 50, 0.12);
  --shadow-sm: 0 2px 10px rgba(7, 70, 50, 0.07);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--brand-dark);
}

/* ---- 広告開示バー（ステマ規制対応） ---- */
.ad-disclosure {
  background: #e3f1ec;
  color: #4d6a5f;
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 75% at 82% 4%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(50% 70% at 2% 100%, rgba(245, 158, 11, 0.32), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.logo {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
.tagline {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.6;
}
.tagline strong {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 9px;
  border-radius: 8px;
}
.catch {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.trust {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}
.trust span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---- カテゴリ目次（チップ） ---- */
.toc {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 22px 0 0;
}
.toc a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}
.toc a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---- Main ---- */
main {
  padding: 36px 20px 56px;
}

.cat {
  margin-bottom: 40px;
  scroll-margin-top: 16px;
}
.cat-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--grad);
}

/* ---- 早見表（2軸マップ） ---- */
.map-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 18px;
  margin-bottom: 40px;
}
.map-panel .cat-title {
  margin-bottom: 8px;
}
.map-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.map-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.map-legend .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.map-legend .dot.own {
  background: var(--accent);
  margin-left: 8px;
}
.map-legend .dot.ext {
  background: var(--brand);
  margin-left: 14px;
}
.map {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.map svg {
  display: block;
  width: 100%;
  min-width: 600px; /* 狭い画面では縮みすぎないよう最小幅を確保し横スクロール */
  height: auto;
}
.map-hint {
  display: none;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .map-hint {
    display: block;
  }
}

/* ---- 比較表（まとめ表） ---- */
.cmp-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 18px;
  margin-bottom: 40px;
}
.cmp-panel .cat-title {
  margin-bottom: 8px;
}
.cmp-legend {
  margin-left: 8px;
  white-space: nowrap;
}
.cmp-star {
  color: var(--accent);
  font-weight: 800;
}
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 14px;
}
table.cmp th,
table.cmp td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.cmp thead th {
  background: #f1f7f4;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
table.cmp tbody tr.feat {
  background: #fff8ea;
}
table.cmp .c-name a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
table.cmp .c-name a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}
table.cmp .cmp-pr {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  background: #eaf2ee;
  border-radius: 5px;
  padding: 1px 5px;
}
table.cmp .c-tag {
  color: #3a4257;
  min-width: 220px;
}
table.cmp .c-badge {
  color: var(--muted);
  font-size: 12.5px;
  min-width: 140px;
}
table.cmp .c-cta a {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 8px;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
}
table.cmp tbody tr.feat .c-cta a {
  background: var(--grad-amber);
}

/* ---- ツールカードのグリッド ---- */
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s, box-shadow 0.18s, border-color 0.18s;
}
.tool:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d7dcf0;
}

/* 「おすすめ」カード（自社＋編集部おすすめ）はクリーム色の特集デザインで強調 */
.tool.owned,
.tool.rec {
  border: 1.5px solid #f7d489;
  background: linear-gradient(180deg, #fff8ea 0%, #ffffff 58%);
}

.tool-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.tool-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e3f1ec;
  color: var(--brand);
}
.tool-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.tool.owned .tool-icon,
.tool.rec .tool-icon {
  background: #fdecc8;
  color: var(--accent-dark);
}
.tool-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.tool-tags {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.tag-pr {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #eaf2ee;
  border-radius: 5px;
  padding: 2px 6px;
}
.tag-own {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad-amber);
  border-radius: 5px;
  padding: 2px 7px;
}
.tag-rec {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad-amber);
  border-radius: 5px;
  padding: 2px 7px;
}

.tool-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 8px;
}
.tool-desc {
  font-size: 13.5px;
  color: #3a4257;
  margin: 0 0 14px;
  flex: 1;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #e3f1ec;
  border-radius: 999px;
  padding: 3px 10px;
}

.tool-cta {
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 10px;
  padding: 9px 16px;
}
.tool.owned .tool-cta,
.tool.rec .tool-cta {
  background: var(--grad-amber);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32);
}

/* ---- フッター ---- */
.footer {
  background: #161b2e;
  color: #c7cdda;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}
.footer .tiny {
  font-size: 12px;
  opacity: 0.7;
  margin: 6px 0 0;
}
.footer-cross {
  margin: 0 0 16px;
  font-size: 15px;
}
.footer-cross a {
  color: #fff;
}
.footer-nav {
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #aeb6c8;
  text-decoration: none;
  font-size: 13px;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.updated {
  font-size: 12px;
  opacity: 0.7;
  margin: 4px 0 0;
}

/* ---- ドキュメントページ（about / privacy / faq） ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.doc .home-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.doc .home-link:hover {
  text-decoration: underline;
}
.doc h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.doc .lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.doc h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
.doc p,
.doc li {
  font-size: 15px;
  color: #2a3140;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}
.doc .cta {
  margin: 22px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eef8f3 0%, #fff6e6 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.doc .cta p {
  margin: 0 0 10px;
  font-weight: 600;
}
.doc .cta a {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
}
.doc .cta a.amber {
  background: var(--grad-amber);
}
/* お問い合わせフォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fcfdff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  line-height: 1.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 166, 116, 0.15);
  background: #fff;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn-send {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 166, 116, 0.3);
  transition: filter 0.15s, transform 0.08s;
}
.btn-send:hover {
  filter: brightness(1.05);
}
.btn-send:active {
  transform: translateY(1px);
}
.form-msg {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 16px;
}
.form-msg.ok {
  background: #e3f1ec;
  color: #1f6b4f;
  border: 1px solid #b8e0cf;
}
.form-msg.ng {
  background: #fdf2f1;
  color: #b4314f;
  border: 1px solid #f3c9c9;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
}

/* コラム一覧 */
.col-list {
  list-style: none;
  padding: 0;
}
.col-list li {
  margin-bottom: 14px;
}
.col-list a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.18s;
}
.col-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.col-list .t {
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-dark);
}
.col-list .d {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 560px) {
  .tools {
    grid-template-columns: 1fr;
  }
  .logo {
    font-size: 27px;
  }
  .tagline {
    font-size: 16px;
  }
  .cat-title {
    font-size: 19px;
  }
}
