*,
*::before,
*::after {
  min-width: 0px;
  min-height: 0px;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--snow);
  background-image: var(--stone);
  letter-spacing: 0.04em;
}

#root {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

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: hsl(from var(--ink) h s l / 10%);
        &:hover {
          text-decoration: none;
          color: var(--ink);
        }
      }

      &.selected {
        & a {
          background-color: var(--green);
          color: var(--snow);
          &:hover {
            text-decoration: none;
            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--3x2 {
    padding-top: 66.66666%;
  }

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

.news-list .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

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

.webgene-blog .swiper .swiper-pagination {
  position: relative;
  inset: 0;
}

.backdrop-object {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(var(--vh, 1vh) * 100);
  padding: 5rem 1.25rem 7.5rem 1.25rem;
  @media screen and (min-width: 768px) {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  @media screen and (min-width: 1024px) {
    padding-right: 5rem;
    padding-left: 5rem;
  }
  @media screen and (min-width: 1200px) {
    padding-right: 7.5rem;
    padding-left: 7.5rem;
  }
  
  & .page-hero__image {
    position: absolute;
    inset: 0;
    &::after {
      content: "";
      display: block;
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(225, 224, 220, 0.00) 71.63%, rgba(225, 224, 220, 0.48) 86.54%, #E1E0DC 100%), rgba(0, 0, 0, 0.53);
      pointer-events: none;
    }
    & img {
      position: relative;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 5rem;
    text-align: center;
    color: var(--snow);
    & .page-hero__title-ja {
      line-height: 1.15;
      font-weight: 500;
      font-size: 2rem;
      @media screen and (min-width: 768px) {
        font-size: 3rem;
      }
      @media screen and (min-width: 1024px) {
        font-size: 4rem;
      }
      @media screen and (min-width: 1200px) {
        font-size: 5rem;
      }
    }
    & .page-hero__title-en {
      line-height: 1.25;
      font-size: 1rem;
      @media screen and (min-width: 768px) {
        font-size: 1.25rem;
      }
      @media screen and (min-width: 1200px) {
        font-size: 1.5rem;
      }
    }
  }
  
  & .page-hero__scroll {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    line-height: 1.25;
    color: var(--snow);
    @media screen and (min-width: 768px) {
      right: 2.5rem;
      bottom: 2.5rem;
    }
    & p {
      writing-mode: vertical-rl;
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  & .section-title__en {
    line-height: 1.15;
    letter-spacing: 0.08em;
    color: var(--green);
    font-weight: 700;
    font-size: 0.875rem;
    margin-left: 0.5rem;
  }
  & .section-title__ja {
    line-height: 1.25;
    color: var(--dark-green);
    font-weight: 500;
    font-size: 1.4rem;
    @media screen and (min-width: 768px) {
      font-size: 2rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 2.5rem;
    }
  }
  
  &.section-title--lg .section-title__ja {
    @media screen and (min-width: 1024px) {
      font-size: 2.5rem;
    }
    @media screen and (min-width: 1200px) {
      font-size: 3rem;
    }
  }
  &.section-title--center {
    text-align: center;
    & .section-title__en {
      margin-left: 0;
    }
  }
  &.section-title--ink .section-title__ja {
    color: var(--ink);
  }
  &.section-title--snow .section-title__en, &.section-title--snow .section-title__ja {
    color: var(--snow);
  }
  @media screen and (min-width: 1200px) {
    &.section-title--vertical {
      writing-mode: vertical-rl;
      gap: 0.75rem;
      & .section-title__en {
        margin-top: 0.75rem;
        margin-left: 0;
      }
      & .section-title__ja {
        letter-spacing: 0.3em;
        line-height: 1;
      }
    }
  }
}

.button {
  --button-color: var(--green);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--button-color);
  line-height: 1.25;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1.125rem;
  transition: opacity ease 200ms;
  &::after {
    content: "";
    display: block;
    height: 1.75rem;
    width: 3.75rem;
    border-radius: 0.25rem;
    background-color: var(--button-color);
    background-image: url(/system_panel/uploads/images/white-arrow.svg);
    background-size: 1.25rem;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform ease 200ms;
  }
  &:hover {
    opacity: 90%;
    color: var(--button-color);
    text-decoration: none;
    &::after {
      transform: scale(0.95);
    }
  }
  &.button--white {
    --button-color: var(--snow);
    &::after {
      background-image: url(/system_panel/uploads/images/green-arrow.svg);
    }
  }
}

.footer-contact-image {
  position: absolute;
  inset: 0;
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 100 / 75%);
    pointer-events: none;
  }
  & img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.footer-dec {
  position: absolute;
  right: -5rem;
  bottom: -2.5rem;
  width: 35rem;
  & img {
    width: 100%;
  }
}

.news-dec-tr, .news-dec-bl, .work-dec-tr, .work-dec-bl {
  position: absolute;
  & img {
    width: 100%;
  }
}
.news-dec-tr {
  width: clamp(15rem, 33.75%, 33.75rem);
  top: 0;
  right: 0;
  transform: translate(43.3333%, -9.375%);
}
.news-dec-bl {
  width: clamp(15rem, 34.625%, 34.625rem);
  bottom: 0;
  left: 0;
  transform: translate(-35.56%, 42.88%);
}

.work-dec-tr {
  width: clamp(10rem, 16.25%, 16.25rem);
  top: 0;
  right: 0;
  transform: translate(-15.3846%, 8.51%);
}
.work-dec-bl {
  width: clamp(25rem, 40.5%, 40.5rem);
  bottom: 0;
  left: 0;
  transform: translate(-10.3395%, 7.6335%);
}

.prayer-intro-dec-tr, .prayer-intro-dec-bl, .prayer-intro-imege-tl, .prayer-intro-imege-br {
  position: absolute;
  & img {
    width: 100%;
  }
}
.prayer-intro-imege-tl img, .prayer-intro-imege-br img {
  object-fit: cover;
}
.prayer-intro-dec-tr {
  width: 42.625rem;
  top: 4.375rem;
  right: -5rem;
}
.prayer-intro-dec-bl {
  width: 20rem;
  bottom: -2.5rem;
  left: 1.25rem;
}
.prayer-intro-imege-tl {
  width: clamp(7rem, 20%, 20rem);
  top: -1rem;
  left: 0;
  @media screen and (min-width: 768px) {
    top: -2rem;
  }
  @media screen and (min-width: 1200px) {
    top: 13.375rem;
    left: 1rem;
  }
  @media screen and (min-width: 1440px) {
    left: 4.125rem;
  }
  & img {
    aspect-ratio: 16 / 19
  }
}
.prayer-intro-imege-br {
  width: clamp(6rem, 15%, 15rem);
  right: 0.75rem;
  bottom: -0.5rem;
  @media screen and (min-width: 1200px) {
    bottom: 4.5rem;
  }
  @media screen and (min-width: 1440px) {
    right: 9.125rem;
  }
  & img {
    aspect-ratio: 4 / 5
  }
}

.prayer-services-dec-1, .prayer-services-dec-2 {
  position: absolute;
  & img {
    width: 100%;
  }
}
.prayer-services-dec-1 {
  width: 34.625rem;
  top: 43.75rem;
  left: -4.5rem;
}
.prayer-services-dec-2 {
  width: 35.8125rem;
  top: 50%;
  left: 8rem;
  transform: translateY(-50%);
}

.service-case-dec {
  position: absolute;
  width: 20.25rem;
  right: -1rem;
  bottom: -1rem;
  & img {
    width: 100%;
  }
}

.faq-link-bg {
  position: absolute;
  inset: 0;
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 53%);
    pointer-events: none;
  }
  & img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.flow-dec-image {
  object-fit: cover;
  aspect-ratio: 7 / 9;
  width: 12rem;
  position: absolute;
  right: 1.25rem;
  bottom: 0;
  transform: translateY(calc(100% + 3rem));
  @media screen and (min-width: 768px) {
    width: 15rem;
    transform: translateY(calc(100% + 1rem));
  }
  @media screen and (min-width: 768px) {
    width: 15rem;
    transform: translateY(calc(100% + 1rem));
  }
  @media screen and (min-width: 1440px) {
    width: 17.5rem;
    right: -6.25rem;
    transform: translateY(calc(100% - 3rem));
  }
}

.flow-dec, .price-dec {
  position: absolute;
  & img {
    width: 100%;
  }
}
.flow-dec {
  width: 80rem;
  top: 50%;
  right: -5rem;
  transform: translateY(calc(-50% + 3.5rem));
}
.price-dec--line-1 {
  width: 42.625rem;
  top: -6.25rem;
  right: -23.75rem;
}
.price-dec--line-2 {
  width: 56rem;
  bottom: -38.5rem;
  right: -6.25rem;
}
.price-dec--feather-1 {
  width: 17rem;
  top: 37.5rem;
  right: 17.75rem;
}
.price-dec--feather-2 {
  width: 17.5rem;
  bottom: -6.25rem;
  left: 3.5rem;
}

.memories-intro-dec {
  position: absolute;
  width: 44.5rem;
  right: -6rem;
  bottom: -2rem;
  & img {
    width: 100%;
  }
}






