/* =========================================================
   site-enhancements.css (HM-TASK-041)
   - /gluegun/  用途・お悩み別クイック案内（5カード）
   - /price/    価格表からの詳細ページ逆リンクバッジ
   - /          トップページ 特集・専門ガイド導線
   - /examples/ 用途一覧の特性別ガイド導線
   ========================================================= */

/* ---------------------------------------------------------
   1. /gluegun/ 悩み・用途別クイック案内 (5 Cards)
   --------------------------------------------------------- */
.gg-guide-sec {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}

.gg-guide-box {
  padding: 24px 26px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d7e3ee;
  box-shadow: 0 8px 24px rgba(14, 47, 71, 0.06);
}

.gg-guide-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.gg-guide-box__eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6f0f8;
  color: #0e2f47;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gg-guide-box__title {
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 800;
  color: #0e2f47;
  line-height: 1.4;
}

.gg-guide-box__lead {
  margin: 0;
  font-size: 0.85rem;
  color: #52677a;
}

.gg-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gg-guide-card {
  display: flex;
  flex-direction: column;
  padding: 15px 14px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-top: 4px solid #0e2f47;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gg-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(14, 47, 71, 0.1);
  background: #ffffff;
}

.gg-guide-card--low { border-top-color: #0284c7; }
.gg-guide-card--heat { border-top-color: #ea580c; }
.gg-guide-card--cordless { border-top-color: #0d9488; }
.gg-guide-card--spray { border-top-color: #7c3aed; }
.gg-guide-card--pillow { border-top-color: #2563eb; }

.gg-guide-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #e6f0f8;
  color: #0e2f47;
  font-size: 0.95rem;
}

.gg-guide-card--low .gg-guide-card__icon { background: #e0f2fe; color: #0369a1; }
.gg-guide-card--heat .gg-guide-card__icon { background: #ffedd5; color: #c2410c; }
.gg-guide-card--cordless .gg-guide-card__icon { background: #ccfbf1; color: #0f766e; }
.gg-guide-card--spray .gg-guide-card__icon { background: #ede9fe; color: #6d28d9; }
.gg-guide-card--pillow .gg-guide-card__icon { background: #dbeafe; color: #1d4ed8; }

.gg-guide-card__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0e2f47;
  line-height: 1.4;
}

.gg-guide-card__models {
  margin: 0 0 10px;
  font-size: 0.77rem;
  line-height: 1.55;
  color: #52677a;
  flex-grow: 1;
}

.gg-guide-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0e2f47;
}

.gg-guide-card__sub {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #d7e3ee;
  font-size: 0.74rem;
}

.gg-guide-card__sub a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.gg-guide-card__sub a:hover {
  text-decoration: underline;
}

.gg-anchor-target {
  scroll-margin-top: 100px;
}

/* ---------------------------------------------------------
   2. /price/ 詳細ページ逆リンクバッジ
   --------------------------------------------------------- */
.price-meta .price-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.price-meta .price-detail-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.price-detail-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #52677a;
  text-align: center;
}

/* ---------------------------------------------------------
   2.5. /hotmelt/ 品番欄のカテゴリータグ・詳細ページリンク
   --------------------------------------------------------- */
.product-table td.product-id {
  min-width: 148px;
}

.hm-product-id {
  display: block;
  font-weight: 700;
  color: #0e2f47;
  line-height: 1.35;
}

.hm-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
  margin-top: 5px;
}

.hm-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.hm-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hm-detail-link:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

@media (max-width: 768px) {
  .product-table td.product-id {
    min-width: 118px;
    max-width: 146px;
  }

  .hm-cat-tag,
  .hm-detail-link {
    font-size: 0.64rem;
    padding: 1px 6px;
  }
}

/* ---------------------------------------------------------
   2.8. / (トップページ) デモ機相談セクション右下部：取扱ガイド案内カード
   --------------------------------------------------------- */
.home-guide-banner {
  margin-top: auto;
  padding-top: 24px;
}

.home-guide-banner__link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
  border: 1.5px solid #cbd9e8;
  border-left: 5px solid var(--c-orange, #e97730);
  box-shadow: 0 10px 30px -10px rgba(14, 47, 71, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-guide-banner__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(14, 47, 71, 0.18);
  border-color: var(--c-orange, #e97730);
  text-decoration: none;
}

.home-guide-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff3ea;
  color: #d9641e;
  font-size: 1.35rem;
}

.home-guide-banner__tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f0f8;
  color: #0e2f47;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-guide-banner__title {
  margin: 0 0 6px;
  font-size: 1.04rem;
  font-weight: 800;
  color: #0e2f47;
  line-height: 1.35;
}

.home-guide-banner__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #52677a;
}

.home-guide-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #0e2f47;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.home-guide-banner__link:hover .home-guide-banner__cta {
  background: var(--c-orange, #e97730);
}

@media (max-width: 768px) {
  .home-guide-banner {
    margin-top: 20px;
    padding-top: 0;
  }

  .home-guide-banner__link {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  .home-guide-banner__icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .home-guide-banner__cta {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ---------------------------------------------------------
   3. / (トップページ) 課題・特性別 特集ページ4カード
   --------------------------------------------------------- */
.home-specialty-bar {
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d7e3ee;
  box-shadow: 0 10px 28px rgba(14, 47, 71, 0.06);
}

.home-specialty-bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.home-specialty-bar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0e2f47;
}

.home-specialty-bar__sub {
  margin: 0;
  font-size: 0.86rem;
  color: #52677a;
}

.home-specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-spec-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-left: 5px solid #0e2f47;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 47, 71, 0.1);
  background: #ffffff;
}

.home-spec-card--hardbond { border-left-color: #0d9488; }
.home-spec-card--lowstring { border-left-color: #2563eb; }
.home-spec-card--polyamide { border-left-color: #ea580c; }
.home-spec-card--lowtemp { border-left-color: #0284c7; }

.home-spec-card__tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f0f8;
  color: #0e2f47;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-spec-card--hardbond .home-spec-card__tag { background: #ccfbf1; color: #0f766e; }
.home-spec-card--lowstring .home-spec-card__tag { background: #dbeafe; color: #1d4ed8; }
.home-spec-card--polyamide .home-spec-card__tag { background: #ffedd5; color: #c2410c; }
.home-spec-card--lowtemp .home-spec-card__tag { background: #e0f2fe; color: #0369a1; }

.home-spec-card__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0e2f47;
  line-height: 1.4;
}

.home-spec-card__desc {
  margin: 0 0 12px;
  font-size: 0.81rem;
  line-height: 1.6;
  color: #475569;
  flex-grow: 1;
}

.home-spec-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0e2f47;
}

/* ---------------------------------------------------------
   4. /examples/ 特性・お悩み別の専用ガイド3カード＆業界カード複線リンク
   --------------------------------------------------------- */
.ex-guide-strip {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #d7e3ee;
}

.ex-guide-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.ex-guide-strip__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: #0e2f47;
}

.ex-guide-strip__sub {
  margin: 0;
  font-size: 0.84rem;
  color: #52677a;
}

.ex-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usecase-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0 24px 20px;
}

.usecase-card__links .usecase-card__link {
  margin: 0;
  padding: 0;
  border-top: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .gg-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gg-guide-box,
  .home-specialty-bar,
  .ex-guide-strip {
    padding: 18px 16px;
  }

  .gg-guide-grid,
  .home-specialty-grid,
  .ex-guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .usecase-card__links {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-guide-card,
  .home-spec-card,
  .home-guide-banner__link,
  .price-meta .price-detail-link {
    transition: none;
  }
}
