@charset "UTF-8";

@import url("_common.css");
@import url("_utility.css");

body.p-path{
  /* path common ======== */

  /* top ======== */
  &.--path-top{
  } /* path-top */

  /* university ======== */
  &.--path-university{
    & .l-contents{
      & .l-contents__inner{
        ul{
          display: grid;
          column-gap: 1px;
          row-gap: calc(clamp(1.25rem, 0.896rem + 1.51vw, 2.5rem) + 1px); /* 20px 40px */
          @media not all and (max-width: 750px) {
            grid-template-columns: repeat(3, 1fr);
          }
          @media (max-width: 750px) {
            grid-template-columns: 1fr;
          }
          & > li{
            outline: 1px solid color-mix(in srgb, var(--color-black-primary) 60%, transparent);
          }
          & > li a{
            display: grid;
            grid-template-rows: auto 1fr;
            height: 100%;
            background-color: var(--color-gray-primary);
            /* border: 1px solid color-mix(in srgb, var(--color-black-primary) 75%, transparent); */
            transition: background-color 0.24s ease-in-out;
            & > figure{
              display: block;
              width: 100%;
              aspect-ratio: 430/613;
              background-color: var(--color-white);
              filter: brightness(1);
              transition: filter 0.4s ease-in-out;
              & img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
              }
            }
            & > div{
              padding: 1em;
              border-top: 1px solid color-mix(in srgb, var(--color-black-primary) 75%, transparent);
              position: relative;
              & h3{
                display: grid;
                align-items: center;
                grid-template-columns: auto 1em;
                gap: .5em;
                & .text{
                  & > .text-main{
                    margin-inline-end: .2em;
                    font-size: clamp(0.875rem, 0.663rem + 0.91vw, 1.625rem); /* 14px 26px */
                    font-size: clamp(0.875rem, 0.733rem + 0.6vw, 1.375rem); /* 14px 22px */
                    font-weight: 900;
                    line-height: 1.2;
                    text-decoration: underline var(--color-green-primary);
                    text-decoration-thickness: clamp(0.094rem, 0.067rem + 0.11vw, 0.188rem);
                  }
                  & > span{
                    font-size: clamp(0.75rem, 0.697rem + 0.23vw, 0.938rem); /* 12px 15px */
                    font-weight: 400;
                    text-decoration: none;
                    text-decoration-color: none;
                  }
                }
                & .icon{
                  display: block;
                  width: 1em;
                  aspect-ratio: 1;
                  margin-inline: auto 0;
                  position: absolute;
                  top: 50%;
                  right: 1em;
                  translate: 0 -50%;
                  transition: right 0.4s ease-in-out;
                }
              }
            }
            @media (any-hover: hover) {
              &:hover{
                background-color: var(--color-gray-secondary);
                & figure{
                  filter: brightness(1.1);
                }
                & h3 .icon{
                  right: 0.75em;
                }
              }
            }
          }
          & > li + li{
            /* & a{
              border-left: none;
              & figure{
                width: calc(100% - 1px);
              }
            } */
          }
          @media not all and (max-width: 750px) {
            /* & > li:nth-of-type(4){
              border-left: 1px solid color-mix(in srgb, var(--color-black-primary) 75%, transparent);
              & figure{
                width: 100%;
              }
            } */
          }
          @media (max-width: 750px) {
            /* & > li:nth-of-type(3),
            & > li:nth-of-type(5){
              border-left: 1px solid color-mix(in srgb, var(--color-black-primary) 75%, transparent);
              & figure{
                width: 100%;
              }
            } */
          }
        }
      }
    } /* university 01 */
  } /* university */

  /* voices ======== */
  &.--path-voices{
    & .l-contents{
      padding-block: clamp(2.188rem, 1.568rem + 2.64vw, 4.375rem); /* 35px 70px */
      overflow-x: hidden;
      position: relative;
      &::before,
      &::after{
        display: block;
        content: "";
        width: 100%;
        max-width: calc(1300px + 24px + 24px);
        height: 100%;
        border-radius: clamp(0.5rem, 0.288rem + 0.91vw, 1.25rem); /* 8px 20px */
        background-color: var(--color-gray-primary);
        position: absolute;
        z-index: -1;
      }
      &::before{
        inset: 0;
        margin: auto;
      }
      &::after{
        top: 0;
      }
      &:nth-of-type(odd){
        &::after{
          left: -20px;
        }
        & .l-width-primary{
          padding-inline-end: clamp(2.188rem, 1.568rem + 2.64vw, 4.375rem); /* 35px 70px */
        }
      }
      &:nth-of-type(even){
        &::after{
          right: -20px;
        }
        & .l-width-primary{
          padding-inline-start: clamp(2.188rem, 1.568rem + 2.64vw, 4.375rem); /* 35px 70px */
        }
      }
      &:nth-of-type(n+2) {
        margin-block-start: clamp(3.125rem, 2.241rem + 3.77vw, 6.25rem); /* 50px 100px */
      }
      & + .l-lowerlinks{
        margin-block-start: clamp(3.125rem, 2.241rem + 3.77vw, 6.25rem); /* 50px 100px */
      }
      & h2{
        color: var(--color-red-primary);
      }
      & p.catch{
        font-size: clamp(1rem, 0.965rem + 0.15vw, 1.125rem); /* 16px 18px */
        font-weight: 500;
        @media (max-width: 750px) {
          margin-block-start: 36px;
        }
      }
      & figure{
        aspect-ratio: 591.4014/410.7482;
        border-radius: clamp(0.5rem, 0.288rem + 0.91vw, 1.25rem); /* 8px 20px */
        overflow: hidden;
        & > img{
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: calc();
        }
        & + p{
          margin-block-start: 2em;
          font-size: 15px;
          & ~ p{
            font-size: 15px;
          }
        }
      }
    } /* voices common */
  } /* voices */
  & .l-lowerlinks__inner{
    & .c-cardlist__inner{
      justify-content: center;
      & .swiper-slide:last-of-type{
        margin-inline-end: 0 !important;
      }
    }
  }
}