.tool-hub,
.tool-related {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 30px auto 64px;
  color: #192944;
}

.tool-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tool-jump a,
.tool-back {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #184b91;
  font-weight: 600;
  text-decoration: none;
}

.tool-group {
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(26, 63, 108, .06);
  scroll-margin-top: 24px;
}

.tool-group h2,
.tool-related h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.3;
}

.tool-group h2 a { color: #174e95; text-decoration: none; }
.tool-group p { margin: 0 0 20px; line-height: 1.6; color: #465975; }

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-list li { margin: 0; padding: 0; }
.tool-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  background: #f7faff;
  color: #174e95;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.tool-list a:hover,
.tool-list a:focus-visible,
.tool-jump a:hover,
.tool-back:hover {
  background: #dcecff;
  border-color: #9bc2ed;
}

.tool-related { padding: 26px; border-radius: 20px; background: #f4f8fd; }
.tool-related .tool-back { margin-top: 20px; }
.tool-hub > .tool-back { margin: 4px 0 20px; }

@media (max-width: 600px) {
  ol.breadcrumb { box-sizing: border-box; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
  #content.tool-page .ad-300-250 { display: none; }
  #content.tool-page .entry-wrapper {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 16px 12px;
  }
  #content.tool-page #entry {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px 12px;
    margin: 0;
  }
  #content.tool-page #entry input,
  #content.tool-page #entry select { box-sizing: border-box; max-width: 100%; }
  #content.tool-page .topic-content {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
  }
  #content.tool-page .topic-content-left,
  #content.tool-page .topic-content-left > div {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  #content.tool-page #entry::before { display: none; }
  .tool-hub, .tool-related { width: calc(100% - 24px); margin-top: 20px; }
  .tool-group, .tool-related { padding: 18px; border-radius: 16px; }
  .tool-list { grid-template-columns: 1fr; }
}
