:root {
  --shadow: 0px 2px 1px 0px rgba(0,0,0,.15);
}

@layer generic, layout, components;

@layer generic {
  figure {
    & img {
      width: 100%;
      height: auto;
    }
  }
}

@layer layout {
  main {
    background: #F4F4FA;
  }

  .section {
    padding: 4rem 2rem;
    &:last-child {
      padding-bottom: 10rem;
    }
  }

  .section-content {
    max-width: 75rem;
    margin: 0 auto;
  }

  .section-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .section-column-narrow {
    gap: 1rem;
  }

  .section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
  }

  .card-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 0;
  }

  .card-item {
    width: 49%;
  }

  .pages-wrapper {
    position: relative;
    overflow: hidden;
  }

  .pages-main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 2.5rem 2rem 10rem;
    position: relative;
    overflow: hidden;

    & section {
      position: relative;
      width: 100%;
    }
  }

  .pages-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .pages-hero-illust {
    width: 97.6712%;
    min-width: 1426px;
    position: absolute;
    top: -5.6875rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 0 0 -2.875rem;
    mix-blend-mode: multiply;
    & svg {
      width: 100%;
      height: 100%;
    }
  }

  .pages-hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    position: relative;
  }

  @media (width >= 768px) {
    .for-sp {
      display: none
    }
  }

  @media (width < 768px) {
    .section {
      padding-left: 0;
      padding-right: 0;
      &:last-child {
        padding-bottom: 5rem;
      }
    }

    .section-content {
      margin: 0 1rem;
    }

    .section-row {
      flex-direction: column;
      flex-wrap: nowrap;
    }

    .pages-main {
      padding: 2.5rem 0 5rem;
      & section {
        width: auto;
      }
    }

    .pages-hero-illust {
      margin: 0 0 0 -86px;
    }

    .card-item {
      width: 100%;
    }

    .for-pc {
      display: none
    }
  }
}

@layer components {
  @layer headline, button, link, icon, typography;

  @layer headline {
    .headline {
      font-size: 2rem;
      font-weight: 600;
      font-variation-settings: "wght" 600;
      letter-spacing: 0.04em;
      line-height: 1.5;
    }

    .section-headline {
      display: flex;
      flex-direction: column;
      gap: .8125rem;
      font-size: 2.25rem;
      font-weight: 600;
      font-variation-settings: "wght" 600;
      letter-spacing: 0.04em;
      line-height: 1.3;
    }

    .section-headline-label {
      font-family: var(--font-family-en);
      font-size: 1.125rem;
      font-weight: 500;
      font-variation-settings: "wght" 500;
      letter-spacing: 0.08em;
      line-height: 1.2;
      color: var(--primary-color);
      margin-left: .3125rem;
    }

    .section-headline-border {
      display: flex;
      flex-direction: column;
      gap: .8125rem;
      &::after {
        content: "";
        display: block;
        width: 3.125rem;
        height: 0.1875rem;
        background: var(--primary-color);
      }
    }

    .section-headline-small {
      font-size: 1.5rem;
    }

    @media (width < 768px) {
      .section-headline {
        text-align: center;
      }

      .section-headline-label {
        margin-left: 0;
      }

      .section-headline-border {
        font-size: 1.75rem;
      }

      .section-headline-small {
        text-align: left;
      }
    }
  }
  @layer button {
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      padding: .84rem 1.06rem;
      border-radius: 2.4375rem;
      font-weight: 600;
      font-variation-settings: "wght" 600;
      text-align: center;
    }

    .button-text {
      flex: 1;
      text-align: center;
    }

    .button-primary {
      --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="11" viewBox="0 0 8 11" fill="none"><path d="M1 1L6.08131 5.44615L1 9.8923" stroke="%23f57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
      background: var(--primary-color);
      border: solid 1px var(--primary-color);
      color: #fff;
      &::after {
        content: "";
        display: block;
        width: 34px;
        height: 34px;
        background: #fff var(--arrow-chevron);
        background-position: 14px center;
        background-repeat: no-repeat;
        background-size: 8px 11px;
        border-radius: 50%;
        transition: .3s;
      }
    }

    @media (width >= 992px) {
      .button-primary {
        transition: .3s;
        &:hover {
          background: #fff;
          color: var(--primary-color);
          &::after {
            --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="11" viewBox="0 0 8 11" fill="none"><path d="M1 1L6.08131 5.44615L1 9.8923" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            background-color: var(--primary-color);
          }
        }
      }
    }
  }

  @layer link {
    .link {
      display: flex;
      align-items: center;
      gap: .5rem;
      letter-spacing: 0.04em;
      &::after {
        --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="11" viewBox="0 0 8 11" fill="none"><path d="M1 1L6.08131 5.44615L1 9.8923" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        content: "";
        display: block;
        width: 34px;
        height: 34px;
        background: var(--arrow-chevron), var(--arrow-chevron), var(--primary-color);
        background-position: left -11px center , 14px center;
        background-repeat: no-repeat;
        background-size: 8px 11px;
        border-radius: 50%;
      }
    }

    .box-link {
      border-radius: 0.5rem;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .box-link-title {
      display: flex;
      flex-direction: column;
      font-size: 1.125rem;
      font-weight: 700;
      font-variation-settings: "wght" 700;
      line-height: 1.55;
      color: #1D1D1D;
    }
    @media (width >= 992px) {
      .link {
        transition: .3s;
        &:hover {
          color: var(--primary-color);
          font-weight: 700;
          font-variation-settings: "wght" 700;
          &::after {
            background-position: 14px center , right -11px center;
            transition: .3s;
          }
        }
      }
      .box-link {
        transition: .3s;
        &:hover {
          --shadow: 0px 3px 25px 0px rgba(0,0,0,.15);
        }
      }
    }
    @media (width < 768px) {
      .section-link {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        padding: .84rem 1.06rem;
        border-radius: 2.4375rem;
        font-weight: 600;
        font-variation-settings: "wght" 600;
        text-align: center;
        background: var(--primary-color);
        border: solid 1px var(--primary-color);
        color: #fff;
        width: 100%;
        &::after {
          --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="11" viewBox="0 0 8 11" fill="none"><path d="M1 1L6.08131 5.44615L1 9.8923" stroke="%23f57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
          width: 34px;
          height: 34px;
          background-color: #fff;
        }
      }
      .section-link-text {
        flex: 1;
        text-align: center;
      }
      .box-link-title {
        font-size: 1rem;
      }
    }
  }
  @layer icon {
    .icon {
      --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="11" viewBox="0 0 8 11" fill="none"><path d="M1 1L6.08131 5.44615L1 9.8923" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
      &::after {
        content: "";
        display: block;
        width: 34px;
        height: 34px;
        background: var(--arrow-chevron), var(--arrow-chevron), var(--primary-color);
        background-position: left -11px center , 14px center;
        background-repeat: no-repeat;
        background-size: 8px 11px;
        border-radius: 50%;
      }
    }

    @media (width >= 992px) {
      a.icon {
        &:hover {
          &::after {
            background-position: 14px center , right -11px center;
            transition: .3s;
          }
        }
      }
      a:hover {
        & .icon {
          &::after {
            background-position: 14px center , right -11px center;
            transition: .3s;
          }
        }
      }
    }
  }
  @layer typography {
    .note {
      font-size: var(--font-size-s);
      line-height: 1.6;
      color: var(--secondary-color);
    }

    .text-color-gray {
      color: var(--color-gray-9);
    }

    .text-small {
      font-size: var(--font-size-s);
    }

    .text-break {
      word-break: keep-all;
    }
  }
}
