@charset "UTF-8";

:root {
  --gradation: linear-gradient(
    90deg,
    #0f5064 0%,
    #327878 25%,
    #1ea05a 65%,
    #3cd2b4 100%
  );
  --gradation-revers: linear-gradient(
    90deg,
    #0f5064 100%,
    #327878 65%,
    #1ea05a 25%,
    #3cd2b4 0%
  );
  --point-primary: #ff4335;
  --point-secondary: #bcfd41;
  --point-tertiary: #1ea05a;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  letter-spacing: 0.03em;
}
h1,
h2,
h3 {
  font-weight: 900;
}
.wrap {
  padding: 100px 24px;
  margin: auto;
  max-width: 1200px;
  width: 100vw;
  box-sizing: border-box;
}
.subTitle {
  font-size: 24px;
  margin-bottom: 52px;
  &::before {
    content: "●";
    color: var(--point-secondary);
  }
}
.primary_btn {
  text-align: center;
  position: relative;
  width: fit-content;

  letter-spacing: 0.24px;
  border-radius: 100px;
  box-shadow: 0 6.32px 12.641px 0 rgba(247, 75, 51, 0.2);
  border: 1px solid var(--point-primary);

  font-weight: bold;
  transition: background 0.3s;
  margin: 3rem auto 6rem auto;
  &:hover {
    background: var(--point-primary);
    cursor: pointer;
  }
  div,
  button {
    font-size: 32px;
    border: none;
    text-decoration: none;
    background: #f74b33;
    color: #fff;
    padding: 1.5rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-radius: 100px;
    margin: 7px;
    width: -webkit-fill-available;
    span{
      position:relative;
	    &::before {
	      position:absolute;
	      left:-1.5rem;
	      top:calc(50% - 5px);
	      content: "";
	      display: inline-block;
	      width: 10px;
	      height: 10px;
	      background: var(--point-secondary);
	      margin-right: 20px;
	      border-radius: 100%;
	    }
    }
    
  }
}
header {
  padding: 1.5rem;
  background: url("../images/hero.jpg") no-repeat;
  background-position: top right;
  background-size: cover;
  h1 {
    img {
      width: 5rem;
    }
    margin-bottom: 8rem;
  }
  > div {
    width: fit-content;
  }
  h2 {
    padding: 2rem;
    span {
      display: block;
      width: fit-content;
      background: var(--gradation);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      &:first-child {
        font-size: 42px;
        letter-spacing: 0.02em;
      }
      &:last-child {
        font-size: 64px;
        text-indent: -2rem;
        letter-spacing: 0.05em;
      }
      strong {
        font-size: 90px;
        letter-spacing: 0;
        margin-right: -2rem;
      }
    }
  }
  h3 {
    text-align: center;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 85px;
    }
  }
}
#aboutHug {
  h2 {
    font-size: 42px;
    margin-bottom: 3rem;
  }
  .wrap > div {
    display: flex;
    gap: 80px;
    align-items: center;
    p {
      margin-bottom: 1rem;
      line-height: 200%;
    }
  }
}
#whatsReskilling {
  background: var(--gradation);
  color: #fff;
  position: relative;
  h2 {
    font-size: 72px;
    margin-bottom: 44px;
  }
  h3 {
    font-size: 50px;
    color: var(--point-secondary);
    margin-bottom: 49px;
  }
  .title {
    padding-bottom: 49px;
  }
  .text {
    padding-top: 0;
    display: flex;
    container-type: inline-size;
    img {
      position: absolute;
      right: 0;
      width: 500px;
    }
  }
  .wrap > div {
    max-width: 700px;
    width: calc(100vw - 16px);

    p {
      line-height: 200%;
      margin-bottom: 1em;
    }
  }
  .attention {
    margin-top: 106px;
    font-size: 34px;
    strong {
      font-size: 60px;
    }
  }
}
@container (max-width:1200px) {
  #whatsReskilling {
    .wrap > div {
      width: calc(100vw - 520px);
    }
  }
}

