:root {
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Alexandria", sans-serif;
  --color-primary:#D03952;
}

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  height: auto;
  width: 100%;
  vertical-align: bottom;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styles on ul, ol elements */
ul,
ol {
  list-style: none;
}

/* Remove default styles on links */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove default table spacing */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styles */
fieldset,
legend {
  padding: 0;
  margin: 0;
  border: 0;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Remove default focus outline */
:focus {
  outline: none;
}

/* latest --------------------------------------------------------------- */

.latest-items-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 46px;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.latest-items-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 46px;
  transform: translateX(100%);
  width: max-content;
}
.latest-items-wrapper:nth-child(1) {
  animation: scroll 60s linear 0s infinite normal;
}
.latest-items-wrapper:nth-child(2) {
  animation: scroll 60s linear 0s infinite normal;
}
.latest-items-wrapper:nth-child(3) {
  animation: scroll 60s linear 0s infinite normal;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 46px));
  }
}

.latest-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 240px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
@media (any-hover: hover) {
  .latest-item:hover {
    opacity: 0.8;
  }
}
.latest-item__thumbnail {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.latest-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latest-item__name {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

.latest-item__author-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.latest-item__author {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 500;
  color: #464646;
  margin: 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.latest-item__author-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.latest-item__author-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-banner {
  display: block;
  width: 75%;
  margin-inline: auto;
}
/* レスポンシブデザイン */

@media screen and (max-width: 768px) {
  .latest-items-container {
    align-items: center;
    gap: 32px;
  }

  .latest-items-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    transform: translateX(100%);
    width: max-content;
  }
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100% - 32px));
    }
  }
}

/* latest ここまで-------------------------------------------------------- */
