@charset "UTF-8";

/*===================================
MV
===================================*/

.hero {
  position: relative;
  width: 100%;
  height: clamp(690px, 56vw, 1080px);
  overflow: hidden;
}

.divider {
  width: 1px;
  height: 93px;
  background: var(--color-primary);
  margin-bottom: 30px;
  margin-left: 20px;
}

.body-text {
  font-size: 2.2rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.image-wrapper {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;   /* 線より前面に表示するため */
}

/* heroの一番下に横一直線の線を配置(画像の裏側になるよう z-index を低くする) */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid #00275B;
  z-index: 0;
}

.mv_img {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: revealMv 1.5s ease forwards;
}

@keyframes revealMv {
    to {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            0 100%
        );
    }
}

@media (max-width: 768px) {

  .image-wrapper{
    position: relative;
    width: clamp(
      290px,
      calc(
          290px + (550 - 290) * ((100vw - 375px) / (768 - 375))
      ),
      550px
    );
    height: clamp(
      680px,
      calc(
          680px + (740 - 680) * ((100vw - 375px) / (768 - 375))
      ),
      740px
    );
    top: auto;
    right: -15px;
    margin-left: auto;
    transform: none;
    bottom: -60px;
  }

  .mv_img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
  }

  .divider{
    margin-bottom: 15px;
  }

  .body-text{
    font-size: 1.5rem;
    margin-bottom: 18px;
    width: 70%;
  }
  
}

/*===================================
私たちについて
===================================*/

.about-content {
  width: 100%;
  padding-top: 110px;
  padding-left: max(40px, calc((100% - 1500px) / 2 + 40px));
  padding-right: max(325px, 25vw);
  padding-bottom: 75px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.about-content .title-left{
  width: 100%;
  flex: 1;
}

.about_img-wrap {
  flex: 1;
}

@media (max-width: 768px) {
  
  .about-content{
    margin-top: 60px;
    padding: 0 40px;
    flex-direction: column;
    gap: 40px;
  }
  
}

/* =============================
    全体ラッパー（2カラム構造）
    左：コンテンツ / 右：グレー台形画像エリア
============================= */

.page-wrapper {
  position: relative;
  /* section-jigyouとsub-mvで共有する高さ */
  --sub-mv-height: clamp(
      498px,
      calc(
          498px + (734 - 498) * ((100vw - 1300px) / (1920 - 1300))
      ),
      734px
  );
}

.sub-mv {
  position: absolute;
  right: 0;
  bottom: 0;
  height: var(--sub-mv-height);
  aspect-ratio: 569 / 733;
  z-index: 2;
  pointer-events: none;
}

.sub-mv img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {

  .sub-mv{
    display: none;
  }
  
}

/* =============================
    事業内容セクション
============================= */

.section-jigyou {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 910;
  background-size: 100% auto;
  z-index: 1;
  color: var(--color-white);
}

.section-jigyou__bg {
  position: absolute;
  inset: 0;
  background: url(../../../assets/img/top/dew_bkg.png) center center / cover no-repeat;
  /* background-size: 100% auto; */
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 1.5s ease;
  z-index: 0;
}

/* sub-mvと同じ高さ・同じ下端位置の箱を作り、その中で中央揃えする */
.section-jigyou__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sub-mv-height);

  display: flex;
  align-items: center;   /* 箱全体(row)を縦中央に配置 */

  padding-left: max(40px, calc((100% - 1500px) / 2 + 40px));
  padding-right: max(325px, 25vw);
}

/* title-leftとjigyou-cardsの上端を揃える */
.section-jigyou__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.section-jigyou.is-visible .section-jigyou__bg {
  clip-path: polygon(
      0 0,
      100% 0,
      100% 100%,
      0 100%
  );
}

.section-jigyou > * {
  z-index: 1;
}

.jigyou-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 80px 40px;
  align-items: flex-start;
  flex: 1;
  max-width: 730px;
}

.jigyou-card {
  width: calc((100% - 40px * 2) / 3);
}

.jigyou-card .img-placeholder {
  width: 100%;
  margin-bottom: 30px;
}

.jigyou-card .img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jigyou-card h3 {
  font-size: 1.5rem;
  text-align: center;
}

 .section-link-item{
    color: var(--color-text-white);
  }

@media (max-width: 768px) {
  
  .section-jigyou{
    margin-top: 70px;
  }

  .section-jigyou .section-jigyou__bg{
    background: url(../../../assets/img/top/dew_bkg_sp.png) no-repeat;
  }

  .section-jigyou__content{
    position: static;
    height: auto;
    padding: 90px 40px 60px;
    display: block;
  }

  .section-jigyou__row{
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .jigyou-cards{
    width: 100%;
  }

  .about-content{
    flex-direction: column;
  }

  .section-links{
    width: 100%;
    border: 1px solid var(--color-white);
  }

  .section-link-item {
    width: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 10px;
    border-bottom: 1px solid var(--color-white);;
    text-decoration: none;
    transition: color .4s ease;
  }
  
}

/* =============================
  ご相談・お問い合わせ
============================= */

.p-contact{
  display: flex;
  gap: 60px;
  align-items:flex-end;
  padding: 90px 40px 0;
  margin: 0 auto;
}

.p-contact .title-left{
  width: fit-content;
}

.p-contact .c-txt{
  margin-bottom: 0;
}

.c-btn-arrow{
  display: block;
  width: 330px;
}

@media (max-width: 768px) {

  .p-contact{
    flex-direction: column;
    align-items: unset;
    gap: 40px;
    padding: 70px 40px;
  }

  .c-btn-arrow{
    width: 100%;
  }
}