/*************************************************
 * OIKAZE+ schedule PLUS — Focus: Time & Sokuhime
 * 出勤時間と即姫を最優先で視認させるレイアウト
 *************************************************/

/* ====================================
   キャストリスト全体：カラム制御用
==================================== */
.ozsp .oz-cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 共通：横幅は --cast_num に応じて分割 */
.ozsp.ozsp-card .oz-cast-item,
.ozsp.ozsp-default .oz-cast-item {
  width: calc((100% / var(--cast_num)) - 7px);
  list-style: none;
}

.ozsp .oz-cast-item {
  width: calc(100% / var(--cast_num) - 10px);
  box-sizing: border-box;
}

/* ===============================
   カード型：角丸・影あり
=============================== */
.ozsp.ozsp-card .oz-cast-item {
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #eee;
}

.ozsp.ozsp-card .oz-cast-body,
.ozsp.ozsp-card .oz-cast-name,
.ozsp.ozsp-card .oz-profile {
  padding-left: 12px;
  padding-right: 12px;
}
.ozsp.ozsp-card .oz-cast-body {
  padding-bottom: 12px;
}
/* ===============================
   デフォルト型：角丸なし・影なし
=============================== */
.ozsp.ozsp-default .oz-cast-item {
  background: transparent;
  padding: 12px 0;
  border-radius: 0;
  box-shadow: none;
}

/* ===============================
   スマホ：2列に自動調整
=============================== */
@media (max-width: 768px) {
  .ozsp .oz-cast-item {
    width: calc(50% - 10px) !important;
  }
}

/* ===============================
   画像エリア
=============================== */
.oz-cast-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;  /* ← 縦長に固定（ブラウザ対応済） */
}
.oz-cast-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /*border-radius: 8px;*/
}

/* ===============================
   名前とプロフィール
=============================== */
.oz-cast-name {
  margin: 8px 0 2px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  letter-spacing: .02em;
  padding: 8px 10px 8px;
}
.oz-profile {
  margin: 0 auto 4px;
  text-align: center;
  font-size: .85rem;
  opacity: .9;
}

/* ===============================
   本文（時間・帯など）
=============================== */
.oz-cast-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 8px;
}
.oz-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
  /*padding: 8px 10px;*/
}
.oz-time .oz-room {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  color: #fff;
}
.oz-time.is-off {
  background: #f3f4f6;
  color: #6b7280;
  border-style: dashed;
  font-weight: 700;
}
.oz-time.text-center {
  justify-content: center;
}

/* ===============================
   即姫帯（ラベル付き）
=============================== */
.oz-sokuhime-band {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #f1f5f9 0%, #eef2ff 100%);
  line-height: 1.3;
}
.oz-sokuhime-band__main {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  font-weight: 800;
  letter-spacing: .01em;
}
.oz-sokuhime__icon.fomesowne,
.oz-sokuhime-band__main .fa-clock {
  font-size: 14px;
  margin-right: 2px;
  vertical-align: middle;
  color: currentColor;
}
.oz-sokuhime__label {
  display: inline-block;
  padding: 2px 6px;
  font-size: .78rem;
  line-height: 1;
}
.oz-sokuhime-band__sub {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  font-size: .82rem;
  opacity: .92;
  margin-left: 12px;
}
.oz-sokuhime__next {
  white-space: nowrap;
}

/* ===============================
   Xアイコン（右下）
=============================== */
.oz-cast-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  z-index: 3;
  display: inline-block;
  pointer-events: auto;
}
.oz-cast-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(17,17,17,.92);
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
}
.oz-cast-icon img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ===============================
   モバイル最適化
=============================== */
@media (max-width: 750px) {
  .oz-cast-name { font-size: 1.02rem; margin-top: 6px; }
  .oz-profile { font-size: .84rem; }
  .oz-time { font-size: 0.82rem; padding: 6px 8px; gap: 6px; }
  .oz-time .oz-room { margin-left: 6px; padding: 2px 6px; font-size: 0.72rem; }
  .oz-sokuhime-band { padding: 6px 9px; column-gap: 8px; }
  .oz-sokuhime__label { font-size: .76rem; padding: 2px 6px; }
  .oz-sokuhime-band__sub { font-size: .8rem; column-gap: 6px; margin-left: 10px; }
  .oz-cast-icon { bottom: 12px; right: 12px; width: 20px; height: 20px; }
  .oz-cast-icon img { padding: 2px; }
}

/* ===============================
   ユーティリティ
=============================== */
.ozsp .muted { opacity: .6; }





/* ===============================
   テキスト整列共通（上書き対応）
=============================== */
.text-center {
  text-align: center !important;
  justify-content: center !important;  /* flex対応要素向け */
  margin-left: auto;
  margin-right: auto;
}

.text-left {
  text-align: left !important;
  justify-content: flex-start !important; /* flex対応要素向け */
  margin-left: 0;
  margin-right: auto;
}

/* ===============================
   名前・プロフィール・時間・本文 各色反映
=============================== */
.oz-cast-name span{
  /*color: var(--oz-name-color, #007AFF);*/
  color: var(--oz-name-color, #333);
}
.oz-profile {
  color: var(--oz-profile-color, #333);
}
.oz-time {
  color: var(--oz-time-color, #333);
}
.oz-cast-body {
  color: var(--oz-body-color, inherit);
}