/* 基本設定 */
:root {
    --primary-gray: #F5F5F5;
    --light-gray: #E0E0E0;
    --medium-gray: #BDBDBD;
    --dark-gray: #757575;
    --black: #000000;
    --accent-blue: #42A5F5;
    --white: #FFFFFF;
    
    --font-family-base: 'Shippori Mincho B1', serif;
    --font-family-title: 'Kaisei Tokumin', serif;
    --header-height: 64px;
    --box-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --menu-animation-speed: 0.5s;
    --menu-animation-ease: ease-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--primary-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-rendering: grayscale;
    
    background-image: url('e.jpg'); /* サイト全体の背景画像 */
    background-repeat: repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-blue);
}

ul {
    list-style: none;
}

/* ヘッダー */
.simple-header {
    background-color: var(--white);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: var(--box-shadow-subtle);
    border-bottom: 1px solid var(--light-gray);
}

.site-title {
    font-family: var(--font-family-title);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--black);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform var(--transition-speed) ease;
    outline: none;
}

.menu-toggle .icon-bar {
    width: 100%;
    height: 2px;
    background-color: var(--black);
    border-radius: 1px;
    transition: all var(--transition-speed) ease;
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.menu-toggle:hover .icon-bar {
    background-color: var(--accent-blue);
    transform: scaleX(1.05);
}

.menu-toggle[aria-expanded="true"]:hover .icon-bar {
    background-color: var(--black);
    transform: none;
}

/* ナビゲーションメニュー */
.nav {
    position: fixed;
    top: var(--header-height);
    right: 0; 
    left: auto;
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--menu-animation-speed) var(--menu-animation-ease),
                visibility 0s linear var(--menu-animation-speed);
    
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding-top: 10px; 
    padding-bottom: 10px;
    flex-direction: column;
}

.nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--menu-animation-speed) var(--menu-animation-ease);
}

/* メニューリスト　ハンバーガーの中身 */
.menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px;
}

.menu-item {
    width: 100%;
    margin-bottom: 10px;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item a {
    display: block;
    padding: 12px 15px;
    background-color: transparent;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: left;
    border-radius: 4px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: none;
    text-shadow: none;
    letter-spacing: normal;
}

.menu-item a:hover {
    background-color: var(--light-gray);
    color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: none;
}

/* スクリーンリーダー用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* コンテンツ部分 - 共通設定 */
.content {
    padding: 60px 20px; 
    background-color: rgba(255, 255, 255, 0.7); 
    min-height: auto; 
    box-shadow: var(--box-shadow-subtle);
    max-width: 960px;
    margin: 30px auto; 
    border-radius: 8px;

    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    flex-grow: 0; 
}

/* ストーリーブロックのグリッドコンテナ (index.html用) */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    width: 100%;
    max-width: 600px; 
    padding: 10px; 
}

/* ストーリーブロック個別のスタイル (index.html用) */
.story-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 33.3%; 
    position: relative;
    
    background-color: var(--black); 
    border-radius: 15px; 
    overflow: hidden; 
    cursor: pointer;
    text-decoration: none; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 

    transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}

.story-block .story-text {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%; 
    text-align: center;
    font-family: var(--font-family-title); 
    font-size: clamp(1rem, 3.5vw, 2rem); 
    font-weight: 400;
    color: var(--primary-gray); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    transition: color 0.4s ease;
}

/* ホバー効果 */
.story-block:hover {
    background-color: var(--primary-gray); 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.story-block:hover .story-text {
    color: var(--black); 
}

/* クリック/タップ時の効果 */
.story-block:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.8; 
    transition: background-color 0.1s ease, color 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}


/* お問い合わせセクションのスタイル */
.contact-form-section {
    max-width: 960px; 
    margin: 30px auto; 
    padding: 20px; 
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 8px; 
    box-shadow: var(--box-shadow-subtle); 
    text-align: center; 
}

.contact-form-section h2 {
    font-family: var(--font-family-title); 
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 20px;
}

/* メッセージフォームのスタイル */
.message-form {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 70%; 
    max-width: 450px; 
    margin: 0 auto; 
    padding: 15px; 
    background-color: var(--white); 
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
}

/* textareaのスタイル */
.form-textarea {
    width: 100%;
    min-height: 120px; 
    padding: 15px;
    margin-bottom: 20px; 
    border: 1px solid var(--medium-gray);
    border-radius: 8px; 
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--black);
    background-color: var(--primary-gray); 
    resize: vertical; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
    outline: none;
}

/* ボタンのスタイル */
.form-button {
    background-color: var(--black); 
    color: var(--white); 
    padding: 12px 30px;
    border: none;
    border-radius: 25px; 
    cursor: pointer;
    font-family: var(--font-family-base);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase; 
}

