.artist-archive,
.artist-profile {
  --artist-text: #4a4a4a;
  --artist-accent: #e3a46f;
  --artist-dark: #c7772b;
  --artist-line: #e8e0d5;
  --color-sub: #7a7168;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--artist-bg);
  color: var(--artist-text);
}

.artist-profile {
  padding-bottom: 48px;
}

.artist-archive {
  padding-bottom: 60px;
}

.artist-archive a,
.artist-profile a {
  color: inherit;
  text-decoration-color: var(--artist-accent);
}

.artist-archive a:hover,
.artist-profile a:hover {
  opacity: 0.8;
}

/* ========================================
   Archive - 一覧
   ======================================== */
.artist-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.artist-archive .c-pagination {
  margin-top: 40px;
}

/* TOPページ・ショートコード用 */
.top-artist-section {
  padding-top: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-artist-section:last-child {
  margin-bottom: 0;
}

.top-artist-section__head {
  margin-bottom: 28px;
}

.top-artist-section .top-artist-section__title {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 10px;
  margin: 0;
}

.top-artist-section .top-artist-section__title::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  align-self: center;
  background: var(--artist-accent);
  box-sizing: border-box;
}

.top-artist-section .top-artist-section__title-inner {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  column-gap: 20px;
  min-width: 0;
}

.top-artist-section .top-artist-section__title-text {
  color: var(--color-sub);
  font-size: 2rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  line-height: 1.2;
}

.top-artist-section__archive-link {
  flex-shrink: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #999 !important;
  text-decoration: none;
  border-bottom: 1px solid #c89b6d;
  padding-bottom: 2px;
  transition:
    padding-bottom 0.2s ease,
    color 0.2s ease;
}

.top-artist-section__archive-link:hover {
  padding-bottom: 0;
}

.top-artist-section .artist-card {
  background: transparent;
  border: none;
}

.top-artist-section .artist-card:hover {
  box-shadow: none;
}

.top-artist-section .artist-info {
  background: transparent;
  padding: 10px 0 0;
}

.top-artist-section .artist-list {
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 28px;
}

.artist-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--artist-line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.artist-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.artist-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(74, 74, 74, 0.05);
}

.artist-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.artist-card .artist-name {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
}

.artist-card .artist-genre {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--artist-accent);
  background: rgba(215, 155, 99, 0.08);
  border: 1px solid var(--artist-line);
  border-radius: 40px;
  padding: 6px 10px 8px;
  flex-shrink: 0;
}

/* ========================================
   Single - 詳細（見た目維持）
   ======================================== */
.artist-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--artist-accent);
}

.artist-header-names {
  min-width: 0;
}

.artist-profile .artist-name {
  margin: 0;
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.artist-profile .artist-header-names .artist-name:first-child {
  margin-top: 0;
}

.artist-name-en {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.09em;
  color: var(--artist-dark);
}

.artist-genre-tag {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--artist-accent);
  background: rgba(215, 155, 99, 0.08);
  border: 1px solid var(--artist-line);
  border-radius: 40px;
  padding: 6px 10px 8px;
}

.artist-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}

.artist-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 20px;
}

.artist-gallery-main {
  aspect-ratio: 4 / 5;
  background: var(--artist-line);
  overflow: hidden;
}

.artist-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artist-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.artist-gallery-thumb {
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.75;
  overflow: hidden;
  flex-shrink: 0;
}

.artist-gallery-thumb:hover,
.artist-gallery-thumb.is-active {
  border-color: var(--artist-accent);
  opacity: 1;
}

.artist-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artist-profile-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--artist-line);
}

.artist-profile-info li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(63, 57, 52, 0.12);
  line-height: 1.9;
  font-size: 0.98rem;
}

.artist-profile-info strong {
  font-weight: 600;
  color: var(--color-sub);
}

.artist-profile-info a,
.artist-sns-text a {
  color: var(--artist-accent);
}

.artist-credits {
  margin-top: 56px;
}

.artist-credits h2 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  text-align: center;
  color: var(--color-sub);
}

.artist-credit-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--artist-line);
}

.artist-credit-item:last-child {
  border-bottom: 1px solid var(--artist-line);
}

.artist-credit-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-sub);
}

.artist-credit-item p {
  margin: 0;
  line-height: 2.1;
}

.artist-back-link {
  margin: 100px 0 0;
  text-align: center;
}

.artist-back-link a {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--artist-accent);
  background: #fff;
  border: 1px solid var(--artist-line);
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.artist-back-link a:hover {
  background: var(--artist-accent);
  border-color: var(--artist-accent);
  color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .artist-top {
    grid-template-columns: 1fr;
  }

  .artist-gallery {
    grid-template-columns: 1fr 74px;
  }

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

@media (max-width: 767px) {
  .top-artist-section {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .artist-list {
    gap: 32px;
  }

  .artist-archive .c-pagination {
    margin-top: 32px;
  }

  .artist-top {
    gap: 28px;
    margin-bottom: 52px;
  }

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

  .artist-gallery {
    grid-template-columns: 1fr;
  }

  .artist-gallery-thumbs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .artist-profile-info li,
  .artist-credit-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .artist-list {
    gap: 20px;
  }

  .artist-card {
    min-width: 0;
  }

  .artist-archive .artist-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .artist-card .artist-name {
    font-size: 0.8rem;
    min-width: 0;
    word-break: break-word;
  }

  .artist-card .artist-genre {
    font-size: 0.72rem;
    padding: 4px 8px 6px;
    min-width: 0;
  }

  .artist-archive .c-entry__title {
    font-size: 1.4rem;
  }

  .top-artist-section {
    margin-bottom: 40px;
  }

  .artist-top {
    gap: 20px;
    margin-bottom: 40px;
  }

  .artist-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .artist-profile .artist-name {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  .artist-name-en {
    font-size: 0.9rem;
  }

  .artist-genre-tag {
    font-size: 0.75rem;
    padding: 5px 10px 6px;
  }

  .artist-gallery-thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .artist-gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    scroll-snap-align: start;
  }

  .artist-profile-info li {
    padding: 12px 0;
    font-size: 0.9rem;
    gap: 12px;
  }

  .artist-credits {
    margin-top: 40px;
  }

  .artist-credits h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .artist-credit-item {
    padding: 14px 0;
    gap: 12px;
  }

  .artist-credit-item h3 {
    font-size: 0.9rem;
  }

  .artist-credit-item p {
    font-size: 0.9rem;
  }

  .artist-back-link {
    margin-top: 80px;
  }
}
