/* グループカラー */
/* スクロールバー */
/* details UI */
/* 矢印 */
/* リンク */
/* ページ内メニュー：項目全体を折り返し、文字の途中では改行しない。 */
.sg-detail-card .sg-section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 8px 0 12px;
  padding: 0;
}
.sg-detail-card .sg-section-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: rgba(255, 255, 255, .85);
  color: var(--main-text-color, #444);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.sg-detail-card .sg-section-nav a:hover {
  border-color: var(--main-color, #999);
  text-decoration: underline;
}
.sg-detail-card .sg-section-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.sg-detail-card [data-sg-section] {
  scroll-margin-top: 80px;
}
@media (max-width: 768px) {
  .sg-detail-card .sg-section-nav a { padding: 4px 8px; font-size: 12px; }
}

/* タイトル */
/* テーブル共通 */
/* セットリストリストテーブル共通 */
/* ライブリストテーブル共通 */
/* YouTube */
/* 全開閉ボタン */
/* ソートラジオボタン */
/* 前後ボタン */





/* グループカラー */
:root {
  --sakura-soft: #F9E6EB;
  --keyaki-soft: #E8F5EC;
}
.sakura {
  color: var(--sakura-text);
}
.sakura.link-common:hover {
  color: var(--sakura-text);
}
.keyaki {
  color: var(--keyaki-text);
}
.keyaki.link-common:hover {
  color: var(--keyaki-text);
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* details UI */
details summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* 矢印 */
summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.3s ease;
}
details[open] summary::before {
  transform: rotate(90deg);
}

/* リンク */
.link-common {
  text-decoration: none;
  font-weight: bold;
}
.link-common:hover {
  text-decoration: underline;
}

/* 共通カード：上部160pxだけに色を残し、長い一覧の背景は白に揃える。 */
.gradation-card {
  background: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-color) 25%, white) 0, #fff 160px);
  padding: 24px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

