@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP:400,700&subset=japanese');

/* ===== l-mv-under-wrap redesign ===== */

.l-mv-under-wrap {
  background: #ebe0e3;
  padding: 72px 20px;
  position: relative;

  @media (width < 1024px) {
    padding: 56px 20px;
  }

  /* Bottom white area */
  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 96px;
    background: #fff;
  }

  /* Ensure content is above the white area */
  .mv-under-message {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ---- Headline ---- */
  .mv-under-message-headline {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    padding: 0 0 0;
    margin: 0;
    text-align: center;
    background: none;
    border: none;
    color: inherit;

    span {
      background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        #fffdbb 60%
      );
      font-weight: 700;
    }

    & + .mv-under-message-lead {
      padding-top: 0;
    }
  }

  /* ---- Lead text ---- */
  .mv-under-message-lead {
    text-align: center;

    .is-text {
      font-size: 20px;
      font-weight: 700;
      text-align: center;
      line-height: 1.6;
      display: inline;
      background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        #fffdbb 60%
      );
    }
  }

  /* ---- More section ---- */
  .mv-under-message-more {
    width: 100%;
    max-width: 1040px;
    padding-inline: var(--layoutContainer-px);
    margin-top: 32px;
    border: none;
    border-radius: 0;
    padding-bottom: 0;

    @media (width < 1024px) {
      margin-top: 24px;
    }
  }

  /* ---- More header ---- */
  .mv-under-more-header {
    padding: 0;
    margin: 0 auto;
    background: transparent;
    width: auto;
    text-align: center;

    .is-text {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
      display: inline-flex;
      align-items: center;
      gap: 6px;

      @media (width < 1024px) {
        font-size: 16px;
      }

      /* Decorative lines ＼ ／ */
      &::before {
        content: '';
        display: inline-block;
        width: 22px;
        height: 0;
        border-top: 1px solid #181716;
        transform: rotate(60deg);
        flex-shrink: 0;

        @media (width < 1024px) {
          width: 20px;
        }
      }

      &::after {
        content: '';
        display: inline-block;
        width: 22px;
        height: 0;
        border-top: 1px solid #181716;
        transform: rotate(-60deg);
        flex-shrink: 0;

        @media (width < 1024px) {
          width: 20px;
        }
      }
    }

    /* Subtitle added via CSS */
    &::after {
      content: '通学目的に合わせて選べる姉妹校';
      display: block;
      font-size: 26px;
      font-weight: 700;
      text-align: center;
      line-height: 1.6;
      color: #181716;
      margin-top: 2px;
      font-family: 'Hiragino Kaku Gothic Pro', 'Noto Sans JP', sans-serif;

      @media (width < 1024px) {
        font-size: 20px;
      }
    }
  }

  /* ---- More list ---- */
  .mv-under-more-list {
    max-width: 1040px;
    padding: 24px 0 0;
    gap: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 auto;

    @media (width < 1024px) {
      padding: 16px 0 0;
      flex-direction: column;
      align-items: center;
    }
  }

  /* ---- Card items ---- */
  .mv-under-more-item {
    width: 100%;
    max-width: 340px;
    flex-shrink: 0;
    margin: 0;
    list-style: none;

    @media (width < 1024px) {
      width: 336px;
      max-width: 100%;
      flex: none;
    }

    & + .mv-under-more-item {
      margin-top: 0;
    }

    /* ---- Card link ---- */
    a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      height: auto;
      background: #fff;
      border: 2px solid #c38396;
      border-radius: 0;
      padding: 11px 12px 12px;
      color: #c38396;
      flex-wrap: nowrap;
      text-decoration: none;
      transition: opacity ease-out 0.3s;

      &:hover {
        opacity: 0.8;
      }

      /* Remove old arrow */
      &::after {
        display: none;
      }
    }

    /* ---- Card text visibility ---- */
    .is-text.is-pc {
      display: block;
    }

    .is-text.is-sp {
      display: none;
    }

    .is-text + .is-text {
      margin-top: 0;
    }

    /* ---- Title text (first is-pc) ---- */
    .is-text.is-pc:first-child {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 0 6px;
      font-size: 19px;
      color: #c38396;
      line-height: 1.4;

      b {
        font-size: 19px;
        font-weight: 700;
        color: #c38396;
        text-align: center;
        width: 100%;
      }

      /* Arrow icon */
      &::after {
        content: '';
        display: block;
        flex-shrink: 0;
        width: 9px;
        height: 16px;
        background: #c38396;
        clip-path: polygon(0 0, 100% 50%, 0 100%);
      }
    }

    /* ---- School name bar (second is-pc) ---- */
    .is-text.is-pc:nth-child(2) {
      width: 100%;
      background: #c38396;
      color: #fff;
      padding: 4px 6px;
      font-size: 12px;
      line-height: 1.2;
      text-align: center;
    }
  }
}

#section-mv {
  .o-sectionMv__note {
    color: #38373d;
    text-align: center;
    font-size: 10px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    /* 15px */
    margin-top: 8px;
  }
}
