/*============================
  スケジュール全体背景タイル
============================*/
#schedule-list-section {
  padding: 10px;
  margin: 15px auto;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  max-width: 1300px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/*============================
  日付ボタンラッパー（SP横スクロール）
============================*/
.schedule-button-group {
  margin-bottom: 30px;
}

/* 中のボタン群 */
.scroll-inner {
  display: flex;
  gap: 10px;
}

/* PCでは中央寄せ + 折り返しなし */
@media screen and (min-width: 769px) {
  .scroll-inner {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

/* SPでは左寄せスクロール */
@media screen and (max-width: 768px) {
  .scroll-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-left: 12px;
  }
  .schedule-btn {
    scroll-snap-align: start;
  }
}

/* ボタン共通 */
.schedule-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-btn.active {
  background: #4296e4;
  color: #fff;
  border-color: #4296e4;
}

.schedule-btn .today-label {
  font-weight: bold;
  font-size: 12px;
  background: #4296e4;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 4px;
}

/*============================
  出勤カード表示（グリッド風）
============================*/
.today-boy-list {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  justify-content: flex-start;
}

.today-boy-item {
  padding: 10px;
  box-sizing: border-box;
  flex: 0 0 20%;
}

.today-boy-panel {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* カード画像とオーバーレイ */
/* ===== 画像カード：高さをpaddingで固定 ===== */
.img-wrap {
  position: relative;
  width: 100%;
  padding-top: 133.333%; /* = 4:3 縦横比（高さ/幅 × 100） */
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ===== カード画像：親の中で絶対位置にフィット ===== */
.img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.today-boy-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  padding: 6px 4px;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.today-boy-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #222;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/*============================
  レスポンシブ調整
============================*/
@media screen and (max-width: 1024px) {
  .today-boy-item {
    flex: 0 0 25%;
  }
}

@media screen and (max-width: 768px) {
  .today-boy-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }

  .today-boy-item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 10px;
    box-sizing: border-box;
  }

  .today-boy-overlay {
    font-size: 11px;
    padding: 5px;
  }

  .today-boy-name {
    font-size: 12px;
  }
}

/* 外枠（PC用中央寄せの基点） */
.scroll-outer {
  width: 100%;
}

/* 中身（ボタン群） */
.scroll-inner {
  display: flex;
  gap: 10px;
  padding: 15px 12px;
  flex-wrap: nowrap;
}

/* スマホは横スクロール可能 */
@media screen and (max-width: 768px) {
  .scroll-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scroll-inner {
    min-width: max-content;
    scroll-snap-type: x mandatory;
  }

  .schedule-btn {
    scroll-snap-align: start;
  }
}

/* PCは中央寄せ */
@media screen and (min-width: 769px) {
  .scroll-outer {
    display: flex;
    justify-content: center;
  }
}


.schedule-button-group {
  margin: 30px auto 30px;
  max-width: 1300px;
  padding: 0 10px;
}




.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
  display: flex;
  align-items: stretch; /* 高さを揃える */
}