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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--snow);
}

#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: hsl(from var(--ink) h s l / 20%);
        font-weight: 700;
        &:hover {
          text-decoration: none;
        }
      }

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

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

.thumbnail {
  position: relative;

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

  & 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;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 15rem 1.25rem 2.5rem 1.25rem;
  @media screen and (min-width: 768px) {
    padding: 15rem 2.5rem 3.75rem 2.5rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 15rem 5rem 5rem 5rem;
  }
  @media screen and (min-width: 1200px) {
    padding-right: 7.5rem;
    padding-left: 7.5rem;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    @media screen and (min-width: 768px) {
      align-items: start;
      gap: 0.25rem;
    }
    
    & .page-hero__title-en {
      position: relative;
      padding: 0.375rem 0.5rem;
      background-color: var(--green);
      color: var(--gold);
      line-height: 1;
      font-weight: 700;
      font-size: 1.5rem;
      @media screen and (min-width: 768px) {
        margin-left: 1.125rem;
        padding: 0.75rem 1.25rem;
        font-size: 2.5rem;
      }
      @media screen and (min-width: 1024px) {
        margin-left: 1.5rem;
        padding: 1rem 1.5rem;
        font-size: 3rem;
      }
      &::before {
        content: "";
        display: block;
        height: 0.875rem;
        width: 1.5rem;
        background-image: url(/system_panel/uploads/images/20250806130701991428.svg);
        position: absolute;
        bottom: -0.625rem;
        left: 1.875rem;
      }
    }
    
    & .page-hero__title-ja {
      color: var(--snow);
      font-weight: 900;
      line-height: 1.25;
      font-size: 2.5rem;
      @media screen and (min-width: 768px) {
        font-size: 3.75rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 5rem;
      }
    }
  }
  
  & .page-hero__breadcrumb {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    row-gap: 1.25rem;
    column-gap: 0.75rem;
    justify-content: end;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    @media screen and (min-width: 768px) {
      font-size: 1.125rem;
    }
    
    & .page-hero__breadcrumb-link, .page-hero__breadcrumb-text {
      padding: 0.5rem 0.75rem 0.375rem 0.75rem;
      border-radius: 9999px;
      background-color: var(--gold);
      color: var(--green);
    }
    & .page-hero__breadcrumb-link {
      transition: all ease 200ms;
      &:hover {
        text-decoration: none;
        color: (--green);
        opacity: 85%;
        transform: scale(0.95);
      }
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  &.section-title--no-gap {
    gap: 0;
  }
  &.section-title--home-intro {
    gap: 3rem;
  }
  
  & .section-title__main {
    position: relative;
    align-self: center;
    padding: 0.375rem 0.5rem;
    background-color: var(--gold);
    color: var(--green);
    line-height: 1;
    font-weight: 700;
    font-size: 1rem;
    transform: translateX(1.25rem);
    @media screen and (min-width: 768px) {
      margin-left: 1.125rem;
      padding: 0.75rem 1.25rem;
      font-size: 2.5rem;
      transform: translateX(3rem);
    }
    @media screen and (min-width: 1024px) {
      margin-left: 1.5rem;
      padding: 1rem 1.5rem;
      font-size: 3rem;
      transform: translateX(4rem);
    }
    & h1, & h2, & h3, & h4, & h5, & h6 {
      font-size: 1rem;
      @media screen and (min-width: 768px) {
        font-size: 2.5rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 3rem;
      }
    }
    &::before {
      content: "";
      display: block;
      height: 0.875rem;
      width: 1.5rem;
      background-image: url(/system_panel/uploads/images/20250806132837568047.svg);
      position: absolute;
      bottom: -0.625rem;
      right: 1.875rem;
    }
    
    & .section-title__main-ja {
      color: var(--ink);
      font-weight: 900;
      font-size: 0.75rem;
      @media screen and (min-width: 768px) {
        font-size: 1rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 1.25rem;
      }
    }
    
    &.section-title__main--snow-alt {
      background-color: var(--snow-alt);
      &::before {
        background-image: url(/system_panel/uploads/images/20250806162835324674.svg);
      }
    }
    &.section-title__main--green {
      background-color: var(--green);
      color: var(--gold);
      &::before {
        background-image: url(/system_panel/uploads/images/20250806130701991428.svg);
        bottom: -0.625rem;
        left: 1.875rem;
      }
      & .section-title__main-ja {
        color: var(--snow);
      }
    }
    &.section-title__main--ink {
      background-color: var(--ink);
      color: var(--gold);
      &::before {
        background-image: url(/system_panel/uploads/images/20250807200216530794.svg);
        bottom: -0.625rem;
        left: 1.875rem;
      }
      & .section-title__main-ja {
        color: var(--snow);
      }
    }
    &.section-title__main--shifted-1 {
      align-self: start;
      transform: translateX(7rem);
      @media screen and (min-width: 768px) {
        transform: translateX(15rem);
      }
      @media screen and (min-width: 1024px) {
        align-self: center;
        transform: translateX(-2rem);
      }
    }
    &.section-title__main--shifted-2 {
      @media screen and (min-width: 768px) {
        transform: translateX(9rem);
      }
      @media screen and (min-width: 1024px) {
        transform: translateX(7rem);
      }
      @media screen and (min-width: 1200px) {
        transform: translateX(3rem);
        margin-bottom: -2rem;
      }
    }
    &.section-title__main--shifted-3 {
      @media screen and (min-width: 768px) {
        transform: translateX(9rem);
        margin-bottom: -2rem;
      }
      @media screen and (min-width: 1024px) {
        transform: translateX(14rem);
        margin-bottom: -5rem;
      }
      @media screen and (min-width: 1200px) {
        transform: translateX(9rem);
      }
    }
    &.section-title__main--shifted-4 {
      align-self: start;
      transform: none;
      transform: translateX(2rem);
      @media screen and (min-width: 768px) {
        align-self: center;
        transform: translateX(8rem);
        margin-bottom: -2rem;
      }
      @media screen and (min-width: 1024px) {
        transform: translateX(6.5rem);
        margin-bottom: -4rem;
      }
      @media screen and (min-width: 1200px) {
        transform: translateX(2rem);
      }
    }
    &.section-title__main--left {
      align-self: start;
      transform: none;
      @media screen and (min-width: 768px) {
        transform: none;
        margin-left: unset;
      }
      @media screen and (min-width: 1024px) {
        transform: none;
        margin-left: unset;
      }
    }
    &.section-title__main--services {
      align-self: start;
      transform: none;
      @media screen and (min-width: 768px) {
        transform: none;
        margin-left: unset;
      }
      @media screen and (min-width: 1024px) {
        transform: none;
        margin-left: unset;
      }
      @media screen and (min-width: 1200px) {
        margin-bottom: -3rem;
      }
    }
  }
  
  & .section-title__sub {
    display: flex;
    flex-direction: column;
    &.section-title__sub--pl-24 {
      padding-left: 1rem;
      @media screen and (min-width: 768px) {
        padding-left: 1.5rem;
      }
    }
  }  
  & .section-title__sub-text-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    &.section-title__sub-text-wrapper--about {
      align-items: end;
      gap: 0.5rem;
    }
    &.section-title__sub-text-wrapper--services {
      align-items: end;
    }
  }
  & .section-title__sub-text {
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    &.section-title__sub-text--about {
      margin-bottom: -0.15em;
    }
    &.section-title__sub-text--services {
      margin-bottom: 0.15em;
    }
  }
  & .section-title__sub-text--xs {
    font-size: 1.125rem;
    @media screen and (min-width: 768px) {
      font-size: 2.25rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2.5rem;
    }
  }
  & .section-title__sub-text--sm {
    font-size: 1.5rem;
    @media screen and (min-width: 768px) {
      font-size: 2.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3rem;
    }
  }
  & .section-title__sub-text--semi-md {
    font-size: 1.875rem;
    @media screen and (min-width: 768px) {
      font-size: 2.875rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 3.625rem;
    }
  }
  & .section-title__sub-text--md {
    font-size: 1.25rem;
    @media screen and (min-width: 414px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 768px) {
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 4rem;
    }
  }
  & .section-title__sub-text--lg {
    font-size: 2.5rem;
    @media screen and (min-width: 768px) {
      font-size: 3.75rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 5rem;
    }
  }
}

.faq-title {
  position: relative;
  display: flex;
  align-self: start;
  gap: 0.25rem;
  flex-direction: column;
  padding: 0.375rem 0.5rem;
  background-color: var(--green);
  line-height: 1;
  @media screen and (min-width: 768px) {
    padding: 0.75rem 1.25rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 1rem 1.5rem;
  }
  &::before {
    content: "";
    display: block;
    height: 0.875rem;
    width: 1.5rem;
    background-image: url(/system_panel/uploads/images/20250806130701991428.svg);
    position: absolute;
    bottom: -0.625rem;
    left: 1.875rem;
  }
  & .faq-title__ja {
    color: var(--snow);
    font-weight: 900;
    font-size: 1rem;
    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
    }
  }
  & .faq-title__en {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.875rem;
    @media screen and (min-width: 768px) {
      font-size: 1.125rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 1.5rem;
    }
  }
}

