@charset "UTF-8";

/* main */
#main {
  background: url("../img/index/bg_company.jpg") 50% / cover no-repeat;
}
#main p {
  margin: 16px 0 62px;
}
#main a {
  margin: 0 auto;
}

/* intro */
#intro .width-wrap .img-area {
  width: 100%;
  aspect-ratio: 22/7;
  background: url("../img/index/bg_intro.jpg") 50% / cover no-repeat;
  margin: 48px 0;
}

/* why */
#why {
  background: var(--po-op1);
}
#why .width-wrap .box-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
#why .width-wrap .box-area .box {
  padding: 40px;
  box-sizing: border-box;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
#why .width-wrap .box-area .box .icon-zone {
  width: 164px;
}
#why .width-wrap .box-area .box .icon-zone img {
  width: 60px;
}
#why .width-wrap .box-area .box p:last-child {
  word-break: break-all;
}
#why .width-wrap .box-area .box p:nth-last-child(2) {
  margin: 20px 0 24px;
}

/* work */
#work .width-wrap .box-area {
  display: grid;
  grid-template-rows: repeat(auto-fill, 320px);
  gap: 40px;
  margin-top: 60px;
}
#work .width-wrap .box-area .box {
  min-height: 320px;
  height: fit-content;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
#work .width-wrap .box-area .box .img-zone {
  height: 100%;
}
#work .width-wrap .box-area .box .img-zone.first {
  background: url("../img/index/bg_work01.jpg") 50% / cover no-repeat;
}
#work .width-wrap .box-area .box .img-zone.second {
  background: url("../img/index/bg_work02.jpg") 50% / cover no-repeat;
}
#work .width-wrap .box-area .box .img-zone.third {
  background: url("../img/index/bg_work03.jpg") 50% / cover no-repeat;
}
#work .width-wrap .box-area .box .right-zone {
  position: relative;
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  transition: all 0.25s linear;
}
#work .width-wrap .box-area .box .right-zone:before {
  content: "";
  position: absolute;
  width: 0;
  height: 8px;
  background: var(--po);
  bottom: 0;
  left: 0;
  transition: all 0.25s linear;
}
#work .width-wrap .box-area .box:hover .right-zone {
  gap: 72px;
}
#work .width-wrap .box-area .box:hover .right-zone:before {
  width: 100%;
}
#work .width-wrap .box-area .box .right-zone .text p:first-child {
  margin-bottom: 20px;
}
#work .width-wrap .box-area .box .right-zone .text p:last-child {
  color: #7c7c7c;
}
#work .width-wrap .box-area .box .right-zone img {
  animation: workHoverOut 0.25s linear forwards;
}
#work .width-wrap .box-area .box:hover .right-zone img {
  animation: workHover 0.4s linear forwards;
}
@keyframes workHover {
  0% {
    display: block;
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes workHoverOut {
  0% {
    display: block;
    opacity: 1;
  }
  10% {
    display: block;
    opacity: 1;
  }
  99% {
    display: none;
  }
  100% {
    display: none;
    opacity: 0;
  }
}

/* ready */
#ready {
  background: var(--po);
}
#ready .width-wrap h2 {
  margin: 40px 0 10px;
}

/* contact */
#contact .width-wrap .top-area {
  display: grid;
  grid-template-columns: 1.316fr 1fr;
  gap: 80px;
}
#contact .width-wrap .top-area .img-zone {
  background: url("../img/index/bg_contact.jpg") 50% / cover no-repeat;
}
#contact .width-wrap .top-area .right-zone {
  padding: 27px 0;
  box-sizing: border-box;
}
#contact .width-wrap .top-area .right-zone p {
  margin: 20px 0 48px;
}
#contact .width-wrap .top-area .right-zone a:last-child {
  margin-top: 14px;
}
#contact .width-wrap .list-area {
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
}
#contact .width-wrap .list-area .list {
  display: flex;
  align-items: center;
  gap: 20px;
}
#contact .width-wrap .list-area .list .icon-zone {
  width: 68px;
}

