html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Noto Sans Japanese";
  src: url("./../fonts/NotoSansJP-Regular.ttf");
}

@font-face {
  font-family: "Koz Go Pro";
  src: url("./../fonts/KozGoPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

.font-NotoSans {
    font-family: "Noto Sans Japanese", sans-serif;
}

.font-kozgo {
    font-family: "Koz Go Pro", "Noto Sans Japanese", sans-serif;
}

@keyframes fadeInHome {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-pop-in {
  animation: fadeInHome 3s ease forwards;
}

.mobile-menu-enter {
  transform: translateX(100%);
}
.mobile-menu-active {
  transform: translateX(0);
}

.fadein {
  opacity: 0;
  animation: fadeIn 2s ease 0.5s forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-title-clamp,
.news-excerpt-clamp {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 1.6;
  max-height: calc(1.6em * 2);
  word-break: break-word;
  white-space: normal;
}
.news-title-clamp.is-clamped::after,
.news-excerpt-clamp.is-clamped::after {
  content: none;
}

.news-cat-item {
  white-space: nowrap;
}

.news-cat-only {
  font-size: 12px;
  color: #8a8a8a;
  letter-spacing: 0.04em;
}

/* Restore default typography inside post content (Tailwind preflight resets it). */
.news-content :where(h1, h2, h3, h4, h5, h6) {
  font-size: revert;
  font-weight: revert;
  margin: revert;
}

.news-content :where(p, ul, ol, blockquote, pre, figure) {
  margin: revert;
}

.news-content :where(ul, ol) {
  padding: revert;
  list-style: revert;
}

.news-content :where(strong, b) {
  font-weight: bolder;
}

.news-content :where(em, i) {
  font-style: italic;
}

/* Keep spacing for intentionally empty paragraphs. */
.news-content p:empty::before {
  content: "\00a0";
}


