/* ===== ゆるうぃーど 共通スタイル ===== */
:root {
  --yw-pink:   #ff6b9d;
  --yw-yellow: #ffe066;
  --yw-ink:    #1a1a2e;
  --yw-paper:  #fffdf7;
}

body { background: var(--yw-paper); }

/* パンくず */
.yw-breadcrumb {
  padding: 90px 20px 0;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #888;
}
.yw-breadcrumb a {
  color: var(--yw-pink);
  text-decoration: none;
  font-weight: 700;
}
.yw-breadcrumb a:hover { text-decoration: underline; }
.yw-breadcrumb .fa-chevron-right { font-size: 0.6rem; }

/* ビューア */
.yw-viewer {
  max-width: 520px;
  margin: 24px auto 60px;
  padding: 0 16px;
}

/* エピソードヘッダ */
.yw-ep-header {
  text-align: center;
  margin-bottom: 20px;
}
.yw-ep-header__num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  color: var(--yw-pink);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 6px;
}
.yw-ep-header__title {
  font-family: 'Yomogi', 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--yw-ink);
  -webkit-text-stroke: 1.5px var(--yw-ink);
  line-height: 1.2;
}
.yw-ep-header__date {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 6px;
}

/* 4コマ本体 */
.yw-manga-frame {
  background: #fff;
  border: 3px solid var(--yw-ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--yw-ink);
  overflow: hidden;
}
.yw-manga-frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* 前後ナビ */
.yw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.yw-nav__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  background: #fff;
  border: 2.5px solid var(--yw-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--yw-ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--yw-ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
  line-height: 1.3;
}
.yw-nav__btn:hover {
  background: var(--yw-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yw-ink);
}
.yw-nav__btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}
.yw-nav__list {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yw-pink);
  color: #fff;
  border: 2.5px solid var(--yw-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--yw-ink);
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.yw-nav__list:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yw-ink);
}

/* ライトボックス */
.yw-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.yw-lightbox.is-open { display: flex; }
.yw-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}
.yw-lightbox__close {
  position: fixed;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yw-lightbox__close:hover { background: rgba(255,255,255,0.3); }
