@import url("/include/root.css");
@import url("/include/header.css");
@import url("/include/footer.css");

.image_wrapper {
  position: relative;
  width: min(95%, var(--max-photo-width));
  margin: 64px auto;
  box-shadow: 0 0 25px 5px white inset;
}

.fade_in_container {
  animation-name: fadein;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes fadein {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.toppage_photo {
  position: relative;
  width: 100%;
  /* 16/9にトリミングする */
  aspect-ratio: 16/8;
  object-fit: cover;
  /* box-shadowに対して画像が下に来るように */
  z-index: -1;
  vertical-align: bottom;
}

.image_wrapper::after {
  content: "SOFTWARE ENGINEERING LABORATORY";
  position: absolute;
  top: 12%;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  padding: 0 8%;
  font-size: min(4vw, calc((var(--max-photo-width) / 0.8) * 0.04));
  color: white;
  text-align: center;
  font-family: "Comic Sans MS", "Chalkboard SE", "Trebuchet MS",
    "JetBrains Mono", Menlo, Monaco, "Cascadia Code", Consolas, "Courier New",
    "Hiragino Sans", "BIZ UDゴシック", monospace;
  text-shadow: 0 0 10px var(--indigo-super-dark);
}

.new_topics_container {
  margin: 64px auto;
}

.new_topics_container .subject {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.topic_content {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 16px 0;
  @media screen and (max-width: 600px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.topic_content .title {
  font-size: 16px;
  color: var(--sky-blue);
  flex: 1;
  line-height: 1.5em;
}

.topic_content .title:hover {
  color: var(--gray750);
}

.topic_content .date {
  width: 132px;
  text-align: end;
  font-size: 12px;
  color: var(--gray750);
  @media screen and (max-width: 600px) {
    align-self: end;
  }
}

.new_topics_container .old_topics_link {
  font-size: 14px;
  color: var(--primary-color);
  text-align: center;
}

.new_topics_container .old_topics_link a {
  color: var(--primary-color);
}

.new_topics_container .old_topics_link a:hover {
  opacity: 0.5;
}

.links_container {
  margin: 64px auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.link_container {
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.link_container .subject {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.link_container a {
  font-size: 18px;
  color: var(--gray750);
  text-align: start;
  margin: 8px 0 8px 12px;
  text-decoration: none;
}

.link_container a:hover {
  text-decoration: underline;
}
