@charset "utf-8";

:root {}

/***********コース共通*************/

#course_top_image {
  aspect-ratio: 2 / 1;
  position: relative;
  border-radius: 1rem;
  background-image: url(../../img/pages/course/course00_image.jpg);
  background-size: cover;
  background-position: center center;

  >hgroup {
    position: absolute;
    place-self: center;
    place-self: end start;
    inset: 0;
    width: 100%;
    background: rgba(255 255 255 / .7);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;

    h2 {
      font-weight: 600;
      --clamp-max: 40;
      --clamp-min: 25;
      font-size: var(--clamp);
      color: rgb(var(--mainColor));
      text-shadow: 0 0 3px white;

      i {
        font-size: .5em;
        background: rgb(var(--mainColor));
        color: white;
        display: inline-block;
        padding: .2em .3em;
        border-radius: .5em;
        font-weight: 400;
        margin: 0 .5em 0 0;
        text-shadow: none;
        vertical-align: 2px;
      }
    }

    p {
      font-size: 1.1em;
      font-weight: 400;
      margin: .2em auto 0 auto;
    }
  }

  @media (max-width: 768px) {
    /* 1. 高さを固定せず、中身（画像スペース＋文字）に合わせる */
    aspect-ratio: auto;

    /* 2. 上側に「2:1」の比率分の余白を作る（50% = 横幅の半分 = 2:1） */
    padding-top: 60%;

    /* 3. 背景画像を上に寄せて、繰り返さない */
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    /* 横いっぱい、縦は比率通りに収める */
    /* background-size: 100% auto; でも可 */

    >hgroup {
      /* 4. 絶対配置を解除！これで画像（padding）の下に自然に並びます */
      position: static;
      width: 100%;
      background: transparent;
      /* 画像の下なので透過の必要なし */
      padding: 1.5rem 1rem;
      /* 文字周りの余白調整 */

      h2 {
        text-shadow: none;
        color: rgb(var(--mainColor));
      }
    }
  }
}

/*日付*/
div.schedule {
  margin: 3rem auto 0 auto;
  border: 3px solid rgb(var(--mainColor));
  border-radius: 1rem;
  padding: 2rem;

  >div {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    align-items: center;

    figure {
      a {
        display: block;

        img {
          width: 100%;
          height: auto;
        }

        &:hover {
          opacity: .75;
        }
      }
    }

    >div {
      dl {
        >div {
          display: grid;
          grid-template-columns: 6em 1fr;
          font-size: 1.4em;
          padding: .5em 0;
          border-top: 1px solid silver;

          dt {
            font-weight: 500;
            color: red;
            text-align: left;
          }

          dd {
            font-weight: 500;
            text-align: left;

            span {
              font-size: .7em;
            }

            aside {
              font-weight: normal;
              font-size: .7em;
            }
          }

          &:last-of-type {
            border-bottom: 1px solid silver;
          }
        }

        @media (max-width: 600px) {
          >div {
            display: block;
            text-align: left;
          }
        }
      }

      >aside {
        margin: 2rem auto 0 auto;
        text-align: left;
        font-size: 1.3em;
        font-weight: 500;

        span {
          color: red;
          text-decoration: underline;
          text-underline-offset: .2em;
        }
      }
    }
  }

  @media (max-width: 768px) {
    >div {
      grid-template-columns: 1fr;

      figure {
        a {
          width: min(250px, 100%);
          margin: 0 auto;
          display: block;
        }
      }
    }
  }
}

