*,
*::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.08em;
}

#root {
  margin: 0 auto;
  display: grid;
  & .header {
    order: 1;
  }
  & .page-content {
    order: 2;
  }
  & .footer {
    order: 3;
  }
}

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);
        &:hover {
          text-decoration: none;
          color: var(--snow);
        }
      }

      &.selected {
        & a {
          background-color: var(--snow);
          color: var(--ink);
          border: 1px solid var(--ink);
          &:hover {
            color: var(--ink);
          }
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

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

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

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

.page-hero {
  position: relative;
  background-color: var(--ink);
  color: var(--snow);
  & .page-hero__title {
    position: relative;
    & .page-hero__title-en {
      line-height: 1;
      letter-spacing: -0.04em;
      font-family: var(--font-display);
      font-size: 2.5rem;
    }
    & .page-hero__title-ja {
      margin-top: 0.75rem;
      margin-left: 0.25rem;
      line-height: 1.25;
      letter-spacing: 0.02em;
      font-size: 1.125rem;
    }
    @media (min-width: 768px) {
      & .page-hero__title-en {
        font-size: 3.5rem;
      }
      & .page-hero__title-ja {
        margin-left: 0.375rem;
        font-size: 1.5rem;
      }
    }
    @media (min-width: 1024px) {
      & .page-hero__title-en {
        font-size: 4rem;
      }
      & .page-hero__title-ja {
        font-size: 1.75rem;
      }
    }
    @media (min-width: 1200px) {
      & .page-hero__title-en {
        font-size: 5rem;
      }
      & .page-hero__title-ja {
        margin-left: 0.5rem;
        font-size: 2rem;
      }
    }
  }
  
  &.page-hero--with-image {
    padding-block: 12.5rem 7.5rem;
    & .page-hero__bg-image {
      position: absolute;
      inset: 0;
      &::after {
        pointer-events: none;
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--ink);
        opacity: 55%;
      }
      & img {
        object-fit: cover;
        height: 100%;
        width: 100%;
      }
    }
    &.page-hero--pink {
      & .page-hero__bg-image::after {
        background-color: var(--pink);
        opacity: 25%
      }
    }
    &.page-hero--blue {
      & .page-hero__bg-image::after {
        background-color: var(--blue);
        opacity: 10%
      }
    }
  }
}

.section-title {
  position: relative;
  & .section-title__en {
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: var(--font-display);
    font-size: 2.5rem;
  }
  & .section-title__ja {
    margin-top: 0.75rem;
    margin-left: 0.25rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    font-size: 1.125rem;
  }
  @media (min-width: 768px) {
    & .section-title__en {
      font-size: 3.5rem;
    }
    & .section-title__ja {
      margin-left: 0.375rem;
      font-size: 1.5rem;
    }
  }
  @media (min-width: 1024px) {
    & .section-title__en {
      font-size: 4rem;
    }
    & .section-title__ja {
      font-size: 1.75rem;
    }
  }
  @media (min-width: 1200px) {
    & .section-title__en {
      font-size: 5rem;
    }
    & .section-title__ja {
      margin-left: 0.5rem;
      font-size: 2rem;
    }
  }
  
  &.section-title--center {
    @media (min-width: 768px) {
      text-align: center;
      & .section-title__ja {
        margin-left: 0;
      }
    }
  }
  
  &.section-title--blue {
    & .section-title__en {
      color: var(--blue);
    }
    &::before {
      content: "";
      aspect-ratio: 1 / 1;
      --triangle-size: 2.5rem;
      width: var(--triangle-size);
      clip-path: polygon(0 0, 0% 100%, 100% 0);
      background-color: var(--blue);
      position: absolute;
      top: calc(var(--triangle-size) * -0.5);
      left: calc(var(--triangle-size) * -0.75);
      @media (min-width: 768px) {
        --triangle-size: 3.5rem;
      }
      @media (min-width: 1024px) {
        --triangle-size: 4rem;
      }
      @media (min-width: 1200px) {
        --triangle-size: 5rem;
      }
    }
  }
  
  &.section-title--32 {
    gap: 0.25rem;
    & .section-title__en {
      font-size: 1.5rem;
    }
    & .section-title__ja {
      font-size: 0.875rem;
    }
    @media (min-width: 768px) {
      & .section-title__en {
        font-size: 2rem;
      }
      & .section-title__ja {
        font-size: 1rem;
      }
    }
  }
  
  &.section-title--48 {
    & .section-title__en {
      font-size: 1.75rem;
    }
    & .section-title__ja {
      font-size: 1rem;
    }
    @media (min-width: 768px) {
      & .section-title__en {
        font-size: 2.25rem;
      }
    }
    @media (min-width: 1024px) {
      & .section-title__en {
        font-size: 2.5rem;
      }
      & .section-title__ja {
        font-size: 1.125rem;
      }
    }
    @media (min-width: 1200px) {
      & .section-title__en {
        font-size: 3rem;
      }
      & .section-title__ja {
        font-size: 1.25rem;
      }
    }
  }
  
  &.section-title--64 {
    & .section-title__en {
      font-size: 2rem;
    }
    & .section-title__ja {
      font-size: 1rem;
    }
    @media (min-width: 768px) {
      & .section-title__en {
        font-size: 2.5rem;
      }
      & .section-title__ja {
        font-size: 1.125rem;
      }
    }
    @media (min-width: 1024px) {
      & .section-title__en {
        font-size: 3rem;
      }
      & .section-title__ja {
        font-size: 1.25rem;
      }
    }
    @media (min-width: 1200px) {
      & .section-title__en {
        font-size: 4rem;
      }
      & .section-title__ja {
        font-size: 1.5rem;
      }
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  transition: opacity ease 200ms;
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 1.25rem;
    background-image: url("/system_panel/uploads/images/arrow-right.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &:hover {
    text-decoration: none;
    color: var(--ink);
    opacity: 80%;
  }
  
  &.button--snow {
    color: var(--snow);
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-snow.svg");
    }
    &::hover {
      color: var(--snow);
    }
  }
  &.button--pink {
    color: var(--pink);
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-pink.svg");
    }
    &::hover {
      color: var(--pink);
    }
  }
  &.button--blue {
    color: var(--blue);
    &::after {
      background-image: url("/system_panel/uploads/images/arrow-right-blue.svg");
    }
    &::hover {
      color: var(--pink);
    }
  }
  &.button--external {
    &::after {
      background-image: url("/system_panel/uploads/images/external-link.svg");
    }
    &.button--snow {
      &::after {
        background-image: url("/system_panel/uploads/images/external-link-snow.svg");
      }
    }
  }
  &.button--instagram {
    &::after {
      background-image: url("/system_panel/uploads/images/instagram.svg");
    }
    &.button--snow {
      &::after {
        background-image: url("/system_panel/uploads/images/instagram-snow.svg");
      }
    }
  }
}

.footer {
  position: relative;
  & .footer__logo {
    width: 100%;
    @media (min-width: 1200px) {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 59.875rem;
    }
  }
}

.message-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 4.81%, rgba(255, 255, 255, 0.80) 75%, #FFF 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 4.81%, rgba(255, 255, 255, 0.80) 75%, #FFF 100%);
  @media (min-width: 1024px) {
    mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 27.68%, rgba(255, 255, 255, 0.80) 66.35%, #FFF 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 27.68%, rgba(255, 255, 255, 0.80) 66.35%, #FFF 100%);
  }
}