.form-button:hover {
    background-color: var(--accent-blue); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-button:active {
    transform: translateY(0); 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 右下「Last up」表示 */
.last-updated-bar {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    background-color: rgba(0, 0, 0, 0.1); 
    color: var(--white);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000; 
    width: calc(20% - 30px); 
    text-align: center;
    font-family: 'Cutive Mono', monospace; 
    line-height: 1.2; 
}

.last-updated-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: 100%; 
}

.last-updated-bar a:hover {
    opacity: 0.8; 
}

/* "Last up" テキストのスタイル */
.last-up-text {
    font-size: 0.9rem; 
    margin-bottom: 2px; 
    display: block; 
}

/* 日付表示部分のスタイル */
.date-display {
    font-size: 0.9rem; 
    display: block; 
}

/* 小説一覧ページ (n.html, sui.html など) の共通セクション */
.novel-list-page {
    padding: 30px 20px; 
    background-color: rgba(255, 255, 255, 0.7); 
    min-height: auto; 
    box-shadow: var(--box-shadow-subtle);

    margin: 30px auto;
    border-radius: 8px;
    margin-bottom: 30px; 

    display: flex; 
    flex-direction: column; 
    align-items: center; 
    flex-grow: 1; 
    min-height: calc(100vh - var(--header-height) - 60px);
}

.page-title {
    font-family: var(--font-family-title);
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 40px; 
    text-align: center;
}

/* 小説のストーリーブロックグリッドコンテナ (n.html, c.html, s.html用) */
.novel-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* PCでは2列 */
    gap: 20px; 
    width: 100%;
    max-width: 800px; 
    padding: 10px; 
}

/* 個々の小説ストーリーブロック (n.html, c.html, s.html用) */
.novel-story-block {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    padding-bottom: 33.3%; 
    position: relative; 
    
    background-color: var(--black); 
    border-radius: 15px; 
    overflow: hidden; 
    cursor: pointer;
    text-decoration: none; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 

    transition: background-color 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.novel-story-block:hover {
    background-color: var(--primary-gray); 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 小説タイトル */
.novel-title {
    position: absolute; 
    top: 30%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%; 
    text-align: center;
    font-family: var(--font-family-title); 
    font-size: clamp(1rem, 3.5vw, 1.6rem); 
    font-weight: 400;
    color: var(--primary-gray); 
    white-space: normal; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    line-height: 1.3;
    z-index: 2; 
    transition: color 0.4s ease;
}

.novel-story-block:hover .novel-title {
    color: var(--black); 
}

/* 小説の簡単な説明 */
.novel-short-description {
    position: absolute; 
    top: 70%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%; 
    text-align: center;
    font-family: var(--font-family-base); 
    font-size: clamp(0.7rem, 2.5vw, 0.9rem); 
    color: #c0c0c0;
    line-height: 1.5;
    z-index: 2;
    display: -webkit-box; 
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; 
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease;
}

.novel-story-block:hover .novel-short-description {
    color: var(--dark-gray); 
}


/* 各小説の目次のスタイル (gesui.htmlなど) */
.novel-page {
    text-align: left;
    padding: 40px 30px;
    padding-top: 80px; /* ヘッダーの高さとh2の重なりを考慮して調整 */
}

.novel-article {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white); 
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--box-shadow-subtle);
    color: var(--black); /* ★これと */
}

.novel-article h2 {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.novel-author {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 30px;
}

.novel-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: justify; 
}



/* 小説ナビゲーション（本文ページでの「前へ」「一覧に戻る」「次へ」） */
.novel-navigation {
    margin-top: 40px;
    text-align: center; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}

/* 新しいナビゲーションボタンの共通スタイル */
.novel-nav-button {
    display: inline-block;
    background-color: var(--black); 
    color: var(--white); 
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; 
}

.novel-nav-button:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.novel-nav-button:active {
    transform: translateY(0);
    background-color: var(--dark-gray); 
}

/* 「一覧に戻る」リンクのスタイル */
.back-to-list-link {
    display: inline-block;
    background-color: var(--black); 
    color: var(--white); 
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px; 
}

.back-to-list-link:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}


/* --- m.html 用の縦一列・白背景・丸角枠スタイル (調整版) --- */

/* リストコンテナ */
.m-story-list-container {
    width: 100%;
    max-width: 1200px; 
    padding: 10px;
    margin-top: 20px; 
}

/* 個々のリストアイテムのリンク (枠になる部分) */
.m-list-item-link {
    display: block; 
    background-color: var(--white); 
    border-radius: 8px; 
    padding: 10px 20px; 
    margin-bottom: 15px; 
    box-shadow: var(--box-shadow-subtle); 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: var(--black); 
}

