/* ============= Main Section ============= */
.main-section {
  padding-bottom: 80px;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-main-wrap {
  width: 100%;
  aspect-ratio: 900 / 675;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-main-wrap img.is-changing {
  opacity: 0;
}

/* PC: 220×165px 固定、flex-wrap で5枚目以降は折り返し */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thumb-wrap {
  width: 220px;
  height: 165px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.thumb-wrap:hover {
  opacity: 0.85;
}

.thumb-wrap.is-active {
  opacity: 1;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Data section */
.data-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-label {
  display: flex;
  flex-direction: column;
}

.data-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.data-dot-green {
  width: 12px;
  height: 12px;
  background: #9fc707;
  flex-shrink: 0;
}

.data-dot-blue {
  width: 12px;
  height: 12px;
  background: #0798ed;
  flex-shrink: 0;
}

.data-label-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 1.8px;
  width: 100%;
}

.data-table {
  display: flex;
  flex-direction: column;
}

.data-row {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 38, 63, 0.4);
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 1.4px;
}

.data-key {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 14px;
  width: 120px;
  flex-shrink: 0;
}

.data-val {
  font-family: 'RyoGothicPlusN', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
}

.data-val.light {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
}

.data-val.ja {
  font-family: 'RyoGothicPlusN', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

/* ============= Related Section ============= */
.related-section {
  background: #647184;
  padding: 64px 0;
}

.related-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.related-titles {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.related-en {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 3.2px;
}

.related-ja {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 1.6px;
}

.related-btn-row {
  display: flex;
  justify-content: flex-end;
}

.works-list-btn {
  display: inline-flex;
  gap: 120px;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 12px 4px 12px 16px;
  text-decoration: none;
}

.btn-label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 0.48px;
  white-space: nowrap;
}

.btn-icon-wrap {
  border-left: 1px solid #14263f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.btn-icon-wrap .mi {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  color: #14263f;
  line-height: 1.2;
}

/* Related Cards */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 284 / 191;
  border-radius: 4px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 1.5px;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.card-arrow-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #fff;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-arrow-btn .mi {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  color: #14263f;
  line-height: 1.79;
  text-align: center;
  width: 100%;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 153px;
}

.meta-row {
  display: flex;
  align-items: center;
}

.meta-label {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 96px;
  flex-shrink: 0;
}

.meta-dot-blue {
  width: 8px;
  height: 8px;
  background: #0798ed;
  flex-shrink: 0;
}

.meta-dot-green {
  width: 8px;
  height: 8px;
  background: #9fc707;
  flex-shrink: 0;
}

.meta-label-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 1px;
  white-space: nowrap;
}

.meta-value {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.meta-value.ja {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
}

.breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: min(100%, 1360px);
  padding: 24px 20px;
  margin-inline: auto;
}

.breadcrumb__link {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
}

.breadcrumb__dot {
  display: block;
  width: 6px;
  height: 6px;
  background: #9fc707;
  border-radius: 50%;
  flex-shrink: 0;
}

.breadcrumb__current {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
  opacity: 0.64;
}

/* ============= SP Layout (max-width: 1023px) ============= */

@media (max-width: 1180px) {

  /* Gallery */
  .gallery {
    gap: 8px;
  }

  .gallery-main-wrap {
    aspect-ratio: 368 / 276;
  }

  /* SP: 3列グリッド、aspect-ratio で 122×91 比率を維持、5枚目以降は折り返し */
  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .thumb-wrap {
    width: auto;
    height: auto;
    aspect-ratio: 122 / 91;
  }

  /* Data */
  .data-dots {
    gap: 2px;
  }

  .data-dot-green,
  .data-dot-blue {
    width: 6px;
    height: 6px;
  }

  .data-label-text {
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  .data-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 8px 0;
  }

  .data-key {
    font-size: 12px;
    letter-spacing: 1.2px;
    width: auto;
  }

  .data-val {
    font-size: 14px;
    letter-spacing: 1.4px;
  }

  /* Related */
  .related-section {
    padding: 40px 0;
  }

  .related-header {
    gap: 16px;
    margin-bottom: 0;
  }

  .related-btn-row {
    justify-content: flex-start;
  }

  .related-cards {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
    padding: 40px 0;
  }

  .card {
    gap: 12px;
  }

  .card-image-wrap {
    aspect-ratio: 368 / 247;
  }

  .card-title {
    font-size: 14px;
    letter-spacing: 1.4px;
  }
}

@media screen and (max-width:1024px) {

  .breadcrumb__link,
  .breadcrumb__current {
    font-size: 11px;
  }
}

@media (max-width:768px) {
  .related-en {
    font-size: 28px;
  }

  .related-ja {
    font-size: 14px;
  }

  .related-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card:nth-child(3n) {
    display: none;
  }

  .card-title {
    font-size: 12px;
  }

  .meta-row {
    flex-direction: column;
    align-items: start;
    margin-bottom: 8px;
  }

  .meta-value {
    font-size: 10px;
  }

  .card-info {
    gap: 8px;
  }

  .related-btn-row {
    justify-content: flex-end;
  }

  .card-arrow-btn {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .data-val.ja,
  .data-val {
    font-size: 12px;
  }

  .breadcrumb {
    padding: 8px 0;
    justify-content: flex-end;
    gap: 2px 8px;
  }

  .breadcrumb__link {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .breadcrumb__dot {
    width: 4px;
    height: 4px;
  }

  .breadcrumb__current {
    font-size: 10px;
    letter-spacing: 1px;
  }
}