.trd-page {
  background: #f7f7f7;
  padding-top: 90px;
  font-family: "Noto Sans JP", "Noto Sans", system-ui, sans-serif;
}

.trackrecord-detail-page .list-header {
  background: #f7f7f7;
  padding: 0px 60px 30px;
}

.trackrecord-detail-page .list-header .list-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trackrecord-detail-page .list-header .breadcrumb {
  font-size: 16px;
  font-weight: 300;
  color: #777;
}

.trackrecord-detail-page .list-header .breadcrumb a {
  text-decoration: none;
  color: #7d1b1b;
  transition: opacity 0.2s;
}

.trackrecord-detail-page .list-header .breadcrumb a:hover {
  opacity: 0.6;
}

.trd__container {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 90px;
}

.trd__panel {
  background: #fff;
  width: 100%;
  min-height: 1350px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 56px 0 56px;
}

.trd__title {
  margin: 0;
  text-align: left;
  font-size: 40px;
  font-weight: 600;
  padding-left: 80px;
  letter-spacing: 0.06em;
  color: #222;
}

.trd__media {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.trd-gallery {
  width: 850px;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  background: #fff;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 50px 26px 18px;
}

.trd-gallery__stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trd-gallery__img {
  width: 550px;
  height: 330px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.trd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  color: #7d1b1b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.trd-gallery__nav--prev {
  left: 18px;
}
.trd-gallery__nav--next {
  right: 18px;
}

.trd-gallery__nav:hover {
  background: rgba(125, 27, 27, 0.06);
}

.trd-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 40px 0;
}

.trd-gallery__thumb {
  width: 80px;
  height: 65px;
  border: none;
  background: #d9d9d9;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  background-repeat: no-repeat;
  border: none;
}

.trd-gallery__thumb.is-active {
  outline: 2px solid rgba(125, 27, 27, 0.7);
  outline-offset: 2px;
}

.trd-comment {
  margin: 42px auto 0;
  width: 700px;
  min-height: 220px;
  border: 2px solid rgba(125, 27, 27, 0.35);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trd-comment__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  text-align: center;
}

.trd-meta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.trd-meta__list {
  margin: 0 auto;
  padding: 0;
  width: min(560px, calc(100% - 32px));
}

.trd-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.trd-row:last-child {
  margin-bottom: 0;
}

.trd-row__label {
  width: 150px;
  height: 50px;
  background: #efefef;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.trd-row__value {
  margin: 0;
  font-size: 20px;
  color: #222;
  word-break: break-all;
}

.trd-row__link {
  color: #222;
  text-decoration: none;
  word-break: break-all;
}

.trd-row__link:hover {
  text-decoration: underline;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
}

.image-modal.show {
  display: flex;
}

.image-modal__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}

.image-modal__nav--prev {
  left: 22px;
}
.image-modal__nav--next {
  right: 22px;
}

.image-modal__nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.trd-gallery__thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.trd-gallery__thumb:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .list-header {
    display: none;
  }

  .trd-breadcrumb {
    width: calc(100% - 24px);
    padding: 18px 0 10px;
    font-size: 12px;
  }

  .trd__container {
    width: calc(100% - 24px);
    padding: 8px 0 60px;
  }

  .trd__panel {
    min-height: auto;
    padding: 34px 0 44px;
  }

  .trd__title {
    font-size: 24px;
    text-align: center;
    padding-left: 0;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }

  .trd__media {
    margin-top: 14px;
  }

  .trd-gallery {
    width: min(340px, 100%);
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .trd-gallery__nav {
    width: 28px;
    height: 28px;
    font-size: 18px;
    top: calc(175px / 2);
    transform: translateY(-50%);
  }

  .trd-gallery__stage {
    width: 290px;
    height: 175px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
  }

  .trd-gallery__img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    aspect-ratio: 55 / 33;
    object-fit: cover;
    display: block;
  }

  .trd-gallery__thumbs {
    margin: 12px 0 0;
    gap: 10px;
  }

  .trd-gallery__thumb {
    width: 62px;
    height: 44px;
  }

  .trd-comment {
    width: min(340px, calc(100% - 24px));
    min-height: 160px;
    padding: 18px 16px;
  }

  .trd-comment__text {
    font-size: 13px;
  }

  .trd-meta__list {
    width: min(340px, 100%);
  }

  .trd-row {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }

  .trd-row__label {
    width: 110px;
    height: 40px;
    font-size: 14px;
  }

  .trd-row__value {
    font-size: 16px;
  }
}