#course {
  background: #f2f3f3;
  background-image: url(../images/bg_course_pc.png);
  background-repeat: repeat-y;
  background-position-x: right;

  h2 {
    font-size: 76px;
    span {
      &:first-child {
        font-size: 45px;
      }
    }
    strong {
      display: block;
      width: fit-content;
      background: var(--gradation);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
  .item {
    margin-top: 100px;
    position: relative;

    /* h3 {
      font-size: 28px;
      background: var(--gradation);
      width: 16.25em;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 8px 0;
      margin: 0 auto 0 auto;
    } */
    &::before,
    &::after {
      content: "";
      display: inline-block;
      border-image: var(--gradation) 1;
      border-top: 3px solid;
      width: 84px;
      height: 84px;
      position: absolute;
      top: 28px;
    }
    &::before {
      left: 0;
      border-left: 3px solid;
    }
    &::after {
      right: 0;
      border-right: 3px solid;
    }
    h3 {
      font-size: 28px;
      background: var(--gradation);
      width: 16.25em;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 8px 0;
      margin: 0 auto 0 auto;
      position: relative;
    }
  }
  .price {
    width: fit-content;
    margin: 50px auto 0 auto;
    display: flex;
    align-items: center;

    .original {
      color: #898989;
      font-size: 20.2px;
      font-weight: normal;
      s {
        font-size: 30.29px;
        font-weight: bold;

        .yen {
          font-size: 20.2px;
          font-weight: normal;
        }
        .tax {
          font-size: 15.15px;
          font-weight: normal;
        }
      }
    }
    .discounted {
      margin-left: 10px;
      font-size: 50px;
      color: var(--point-primary);
      .tax {
        font-size: 18.11px;
        font-weight: normal;
      }
    }
  }
  .container {
    width: 1100px;
    max-width: 100%;
    padding: 50px;
    display: flex;
    box-sizing: border-box;
    gap: 45px;
    img {
      align-self: flex-start;
    }
  }
  .contents {
    padding: 20px 30px;
    background: #fff;
    display: grid;
    gap: 20px 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 20px;
    h4 {
      color: var(--point-tertiary);
    }
    ul {
      font-weight: normal;
      font-size: 16px;
      margin-left: 1.5em;
    }
  }

  .learning {
    grid-area: 1 / 1 / 2 / 2;
  }
  .schedule {
    grid-area: 1 / 2 / 2 / 3;
  }
  .support {
    grid-area: 2 / 1 / 3 / 3;
    ul {
      column-count: 2;
    }
  }
  .studies {
    column-count: 2;
    margin-top: 15px;
    li {
      background: #fff;
      list-style: none;
      font-weight: normal;
      text-align: center;
      padding: 20px 0;
      margin-bottom: 15px;
      font-size:16px;
      font-feature-settings: "palt";
    }
  }
  .curriculum {
    background: #fff;
    padding: 20px 30px;
    position: relative;
    margin: 0 50px;
    &::before,
    &::after {
      content: "";
      display: inline-block;
      border-image: var(--gradation) 1;
      border-bottom: 3px solid;
      width: 84px;
      height: 84px;
      position: absolute;
      bottom: -50px;
    }
    &::before {
      left: -50px;
      border-left: 3px solid;
    }
    &::after {
      right: -50px;
      border-right: 3px solid;
    }
    div {
      display: flex;
      font-size: 12px;
      font-weight: normal;
      > * {
        flex: 1;
      }
      span {
        font-weight: bold;
        display: block;
      }
    }
    summary {
      list-style: none;
      font-size: 24px;
      position: relative;
      padding: 7px 0;
      &::after,
      &::before {
        content: " ";
        display: block;
        background: #000;
        position: absolute;
      }
      &::after {
        content: " ";
        width: 30px;
        height: 7px;
        right: 0;
        top: calc(50% - 7px);
      }
      &::before {
        width: 7px;
        height: 30px;
        right: 11.5px;
        top: 7;
        transition: all 0.4s;
      }
    }
    &[open] summary::before {
      transform: rotate(90deg);
      opacity: 0;
    }
    &::details-content {
      transition: height 0.4s, opacity 0.4s,
        content-visibility 0.4s allow-discrete;
      height: 0;
      opacity: 0;
      overflow: clip;
    }

    /* --------アコーディオンの中身のスタイル（開いている時）-------- */
    &[open]::details-content {
      opacity: 1;
    }
    figure img {
      width: 100%;
      height: auto;
    }
  }

  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords; /* height:0（数値型） → auto（文字型） のアニメーションを可能にするための指定 */
    }
    details[open]::details-content {
      height: auto;
    }
  }

  /* height:0→autoへのアニメーションが対応していない場合は、固定値にアニメーションさせる */
  @supports not (interpolate-size: allow-keywords) {
    details[open]::details-content {
      height: 150px;
      overflow-y: scroll;
    }
  }
}

