@charset "UTF-8";

/* HTML top.css */

#top .wrapper {
}

/* =======================================================
   l-main-img
======================================================== */
.l-main {
    width: 100%;
  height: 100%;
  clip-path: inset(0);
  &::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: url(../images/top/wrap_bg.jpg) center top no-repeat;
    background-size: cover;
  }
}
/* 共通レイアウト */
.l-main-img {
  margin-bottom: clamp(80px, 10.294vw, 140px); /*1360*/
  background: var(--Bg-color);
}
.l-main-img__inner {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  margin-top: 100px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.l-main-img__img {
  width: 74%;

  & img {
    object-fit: cover;
    height: calc(100vh - 100px);
  }
}

.l-main-img__copy {
  width: 26%;
  padding: clamp(20px, 5.208vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  

  & img {
    max-width: 300px;
    margin-bottom: clamp(40px, 4.167vw, 80px);
  }

  .copy-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    height: 100%;
    position: relative;
    writing-mode: vertical-rl;
    align-items: center;
    span {
      font-family: var(--hina);
      font-size: clamp(2rem, 4vh, 4.6rem);
      display: block;
      position: relative;

      &:nth-child(1) {transform: translate(0.4em, -2em);}
      &:nth-child(2) { transform: translate(0, 0); }
      &:nth-child(3) {transform: translate(-0.4em, 2em);}
    }
  }
}
/* === メディアクエリ ========================= */

/* max-width: 1080px（タブレット以下） */
@media (max-width: 1080px) {
  .l-main-img__inner {
    height: calc(100vh - 75px);
    margin-top: 75px;
    flex-direction: column;
  }

  .l-main-img__img {
    width: 100%;

    & img {
      height: calc(70vh - 75px);
    }
  }

  .l-main-img__copy {
    order: 2;
    flex-direction: row;
    width: 100%;
    height: 30vh;

    & img {
      width: clamp(200px, 35.185vw, 380px);
      max-width: 100%;
      margin-bottom: 0;
    }

    .copy-text {
      /* flex-direction: row; */
      justify-content: center;
      align-items: center;
      writing-mode: initial;
      width: calc(100% - clamp(200px, 35.185vw, 380px));

      span {
        margin-left: clamp(20px, 3.704vw, 40px);
        font-size: clamp(3rem, 3.704vw, 4rem);
        transform: none;

        &:nth-child(1),
        &:nth-child(2),
        &:nth-child(3) {
          transform: none;
        }
      }
    }
  }
}

/* max-width: 499px（スマホ縦） */
@media (max-width: 499px) {
  .l-main-img__copy {
    flex-direction: column;

    & img {
      width: 100px;
    }

    .copy-text {
      flex-direction: column;
      width: 100%;

      span {
        margin-left: 0;
        line-height: 1.5;
      }
    }
  }
}

/* =======================================================
   news
======================================================== */
.row-container.news {
  @media (max-width: 1080px) {
    flex-direction: column;
  }
}
.news-head {
  width: 26%;
}
.news-cts {
  width: 74%;

  & li {
    border-bottom: 1px solid var(--Link-color);
    & + li a {
      margin-top: 25px;
    }
  }

  & a {
    color: var(--Black);
    position: relative;
    padding-bottom: 24px;
    padding-right: 30px;
    display: flex;
    align-items: center;
    &::after {
      content: '';
      display: block;
      position: absolute;
      right: 6px;
      margin-left: auto;
      border-top: 1px solid var(--Black);
      border-right: 1px solid var(--Black);
      width: 8px;
      height: 8px;
      transform: rotate(45deg);
    }
    &:hover {
      color: var(--Link-color);
    }
  }
}
.news-date {
  /* font-family: var(--ou); */
  margin-right: 40px;
}
.news .btn01 {
  margin-top: 40px;
}

@media (max-width: 1080px) {
  .news {
    position: relative;
    padding-bottom: clamp(110px,12.963vw,140px);
  }
  .news-head, .news-cts {
    width: 100%;
  }
  .news-head {
    text-align: center;
    margin-bottom:  60px;
  }
  .news-cts a {
    display: flex;
    flex-wrap: wrap;
  }
  .news-date {
    width: 100%;
    color: #999;
    margin-bottom: 10px;
  }
  .news .btn01 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%)
  }
}

.top-head {
  text-align: center;
}

/* =======================================================
   top-info__block
======================================================== */
.top-info__block {
  margin-top: clamp(40px,10.417vw,80px);
  display: flex;
  justify-content: space-between;
  & > div {
    width: 48%;
    height: clamp(180px,11.979vw,230px);
    position: relative;
    &::after {
      content: '';
      display: block;
      position: absolute;
      bottom: 12px;
      right: 12px;
      width: 10px;
      height: 10px;
      border-top: 10px solid #fff;
      border-right: 10px solid #fff;
      border-bottom: 10px solid transparent;
      border-left: 10px solid transparent;
      z-index: 2;
      transform: rotate(90deg);
    }
    & a {
      display: flex;
      justify-content: center;
      align-items: center;
      font-family: var(--hina);
      font-size: clamp(2.4rem,1.563vw,3rem);
      color: #fff;
      width: 100%;
      height: 100%;
      position: relative;
      &::before,
      &::after {
        content: '';
        display: block;
        position: absolute;
        z-index: 1;
        transition: all .3s;
      }
      &::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        opacity: .6;
      }
      &::after {
        top: 5px;
        left: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        border: 1px solid rgb(255 255 255 / 51%);
      }
      &:hover {
        &::before {
          opacity: 0.1;
        }
        &::after {
          border-color: var(--Black);
        }
      }
      & span {
        position: relative;
        z-index: 2;
      }
    }
  }
  .corporates {
    background: url(../images/top/pic03.jpg) center center no-repeat;
    background-size: cover;
  }
  .customers {
    background: url(../images/top/pic04.jpg) center center no-repeat;
    background-size: cover;
  }
}
@media (max-width: 1080px) {
  .top-info__block {
    flex-direction: column;
    & > div {
      width: 100%;
    }
    .corporates {
      margin-bottom: 40px;
    }
  }
}

/* =======================================================
   top-recruit
======================================================== */