.m-list-item-link:last-child {
    margin-bottom: 0; 
}

.m-list-item-link:hover {
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); 
    background-color: var(--light-gray); 
}

.m-list-item-link:active {
    transform: translateY(0); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--medium-gray);
}

/* リストアイテムの内容コンテナ */
.m-list-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

/* リストアイテムのタイトル */
.m-list-item-title {
    font-family: var(--font-family-title); 
    font-size: 1.2rem; 
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px; 
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; 
    width: 100%; 
}

/* リストアイテムの説明文 */
.m-list-item-description {
    font-family: var(--font-family-base);
    font-size: 0.9rem; 
    color: var(--dark-gray); 
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
    width: 100%; 
}

/* --- 更新履歴セクションのスタイル (枠で囲み、透けさせる) --- */
.update-history-section {
    max-width: 960px; 
    margin: 30px auto; 
    padding: 20px; 
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 8px; 
    box-shadow: var(--box-shadow-subtle); 
    text-align: center; 
}

.update-history-title {
    font-family: var(--font-family-title); 
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 25px; 
}

.update-history-list {
    list-style: none; 
    padding: 0;
    margin: 0 auto; 
    max-width: 600px; 
    text-align: left; 
}

.update-history-item {
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--light-gray); 
}

.update-history-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; 
}

.update-date {
    font-family: 'Cutive Mono', monospace; 
    font-size: 0.95rem;
    color: var(--black); 
    flex-shrink: 0; 
    margin-right: 20px; 
    width: 90px; 
}

.update-description {
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--black); 
    font-weight: bold;    
    flex-grow: 1; 
    line-height: 1.5;
}

/* --- SNSリンクセクションのスタイル --- */
.sns-links-section {
    max-width: 960px; 
    margin: 30px auto; 
    padding: 20px; 
    text-align: center; 
}

.sns-links-title {
    font-family: var(--font-family-title); 
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 20px; 
}

.sns-icons-container {
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    flex-wrap: wrap; 
}

.sns-icon {
    object-fit: contain; 
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sns-icon-left .sns-icon {
    width: 180px; 
    height: 180px;
}

.sns-icon-right .sns-icon {
    width: 110px; 
    height: 110px;
}

.sns-icons-container a:hover .sns-icon {
    transform: translateY(-5px); 
    opacity: 0.8; 
}

.sns-icons-container a:active .sns-icon {
    transform: translateY(0);
    opacity: 0.6;
}



/* 目次リストのコンテナ */
.table-of-contents {
    list-style: none;
    padding: 0;
    margin: 30px auto 40px auto; 
    max-width: 700px; 
    width: 100%;
}

/* 各目次アイテムのリンク */
.table-of-contents li a {
    display: flex; 
    align-items: baseline; 
    justify-content: flex-start; 
    flex-wrap: wrap; 
    
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px 25px; 
    margin-bottom: 12px; 
    box-shadow: var(--box-shadow-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: var(--black); 
    text-decoration: none; 
}

.table-of-contents li:last-child a {
    margin-bottom: 0; 
}

.table-of-contents li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: var(--light-gray);
    color: var(--accent-blue); 
}

.table-of-contents li a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--medium-gray);
    color: var(--white); 
}


/* --- 各話リストページのスタイル (gesui.htmlなど) --- */

/* 各話リストのコンテナ */
.chapter-list {
    list-style: none;
    padding: 0;
    margin: 30px auto 40px auto; 
    max-width: 700px; 
    width: 100%;
}

/* 各話アイテムのリンク */
.chapter-list li a {
    display: flex; 
    align-items: baseline; 
    justify-content: flex-start; 
    flex-wrap: wrap; 
    

    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: var(--black); 
    text-decoration: none; 
}

.chapter-list li:last-child a {
    margin-bottom: 0; 
}



.chapter-list li a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--medium-gray);
    color: var(--white); 
}

/* 話数表示 */
.chapter-number {
    font-family: var(--font-family-base); 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--black);
    margin-right: 15px; 
    line-height: 1.4;
    flex-shrink: 0; 
    white-space: nowrap; 
}

