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

#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(--snow);
}

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

      &.selected {
        & a {
          background-color: var(--pale-gold);
          &:hover {}
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

  &.thumbnail--3x2 {
    padding-top: 66.6666%;
  }
  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }
  &.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;
  overflow: hidden;
  height: 15rem;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-left: 1.25rem;
  gap: 1.25rem;
  font-family: var(--font-serif);
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 30, 67, 0.00) 0%, rgba(0, 30, 67, 0.47) 85%, #001E43 100%);
    pointer-events: none;
    z-index: 2;
  }
  @media (min-width: 768px) {
    height: 20rem;
    padding-left: 3rem;
    gap: 2.5rem;
  }
  @media (min-width: 1024px) {
    height: 25rem;
    padding-left: 5rem;
    gap: 3.75rem;
  }
  @media (min-width: 1200px) {
    padding-left: 10rem;
    gap: 5rem;
  }
  
  & .page-hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 45%;
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 0%;
    letter-spacing: 0;
    text-align: center;
    z-index: 1;
    & .page-hero__title-en {
      line-height: 1;
      color: var(--light-gray);
      font-size: 1.25rem;
      @media (min-width: 768px) {
        font-size: 1.75rem;
      }
      @media (min-width: 1024px) {
        font-size: 2rem;
      }
    }
    & .page-hero__title-ja {
      line-height: 1.15;
      color: var(--pale-gold);
      font-size: 1.75rem;
      @media (min-width: 768px) {
        font-size: 3rem;
      }
      @media (min-width: 1024px) {
        font-size: 4rem;
      }
    }
  }
  
  & .page-hero__side-text {
    width: 2.25rem;
    & > p {
      transform: rotate(90deg);
      line-height: 1;
      letter-spacing: 0;
      text-align: center;
      white-space: nowrap;
    }
    @media (min-width: 768px) {
      width: 5rem;
    }
    @media (min-width: 1024px) {
      width: 6.5rem;
    }
    @media (min-width: 1200px) {
      width: 7.5rem;
    }
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0 2.5rem 0 0;
    @media (min-width: 768px) {
      right: 4.5rem;
    }
    @media (min-width: 1024x) {
      right: 6rem;
    }
    @media (min-width: 1200px) {
      right: auto;
      position: relative;
      flex: 1 1 0%;
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background-color: hsl(0 0 0 / 50%);
      pointer-events: none;
      @media (min-width: 1200px) {
        content: none;
      }
    }
  }
  
  &.page-hero--with-image {
    padding-top: 0;
    height: 25rem;
    gap: 3rem;
    & .page-hero__title {
      text-align: start;
    }
    & .page-hero__title--dialogue {
      gap: 2rem;
      line-height: 1.15;
      text-align: center;
      @media (min-width: 768px) {
        gap: 2.5rem;
      }
    }
    @media (min-width: 768px) {
      height: 30rem;
    }
    @media (min-width: 1024px) {
      height: 35rem;
    }
    @media (min-width: 1200px) {
      height: 40rem;
      & .page-hero__image {
        height: 100%;
      }
      & .page-hero__title {
        flex: 1 1 0%;
        max-width: 35rem;
        margin-right: 2rem;
      }
    }
  }
  
  &.page-hero--body-makeup {
    background-color: var(--ink);
    &::after {
      background-image: linear-gradient(180deg, rgba(31, 36, 42, 0.00) 0%, rgba(31, 36, 42, 0.47) 85%, #1F242A 100%);
    }
    & .page-hero__title .page-hero__title-ja {
      @media (min-width: 768px) {
        font-size: 3rem;
      }
    }    
  }
  
  &.page-hero--about {
    height: auto;
    &::after {
      content: none;
    }
    @media (min-width: 768px) {
      padding-left: 7.5rem;
    }
    @media (min-width: 1200px) {
      padding-left: 10rem;
    }
  }
  & .page-hero__about-content {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    @media (min-width: 768px) {
      flex-direction: row;
    }
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(180deg, rgba(0, 30, 67, 0.00) 0%, rgba(0, 30, 67, 0.47) 85%, #001E43 100%);
      pointer-events: none;
      z-index: 1;
    }
    & .page-hero__title {
      text-align: start;
      @media (min-width: 768px) {
        writing-mode: vertical-rl;
        flex: 0 0 auto;
      }
      & .page-hero__title-en {
        font-size: 1.25rem;
        @media (min-width: 768px) {
          font-size: 1.5rem;
        }
      }
      & .page-hero__title-ja {
        font-size: 1.75rem;
        @media (min-width: 768px) {
          font-size: 2.5rem;
        }
      }
    }
    & .page-hero__image {
      @media (min-width: 1200px) {
        aspect-ratio: 1 / 1;
        max-width: 40rem;
      }
    }
  }
}

