:root {
  --elevation-1: 0 2px 6px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.15), 0 16px 48px rgba(0, 0, 0, 0.15);
  --elevation-2: 0 2px 6px 1px rgba(0, 0, 0, 0.08), 0 4px 12px 2px rgba(0, 0, 0, 0.08), 0 8px 24px 4px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  min-width: 0px;
  min-height: 0px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--off-white);
  letter-spacing: 0.04em;
  font-weight: 500;
}

#root {
  max-width: 1920px;
  margin: 0 auto;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: inherit;
}

img, iframe {
  max-width: 100%;
}
iframe {
  border: none;
  box-shadow: none;
}

a, a:hover {
  color: var(--ink);
}

[id] {
  scroll-margin-top: 7.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

button {
  position: relative;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  border: 0;
  outline: none;
  background: none;
  padding: 0;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.5rem;
  list-style: disc outside none;

  & > p {
    margin: 0;
    display: list-item;
  }
}

.webgene-pagination {
  & ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    margin: 0;

    & li {
      & a {
        display: inline-block;
        width: 3rem;
        line-height: 3rem;
        text-align: center;
        background-color: hsl(from var(--ink) h s l / 30%);
        color: var(--snow);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

      &.selected {
        & a {
          background-color: var(--coral);
          &:hover {
          }
        }
      }
    }
  }
}

.webgene-no-items {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
}

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.thumbnail--4x3 {
    padding-top: 75%;
  }

  & img,
  &:empty::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:empty::before {
    content: "";
    background-image: url("/system_panel/uploads/images/ogp.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}

.article-body {
  & > p {
    margin: 1em 0;
  }

  & > h1,
  & > h2,
  & > h3,
  & > h4,
  & > h5,
  & > h6 {
    margin: 2em 0 1em;
  }

  & > *:first-child {
    margin-top: 0;
  }

  & > *:last-child {
    margin-bottom: 0;
  }

  & a,
  & a:hover {
    color: var(--blue);
    text-decoration: underline;
  }
}

.backdrop-object {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 1.25rem 3.75rem 1.25rem;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 30%);
  @media screen and (min-width: 768px) {
    padding: 11.25rem 2.5rem 5rem 2.5rem ;
  }
  @media screen and (min-width: 1024px) {
    padding: 12.5rem 3.75rem 6.25rem 3.75rem;
  }
  @media screen and (min-width: 1200px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  
  & .page-hero__dec-text {
    position: absolute;
    bottom: 1.25rem;
    right: 0;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dec-text-color, var(--logo-blue));
    opacity: 20%;
    white-space: nowrap;
    @media screen and (min-width: 768px) {
      right: 1.25rem;
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 5rem;
    }
    @media screen and (min-width: 1200px) {
      right: 2.5rem;
      font-size: 7.5rem;
    }
    &.page-hero__dec-text--orange {
    --dec-text-color: var(--orange);
    }
    &.page-hero__dec-text--teal {
      --dec-text-color: var(--teal);
    }
    &.page-hero__dec-text--purple {
      --dec-text-color: var(--purple);
    }
    &.page-hero__dec-text--pink {
      --dec-text-color: var(--pink);
    }
    &.page-hero__dec-text--blue {
      --dec-text-color: var(--blue);
    }
  }
  
  & .page-hero__top-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity ease 200ms;
    &::before {
      content: "";
      display: block;
      background-color: var(--dot-color, var(--logo-blue));
      height: 0.5rem;
      width: 0.5rem;
      border-radius: 9999px;
    }
    &:hover {
      opacity: 85%;
      color: var(--ink);
      text-decoration: none;
    }
    &.page-hero__top-link--orange {
    --dot-color: var(--orange);
    }
    &.page-hero__top-link--teal {
      --dot-color: var(--teal);
    }
    &.page-hero__top-link--purple {
      --dot-color: var(--purple);
    }
    &.page-hero__top-link--pink {
      --dot-color: var(--pink);
    }
    &.page-hero__top-link--blue {
      --dot-color: var(--blue);
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  &.section-title--orange {
    --title-color: var(--orange);
  }
  &.section-title--teal {
    --title-color: var(--teal);
  }
  &.section-title--purple {
    --title-color: var(--purple);
  }
  &.section-title--pink {
    --title-color: var(--pink);
  }
  &.section-title--blue {
    --title-color: var(--blue);
  }
  & .section-title__main {
    position: relative;
    padding: 0.5rem 0.75rem;
    background-color: var(--title-color, var(--logo-blue));
    color: var(--snow);
    line-height: 1.25;
    font-weight: 700;
    font-size: 1.5rem;
    align-self: start;
    @media screen and (min-width: 768px) {
      font-size: 2rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  & .section-title__sub {
    position: relative;
    line-height: 1.25;
    font-weight: 700;
    font-size: 1.25rem;
    &.section-title__sub--sm {
      font-size: 1.125rem;
    }
    &.section-title__sub--lg {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
      &.section-title__sub--sm {
        font-size: 1.5rem;
      }
      &.section-title__sub--lg {
        font-size: 2rem;
      }
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
      &.section-title__sub--sm {
        font-size: 1.875rem;
      }
      &.section-title__sub--lg {
        font-size: 2.25rem;
      }
    }
  }
  &.section-title--center {
    & .section-title__main {
      align-self: center;
    }
    & .section-title__sub {
      text-align: center;
    }
  }
}

.section-dec-text {
  position: relative;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--snow);
  font-family: var(--font-display);
  @media screen and (min-width: 768px) {
    white-space: nowrap;
    position: absolute;
  }
  &.section-dec-text--company-intro {
    font-size: 3rem;
    @media screen and (min-width: 768px) {
      font-size: 5rem;
      top: 5rem;
      left: 50%;
      transform: translateX(-50%);
    }
    @media screen and (min-width: 1024px) {
      font-size: 7.5rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 10rem;
    }
  }
  &.section-dec-text--on-title {
    font-size: 3rem;
    @media screen and (min-width: 768px) {
      font-size: 5rem;
      top: -0.75em;
      left: 50%;
      transform: translateX(-40%);
    }
    @media screen and (min-width: 1024px) {
      font-size: 7.5rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 10rem;
    }
    &.section-dec-text--on-title-off-white {
      color: var(--off-white);
    }
    &.section-dec-text--on-title-start {
      @media screen and (min-width: 768px) {
        left: 50%;
        transform: translateX(calc(-50% - 3.75rem));
      }
  	}
  }
  &.section-dec-text--footer-contact {
    font-size: 2.875rem;
    text-align: end;
    color: var(--green);
    opacity: 60%;
    @media screen and (min-width: 768px) {
      font-size: 6rem;
      top: 1.25rem;
      right: 1.25rem
    }
    @media screen and (min-width: 1024px) {
      font-size: 8rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 12.5rem;
    }
  }
  &.section-dec-text--service-intro {
    font-size: 3rem;
    @media screen and (min-width: 768px) {
      font-size: 5rem;
      top: -0.75em;
      left: -2rem;
    }
    @media screen and (min-width: 1024px) {
      top: 2rem;
      left: -3rem;
      z-index: 1;
    }
    @media screen and (min-width: 1200px) {
      top: 0;
      font-size: 8rem;
    }
  }
  &.section-dec-text--service-information {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    font-size: 3rem;
    color: var(--text-color, var(--blue));
    opacity: 40%;
    @media screen and (min-width: 768px) {
      font-size: 5rem;
      top: 1.25rem;
      left: 1.25rem
    }
    @media screen and (min-width: 1024px) {
      font-size: 7.5rem;
    }
    &.section-dec-text--service-information--orange {
      --text-color: var(--orange);
    }
    &.section-dec-text--service-information--teal {
      --text-color: var(--teal);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--snow);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: var(--elevation-2);
  transition: all ease 200ms;
  &::before {
    content: "";
    display: block;
    background-color: var(--dot-color, var(--logo-blue));
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
  }
  &:hover {
    opacity: 85%;
    transform: scale(0.95);
    color: var(--ink);
    text-decoration: none;
  }
  &.button--orange {
    --dot-color: var(--orange);
  }
  &.button--teal {
    --dot-color: var(--teal);
  }
  &.button--purple {
    --dot-color: var(--purple);
  }
  &.button--pink {
    --dot-color: var(--pink);
  }
  &.button--blue {
    --dot-color: var(--blue);
  }
  &.button--youtube {
    --dot-color: #ff0000;
  }
  &.button--ink {
    --dot-color: var(--snow);
    color: var(--snow);
    background-color: var(--ink);
    &:hover {
      color: var(--snow);
    }
  }
}

.elevation-1 {
  box-shadow: var(--elevation-1);
  &.elevation-1--text {
    box-shadow: none;
    text-shadow: var(--elevation-1);
  }
}

.elevation-2 {
  box-shadow: var(--elevation-2);
  &.elevation-2--text {
    box-shadow: none;
    text-shadow: var(--elevation-2);
  }
}

.footer-contact-link-image {
  position: absolute;
  right: -1.25rem;
  & img {
    width: 100%;
  }
  &.footer-contact-link-image--1 {
    width: 19.5rem;
    bottom: -2.5rem;
  }
  &.footer-contact-link-image--2 {
    width: 19.375rem;
    bottom: -3.75rem;
  }
}

.faq-category-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(to bottom, hsl(from var(--filter-color, var(--logo-blue)) h s l / 60%), hsl(from var(--filter-color, var(--logo-blue)) h s l / 60%)), 
      linear-gradient(to bottom, hsl(0 0 0 / 40%), hsl(0 0 0 / 40%));
    pointer-events: none;
  }
  & img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  &.faq-category-image--orange {
    --filter-color: var(--orange);
  }
  &.faq-category-image--teal {
    --filter-color: var(--teal);
  }
  &.faq-category-image--purple {
    --filter-color: var(--purple);
  }
  &.faq-category-image--pink {
    --filter-color: var(--pink);
  }
  &.faq-category-image--blue {
    --filter-color: var(--blue);
  }
}

.service-information-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(0 0 0 / 60%);
    pointer-events: none;
  }
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.service-intro-dec {
  position: absolute;
  width: 53.3333%;
  max-width: 20rem;
  display: none;
  & img {
    width: 100%;
  }
  @media screen and (min-width: 768px) {
    display: block;
  }
  &.service-intro-dec--construct {
    right: -8rem;
    bottom: 2rem;
    @media screen and (min-width: 1024px) {
      bottom: -5rem;
    }
    @media screen and (min-width: 1200px) {
      right: -10rem;
    }
    @media screen and (min-width: 1440px) {
      right: -5rem;
    }
  }
  &.service-intro-dec--maintenance {
    right: -15rem;
    bottom: 2rem;
    @media screen and (min-width: 1024px) {
      right: -10rem;
      bottom: -5rem;
    }
    @media screen and (min-width: 1200px) {
      right: -14rem;
    }
  }
  &.service-intro-dec--rental-cer {
    right: -10rem;
    bottom: 2rem;
    @media screen and (min-width: 1024px) {
      right: -5rem;
      bottom: -5rem;
    }
    @media screen and (min-width: 1200px) {
      right: -7rem;
    }
  }
}

.title-dec-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  @media screen and (min-width: 1024px) {
    display: block;
  }
  & img {
    width: 100%;
  }
  &.title-dec-image--car {
    width: 25.926%;
    max-width: 17.5rem;
    right: -10rem;
    @media screen and (min-width: 1024px) {
      display: block;
    }
  }
  &.title-dec-image--woman {
    width: 18.5185%;
    max-width: 12.5rem;
    right: -1.25rem;
    z-index: 1;
  }
}

.japan-first-stamp {
  align-self: center;
  position: relative;
  &::after {
    content: "";
    display: block;
    width: 5.125rem;
    height: 2rem;
    background-image: url(/system_panel/uploads/images/japan-first-stamp.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(-10.36deg);
    position: absolute;
    top: -1.25rem;
    left: -2.5rem;
  }
}

.news-category .webgene-blog {
  display: flex;
  flex-direction:column;
  gap: 1.25rem;
  align-items: center;
}

.news-list .webgene-blog {
  display: grid;
  gap: 2rem;
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    & .webgene-pagination {
      grid-column: 1 / span 2;
    }
  }
  @media screen and (min-width: 1200px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    & .webgene-pagination {
      grid-column: 1 / span 3;
    }
  }
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow: auto;
  & .swiper-slide {
    min-width: 95%;
  }
}

.yard-illust {
  position: relative;
  align-self: center;
  width: 160px;
  
  @media screen and (min-width: 1024px) {
    position: absolute;
    bottom: -1.25rem;
    right: -10rem;
  }
}

.search-form {
  & .search-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.25;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      background: var(--purple);
      border-radius: 9999px;
    }
  }
  & .search-title-wrapper {
    margin-bottom: 0.75rem;
  }
  & .webgene-search-form-block {
    & + .webgene-search-form-block {
      margin-top: 1.5rem;
    }
  }
  & .search-area-wrapper {
    & .search-contents-wrapper {
      border-bottom: 1px solid hsl(from var(--ink) h s l / 30%);
      padding-bottom: 1rem;
    }
  }
  
  & input[type="text"],
  & input[type="email"],
  & input[type="number"],
  & textarea,
  & select {
    width: 100%;
    border: 1px solid var(--light-gray);
    border-radius: 0.25rem;
    font-size: 1rem;
    padding: 0 1rem;
    color: var(--ink);
    line-height: 3rem;
    height: 3rem;

    &:focus {
      outline: none;
    }
  }
  
  & label {
    margin-bottom: 0;
  }
  & .search-contents-wrapper {
    &:has(input[type="checkbox"]), &:has(input[type="radio"]) {
      display: flex;
      flex-wrap: wrap;
      column-gap: 1rem;
      row-gap: 0.5rem;
      
      & label {
        display: inline-flex;
        gap: 0.5rem;
        align-items: center;
      }
    }
  }
}


.car-list {
  & .thumbnail {
    overflow: hidden;
    border-radius: 1rem;
    padding-top: 75%;
  }
  
  & .webgene-blog {
    display: grid;
    gap: 2rem;
    
    @media screen and (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media screen and (min-width: 1200px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  & .webgene-pagination, & .webgene-no-items {
    margin-top: 3rem;
    
    & li.selected a {
      background-color: var(--purple);
    }
    
    @media screen and (min-width: 768px) {
      grid-column: span 2 / span 2;
    }
    @media screen and (min-width: 1200px) {
      grid-column: span 3 / span 3;
    }
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
}
.spec-list {
  & .spec-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.25;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      background: var(--purple);
      border-radius: 9999px;
    }
  }
}

.item-images.swiper {
  & .swiper-wrapper {
    height: auto;
  }
  & .swiper-pagination {
    position: relative;
    margin-top: 0.75rem;
  }
}
