@charset "UTF-8";
/* =========================================
  course_base.css  (Shapes School)
  - 訓練に関する共通情報ページ用のCSS
========================================= */

/* --------------------------------
------------- ヒーロービュー ------- 
----------------------------------- */
#child-hero {
  background-image: url(../img/course-base-hero.webp);
  background-position: right center;
  height: 100vw;
}
@media screen and (min-width: 768px) {
  #child-hero {
    height: 48vh;
  }
}
@media screen and (min-width: 1024px) {
  #child-hero {
    height: 42vh;
  }
}
#child-hero > div {
  display: grid;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75);
}
.child-title {
  font-weight: 100;
  text-align: center;
  padding: 1em 0;
}
/* --------------------------------
-------- 共通情報掲載のテーブル ------- 
----------------------------------- */
.course_base h2 {
  font-family: var(--f-text);
  font-size: 16px;
}
table {
  border-collapse: collapse;
  border: 1px solid #ccc;
}
table,
tbody,
tr,
th,
td {
  display: block;
  width: 100%;
  background-color: var(--c-bg);
}
th {
  background-color: var(--c-bg-2);
}
th,
td {
  font-family: var(--f-text);
  padding: 8px 16px;
}
td ul li {
  list-style-type: disc;
  margin-left: 1.5em;
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .course_base h2 {
    font-size: 20px;
  }
  th,
  td {
    padding: 16px 24px;
    font-size: 20px;
  }
}
@media screen and (min-width: 1024px) {
  tr {
    display: flex;
  }
  th {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 30%;
  }
  td {
    width: 70%;
  }
  th,
  td {
    border: 1px solid #ccc;
  }
}
/* -----------------------------------
------------ 受講までの流れ ---------- 
----------------------------------- */
.course_flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.course_flow h2 {
  font-size: 32px;
  font-family: var(--f-heading);
  text-align: center;
}
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.flow-step {
  display: flex;
  width: 92%;
  gap: 16px;
  margin-left: auto;
  flex-direction: column;
  padding: 1.5em 1.5em 1.5em 2em;
  background-color: var(--c-bg);
  border: 2px solid var(--c-deco-1);
  border-radius: 4px;
  position: relative;
}
.flow-step::after {
  content: "";
  position: absolute;
  display: block;
  left: 50%;
  bottom: calc(-1 * 1.5em - 8px);
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: url("../img/icon-arrow.svg") no-repeat center / contain;
}
.step-number {
  position: absolute;
  left: -6%;
  background-color: var(--c-bg);
  border-radius: 4px;
  font-family: var(--f-heading);
  font-size: max(14px, 3.6vw);
  text-align: center;
  line-height: 1.4;
}
.step-number span {
  font-size: max(20px, 5vw);
}
.flow-step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
}
.step-pic::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background-repeat: no-repeat;
  background-size: contain;
}
.pic1::before {
  background-image: url(../img/icon-step1.svg);
}
.pic2::before {
  background-image: url(../img/icon-step2.svg);
}
.pic3::before {
  background-image: url(../img/icon-step3.svg);
}
.step-end {
  display: flex;
  justify-content: center;
}
.step-end h3 {
  margin: 0 auto;
}
.step-end h3::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin-right: 24px;
  flex: 0 0 64px;
  background: url("../img/icon-step4.svg") no-repeat center / contain;
  background-repeat: no-repeat;
  background-size: contain;
}
.flow-step.step-end::after {
  content: none;
}
.lead_course_base {
  width: fit-content;
  margin: 0 auto;
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .course_flow {
    gap: 48px;
  }
  .course_flow h2 {
    font-size: 40px;
  }
  .flow-step {
    width: 98%;
    gap: 24px;
  }
  .flow-step h3 {
    font-size: 24px;
    gap: 24px;
  }
  .flow-step > p {
    font-size: 20px;
  }
  .step-number {
    left: -4%;
    font-size: max(16px, 2vw);
  }
  .step-number span {
    font-size: max(24px, 2.9vw);
  }
  .step-pic::before {
    width: 88px;
    height: 88px;
    flex: 0 0 84px;
  }
  .step-end h3::before {
    width: 88px;
    height: 88px;
  }
}
@media screen and (min-width: 1024px) {
  .course_flow h2 {
    font-size: 36px;
  }
  .flow-list {
    flex-direction: row;
  }
  .step-number {
    left: -10%;
    font-size: clamp(12px, 0.9vw, 14px);
  }
  .step-number span {
    font-size: max(18px, 1.3vw, 26px);
  }
  .step-pic::before {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }
  .step-end h3::before {
    width: 56px;
    height: 56px;
  }
  .flow-step {
    padding: 1em;
  }
  .flow-step h3 {
    gap: 12px;
  }
  .flow-step::after {
    content: "";
    top: calc(50% - 12px);
    left: calc(100% + 12px);
    transform: rotate(-90deg);
  }
  .step-end {
    width: fit-content;
  }
  .step-end h3 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin: 0;
    min-height: 160px;
    @supports (-moz-appearance: none) {
      /* firefox表示崩れ対応 */
      min-height: 160px;
    }
  }
  .step-end h3::before {
    margin: 0;
  }
}