.mission-title {
  white-space: nowrap;
  color: var(--snow);
  opacity: 40%;
  position: absolute;
  top: 6.25rem;
  right: 0rem;
  transform: rotate(90deg) translateX(100%);
  transform-origin: top right;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-size: 3rem;
  @media (min-width: 768px) {
    font-size: 4rem;
  }
  @media (min-width: 1024px) {
    right: 0.25rem;
    font-size: 5rem;
  }
  @media (min-width: 1200px) {
    right: 1.25rem;
    font-size: 6.25rem;
  }
}

.principles-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55.5555555556%;
  object-fit: cover;
  opacity: 37%;
  aspect-ratio: 4 / 3;
  transform: translate(-50%, -50%);
  mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.60) 40.87%, rgba(255, 255, 255, 0.60) 60.58%, rgba(255, 255, 255, 0.00) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.60) 40.87%, rgba(255, 255, 255, 0.60) 60.58%, rgba(255, 255, 255, 0.00) 100%);
}

.team-card {
  border: 1px solid hsl(from var(--ink) h s l / 10%);
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  aspect-ratio: 1 / 1;
  & img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 7.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  & p {
    line-height: 1.25;
    letter-spacing: 0.02em;
    font-weight: 500;
    font-size: 0.625rem;
    text-align: center;
    white-space: nowrap;
  }
  @media (min-width: 768px) {
    padding-block: 2.5rem;
    padding-inline: 1.25rem;
    & img {
      width: 10rem;
    }
    & p {
      font-size: 1rem;
    }
  }
}

