/* toolbox 専用スタイル（/assets/css/style.css のトークン・部品を前提に上書き） */

/* ---------- hero（toolbox はコンパクト版） ---------- */
.tb-hero {
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(48px, 7vw, 96px) var(--rail) clamp(40px, 5.5vw, 72px);
}
.tb-hero .hero-title { font-size: clamp(32px, 5vw, 62px); }
.tb-hero-lead {
  max-width: 40em;
  margin: 26px 0 0;
  font-size: 14.5px;
  line-height: 2.0;
}
.tb-hero-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ---------- tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tool-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 0;
  padding: 30px var(--rail) 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .25s ease;
}
.tools-grid .tool-card:nth-child(3n) { border-right: 0; }
.tool-card:hover { background: var(--white); }

.tool-thumb {
  display: block;
  aspect-ratio: 960 / 503;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(10, 11, 13, 0.05);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}
.tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.tool-thumb:hover { transform: translateY(-6px); box-shadow: 12px 18px 0 rgba(10, 11, 13, 0.08); }
.tool-thumb:hover img { transform: scale(1.03); }

.tool-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.tool-name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
}
.tool-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}
.tool-meta {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tool-actions .btn { padding: 10px 16px; font-size: 12.5px; }

/* coming soon スロット（top の cover-slot 意匠を踏襲） */
.tool-card--slot {
  grid-template-rows: 1fr auto;
  gap: 14px;
  align-items: end;
}
.tool-slot-inner {
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  place-content: center;
  gap: 10px;
  min-height: 120px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}
.tool-slot-inner::before { content: "+"; font-size: 26px; line-height: 1; }

/* ---------- how to ---------- */
.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.howto-step {
  padding: clamp(30px, 4vw, 44px) var(--rail);
  border-right: 1px solid var(--line);
}
.howto-step:last-child { border-right: 0; }
.howto-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 14px;
}
.howto-step h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.howto-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}

/* ---------- join strip ---------- */
.join {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
}
.join-main { padding: clamp(40px, 5.5vw, 68px) var(--rail); }
.join-main p { max-width: 38em; margin: 0 0 1.4em; font-size: 14.5px; line-height: 2.0; }
.join-main p:last-child { margin-bottom: 0; }
.join-side {
  border-left: 1px solid var(--line);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 36px var(--rail);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid .tool-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .tools-grid .tool-card:nth-child(2n) { border-right: 0; }
  .howto { grid-template-columns: 1fr; }
  .howto-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .howto-step:last-child { border-bottom: 0; }
  .join { grid-template-columns: 1fr; }
  .join-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-grid .tool-card { border-right: 0 !important; }
}
