*,
*::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(--beige);
  letter-spacing: 0.12em;
}

#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 hsla(from var(--ink) h s l / 30%);
        border-radius: 9999px;

        &:hover {
          text-decoration: none;
        }
      }

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

.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%;
  }
  &.thumbnail--square {
    padding-top: 100%;
  }

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

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

.page-hero {
  position: relative;
  height: 30rem;
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    & img {
      mask-image: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
      mask-position: center;
      mask-size: cover;
      position: absolute;
      object-fit: cover;
      width: 100%;
      height: 100%;
      inset: 0;
      opacity: 0.45;
    }
    
    &:after {
      content: "";
      position: absolute;
      pointer-events: none;
      inset: 0;
      background-color: hsla(from var(--snow) h s l / 1%);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
    }
  }
}

.page-breadcrumb {
  text-align: end;
  font-size: 0.875rem;
  
  @media (min-width: 1024px) {
    font-size: 1rem;
  }

  & p {
    display: inline;
    
    & + p {
      &::before {
        content: ">";
        margin-inline: 1rem;
      }
    }
  }
}

.button {
  transition: all 250ms ease;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  letter-spacing: 0.12em;
  line-height: 1.25;
  padding-right: 4.5rem;
  position: relative;
  height: 3rem;
  text-align: start;
  
  &::after {
    content: attr(data-sub);
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--tf-blue);
  }
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20width%3D%2248%22%20height%3D%2248%22%20rx%3D%2224%22%20fill%3D%22%230ABAB5%22%2F%3E%0A%3Cpath%20d%3D%22M24.4697%2017.4697C24.7626%2017.1768%2025.2374%2017.1768%2025.5303%2017.4697L31.5303%2023.4697C31.8232%2023.7626%2031.8232%2024.2373%2031.5303%2024.5302L25.5303%2030.5302C25.2374%2030.8231%2024.7626%2030.8231%2024.4697%2030.5302C24.1768%2030.2373%2024.1768%2029.7626%2024.4697%2029.4697L29.1895%2024.7499H17C16.5858%2024.7499%2016.25%2024.4142%2016.25%2023.9999C16.25%2023.5857%2016.5858%2023.2499%2017%2023.2499H29.1895L24.4697%2018.5302C24.1768%2018.2373%2024.1768%2017.7626%2024.4697%2017.4697Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  &:hover {
    opacity: 0.875;
    text-decoration: none;
  }
}


