@charset "UTF-8";

/* ========================================
   デジタル技術ページ
   ======================================== */

/* ----------------------------------------
   Hero コンテナ
   ---------------------------------------- */
.hero-digital {
  position: relative;
  height: 80vh;
  height: 80dvh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}

@media (max-width: 781px) {
  .hero-digital {
    height: 65vh;
    height: 65dvh;
    min-height: 400px;
  }
}

/* ----------------------------------------
   背景レイヤー
   ---------------------------------------- */
.hero-bg-digital {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-bg-digital::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-bg-digital.active {
  opacity: 0.6;
  z-index: 2;
}

/* ----------------------------------------
   テキストコンテンツ
   ---------------------------------------- */
.hero-content-digital {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 40px;
  transition: opacity 0.5s ease-in-out;
}

@media (max-width: 781px) {
  .hero-content-digital {
    padding: 0 20px;
    text-align: center;
  }
}

.hero-content-digital h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 781px) {
  .hero-content-digital h1 {
    font-size: 1.25rem;
    line-height: 1.5;
  }
}

/* ----------------------------------------
   カードリンク
   ---------------------------------------- */
.card-link .wp-block-image {
  overflow: hidden;
}

.card-link .wp-block-image img {
  transition: transform 0.2s ease-in-out;
}

.card-link:hover .wp-block-image img {
  transform: scale(1.1);
}

.card-link--icon-popup {
  position: relative;
}

.card-link--icon-popup::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 12px;
  height: 10px;
  background-image: url("../images-ja/top/img_fixed_page/icon_windows.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
  z-index: 1;
}

/* ----------------------------------------
   ユーティリティクラス
   ---------------------------------------- */
.text-center-pc {
  text-align: left;
}

@media (min-width: 782px) {
  .text-center-pc {
    text-align: center;
  }
}

.img-full-width,
.img-full-width img {
  width: 100%;
}

@media (max-width: 781px) {
  .flex-col-reverse-sp {
    flex-direction: column-reverse;
  }
}

figure.wp-block-image {
  margin-bottom: 0;
}
