main, .nav-toggle, .brand_wrapper, footer {
  opacity: 0;
  animation: site-fadein 3s forwards;
}

.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splash-fade 3s forwards;
}

@keyframes splash-fade {
  0% { opacity: 0 }
  45% { opacity: 1 }
  65% { opacity: 1 }
  100% {
    opacity: 0;
    display: none;
  }
}

@keyframes site-fadein {
  0%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

.bg {
  width: 100%;
  height: 100vh;
  background: url("../images/wrap.jpg") no-repeat center/cover;
  background-size: 25%;
  background-repeat: no-repeat; /* 繰り返さない */
}

.hero {
  width: 100%;
  height: auto;
}

/*
投稿一覧
*/
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.news-link {
  display: block;
  transition-duration: .4s;
}

.news-link:hover {
  transform: scale(1.05);
}

.news-item {
  display: flex;
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.news-description {
  padding-left: 16px;
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: #888;
}

.news-title {
  color: #333;
}

.news-detail {
  color: #555;
  font-size: 0.9rem;
}

.view-more {
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/*
PCサイズ(min-width: 1024px)
*/
@media screen and (min-width: 1024px) {
  main, header, footer {
    opacity: 0;
    animation: site-fadein 3s forwards;
  }

  .news-link {
    width: calc(50% - 12.5px);
    height: 250px;
    max-height: 250px;
  }

  .news-item {
    padding: 16px;
  }

  .news-thumb {
    max-width: 200px;
    flex: 0 0 200px;
  }

  .news-date {
    padding-bottom: 16px;
  }

  .news-title {
    padding-bottom: 24px;
    font-size: 1.4rem;
  }

  .view-more {
    line-height: calc(250px);
  }
}

/*
スマホサイズ(max-width: 1023px)
*/
@media screen and (max-width: 1023px) {
  main, .nav-toggle, .brand_wrapper, footer {
    opacity: 0;
    animation: site-fadein 3s forwards;
  }

  .bg {
    background-size: 50%;
  }

  .news-link {
    width: 100%;
    height: 200px;
    max-height: 200px;
  }

  .news-item {
    padding: 4px;
  }

  .news-thumb {
    max-width: 100px;
    flex: 0 0 100px;
  }

  .news-date {
    padding: 8px 0 16px 0;
  }

  .news-title {
    padding-bottom: 24px;
    font-size: 1.2rem;
  }

  .news-detail {
    font-size: 0.8rem;
  }

  .view-more {
    line-height: calc(200px);
  }
}