@charset "utf-8";

.service-top{
  margin:100px 0 200px;
  text-align:center;
}

.service-top h2{
  font-size:clamp(1.25rem, 0.625rem + 2.08vw, 2.5rem);
  margin-bottom:2.5rem;
}

.service-top-img {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 5rem auto 0;
  aspect-ratio: 1380 / 660;
}

.service-car {
  position: absolute;
  width: 62%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}

/* ========================
アンカー共通
======================== */

.service-link {
  position: absolute;
  display: block;
  z-index: 2;
}

.service-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.service-link:hover img {
  transform: translateY(-5px);
}

/* 線画像 */
.service-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}


/* ========================
01 カスタム
======================== */

.service-link01 {
  top: 13%;
  left: 2%;
  width: 18%;
}

.service-link01::after {
  top: 82%;
  left: 48%;
  width: 130%;
  aspect-ratio: 260 / 170;
  background-image: url("https://divercar.jp/system_panel/uploads/images/20260930171848421876.png");
}


/* ========================
02 車買取
======================== */

.service-link02 {
  top: 2%;
  left: 23%;
  width: 18%;
}

.service-link02::after {
  top: 82%;
  left: 48%;
  width: 115%;
  aspect-ratio: 220 / 200;
  background-image: url("https://divercar.jp/system_panel/uploads/images/20260930171848231764.png");
}


/* ========================
03 もしもの時のサポート
======================== */

.service-link03 {
  top: 2%;
  left: 54%;
  width: 18%;
}

.service-link03::after {
  top: 82%;
  left: 46%;
  width: 100%;
  aspect-ratio: 180 / 180;
  background-image: url("https://divercar.jp/system_panel/uploads/images/20260930171848505776.png");
}


/* ========================
04 メンテナンス
======================== */

.service-link04 {
  top: 18%;
  right: 6%;
  width: 18%;
}

.service-link04::after {
  top: 83%;
  right: 47%;
  width: 100%;
  aspect-ratio: 200 / 180;
  background-image: url("https://divercar.jp/system_panel/uploads/images/20260930171848760256.png");
}

.service-bg{
  width:90%;
  margin:0 auto 7.5rem;
  background:#EAE3D6;
  padding:5rem 10%;
}

.service-bg h2{
  padding-bottom:1.5rem;
  margin-bottom:3rem;
  font-size:clamp(1.5rem, 1rem + 1.67vw, 3rem);
  border-bottom:1px solid #707070;
}

.service-bg h2 strong{
  padding:0 1.5rem;
  background:#FF7A59;
}

.service-wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:5rem;
}

.service-txt{
  width:40%;
}

.service-txt h3{
  margin-bottom:2rem;
  font-size:clamp(1.25rem, 0.875rem + 1.25vw, 2rem);
}

.service-wrap img{
  width:55%;
  aspect-ratio: 740 / 360;
}

.service-white{
  padding:5rem 5% 3rem;
  background:#FFFFFF;
  border-radius:10px;
  position:relative;
  margin-top:3.5rem;
}

.service-white .label{
  position:absolute;
  top:0;
  left:0;
  padding:10px 1.5rem;
  border-radius:10px 0 0 0;
  font-size:clamp(1.125rem, 0.938rem + 0.63vw, 1.5rem);
  background:#2F2F2F;
  color:#fff;
  font-weight:400;
}

.service-icon{
  display: flex;
  justify-content: space-between;
  width:90%;
  margin:0 auto;
}

.service-icon-item{
  width:20%;
  max-width:190px;
  text-align:center;
  font-size:clamp(1.25rem, 0.875rem + 1.25vw, 2rem);
  object-fit: cover;
}

.service-icon-item img{
  margin-bottom:1rem;
  border-radius:999vh;
}

.service-detail-wrap{
  display: flex;
  justify-content: space-between;
}

.service-detail-item{
  width:22%;
  background:#EDEBE4;
  border-radius:10px;
  padding:20px 1rem 1.5rem;
  text-align:center;
  position:relative;
}

.service-detail-item:not(:last-child)::before{
  content:"";
  position:absolute;
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width:27px;
  height:24px;
  background:url(https://divercar.jp/system_panel/uploads/images/20260929210558311239.png) no-repeat center/contain;
}

.service-detail-item .accent{
  font-size:clamp(1.125rem, 0.938rem + 0.63vw, 1.5rem);
  line-height:1;
}

.service-detail-item img{
  width:100px;
  margin:2rem auto 2.5rem;
  aspect-ratio: 1 / 1;
}

.service-detail-item h4{
  font-size:clamp(1.125rem, 1.063rem + 0.21vw, 1.25rem);
  margin-bottom:10px;
}

.service-detail-item h4 + p{
  font-size:14px;
}

.service-icon-five{
  flex-wrap:wrap;
  gap:2rem 5%;
  justify-content: center;
}

.service-icon-five .service-icon-item {
  width: 30%;
  max-width: 270px;
}

.service-icon-five .service-icon-item img{
  max-width:180px;
  margin:0 auto 1rem;
}

.service-icon-five p{
  font-size:clamp(1rem, 0.875rem + 0.42vw, 1.25rem);
}

.service-icon-five p:last-child{
  font-size:14px;
}

#maintenance{
  background:#E2DACC;
}