.button {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--gold);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 1rem;
  transition: all ease 200ms;
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 85%;
    transform: scale(0.95);
  }
  &.button--white {
    background-color: var(--snow);
  }
  &.button--ink {
    background-color: var(--ink);
    color: var(--snow);
  }
  &.button--green {
    background-color: var(--green);
    color: var(--snow);
  }
}

.blog-wrapper {
  display: grid;
  gap: 5rem;
  
  @media screen and (min-width: 1024px) {
    grid-template-columns: 20rem 1fr;

    & .blog-category {
      position: sticky;
      top: 3rem;
    }
  }
}

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

.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 2rem;
  }
  & .webgene-pagination {
    padding-top: 2rem;
  }
  
  @media screen and (min-width: 768px) {
    & .webgene-blog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 2 / span 2;
    }
  }
  
  &.blog-list--pages {
    & h1, & h2, & h3, & h4, & h5, & h6 {
      color: var(--snow) !important;
    }
    & .clamp-2 {
      color: var(--snow) !important;
    }
    & .webgene-no-items {
      color: var(--snow);
    }
    @media screen and (min-width: 768px) {
      & .webgene-blog {
        grid-template-columns: repeat(1, minmax(0, 1fr));
      }
      & .webgene-no-items, & .webgene-pagination {
        grid-column: 1 / span 1;
      }
    }
    @media screen and (min-width: 1024px) {
      & .webgene-blog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      & .webgene-no-items, & .webgene-pagination {
        grid-column: 1 / span 3;
      }
    }
  }
}