#contact {
  h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
  }
  form {
    width: fit-content;
    margin: auto;
    div {
      margin-bottom: 25px;
      padding:1px;
    }
    label {
      display: inline-block;
      font-size: 20px;
      width: 7.5em;
      margin-right: 25px;
    }
    input,
    select {
      padding: 5px;
      font-size: 20px;
    }
    option{
      margin-bottom:1px;
    }
    
  }
  input[type="checkbox"] {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    + label {
      font-size: 16px;
      width: fit-content;
      a {
        color: var(--point-tertiary);
      }
    }
  }
}

footer {
  background: url(../images/bg_footer.jpg) no-repeat;
  background-size: cover;
  padding: 100px 0;
  .wrap {
    background: #fff;
    margin: 60px auto;
    padding: 60px;
    .main {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #b5b7b6;
      padding-bottom: 60px;
    }
    .copyright {
      padding-top: 60px;
      font-size: 16px;
      font-weight: Medium;
    }
    img {
      width: 90px;
    }
    ul {
      /*column-count: 2;
      column-gap: 20px;*/
      li {
        list-style: none;
        a {
          text-decoration: none;
          color: #000;
        }
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  #course {
    .container {
      flex-direction: column;
      img {
        margin: auto;
      }
    }
  }
}
@media screen and (max-width: 768px) {
  header{
    background-position: top right 20%;
  }
	
  #whatsReskilling {
    .wrap {
      padding: 8px;
    }
    .text {
      flex-direction: column;
      img {
        position: static;
        margin: 0 calc(50% - 50vw);
        width: 100vw;
      }
    }
    .attention strong {
      font-size: calc(100vw / 8.5);
    }
    .wrap > div {
      width: calc(100vw - 16px);
    }
  }
}
@media screen and (max-width: 548px) {
  .wrap {
    overflow: hidden !important;
    padding: 32px 8px;
  }
  .primary_btn {
    div,
    button {
      font-size: calc(24 / 375 * 100vw);
      padding: 1.5rem 3rem;
    }
  }

  header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    padding: 1.5rem 0;
    h1 {
      margin-left: 1.5rem;
    }
    > div {
      padding: 1.5rem;
      /* background: #fff; */

      /* padding: 16px; */
    }
    h2 {
      padding: 0;
      filter: drop-shadow(1px 1px 1px #999999);
      span {
        &:first-child {
          font-size: 21px;
        }
        &:last-child {
          font-size: 32px;
        }
        strong {
          font-size: 45px;
        }
      }
    }
    h3 {
      filter: drop-shadow(1px 1px 1px #999999);
      flex-wrap: wrap;
      justify-content: start;
      /* img {
        filter: drop-shadow(1px 1px 1px #999999);
      } */
    }
    .primary_btn {
      margin-bottom: 30px;
    }
  }

  #aboutHug {
    h2 {
      font-size: 36px;
    }
    .wrap > div {
      flex-direction: column;
      img {
        width: 100%;
      }
    }
  }
  #whatsReskilling {
    h2 {
      font-size: 42px;
    }
    h3 {
      font-size: 36px;
    }
  }
  #course {
    h2 {
      font-size: 48px;
      span {
        &:first-child {
          font-size: 24px;
        }
      }
    }
    .item {
      &::before,
      &::after {
        display: none;
      }
      h3 {
        font-size: calc(24 / 375 * 100vw);
        width: 100%;
      }
    }
    .price {
      flex-direction: column;
      img[src$="arrow.png"] {
        transform: rotate(90deg);
        margin: 20px;
      }
    }
    .container {
      min-width: calc(100vw - 16px);
      padding: 0;
      flex-direction: column;

      img {
        margin: auto;
      }
    }
    .contents {
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: repeat(3, auto);
      grid-column-gap: 10px;
      grid-row-gap: 20px;
      box-sizing: border-box;
    }
    .learning {
      grid-area: 1 / 1 / 2 / 2;
    }
    .schedule {
      grid-area: 2 / 1 / 3 / 2;
    }
    .support {
      grid-area: 3 / 1 / 4 / 2;
      ul {
        column-count: 1;
      }
    }
    .studies {
      column-count: 1;
    }
    .curriculum {
      margin: auto;
      &::before,
      &::after {
        display: none;
      }
      div {
        flex-direction: column-reverse;
      }
      figure {
        overflow-x: scroll;
        img {
          width: max-content;
        }
      }
    }
  }

  footer {
    .wrap {
      padding: 20px;
    }
    .main {
      flex-direction: column;
      ul {
        column-count: 1;
      }
    }
  }
}
