/*会社案内(サイトマップ)
---------------------------------------------------------------------------*/
/* ===== グリッド（中央寄せ） ===== */
.equipment_sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  justify-items: center;
}

/* スマホ */
@media (max-width: 768px) {
  .equipment_sitemap {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 40px 6px;
  }

  .equipment_sitemap_item {
    max-width: none;
  }
}

/* ===== 画像（ここが一番重要） ===== */
.equipment_sitemap_item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 3px;

  /* アニメーション */
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

/* ===== テキスト ===== */
.equipment_sitemap_text {
  margin-top: 14px;
  font-size: 16px;
  color: #1e3a8a;
  border-bottom: 2px solid #1e3a8a;
  display: inline-block;
  transition: all 0.3s ease;
}

/* ===== ホバー（サイズ変えない） ===== */
.equipment_sitemap_item:hover img {
  filter: brightness(0.85);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.equipment_sitemap_item:hover .equipment_sitemap_text {
  border-bottom: none;
  opacity: 0.7;
}

/*機械設備
---------------------------------------------------------------------------*/
.takatech_equipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* スマホ1列 */
@media (max-width: 768px) {
  .takatech_equipment {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .takatech_equipment .card {
    margin: 0;
  }
}

/* =========================
   カード
========================= */
.takatech_equipment .card {
  text-align: center;
  overflow: hidden;
  margin-bottom: 50px;
  background: #f5f5f5;
}

/* 画像（NHK風ズーム） */
.takatech_equipment img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* h3は固定（動かさない） */
.takatech_equipment h3 {
  margin: 12px 0;
}

/* =========================
   read more
========================= */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  margin-bottom: 20px;
}

/* ○ */
.circle {
  width: 28px;
  height: 28px;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

/* → */
.arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   HOVER（PCのみ）
========================= */
@media (hover: hover) {

  /* カード全体ホバー */
  .takatech_equipment .card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
  }

  .takatech_equipment .card:hover .circle {
    transform: translateX(6px);
  }

  .takatech_equipment .card:hover .arrow {
    transform: translateX(22px);
  }
}

/* =========================
   スマホアニメ
========================= */
@media (hover: none) {
  .arrow {
    animation: floatArrow 1.4s ease-in-out infinite alternate;
  }
}

/* ゆらぎアニメ */
@keyframes floatArrow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(18px); }
}