/* responsive */
@media all and (max-width: 1120px) {
  #contact .width-wrap .list-area .list .icon-zone {
    width: 60px;
  }
  #contact .width-wrap .list-area .list .icon-zone img {
    width: 28px;
  }
}
@media all and (max-width: 1050px) {
  #why .width-wrap .box-area {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 48px auto 0;
  }
  #why .width-wrap .box-area .box .icon-zone {
    width: 133px;
  }
  #why .width-wrap .box-area .box .icon-zone img {
    width: 48px;
  }

  #contact .width-wrap .top-area {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  #contact .width-wrap .top-area .img-zone {
    width: 100%;
    height: 400px;
  }
}
@media all and (max-width: 980px) {
  #work .width-wrap .box-area .box .right-zone,
  #work .width-wrap .box-area .box:hover .right-zone {
    gap: 35px;
    padding-left: 24px;
  }
  #work .width-wrap .box-area .box .right-zone:before {
    width: 100%;
  }
  #work .width-wrap .box-area .box .right-zone img {
    display: block;
    animation: none;
  }
  #work .width-wrap .box-area .box:hover .right-zone img {
    animation: none;
  }

  #contact .width-wrap .top-area .img-zone {
    height: 300px;
  }
  #contact .width-wrap .list-area {
    margin-top: 80px;
    flex-direction: column;
    gap: 20px;
  }
}
@media all and (max-width: 700px) {
  #main p {
    margin: 15px 0 51px;
  }

  #intro .width-wrap .img-area {
    aspect-ratio: auto;
    height: 200px;
  }

  #work .width-wrap .box-area {
    grid-template-rows: auto;
  }
  #work .width-wrap .box-area .box {
    grid-template-columns: 1fr;
  }
  #work .width-wrap .box-area .box .img-zone {
    height: 300px;
  }
  #work .width-wrap .box-area .box .right-zone,
  #work .width-wrap .box-area .box:hover .right-zone {
    gap: 35px;
    padding: 20px 0;
  }
}
@media all and (max-width: 500px) {
  #main {
    background: url("../img/index/bg_company.jpg") 29% 8% / 255% no-repeat;
  }
  #main .width-wrap {
    padding: 135.5px 0 62.5px;
  }
  #main p {
    font-size: 14px;
    letter-spacing: -0.28px;
    margin: 14px 0 40px;
  }

  #intro .width-wrap .img-area {
    margin: 30px 0;
  }
  #intro .width-wrap p {
    font-size: 14px;
    letter-spacing: -0.28px;
  }

  #why .width-wrap .box-area {
    margin: 32px auto 0;
  }
  #why .width-wrap .box-area .box {
    min-height: auto;
    height: fit-content;
  }
  #why .width-wrap .box-area .box .icon-zone {
    width: 102px;
  }
  #why .width-wrap .box-area .box .icon-zone img {
    width: 37px;
  }
  #why .width-wrap .box-area .box p:nth-last-child(2) {
    font-size: 18px;
    letter-spacing: -0.36px;
  }

  #work .width-wrap .box-area .box .right-zone,
  #work .width-wrap .box-area .box:hover .right-zone {
    gap: 14px;
  }
  #work .width-wrap .box-area .box .right-zone .text p:first-child {
    margin-bottom: 14px;
  }

  #ready .width-wrap img {
    width: 40px;
  }
  #ready .width-wrap h2 {
    font-size: 28px;
    letter-spacing: -0.56px;
    margin: 20px 0 10px;
  }
  #ready .width-wrap p {
    font-size: 14px;
    letter-spacing: -0.28px;
  }

  #contact .width-wrap .top-area {
    gap: 30px;
  }
  #contact .width-wrap .top-area .img-zone {
    height: 180px;
  }
  #contact .width-wrap .top-area .right-zone p {
    margin: 12px 0 30px;
  }
  #contact .width-wrap .list-area {
    margin-top: 60px;
  }
}
@media all and (max-width: 390px) {
  #main {
    background: url("../img/index/bg_company.jpg") 30% -109% / 239% no-repeat;
  }
}
