:root {
  --elevation-1: 0 2px 6px 1px rgba(0, 0, 0, 0.15), 0 4px 12px 2px rgba(0, 0, 0, 0.15), 0 8px 24px 4px rgba(0, 0, 0, 0.15), 0 16px 48px 8px rgba(0, 0, 0, 0.15);
  --elevation-2: 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);
}

*,
*::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(--off-white);
  letter-spacing: 0.06em;
  font-weight: 700;
}

#root {
  max-width: 2280px;
  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;
        &:hover {
          text-decoration: none;
        }
      }

      &.selected {
        & a {
          &:hover {}
        }
      }
    }
  }
}

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

.thumbnail {
  position: relative;

  &.thumbnail--16x9 {
    padding-top: 56.25%;
  }

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

.elevation-1 {
  box-shadow: var(--elevation-1);
}
.elevation-2 {
  box-shadow: var(--elevation-2);
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 8rem;
  padding-left: 1.25rem;
  height: 30rem;
  @media (min-width: 768px) {
    padding-left: 2.5rem;
    height: 32.5rem;
  }
  @media (min-width: 1024px) {
    flex-direction: row;
    align-items: center;
    padding-left: 3.75rem;
    height: 35rem;
  }
  @media (min-width: 1200px) {
    padding-left: 5rem;
    height: 37.5rem;
  }
  
  & .page-hero__dec-circle {
    position: absolute;
    top: 5rem;
    left: -7.5rem;
    width: 30rem;
    height: 30rem;
    border-radius: 9999px;
    background-color: var(--logo-orange);
    opacity: 10%;
    @media (min-width: 1024px) {
      top: 8.75rem;
    }
  }
  
  & .page-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-align: center;
    @media (min-width: 1024px) {
      flex: 1 1 0%;
    }
    & .page-hero__title-sub {
      color: var(--logo-orange);
      @media (min-width: 768px) {
        font-size: 1.125rem;
      }
      @media (min-width: 1024px) {
        font-size: 1.25rem;
      }
    }
    & .page-hero__title-main {
      font-size: 1.5rem;
      @media (min-width: 768px) {
        font-size: 2rem;
      }
      @media (min-width: 1024px) {
        font-size: 2.25rem;
      }
    }
  }
  
  & .page-hero__image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
    height: 100%;
    box-shadow: var(--elevation-2);
    @media (min-width: 1024px) {
      width: 70%;
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      inset: 0;
      background-color: var(--logo-orange);
      opacity: 10%;
      pointer-events: none;
    }
    & img {
      object-fit: cover;
      height: 100%;
      width: 100%;
    }
  }
  
  & .page-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    min-width: 50rem;
    width: 100%;
    height: 3rem;
    background-image: url(/system_panel/uploads/images/wave.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    @media (min-width: 1024px) {
      height: 4rem;
    }
    @media (min-width: 1200px) {
      height: 5.5625rem;
    }
  }
}

