/* 全体の基本設定 */
* {
  box-sizing: border-box; /* 幅と高さにpaddingとborderを含める */
  margin: 0;
  padding: 0;
  color: #000000;
  font-family: "Noto Sans JP";
}

a {
  text-decoration: none;
  font-weight: bold;
}

.color {
  color: #50b3cf;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*ファーストビュー*/
header {
  height: 100vh; /* 画面の高さいっぱいに表示 */
  background-image: url(img/firstview_bg.png);
  background-repeat: no-repeat;
  background-size: cover; /* 背景画像を画面全体に広げる */
  background-position: center; /* 背景画像を中央に配置 */
  padding-top: 30px;
}

.nav {
  border: 5px solid #50b3cf;
  border-radius: 50px;
  background: #ffffff;
  padding: 10px 60px;
  display: flex;
  column-gap: 8px;
  justify-content: space-between;
  list-style: none;
  margin-left: 40%;
  font-size: clamp(8px, 1.1vw, 15px);
}

.title p {
  font-size: 13px;
  font-weight: bold;
}

.title h2 {
  margin-top: 9px;
  font-size: 36px;
  letter-spacing: 0.1em;
}

.title {
  margin-top: 105px;
  text-align: center;
}

.text {
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 200%;
  font-size: 20px;
  margin-top: 43px;
  margin-bottom: 162px;
}
.about_school {
  .text {
    margin: 43px 14vw 70px 14vw;
  }
  .em {
    font-size: 36px;
    color: #50b3cf;
  }
}

.point {
  .text {
    margin-bottom: 35px;
  }
}

.about_test {
  background-color: #ecf5f7;
}
.big_box {
  margin-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 14vw;
  h3 {
    font-size: 26px;
    margin-bottom: 23px;
  }
  p {
    font-size: 16px;
    letter-spacing: 0.1em;
    line-height: 200%;
  }
  img {
    width: 30%;
  }
  .graph {
    width: 30%;
    margin-top: 250px;
  }
  .graph img {
    width: 100%;
  }
  .graph p {
    font-size: 12px;
  }
  .test_text {
    margin-top: 250px;
  }
}

.all_point {
  position: relative;
  width: 65%;
  margin-top: 70px;
}

.point_text {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 25vw;
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
  border: 1px solid #50b3cf;
  border-radius: 50px;
  padding: 7px 40px;
  background-color: #50b3cf;
  letter-spacing: 0.1em;
  z-index: 5;
}

.point_test {
  position: absolute;
  top: 20px;
  display: flex;
  border: 5px solid #50b3cf;
  background-color: #ffffff;
  border-radius: 42px;
  padding: 30px 40px;
  z-index: 0;
}

.point_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img {
    width: 45%;
  }
  p {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
  }
}

.exp_university {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #50b3cf;
  border-radius: 46px;
  background-color: #50b3cf;
  padding: 25px 100px;
  margin-top: 90px;
  h3 {
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 26px;
  }
  ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 100px;
  }
  li {
    font-size: 20px;
    color: #ffffff;
    line-height: 200%;
  }
}

