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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  letter-spacing: 0.04em;
}

#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: 3.75rem;
}

.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: var(--ink);
        color: var(--snow);
        border-radius: 1rem;
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

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

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

.thumbnail {
  position: relative;
  padding-top: 66.6666%;

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

  & 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%;
}

.hero {
  border-bottom-right-radius: 2.5rem;
  border-bottom-left-radius: 2.5rem;
  height: 32.5rem;

  @media screen and (min-width: 1024px) {
    border-bottom-right-radius: 5rem;
    border-bottom-left-radius: 5rem;
  }
}
.access-section {
  border-top-right-radius: 2.5rem;
  border-top-left-radius: 2.5rem;

  @media screen and (min-width: 1024px) {
    border-top-right-radius: 5rem;
    border-top-left-radius: 5rem;
  }
}

.button {
  appearance: none;
  border-radius: 9999px;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  min-width: 12.5rem;
  transition: all 250ms ease;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--button-fg);
  background: var(--button-bg);

  &:hover {
    text-decoration: none;
    opacity: 0.85;
    color: var(--button-fg);
  }

  &.button--orange {
    --button-bg: var(--orange);
    --button-fg: var(--snow);
  }
  &.button--white {
    --button-bg: var(--snow);
    --button-fg: var(--ink);
  }
  &.button--icon-r {
    padding-right: 1.25rem;
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  & .section-title__img {
    width: 3.75rem;
    height: 3.75rem;
  }
  &.section-title--small .section-title__img {
    width: 2.5rem;
    height: 2.5rem;
  }
  & .section-title__en {
    line-height: 1.25;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
  }
  & .section-title__ja {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }
  &.section-title--small .section-title__en {
    font-size: 1.5rem;
  }
  @media screen and (min-width: 768px) {
    & .section-title__en {
      font-size: 2.5rem;
    }
    &.section-title--small .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 1rem;
    }
    &.section-title--small .section-title__en {
      font-size: 0.875rem;
    }
  }
}

.access-map {
  position: relative;
  height: 15rem;
  @media screen and (min-width: 768px) {
    height: 22.5rem;
  }

  & iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

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

.swiper-main {
  & .swiper-slide img {
    object-fit: cover;
    aspect-ratio: 3 / 2;
    width: 100%;
    border-radius: 1rem;
  }
}
.swiper-thumbs:not(.swiper-main) {
  & .swiper-slide img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
  }
}

.car-list__buttons {
  & a {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: var(--ink-alt);
    color: var(--snow);
    border-radius: 9999px;
    
    &:hover {
      color: var(--snow);
      text-decoration: none;
    }
    
    &[data-target="carsensor"] {
      background-color: #FF6010;
    }
    &[data-target="goonet"] {
      background-color: #E00923;
    }
    &[disabled] {
      cursor: not-allowed;
      opacity: 0.4;
      pointer-events: none;
    }
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    
  }
}

.heading-underlined {
    padding-bottom: 0.5rem;
    position: relative;
    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 8px;
      background-image: url("/system_panel/uploads/images/group-line.png");
      background-repeat: no-reepat;
      background-size: 100% 100%;
    }
}
.group-title {
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  @media screen and (min-width: 768px) {
    gap: 1.25rem;
  }
  
  &::before, &::after {
    content: "";
    display: block;
    width: 1.25rem;
    height: 1.75rem;
    background-repeat: no-reepat;
    background-size: 100% 100%;
    
    @media screen and (min-width: 768px) {
      width: 2rem;
      height: 2.75rem;
    }
    
    @media screen and (min-width: 1024px) {
      width: 3rem;
      height: 3.4375rem;
    }
  }
  
  &::before {
    background-image: url("/system_panel/uploads/images/group-title-bar--left.svg");
  }
  &::after {
    background-image: url("/system_panel/uploads/images/group-title-bar--right.svg");
  }
  
  & .group-title__wrapper {
    display: flex;
    gap: 0.25rem;
    align-items: baseline;
  }
  & .group-title__main {
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 2.25rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3rem;
    }
  }
  & .group-title__sub {
    font-size: 1rem;
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  
  &.group-title--red {
    &::before {
      background-image: url("/system_panel/uploads/images/group-title-bar-red--left.svg");
    }
    &::after {
      background-image: url("/system_panel/uploads/images/group-title-bar-red--right.svg");
    }
    & .heading-underlined::before {
      background-image: url("/system_panel/uploads/images/group-line-red.png");
    }
  }
}

.home-hero {
  height: auto;
  min-height: calc(var(--vh, 1vh) * 100);
  
  & .home-hero__image {
    min-height: 30rem;
  }
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  
  & > img {
    object-fit: cover;
    border-radius: 2rem;
    width: 100%;
    height: 100%;
    &:first-child {
      grid-column: 2 / span 5;
      grid-row: 1 / span 3;
    }
    &:last-child {
      grid-column: 1 / span 4;
      grid-row: 4 / span 2;
    }
  }
}
.home-about-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  
  & > img {
    object-fit: cover;
    border-radius: 2rem;
    width: 100%;
    height: 100%;
    &:nth-of-type(1) {
      grid-column: 1 / span 3;
      grid-row: 1 / span 2;
    }
    &:nth-of-type(2) {
      grid-column: 4 / span 2;
      grid-row: 1 / span 2;
    }
    &:nth-of-type(3) {
      grid-column: 1 / span 5;
      grid-row: 3 / span 1;
    }
  }
}

.home-task-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  & > .underlined {
    padding-bottom: 2px;
    position: relative;
    color: var(--red);
    font-weight: 700;
    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background-image: url("/system_panel/uploads/images/group-line-red.png");
      background-repeat: no-reepat;
      background-size: 100% 100%;
    }
  }
}


