body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb {
  font-size: smaller;
}

/* =========================================================
   FINAL Demo UI (Sample Switch + Method Cards, PC: 4 + 3)
   ※ 既存CSSは変更不要。末尾に追記する前提
   ========================================================= */

/* ---------- Sample Switch ---------- */

.demo-switch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.demo-switch-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.demo-sample-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #333;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.demo-sample-link.is-active {
  background: #111;
  color: #fff;
}

/* ---------- Sample View ---------- */

.demo-view {
  display: block;
}

.demo-view .box {
  border-radius: 16px;
}

/* =========================================================
   Method Cards Grid (PC: 4 + 3)
   ========================================================= */

.demo-method-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

/* Desktop: 4 columns → 7 cards = 4 + 3 */
@media (min-width: 1100px) {
  .demo-method-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }

  /* center second row (cards 5–7) */
  /*
  .demo-method-grid > :nth-child(5) {
    grid-column: 2;
  }
  */
}

/* Tablet */
@media (max-width: 1099px) {
  .demo-method-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

/* Small */
@media (max-width: 900px) {
  .demo-method-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .demo-method-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Method Card
   ========================================================= */

.demo-method-card {
  border-radius: 16px;
  padding: 14px;
}

.demo-method-title {
  font-weight: 800;
  margin-bottom: 10px;
}

/* =========================================================
   Media
   ========================================================= */

.demo-view img,
.demo-view audio {
  width: 100%;
  border-radius: 12px;
}

.demo-method-card audio {
  margin-top: 10px;
}

.demo-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.demo-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.demo-method-card .demo-video-frame {
  margin-bottom: 10px;
}

/* =========================================================
   Failure / Annotation
   ========================================================= */

.fail-case {
  color: #d32f2f;
  font-weight: 800;
  font-size: 0.9em;
}