/*ポイント*/
article#point3 {
  margin: 3rem auto 0 auto;

  >figure {
    display: grid;
    grid-template-columns: 150px 1fr;
    margin: 0 auto;
    gap: 1rem 2rem;
    width: min(760px, 100%);
    align-items: center;
    margin: 0 auto;

    figcaption {
      font-size: 1.1em;
      font-weight: 400;
      text-align: left;
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;

      img {
        width: min(150px, 100%);
        margin: 0 auto;
      }
    }
  }

  >div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
    margin: 2rem auto 0 auto;

    figure {
      border: 1px solid rgb(var(--mainColor));
      border-radius: 1rem;
      padding: 2rem;
      transition: all .5s ease-out;
      cursor: default;
      position:relative;
      overflow: hidden;
      svg {
        height: 2.5rem;
        fill: rgb(var(--mainColor));
      }

      figcaption {
        margin: 1rem auto 0 auto;
        
        h3 {
          font-size: 1.1em;
          font-weight: 400;
          inline-size: fit-content;
          margin-inline: auto;
          text-align: left;

          svg {
            height: 1em;
            vertical-align: -1px;
            margin: 0 0 0 .3em;
          }
          span{
            position:absolute;
            left:0;
            top:0;
            display:block;
            padding:.3em .5em;
            border-radius: 0 0 1em 0;
            color:white;
            background:rgb(var(--mainColor));
            font-weight: 400;
          }
        }

        p {
          margin: .5em auto 0 auto;
          font-size: .9em;
          text-align: left;

          display:none;
        }

        ul{
          display:flex;
          justify-content: start;
          flex-wrap:wrap;
          gap:.3em 1em;
          margin:1em auto 0 auto;
          li{
            list-style:square;
            margin-left:2em;
            font-weight: 400;
            color:rgb(var(--mainColor));
          }
        }
      }

      &:hover {
        box-shadow: 0 0 3px 3px rgb(var(--mainColor));
      }
    }

  }
}

/*各項目*/
.course-details {

  --courseColor: #333;
  --courseColor2: #ddd;

  border: 3px solid var(--courseColor);
  margin: 2rem auto 0 auto;
  border-radius: 1rem;
  overflow: hidden;

  >hgroup {
    background: var(--courseColor2);

    h2 {
      font-size: 1.3em;
      padding: .5em .5em;
      text-align: left;
      font-weight: 500;
      color: var(--courseColor);

      svg {
        fill: var(--courseColor);
        height: 1.1em;
      }

      span {
        font-size: .8em;
        margin: 0 0 0 1em;
        color: #555;
        font-weight: 400;
      }
    }
  }
}

/*ヒューマンスキル*/
#human {
  --courseColor: #fa5f63;
  --courseColor2: #fff0f5;
  padding-bottom: 1rem;

  >section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin: 2rem 1rem 0 1rem;
    align-items: center;

    &:nth-of-type(2) {
      margin-top: 2rem;
      direction: rtl;

      >div {
        direction: ltr;
      }
    }

    >div {
      hgroup {
        h3 {
          text-align: left;
          font-size: 1.2em;
          font-weight: 400;
          color: var(--courseColor);

          &::before {
            content: "■";
            margin: 0 .3em 0 0;
          }
        }

        p {
          font-weight: 400;
          margin: .5em auto 0 auto;
        }
      }

      p {
        text-align: left;
        margin: .5em auto 0 auto;
      }

      aside {
        border: 1px solid var(--courseColor);
        font-size: .9em;
        padding: 1em;
        border-radius: .5em;
        text-align: left;
        margin: 1em auto 0 auto;

        h4 {
          font-weight: 400;
        }

        p {
          a {
            color: var(--courseColor);
            text-decoration: underline;

            &:hover {
              text-decoration: none;
            }
          }
        }
      }
    }
  }

  @media (max-width: 768px) {
    >section {
      grid-template-columns: 1fr;
      figure{
        img{
          width:min(280px,100%);
        }
      }
    }
  }
}

/*テクニカルスキル*/
#technical {
  --courseColor: #326bc2;
  --courseColor2: #f2f8fd;

  >div {
    margin: 1rem;

    >div {
      figure {
        img {
          width: auto;
          height: 120px;
        }
      }
      @media (max-width: 768px) {
        figure{
          img{
            width:min(170px,100%);
            height:auto;
          }
        }
      }
      &:nth-of-type(1) {
        border-radius: .7em;
        padding: 2rem;
        background: #f5f1fe;

        >p {
          font-size: 1.2em;
          font-weight: 500;
          display: flex;
          flex-wrap: warp;
          gap: .3em 1rem;
          justify-content: center;
          margin: 1rem auto 0 auto;

          span {
            --svgColor: #3066b8;
            color: var(--svgColor);

            svg {
              height: 1.2em;
              vertical-align: -1px;
              fill: var(--svgColor);
            }

            &:nth-of-type(1) {
              --svgColor: #3066b8;
            }

            &:nth-of-type(2) {
              --svgColor: #008000;
            }

            &:nth-of-type(3) {
              --svgColor: #e30000;
            }
          }
        }

        aside {
          margin: 1rem auto 0 auto;
          text-align: left;

          span {
            font-weight: 400;
            color: #7e3f18;
            font-size: 1.1em;
          }
        }
      }

      &:nth-of-type(2) {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
        gap: 1rem;
        margin: 1rem auto 0 auto;

        >div {
          background: #fff4f4;
          border-radius: .7em;
          padding: 2rem;

          h3 {
            font-size: 1.2em;
            font-weight: 500;
            margin: 1rem auto 0 auto;
          }

          p {
            margin: .5em auto 0 auto;
            text-align: left;

            span {
              font-weight: 400;
              font-size: 1.1em;
              color: #7e3f18;
            }
          }

          &:nth-of-type(2) {
            background: #fdfef3;
          }
        }
      }
    }
  }
}

