@font-face {
  font-display: swap;
  font-family: "Glow Sans";
  font-style: normal;
  font-weight: 400;
  src: url("GlowSansJ-Normal-Regular-subset.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Glow Sans";
  font-style: normal;
  font-weight: 700;
  src: url("GlowSansJ-Normal-Bold-subset.woff2") format("woff2");
}

body {
  line-height: 1.8;
  letter-spacing: 0.025em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
table,
a,
button,
li,
div {
  font-family: "Glow Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #161717;
  border-bottom: 6px solid #7c9fc8;;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

p,
table,
button,
li,
div {
  color: #4b4b4b;
}

a {
  transition: 0.2s;
  &:hover,
  &:active {
    opacity: 0.8;
  }
}

ul {
  padding-left: 1rem !important;
}

rt {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.7;
}

header {
  margin-bottom: 3rem;
}

.color3 {
  color: #7f7f7f;
}

.color4 {
  color: #314456;
}

.container {
  padding-block: 24px;
  margin-inline: auto;
  -webkit-transform: translateZ(0);
}

.toggle__input {
  width: 56px;
  height: 23px;
  margin: auto;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.toggle__label {
  width: 50px;
  height: 23px;
  background: #ccc;
  position: relative;
  display: inline-block;
  border-radius: 40px;
  transition: 0.4s;
  box-sizing: border-box;
  cursor: pointer;
  margin-left: -56px;

      &::before {
      content: "ふりがな";
      font-size: 16px;
      width: 66px;
      display: block;
      margin-left: -7px;
      transform: translateY(20px);
    }
}

.toggle__label:after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  border-radius: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.4s;
}

.toggle__input:checked + .toggle__label {
  background-color: #7c9fc8;;
}

.toggle__input:checked + .toggle__label:after {
  left: 30px;
}

#toggle:not(:checked) ~ header rt,
#toggle:not(:checked) ~ footer rt,
#toggle:not(:checked) ~ section rt,
#toggle:not(:checked) ~ div rt,
#toggle:not(:checked) ~ h1 rt,
#toggle:not(:checked) ~ h2 rt,
#toggle:not(:checked) ~ h3 rt,
#toggle:not(:checked) ~ p rt,
#toggle:not(:checked) ~ a rt {
  display: none;
}

.card-internal,
.blue-btn {
  position: relative;
  box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.3);

  &:hover {
    transform: translate(1px, 1px);
    box-shadow: none;
  }
}

.card-internal {
  background-color: #f9fafd;
  border-radius: 16px;
  border: none;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(to right, #9f86cf, #7c9fc8) border-box
      border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
  }
}

.card-internal.radius64 {
  border-radius: 64px;

  &::before {
    border-radius: 64px;
  }
}

#relaxation-list .card-internal {
  padding-right: 0;

  & .card-body {
    padding: 8px 0 0 1rem;
  }
}

.link-mark-internal,
.link-mark-external {
  background-size: contain;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 8px;
  top: 8px;
  pointer-events: none;
}

.link-mark-internal {
  background-image: url("internal-link.png");
}

.link-mark-external {
  background-image: url("external-link.png");
}

.d-flex {
  justify-content: space-between;
}

.blue-btn {
  display: block;
  width: 294px;
  height: 56px;
  line-height: 56px;
  border-radius: 20px;
  margin: 0 auto;
  background-color: #7c9fc8;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  text-align: center;
}

.blue-btn-arrow {
  &::after {
    content: "";
    width: 13px;
    height: 13px;
    position: absolute;
    top: 18px;
    right: 24px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
  }
}

.external-btn {
  display: block;
  border: none;
  position: relative;
  width: fit-content;
  padding: 0 8px;
  color: #4b4b4b;
  text-decoration: none;

  &:visited {
    color: #4b4b4b;
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    background: linear-gradient(to right, #9f86cf, #7c9fc8) border-box
      border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    mask-composite: exclude;
  }

  &::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    top: 8px;
    right: -14px;
    border-right: 3px solid #7c9fc8;;
    border-bottom: 3px solid #7c9fc8;;
    transform: rotate(-45deg);
    transition: 0.2s;
  }

  &:hover {
    &::after {
      right: -17px;
    }
  }

  &.external-btn--card {
    &::after {
      width: 18px;
      height: 18px;
      top: calc(50% - 12px);
      right: 32px;
    }

    &:hover {
      &::after {
        right: 29px;
      }
    }

    &.external-btn--other {
      &::before {
        background: linear-gradient(to right, #93a8df, #75b2cf) border-box;
      }
    }
  }

  &.external-btn--card2 {
    &::after {
      width: 18px;
      height: 18px;
      top: calc(50% - 12px);
      right: 18px;
    }

    &:hover {
      &::after {
        right: 15px;
      }
    }
  }
}

#find_relaxes > h2 {
  margin-bottom: 3rem;
}

.consultation-card-title {
  width: 90%;
  border-bottom-width: 6px;
  border-bottom-style: solid;
  border-image-source: linear-gradient(to right, #9f86cf, #7c9fc8);
  border-image-slice: 1;

  &.consultation-card-title--other {
    border-image-source: linear-gradient(to right, #93a8df, #75b2cf);
  }
}

.selfcare {
  & h2 {
    margin-bottom: 1.5rem;
  }
  & p {
    margin: 0;
    font-weight: bold;
    text-align: center;
  }

  & .col.card {
    flex-basis: 213px;
    flex-grow: 0;
  }

  & .card-body {
    padding-right: 0;
    padding-left: 0;
  }

  &.three {
    & .row {
      max-width: 735px;
      margin-left: auto;
      margin-right: auto;
    }
  }
}

.container {
  container-type: inline-size;
}

@container (max-width: 819px) {
  h1 {
    font-size: 2rem;
  }
  
  .small {
    font-size: 0.8125em;
  }

  .main-cards {
    flex-direction: column !important;
    row-gap: 48px;
    align-items: center;

    & .row {
      flex-direction: row !important;
    }
  }
}

.close-container {
  position: absolute;
  top: 0;
  right: 0;
}

.close-checkbox {
  display: none;
}

.close-label {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  display: inline-block;
  padding: 4px 8px;
  background: #eee;
  border-radius: 4px;
  user-select: none;
  transition: background 0.2s;
  line-height: 20px;
}

.close-label:hover {
  background: #ccc;
}

.container:has(input#close:checked) {
  display: none;
}