/*
Theme Name: GeneratePress Child
Template: generatepress
Text Domain: generatepress-child
*/

/* 原稿用紙風縦書きモード */
.manuscript-mode .entry-content {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "Hiragino Mincho", serif;
    line-height: 16px;
    letter-spacing: 1px;
    white-space: pre-wrap;
    background-color: #fffdea;
    background-image:
        linear-gradient(to bottom, #ccc 1px, transparent 1px),
        linear-gradient(to right, #ccc 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 0px;
}

/* 集中読書モード調整（ヘッダー・フッター・サイドバー非表示） */
body.manuscript-mode .site-header,
body.manuscript-mode .site-footer,
body.manuscript-mode .sidebar,
body.manuscript-mode .main-navigation,
body.manuscript-mode .post-meta,
body.manuscript-mode .entry-title,
body.manuscript-mode .entry-meta,
body.manuscript-mode .cat-links,
body.manuscript-mode .tags-links,
body.manuscript-mode .entry-header > p,
body.manuscript-mode .post-categories,
body.manuscript-mode .comments-area,
body.manuscript-mode .comments-link,
body.manuscript-mode .adsbygoogle,
body.manuscript-mode .ad-container {
    display: none !important;
}
.manuscript-mode .site-main {
    width: 100%;
    max-width: 100%;
}

/* 原稿用紙モード時のみアドセンス広告を非表示 */
.manuscript-mode .adsbygoogle,
.manuscript-mode .ad-container {
    display: none !important;
}


/* ボタンデザイン */
.manuscript-btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #ffeb99;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-bottom: 1em;
}
.manuscript-btn:hover {
    background-color: #ffd966;
}

/* ---------- モバイル対応 ---------- */
@media screen and (max-width: 100px) {
    body.manuscript-mode .entry-content {
        font-size: 14px;
        line-height: 16px;
    }
    body.manuscript-mode .entry-content p {
        width: 16ch; /* モバイルでは1段落16文字固定 */
        margin-bottom: 16px; /* 段落間の距離を1文字分確保 */
    }
}


.author-works-slider .swiper-slide {
  text-align: center;
}

.author-works-slider .slide-link {
  display: inline-block;
  text-align: center;
}

.author-works-slider .slide-link img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.author-works-slider .slide-title {
  margin-top: 10px;
  font-size: 1.2em;
  color: #333;
}

/* 著者ページのコンテンツ領域を白背景にしてボックススタイルにする */
.author-page-wrapper {
  background-color: #ffffff;        /* 白背景 */
  max-width: 1200px;                 /* ヘッダー／フッター幅近辺に調整 */
  margin: 0 auto;                    /* 中央寄せ */
  padding: 30px 20px;                /* 上下左右の余白 */
  box-sizing: border-box;
}

/* プロフィールと作品一覧のセクションマージン */
.author-page-wrapper .author-profile,
.author-page-wrapper .author-works {
  margin-bottom: 40px;
}

/* 背景応答の調整 */
body.author #content {
  background: none;                  /* テーマのデフォルト背景をクリア（もし被ってたら） */
}

/* Swiper スライダー等の幅調整 */
.author-page-wrapper .swiper {
  width: 100%;
}

.author-separator {
    border: none;
    border-top: 2px solid #ccc;
    margin: 30px 0;
}

.tag-nav {
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    margin-top: 20px;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.adjacent-btn {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.episode-list-wrap {
    margin-top: 2.0em;
    padding: 1.2em;
    background: #fff;
    border: 1px solid #eee;
}

.episode-list-title {
    margin-bottom: 0.6em;
    font-size: 1.1rem;
}

.episode-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.episode-item {
    margin: 0.4em 0;
}

.episode-number {
    display: inline-block;
    min-width: 5.2em;
    font-weight: 700;
    margin-right: 0.6em;
    color: #333;
}