.news-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsla(from var(--ink) h s l / 20%);
  }
}
.blog-list {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
  }
  @media (min-width: 768px) {
    & .webgene-blog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 2 / span 2;
      margin-top: 1.5rem;
    }
  }
}
.home-blog {
  & .webgene-blog {
    display: grid;
    gap: 1.5rem;
  }
  @media (min-width: 1024px) {
    & .webgene-blog {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 3 / span 3;
      margin-top: 1.5rem;
    }
  }
}
.home-insta {
  & .webgene-blog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
  }
  & .webgene-no-items, & .webgene-pagination {
    grid-column: span 3 / span 3;
    margin-top: 1.5rem;
  }
  @media (min-width: 1024px) {
    & .webgene-blog {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 6 / span 6;
      margin-top: 1.5rem;
    }
  }
}
.property-list {
  & .webgene-blog {
    display: grid;
    gap: 1.25rem;
  }
  @media (min-width: 768px) {
    & .webgene-blog {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 2 / span 2;
      margin-top: 1.5rem;
    }
  }
   @media (min-width: 1200px) {
    & .webgene-blog {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    & .webgene-no-items, & .webgene-pagination {
      grid-column: span 3 / span 3;
      margin-top: 1.5rem;
    }
  }
}

.category-list {
  & .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.webgene-search-form {
  & .search-contents-wrapper:empty {
    display: none;
  }
  & .search-contents-wrapper, & .search-form-block__list {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid hsla(from var(--ink) h s l / 20%);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: 0.625rem;
  
    & label {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
    }
  }
  
  & .search-title, & .search-form-block__title, & .search-subtitle-wrapper {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25rem;
  }
  
  & section.webgene-search-form-block {
    & .search-title-wrapper, & .search-subtitle-wrapper {
      display: none;
    }
    & .search-area-wrapper {
      padding: 0 !important;
    }
  }
  
  @media (min-width: 768px) {
    & .webgene-search-form-block, & .search-area-wrapper {
      padding-left: 2.5rem;
    }
    & .webgene-search-form-block-group.webgene-search-form-block {
      padding-left: 0;
    }
  }
  
  @media (min-width: 768px) {
    & .webgene-search-form-block, & .search-area-wrapper {
      padding-left: 5rem;
      display: flex;
    }
    & .webgene-search-form-block-group.webgene-search-form-block {
      padding-left: 0;
      flex-direction: column;
    }
    
    & .search-contents-wrapper, & .search-area-wrapper {
      flex: 1 0 0%;
    }
    & .search-subtitle-wrapper {
      width: 15rem;
    }
    & section.search-area-wrapper {
      align-items: baseline;
      & .search-subtitle-wrapper, & .search-contents-wrapper {
        border-bottom: 1px solid hsla(from var(--ink) h s l / 20%);
      }
      & .search-subtitle-wrapper {
        margin-bottom: 0;
        padding-bottom: 1.25rem;
      }
    }
  }
}

.item-images.swiper {
  & .item-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
  }
  & .item-image a {
    display: block;
  }
  & .swiper-wrapper {
    height: unset;
  }
  & .swiper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  & .swiper-button-prev, & .swiper-button-next {
    width: 0.8rem;
    height: 0.8rem;
    color: var(--ink);
    position: static;
    margin: 0;
  }
  & .swiper-pagination {
    position: static;
    margin: 0;
    width: unset;
    
    & .swiper-pagination-bullet-active {
      background-color: var(--tf-blue);
    }
  }
}

.prop {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1.25;
  
  & .prop__l {
    font-size: 0.875rem;
  }
  & .prop__c {
    font-size: 1rem;
    font-weight: 500;
  }
  
  &.prop--header {
    & .prop__c {
      font-size: 1.125rem;
    }
  }
  
  @media (min-width: 1024px) {
    & .prop__c {
      font-size: 1.5rem;
    }
    &.prop--header {
      & .prop__c {
        font-size: 2rem;
      }
    }
    &.prop--hr {
      flex-direction: row;
      align-items: baseline;

      & .prop__c {
        flex: 1 0 0%;
      }
      & .prop__l {
        width: 3rem;
      }
    }
  }
}

.prop-table {
  background-color: var(--tf-blue);
  display: grid;
  gap: 1px;
  padding: 1px;
  box-shadow: var(--elevation);
  
  & .prop {
    padding: 1rem 0.75rem;
    background-color: var(--snow);
    
    @media (min-width: 768px) {
      padding-inline: 1.5rem;
    }
    
    & .prop__l {
      font-size: 0.75rem;
    }
    & .prop__c {
      font-size: 1rem;
    }
  }
  
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    & .prop.prop--col2 {
      grid-column: span 2 / span 2;
    }
  }
  @media (min-width: 1200px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-header {
  position: relative;
  padding-top: 6.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  &.feature-header--small {
    margin-top: -6.25rem;
  }
  
  & .feature-header__num {
    position: absolute;
    top: 1.5rem;
    left: -2rem;
    font-size: 7.5rem;
    color: var(--snow);
    line-height: 0.85;
    font-family: var(--font-display);
  }
  & .feature-header__en {
    color: var(--tf-blue);
    line-height: 0.85;
    font-family: var(--font-display);
    letter-spacing: 0.32em;
    font-size: 1.125rem;
    position: relative;
  }
  & .feature-header__ja {
    line-height: 1.25;
    letter-spacing: 0.32em;
    font-size: 0.875rem;
    position: relative;
  }
  &.feature-header--h {
    padding-top: 0;
  }
  
  @media (min-width: 768px) {
  	& .feature-header__en {
      font-size: 1.75rem;
    }
    & .feature-header__ja {
      font-size: 1rem;
    }
    &.feature-header--small {
      & .feature-header__en {
        font-size: 1rem;
      }
    }
  }
  @media (min-width: 1200px) {
  	& .feature-header__en {
      font-size: 2rem;
    }
    & .feature-header__ja {
      font-size: 1.125rem;
    }
    &.feature-header--small {
      & .feature-header__en {
        font-size: 1.25rem;
      }
      & .feature-header__ja {
        font-size: 1.25rem;
      }
    }
  }
}

.biz-section {
  & .biz-image {
    position: absolute;
    opacity: 0.5;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  & .biz-image--tl, & .biz-image--br {
    width: min(50%, 20rem);
  }
  & .biz-image--bl, & .biz-image--tr {
    width: min(50%, 22rem);
  }
  
  &.biz-section--biz-1 {
    & .biz-image--tl {
      top: -1.25rem;
      left: -1.5rem;
    }
    & .biz-image--tr {
      top: 1rem;
      right: -1.5rem;
    }
    & .biz-image--bl {
      bottom: 1.25rem;
      left: -2rem;
    }
    & .biz-image--br {
      bottom: -1.5rem;
      right: -1.5rem;
    }
  }
  &.biz-section--biz-2 {
    & .biz-image--tl {
      top: 1.5rem;
      left: 1.25rem;
    }
    & .biz-image--tr {
      top: -1rem;
      right: 1.25rem;
    }
    & .biz-image--bl {
      bottom: -1.25rem;
      left: 1.5rem;
    }
    & .biz-image--br {
      bottom: 1.5rem;
      right: 1.5rem;
    }
  }
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  max-width: 100%;
  overflow: auto;

  & .swiper-slide {
    min-width: 400px;
    width: 400px;
  }
}

.home-hero {
  height: 100dvh;
  
  & .swiper {
    mask-image: linear-gradient(0deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    mask-position: center;
    mask-size: 101% 101%;
    margin-inline: -1.25rem;
    
    @media (min-width: 768px) {
      margin-inline: 0rem;
      margin-left: -2.5rem;
    }
    @media (min-width: 1200px) {
      mask-image: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    }
  }
  & .swiper, & .swiper-wrapper, & .swiper-slide {
    height: 100%;
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & img.swiper-slide {
    object-fit: cover;
    display: block;
  }
}

.home-news {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 2;
  
  @media (min-width: 768px) {
    bottom: 2.5rem;
    left: unset;
    right: 0;
    width: 30rem;
  }
}

.home-biz {
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
  & .swiper-wrapper, & .swiper-slide {
    height: 100%;
    object-fit: cover;
  }
}
