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

html {
  /* 最小値13pxを保証し、1200px未満では最大22pxまでフォントサイズが流動する */
  font-size: clamp(13px, var(--font-size-base), 22px);

  @media screen and (min-width: 1200px) {
    font-size: clamp(0.1rem, var(--font-size-base), 24px);
  }
}

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

#root {
  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;
        border: 1px solid var(--light-blue);
        color: var(--light-blue);
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--light-blue);
          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.6667%;
  }

  & img,
  & video,
  &: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;
  }
}

/* 今後スタイルを定義するためのプレースホルダー */
.news-list {
  /* TODO: ニュース一覧のスタイルを定義 */
}
.blog-list {
  /* TODO: ブログ一覧のスタイルを定義 */
}

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

.__mat.__mat--processed {
  word-break: keep-all;
  word-wrap: break-word;
}


.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  line-height: 1.25;
  
  & > p {
    font-size: 0.875rem;
    color: var(--light-blue);
  }
  & > h2, & > h3, & > h4 {
    font-size: 1.5rem;
    color: inherit;
  }
  
  &.section-title--32 {
    & > p {
    font-size: 0.875rem;
    }
    & > h2, & > h3, & > h4 {
      font-size: 1.25rem;
    }
  }
  &.section-title--snow {
    & > p {
      color: var(--snow);
    }
    & > h2, & > h3, & > h4 {
      color: var(--snow);
    }
  }
  
  @media (min-width: 1024px) {
    & > p {
      font-size: 1.5rem;
      letter-spacing: 0;
    }
    & > h2, & > h3, & > h4 {
      font-size: 2.5rem;
    }
    
    &.section-title--32 {
      & > p {
      font-size: 1rem;
      }
      & > h2, & > h3, & > h4 {
        font-size: 2rem;
      }
    }
  }
}

