@charset "utf-8";

/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ top-banner */
.top-banner {
  display: flex;
  gap: 5px;
}

.top-banner-items {
  position: relative;
  display: block;
  flex-grow: 1;
  aspect-ratio: 3 / 2.5;
  font-size: 0.8em;
  font-weight: bold;
  color: hsl(var(--color-primary-light));
  text-align: center;
  background-color: white;
  border: 2px solid hsl(var(--color-primary-light));
  border-radius: 10px;
  transition: opacity 0.5s;
}

@media screen and (min-width: 768px) {
  .top-banner-items {
    border: 5px solid hsl(var(--color-primary-light));
  }
}

.top-banner-items-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  font-weight: bold;
  transform: translate(-50%, -50%);
}

.top-banner-items:hover {
  opacity: 0.7;
}

/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ HOME-COURSE-INFO */
.home-course-info {
  width: 100%;
}

.home-course-info-items {
  display: flex;
  gap: 0.5em;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  background-color: white;
  border: 2px solid hsl(var(--color-primary-light));
  border-radius: 5px;
}

.home-course-info-images {
  width: 35%;
}

.home-course-info-coursename {
  font-size: 1.2em;
  font-weight: bold;
  color: hsl(var(--color-primary-light));
}

@media screen and (min-width: 768px) {
  .home-course-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .home-course-info-items {
    flex: 1;
    flex-wrap: wrap;
  }

  .home-course-info-coursename {
    order: 1;
    width: 100%;
    padding: 0.3em 0;
    text-align: center;
  }

  .home-course-info-images {
    order: 2;
    width: 100%;
  }
}

/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ BLOG-CARD */
.blog-box {
  width: 100%;
}

ul.blog-list {
  width: 100%;
}

ul.blog-list li {
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  background-color: white;
  border-bottom: 2px solid hsl(var(--color-primary-light));
}

.blog-category {
  display: inline-block;
  padding: 0 0.5em;
  font-size: 0.8em;
  color: white;
  background-color: lightgray;
}

.blog-link {
  display: block;
  width: 100%;
  transition: background-color 0.5s;
}

.blog-link:hover {
  background-color: hsl(var(--color-primary-superlight));
}

.blog-parts {
  width: 100%;
  padding: 0 1em;
}

.blog-title-box {
  width: 100%;
  overflow: hidden;
}

.blog-title {
  position: relative;
  padding-left: 1.5em;
  font-size: 1.1em;
  font-weight: bold;
  white-space: nowrap;
}

.blog-title::before {
  position: absolute;
  left: 0;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: gray;
  content: "\f518";
}

.blog-desc-box {
  width: 100%;
  overflow: hidden;
  font-size: 0.9em;
}

@media screen and (min-width: 768px) {
  .blog-desc-box {
    width: 100%;
    height: 3em;
    overflow: hidden;
  }
}

.blog-desc {
  width: 100%;
  overflow: hidden;
}

.blog-date {
  width: 100%;
  font-style: italic;
  text-align: right;
}
