*,
*::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(--shell-pink);
  background-image: var(--bg-paper-pink);
  letter-spacing: 0.24em;
}

#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;
        background-color: var(--snow);
        font-family: var(--font-serif);
        letter-spacing: 0em;
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          background-color: var(--wine-pink);
          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--4x5 {
    aspect-ratio: 4 / 5;
  }
  &.thumbnail--square {
    aspect-ratio: 1 / 1;
  }

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

.gradation-line {
  background: linear-gradient(90deg, rgba(209, 17, 71, 0.00) 0%, var(--kuri-wine-pink, #D11147) 50%, rgba(209, 17, 71, 0.00) 100%);
  
  &.gradation-line--snow {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 50%, rgba(255, 255, 255, 0.00) 100%);
  }
}

.hero-title {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--wine-pink);
  letter-spacing: 0.16em;
  & h1 {
    font-size: 2.5rem;
    font-weight: 400;
  }
  & p {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 400;
  }
  
  @media (min-width: 1024px) {
    & h1 {
      font-size: 3rem;
    }
    & p {
      font-size: 1.125rem;
    }
  }
  @media (min-width: 1200px) {
    & h1 {
      font-size: 3.75rem;
    }
    & p {
      font-size: 1.5rem;
    }
  }
  
  & .title-deco {
    margin-top: 2rem;
  }
}

.title-deco {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  
  & .title-deco__dot, &::before, &::after {
    width: 0.75rem;
    height: 0.375rem;
    border-radius: 0.125rem;
    position: relative;
  }
  & .title-deco__dot {
    background-color: var(--wine-pink);
  }
  
  &::before, &::after {
    content: "";
  }
  &::before {
    background: var(--gold);
  }
  &::after {
    background: var(--pink);
  }
}

.section-title {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--wine-pink);
  letter-spacing: 0.16em;
  & h2, & h3 {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    font-weight: 400;
  }
  & p {
    font-size: 0.875rem;
    font-weight: 400;
  }
  
  & .title-deco {
    margin-top: 1.5rem;
  }
  
  @media (min-width: 1024px) {
    & h2, & h3 {
      font-size: 2rem;
    }
    & p {
      font-size: 1.5rem;
    }
    & .title-deco {
      margin-top: 2rem;
    }
  }
  @media (min-width: 1200px) {
    & h2, & h3 {
      font-size: 2.5rem;
    }
    & p {
      font-size: 2rem;
    }
    &.section-title--small {
      & h2, & h3 {
        font-size: 2rem;
      }
      & p {
        font-size: 1.5rem;
      }
    }
  }
}

.elevation-1 {
  box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.02), 0 4px 12px 2px rgba(0, 0, 0, 0.04), 0 8px 24px 4px rgba(0, 0, 0, 0.08), 0 16px 48px 8px rgba(0, 0, 0, 0.12);
}
.elevation-2 {
  box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.08), 0 4px 12px 2px rgba(0, 0, 0, 0.08), 0 8px 24px 4px rgba(0, 0, 0, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.16em;
  line-height: 1.25;
  font-family: var(--font-serif);
  color: var(--wine-pink);
  transition: opacity 250ms ease;
  
  &::after {
    content: "";
    width: 3rem;
    height: 1.6875rem;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2227%22%20viewBox%3D%220%200%2048%2027%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M47.4004%2013.5C47.4004%2010.0851%2044.9333%206.87086%2040.6768%204.47656C36.439%202.09284%2030.5439%200.599609%2024%200.599609C17.4561%200.599609%2011.561%202.09284%207.32324%204.47656C3.06675%206.87086%200.599609%2010.0851%200.599609%2013.5C0.599609%2016.9149%203.06675%2020.1291%207.32324%2022.5234C11.561%2024.9072%2017.4561%2026.4004%2024%2026.4004V27C10.7452%2027%200%2020.9558%200%2013.5C0%206.04416%2010.7452%200%2024%200C37.2548%200%2048%206.04416%2048%2013.5C48%2020.9558%2037.2548%2027%2024%2027V26.4004C30.5439%2026.4004%2036.439%2024.9072%2040.6768%2022.5234C44.9333%2020.1291%2047.4004%2016.9149%2047.4004%2013.5Z%22%20fill%3D%22%23D11147%22%2F%3E%0A%3Cpath%20d%3D%22M26.3454%2016C26.5043%2015.6353%2026.658%2015.3162%2026.8064%2015.0427C26.9653%2014.7692%2027.119%2014.5413%2027.2673%2014.359H18V13.641H27.2673C27.119%2013.4473%2026.9653%2013.2137%2026.8064%2012.9402C26.658%2012.6667%2026.5043%2012.3533%2026.3454%2012H26.9017C27.5694%2012.8319%2028.2688%2013.4473%2029%2013.8462V14.1538C28.2688%2014.5413%2027.5694%2015.1567%2026.9017%2016H26.3454Z%22%20fill%3D%22%23D11147%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  &:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--wine-pink);
  }
  
  &.button--snow::after {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2227%22%20viewBox%3D%220%200%2048%2027%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M47.4004%2013.5C47.4004%2010.0851%2044.9333%206.87086%2040.6768%204.47656C36.439%202.09284%2030.5439%200.599609%2024%200.599609C17.4561%200.599609%2011.561%202.09284%207.32324%204.47656C3.06675%206.87086%200.599609%2010.0851%200.599609%2013.5C0.599609%2016.9149%203.06675%2020.1291%207.32324%2022.5234C11.561%2024.9072%2017.4561%2026.4004%2024%2026.4004V27C10.7452%2027%200%2020.9558%200%2013.5C0%206.04416%2010.7452%200%2024%200C37.2548%200%2048%206.04416%2048%2013.5C48%2020.9558%2037.2548%2027%2024%2027V26.4004C30.5439%2026.4004%2036.439%2024.9072%2040.6768%2022.5234C44.9333%2020.1291%2047.4004%2016.9149%2047.4004%2013.5Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M26.3454%2016C26.5043%2015.6353%2026.658%2015.3162%2026.8064%2015.0427C26.9653%2014.7692%2027.119%2014.5413%2027.2673%2014.359H18V13.641H27.2673C27.119%2013.4473%2026.9653%2013.2137%2026.8064%2012.9402C26.658%2012.6667%2026.5043%2012.3533%2026.3454%2012H26.9017C27.5694%2012.8319%2028.2688%2013.4473%2029%2013.8462V14.1538C28.2688%2014.5413%2027.5694%2015.1567%2026.9017%2016H26.3454Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fsvg%3E%0A");
  }
}