.quotation-marks {
  &::before, &::after {
    content: "";
    display: none;
    aspect-ratio: 1 / 1;
    width: 5rem;
    background-image: url(/system_panel/uploads/images/quotation-mark.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    @media (min-width: 768px) {
      display: block;
    }
  }
  &::before {
    top: 1.25rem;
    left: 1.25rem;
  }
  &::after {
    right: 1.25rem;
    bottom: 1.25rem;
    transform: scale(-1);
  }
  
  &.quotation-marks--gold {
    &::before, &::after {
      background-image: url(/system_panel/uploads/images/quotation-mark--gold.svg);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--pale-gold);
  border-bottom: 1px solid var(--pale-gold);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--snow);
  transition: opacity ease 200ms;
  &::after {
    content: "";
    width: 1.5rem;
    height: 1rem;
    background-image: url(/system_panel/uploads/images/arrow-right.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
  }
  &:hover {
    text-decoration: none;
    color: var(--snow);
    opacity: 80%;
  }
  
  &.button--icon-left::after {
    content: none;
  }
}

.about-section-image {
  position: relative;
  height: 15erm;
  @media (min-width: 768px) {
    height: 20rem;
  }
  @media (min-width: 1024px) {
    height: 25rem;
  }
  @media (min-width: 1200px) {
    height: 30rem;
  }
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 70%);
    pointer-events: none;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}


.journey-year-name {
  position: absolute;
  top: -1.5rem;
  left: -1.125rem;
  line-height: 1;
  letter-spacing: 0;
  font-family: var(--font-serif);
  color: var(--pale-gold);
  font-size: 7.5rem;
  opacity: 65%;
  @media (min-width: 768px) {
    top: -3rem;
    left: -2.5rem;
    font-size: 15rem;
  }
  &.journey-year-name--right {
    right: -5rem;
    left: auto;
    @media (min-width: 768px) {
      right: -10rem;
    }
  }
}

.about-ellipse {
  position: absolute;
  width: clamp(15rem , 34.25%, 34.25rem);
  &.about-ellipse--1 {
    top: 0;
    left: 0;
    transform: translate(49.2700729927%, -48.1438515081%);
  }
  &.about-ellipse--2 {
    top: 0;
    right: 0;
    transform: translate(6.9343065693%, -9.2807424594%);
  }
  &.about-ellipse--3 {
    width: clamp(20rem , 45.4375%, 45.4375rem);
    bottom: 0;
    left: 0;
    transform: translate(24.7592847318%, 51.8356643357%);
  }
}

.service-intro-bg-images {
  position: absolute;
  inset: 0;
  opacity: 40%;
  
  & .service-intro-bg-image {
    position: absolute;
    filter: blur(6px);
    & img {
      width: 100%;
      object-fit: cover;
      aspect-ratio: 3 / 2;
    }
    &.service-intro-bg-image--1 {
      width: 35rem;
    }
    &.service-intro-bg-image--2 {
      width: 30rem;
    }
    &.service-intro-bg-image--3 {
      width: 25rem;
    }
  }
  
  &.service-intro-bg-images--real-estate {
    top: 2rem;
    @media (min-width: 1024px) {
      top: 0;
    }
    & .service-intro-bg-image--1 {
      top: -9.25rem;
      left: -5rem;
    }
    & .service-intro-bg-image--2 {
      top: 4rem;
      left: 14.25rem;
    }
    & .service-intro-bg-image--3 {
      top: -3rem;
      left: 36.25rem;
    }
  }
  
  &.service-intro-bg-images--business-navigation {
    top: 3rem;
    @media (min-width: 1024px) {
      top: 0;
    }
    & .service-intro-bg-image--1 {
      top: -6.25rem;
      left: 23.75rem;
    }
    & .service-intro-bg-image--2 {
      top: -10.5rem;
      left: -1.25rem;
    }
    & .service-intro-bg-image--3 {
      top: 7.5rem;
      left: 4.5rem;
    }
  }
  
  &.service-intro-bg-images--body-makeup {
    top: 1rem;
    @media (min-width: 1024px) {
      top: 0;
    }
    & .service-intro-bg-image--1 {
      top: -3.75rem;
      left: 21.25rem;
    }
    & .service-intro-bg-image--2 {
      top: 4.375rem;
      left: 5.625rem;
    }
    & .service-intro-bg-image--3 {
      top: -8.75rem;
      left: -1.125rem;
    }
  }
}

.why-me-bg-image {
  position: absolute;
  inset: 0;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 70%);
    pointer-events: none;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

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

.use-case-blindfold {
  display: none;
  position: absolute;
  inset: 0 -3rem 0 -3.75rem;
  background-color: var(--navy);
  pointer-events: none;
  @media (min-width: 1024px) {
    display: block;
  }
  @media (min-width: 1200px) {
    right: -5rem;
    left: -10rem;
  }
}


.swiper.use-case-slider {
  & .swiper-button-prev, & .swiper-button-next {
    position: relative;
  }
  & .swiper-button-prev {
    transform: scaleX(-1);
  }
}

.area-bg-text {
  line-height: 1;
  letter-spacing: 0;
  color: var(--pale-gold);
  font-family: var(--font-serif);
  font-size: 10rem;
  opacity: 15%;
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  @media (min-width: 768px) {
    font-size: 20rem;
    bottom: -5rem;
    left: -5rem;
  }
  @media (min-width: 1024px) {
    left: -6.25rem;
  }
  @media (min-width: 1200px) {
    left: -10.5rem;
  }
}

.swiper:not(.swiper-initialized).body-makeup-slider .swiper-wrapper {
  & .swiper-slide {
    min-width: 30%;
  }
}
.swiper.body-makeup-slider .swiper-wrapper {
  transition-timing-function: linear;
}

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

.category-list {
  & .webgene-blog {
    display: grid;
    gap: 0.5rem;
  }
}


