/* =========================================
  Tools index (/): usability & readability upgrades
  - 一覧ページを「選びやすい・読みやすい・押しやすい」に寄せる
========================================= */

/* ------------------------------
   0) 基本
------------------------------ */
.tp-grid3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 980px){
  .tp-grid3{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .tp-grid3{
    grid-template-columns:1fr;
  }
}

/* ------------------------------
   1) Hero
------------------------------ */
.tp-header{
  align-items:start;
  gap:20px;
}

.tp-lead{
  font-size:15px;
  line-height:1.8;
  color:#334155;
}

.tp-header__side{
  min-width:280px;
}

.tp-header__side .tp-meta{
  margin-bottom:10px;
  font-size:13px;
  color:#64748b;
}

.tp-header__actions.tp-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tp-header__actions.tp-actions .tp-btn{
  min-height:44px;
}

.tools-heroBadges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* ------------------------------
   2) チップ / バッジ
------------------------------ */
.tools-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 10px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  color:#475569;
}

.tools-chip--accent{
  background:#f1f8f3;
  color:#1f6b3d;
  border-color:rgba(31,107,61,.18);
}

/* ------------------------------
   3) 迷った方向けカード
------------------------------ */
.tools-startGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.tools-startCard{
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fafafa;
}

.tools-startCard .tp-h3{
  margin:0 0 6px;
  line-height:1.4;
}

.tools-startCard .tp-sub{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#475569;
}

@media (max-width: 900px){
  .tools-startGrid{
    grid-template-columns:1fr;
  }
}

/* ------------------------------
   4) ツールカード全体
------------------------------ */
.tp-kpi.tp-col-3{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
  min-width:0;
}

.tools-card{
  min-height:100%;
}

.tools-card__badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:2px;
}

.tp-kpi.tp-col-3 .tp-h3{
  margin:0 0 4px;
  line-height:1.4;
  font-size:1.08rem;
}

.tp-kpi.tp-col-3 .tp-sub{
  margin:0 0 6px;
  line-height:1.75;
  color:rgba(0,0,0,.72);
  font-size:0.96rem;
}

.tools-card__who{
  margin:0;
  font-size:13px;
  line-height:1.75;
  color:#475569;
}

/* ------------------------------
   5) カード本文（箇条書き）
------------------------------ */
.tp-kpi.tp-col-3 .tp-steps{
  margin:8px 0 12px;
  padding-left:1.2em;
}

.tp-kpi.tp-col-3 .tp-steps li{
  margin:7px 0;
  line-height:1.75;
}

/* ------------------------------
   6) ボタン導線
------------------------------ */
.tp-kpi.tp-col-3 .tp-actionsWrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:2px;
}

.tp-kpi.tp-col-3 .tp-actionsWrap .tp-btn{
  white-space:nowrap;
  min-height:42px;
}

@media (max-width: 640px){
  .tp-kpi.tp-col-3 .tp-actionsWrap{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .tp-kpi.tp-col-3 .tp-actionsWrap .tp-btn{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 720px){
  .tp-header__actions.tp-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .tp-header__actions.tp-actions .tp-btn{
    width:100%;
    justify-content:center;
  }
}

/* ------------------------------
   7) 関連リンク
------------------------------ */
.tp-kpi.tp-col-3 .tp-help{
  margin:10px 0 0;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
  color:rgba(0,0,0,.70);
  font-size:13px;
  line-height:1.8;
}

.tp-kpi.tp-col-3 .tp-help .tp-link{
  text-decoration:underline;
  text-underline-offset:2px;
  word-break:break-word;
}

.tp-sep{
  margin:0 4px;
  color:#94a3b8;
}

/* ------------------------------
   8) カテゴリチップ
------------------------------ */
.tp-kLinks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* ------------------------------
   9) CTAセクション
------------------------------ */
.tp-card .tp-sectionHead + .tp-actionsWrap{
  margin-top:10px;
}

/* ------------------------------
   10) hover（PC）
------------------------------ */
@media (hover:hover){
  .tp-kpi.tp-col-3{
    transition:
      transform .12s ease,
      box-shadow .12s ease,
      border-color .12s ease;
  }

  .tp-kpi.tp-col-3:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,.06);
    border-color:rgba(31,138,91,.25);
  }
}

/* ------------------------------
   11) 微調整
------------------------------ */
.tp-card .tp-sub{
  color:#64748b;
}

.tp-card .tp-h2{
  margin-bottom:6px;
}

/* ------------------------------
   12) SP最適化
------------------------------ */
@media (max-width: 720px){
  .tp-lead{
    font-size:14px;
  }

  .tools-chip{
    font-size:11px;
    min-height:26px;
    padding:4px 9px;
  }

  .tools-card__who{
    font-size:12px;
  }

  .tp-kpi.tp-col-3{
    padding:16px 14px;
  }

  .tp-kpi.tp-col-3 .tp-sub{
    font-size:0.92rem;
  }

  .tp-kpi.tp-col-3 .tp-help{
    font-size:12px;
  }
}

/* ---------------------------------
   Hero右側：見出し→ボタン→補足を安定表示
--------------------------------- */
.tp-header__side{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.tp-header__side .tp-meta{
  margin-bottom:12px;
  font-size:13px;
  color:#64748b;
}

.tp-header__side .tp-help{
  margin-top:10px;
  font-size:13px;
  line-height:1.8;
  color:#64748b;
}

/* ---------------------------------
   使い方おすすめ：リンクを“リンクらしく”見せる
--------------------------------- */
.tools-linkGuide{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}

.tools-linkGuide__item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fafafa;
  text-decoration:none;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background-color .12s ease;
}

.tools-linkGuide__item:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.05);
  border-color:rgba(31,138,91,.22);
  background:#fff;
}

.tools-linkGuide__label{
  font-size:12px;
  line-height:1.4;
  color:#64748b;
}

.tools-linkGuide__title{
  font-size:15px;
  font-weight:700;
  line-height:1.5;
  color:#0f172a;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media (max-width: 980px){
  .tools-linkGuide{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .tools-linkGuide{
    grid-template-columns:1fr;
  }

  .tools-linkGuide__title{
    font-size:14px;
  }
}