.app-parenthesis {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  &::before,
  &::after {
    content: "";
    aspect-ratio: 1 / 1;
    width: 3rem;
    border-style: solid;
    border-color: var(--pink);
    border-width: 0;
    @media (min-width: 768px) {
      width: 4rem;
    }
    @media (min-width: 1200px) {
      width: 5rem;
    }
  }
  
  &.app-parenthesis--top {
    top: 0;
    &::before {
      border-top-width: 4px;
      border-left-width: 4px;
      border-top-left-radius: 4.5rem;
    }
    &::after {
      border-top-width: 4px;
      border-right-width: 4px;
      border-top-right-radius: 4.5rem;
    }
  }
  &.app-parenthesis--bottom {
    bottom: 0;
    &::before {
      border-bottom-width: 4px;
      border-left-width: 4px;
      border-bottom-left-radius: 4.5rem;
    }
    &::after {
      border-bottom-width: 4px;
      border-right-width: 4px;
      border-bottom-right-radius: 4.5rem;
    }
  }
}

.blue-triangle {
  position: relative;
  &::before {
    content: "";
    aspect-ratio: 1 / 1;
    --triangle-size: 2.5rem;
    width: var(--triangle-size);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0);
    background-color: var(--blue);
    position: absolute;
    bottom: calc(var(--triangle-size) * -0.5);
    right: calc(var(--triangle-size) * -0.75);
    @media (min-width: 768px) {
      --triangle-size: 3.5rem;
    }
    @media (min-width: 1024px) {
      --triangle-size: 4rem;
    }
    @media (min-width: 1200px) {
      --triangle-size: 5rem;
    }
  }
  
  &.blue-triangle--sm::before {
    --triangle-size: 1.5rem;
    bottom: calc(var(--triangle-size) * -0.3333333333);
    right: calc(var(--triangle-size) * -0.6666666667);
    @media (min-width: 768px) {
      --triangle-size: 2.5rem;
    }
    @media (min-width: 1024px) {
      --triangle-size: 3rem;
    }
    @media (min-width: 1200px) {
      --triangle-size: 3.75rem;
    }
  }
}

.blk-hero {
  position: relative;
  height: 35rem;
  @media (min-width: 1024px) {
    height: 40rem;
  }
  @media (min-width: 1200px) {
    height: 50rem;
  }
  & .blk-hero__bg-image {
    position: absolute;
    inset: 0;
    &::after {
      pointer-events: none;
      content: "";
      position: absolute;
      inset: 0;
      background-color: var(--ink);
      opacity: 55%;
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  & .blk-hero__logo {
    width: 100%;
    max-width: 30rem;
    @media (min-width: 1200px) {
      max-width: 35rem;
    }
  }
}

.blk-intro-title {
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-size: 2rem;
  @media (min-width: 768px) {
    font-size: 5rem;
  }
  @media (min-width: 1024px) {
    font-size: 7.5rem;
    width: 1em;
    transform: rotate(-90deg) translateX(-912%);
    transform-origin: top left;
    white-space: nowrap;
  }
}

.blk-intro-text {
  position: relative;
  & p {
    position: relative;
  }
  &::before {
    content: "";
    position: absolute;
    inset: -7.5rem 0 -7.5rem -5rem;
    background-color: var(--snow);
    opacity: 20%;
  }
}

.blk-images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 16 / 9;
  width: 100%;
  grid-template-areas:
    "a a a b b c"
    "a a a b b c"
    "a a a d d c"
    "e e e e f c";
  & .blk-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    &.blk-image--a { grid-area: a; }
	&.blk-image--b { grid-area: b; }
	&.blk-image--c { grid-area: c; }
	&.blk-image--d { grid-area: d; }
	&.blk-image--e { grid-area: e; }
	&.blk-image--f { grid-area: f; }
  }
}

.insta-list {
  min-height: 20rem;
  &::after {
    pointer-events: none;
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background-color: hsl(0deg 0% 0% / 60%);
    backdrop-filter: blur(4px);
  }
  
  & .webgene-blog {
    transition-timing-function: linear;
  }
}

.insta-link {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.topics-category {
  & .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 1rem;
  }
}

.topics-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
    @media (min-width: 768px) {
      gap: 2rem;
    }
    @media (min-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
      & .webgene-no-items,
      & .webgene-pagination {
        grid-column: span 2 / span 2;
      }
    }
    @media (min-width: 1200px) {
      gap: 2.5rem;
    }
  }
  
  & .info-table {
    display: grid;
    border-top: 1px solid hsl(from var(--ink) h s l / 10%);
    & tr {
      height: auto !important;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding-block: 0.5rem;
      border-bottom: 1px solid hsl(from var(--ink) h s l / 10%);
      letter-spacing: 0.02em;
      font-weight: 600;
      font-size: 0.875rem;
        
      & th,
      & td {
        height: auto !important;
      }
      
      @media (min-width: 768px) {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
        & th,
        & td {
          flex: 1 1 0%;
        }
        & th {
          max-width: 5rem;
        }
      }
    }
  }
}

.news-category {
  & .webgene-blog {
    display: grid;
    gap: 0.75rem;
  }
}

.news-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
  }
}