.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: calc(2em * 1.8);
  overflow: hidden;
}

.item-images {
  & .item-image {
    & img {
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
	}
  }
}

.markered-title {
  position: relative;
  &::before {
    content: "";
    display: block;
    height: 0.75rem;
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--yellow);
  }
  & h1, & h2, & h3, & h4, & h5, & h6 {
    position: relative;
    line-height: 1.25;
    font-weight: 700;
    font-size: 1rem;
    @media screen and (min-width: 768px) {
      font-size: 1.125rem;
    }
  }
  &.markered-title--md {
    & h1, & h2, & h3, & h4, & h5, & h6 {
      font-size: 1.25rem;
      @media screen and (min-width: 768px) {
        font-size: 1.5rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 1.5rem;
      }
    }
  }
  &.markered-title--lg {
    & h1, & h2, & h3, & h4, & h5, & h6 {
      font-size: 1.25rem;
      @media screen and (min-width: 768px) {
        font-size: 1.875rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 2rem;
      }
    }
  }
}

.access-map {
  position: relative;
  padding-top: 56.25%;

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

  @media screen and (min-width: 1024px) {
    padding-top: 0;
  }
}

.faq-link-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 56.25%;
  
  &::after {
    content: "";
    display: block;
    height: 100%;
    width: 29.555%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(/system_panel/uploads/images/20250807142445906686.png);
    background-size: 100% 100%;
  }
}

