/* ===========================
   全体
=========================== */

*{
  box-sizing: border-box;
}

body {
  margin: 0;
  background: black;
  color: white;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}
body#viewer{
  overflow: hidden;
}

/* ===========================
   ヘッダー・フッター
=========================== */
.viewer-header,.viewer-footer {
  background: #111;
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.viewer-header{
  justify-content: space-between;
}

.viewer-footer{
  justify-content: center;
}

.viewer-title {
  width: 100%;
  text-align: center;
  height: 32px;
  line-height: 32px;
}
.viewer-subtitle{
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
}
.nav-btn {
  height: 32px;
  background: #333;
  padding: 5px 12px;
  border: none;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.page-counter {
  margin: 0 10px;
}
.nav-btn.deactivated{
  color: #666;
}

/* ===========================
   ビューエリア
=========================== */
.viewer-container {
  width: 100%;
  height: calc(100vh - 128px);
  background: black;
  overflow: hidden;
}

.mySwiper {
  height: 100%;
}

.swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ===========================
   PC：見開き
=========================== */
@media (min-width: 900px) {

  .spread {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
  }

  .spread .page {
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .page-img {
    height: 100%;
    width: auto;
    object-fit: contain;
  }
}

/* ===========================
   スマホ：単ページ
=========================== */
@media (max-width: 899px) {

  .single {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .single .page-img {
    width: 100%;
    height: auto;
  }
}
.tap-overlay {
  position: absolute;
  top: 64px; /* headerの高さ */
  left: 0;
  width: 100%;
  height: calc(100vh - 128px);
  z-index: 10;
  /* ポインタはそのまま通す */
  background: transparent;
}

/* ===========================
   各話一覧ページ
=========================== */

/* カバー画像 */
.episodes-header{
  background-color: #009EA0;
}
.home-btn{
  background-color: #000;
  color: #00E6E6;
  font-weight: 700;
  border-radius: 5px;
}
.work-cover {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto 10px;
}

.episode-list {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

.episode-item {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.1);
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
}

.episode-thumb {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.episode-info {
  display: flex;
  flex-direction: column;
}

.episode-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.episode-subtitle,.episode-date {
  font-size: 12px;
  opacity: 0.7;
}

/* ===========================
   プロフィールページ
=========================== */

html.remsizing{
  font-size: 10px;
}
body.profile-page{
  background-color: #00E6E6;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100dvw;
  height: 100dvh;
  font-size: 1.2rem;
}
.profile-wrapper{
  background-color: #009EA0;
  width: 85%;
  max-width: 50rem;
  border-radius: 6rem;
  padding: 4rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.profile-img{
  width: clamp(80px, 160px, 160px);
  margin-bottom: clamp(1.5rem, 3rem, 3rem);
}
h1.name{
  margin: 0;
  margin-bottom: clamp(1rem, 2rem, 2rem);
  height: clamp(2rem,4rem,4rem);
}
h1.name>img{
 height: clamp(2rem,4rem,4rem);
}
p{
  margin: 0;
  margin-bottom: 1rem;
  text-align: center;
}
.sns-wrapper{
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sns-wrapper>a{
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  vertical-align: middle;
  margin-bottom: 0.2rem;
  text-decoration: none;
  color: #000000;
}
.sns-wrapper>a:visited{
  color: #000000;
}
.sns-icon{
  width: clamp(1.6rem, 2.4rem, 2.4rem);
  margin-right: 0.5rem;
}
.sns-wrapper>a>span,.sns-icon{
  display: block;
  height: clamp(1.6rem, 2.4rem, 2.4rem);
  line-height: clamp(1.6rem, 2.4rem, 2.4rem);
  vertical-align: middle;
}
.banner{
  width: 100%;
  max-width: 35rem;
  margin-bottom: 1rem;
}
.copyright{
  font-size: 12px;
  text-align: center;
}