/* ===============================================
# top.css
=============================================== */
.p-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 50rem;
  margin-top: 60px;
  overflow: hidden;
}

@media screen and (min-width: 1024px) {
  .p-hero {
    height: 60vh;
    min-height: 40rem;
    margin-top: 80px;
  }
}

.p-hero__slider.swiper,
.p-hero__slide {
  width: 100%;
  height: 100%;
}

.p-hero__media,
.p-hero__slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__slider.swiper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__inner {
  position: absolute;
  top: 40%;
  left: 1rem;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;

  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .p-hero__inner {
    left: 10%;
  }
}

.p-hero__title {
  font-size: clamp(3.8rem, 5vw, 5rem);
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.p-hero__lead {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 2.5vw, 2rem);
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* 静止画だけ拡大の準備 */
.p-hero__media--image {
  transform: scale(1);
  transition: transform 4.5s linear;
}

/* activeのときだけ拡大 */
.swiper-slide-active .p-hero__media--image {
  transform: scale(1.18);
}

/* ===============================================
# pc
=============================================== */
@media screen and (min-width: 768px) {
  .p-hero {
    height: 90vh;
    min-height: 40rem;
  }
}

/* ===============================================
# 事業内容
=============================================== */

.p-home-service {
  background-color: var(--t-blue);
  color: var(--white);
}

.p-home-service__lead {
  font-size: clamp(1.6rem, 2.5vw, 1.8rem);
  text-align: left;
  margin-bottom: 4rem;
  line-height: 1.8;
}

.p-home-service__card {
  display: flex;
  flex-direction: column-reverse;
  background: var(--white);
  padding: 1.5rem;
  /* 内側の余白を少し増やして「しんどさ」を軽減 */
  text-align: center;
  border-radius: 4px;
  width: 100%;
}

.p-home-service__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 15px;
}

.p-home-service__name {
  color: var(--t-text-main);
  font-weight: 600;
  font-size: 2rem;
  padding-bottom: 10px;
}

/* --- タブレット（768px以上） --- */
@media screen and (min-width: 768px) {
  .p-home-service__card {
    /* カード単体が横に伸びすぎないよう制限 */
    max-width: 420px;
    margin-inline: auto;
  }
}

/* --- PC（1024px以上） --- */
@media screen and (min-width: 1024px) {
  .p-home-service__card {
    /* PCではグリッド幅に任せる */
    max-width: 100%;
  }
}

/* ==========================================================================
   Home - Works (施工実績)
   ========================================================================== */

.p-home-works {
  position: relative;
  background-color: #fff;
  border-bottom: solid 1px #333;
  overflow: hidden;
}

.p-home-works__catch {
  font-size: clamp(2.4rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

@media screen and (min-width: 1024px) {
  .p-home-works__catch {
    text-align: left;
  }
}

@media screen and (min-width: 1024px) {
  .p-home-works__grid {
    max-width: 850px;
  }
}

.p-home-works__img-unit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-home-works__card-text {
  display: flex;
  align-items: center;
}

.p-home-works__label::after {
  content: "/";
  padding-right: 0.3rem;
  padding-left: 0.3rem;
}
.p-home-works__name {
  font-weight: normal;
  font-size: 1.6rem;
}

/* --- タブレット（768px以上） --- */
@media screen and (min-width: 768px) {
  .p-home-works {
    background-image: url("../images/home/works-bg-person.png");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: auto 110%;
  }

  .p-home-works__catch {
    font-size: 3.2rem;
  }
}

.p-home-works__label,
.p-home-works__name {
  margin: 0;
}

.p-home-works__img {
  display: block;
  width: 100%;
  height: auto;
}

.p-home-works__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* hoverで拡大 */
.p-home-works__img {
  transition: transform 0.6s ease;
}

.p-home-works__card:hover .p-home-works__img {
  transform: scale(1.05);
}
.p-home-works__grid {
  max-width: 850px;
}

.p-home__works-btn {
  max-width: 850px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: flex-end;
}

/* ===============================================
# news
=============================================== */
.p-home-news {
  background-color: var(--t-blue);
  color: var(--white);
}

.p-home-news__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media screen and (min-width: 768px) {
  .p-home-news__list {
    max-width: 700px;
    margin: 0 auto;
  }
}

.p-home-news__date {
  background-color: var(--t-text-main);
  color: var(--white);
  display: inline-block;
  text-align: center;
  padding: 0.3rem 1.2rem;
  align-self: flex-start;
}

@media screen and (min-width: 768px) {
  .p-home-news__date {
    width: auto;
    padding: 0.3rem 3rem;
    font-size: 1.4rem;
  }
}

.p-home-news__text {
  font-size: clamp(1.6rem, 2.5vw, 1.6rem);
}

.p-home-news__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: dotted 0.5px rgba(255, 255, 255, 0.571);
  padding-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
  .p-home-news__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.p-home-news__link:hover {
  opacity: 0.5;
}

/* ===============================================
# recruit banner
=============================================== */
.c-recruit-banner__body .c-section-head {
  margin-bottom: 1rem;
}
.c-recruit-banner {
  background: #f3f3f3;
}

.c-recruit-banner__inner {
  display: grid;
  gap: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 0.8rem;
  box-shadow: 2px 2px 5px #777171;
}

.c-recruit-banner__flex {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}

.c-recruit-banner__logo {
  width: 8rem;
  flex-shrink: 0;
}

.c-section-head__title.recruit-title {
  font-size: 2rem;
}
.c-recruit-banner__logo img {
  width: 100%;
  height: auto;
}

.c-recruit-banner__text p {
  font-size: 1.5rem;
  line-height: 1.8;
}

.c-recruit-banner .c-btn-unit {
  margin-top: 0;
  padding-top: 0;
  text-align: left;
}

.c-recruit-banner__img {
  width: 100%;
  overflow: hidden;
}

.c-recruit-banner__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 768px) {
  .c-recruit-banner__inner {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: start;
    /* max-height: 300px; */
    max-width: 750px;
  }

  .c-recruit-banner__body {
    display: flex;
    flex-direction: column;
  }

  .c-recruit-banner__img {
    align-self: start;
    max-width: 750px;
    width: 100%;
    margin-left: auto;
  }

  .c-recruit-banner__img img {
    height: 100%;
    width: auto;
    display: block;
  }
}

/* c-btn　コンテンツ毎の調整 */

/* recruit link　btn調整  */
.p-home-recruit__btn {
  text-align: left;
  margin-top: 0.5rem;
}
/* ニュースのlink btn位置 */
.c-btn-unit.p-top__news {
  max-width: 700px;
  margin: 0 auto;
}