.service-title {
  position: relative;
  align-self: start;
  padding: 0.375rem 0.5rem;
  background-color: var(--green);
  color: var(--gold);
  line-height: 1;
  font-weight: 700;
  font-size: 0.875rem;
  @media screen and (min-width: 768px) {
    padding: 0.75rem 1.25rem;
    font-size: 1.25rem;
  }
  @media screen and (min-width: 1024px) {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
  }
  & h1, & h2, & h3, & h4, & h5, & h6 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--snow);
    @media screen and (min-width: 768px) {
      font-size: 1.5rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
    }
  }
  &::before {
    content: "";
    display: block;
    height: 0.875rem;
    width: 1.5rem;
    background-image: url(/system_panel/uploads/images/20250806130701991428.svg);
    position: absolute;
    bottom: -0.625rem;
    left: 1.875rem;
  }
}

.about-intro-typo {
  height: 2.5rem;
  @media screen and (min-width: 768px) {
    height: 3.75rem;
  }
  @media screen and (min-width: 1024px) {
    height: 5rem;
  }
}

.about-intro-dec {
  position: absolute;
  line-height: 1.25;
  font-weight: 900;
  font-size: 5rem;
  color: var(--green);
  opacity: 20%;
  @media screen and (min-width: 768px) {
    font-size: 8rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 10rem;
  }
  &.about-intro-dec--tl {
    top: 0;
    left: 1.25rem;
  }
  &.about-intro-dec--br {
    right: 1.25rem;
    bottom: 0;
  }
}

.feature-point {
  position: absolute;
  display: flex;
  top: -2rem;
  right: -1rem;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.5rem 1rem;
  background-color: var(--green);
  color: var(--snow);
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
  @media screen and (min-width: 768px) {
    font-size: 2rem;
    top: -3rem;
    right: 1rem;
    &.feature-point--home {
      top: -2rem;
      right: -1rem;
    }
  }
  @media screen and (min-width: 1024px) {
    font-size: 2.25rem;
    right: 2.5rem;
    &.feature-point--home {
      top: -2rem;
      right: -1rem;
    }
  }
  &.feature-point--home {
    @media screen and (min-width: 768px) {
      font-size: 1.75rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 2rem;
    }    
    & .feature-point__num {
      font-size: 1.5rem;
      @media screen and (min-width: 768px) {
        font-size: 2.5rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 3rem;
      }
    }
  }
  & .feature-point__num {
    font-size: 2rem;
    @media screen and (min-width: 768px) {
      font-size: 3rem;
    }
    @media screen and (min-width: 1024px) {
      font-size: 4rem;
    }
  }
  
  &::before {
    content: "";
    display: block;
    height: 0.875rem;
    width: 1.5rem;
    background-image: url(/system_panel/uploads/images/20250806130701991428.svg);
    position: absolute;
    bottom: -0.625rem;
    right: 1.875rem;
    transform: scaleX(-1);
  }
  
  &.feature-point--left {
    right: unset;
    left: -1rem;
    @media screen and (min-width: 768px) {
      left: 1rem;
    }
    @media screen and (min-width: 1024px) {
      left: 2.5rem;
    }
    
    &::before {
      right: unset;
      left: 1.875rem;
      transform: none;
    }
  }
}

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

.footer-info-bubble {
  position: absolute;
  top: -2.5rem;
  right: -1.25rem;
  height: 2.5rem;
  
  @media screen and (min-width: 768px) {
    height: 3.75rem;
  }
}
