/* ai-category.css */
/* =========================================================
   AIカテゴリから探す — 2列グリッド + 小サムネ
   ========================================================= */
.aind-sw-aicat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.aind-sw-aicat__cell {
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.aind-sw-aicat__cell:nth-child(odd) {
  border-right: 1px solid #e5e7eb;
}

.aind-sw-aicat__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.aind-sw-aicat__name:hover {
  color: #2563eb;
}

.aind-sw-aicat__arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: color 0.15s;
}

.aind-sw-aicat__name:hover .aind-sw-aicat__arrow {
  color: #2563eb;
}

.aind-sw-aicat__articles {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aind-sw-aicat__article {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 2px 0;
}

.aind-sw-aicat__article:hover .aind-sw-aicat__article-title {
  color: #2563eb;
}

.aind-sw-aicat__article-thumb {
  width: 36px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.aind-sw-aicat__article-title {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.aind-sw-aicat__empty {
  font-size: 11px;
  color: #cbd5e1;
}

/* common.css */
/* =========================================================
   サイドバーウィジェット共通 — 見出し
   ========================================================= */
.aind-sw__heading {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
  padding: 9px 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  background: #f1f5f9;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.aind-sw__heading::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #1d3e91;
  flex-shrink: 0;
  align-self: center;
}

.aind-sw__heading-en {
  font-size: 9px;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   追従型目次 — Light (Zenn style)
   ========================================================= */
.aind-tool-toc {
  position: sticky;
  top: 100px;
  background: #eef1f6;
  border-radius: 10px;
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

/* ── ヘッダー ── */
.aind-tool-toc__title {
  font-size: 10px;
  font-weight: 700;
  color: #6b7b95;
  margin: 0;
  padding: 13px 16px 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 7px;
}
.aind-tool-toc__title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #8b9dc3;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* ── リスト ── */
.aind-tool-toc__list {
  list-style: none;
  padding: 6px;
  margin: 0;
}

/* ── アイテム ── */
.aind-tool-toc__item {
  margin: 2px 0;
  padding: 0;
}

/* ── リンク ── */
.aind-tool-toc__link {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: #6b7b95;
  text-decoration: none;
  padding: 7px 12px 7px 16px;
  border-radius: 0;
  transition: all .12s ease;
  line-height: 1.5;
  position: relative;
}

/* ── ホバー ── */
.aind-tool-toc__link:hover {
  color: #3d4f6a;
}

/* ── アクティブ ── */
.aind-tool-toc__link.-active {
  background: #fff;
  color: #1e293b;
  font-weight: 600;
}
/* 右ドット */
.aind-tool-toc__link.-active::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--c-accent, #2563eb);
  border-radius: 50%;
}

/* =========================================================
   プロフィールウィジェット
   ========================================================= */

/* カード全体 */
.p-profileBox {
  padding: 0 !important;
  border: none !important;
  border-radius: 4px;
  overflow: hidden;
}

.c-widget.widget_swell_prof_widget {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* 背景画像 */
.p-profileBox__bg {
  height: 120px;
  max-height: 120px;
  overflow: hidden;
}

.p-profileBox__bgImg {
  height: 120px;
  object-fit: cover;
}

/* アバター */
.p-profileBox__iconImg {
  width: 96px !important;
  height: 96px !important;
  border: 2px solid var(--color_main) !important;
}

.p-profileBox__icon {
  margin-top: -60px;
}

/* 名前 */
.p-profileBox__name {
  font-size: 18px;
  font-weight: 700;
  padding-top: 0.5em;
}

/* 肩書き */
.p-profileBox__job {
  font-size: 14px;
  font-weight: 600;
  color: var(--color_main);
  margin-bottom: 12px;
}

/* 紹介文 */
.p-profileBox__text {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  line-height: 1.6;
  padding: 0 24px 30px;
}

/* company.css */
/* =========================================================
   注目のAI企業 — タグ/ピル風
   ========================================================= */
.aind-sw-company__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aind-sw-company__pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: normal;
  word-break: break-word;
}

.aind-sw-company__pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.aind-sw-company__pill-name {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
  transition: color 0.15s;
}

.aind-sw-company__pill:hover .aind-sw-company__pill-name {
  color: #2563eb;
}

.aind-sw-company__more {
  display: block;
  text-align: center;
  padding: 7px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  transition: all 0.15s;
}

.aind-sw-company__more:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

/* industry.css */
/* =========================================================
   業界から探す — 2列カード
   ========================================================= */
.aind-sw-industry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aind-sw-industry__card {
  min-width: 0;
}

.aind-sw-industry__card-head {
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid #3b82f6;
}

.aind-sw-industry__card-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.15s;
}

.aind-sw-industry__card-name:hover {
  color: #2563eb;
}

.aind-sw-industry__card-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: color 0.15s;
}

.aind-sw-industry__card-name:hover .aind-sw-industry__card-arrow {
  color: #2563eb;
}

.aind-sw-industry__card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aind-sw-industry__article {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.aind-sw-industry__article:hover .aind-sw-industry__article-title {
  color: #3b82f6;
}

.aind-sw-industry__article-thumb {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f2f5;
}

.aind-sw-industry__article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aind-sw-industry__article-title {
  display: -webkit-box;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  transition: color 0.15s;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aind-sw-industry__empty {
  font-size: 11px;
  color: #ccc;
}

/* usecase.css */
/* =========================================================
   導入事例 — 2列・横並びミニカード
   ========================================================= */
.aind-sw-usecase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.aind-sw-usecase__item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}

.aind-sw-usecase__item:nth-child(odd) {
  border-right: 1px solid #e5e7eb;
}

.aind-sw-usecase__item:hover {
  background: #f8fafc;
}

.aind-sw-usecase__thumb {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f2f5;
}

.aind-sw-usecase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aind-sw-usecase__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aind-sw-usecase__tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 2px;
  align-self: flex-start;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.aind-sw-usecase__title {
  display: -webkit-box;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.aind-sw-usecase__item:hover .aind-sw-usecase__title {
  color: #2563eb;
}

.aind-sw-usecase__more {
  display: block;
  text-align: center;
  padding: 7px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  transition: all 0.15s;
}

.aind-sw-usecase__more:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