/*就職支援*/
.sien {
  --courseColor: #794d24;
  --courseColor2: #ffe66f;

  >div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
    padding: 1rem;

    figure {
      align-self: center;
      > p{
        margin-bottom:1rem;
      }
      p{
        font-size: 1.1em;
        font-weight: 400;
        inline-size: fit-content;
        margin-inline: auto;
        text-align: left;
      }
      figcaption {
        margin: 1rem auto 0 auto;
        
      }
    }

    section {
      border: 1px solid var(--courseColor);
      padding: 1rem;
      border-radius: .5rem;
      overflow: hidden;
      position: relative;
      cursor: default;

      &::before {
        content: "";
        background: var(--courseColor);
        height: 4rem;
        width: 4rem;
        transform: rotate(45deg);
        position: absolute;
        left: -2.5rem;
        top: -2.5rem;
        transition: all .5s ease-out;
      }

      figure {
        img {
          width: auto;
          height: 150px;
        }
      }

      h3 {
        font-weight: 500;
        font-size: 1.2em;
        margin: 1em auto 0 auto;
        color: var(--courseColor);
        inline-size: fit-content;
        margin-inline: auto;
        text-align: left;

        span {
          font-size: .8em;
          font-weight: 400;
        }
      }

      p {
        font-size: .9em;
        text-align: left;
        margin: .5em auto 0 auto;
        line-height: 1.6;

        strong {
          font-weight: 400;
          font-size: 1.1em;
          background: linear-gradient(transparent 60%, #fff352 60%);
          padding: 0 0.2em;
          display: inline;
        }

        a {
          font-weight: 400;
          font-size: 1.1em;
          background: linear-gradient(transparent 60%, #ffcae3 60%);
          padding: 0 0.2em;
          display: inline;
          color: #ff2f87;
        }
      }

      &:hover {
        &::before {
          left: -2.8rem;
          top: -2.8rem;
        }
      }
    }
  }
}

/*資格*/
.license {
  --courseColor: #ff00a6;
  --courseColor2: #ffeef7;

  >div {
    padding: 1rem;

    ul {
      >*+* {
        border-top: 1px dotted silver;
      }

      li {
        display: grid;
        grid-template-columns: 1fr 7em;
        padding: .5em;

        h5 {
          text-align: left;

          &::before {
            content: "■";
            margin: 0 .3em 0 0;
          }
        }

        p {
          text-align: right;
        }

        &:nth-of-type(even) {
          background: #fff9ee;
        }
      }
    }
  }
}

/*主な対象者*/
.taishou {
  --courseColor: #35732b;
  --courseColor2: #f4fce9;

  >div {
    padding: 1rem;

    >ul {
      text-align-last: left;

      >*+* {
        margin-top: .3em;
      }

      >li {
        margin-left: 2em;
        list-style: disc;
        font-size: 1.1em;
        text-align: left;
      }
    }

    >aside {
      margin: 2rem auto 0 auto;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: .5em 1rem;

      a {
        display: inline-block;
        border: 1px solid silver;

        &:hover {
          opacity: .75;
        }
      }
    }
  }
}

/*受講方法*/
.houhou {
  --courseColor: #e60000;
  --courseColor2: #ffeae6;

  >div {
    padding: 1rem;

    p {
      text-align: left;
      font-weight: 500;
      font-size: 1.3em;

      strong {
        color: red;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: .2em;
      }
    }
  }
}