.imp {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 200%;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

/* .about_study {
    background-color: #ECF5F7;
    .illust_school {
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
        letter-spacing: 0.1em;
        column-gap: 20px;
        margin-bottom: 110px;
        p {
            margin-top: 8px;
            font-weight: bold;
        }
        .grade {
            font-size: clamp(12px,1.7vw,24px);
            font-weight: 800;
            color: #ffffff;
        }
        h3 {
            margin-top: 20px;
            font-size: 32px;
            font-weight: 800;
        }
        .first {
            text-align: center;
            span {
                color: #50B3CF;
            }
            .grade {
                border: 1px solid #50B3CF;
                border-radius: 23px;
                background-color: #50B3CF;
                padding: 2px 20px;
                margin-right: 30%;
                margin-left: 30%;
                box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25);
            }
        }
        .second {
            text-align: center;
            span {
                color: #508BCF;
            }
            .grade {
                border: 1px solid #508BCF;
                border-radius: 23px;
                background-color: #508BCF;
                padding: 2px 20px;
                margin-right: 25%;
                margin-left: 25%;
                box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25);
            }
        }
        .third {
            text-align: center;
            span {
                color: #6750CF;
            }
            .grade {
                border: 1px solid #6750CF;
                border-radius: 23px;
                background-color: #6750CF;
                padding: 2px 20px;
                margin-right: 30%;
                margin-left: 30%;
                box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25);
            }
        }
    }
    img {
        margin-top: 25px;
        width: 50%;
    }
    .arrow {
        width: 3%;
        height: 30%;
    }
} */

.about_study {
  background-color: #ecf5f7;

  .illust_school {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 110px;
    letter-spacing: 0.1em;

    p {
      margin-top: 8px;
      font-weight: bold;
    }

    h3 {
      margin-top: 20px;
      font-size: 32px;
      font-weight: 800;
    }

    .first,
    .second,
    .third {
      text-align: center;
    }

    /* 「1年生」「2年生」「3年生」の共通設定 */
    .grade {
      width: fit-content;
      margin: 8px auto 0;
      padding: 2px 20px;

      border-radius: 23px;
      color: #ffffff;
      font-size: clamp(12px, 1.7vw, 24px);
      font-weight: 800;

      box-shadow: 0 4px 4px rgb(0 0 0 / 0.25);
    }

    /* 1年生 */
    .first {
      span {
        color: #50b3cf;
      }

      .grade {
        border: 1px solid #50b3cf;
        background-color: #50b3cf;
      }
    }

    /* 2年生 */
    .second {
      span {
        color: #508bcf;
      }

      .grade {
        border: 1px solid #508bcf;
        background-color: #508bcf;
      }
    }

    /* 3年生 */
    .third {
      span {
        color: #6750cf;
      }

      .grade {
        border: 1px solid #6750cf;
        background-color: #6750cf;
      }
    }
  }

  img {
    width: 50%;
    margin-top: 25px;
  }

  .arrow {
    width: 3%;
    height: 30%;
  }
}

.point {
  .school_picture {
    display: flex;
    column-gap: 20px;
  }
  .kind_of_class {
    margin-top: 60px;
    width: 70%;
    position: relative;

    p {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translate(-50%, -50%);
      width: auto;
      border: 1px solid #50b3cf;
      border-radius: 24px;
      background-color: #50b3cf;
      text-align: center;
      padding: 8px 50px;
      color: #ffffff;
      box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25);
      white-space: nowrap;
    }
    ul {
      border: 5px solid #50b3cf;
      border-radius: 43px;
      padding: 62px 10px 42px 150px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
}

footer {
  background-color: #ecf5f7;
  .text_left {
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 200%;
    font-size: 16px;
    margin-top: 43px;
    margin-bottom: 100px;
  }
  .button {
    border: 1px solid #50b3cf;
    border-radius: 36px;
    background-color: #50b3cf;
    padding: 16px 80px;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25);
    span {
      color: #ffffff;
      letter-spacing: 0.1em;
    }
  }
  .cta {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 50px;
    margin-bottom: 80px;
    img {
      width: 280px;
    }
  }
}
/* ==============================================
   Mobile (<=768px)
   ============================================== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 8px;
    margin-left: 0;
    padding: 12px 20px;
    font-size: 12px;
    justify-content: center;
  }

  header {
    padding-top: 16px;
  }

  .title {
    margin-top: 48px;
  }

  .title h2 {
    font-size: 24px;
  }

  .text {
    font-size: 15px;
    margin-top: 24px;
    margin-bottom: 64px;
  }

  .about_school .em {
    font-size: 24px;
  }

  .big_box {
    flex-direction: column;
    column-gap: 0;
    row-gap: 24px;
    margin-top: 40px;
  }

  .big_box img,
  .big_box .graph {
    width: 80%;
    margin-top: 0;
  }

  .big_box .test_text {
    margin-top: 0;
  }

  .all_point {
    width: 70vw;
    margin-top: 40px;
  }

  .point_text {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: fit-content;
    margin: 0 auto 16px;
    font-size: 15px;
    padding: 6px 24px;
  }

  .point_test {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
    padding: 20px;
    border-radius: 24px;
  }

  .point_box {
    width: 40%;
  }

  .point_box img {
    width: 60%;
  }

  .point_box p {
    font-size: 13px;
  }

  .exp_university {
    width: 90%;
    padding: 20px 24px;
    margin-top: 40px;
  }

  .exp_university h3 {
    font-size: 20px;
  }

  .exp_university ul {
    column-gap: 32px;
    row-gap: 4px;
    justify-content: center;
  }

  .exp_university li {
    font-size: 15px;
  }

  .imp {
    font-size: 18px;
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .illust_school {
    width: 100% !important;
    flex-direction: column;
    row-gap: 20px;
    margin-bottom: 48px !important;
  }

  .illust_school .arrow {
    width: 24px !important;
    height: auto !important;
    transform: rotate(90deg);
  }

  .illust_school h3 {
    font-size: 22px;
  }

  .illust_school img {
    width: 40% !important;
  }

  .point .school_picture {
    flex-wrap: wrap;
    justify-content: center;
  }

  .point .school_picture img {
    width: 45% !important;
    height: auto;
  }

  .kind_of_class {
    width: 100%;
    margin-top: 40px;
  }

  .kind_of_class p {
    position: absolute;
    width: auto;
    margin: 0 auto 12px;
    padding: 6px 24px;
    font-size: 14px;
  }

  .kind_of_class ul {
    padding: 0;
    border-radius: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .kind_of_class li {
    font-size: 14px;
  }

  footer .text_left {
    font-size: 14px;
  }

  footer .cta {
    flex-direction: column;
    row-gap: 20px;
  }

  footer .cta img {
    width: 160px;
  }

  footer .button {
    padding: 12px 32px;
  }
}

/* ==============================================
   Smartphone (<=450px)
   ============================================== */
@media (max-width: 450px) {
  html {
    scroll-behavior: smooth;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* 全セクション共通の左右余白 */
  .container {
    width: 100%;
    padding-inline: 20px;
  }

  section {
    scroll-margin-top: 20px;
  }

  /* HTMLで入れたPC用の改行をスマホでは解除 */
  .text br,
  .big_box p br,
  .imp br,
  footer .text_left br {
    display: none;
  }

  /* =====================
     ファーストビュー
     ===================== */
  header {
    aspect-ratio: 5760 / 3840;
    width: 100%;
    height: auto;
    background-size: contain;
  }

  header .container {
    padding-inline: 12px;
  }

  .nav {
    width: 85%;
    margin-left: 0;
    transform: translateY(-10px);
    padding: 5px 12px;
    border-width: 3px;
    border-radius: 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;

    font-size: clamp(4px, 1.8vw, 8px);
    line-height: 1.5;
  }

  .nav li {
    white-space: nowrap;
  }

  /*
    「・」だけのliを消したい場合。
    :has()対応ブラウザを考慮せず確実に消すなら、
    HTML側でseparatorクラスを付ける方がよい。
  */
  .nav li:nth-child(even) {
    display: none;
  }

  /* =====================
     セクション見出し
     ===================== */
  .title {
    width: 100%;
    margin-top: 56px;
  }

  .title p {
    font-size: 12px;
  }

  .title h2 {
    margin-top: 7px;
    font-size: clamp(21px, 6.5vw, 28px);
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  .text {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 64px;

    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.05em;
    text-align: center;
  }

  /* =====================
     総合型選抜
     ===================== */
  .big_box {
    width: 100%;
    margin-top: 44px;

    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .big_box > div {
    width: 100%;
  }

  .big_box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
  }

  .big_box p {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .big_box > img {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .big_box .graph {
    width: min(100%, 330px);
    margin-top: 0;
  }

  .big_box .graph img {
    width: 100%;
  }

  .big_box .graph p {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.5;
  }

  .big_box .test_text {
    width: 100%;
    margin-top: 0;
  }

  /* 評価ポイント */
  .all_point {
    width: 100%;
    margin-top: 60px;
    position: relative;
  }

  .point_text {
    top: 0;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 7px 25px;

    font-size: 14px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }

  .point_test {
    position: static;
    width: 100%;
    padding: 38px 12px 22px;
    border-width: 3px;
    border-radius: 24px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 8px;
  }

  .point_box {
    width: auto;
  }

  .point_box img {
    width: min(60%, 90px);
  }

  .point_box p {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.6;
  }

  /* 大学例 */
  .exp_university {
    width: 100%;
    margin-top: 48px;
    padding: 22px 24px;
    border-radius: 28px;
  }

  .exp_university h3 {
    margin-bottom: 14px;
    font-size: 19px;
  }

  .exp_university > div {
    width: 100%;
  }

  .exp_university ul {
    display: block;
    padding-left: 1.4em;
    margin: 0 15vw;
  }

  .exp_university li {
    font-size: 14px;
    line-height: 1.9;
  }

  .imp {
    width: 100%;
    margin-top: 52px;
    margin-bottom: 52px;

    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }

  /* =====================
     総合学科とは
     ===================== */
  .about_school .text {
    margin: 24px 0 50px;
  }

  .about_school .em {
    font-size: 24px;
  }

  /* =====================
     総合学科の学び方
     ===================== */
  .about_study .illust_school {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 64px;

    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .illust_school .first,
  .illust_school .second,
  .illust_school .third {
    width: 100%;
  }

  .about_study .illust_school .grade {
    width: fit-content;
    margin-inline: auto;
    padding: 4px 24px;
    font-size: 15px;
  }

  .about_study .illust_school h3 {
    margin-top: 14px;
    font-size: 23px;
  }

  .about_study .illust_school p:not(.grade) {
    font-size: 13px;
    line-height: 1.7;
  }

  .about_study .illust_school div > img {
    width: min(65%, 230px);
    margin: 18px auto 0;
  }

  .about_study .illust_school .arrow {
    width: 20px;
    height: auto;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  /* =====================
     選択科目
     ===================== */
  .point .text {
    margin-bottom: 30px;
  }

  .point .school_picture {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .point .school_picture img {
    width: min(100%, 330px) !important;
  }

  .point .kind_of_class {
    width: 100%;
    margin-top: 64px;
  }

  .point .kind_of_class > p {
    top: 0;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 7px 18px;

    font-size: 13px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }

  .point .kind_of_class ul {
    width: 100%;
    padding: 42px 18px 24px 35px;
    border-width: 3px;
    border-radius: 26px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .point .kind_of_class li {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 10vw;
  }

  /* =====================
     フッター
     ===================== */
  footer .container {
    padding-inline: 20px;
  }

  footer .imp {
    margin-bottom: 28px;
  }

  footer .text_left {
    width: 100%;
    margin-top: 0;
    margin-bottom: 48px;

    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  footer .cta {
    width: 100%;
    margin-bottom: 60px;

    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  footer .cta img {
    width: min(65%, 220px);
  }

  footer .button {
    width: 100%;
    padding: 14px 18px;
    border-radius: 30px;
    text-align: center;
  }

  footer .button a {
    display: block;
  }

  footer .button span {
    font-size: 14px;
    line-height: 1.6;
  }
}
