/* =====================
   Works / Collaborator detail pages
   Styles for existing HTML class names
   ===================== */

/* Neutralize old body/wrapper styles */
body {
  background: var(--light);
}

#main-contents {
  display: block;
}

/* =====================
   Hero section
   ===================== */
.hero {
  position: relative;
  height: 50vh;
  min-height: 280px;
  padding-top: var(--header-h);
  padding-bottom: clamp(40px, 7vw, 72px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,11,0.3) 0%, rgba(13,13,11,0.65) 100%);
}

.works-lower-title {
  display: none;
}

/* =====================
   Content wrapper
   ===================== */
.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--section-py);
}

.section-inner section {
  margin: 0;
}

/* =====================
   Works typography
   ===================== */
.section-inner h2 {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-light);
  margin-bottom: 12px;
  line-height: 1.2;
}

.works-jp-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-on-light);
  opacity: 0.55;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 32px;
}

.works-detail {
  font-size: 0.925rem;
  line-height: 1.95;
  color: var(--text-on-light);
  opacity: 0.8;
  max-width: 680px;
  margin-bottom: 28px;
}

/* =====================
   Metadata (year, category)
   ===================== */
.works-info {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.works-info dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.works-info dt {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
}

.works-info dd {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--text-on-light);
}

/* =====================
   External URL
   ===================== */
.target_url p {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-bottom: 4px;
}

.target_url span {
  font-size: 0.8rem;
}

.target_url a {
  color: var(--text-on-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.65;
  transition: opacity 0.2s;
  display: inline-block;
  margin-bottom: 32px;
}

.target_url a:hover { opacity: 1; }

/* =====================
   Video
   ===================== */
.video-list {
  margin-bottom: 40px;
}

.video-item {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark);
  overflow: hidden;
  margin-bottom: 32px;
}

.video-item iframe,
.video-item > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* YouTube placeholder div styling */
.video-item > div[id^="video"] {
  width: 100%;
  height: 100%;
}

/* =====================
   Image gallery
   ===================== */
.worksimg-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.worksimg-item img,
.worksimg-item-last img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.worksimg-item {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.worksimg-item-last {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}

/* =====================
   Prev / Next navigation
   ===================== */
.nextbtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

.nextbtn-item {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nextbtn-item a {
  color: var(--text-on-light);
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nextbtn-item a:hover { opacity: 1; }

.nextbtn-item.previous a::before { content: '←'; }
.nextbtn-item.next a::after { content: '→'; }

/* =====================
   Collaborator hero
   ===================== */
.hero.collaborator {
  background-image: url('/img/collaborator/collaborator_hero.jpg');
}

/* =====================
   Collaborator profile
   ===================== */
.collabo-profile-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.collabo-profile-img {
  width: clamp(120px, 20vw, 200px);
  aspect-ratio: 3/4;
  overflow: hidden;
}

.collabo-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-name-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
  display: block;
  margin-bottom: 20px;
}

.profile-text {
  font-size: 0.9rem;
  line-height: 1.95;
  opacity: 0.75;
}

/* =====================
   Talent profile layout
   ===================== */
.talent-list {
  display: flex;
  gap: clamp(24px, 5vw, 50px);
  margin-bottom: 40px;
  width: 100%;
}

.talent-item:first-of-type {
  width: 40%;
  flex-shrink: 0;
}

.talent-item:last-of-type {
  flex: 1;
}

.talent-item img {
  width: 100%;
  height: auto;
  display: block;
}

.talent-item h3 {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.talent-item h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 24px;
}

.talent-item span {
  font-family: var(--font-en);
  margin-left: 8px;
  font-size: 0.85rem;
  opacity: 0.6;
}

.position-title {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0;
  padding-left: 12px;
  position: relative;
}

.position-title::before {
  content: '/';
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.5;
}

/* =====================
   Profile table
   ===================== */
.profile-table dl {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.8;
}

.profile-table dt {
  width: 20%;
  flex-shrink: 0;
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

.profile-table dd {
  font-size: 0.875rem;
  line-height: 1.8;
}

/* =====================
   SNS icons
   ===================== */
.sns-icon {
  margin: 16px 0;
  display: flex;
  gap: 12px;
}

.sns-icon .instagram-logo,
.sns-icon .facebook-logo {
  width: 40px;
}

.sns-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   Download button
   ===================== */
.printBtn-wrap {
  margin-bottom: 48px;
  text-align: right;
}

.printBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--border-light);
  color: var(--text-on-light);
  transition: background 0.25s, color 0.25s, gap 0.2s;
}

.printBtn::after {
  content: '→';
  transition: transform 0.2s;
}

.printBtn:hover {
  background: var(--text-on-light);
  color: var(--light);
}

.printBtn:hover::after {
  transform: translateX(4px);
}

.printBtn p {
  display: none;
}

.printBtn span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-left: 0;
}

/* =====================
   Sample voice
   ===================== */
.sampleVoice {
  margin-bottom: 48px;
}

.sampleVoice h5 {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sampleVoice > span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.5;
  margin-bottom: 20px;
}

.sampleVoice h6 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 24px;
  margin-bottom: 8px;
}

.sampleVoice p {
  font-size: 0.85rem;
  margin-bottom: 4px;
  opacity: 0.7;
}

.audio-wrapper {
  max-width: 480px;
}

.audio-wrapper audio {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background: transparent;
}

/* =====================
   Performance record
   ===================== */
.recordList {
  list-style: none;
  padding: 0;
}

.recordItem {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.recordItem:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.recordItem h6 {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 12px;
}

.recordDetail {
  font-size: 0.875rem;
  line-height: 1.9;
  opacity: 0.8;
}

.recordDetail dl {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

.recordDetail dt {
  width: 16%;
  flex-shrink: 0;
  opacity: 0.6;
}

.recordDetail dd {
  flex: 1;
}

/* =====================
   Audio player (keep existing styles but clean up)
   ===================== */
.audioplayer {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 12px 16px;
  margin-bottom: 8px;
}

/* =====================
   Inner wrapper used for nextbtn
   ===================== */
.inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =====================
   Utility
   ===================== */
.br-sp,
.br-sp02 {
  display: none;
}

/* =====================
   Breadcrumb
   ===================== */
.breadcrumb-inner {
  padding-block: 20px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.75rem;
  opacity: 0.45;
}

.breadcrum-item + .breadcrum-item::before {
  content: '/';
  margin-right: 4px;
  opacity: 0.5;
}

.breadcrum-item a {
  transition: opacity 0.2s;
}

.breadcrum-item a:hover { opacity: 0.7; }

/* =====================
   TV program list
   ===================== */
.tvprogram-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.tvprogram-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tvprogram-item img {
  width: 100%;
  max-width: 70%;
  height: auto;
  display: block;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .worksimg-list {
    grid-template-columns: 1fr;
  }

  .tvprogram-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .nextbtn {
    gap: 16px;
  }

  .collabo-profile-wrap {
    grid-template-columns: 1fr;
  }

  .talent-list {
    flex-direction: column;
  }

  .talent-item:first-of-type {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .talent-item img {
    max-width: 240px;
    margin-inline: auto;
  }

  .talent-item:last-of-type {
    width: 100%;
  }

  .profile-table dt {
    width: 30%;
  }

  .recordDetail dl {
    flex-direction: column;
    gap: 4px;
  }

  .recordDetail dt {
    width: 100%;
  }

  .printBtn-wrap {
    text-align: center;
  }

  .position-title {
    padding-left: 0;
  }

  .position-title::before {
    content: none;
  }
}
