@charset "UTF-8";

/* -----------------------------------------
   DevPick 記事下フッターウィジェット
   cta-inline-tech と同じデザイン言語
   ----------------------------------------- */
/* 記事本文H2と同じ見た目を再現（ウィジェット内は .post_content 外のため） */
.devpick-h2 {
  background: rgb(4, 56, 76);
  color: #fff;
  padding: 0.75em 1em;
  margin: 2em 0 1em;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.4;
  border: none;
  border-radius: 0;
}

.devpick-footer-subtitle {
  font-size: 14px;
  color: #666;
  text-align: left;
  margin: 0 0 16px;
  line-height: 1.8;
}

.devpick-footer {
  margin: 0 0 30px;
}

.devpick-footer-inner {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #e8e8e8;
}

.devpick-footer-logo {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1;
}

.devpick-footer-body {
  flex: 1;
  min-width: 0;
}

.devpick-footer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.devpick-footer-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.devpick-footer-desc {
  font-size: 13px;
  color: #adb5bd;
  line-height: 1.6;
  margin: 0;
}

.devpick-footer-desc strong {
  color: #e2e8f0;
  font-weight: 700;
}

.devpick-footer-action {
  flex-shrink: 0;
}

.devpick-footer-action a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.devpick-footer-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  color: #fff !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .devpick-footer-inner {
    flex-direction: column;
    padding: 16px;
    text-align: center;
  }

  .devpick-footer-logo {
    font-size: 32px;
  }

  .devpick-footer-head {
    justify-content: center;
  }

  .devpick-footer-desc {
    font-size: 12px;
  }

  .devpick-footer-action a {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* -----------------------------------------
   トップページ上部ハブ（front_top ウィジェット / #1604）
   ----------------------------------------- */
.front-hub {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 16px 20px;
  box-sizing: border-box;
}
.front-hub__title,
.front-hub__subtitle {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: bold;
  line-height: 1.4;
}
.front-hub__title { font-size: 1.1em; }
.front-hub__title::before,
.front-hub__title::after,
.front-hub__subtitle::before,
.front-hub__subtitle::after { content: none; }
.front-hub__subtitle { font-size: 1em; margin-top: 18px; }
.front-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.front-hub__list li {
  margin: 0;
  padding: 0;
}
.front-hub__list li::before { content: none; }
.front-hub__list a {
  display: block;
  padding: 6px 14px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #f7f9fb;
  font-size: 0.9em;
  line-height: 1.5;
  text-decoration: none;
}
.front-hub__list a:hover { background: #eaf2fb; }
@media (max-width: 599px) {
  .front-hub { padding: 14px; }
  .front-hub__list { gap: 6px; }
  .front-hub__list li { max-width: 100%; }
}
/* PCはヘッダーメニュー・サイドバー人気記事と導線が重複し新着一覧を押し下げるため非表示。
   スマホ・タブレット（SWELLのPC境界 960px 未満）はサイドバーが一覧より下に回るので表示を残す（#1675）。
   ウィジェット枠ごと隠して空の余白を残さない。 */
@media (min-width: 960px) {
  .w-frontTop:has(.front-hub) { display: none; }
  /* SWELLが直後の一覧に付ける u-mt-40（!important）の余白が残りサイドバーとずれるため打ち消す（#1678） */
  .w-frontTop:has(.front-hub) + .p-homeContent { margin-top: 0 !important; }
}

/* -----------------------------------------
   カテゴリーアーカイブ上部ハブ（#1750）
   ----------------------------------------- */
.category-hub {
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.category-hub__title {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #eaeef2;
  background: none;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.4;
  color: #04384c;
}
.category-hub__title::before,
.category-hub__title::after {
  content: none;
}
.category-hub__group + .category-hub__group {
  margin-top: 14px;
}
.category-hub__label {
  margin: 0 0 8px;
  font-size: 0.88em;
  font-weight: 700;
  color: #444;
  line-height: 1.4;
}
.category-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-hub__list li {
  margin: 0;
  padding: 0;
}
.category-hub__list li::before {
  content: none;
}
.category-hub__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #f7f9fb;
  color: #04384c;
  font-size: 0.88em;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
}
.category-hub__list a:hover,
.category-hub__list a:focus-visible {
  background: #eaf2fb;
  border-color: #0369a1;
}
@media (max-width: 599px) {
  .category-hub {
    padding: 14px;
  }
  .category-hub__list {
    gap: 6px;
  }
  .category-hub__list li {
    max-width: 100%;
  }
}
