*,
*::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-serif);
  color: var(--ink);
  background-color: var(--snow);
  letter-spacing: 0.08em;
}

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

.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;
    padding-top: 1rem;

    & li {
      & a {
        display: inline-block;
        width: 3rem;
        line-height: 3rem;
        text-align: center;
        background-color: hsla(from var(--ink) h s l / 20%);
        
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--purple);
          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,
  & 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;
  }
  
  & img {
    max-width: 100%;
  }
  & .wp-caption {
    display: contents;
  }
}

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

.footer-deco {
  position: absolute;
  top: 0.5rem;
  right: -3.75rem;
  width: 115%;
  max-width: 54.6875rem;
  opacity: 0.05;
  
  & img {
    width: 100%;
  }
}


.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  font-size: 1.125rem;
  font-weight: 400;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  overflow: hidden;
  background-color: var(--snow);
  
  &::before {
    content: "";
    background-image: url("/system_panel/uploads/images/button-pointer.svg");
    background-repeat: no-repeat;
    background-size: contain;
    width: 4.23125rem;
    height: 1.7525rem;
    display: block;
    transition: transform 200ms ease;
    transform-origin: left;
  }
  
  &:hover {
    text-decoration: none;
  }
  &:hover::before {
    transform: scaleX(1.08);
  }
  
  &.button--tilted {
    transform: rotate(-1.63deg);
  }
  &.button--tilted-reverse {
    transform: rotate(2.32deg);
  }
}

.text-shadow {
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.16));
}

.elevation {
  box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.08), 0 8px 24px 0 rgba(0, 0, 0, 0.12), 0 16px 32px 0 rgba(0, 0, 0, 0.08);
}

.filter-button {
  border: 1px solid hsla(from var(--ink) h s l / 20%);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  line-height: 1.25;
  font-size: 0.75rem;
  transition: transform 200ms ease;
  cursor: pointer;
  display: inline-block;
  
  &:hover {
    text-decoration: none;
    transform: scale(0.98);
  }
}

