@charset "UTF-8";
/* ----------------------------------------------------------
   TOPページ専用（front-page.php）
   functions/head.php で is_front_page() のときのみ読み込み
---------------------------------------------------------- */

/* @top-building（Concept）
----------------------------------------------------------*/
.top-building {
  padding: 60px 0 0;
}
.top-building-wrap {
  gap: 5.2%;
  margin-bottom: 60px;
}
.top-building-con {
  margin-right: 0;
  min-width: 0;
}
.top-building-con .ttl {
  font-size: clamp(21px, 1.95vw, 30px);
  line-height: 1.65;
  letter-spacing: .04em;
  margin-bottom: 1em;
}
.top-building-con .txt {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 2.142857em;
  letter-spacing: .025em;
  padding-right: 0;
}
.top-building-img {
  width: 43.38%;
  flex-shrink: 0;
  padding-top: 42px;
}
.top-building-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* @top-automation（パンチ・レーザー自動折曲システム） */
.top-automation {
  display: grid;
  grid-template-columns: 47.425% minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.top-automation-video {
  aspect-ratio: 16 / 9;
}
.top-automation-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.top-automation-con {
  min-width: 0;
  container-type: inline-size;
  --top-automation-inset: 9.79553%;
}
.top-automation-con h3 {
  font-size: clamp(20px, 4.2cqw, 30px);
  line-height: 1.55;
  letter-spacing: .025em;
  text-align: center;
  padding-left: var(--top-automation-inset);
  padding-bottom: 2px;
  border-bottom: 1px solid #fff;
  margin-bottom: 26px;
}
.top-automation-con sup {
  font-size: .5em;
  vertical-align: super;
}
.top-automation-br {
  display: none;
}
.top-automation-con p {
  margin: 0;
  padding-left: var(--top-automation-inset);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 2.142857em;
  letter-spacing: .025em;
}
.top-automation-note {
  display: inline-block;
}
.top-automation-con .btn {
  margin-top: 33px;
  padding-left: var(--top-automation-inset);
  text-align: center;
}
.top-automation-con .c-btn2 {
  min-width: 270px;
  height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* @top-factory（工場全景） */
.top-factory {
  position: relative;
  margin-top: 50px;
}
.top-factory-photo {
  display: block;
  width: 100%;
  height: auto;
}
.top-factory::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-main), transparent 70%);
}
.top-factory-message {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(50%, 776px);
  margin: 0;
}
.top-factory-message img {
  display: block;
  width: 100%;
  height: auto;
}

.top-building-links {
  padding-top: 60px;
  padding-bottom: 90px;
}
.top-building-links .top-building-message-ttl {
  margin: 0;
  font-weight: 400;
}
.top-building-links .btn_group {
  margin: 0;
}

/* @top-feature（staff2：横長画像を円形に収める）
----------------------------------------------------------*/
.staff_img.staff2 .staff_img-wrap {
  aspect-ratio: 1;
}
.staff_img.staff2::before {
  display: none;
}
.staff_img.staff2 .staff_img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* 959px 以下 (タブレット縦以下) */
@media screen and (max-width: 959px) {
  /* @top-building */
  .top-building {
    padding-top: 40px;
  }
  .top-building-wrap {
    display: block;
    margin-bottom: 36px;
  }
  .top-building-con {
    width: 100%;
    padding-bottom: 0;
    background-size: 135px;
  }
  .top-building-con .ttl {
    font-size: clamp(20px, 3.5vw, 28px);
  }
  .top-building-con .txt {
    padding-right: 150px;
  }
  .top-building-img {
    width: 100%;
    max-width: 588px;
    margin: 26px auto 0;
    padding-top: 0;
  }

  /* @top-automation */
  .top-automation {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .top-automation-con {
    --top-automation-inset: 0px;
  }
  .top-automation-con h3 {
    font-size: 24px;
    margin-bottom: 22px;
  }
  .top-automation-con .btn {
    margin-top: 22px;
  }

  /* @top-factory */
  .top-factory {
    margin-top: 36px;
  }
  .top-factory-message {
    width: 65%;
  }
  .top-building-links {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .top-building-links .top-building-message {
    gap: 20px;
    margin-bottom: 40px;
  }
}

/* 599px 以下 (スマホ) */
@media screen and (max-width: 599px) {
  /* @top-building */
  .top-building-wrap {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .top-building-con {
    flex: none;
    order: 1;
    margin-top: 0;
    padding-bottom: 75px;
    background-size: 120px;
  }
  .top-building-img {
    order: 0;
    margin-top: 0;
  }
  .top-building-con .ttl {
    font-size: 5.1vw;
    line-height: 1.7;
  }
  .top-building-con .txt {
    padding-right: 0;
  }

  /* @top-automation */
  .top-automation-br {
    display: inline;
  }
  .top-automation-con h3 {
    font-size: 5.2vw;
  }

  /* @top-factory */
  .top-factory {
    margin-top: 0;
  }
  .top-factory-photo {
    height: 160px;
    object-fit: cover;
  }
  .top-factory-message {
    width: 88%;
  }
  .top-building-links .top-building-message-ttl {
    font-size: 4.3vw;
    padding-inline: 0;
    text-align: center;
  }
  .top-building-links .btn_group {
    margin-inline: auto;
  }
}