#custom{
  background:#D3CDC3;
}

#support{
  background:#C3BDB5;
}

#support .service-icon-five .service-icon-item{
  width: calc(85% / 4);
}

.service-top-tap{
  display:none;
}

/* ========================
SP
======================== */

@media screen and (max-width: 767px) {

  .service-top-img {
    aspect-ratio: 380 / 400;
  }

  /*
  中央画像自体がPC版と同じ画像なら、
  SPでは下側に寄せる想定
  */
  .service-car {
    width: 100%;
  }

  .service-link {
    width: 31%;
  }

  /* カスタム */
  .service-link01 {
    top: 27%;
    left: 0;
  }

  .service-link01::after {
    top: 80%;
    left: 30%;
    width: 38%;
    aspect-ratio: 70 / 180;
    background-image: url("https://divercar.jp/system_panel/uploads/images/20260930172109699539.png");
  }

  /* 車買取 */
  .service-link02 {
    top: 7%;
    left: 23%;
  }

  .service-link02::after {
    top: 82%;
    left: 35%;
    width: 70%;
    aspect-ratio: 110 / 210;
    background-image: url("https://divercar.jp/system_panel/uploads/images/20260930172109187240.png");
  }

  /* もしもの時のサポート */
  .service-link03 {
    top: 27%;
    left: 47%;
  }

  .service-link03::after {
    top: 64%;
    left: 60%;
    width: 65%;
    aspect-ratio: 90 / 170;
    background-image: url("https://divercar.jp/system_panel/uploads/images/20260930172109384785.png");
  }

  /* メンテナンス */
  .service-link04 {
    top: 8%;
    right: 0;
  }

  .service-link04::after {
    top: 46%;
    right: -4%;
    width: 80%;
    aspect-ratio: 90 / 260;
    background-image: url("https://divercar.jp/system_panel/uploads/images/20260930172109583395.png");
  }

}

@media screen and (max-width: 1600px) {
  .service-bg{
    padding: 5rem 5%;
  }
}

@media screen and (max-width: 1400px) {
  .service-bg {
    padding: 5rem 3%;
    width: 95%;
  }
}

@media screen and (max-width: 1279px) {
  .service-detail-wrap{
    flex-wrap: wrap;
    gap: 3rem 5%;
  }
  .service-detail-item {
    width: 47.5%;
  }
  .service-detail-item:not(:last-child)::before{
    right:-9%;
  }
  #support .service-icon-five .service-icon-item {
    width: calc(95% / 2);
  }
}

@media screen and (max-width: 1024px) {
  .service-top .container{
    width:90%;
  }
  .service-detail-item:not(:last-child)::before {
    right: -10%;
  }
  .service-icon-five,
  .service-txt{
    width:100%;
  }
  .service-wrap{
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .service-wrap img {
    width: 100%;
    max-width: 450px;
  }
  .service-icon-five .service-icon-item {
    width: 47.5%;
  }
}

@media screen and (max-width: 767px) {
  .service-top {
    margin: 40px 0 80px;
  }
  .service-top h2{
    margin-bottom: 1.5rem;
  }
  .service-top-img{
    margin: 1rem auto 0;
  }
  .service-bg {
    padding: 2rem 5%;
    width: 100%;
    margin: 0 auto 3.5rem;
  }
  .service-bg h2 {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
  .service-txt h3 {
    margin-bottom: 1rem;
  }
  .service-wrap{
    margin-bottom: 2rem;
  }
  .service-white{
    margin-top: 2.5rem;
  }
  .service-icon{
    flex-wrap:wrap;
    gap:1rem 5%;
  }
  .service-icon-item{
    width:47.5%;
  }
  .service-detail-item{
    width:100%;
  }
  .service-detail-item:not(:last-child)::before{
    display:none;
  }
  .service-detail-wrap{
    gap:1rem;
  }
  #support .service-icon-five{
    gap:2rem;
  }
  .service-icon-five .service-icon-item,
  #support .service-icon-five .service-icon-item{
    width:100%;
  }
  .service-detail-item img {
    margin: 1rem auto 0.5rem;
  }
  .service-top-tap{
    display:block;
    background:#C6C6C6;
    font-size:12px;
    margin: 2rem auto -1rem;
    padding: 0 8px;
    width: fit-content;
  }
}