@charset "utf-8";


@media print,screen and (min-width: 1024px){
/* 8個のボタンを並べるためのコンテナ */
.button-container {
  width: 856px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* 画面幅に合わせて折り返す */
  gap: 12px;       /* ボタン同士の間隔 */
}
}
@media print,screen and (max-width: 1023px){
/* 8個のボタンを並べるためのコンテナ */
.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 画面幅に合わせて折り返す */
  gap: 12px;       /* ボタン同士の間隔 */
}
}
/* 共通のボタンスタイル */
.image-link {
  display: block;
  position: relative;
  width: 200px;
  height: 130px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid #ffffff;
}
/* 各ボタンの背景画像（個別に指定） */
.bg-1 { background-image: url(/technical-info/technical-data/images/gs-01.webp); }
.bg-2 { background-image: url(/technical-info/technical-data/images/gs-02.webp); }
.bg-3 { background-image: url(/technical-info/technical-data/images/gs-03.webp); }
.bg-4 { background-image: url(/technical-info/technical-data/images/gs-04.webp); }
.bg-5 { background-image: url(/technical-info/technical-data/images/gs-05.webp); }
.bg-6 { background-image: url(/technical-info/technical-data/images/gs-06.webp); }
.bg-7 { background-image: url(/technical-info/technical-data/images/gs-07.webp); }
.bg-8 { background-image: url(/technical-info/technical-data/images/gs-08.webp); }
/* 下半分の半透明黒マスク */
.image-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  transition: height 0.3s ease;
  z-index: 1;
}
/* 白い文字の配置 */
.link-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transition: height 0.3s ease;
  z-index: 2;
}
/* ホバー時の挙動（すべてのボタン共通） */
.image-link:hover::after,
.image-link:hover .link-text {
  height: 100%;
}
    