/* メンバー・楽曲の基本情報。PCは3列、スマホは2列で、長い項目は全幅。 */
.sg-detail-card .sg-basic-info {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 16px;
  margin: 12px 0 16px;
  padding: 6px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.sg-basic-info > div {
  display: grid;
  grid-column: span 2;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  padding: 6px 0;
}
.sg-basic-info > .sg-info-double { grid-column: span 4; }
.sg-basic-info > .sg-info-half { grid-column: span 3; }
.sg-basic-info > .sg-info-wide { grid-column: 1 / -1; }
.sg-basic-info > .sg-info-labeled { grid-template-columns: 88px minmax(0, 1fr); }
.sg-basic-info dt {
  margin: 0;
  color: #666;
  font-size: 12px;
  font-weight: 400;
}
.sg-basic-info dd {
  min-width: 0;
  margin: 0;
  color: #333;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.member-basic-info .member-stick-item { display: inline-flex; align-items: center; gap: 6px; }
.member-basic-info .color-chip { flex-shrink: 0; }
.member-basic-info .member-info-divider { border-top: 1px solid #eee; margin-top: 4px; }
@media (max-width: 768px) {
  .gradation-card.sg-detail-card { padding: 16px; }
  .sg-detail-card .sg-basic-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    padding: 5px 10px;
    font-size: 13px;
  }
  .sg-basic-info > div,
  .sg-basic-info > .sg-info-half { grid-column: span 1; }
  .sg-basic-info > .sg-info-wide,
  .sg-basic-info > .sg-info-double,
  .sg-basic-info > .sg-info-mobile-wide { grid-column: 1 / -1; }
  .sg-basic-info > .sg-info-labeled { grid-template-columns: 72px minmax(0, 1fr); }
  .member-basic-info .member-info-nickname { order: -1; }
  .member-basic-info > .sg-info-half,
  .member-basic-info > .member-info-graduation-release { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .member-basic-info > .member-info-stick { grid-template-columns: minmax(0, 1fr); row-gap: 3px; }
}




/* タイトル */
.title-common {
  text-align: center;
  margin-bottom: 5px;
}
.title-sub-common {
  text-align: center;
  color: #888;
  margin-bottom: 10px;
}


/* テーブル共通 */
table {
  width: 100%;
  border-collapse: collapse;
}

.table-common {
  margin-bottom: 10px;
}
.table-common th {
  text-align: center;
  width: 80px;
  background: #f7f7f7;
  color: var(--main-text-color, var(--main-color));
  font-weight: 600;
}
.table-common th,
.table-common td {
  border: 0.5px solid #cad2e0 !important;
  padding: 5px 10px;
}
@media (max-width: 767px) {
  .table-common th {
    width: 50px;
    padding: 3px;
  }
  .table-common td {
    padding: 3px;
  }
.table-common {
  border-collapse: collapse;
}

.table-common th,
.table-common td {
  border: 1px solid #cad2e0 !important;
}


/* 横方向の重なり防止 */
.table-common th + th,
.table-common th + td,
.table-common td + td {
  border-left: none;
}

/* 縦方向の重なり防止 */
.table-common tr + tr th,
.table-common tr + tr td {
  border-top: none;
}
}
/* セットリストテーブル共通 */
.table-common.setlist-table th:nth-child(1),
.table-common.setlist-table td:nth-child(1) {
  width: 13%;
}
.table-common.setlist-table td:nth-child(1) {
  text-align: center;
  font-weight: 700;
  color: #666;
  white-space: nowrap;
}
/* ライブリストテーブル共通 */
.table-common.live-list-table th:nth-child(1),
.table-common.live-list-table td:nth-child(1){
  width:7%;
  text-align:center;
}
.table-common.live-list-table th:nth-child(2),
.table-common.live-list-table td:nth-child(2){
  width:70%;
}
.table-common.live-list-table th:nth-child(3),
.table-common.live-list-table td:nth-child(3){
  width:23%;
}




/* YouTube */
.video-wrap {
  position: relative;
  display: inline-block;
}
.youtube-thumb {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.play-icon {  /* 赤い再生ボタン */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 45px;
  background: #ff0000; 
  border-radius: 12px;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.play-icon::after {  /* 白い三角 */
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.video-wrap:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}
@media (max-width: 767px) {
  .play-icon {
    width: 40px;
    height: 28px;
  }
  .play-icon::after {
    left: 16px;
    top: 8px;
    border-left: 10px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
}

/* 全開閉ボタン */
.toggle-all {
  font-weight: bold;
  padding: 2px 8px;
  margin-right:10px;
  font-size: 14px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
}
.toggle-all:hover {
  background: #eee;
}
/* ソートラジオボタン */
.sort-all {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 16px; 
}
.sort-all label {
  margin-right: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-all input[type="radio"] {
  transform: scale(1.7);
  cursor: pointer;
}
.sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 767px) {
  .sort-all {
    flex-direction: column;
    align-items: flex-end; 
    gap: 6px;
  }
  .toggle-row {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 10px;
  }
  .sort-row-radio {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}



/* 前後ボタン */
.frontback-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
}
.nav-button {
  margin-bottom: 5px;
  flex: 1;
}
.nav-button-right {
  text-align: right;
}
.nav-button button {
  background: #f3f3f3;
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 6px;
}
.nav-button button:hover {
  background: #e9e9e9;
}
.nav-link {
  display: inline-flex; 
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #fff;
  border: 2px solid;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  max-width: 300px;
}
@media (max-width: 767px) {
  .nav-link {
    max-width: 120px;
  }
}
.nav-link .label { /* 曲名だけ省略 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-link .arrow { /* 矢印は消さない */
  flex-shrink: 0;
}
.nav-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}
.back-link {
  display: inline-block;
  padding: 5px 10px;
  background: #fff;
  border: 2px solid;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}
.back-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* 詳細画面の新しい前後ナビ：item_labelを指定した画面だけに適用 */
.frontback-nav.sg-detail-navigation {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.sg-detail-navigation > .nav-button {
  min-width: 0;
}
.sg-detail-navigation > .nav-button:nth-child(2) {
  text-align: center;
}
.sg-detail-navigation .nav-link,
.sg-detail-navigation .back-link {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  font-size: inherit;
  line-height: inherit;
  vertical-align: top;
}
.sg-detail-navigation .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.sg-detail-navigation .sg-detail-navigation__direction {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sg-detail-navigation .nav-button-right .sg-detail-navigation__direction {
  justify-content: flex-end;
}
.sg-detail-navigation--bottom .nav-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  border-radius: 10px;
}
/* 案内＋名称1行の基本高：2行×1.5em＋行間4px＋上下padding12px＋枠4px */
.sg-detail-navigation--bottom .back-link {
  min-height: calc(3em + 20px);
  border-radius: 10px;
}
.sg-detail-navigation .nav-link .sg-detail-navigation__name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  font-weight: 400;
}
.sg-detail-navigation .nav-link:focus-visible,
.sg-detail-navigation .back-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .frontback-nav.sg-detail-navigation {
    column-gap: 4px;
    font-size: 12px;
  }
  .sg-detail-navigation .nav-link,
  .sg-detail-navigation .back-link {
    padding-right: 6px;
    padding-left: 6px;
  }
}
