/*************************************************
 * OIKAZE+ schedule PLUS — Focus: Time & Sokuhime
 * 目的：出勤時間と即姫を最優先で視認させる
 *************************************************/

/* ------------------------------
   ベース：間延びしないカード
------------------------------ */
.am-cast-image {
  position: relative;    /* ← Xアイコンの絶対配置の基準 */
  overflow: hidden;
  /* 必要に応じて縦横比を統一する場合は下行を有効化
  aspect-ratio: 3 / 4;
  */
}
.am-cast-image img { 
  width: 100%; 
  display: block; 
  /* 縦横比を揃える場合は下2行も有効化
  height: 100%;
  object-fit: cover;
  */
}
.am-cast-name { 
  margin: 8px 0 2px; 
  font-weight: 800; 
  font-size: 1rem; 
  text-align: center; 
  letter-spacing: .02em; 
}
.oz-profile { 
  margin: 0 auto 4px; 
  text-align: center; 
  font-size: .85rem; 
  opacity: .9; 
}

/* 本文行のベースを縦積み＆ギャップ最小に */
.am-cast-body { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

/* ------------------------------
   1) 出勤時間：主役（大きく/読みやすく）
------------------------------ */
.oz-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;          /* 本文より大きく */
  font-weight: 800;            /* 強い太字で主役に */
  letter-spacing: .01em;
  padding: 8px 10px;
  /*border-radius: 12px;*/
  /*background: #f8fafc;*/
  /*border: 1px solid #e5e7eb;*/
}

/* 時間アイコン（Font Awesome or fomesowneクラス） */
.oz-time .fomesowne,
.oz-time .fa-clock {
  font-size: 15px;
  opacity: .9;
}

/* ルームバッジは控えめに右端へ */
.oz-time .oz-room {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  color: #fff;
}

/* 休み（time_o）は存在感を落とす */
.oz-time.is-off {
  background: #f3f4f6;
  color: #6b7280;
  border-style: dashed;
  font-weight: 700;
}

/* ------------------------------
   スマホ対応
------------------------------ */
@media (max-width: 750px){
  .oz-time {
    font-size: 0.82rem;
    padding: 6px 8px;      /* 内側余白も縮小 */
    gap: 6px;
  }

  .oz-time .fomesowne,
  .oz-time .fa-clock {
    font-size: 13px;       /* アイコンも縮小 */
  }

  .oz-time .oz-room {
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.72rem;    /* バッジも縮小 */
  }
}

/* ------------------------------
   2) 即姫：帯（タイト/詰め/色で状態を示す）
------------------------------ */
.oz-sokuhime-band{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左寄せで詰める */
  column-gap: 10px;
  padding: 6px 10px;           /* 余白タイト */
  /*border-radius: 10px;*/
  background: linear-gradient(90deg, #f1f5f9 0%, #eef2ff 100%);
  /*border: 1px solid rgba(0,0,0,.06);*/
  line-height: 1.3;
}

/* 左側：アイコン＋ラベル（詰め） */
.oz-sokuhime-band__main{
  display: inline-flex;
  align-items: center;
  column-gap: 6px; /* ラベルとの距離最小 */
  font-weight: 800;
  letter-spacing: .01em;
}

/* fomesowne アイコン（Font AwesomeでもOK） */
.oz-sokuhime__icon.fomesowne,
.oz-sokuhime-band__main .fa-clock {
  font-size: 14px;
  margin-right: 2px;
  vertical-align: middle;
  color: currentColor; /* 状態色に追従 */
}

/* ラベル（pill）— 高さを詰める */
.oz-sokuhime__label{
  display: inline-block;
  padding: 2px 6px;            /* タイト */
  /*border-radius: 999px;*/
  font-size: .78rem;
  line-height: 1;              /* pill高を低く */
  /*background: #e5e7eb; */
}

/* 右側：次可時間・メモ（行間詰め） */
.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; }

/* ------------------------------
   3) Xアイコン（画像内右下／小さな四角）
------------------------------ */
.am-cast-icon {
  position: absolute;
  bottom: 16px;   /* ← 下からの余白を広げる */
  right: 16px;    /* ← 右からの余白を広げる */
  width: 24px;
  height: 24px;
  z-index: 3;
  display: inline-block;
  pointer-events: auto;
}

.am-cast-icon a {
  display: block;
  width: 100%;
  height: 100%;
}

.am-cast-icon img {
  display: block;
  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;
}

.am-cast-icon img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ------------------------------
   スマホ最適化
------------------------------ */
@media (max-width: 750px){
  .am-cast-icon {
    bottom: 12px;   /* モバイルも広げる */
    right: 12px;
    width: 20px;
    height: 20px;
  }
  .am-cast-icon img {
    padding: 2px;
  }
}

/* ------------------------------
   レスポンシブ：スマホで視力距離に最適化
------------------------------ */
@media (max-width: 750px){
  .am-cast-name { font-size: 1.02rem; margin-top: 6px; }
  .oz-profile   { font-size: .84rem; }
  /*.oz-time      { font-size: 1.02rem; padding: 7px 9px; }*/
  .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; }

  /* Xアイコンはpx指定のまま（％にしない） */
/*  .am-cast-icon { bottom: 3px; right: 3px; width: 16px; height: 16px; }
  .am-cast-icon img { padding: 1px; }*/
}

/* ------------------------------
   ユーティリティ（必要に応じて）
------------------------------ */
.ozsp .muted { opacity: .6; }

/* ------------------------------
   各カードアイテムの余白
------------------------------ */
.am-cast-item {
  margin-bottom: 20px;   /* ★ 縦の余白を追加（カード同士の間隔） */
  list-style: none;
}