.filter-widget {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  
  & .webgene-blog {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

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

.access-map {
  & iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

.item-images.swiper {
  & .swiper-wrapper {
  }
  & .swiper-slide img {
    object-fit: cover;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  & .swiper-pagination {
    position: static;
    margin: 0;
    margin-top: 1.25rem;
  }
}

.property-block {
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--snow);
  border: 1px solid hsla(from var(--ink) h s l / 20%);
  border-radius: 0.75rem;
  
  & h3 {
    line-height: 1.25;
    font-size: 0.75rem;
  }
  & p {
    font-size: 0.875rem;
  }
}

.property-sidebar {
  @media (min-width: 1024px) {
    max-height: calc(100vh - 8rem);
    overflow: auto;
  }
}

.form-wrapper {
  --border-c: hsla(from var(--ink) h s l / 20%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-c);
  padding-top: 0.75rem;
  
  & form {
    display: contents;
  }
  & .form-field {
  	font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-c);
    line-height: 1.25;
    
    & p {
      margin-bottom: 0.5rem;
    }
    & .checkbox-list {
      display: flex;
      flex-wrap: wrap;
      column-gap: 1rem;
      row-gap: 0.5rem;
      
      & label {
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
      }
      & input[type="checkbox"] {
      }
    }
  }
  & .button {
    align-self: center;
    margin-top: 1.25rem;
  }
}

.talk-item {
  position: relative;
  max-width: 62.5rem;
  margin-right: auto;
  width: 100%;
  
  & .talk-item__image {
    & img {
      aspect-ratio: 3 / 4;
      object-fit: cover;
      width: 100%;
    }
  }
  & .talk-item__header {
    padding-block: 2rem;
    line-height: 1.25;
    font-weight: 700;
  }
  & .talk-item__description {
    line-height: 2.4;
    font-size: 1rem;
  }
  & .talk-item__label {
    position: absolute;
    top: -4rem;
    left: -2rem;
    transform: rotate(-6deg);
    height: 5rem;
  }
  
  @media (min-width: 1024px) {
    display: flex;
    flex-direction: row;
    
    & .talk-item__image {
      flex: 1 0 0%;
      max-width: 25rem;
    }
    & .talk-item__content {
      flex: 1 0 0%;
    }
    & .talk-item__header {
      border: 1px solid var(--ink);
      border-left: 0;
      padding: 2.5rem;
      padding-right: 2rem;
      font-size: 2rem;
    }
    & .talk-item__description {
      margin-top: 1.5rem;
      border-right: 1px solid var(--ink);
      position: relative;
      padding: 4rem 2.5rem;
      padding-right: 2rem;
      &::before, &::after {
        content: "";
        position: absolute;
        border-bottom: 1px solid var(--ink);
        bottom: 0;
      }
      &::before {
        width: 5rem;
        right: 0;
      }
      &::after {
        width: calc(100% - 6rem);
        left: 0;
      }
    }
    & .talk-item__image {
      position: relative;
      & img {
        aspect-ratio: unset;
        width: 100%;
        height: 100%;
        position: absolute;
      }
    }
    & .talk-item__label {
      height: 10rem;
      left: -3.5rem;
    }
  }
  @media (min-width: 1200px) {
    & .talk-item__header {
      padding: 3.75rem;
      padding-right: 3rem;
      font-size: 2.25rem;
    }
    & .talk-item__description {
      padding: 5rem 3.75rem;
      padding-right: 3rem;
      font-size: 1.125rem;
    }
  }
  
  &.talk-item--reverse {
    margin-left: auto;
    margin-right: unset;
    & .talk-item__label {
      left: unset;
      right: -2rem;
      transform: rotate(9deg);
    }
    
    @media (min-width: 1024px) {
      flex-direction: row-reverse;
      
      & .talk-item__header {
        border-left: 1px solid var(--ink);
        border-right: 0;
        padding-right: 2.5rem;
        padding-left: 2rem;
      }
      & .talk-item__description {
        border-left: 1px solid var(--ink);
        border-right: 0;
        padding-right: 2.5rem;
        padding-left: 2rem;
        
        &::before {
          left: 0;
          right: unset;
        }
        &::after {
          left: unset;
          right: 0;
        }
      }
      & .talk-item__label {
        right: -3.5rem;
        transform: rotate(9deg);
      }
    }
    @media (min-width: 1200px) {
      flex-direction: row-reverse;
      
      & .talk-item__header {
        padding-right: 3.75rem;
        padding-left: 3rem;
      }
      & .talk-item__description {
        padding-right: 3.75rem;
        padding-left: 3rem;
      }
    }
  }
}

.kuse-deco {
  position: absolute;
  width: 100%;
  max-width: 62.5rem;
  right: -0.75rem;
  top: -2rem;
  @media (min-width: 1024px) {
    top: -4.375rem;
  }
}

.area-typo {
  position: absolute;
  
  &.area-typo--hasse {
    top: 0;
    right: 1rem;
    width: 95%;
    max-width: 86.25rem;
  }
  &.area-typo--misaki {
    top: 0;
    left: 1rem;
    width: 100%;
    max-width: 90rem;
  }
  &.area-typo--minamishimoura {
    top: 13rem;
    right: -1rem;
    width: 71.75%;
    max-width: 71.75rem;
    
    @media (min-width: 1024px) {
    }
  }
}
.area-identity {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 80%;
  max-width: 40rem;
}

.area-image {
  position: absolute;
  
  &.area-image--1 {
    top: 0;
    right: -23%;
    width: 45%;
    transform: translateY(-105%);
    
    @media (min-width: 1024px) {
      right: -39%;
      transform: translateY(-90%);
    }
  }
  &.area-image--2 {
    bottom: 0;
    left: -3.2%;
    width: 23%;
    transform: translateY(74%);
    
    @media (min-width: 1024px) {
      left: -17.4%;
    }
  }
}

.area-item {
  position: relative;
  
  @media (min-width: 1024px) {
    &::before, &::after {
      content: "";
    }
  }
  
  &::before, &::after {
    width: 5rem;
    height: 5rem;
    pointer-events: none;
    border-bottom: 1px solid var(--ink);
    bottom: -1px;
    position: absolute;
  }
  &::before {
    left: -1px;
    border-left: 1px solid var(--ink);
  }
  &::after {
    right: -1px;
    border-right: 1px solid var(--ink);
  }
}

.home-hero {
  overflow: hidden;
  height: 30rem;
  position: relative;
  padding-top: 5rem;
  
  @media (min-width: 1024px) {
    height: 45rem;
  }
  
  & .home-hero__label {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  & .home-hero__slider {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 0;
  }
  & .swiper {
    width: 100%;
    height: 100%;
    & .swiper-wrapper, & .swiper-slide {
      height: 100%;
    }
  }
  & .swiper:not(.swiper-initialized) {
    & .swiper-wrapper {
      display: flex;
      overflow-x: auto;
      width: 100%;
    }
    & .swiper-slide {
      width: 80%;
      min-width: 80%;
    }
  }
  & .swiper-slide {
    transition: transform 300ms ease;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  & .swiper-initialized .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.91);
  }
  
  & .home-hero__title {
    position: absolute;
    top: 1.625rem;
    right: -0.25rem;
    width: 100%;
    transform: rotate(6.26deg);
    max-width: 25rem;
    
    @media(min-width: 1024px) {
      max-width: 55rem;
      width: 75%;
      top: 3.25rem;
    }
  }
  & .home-hero__copy {
    position: absolute;
    bottom: 5.75rem;
    left: 1.25rem;
    transform: rotate(-4.11deg);
    width: 90%;
    max-width: 25rem;
    
    @media(min-width: 1024px) {
      max-width: 50.625rem;
    }
  }
}

.intro-backdrop {
  z-index: 0;
  &::after {
    content: "";
    pointer-events: none;
    background-image: url(/system_panel/uploads/images/bg-noise.jpg);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.05;
  }
}
.intro-title {
  position: absolute;
  width: 100%;
  top: 2.1875rem;
  left: 50%;
  transform: translateX(-50%) rotate(1.96deg);
  
  @media (min-width: 768px) {
    width: 55%;
  }
  @media (min-width: 1024px) {
    width: 105%;
    top: -1rem;
  }
}

.insta-list {
  &.swiper {
    overflow: visible;
  }
  & .webgene-blog {
    transition-timing-function: linear;
  }
}


