/* Cookie banner (Short Story Break)
   - self-contained, works on index.html and story.html
*/

.ssbCookieBanner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(16,16,22,.92);
  color: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}

html[data-theme="light"] .ssbCookieBanner{
  background: rgba(255,255,255,.92);
  color: rgba(10,10,14,.92);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.ssbCookieBanner.show{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ssbCookieInner{
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
}

.ssbCookieTitle{
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 14px;
}

.ssbCookieText{
  font-size: 13px;
  line-height: 1.55;
  opacity: .92;
}

.ssbCookieActions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssbCookieBtn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
html[data-theme="light"] .ssbCookieBtn{
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
}

.ssbCookieBtnPrimary{
  background: rgba(255,255,255,.92);
  color: rgba(10,10,14,.92);
  border: 1px solid rgba(255,255,255,.55);
}
html[data-theme="light"] .ssbCookieBtnPrimary{
  background: rgba(10,10,14,.92);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(10,10,14,.92);
}

.ssbCookieLink{
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  opacity: .9;
  text-decoration: underline;
  color: inherit;
}

@media (max-width: 520px){
  .ssbCookieActions{ gap: 6px; }
  .ssbCookieLink{ width: 100%; margin-left: 0; }
}

/* Footer cookie controls */
.footerCookieRow{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* button / summary 共通の見た目 */
.footerCookieBtn{
  margin-top: 0;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  opacity: .85;
}
.footerCookieBtn:hover{ opacity: 1; }

/* details: markerを消して、本文を読みやすく */
.footerCookiePurpose{ margin: 0; }
.footerCookiePurpose > summary.footerCookieBtn{ list-style: none; }
.footerCookiePurpose > summary.footerCookieBtn::-webkit-details-marker{ display: none; }

.footerCookiePurposeBody{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  opacity: .85;
  max-width: 760px;
}
.footerCookiePurposeBody p{ margin: 6px 0; }
.footerCookiePurposeBody ul{
  margin: 6px 0 6px 18px;
  padding: 0;
}