.footer-backdrop {
  & > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  &::after {
    position: absolute;
    display: block;
    content: "";
    background-color: hsla(from var(--ink) h s l / 40%);
    pointer-events: none;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.wave-backdrop {
  &::before {
    content: "";
    position: absolute;
    display: block;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background-image: url(/system_panel/uploads/images/wave-stroke.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 110% auto;
  }
}

.contact-section-dec {
  position: absolute;
  transform: rotate(-6deg);
  color: var(--yellow);
  opacity: 0.3;
  font-family: var(--font-display);
  font-size: 4rem;
  top: -1rem;
  left: -4%;
  @media (min-width: 1024px) {
    font-size: 7.5rem;
    left: -8%;
  }
}

.button {
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  background-color: hsla(from var(--ink) h s l / 5%);
  color: var(--light-blue);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
  transition: opacity 200ms ease;
  border-radius: 9999px;
  &:hover {
    text-decoration: none;
    opacity: 0.85;
    color: var(--light-blue);
  }
  
  &::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background-image: url(/system_panel/uploads/images/arrow-forward-blue.svg);
    background-repeat: no-repeat;
    background-position: center;
  }
  
  &.button--snow {
    background-color: hsla(from var(--snow) h s l / 5%);
    color: var(--snow);
    &:hover {
      color: var(--snow);
    }
    &::after {
      background-image: url(/system_panel/uploads/images/arrow-forward-snow.svg);
    }
  }
  
  &.button--no-arrow {
    &::after {
      content: none;
    }
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(from var(--ink) h s l / 30%);
  padding: 12.5rem 1.25rem 3.75rem;
  &::before,
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    z-index: 1;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &::before {
    aspect-ratio: 912 /1157;
    background-image: url("/system_panel/uploads/images/curve-stroke.png");
    width: 57%;
    min-width: 25rem;
    top: 50%;
    right: -17rem;
    transform: translateY(-50%);
  }
  &::after {
    aspect-ratio: 1938 / 355;
    background-image: url("/system_panel/uploads/images/wave-stroke.png");
    width: 121.125%;
    min-width: 90rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
  }
  @media (min-width: 768px) {
    padding: 15rem 2.5rem 3.75rem;
    &::after {
      transform: translate(-50%, -35%);
    }
  }
  @media (min-width: 1024px) {
    padding: 17.5rem 3.75rem 3.75rem;
  }
  @media (min-width: 1200px) {
    padding: 20rem 5rem 5rem;
  }
  
  & .page-hero__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      background-image: linear-gradient(180deg, rgba(58, 141, 197, 0.00) 0%, rgba(58, 141, 197, 0.15) 70%, rgba(58, 141, 197, 0.05) 94%, rgba(58, 141, 197, 0.00) 100%);
      position: absolute;
      inset: 0;
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      opacity: 15%;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    line-height: 1.25;
    & .page-hero__title-en {
      letter-spacing: 0;
      color: var(--light-blue);
    }
    & .page-hero__title-ja {
      font-size: 2rem;
      text-shadow: var(--elevation-1);
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 1.5rem;
      }
      & .page-hero__title-ja {
        font-size: 3rem;
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 1.75rem;
      }
      & .page-hero__title-ja {
        font-size: 3.5rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 2rem;
      }
      & .page-hero__title-ja {
        font-size: 4rem;
      }
    }
  }
}

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

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

.form-selector-button {
  position: relative;
  border-radius: 9999px;
  border: 1px solid var(--light-blue);
  padding: 0.75rem 1.5rem;
  color: var(--light-blue);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 50%;
  transition: transform ease 200ms;
  &.selected {
    opacity: 100%;
    &:hover {
      transform: none;
    }
  }
  &:hover {
    transform: scale(1.1);
  }
}

.bg-wave {
  position: relative;
  overflow: hidden;
  &::before {
    content: "";
    pointer-events: none;
    aspect-ratio: 2999 / 980;
    width: 187.4375rem;
    background-image: url("/system_panel/uploads/images/wave.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -40%);
  }
  &.bg-wave--overflow-visible {
    overflow: visible;
  }
  &.bg-wave--reverse::before {
    transform: translate(-60%, -40%) scaleX(-1);
  }
}

.bg-curve-strokes {
  position: relative;
  overflow: hidden;
  z-index: 0;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 912 / 1157;
    width: 57rem;
    background-image: url("/system_panel/uploads/images/curve-stroke.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    z-index: -1;
  }
  &::before {
    top: 19.375rem;
    left: -18.125rem;
    transform: scale(-1);
  }
  &::after {
    right: -22.5rem;
    bottom: 11.25rem;
  }
}

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

.service-bg-image {
  position: absolute;
  inset: 0 0 5rem;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(17, 42, 60, 0.00) 0%, rgba(17, 42, 60, 0.40) 21.63%, rgba(17, 42, 60, 0.65) 58.65%, rgba(17, 42, 60, 0.70) 100%);
  }
  & img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    mask-image: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.40) 21.63%, rgba(255, 255, 255, 0.75) 58.65%, #FFF 100%);
    -webkit-mask-image: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.40) 21.63%, rgba(255, 255, 255, 0.75) 58.65%, #FFF 100%);
  }
}




.reason-item {
  position: sticky;
  top: 5rem;
  padding: 16rem 0 0;
  
  & > .reason-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
  }
  
  @media (min-width: 1024px) {
    top: 8rem;
    padding: 27.5rem 1.25rem 1.25rem;
  
    & > .reason-item__image {
      height: 100%;
    }
  }
}

.simuBtn,
.resultSend button {
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  background-color: hsla(from var(--ink) h s l / 5%);
  color: var(--light-blue);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
  transition: opacity 200ms ease;
  border-radius: 9999px;
  margin-inline: auto;
  width: unset;
  height: unset;
  min-height: unset;
  font-weight: 400;
  min-width: unset;
  &:hover {
    text-decoration: none;
    opacity: 0.85;
    color: var(--light-blue);
    background-color: hsla(from var(--ink) h s l / 5%);
  }
  
  &::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background-image: url(/system_panel/uploads/images/arrow-forward-blue.svg);
    background-repeat: no-repeat;
    background-position: center;
  }
}

.simuRightListItem {
  background-color: var(--ex-light-blue);
}

.resultWrap {
  margin-top: 5rem;
}
.resultTitle {
  background-color: transparent;
  color: var(--ink);
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #CCC;
  margin-inline: 5%;
  font-weight: 400;
}
.resultTh {
  background-color: var(--light-blue);
}

.strength-image-1, .strength-image-2 {
  position: absolute;
  display: none;
  opacity: 0.6;
  
  @media (min-width: 1024px) {
    display: block;
  }
}
.strength-image-1 {
  top: 0;
  right: -4rem;
  width: 30%;
}
.strength-image-2 {
  bottom: 35%;
  left: 3rem;
  width: 25%;
}
.formComplete .simuBtn {
  width: max-content !important;
}

