/* 各画面共通のリスト・カード・タブ・チップスタイル */

/* タブレイアウト（fragment_home の TabLayout: 48dp, indicator=accent） */
.tab-bar {
  height: 48px;
  background: var(--bg_1);
  display: flex;
  border-bottom: 1px solid var(--Divider_default);
  position: sticky;
  top: 56px;
  z-index: 9;
}
.tab-bar__item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--main_text);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.tab-bar__item.is-active {
  color: var(--accent);
  font-weight: 700;
}
.tab-bar__item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* 検索バー (fragment_home_search) */
.search-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px;
  background: var(--bg_1);
  border-bottom: 1px solid var(--Divider_default);
}
.search-toolbar__back {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--main_text);
  cursor: pointer;
}
.search-toolbar__back svg { width: 24px; height: 24px; fill: currentColor; }
.search-toolbar__input {
  flex: 1;
  height: 30px;
  border-radius: 15px;
  padding: 0 12px;
  border: 1px solid var(--Divider_default);
  font-size: 15px;
  background: var(--Bg_6);
  color: var(--main_text);
  outline: none;
}
.search-toolbar__input::placeholder { color: var(--Txt_Detail); }

/* 記事カード（ホーム / 検索結果） */
.article-list { padding: 8px 0; }
.article-item {
  display: block;
  padding: 16px;
  border-bottom: 1px solid var(--Divider_default);
  color: var(--Txt_Title);
  text-decoration: none;
}
.article-item__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--Bg_5);
  overflow: hidden;
  margin-bottom: 12px;
}
.article-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-item__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--Tag_Bg_Artist);
  color: var(--Tag_Txt_On);
  margin-bottom: 6px;
}
.article-item__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--Txt_Title);
}
.article-item__meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--Txt_Detail);
}

/* アーティストグリッド (lineup) */
.artist-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}
.artist-tile {
  color: var(--Txt_Title);
  text-decoration: none;
  display: block;
}
.artist-tile__thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--Bg_5);
  position: relative;
}
.artist-tile__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-tile__name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--Txt_Title);
  font-weight: 500;
  text-align: center;
}

/* グッズグリッド (goods) */
.goods-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.goods-tile { color: var(--Txt_Title); text-decoration: none; display: block; }
.goods-tile__img {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--Bg_5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--Txt_Detail);
  font-size: 12px;
}
.goods-tile__img.placeholder { background: linear-gradient(135deg, #ececec 0%, #d0d0d0 100%); }
.goods-tile__name {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--Txt_Title);
}
.goods-tile__price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--Txt_Title);
}

/* リストアイテム (more, festival-change) */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--Divider_default);
  color: var(--Txt_Title);
  text-decoration: none;
  background: var(--bg_1);
  cursor: pointer;
}
.list-item__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--Txt_Regular);
}
.list-item__icon svg { width: 24px; height: 24px; fill: currentColor; }
.list-item__title {
  flex: 1;
  font-size: 15px;
  color: var(--Txt_Title);
}
.list-item__value {
  font-size: 13px;
  color: var(--Txt_Detail);
}
.list-item__chevron { color: var(--Txt_Detail); }
.list-item__chevron svg { width: 20px; height: 20px; fill: currentColor; }

/* セクションタイトル */
.section-title {
  padding: 20px 16px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--Txt_Title);
}

/* カルーセル */
.hero-carousel {
  padding: 12px 16px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  scroll-snap-type: x mandatory;
}
.hero-carousel__slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--Bg_5);
}
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Compose 実装画面のノート */
.compose-note {
  margin: 12px 16px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(229, 39, 62, 0.04);
  font-size: 11px;
  color: var(--Txt_Regular);
  line-height: 1.5;
  border-radius: 0 4px 4px 0;
}

/* Timetable / DJ プレースホルダ */
.tt-grid {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 1fr;
  border-top: 1px solid var(--Divider_default);
  border-left: 1px solid var(--Divider_default);
  margin: 0 8px;
  overflow: hidden;
  border-radius: 6px;
}
.tt-grid > * {
  border-bottom: 1px solid var(--Divider_default);
  border-right: 1px solid var(--Divider_default);
  padding: 8px 6px;
  font-size: 11px;
  min-height: 48px;
}
.tt-grid__head {
  background: var(--Bg_6);
  font-weight: 700;
  text-align: center;
  color: var(--Txt_SubTitle);
}
.tt-grid__time {
  background: var(--Bg_6);
  text-align: center;
  color: var(--Txt_Regular);
  font-family: "Roboto", -apple-system, sans-serif;
}
.tt-grid__slot {
  background: var(--bg_1);
  color: var(--main_text);
  line-height: 1.25;
}
.tt-grid__slot--fav {
  background: rgba(229, 39, 62, 0.08);
  border-left: 3px solid var(--accent);
}

/* マップコンテナ */
.map-area {
  height: calc(100svh - 56px - var(--space-bottom-padding));
  min-height: 400px;
  background: linear-gradient(135deg, #d9e6f5 0%, #b8d0e8 100%);
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -100%);
  color: var(--accent);
}
.map-pin svg { width: 32px; height: 32px; fill: currentColor; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }

/* 情報バナー (Bg_Info = #e6f2ff) */
.info-banner {
  margin: 12px 16px 0;
  background: var(--Bg_Info);
  color: var(--Navy_D);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

/* カート項目 */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--Divider_default);
  align-items: flex-start;
}
.cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: var(--Bg_5);
}
.cart-item__body { font-size: 13px; color: var(--Txt_Title); }
.cart-item__price { font-weight: 700; margin-top: 6px; color: var(--Txt_Title); }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.cart-item__qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--Divider_default);
  background: var(--bg_1);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.cart-item__qty span { min-width: 32px; text-align: center; font-size: 14px; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--Txt_Detail);
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
}

.cart-summary {
  padding: 16px;
  background: var(--Bg_6);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--Txt_Title);
}
.cart-summary__row.total {
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--Divider_default);
}
