/* ===== スケジュール カード型リスト ===== */

.ug-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- 今日のイベント ---- */
.ug-today {
  margin-bottom: 1.5rem;
  background: #fffbf0;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  border: 1px solid #ffe8a0;
}
.ug-today__header {
  font-size: 1.35rem !important;
  font-weight: bold;
  color: #b87800;
  margin: 0 0 0.8rem;
}
.ug-today__list {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.ug-today__card {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}
.ug-today__card[href]:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
  color: inherit;
}
.ug-today__sub {
  font-size: 1.2rem !important;
  color: #999;
  margin: 0.4rem 0 0.2rem;
}
.ug-today__title {
  font-size: 1.35rem !important;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- ナビゲーション ---- */
.ug-sc__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.ug-sc__nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.ug-sc__nav-btn:hover { background: #f5f5f5; }

.ug-sc__nav-center {
  position: relative;
}

.ug-sc__nav-label {
  font-size: 2.2rem !important;
  font-weight: bold;
  min-width: 9rem;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.ug-sc__nav-label:hover { background: #f0f0f0; }
.ug-sc__nav-arrow { font-size: 0.9rem; opacity: 0.5; }

/* ---- 月ピッカー ---- */
.ug-sc__picker {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 1rem;
  z-index: 100;
  min-width: 260px;
}
.ug-sc__picker[hidden] { display: none; }

.ug-sc__picker-years {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.ug-sc__picker-year {
  background: #f0f0f0;
  border: none;
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 1.35rem !important;
  cursor: pointer;
  transition: background 0.15s;
}
.ug-sc__picker-year:hover { background: #e0e0e0; }
.ug-sc__picker-year--active {
  background: #7ec8e3;
  color: #fff;
  font-weight: bold;
}

.ug-sc__picker-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.ug-sc__picker-month {
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 0;
  font-size: 1.35rem !important;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.ug-sc__picker-month:hover:not(:disabled) { background: #e3f4fb; }
.ug-sc__picker-month--active {
  background: #7ec8e3;
  color: #fff;
  font-weight: bold;
}
.ug-sc__picker-month--empty,
.ug-sc__picker-month:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---- スライドアニメーション ---- */
@keyframes ug-slide-in-next {
  from { transform: translateX(48px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes ug-slide-in-prev {
  from { transform: translateX(-48px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.ug-sc__list[data-dir="next"] { animation: ug-slide-in-next 0.28s ease; }
.ug-sc__list[data-dir="prev"] { animation: ug-slide-in-prev 0.28s ease; }

/* ---- カード一覧（PC:3列 / スマホ:2列） ---- */
.ug-sc__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .ug-sc__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

.ug-sc__empty {
  text-align: center;
  color: #bbb;
  padding: 3rem 0;
  font-size: 1rem;
}

/* ---- カード ---- */
.ug-sc__card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.ug-sc__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  color: inherit;
}

/* 種別カラー（左ボーダー） */
.ug-sc__card--event   { border-left: 5px solid #7ec8e3; }
.ug-sc__card--goods   { border-left: 5px solid #f9a8c9; }
.ug-sc__card--prize   { border-left: 5px solid #c39bd3; }
.ug-sc__card--capsule { border-left: 5px solid #82c99a; }
.ug-sc__card--other   { border-left: 5px solid #ffc98b; }

/* ---- 画像エリア ---- */
.ug-sc__card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

/* ステータスバッジ（画像右上） */
.ug-sc__status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.35rem !important;
  font-weight: bold;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  color: #fff;
  line-height: 1.4;
}
.ug-sc__status--開催中   { background: #3db97a; }
.ug-sc__status--開催予定 { background: #7ec8e3; }
.ug-sc__status--発売予定 { background: #f9a8c9; }
.ug-sc__status--終了,
.ug-sc__status--発売済み { background: #aaa; }
.ug-sc__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ug-sc__card-img-placeholder {
  width: 100%;
  height: 100%;
}

/* プレースホルダーを種別カラーのグラデに */
.ug-sc__card--event   .ug-sc__card-img-placeholder { background: linear-gradient(135deg, #e3f4fb, #b8e4f5); }
.ug-sc__card--goods   .ug-sc__card-img-placeholder { background: linear-gradient(135deg, #fde8f1, #fbb8d5); }
.ug-sc__card--prize   .ug-sc__card-img-placeholder { background: linear-gradient(135deg, #f5eef8, #d7bde2); }
.ug-sc__card--capsule .ug-sc__card-img-placeholder { background: linear-gradient(135deg, #eafaf1, #b8e8c8); }
.ug-sc__card--other   .ug-sc__card-img-placeholder { background: linear-gradient(135deg, #fff1e0, #ffd9a0); }

/* ---- テキストエリア ---- */
.ug-sc__card-body {
  padding: 1rem 1.2rem 1.2rem;
}

/* 種別ラベル */
.ug-sc__card-label {
  display: inline-block;
  font-size: 1.35rem !important;
  font-weight: bold;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  margin-right: 0.4rem;
  vertical-align: middle;
  color: #fff;
}
.ug-sc__card--event   .ug-sc__card-label { background: #7ec8e3; }
.ug-sc__card--goods   .ug-sc__card-label { background: #f9a8c9; }
.ug-sc__card--prize   .ug-sc__card-label { background: #c39bd3; }
.ug-sc__card--capsule .ug-sc__card-label { background: #82c99a; }
.ug-sc__card--other   .ug-sc__card-label { background: #ffc98b; }

.ug-sc__card-dates {
  font-size: 1.5rem !important;
  font-weight: bold;
  margin: 0 0 0.4rem;
}
.ug-sc__card--event   .ug-sc__card-dates { color: #4ab5d8; }
.ug-sc__card--goods   .ug-sc__card-dates { color: #e87aaa; }
.ug-sc__card--prize   .ug-sc__card-dates { color: #9b59b6; }
.ug-sc__card--capsule .ug-sc__card-dates { color: #3da367; }
.ug-sc__card--other   .ug-sc__card-dates { color: #e09040; }

.ug-sc__card-title {
  font-size: 1.85rem !important;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 0.8rem;
  color: #222;
}

/* ---- 終了済み（グレー） ---- */
.ug-sc__card--past {
  border-left-color: #ccc;
  opacity: 0.65;
}
.ug-sc__card--past .ug-sc__card-img-placeholder { background: #e8e8e8; }
.ug-sc__card--past .ug-sc__card-label  { background: #aaa; }
.ug-sc__card--past .ug-sc__card-dates  { color: #999; }
.ug-sc__card--past .ug-sc__card-btn    { background: #aaa; }