/* 各話タイトル */
.chapter-title {
    font-family: var(--font-family-base); 
    font-size: 1.0rem; 
    font-weight: 400; 
    color: var(--black); 
    line-height: 1.4;
    flex-grow: 1; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* 作者名の調整（各話リストページ用） */
.chapter-list-author {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    color: var(--black);
}

/* ナビゲーションの調整（各話リストページ用） */
.chapter-list-nav {
    margin-top: 50px; 
    text-align: center; 
}


/* --- レスポンシブ対応 (スマホ用) --- */
@media (max-width: 767px) {
    /* ヘッダーのハンバーガーメニュー */
    .menu-toggle[aria-expanded="true"] {
        transform: translateY(-2px); 
    }

    /* index.htmlのコンテンツ部分 */
    .story-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .story-block {
        padding-bottom: 33.3%; 
    }

    /* お問い合わせフォーム */
    .message-form {
        width: 95%; 
        padding: 10px;
    }
    .form-textarea {
        padding: 10px;
        min-height: 100px;
    }

    /* 右下「Last up」表示 */
    .last-updated-bar {
        width: calc(40% - 30px); 
    }
    .last-up-text,
    .date-display {
        font-size: 0.7rem; 
    }

    /* 小説一覧ページ (n.html, c.html, s.htmlなど) の共通セクション */
    .novel-list-page {
        padding: 20px 15px;
    }
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .novel-story-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .novel-story-block {
        padding-bottom: 33.3%; 
    }
    .novel-title {
        font-size: clamp(1rem, 5vw, 1.5rem); 
    }
    .novel-short-description {
        font-size: clamp(0.7rem, 3.5vw, 10.0rem); 
        -webkit-line-clamp: 4; 
    }

    /* 小説目次ページ（スマホ調整） */

    .novel-article {
        width: 95%;
        padding: 20px;
        color: var(--black); /* ★スマホ用でも設定 */
    }
    .novel-page {
        padding: 20px 15px;
    }
    .novel-article {
        padding: 20px;
    }
    .novel-article h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .novel-body p {
        font-size: 1.0rem;
    }

    /* 小説ナビゲーション（本文ページでの「前へ」「一覧に戻る」「次へ」） */
    .novel-navigation {

        padding: 0 15px;
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
    }

    .novel-nav-button,
    .back-to-list-link {
        padding: 6px 10px; /* パディングをさらに小さくして、ボタン自体の幅を縮める */
        font-size: 0.75rem; /* フォントサイズも小さくする (任意) */
        margin: 2px; /* ボタン間のマージンを小さくする */
        white-space: nowrap; /* テキストが改行されないようにする */
    }
    /* m.htmlに特化した調整 */
    .m-story-list-container {
        padding: 0px; 
    }

    .m-list-item-link {
        padding: 8px 15px; 
        margin-bottom: 10px; 
    }

    .m-list-item-title {
        font-size: 1.1rem; 
        white-space: normal; 
        -webkit-line-clamp: 2; 
    }

    .m-list-item-description {
        font-size: 0.8rem; 
        -webkit-line-clamp: 2; 
    }

    /* 更新履歴セクションのスタイル (スマホ用) */
    .update-history-section {
        padding: 15px;
        margin: 20px auto;
    }

    .update-history-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .update-history-item {
        flex-direction: column; 
        align-items: flex-start; 
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .update-date {
        font-size: 0.85rem;
        margin-right: 0; 
        color: var(--black); 
        margin-bottom: 4px; 
        width: auto; 
    }

    .update-description {
        font-size: 0.9rem;
        color: var(--black); 
        font-weight: bold;    
    }

    /* SNSリンクセクションのスタイル (スマホ用) */
    .sns-links-section {
        margin: 20px auto; 
        padding: 15px; 
    }

    .sns-links-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .sns-icons-container {
        gap: 20px; 
    }

    .sns-icon-left .sns-icon {
        width: 200px; 
        height: 200px;
    }

    .sns-icon-right .sns-icon {
        width: 80px; 
        height: 80px;
    }

    /* 目次ページのスタイル (スマホ用) */
    .toc-jump-links {
        margin-top: 15px;
        margin-bottom: 25px;
        gap: 10px;
        padding: 0 10px;
    }

    .toc-jump-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .table-of-contents {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .table-of-contents li a {
        padding: 12px 18px;
        margin-bottom: 10px;
        flex-direction: column; 
        align-items: flex-start;
    }

    .toc-novel-title {
        font-size: 1.1rem;
        margin-right: 0; 
        margin-bottom: 3px; 
        white-space: normal; 
        overflow: visible; 
        text-overflow: clip; 
    }

    .toc-novel-author {
        font-size: 0.8rem;
        white-space: normal; 
    }

    /* 各話リストページのスタイル (スマホ用) */
    .chapter-list {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .chapter-list a {
        display: block; /* リンク要素をブロックレベルにして改行させる */
        padding: 8px 15px;
    }

    .chapter-number {
        display: inline-block; /* 番号をインラインブロックにする */
        margin-right: 5px; /* 番号の右に少しスペース */
        font-size: 0.9rem; /* サイズ調整 */
    }

    .chapter-title {
        display: inline-block; /* タイトルをインラインブロックにする */
        font-size: 0.9rem; /* サイズ調整 */
    }
    .chapter-list-author {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .chapter-list-nav {
        margin-top: 30px;
    }
}