/* === v8a story format — テキストサイト風 === */
.ds-story-section{background:#fff;padding:0}
.ds-story-tabs{max-width:900px;margin:0 auto;padding:32px 16px 48px}
.ds-story-tab-bar{display:flex;gap:6px;margin-bottom:32px;justify-content:center;flex-wrap:wrap}
.ds-story-tab{
  padding:10px 20px;border:2px solid var(--blk,#1a1a1a);background:transparent;
  color:var(--blk,#1a1a1a);font-size:13px;font-weight:700;cursor:pointer;
  border-radius:6px;transition:all .2s;min-width:180px;text-align:center;
  font-family:inherit;line-height:1.4
}
.ds-story-tab:hover{background:var(--blk,#1a1a1a);color:#fff}
.ds-story-tab--active{background:var(--blk,#1a1a1a);color:#fff}

/* Cast cards */
.ds-cast{margin-bottom:36px;padding:24px;background:#fafaf8;border-radius:10px;border:1px solid #eee}
.ds-cast__title{font-size:14px;font-weight:700;color:#888;text-align:center;margin:0 0 20px;letter-spacing:.1em;text-transform:uppercase}
.ds-cast__grid{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.ds-cast__card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:8px;padding:12px 16px;min-width:240px;flex:1;max-width:380px;border:1px solid #eee}
.ds-cast__avatar{width:52px;height:52px;min-width:52px;border-radius:50%;background-size:cover;background-position:center;border:2px solid #eee}
.ds-cast__info{flex:1}
.ds-cast__name{font-size:14px;font-weight:700;color:var(--blk,#1a1a1a);margin-bottom:2px}
.ds-cast__desc{font-size:11px;color:#888;line-height:1.5}

/* Scene heading */
.ds-story-scene{margin:32px 0 16px;text-align:center}
.ds-story-scene__title{
  font-size:16px;font-weight:700;color:var(--blk,#1a1a1a);
  padding:8px 20px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;
  display:inline-block;letter-spacing:.04em
}

/* Stage direction */
.ds-story-stage{text-align:center;font-style:italic;color:#aaa;margin:12px 0;font-size:14px}

/* V8: Dialogue — 全左揃え、キャラごとに色分け */
.ds-story-section .ds-dialogue{
  margin-bottom:10px;
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.ds-story-section .ds-dialogue__avatar{
  width:44px;height:44px;min-width:44px;border-radius:50%;
  background-size:cover;background-position:center;margin-top:4px;
}
.ds-story-section .ds-dialogue__bubble{
  font-size:17px;line-height:1.85;padding:14px 20px;
  border-radius:10px;position:relative;flex:1;
  border-left:4px solid #ddd;
}
.ds-story-section .ds-dialogue__name{
  font-weight:800;display:block;margin-bottom:4px;font-size:13px;
  letter-spacing:.08em;
}

/* V8: Aside → 黒太字 */
.ds-story-aside{display:block;color:#000;font-size:15px;font-weight:700;font-style:normal;margin-top:4px}

/* V8: セリフ内太字 */
.ds-story-section .ds-dialogue__bubble b{font-weight:900;color:#000;font-size:18px}

/* Zoom通知 — V8: センタリング+文言変更対応 */
.ds-chatui{margin:16px auto;border:1px solid #d4d4c8;border-radius:8px;overflow:hidden;max-width:500px;text-align:center}
.ds-chatui__header{background:#364e65;padding:6px 12px;display:flex;align-items:center;gap:8px;justify-content:center}
.ds-chatui__logo{color:#fff;font-weight:700;font-size:11px;background:#2c8c5c;padding:2px 6px;border-radius:3px}
.ds-chatui__room{color:#ccc;font-size:12px}
.ds-chatui__msg{padding:12px 14px;background:#fff}
.ds-chatui__meta{display:flex;align-items:center;gap:8px;margin-bottom:6px;justify-content:center}
.ds-chatui__sender-icon{width:28px;height:28px;border-radius:50%;background-size:cover;background-position:center}
.ds-chatui__sender{font-size:12px;font-weight:700;color:#333}
.ds-chatui__time{font-size:10px;color:#aaa}
.ds-chatui__text{font-size:14px;line-height:1.6;color:#333}
.ds-chatui__subject{font-size:12px;font-weight:700;color:#364e65;margin-bottom:4px}

/* Manuscript viewer */
.ds-manuscript{margin:20px 0;border:1px solid #ddd;border-radius:8px;overflow:hidden;position:relative}
.ds-manuscript__bar{background:#f0f0ee;padding:6px 12px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #ddd}
.ds-manuscript__dot{width:10px;height:10px;border-radius:50%}
.ds-manuscript__dot--red{background:#ff5f57}
.ds-manuscript__dot--yellow{background:#febc2e}
.ds-manuscript__dot--green{background:#28c840}
.ds-manuscript__filename{font-size:12px;color:#666;margin-left:8px}
.ds-manuscript__scroll{max-height:280px;overflow-y:auto;padding:20px;font-size:14px;line-height:1.8;background:#fff}
.ds-manuscript__scroll::-webkit-scrollbar{width:6px}
.ds-manuscript__scroll::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}
.ds-manuscript__stamp{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-15deg);font-size:48px;font-weight:900;color:rgba(200,0,0,0.15);letter-spacing:.1em;pointer-events:none;white-space:nowrap}

/* Screen mockup */
.ds-screen{margin:16px 0;border:1px solid #ddd;border-radius:8px;overflow:hidden}
.ds-screen__bar{background:#f0f0ee;padding:6px 12px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #ddd}
.ds-screen__title{font-size:12px;color:#666;margin-left:8px}
.ds-screen__body{padding:12px;background:#fff;max-height:250px;overflow-y:auto}
.ds-screen-tabs{display:flex;gap:4px;margin-bottom:8px}
.ds-screen-tab{font-size:11px;padding:4px 10px;background:#e8e8e8;border-radius:4px 4px 0 0;color:#666}
.ds-screen-tab--active{background:#fff;border:1px solid #ddd;border-bottom:1px solid #fff}
.ds-screen-tab--highlight{background:#ffe0e0;color:#c00;font-weight:700}

/* Illustration slot */
.ds-story-illust{margin:24px auto;max-width:700px;text-align:center}
.ds-story-illust img{width:100%;height:auto;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.08)}

/* V8: アメコミヒーロー解説 */
.ds-comic-hero{margin:28px auto;max-width:600px;text-align:center;position:relative}
.ds-comic-hero img{width:100%;height:auto;border-radius:12px;border:3px solid #000;box-shadow:4px 4px 0 #000}
.ds-comic-hero__caption{
  display:block;margin-top:8px;font-size:12px;color:#888;font-style:italic
}

/* V8: ストーリー末尾セクション */
.ds-story-summary{
  margin:40px 0 20px;padding:28px;border:2px solid #1a1a1a;border-radius:12px;background:#fafaf8
}
.ds-story-summary__title{
  font-size:18px;font-weight:900;color:#1a1a1a;margin:0 0 16px;
  padding-bottom:8px;border-bottom:2px solid #1a1a1a;letter-spacing:.06em
}
.ds-story-summary__section{margin-bottom:20px}
.ds-story-summary__section:last-child{margin-bottom:0}
.ds-story-summary__heading{
  font-size:15px;font-weight:800;color:#c41e3a;margin:0 0 8px
}
.ds-story-summary__list{
  margin:0;padding:0 0 0 20px;font-size:15px;line-height:1.9;color:#333
}
.ds-story-summary__list li{margin-bottom:4px}

/* V8: フィクション注意書き */
.ds-story-disclaimer{
  margin:24px 0 0;padding:14px 20px;background:#f5f5f5;border-radius:8px;
  font-size:12px;color:#999;line-height:1.6;text-align:center
}

/* Responsive */
@media(max-width:600px){
  .ds-story-tab{min-width:0;flex:1;padding:8px 10px;font-size:11px}
  .ds-story-scene__title{font-size:14px}
  .ds-story-section .ds-dialogue__avatar{width:36px;height:36px;min-width:36px}
  .ds-story-section .ds-dialogue__bubble{font-size:15px;padding:10px 14px}
  .ds-story-section .ds-dialogue__name{font-size:12px}
  .ds-cast__card{min-width:0;flex:1 1 100%}
  .ds-cast__avatar{width:40px;height:40px;min-width:40px}
  .ds-chatui{max-width:100%}
  .ds-manuscript__stamp{font-size:32px}
  .ds-story-summary{padding:20px}
}