.footer-contact {
  background: linear-gradient(0deg, #FFF 4.81%, rgba(255, 255, 255, 0.00) 95.19%);
}

.access-map {
  position: relative;
  aspect-ratio: 4 / 3;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(from var(--wine-pink) h s l / 10%);
    pointer-events: none;
  }
  & iframe {
    filter: grayscale(1);
    position: absolute;
    width: 100%;
    inset: 0;
    height: 100%;
  }
}

.profile-section, .bg-grad-to-snow {
  background: linear-gradient(0deg, #FFF 4.81%, rgba(255, 255, 255, 0.00) 95.19%);
}
.greeting-section, .bg-grad-from-snow {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 4.81%, #FFF 95.19%);
}

.gradation-box-image {
  -webkit-mask-image: url(/system_panel/uploads/images/gradation-box-rect.png);
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-image: url(/system_panel/uploads/images/gradation-box-rect.png);
  mask-position: center;
  mask-size: 100% 100%;
}

.service-watermark {
  position: absolute;
  width: 100%;
  max-width: 87.5rem;
  top: 0;
  right: -7.5%;
}

.service-detail {
  position: relative;
  
  &::before, &::after {
    content: "";
    position: absolute;
    width: 65%;
    max-width: 40.625rem;
    aspect-ratio: 1 / 1;
    background-color: var(--wine-pink);
    opacity: 0.2;
    filter: blur(30px);
    border-radius: 9999px;
  }
  &::before {
    bottom: 25%;
    right: 0;
    transform: translateX(15%);
  }
  &::after {
    bottom: 4%;
    left: 0;
    transform: translateX(-15%);
  }
}

.thought-card {
  &::before, &::after {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    pointer-events: none;
  }
  &::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--wine-pink);
    border-left: 1px solid var(--wine-pink);
  }
  &::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--wine-pink);
    border-right: 1px solid var(--wine-pink);
  }
}
.thought-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  opacity: 0.8;
}
.worry-intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.service-intro {
  position: relative;
  
  &::before, &::after {
    content: "";
    position: absolute;
    width: 65%;
    max-width: 40.625rem;
    aspect-ratio: 1 / 1;
    background-color: var(--wine-pink);
    opacity: 0.4;
    filter: blur(30px);
    border-radius: 9999px;
  }
  &::before {
    top: 12%;
    right: 0;
    transform: translateX(15%);
  }
  &::after {
    bottom: 4%;
    left: 0;
    transform: translateX(-15%);
  }
}

.concept-item {
  &::before {
    content: "";
    background: linear-gradient(90deg, rgba(209, 17, 71, 0.00) 0%, rgba(209, 17, 71, 0.08) 100%);
    width: 100%;
    height: 15rem;
    top: 0;
    position: absolute;
    left: 0;
  }
  &.concept-item--reverse::before {
    background: linear-gradient(90deg, rgba(209, 17, 71, 0.00) 0%, rgba(209, 17, 71, 0.08) 100%);
  }
}

.home-journal .swiper {
  overflow: visible;
}
.insta-list {
  &.swiper {
    overflow: visible;
  }
  & .swiper-wrapper {
    transition-timing-function: linear;
  }
}

.hero-image {
  position: relative;
  padding-bottom: 5rem;
  & .hero-image__static {
    width: 90%;
  }
  
  & .hero-image__abs {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 54%;
  }
  
  @media (min-width: 1024px) {
    & .hero-image__static {
      width: 75%;
    }

    & .hero-image__abs {
      width: 40%;
    }
  }
}

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

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

