@charset "utf-8";

:root {
  --customcar-dark: #2b2b2b;
  --customcar-text: #4e4e4e;
  --customcar-stripe: #e6e6e6;
  --customcar-accent: #a44a2a;
  --customcar-shadow: rgb(112 132 64 / 50%);
}

body.customcar-page {
  color: var(--customcar-text);
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}

.customcar-page header {
  background: rgba(69, 69, 69, 0.78);
}

.customcar-page main {
  overflow: hidden;
  background: #fff;
}

.customcar-page footer {
  background: var(--customcar-dark);
}

.customcar-page footer .footer-cta {
  display: flex;
  justify-content: center;
  gap: 48px;
}

body.customcar-page.is-drawer-open .sp-cta {
  opacity: 0;
  pointer-events: none;
}

.sp-cta {
  gap: 7px;
}

.customcar-fv {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--customcar-dark);
  color: #fff;
}

.customcar-fv picture,
.customcar-fv__image {
  display: block;
  width: 100%;
}

.customcar-fv__image {
  height: min(51.98vw, 998px);
  object-fit: cover;
}

.customcar-fv__content {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + min(13.28vw, 255px));
  left: clamp(48px, 6.72vw, 129px);
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.customcar-fv__content h1 {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(52px, 5.21vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.customcar-fv__content p {
  margin-top: 29px;
  margin-left: 16px;
  font-size: clamp(16px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.4;
}

.customcar-intro {
  min-height: clamp(400px, 29.01vw, 557px);
  display: grid;
  place-items: center;
  padding: 52px 24px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)),
    url("../image/customcar/customcar-bg01.jpg") center / cover no-repeat;
  color: #fff;
}

.customcar-intro__box {
  position: relative;
  width: min(1021px, 72vw);
  min-height: 338px;
  display: grid;
  place-items: center;
  padding: 46px 64px;
  border: 3px solid #fff;
  text-align: center;
}

.customcar-intro__box::before {
  position: absolute;
  inset: 17px;
  content: "";
  border: 3px solid #fff;
  pointer-events: none;
}

.customcar-intro__box p {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 2.857;
}

.customcar-services {
  padding-top: clamp(76px, 7.24vw, 139px);
}

.customcar-feature {
  --feature-height: clamp(650px, 46.9vw, 900px);
  --customcar-stripe-angle: 45deg;
  position: relative;
  height: var(--feature-height);
  max-width: 1920px;
  margin: 0 auto;
  isolation: isolate;
}

.customcar-feature--even,
.customcar-more__item {
  --customcar-stripe-angle: 135deg;
}

.customcar-feature::before,
.customcar-more__item {
  background-image: repeating-linear-gradient(
    var(--customcar-stripe-angle),
    var(--customcar-stripe) 0 27px,
    #fff 27px 52px
  );
}

.customcar-feature::before {
  position: absolute;
  z-index: -1;
  top: 0;
  width: 69.5833%;
  height: min(37.92vw, 728px);
  content: "";
}

.customcar-feature--odd::before {
  left: 0;
  border-radius: 0 140px 0 0;
}

.customcar-feature--even::before {
  right: 0;
  border-radius: 140px 0 0 0;
}

.customcar-feature__copy {
  position: absolute;
  z-index: 3;
  top: 4.444%;
  width: min(65%, 1160px);
}

.customcar-feature--odd .customcar-feature__copy {
  left: clamp(38px, 3.02vw, 58px);
}

.customcar-feature--even .customcar-feature__copy {
  right: clamp(38px, 2.66vw, 51px);
  text-align: right;
}

.customcar-feature__copy h2,
.customcar-more__item h2 {
  display: block;
  color: var(--customcar-text);
  font-size: clamp(27px, 3.125vw, 60px);
  font-weight: 700;
  line-height: 1.35;
}

.customcar-feature__copy h2::before,
.customcar-more__item h2::before {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.22em;
  content: "";
  background: currentColor;
}

.customcar-feature__copy p,
.customcar-more__item p {
  margin-top: 9px;
  font-size: clamp(14px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.786;
}

.customcar-feature__image {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  filter: drop-shadow(16px 16px 0 var(--customcar-shadow));
}

.customcar-feature--odd .customcar-feature__image--large,
.customcar-feature--even .customcar-feature__image--small,
.customcar-feature--carrier .customcar-feature__image--single {
  filter: drop-shadow(-16px 16px 0 var(--customcar-shadow));
}

.customcar-feature__image--small {
  top: 9.444%;
  width: min(29.3%, 562px);
}

.customcar-feature__image--large {
  top: 33.667%;
  bottom: auto;
  width: min(37.3%, 716px);
}

.customcar-feature--odd .customcar-feature__image--small {
  right: 3.802%;
}

.customcar-feature--odd .customcar-feature__image--large {
  left: 33.021%;
}

.customcar-feature--even .customcar-feature__image--small {
  top: 5.556%;
  left: 4.115%;
  width: min(28.4%, 545px);
}

.customcar-feature--even .customcar-feature__image--large {
  right: 35%;
}

.customcar-feature__note {
  position: absolute;
  z-index: 3;
  top: 57.333%;
  right: 2.708%;
  max-width: 27%;
  font-size: clamp(12px, 1.15vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.customcar-feature--dashboard {
  height: clamp(260px, 20.3125vw, 390px);
}

.customcar-feature--dashboard::before {
  height: clamp(160px, 11.3542vw, 218px);
}

.customcar-feature--carrier {
  margin-top: 0;
}

.customcar-feature--carrier::before {
  top: 3%;
  height: min(37.92vw, 728px);
}

.customcar-feature--carrier .customcar-feature__copy {
  top: 10.556%;
}

.customcar-feature__image--single {
  top: 31.111%;
  bottom: auto;
  left: 5.521%;
  width: min(60.5%, 1160px);
}

.customcar-feature:nth-child(2)::before {
  top: 0.889%;
}

.customcar-feature:nth-child(3)::before,
.customcar-feature:nth-child(6)::before {
  top: 3%;
}

.customcar-feature:nth-child(5)::before {
  top: 2.111%;
}

.customcar-feature:nth-child(2) .customcar-feature__copy {
  top: 6.222%;
}

.customcar-feature:nth-child(3) .customcar-feature__copy {
  top: 10.333%;
  left: clamp(38px, 3.44vw, 66px);
}

.customcar-feature:nth-child(4) .customcar-feature__copy {
  top: 4.667%;
  right: clamp(38px, 2.4vw, 46px);
}

.customcar-feature:nth-child(4) .customcar-feature__copy p {
  margin-right: -16px;
}

.customcar-feature:nth-child(5) .customcar-feature__copy {
  top: 11.556%;
  left: clamp(38px, 2.71vw, 52px);
}

.customcar-feature:nth-child(6) .customcar-feature__copy {
  top: 10.556%;
  right: clamp(38px, 2.19vw, 42px);
}

.customcar-feature:nth-child(2) .customcar-feature__image--large {
  top: 30.111%;
}

.customcar-feature:nth-child(3) .customcar-feature__image--small {
  top: 12.333%;
}

.customcar-feature:nth-child(3) .customcar-feature__image--large {
  top: 36.778%;
}

.customcar-feature:nth-child(4) .customcar-feature__image--small {
  top: 4.667%;
  left: 4.167%;
  width: min(28.333%, 544px);
}

.customcar-feature:nth-child(4) .customcar-feature__image--large {
  top: 29.111%;
}

.customcar-more {
  width: min(1336px, calc(100% - 48px));
  margin: clamp(24px, 2.61vw, 50px) auto 0;
}

.customcar-more__item {
  min-height: 218px;
  padding: 40px 105px 38px;
  border-radius: 54px 54px 0 54px;
}

.customcar-more__item + .customcar-more__item {
  min-height: 320px;
  margin-top: 78px;
  border-radius: 54px 0 54px 54px;
}

.customcar-more__item h2 {
  font-size: clamp(25px, 3.125vw, 60px);
}

.customcar-more__item p {
  margin-left: 3px;
}

.customcar-actions {
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: clamp(88px, 7.4vw, 142px) 24px clamp(120px, 9.06vw, 174px);
}

.customcar-actions a {
  width: min(400px, 42vw);
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--customcar-accent);
  color: #fff;
  font-size: clamp(16px, 1.46vw, 28px);
  font-weight: 700;
  text-align: center;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.customcar-actions a:hover {
  filter: brightness(0.88);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .customcar-page .gnav-toggle {
    background: var(--customcar-dark);
  }

  .customcar-feature {
    --feature-height: clamp(480px, 58vw, 700px);
  }
}

@media (max-width: 768px) {
  .customcar-page header {
    background: rgba(82, 82, 82, 0.8);
  }

  .customcar-page footer .footer-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .customcar-page footer .footer-contact-btn {
    width: 200px;
    min-height: 50px;
    align-items: center;
  }

  .customcar-fv__image {
    height: auto;
    object-fit: initial;
  }

  .customcar-fv__content {
    top: calc(var(--header-h) + min(27.69vw, 108px));
    left: 24px;
    max-width: calc(100% - 48px);
  }

  .customcar-fv__content h1 {
    font-size: clamp(42px, 11.54vw, 45px);
    letter-spacing: -0.045em;
  }

  .customcar-fv__content p {
    margin-top: 20px;
    margin-left: 0;
    font-size: 14px;
  }

  .customcar-intro {
    min-height: 328px;
    padding: 36px 27px;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)),
      url("../image/customcar/customcar-bg01sp.jpg");
  }

  .customcar-intro__box {
    width: 100%;
    min-height: 240px;
    padding: 42px 24px;
    border-width: 2px;
  }

  .customcar-intro__box::before {
    inset: 11px;
    border-width: 2px;
  }

  .customcar-intro__box p {
    font-size: clamp(13px, 4.11vw, 16px);
    line-height: 2.5;
  }

  .customcar-services {
    padding-top: 86px;
  }

  .customcar-feature {
    --feature-height: clamp(271px, 69.49vw, 480px);
    width: 100%;
  }

  .customcar-feature--dashboard {
    height: clamp(119px, 30.51vw, 168px);
  }

  .customcar-feature--dashboard::before {
    height: clamp(54px, 13.85vw, 76px);
  }

  .customcar-feature::before {
    top: 0;
    width: 100%;
    height: clamp(206px, 52.82vw, 292px);
    background-image: repeating-linear-gradient(
      var(--customcar-stripe-angle),
      var(--customcar-stripe) 0 8px,
      #fff 8px 15px
    );
  }

  .customcar-feature:nth-child(2)::before {
    top: -0.369%;
  }

  .customcar-feature:nth-child(3)::before,
  .customcar-feature:nth-child(4)::before {
    top: 1.476%;
  }

  .customcar-feature:nth-child(4)::before {
    height: clamp(220px, 56.41vw, 292px);
  }

  .customcar-feature:nth-child(5)::before {
    top: 0.391%;
  }

  .customcar-feature--odd::before {
    border-radius: 0 95px 0 0;
  }

  .customcar-feature--even::before {
    border-radius: 95px 0 0 0;
  }

  .customcar-feature__copy,
  .customcar-feature--carrier .customcar-feature__copy {
    top: 5.535%;
    width: 58%;
  }

  .customcar-feature:nth-child(1) .customcar-feature__copy {
    left: 10px;
  }

  .customcar-feature:nth-child(2) .customcar-feature__copy {
    top: 4.797%;
    right: 13px;
  }

  .customcar-feature:nth-child(2) .customcar-feature__copy p {
    margin-right: -5px;
  }

  .customcar-feature:nth-child(3) .customcar-feature__copy {
    top: 5.535%;
    left: 7px;
  }

  .customcar-feature:nth-child(4) .customcar-feature__copy {
    top: 7.011%;
    right: 18px;
  }

  .customcar-feature:nth-child(4) .customcar-feature__copy p {
    margin-right: -10px;
  }

  .customcar-feature:nth-child(5) .customcar-feature__copy {
    top: 7.031%;
    left: 12px;
  }

  .customcar-feature__copy h2,
  .customcar-more__item h2 {
    font-size: clamp(16px, 4.1vw, 25px);
    line-height: 1.25;
  }

  .customcar-feature__copy p,
  .customcar-more__item p {
    margin-top: 3px;
    font-size: clamp(8px, 2.05vw, 13px);
    line-height: 1.25;
  }

  .customcar-feature:nth-child(1) .customcar-feature__image--small {
    top: 6.642%;
    right: 4.872%;
    width: min(42.821%, 225px);
  }

  .customcar-feature:nth-child(1) .customcar-feature__image--large {
    top: 38.007%;
    bottom: auto;
    left: 7.179%;
    width: min(52.564%, 290px);
  }

  .customcar-feature:nth-child(2) .customcar-feature__image--small {
    top: 7.011%;
    left: 4.103%;
    width: min(43.59%, 225px);
  }

  .customcar-feature:nth-child(2) .customcar-feature__image--large {
    top: 32.103%;
    bottom: auto;
    right: 4.103%;
    width: min(54.872%, 290px);
  }

  .customcar-feature:nth-child(3) .customcar-feature__image--small {
    top: 2.952%;
    right: 4.359%;
    width: min(45.641%, 225px);
  }

  .customcar-feature:nth-child(3) .customcar-feature__image--large {
    top: 36.531%;
    bottom: auto;
    left: 3.59%;
    width: min(56.154%, 290px);
  }

  .customcar-feature:nth-child(4) .customcar-feature__image--small {
    top: 11.439%;
    left: 4.103%;
    width: min(43.846%, 225px);
  }

  .customcar-feature:nth-child(4) .customcar-feature__image--large {
    top: 32.472%;
    bottom: auto;
    right: 3.846%;
    width: min(53.333%, 290px);
  }

  .customcar-feature__note {
    display: none;
  }

  .customcar-feature--carrier {
    display: none;
  }

  .customcar-feature--dashboard .customcar-feature__copy h2 {
    font-size: clamp(16px, 4.1vw, 25px);
    white-space: nowrap;
  }

  .customcar-feature:nth-child(4) .customcar-feature__copy h2 {
    font-size: clamp(16px, 4.1vw, 25px);
    white-space: nowrap;
  }

  .customcar-feature__image {
    filter: drop-shadow(6px 6px 0 var(--customcar-shadow));
  }

  .customcar-feature--odd .customcar-feature__image--large,
  .customcar-feature--even .customcar-feature__image--small,
  .customcar-feature--carrier .customcar-feature__image--single {
    filter: drop-shadow(-6px 6px 0 var(--customcar-shadow));
  }

  .customcar-more {
    width: min(332px, calc(100% - 58px));
    margin-top: 0;
  }

  .customcar-more__item {
    height: 54px;
    min-height: 54px;
    padding: 10px 26px 0;
    border-radius: 20px 20px 0 20px;
    background-image: repeating-linear-gradient(
      var(--customcar-stripe-angle),
      var(--customcar-stripe) 0 5px,
      #fff 5px 10.5px
    );
  }

  .customcar-more__item + .customcar-more__item {
    height: 79px;
    min-height: 79px;
    margin-top: 20px;
    padding-top: 13px;
    padding-bottom: 0;
    border-radius: 20px 0 20px 20px;
  }

  .customcar-more__item p {
    margin-top: 2px;
    margin-left: 1px;
    font-size: clamp(8px, 2.05vw, 11px);
    line-height: 1.375;
  }

  .customcar-more__item h2 {
    font-size: 14px;
    white-space: nowrap;
  }

  .customcar-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 41px 24px 80px;
  }

  .customcar-actions a {
    width: min(212px, 54.4vw);
    min-height: 56px;
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customcar-actions a {
    transition: none;
  }
}
