/* --- Yoteiba Viewer v3.1 用 --- */
.yoteiba-viewer {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1em;
  position: relative;
  background: transparent;
  color: transparent;
  user-select: none;
  line-height: 0; /* Canvas下の隙間対策 */
}

.yoteiba-viewer canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 10px;
}

.yoteiba-viewer.is-error {
  color: red;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  background: #fff0f0;
  padding: 10px;
  border: 1px solid red;
  display: block;
}

/* ▼▼▼ ナビゲーションバー（小型化） ▼▼▼ */
.yoteiba-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; 
  margin-top: 5px;
  color: #aaa; 
  font-family: system-ui, sans-serif;
  line-height: 1.5; 
}

.yoteiba-viewer-nav button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px; 
  font-size: 11px;  
  font-weight: bold;
  color: inherit;
  transition: background 0.2s;
}

.yoteiba-viewer-nav button:hover {
  background: rgba(0,0,0,0.05);
}

.yoteiba-viewer-nav span {
  font-size: 12px; 
  font-weight: bold;
  min-width: 7em;
  text-align: center;
  color: inherit;
}

.yoteiba-viewer-footer {
  text-align: right;
  line-height: 1.2;
}

.yoteiba-viewer-footer a {
  font-family: sans-serif;
  padding:3px;
  margin:0;
  font-size: 10px; 
  color: #333;     
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.yoteiba-viewer-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================
   Yoteiba List View Styles
   ========================================= */

/* リスト全体のコンテナ */
.yoteiba-list-view {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--yoteiba-fg, #fff); /* JSから渡される色を使用 */
    color: var(--yoteiba-fg, #fff);
    font-family: system-ui, -apple-system, sans-serif;
}

/* 1行（日付 + イベント） */
.yoteiba-list-row {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--yoteiba-border-weak, rgba(255,255,255,0.3));
}

/* 左側：日付カラム */
.yoteiba-list-date {
    flex: 0 0 60px; /* 幅固定 */
    text-align: center;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2px;
}

/* 日付の数字 */
.yoteiba-list-date-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

/* 曜日 */
.yoteiba-list-date-day {
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* 右側：イベント内容カラム */
.yoteiba-list-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* イベント同士の間隔 */
    min-width: 0;
}

/* 個別のイベントブロック */
.yoteiba-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ラベル（バッジ） */
.yoteiba-list-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1;
    /* 背景色と文字色はJSから動的に設定されます */
}

/* 本文エリア */
.yoteiba-list-text {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* アイコン */
.yoteiba-list-icon {
    display: inline-block;
    margin-right: 0.3em;
    font-size: 1.2em;
    vertical-align: -2px;
}

/* 本文内のタイトル（1行目） */
.yoteiba-list-title {
    font-weight: bold;
    display: inline;
}

/* 本文内の詳細（2行目以降） */
.yoteiba-list-detail {
    font-size: 0.9em;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}

/* 同一日内の区切り線 */
.yoteiba-list-separator {
    border: none;
    border-top: 1px dashed var(--yoteiba-border-weak, rgba(255,255,255,0.3));
    margin: 0;
    width: 100%;
}