.coursesummary {
  display: flex;
  align-items: center;
  gap: 54px;
  margin: 64px 0px;
}

.coursesummary__img {
  flex: 1;
  width: 40%;
  background-size: cover;
  background-position: 50% 50%;
}

.coursesummary__about {
  flex: 1;
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coursesummary__about--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commontag__secondary.searchTag {
  padding: 8px 8px;
}

.searchTag a {
  text-decoration: none;
}

.coursesummary__about--title {
  font-size: 32px;
  color: #0a325e;
}

.coursesummary__about--detail {
  font-size: 16px;
  color: #333333;
}

.coursesummary__about--pricetime {
  font-size: 20px;
  color: #333333;
  font-weight: bold;
}

.courseDetail {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  gap: 64px;
}

.courseDetail__nav ul {
  gap: 8px;
  display: flex;
  justify-content: space-between;
}

.courseDetail__nav li {
  flex: 1;
}

.courseDetail__nav a {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
  padding: 8px 16px;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #aaaaaa;
  text-decoration: none;
  color: #212a67;
  font-weight: bold;
}

.downBtn {
  width: 24px;
  height: 24px;
  background-color: #0F58A4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  background-image: url(../img/caret-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
}

.courseDetail__targetExam {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.courseDetail__targetExam--title {
  font-size: 20px;
  font-weight: bold;
}

.courseDetail__targetExam--body {
  display: flex;
  background-color: #edf4fa;
  border-radius: 8px;
  padding: 32px 23px;
}

.courseDetail__targetExam--img {
  width: 140px;
}

.courseDetail__targetExam--txt {
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.courseDetail__targetExam--txt h3 {
  font-size: 20px;
  font-weight: bold;
}

.courseDetail__targetExam--txt ul li {
  margin-bottom: 6px;
}

.courseDetail__targetExam--txt ul li::before {
  content: "・";
  font-size: 1em;
  margin-right: 0.5em;
}

.sectionTitle {
  font-size: 32px;
  color: #333333;
  margin-bottom: 24px;
}

.sectionSubtitle {
  font-size: 20px;
  color: #333333;
  margin-bottom: 16px;
}

.overview p {
  color: #333333;
  margin-bottom: 16px;
}

.reviewPickup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 100%;
  border-radius: 8px;
  border-color: #0a325e;
  margin-top: 40px;
}

.highlightSubHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  width: 100%;
  border-left: 5px solid #0f58a4;
}

.highlightSubHeader__title {
  flex: 1;
  color: #333333;
  font-size: 20px;
  font-weight: bold;
}

.reviewPickup__innerLink {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  cursor: pointer;
}

.reviewPickup__innerLink--text {
  color: #0f58a4;
  white-space: nowrap;
}

.reviewPickup__innerLink--icon {
  width: 24px;
  height: 24px;
  background-image: url(../img/arrow-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
}

.reviewPickup__body {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.reviewPickup__body--avatar {
  width: 120px;
  height: 120px;
}

.reviewPickup__body--content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.reviewPickup__body--author {
  width: 100%;
  margin-top: -1px;
  font-weight: bold;
  color: #333333;
  font-size: 16px;
}

.ctaWide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 64px 32px 64px;
  border-radius: 8px;
  background-image: url(../img/cta-wide-bg.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ctaWide__title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  color: white;
  text-align: center;
}

.ctaWide__btnArea {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.ctaWide__btn {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  max-width: 390px;
}

.ctaWide__btn--label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background-color: #f28c28;
  border-radius: 17px;
  font-size: 12px;
  color: white;
}

.ctaWide__btn--txt {
  font-size: 20px;
  color: #333333;
}

.courseContent {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.courseContent h3 {
  margin-bottom: 0px !important;
}

.courseContent__wrapper {
  position: relative;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  position: relative;
}

.courseContent__agenda {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.courseContent__agenda dl {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-left: 30px;
}

.courseContent__agenda dl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: #0f58a4;
  border-radius: 50%;
  z-index: 1;
}

.verticalLine {
  position: absolute;
  left: 39px;
  width: 1px;
  background-color: #0f58a4;
  z-index: 0;
}

.courseContent__agenda dl dt {
  width: 50px;
  color: #0f58a4;
  font-size: 16px;
  font-weight: bold;
}

.courseContent__agenda dl dd h4 {
  font-size: 16px;
  font-weight: bold;
}

.courseContent__sample {
  display: flex;
  gap: 8px;
}

.courseContent__sample--img {
  border: 1px solid #bee2ff;
  width: calc((100% - 16px) / 3);   /* gap:8px × 2つ分を差し引いた横幅を、3等分する */
  border-radius: 8px;
}

.review__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review__content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

.review__content--icon {
  width: 90px;
  height: 90px;
}

.review__content--body {
  flex: 1;
}

.review__content--body h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.otherElearning__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: #0f58a4;
  gap: 24px;
  border: 1px solid #0f58a4;
  border-radius: 100px;
  padding: 8px 24px;
  width: 240px;
  margin: 0 0 0 auto;
}

.otherOpenSeminar__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: #0f58a4;
  gap: 24px;
  border: 1px solid #0f58a4;
  border-radius: 100px;
  padding: 8px 32px;
}

.otherElearning__link--icon,
.otherOpenSeminar__link--icon {
  width: 12px;
  height: 12px;
}

.otherOpenSeminar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.otherOpenSeminar__list {
  display: flex;
  gap: 24px;
}

.otherOpenSeminar__list--item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

.otherOpenSeminar__list--tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.otherOpenSeminar__list--recommendation {
  color: #4695d4;
  font-size: 10px;
}

.otherOpenSeminar__list--title {
  font-size: 16px;
  font-weight: bold;
  color: #212a67;
}

.otherOpenSeminar__list--daydate {
  display: flex;
  align-items: baseline;
}

.otherOpenSeminar__list--year {
  color: #707070;
  height: 100%;
  margin-right: 8px;
}

.otherOpenSeminar__list--date {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  height: 100%;
}

.otherOpenSeminar__list--day {
  display: inline-flex;
  justify-content: center;
  font-size: 12px;
  color: white;
  background-color: #212a67;
  width: 20px;
  height: 20px;
  border-radius: 99px;
}

.otherOpenSeminar__list--separator {
  font-size: 20px;
  color: #333333;
}

.otherOpenSeminar__list--time {
  color: #333333;
  font-weight: bold;
}

.courseOutline {
  display: flex;
  flex-direction: column;
}

.courseOutline__row {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.courseOutline__title {
  width: 130px;
  padding: 12px 16px;
  font-size: 16px;
  color: #0f58a4;
}

.courseOutline__body {
  flex: 1;
  padding: 12px 24px;
  font-size: 16px;
  color: #333333;
  border-left: 1px solid #0f58a4;
}

.sideBar__short {
  height: fit-content;
  padding: 24px;
  background-color: #f28c28;
  border-radius: 8px;
  box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.15);
  position: sticky;
  overflow: hidden;
}

.sideBar__short::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/sidebar-bg.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

.sideBar div {
  position: relative;
  z-index: 1;
}

.sideBar__title {
  font-size: 16px;
  color: white;
  margin-bottom: 8px;
}

.sideBar__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sideBar__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 21px;
  font-family: "Noto Sans JP-Regular", Helvetica;
  font-size: 13px;
  color: #f28c28;
}

.sideBar__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.sideBar__detail--row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sideBar__detail--title {
  width: 48px;
  font-size: 12px;
  color: white;
}

.sideBar__detail--body {
  flex: 1;
  font-size: 12px;
  color: white;
}

.sideBar__detail--body.highlight {
  font-size: 16px;
  font-weight: bold;
}

.sideBar__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.sideBar__cta--button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
}

