@charset "UTF-8";

.course-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.course-inner {
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

h1.single_h1 {
  position: sticky;
  top: 90px;
  left: 50%;
  z-index: 1;
  width: 100%;
  max-width: 1920px;
  padding: .5em 0;
  background: #347188;
  margin: 2rem 0 0;
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h2 {
  margin: 20vh 0 1em;
  text-align: center;
  font-size: 4rem;
  line-height: 1;
}

h2 strong {
  display: inline-block;
  transform: translateY(.25em);
}

h2 span {
  font-size: .5em;
}

.speech_bubble {
  position: relative;
  padding: 1rem 2rem;
  margin: 0 0 20vh;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

.speech_bubble:before,
.speech_bubble:after {
  position: absolute;
  left: 50%;
  content: "";
  height: 0;
  width: 0;
}

.speech_bubble:before {
  top: 100%;
  border: 9px solid;
  border-color: transparent;
  border-top-color: #333;
  margin-left: -9px;
}

.speech_bubble:after {
  top: 99%;
  border: 8px solid;
  border-color: transparent;
  border-top-color: white;
  margin-left: -8px;
}

.speech_bubble p {
  color: #333;
  line-height: 1.5;
  font-size: 1.25rem;
}

.course-inner h3 {
  font-size: 1.75rem;
  margin: 5rem 0 2rem;
  color: #4a8ca4;
  text-align: center;
}

.course-inner > section:first-of-type h3 {
  margin: 0 0 2em;
}

.course-inner ul {
  list-style: none;
}

.hashtag li {
  color: #347188;
  font-weight: bold;
}

.hashtag li .material-symbols-outlined {
  margin: 0;
}

.course-inner p {
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  font-weight: 300;
}

.course-inner ul + p {
  margin: 1em 0 0;
}

.course-inner dd {
  text-align: justify;
  text-align-last: left;
}

.apply-btn {
  display: inline-block;
  background-color: #4a8ca4;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
}

.apply-btn:hover {
  background-color: #347188;
}

.main_visual {
  position: relative;
  height: calc(100vh - 80px);
}

.main_visual.design_programing {
  background: url(../images/WebDesign_Programing.png) no-repeat center top;
  background-size: cover;
}

.main_visual.design_video {
  background: url(../images/WebDesign_Video.png) no-repeat center top;
  background-size: cover;
}

.main_visual.design_video_25r0323 {
  background: url(../images/WebDesign_Video_25r0323.png) no-repeat center top;
  background-size: cover;
}

.main_visual.web_app_java {
  background: url( ../images/web_app_java.webp ) no-repeat center top;
  background-size: cover;

  & + section a[ download ] > img {
    margin: 10px 0;
  }
}

@media screen and ( width < 620px ) {
  .main_visual.web_app_java {
    background: url( ../images/web_app_java_m.webp ) no-repeat center top;
    background-size: cover;
    
    & + section a[ download ] > img {
      margin: 10px auto;
    }
  }
}

.main_visual dl {
  position: absolute;
  width: 480px;
  bottom: 1cqi;
  left: 50%;
  transform: translateX(-50%);
  padding: 1em;
  background: #fff9;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  text-align: center;
}

.main_visual dt {
  width: fit-content;
  padding: .125em .5em;
  margin: 0 auto .25em;
  background: #4a8ca4;
  color: #fff;
}

.main_visual dt:last-of-type {
  margin: 1em auto .5em;
}

.main_visual dt span {
  color: #fff;
}

.date_list dd,
.date_list dd li {
  position: relative;
}

.date_list dd li {
  line-height: 2.25;
}

.date_list dd.completion::after,
.date_list dd li.completion::after {
  display: block;
  content: "受付終了";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -57.5%);
  background: #f33d;
  color: #fff;
  padding: .25em .5em;
  line-height: 1;
  font-size: .875em;
}

.course-inner > section > dl {
  display: flex;
  flex-direction: column;
  gap: 1.5rem 0;
}

.course-inner > section > dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.course-inner > section > dl > div > dt {
  width: 10em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-self: flex-start;
  line-height: 1.3;
  padding: .2em .5em;
  background: #efefef;
}

.course-inner>section>dl>div>dd {
  width: calc(100% - 10em - 2rem);
}

ul.learning_content {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  background: transparent;
}

@media screen and (max-width: 850px) {
  .main_visual {
    height: calc(70vh - 80px);
  }

  .main_visual dl {
    font-size: 87.5%;
    width: clamp(320px, 90%, 450px);
    top: 41.5%;
    overflow-y: auto;
  }

  hgroup {
    flex-direction: column;
  }

  h1.single_h1 {
    font-size: 1.25rem;
    top: 89px;
  }

  h1.single_h1 + p {
    font-size: .675rem;
    margin: 0 auto;
  }

  h2 {
    margin: 10vh 0 1em;
    font-size: clamp(32px, 8vw, 150px);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  h2::-webkit-scrollbar{
    display: none;
  }

  h2 strong {
    white-space: nowrap;
    transform: none;
  }

  .speech_bubble {
    margin: 0 0 15vh;
  }

  .speech_bubble p {
    font-size: clamp(16px, 2.5vw, 32px);
    word-break: break-all;
  }

  .course-wrapper {
    font-size: 87.5%;
    padding: 1.5rem .5rem;
  }

  .course-inner h3 {
    font-size: 1.125rem;
  }

  .course-inner > section > dl > div {
    gap: 0 .75rem;
  }

  .course-inner > section > dl > div > dd:has(.vertical) {
    display: flex;
    flex-direction: column;
    width: fit-content;
    text-align: center;
  }

  .vertical {
    rotate: 90deg;
  }

}

@media screen and (max-width: 460px) {
  h1.single_h1 {
    font-size: 1.125rem;
  }

  .number {
    font-size: 1.125rem;
  }

  .date_list dd:has(time ~ time) {
    white-space: nowrap;
  }

  .main_visual dl {
    font-size: 75%;
    top: auto;
    bottom: 2.5cqh;
  }

  .course-inner > section > dl > div {
    flex-direction: column;
    gap: .75rem 0;
  }

  .course-inner > section > dl > div > dt {
    width: 100%;
    justify-content: center;
  }
  
  .course-inner > section > dl > div > dd {
    width: 95%;
    margin: 0 auto;
    text-align: center;
    text-align-last: center;
  }

  .course-inner > section > dl > div > dd ul,
  .course-inner > section > dl > div > dd p {
    text-align: justify;
    text-align-last: left;
  }

  .course-inner > section > dl > div > dd ul {
      width: fit-content;
      margin: 0 auto;
  }

  .course-inner > section > dl > div > dd p {
    padding: 0 1em;
  }
  
  .course-inner > section > dl > div > dd:has(.vertical) {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0 .25em;
    width: 100%;
    font-size: .75em;
  }

  .course-inner > section:last-of-type > dl > div:last-of-type > dd {
    display: none;
  }

  .vertical {
    rotate: 0deg;
  }
}