.section-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-align: center;
  & .section-title__sub {
    color: var(--logo-orange);
    @media (min-width: 768px) {
      font-size: 1.125rem;
    }
    @media (min-width: 1024px) {
      font-size: 1.25rem;
    }
  }
  & .section-title__main {
    font-size: 1.5rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
    @media (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  
  &.section-title--start {
    text-align: start;
  }
  &.section-title--snow {
    & .section-title__sub, & .section-title__main {
      color: var(--snow);
    }
  }
  &.section-title--beginning-sm .section-title__main {
    font-size: 1.25rem;
    @media (min-width: 768px) {
      font-size: 2rem;
    }
    @media (min-width: 1024px) {
      font-size: 2.25rem;
    }
  }
  &.section-title--sm .section-title__main {
    font-size: 1.125rem;
    @media (min-width: 768px) {
      font-size: 1.25rem;
    }
    @media (min-width: 1024px) {
      font-size: 1.5rem;
    }
  }
  &.section-title--lime .section-title__sub {
    color: var(--lime);
  }
}

.card-dec-circle {
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 9999px;
  background-color: var(--logo-orange);
  opacity: 10%;
  &.card-dec-circle--tl {
    top: -22.75rem;
    left: -24.25rem;
  }
  &.card-dec-circle--br {
    bottom: -22.25rem;
    right: -22.625rem;
  }
  &.card-dec-circle--tc {
    width: clamp(15rem, 55.5555555556%, 50rem);
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: var(--snow);
    opacity: 40%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  &.card-dec-circle--lime {
    background-color: var(--lime);
  }
}

.day-service-calendar {
  position: relative;
  overflow: auto;
  & .fc {
    & .fc-toolbar-title {
      font-size: 1.25rem;
    }
    & table {
      font-size: 0.875rem;
    }
  }
  & .fc-daygrid-event {
    white-space: normal;
  }
  & .sibloo-calendar {
    min-width: 50rem;
  }
}

.contact-button-dec-circle {
  position: absolute;
  right: -4.5rem;
  bottom: -6.875rem;
  width: 15rem;
  height: 15rem;
  border-radius: 9999px;
  background-color: var(--snow);
  opacity: 20%;
}

.form-selector__button {
  position: relative;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: transparent;
  color: var(--logo-orange);
  line-height: 1.25;
  transition: opacity ease 200ms;
  border: 2px solid var(--logo-orange);
  cursor: pointer;
  &:hover {
    opacity: 85%;
    text-decoration: none;
    color: var(--logo-orange);
  }
  &.selected {
    background-color: var(--logo-orange);
  	color: var(--snow);
    &:hover {
      color: var(--snow);
    }
  }
}

.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--snow);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity ease 200ms;
  & > p {
    margin-bottom: 0.375rem;
  }
  &::before {
    content: "";
    display: block;
    height: 1.25rem;
    width: 1.25rem;
    background-image: url(/system_panel/uploads/images/arrow--logo-orange.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 0 1.75rem;
    height: 0.125rem;
    background-color: var(--snow);
    border-radius: 9999px;
  }
  &:hover {
    opacity: 85%;
    text-decoration: none;
    color: var(--snow);
  }
  
  &.button--lime {
    color: var(--ink);
    &::before {
      background-image: url(/system_panel/uploads/images/arrow--lime.svg);
    }
    &::after {
      background-color: var(--ink);
    }
    &:hover {
      color: var(--ink);
    }
  }
  &.button--on-white {
    color: var(--ink);
    &::before {
      background-image: url(/system_panel/uploads/images/arrow--snow.svg);
    }
    &::after {
      background-color: var(--ink);
    }
    &:hover {
      color: var(--ink);
    }
  }
}

.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  min-width: 50rem;
  width: 100%;
  height: 3rem;
  background-image: url(/system_panel/uploads/images/wave.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  @media (min-width: 1024px) {
    height: 4rem;
  }
  @media (min-width: 1200px) {
    height: 5.5625rem;
  }
  &.section-wave--top {
    top: -1px;
    bottom: auto;
    transform: scaleY(-1);
  }
  &.section-wave--pale-yellow {
    background-image: url(/system_panel/uploads/images/wave--pale-yellow.png);
  }
}

.sm-card-dec-circle {
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  background-color: var(--logo-orange);
  opacity: 10%;
  position: absolute;
  right: -5.625rem;
  bottom: -13.75rem;
  &.sm-card-dec-circle--tl {
    inset: -10rem auto auto -6.875rem;
  }
  &.sm-card-dec-circle--br {
    right: -6.875rem;
    bottom: -7.5rem;
  }
}

.sm-card-num {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-32%, -48%);
  width: 6.25rem;
  height: 6.25rem;
  line-height: 1;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.5rem;
  color: hsl(0 0 100 / 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--logo-orange);
  border-radius: 9999px;
  & > p {
    position: relative;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0.25rem;
    border-radius: 9999px;
    border: 0.25rem solid hsl(0 0 100 / 80%);
  }
  &.sm-card-num--center {
    left: 50%;
    transform: translate(-50%, -48%);
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
  }
}

.sm-cards-arrow {
  align-self: center;
  transform: rotate(90deg);
  margin-top: -2rem;
  @media (min-width: 1024px) {
    transform: none;
    margin-top: unset;
  }
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.125em;
  column-gap: 0.25rem;
  padding-left: 1.5rem;
  list-style: disc outside none;
  & > p {
    margin: 0;
    display: list-item;
    line-height: 2;
    font-size: 1.125rem;
  }
}

.information-dec-circle {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 9999px;
  background-color: var(--snow);
  opacity: 40%;
  @media (min-width: 1024px) {
    width: 40rem;
    height: 40rem;
  }
  &.information-dec-circle--1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -20%);
  }
  &.information-dec-circle--2 {
    right: 0;
    bottom: 0;
    transform: translate(65.625%, 60.9375%);
  }
  &.information-dec-circle--3 {
    bottom: 0;
    left: 0;
    transform: translate(-51.5625%, 51.5625%);
  }
}

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

.swiper.facility-slider {
  width: 100%;
  overflow: visible;
  & .swiper-wrapper {
    transition-timing-function: linear;
    & img {
      aspect-ratio: 4 / 3;
      width: 100%;
      border-radius: 1rem;
    }
  }
}

.day-service-intro-dec-circle {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 9999px;
  background-color: var(--logo-orange);
  opacity: 10%;
  &.day-service-intro-dec-circle--1 {
    top: 2.5rem;
    left: -20rem;
  }
  &.day-service-intro-dec-circle--2 {
    width: 40rem;
    height: 40rem;
    top: 5rem;
    left: -20rem;
  }
  &.day-service-intro-dec-circle--3 {
    right: -15rem;
    bottom: -5rem;
  }
}

.fotter-contact-bg-image {
  position: absolute;
  inset: 0;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: var(--elevation-2);
  &::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: hsl(0 0 0 / 40%);
    pointer-events: none;
  }
  & img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
}