.sideBar__cta--label {
  color: #f28c28;
  font-size: 12px;
}

.sideBar__cta--txt {
  color: #333333;
  font-size: 16px;
  font-weight: bold;
}

.sideBar__note {
  font-size: 12px;
  color: #edf4fa;
}

@media screen and (max-width: 768px) {
  .coursesummary {
    flex-direction: column;
    margin-bottom: 32px;
    gap: 24px;
  }

  .coursesummary__img {
    width: 100%;
  }

  .coursesummary__about {
    width: 100%;
    gap: 10px;
  }

  .coursesummary__about--title {
    order: 1;
    font-size: 20px;
  }

  .coursesummary__about--detail {
    order: 2;
  }

  .coursesummary__about--pricetime {
    order: 3;
  }
  
  .coursesummary__about--tags {
    order: 4;
  }

  .ctaWide {
    width: 100%;
    padding: 20px;
  }

  .ctaWide__btnArea {
    flex-direction: column;
  }

  .ctaWide__btn {
    width: 100%;
    flex-direction: column;
    gap: 0px;
    padding: 8px 0px;
  }

  .ctaWide__btn--label {
    color: #f28c28;
    background-color: white;
  }

  .ctaWide__btn--txt {
    font-size: 16px;
  }

  .courseDetail__nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .courseDetail__nav li {
    flex: unset;
    width: 100%;
  }

  .courseDetail__targetExam--body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .courseDetail__targetExam--txt {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 0;
  }

  .courseDetail__targetExam--top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .courseDetail__targetExam--top img {
    width: 80px;
    height: auto;
  }

  .courseDetail__targetExam--top h3 {
    font-size: 16px;
    flex: 1;
  }

  .courseDetail__targetExam--txt ul {
    margin-top: 8px;
  }

  .courseDetail__targetExam--txt ul li {
    position: relative;
    padding-left: 1em; /* 中点の分だけインデント */
  }

  .courseDetail__targetExam--txt ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1em;
  }

  .reviewPickup__body,
  .review__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .review__content--top {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .courseContent__agenda dl dd {
    flex: 1;
  }

  .courseContent__sample {
    flex-direction: column;
  }

  .courseContent__sample img {
    width: 100%;
  }

  .otherOpenSeminar__list {
    flex-direction: column;
  }

  .otherOpenSeminar__list--item {
    width: 100%;
  }

  .otherElearning__list--costtime > p:first-of-type {
    margin-right: 16px;
  }

  .otherElearning__link,
  .otherOpenSeminar__link {
    position: relative;
    justify-content: center;
  }

  .otherElearning__link--icon,
  .otherOpenSeminar__link--icon {
    position: absolute;
    right: 24px; /* リンクの右端から24px */
  }

  .courseOutline__title {
    font-size: 14px;
  }

  .courseOutline__body {
    font-size: 14px;
    font-weight: normal;
  }
}