Files
WebImageViewer/scratch/gallery_013597_view.html

1037 lines
44 KiB
HTML

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<title>[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;) - WebImageViewer</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-base: #0a0d14;
--bg-surface: #111726;
--bg-surface-elevated: #1a2236;
--bg-glass: rgba(17, 23, 38, 0.82);
--border-subtle: rgba(255, 255, 255, 0.08);
--border-glow: rgba(99, 102, 241, 0.3);
--accent-primary: #6366f1;
--accent-primary-hover: #4f46e5;
--accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--text-subtle: #64748b;
--header-height: 64px;
--toolbar-height: 56px;
--radius-md: 12px;
--radius-lg: 16px;
--shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
--transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--bg-base);
color: var(--text-main);
line-height: 1.5;
overflow-x: hidden;
user-select: none;
min-height: 100vh;
}
/* ヘッダー */
header.top-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--header-height);
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 100;
transition: transform 0.3s ease;
}
.header-left {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
}
.back-btn {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: var(--radius-md);
background: var(--bg-surface-elevated);
color: var(--text-main);
text-decoration: none;
border: 1px solid var(--border-subtle);
transition: var(--transition-smooth);
flex-shrink: 0;
}
.back-btn:hover {
background: var(--accent-primary);
border-color: var(--accent-primary);
transform: scale(1.05);
}
.gallery-title-wrapper {
min-width: 0;
}
.gallery-title {
font-size: 1.05rem;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 50vw;
}
.gallery-sub {
font-size: 0.75rem;
color: var(--text-muted);
display: flex;
gap: 10px;
align-items: center;
}
.badge-category {
background: rgba(99, 102, 241, 0.2);
color: #818cf8;
padding: 2px 8px;
border-radius: 6px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
}
.header-right {
display: flex;
align-items: center;
gap: 10px;
}
.action-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: var(--radius-md);
background: var(--bg-surface-elevated);
color: var(--text-main);
border: 1px solid var(--border-subtle);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition-smooth);
}
.action-btn:hover, .action-btn.active {
background: var(--accent-primary);
border-color: var(--accent-primary);
color: #fff;
box-shadow: 0 0 15px var(--border-glow);
}
/* メインビューアーコンテナ */
main.viewer-container {
padding-top: calc(var(--header-height) + 12px);
padding-bottom: calc(var(--toolbar-height) + 24px);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
/* 縦スクロールモード */
.scroll-mode-view {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
width: 100%;
max-width: 1000px;
padding: 0 12px;
}
.scroll-image-wrapper {
position: relative;
width: 100%;
background: var(--bg-surface);
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-float);
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
.scroll-image-wrapper img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
opacity: 0;
transition: opacity 0.3s ease;
}
.scroll-image-wrapper img.loaded {
opacity: 1;
}
.scroll-image-wrapper .page-badge {
position: absolute;
bottom: 12px;
right: 12px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
color: #fff;
padding: 4px 10px;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 600;
pointer-events: none;
}
/* スライド(単ページ・見開き)モード */
.slide-mode-view {
display: none;
position: fixed;
top: var(--header-height);
bottom: var(--toolbar-height);
left: 0;
right: 0;
align-items: center;
justify-content: center;
overflow: hidden;
}
.slide-mode-view.active {
display: flex;
}
.slide-stage {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.slide-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
user-select: none;
transition: transform 0.2s ease-out;
box-shadow: var(--shadow-float);
}
.slide-nav-zone {
position: absolute;
top: 0;
bottom: 0;
width: 35%;
z-index: 10;
cursor: pointer;
display: flex;
align-items: center;
opacity: 0;
transition: opacity 0.2s ease;
}
.slide-nav-zone:hover {
opacity: 1;
}
.slide-nav-prev {
left: 0;
justify-content: flex-start;
padding-left: 24px;
background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}
.slide-nav-next {
right: 0;
justify-content: flex-end;
padding-right: 24px;
background: linear-gradient(to left, rgba(0,0,0,0.4), transparent);
}
.nav-arrow-icon {
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--bg-glass);
border: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
/* 下部ツールバー */
footer.bottom-toolbar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--toolbar-height);
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-top: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 100;
transition: transform 0.3s ease;
}
.page-counter {
font-family: 'Outfit', sans-serif;
font-size: 0.95rem;
font-weight: 600;
color: var(--text-main);
display: flex;
align-items: center;
gap: 6px;
}
.page-counter span.current-page {
color: #818cf8;
font-size: 1.1rem;
}
.progress-bar-container {
flex: 1;
max-width: 450px;
margin: 0 20px;
height: 6px;
background: var(--bg-surface-elevated);
border-radius: 3px;
overflow: hidden;
cursor: pointer;
position: relative;
}
.progress-bar-fill {
height: 100%;
width: 0%;
background: var(--accent-gradient);
transition: width 0.15s ease;
}
/* サムネイル一覧ドロワー */
.drawer-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 150;
}
.drawer-overlay.active {
opacity: 1;
pointer-events: auto;
}
.thumb-drawer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 240px;
background: var(--bg-surface);
border-top: 1px solid var(--border-subtle);
z-index: 160;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
padding: 16px;
}
.thumb-drawer.active {
transform: translateY(0);
}
.drawer-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.drawer-header h3 {
font-size: 0.95rem;
font-weight: 700;
}
.thumb-list {
display: flex;
gap: 12px;
overflow-x: auto;
padding-bottom: 8px;
scroll-behavior: smooth;
}
.thumb-item {
flex: 0 0 100px;
height: 145px;
border-radius: 8px;
overflow: hidden;
background: var(--bg-surface-elevated);
border: 2px solid transparent;
cursor: pointer;
position: relative;
transition: var(--transition-smooth);
}
.thumb-item:hover, .thumb-item.active {
border-color: var(--accent-primary);
transform: translateY(-4px);
box-shadow: 0 6px 16px var(--border-glow);
}
.thumb-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.thumb-item .thumb-num {
position: absolute;
bottom: 4px;
right: 4px;
background: rgba(0, 0, 0, 0.75);
font-size: 0.65rem;
padding: 2px 6px;
border-radius: 4px;
}
/* メタ情報カード(最上部/最下部) */
.info-card {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 16px;
width: 100%;
box-shadow: var(--shadow-float);
}
.info-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
.tag-pill {
background: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
color: var(--text-muted);
padding: 4px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
text-decoration: none;
}
/* キーボードショートカットヘルプモーダル */
.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
align-items: center;
justify-content: center;
z-index: 200;
padding: 20px;
}
.modal.active {
display: flex;
}
.modal-body {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 28px;
max-width: 440px;
width: 100%;
box-shadow: var(--shadow-float);
}
.shortcut-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--border-subtle);
}
.kbd-key {
background: var(--bg-surface-elevated);
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 3px 8px;
border-radius: 6px;
font-family: monospace;
font-size: 0.8rem;
color: #818cf8;
}
@media (max-width: 768px) {
.gallery-title { max-width: 38vw; }
.header-right .text-label { display: none; }
.action-btn { padding: 8px 10px; }
.progress-bar-container { max-width: 180px; }
}
</style>
</head>
<body>
<!-- ヘッダー -->
<header class="top-header" id="topHeader">
<div class="header-left">
<a href="/" class="back-btn" title="ホームへ戻る">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
</a>
<div class="gallery-title-wrapper">
<div class="gallery-title" title="[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;)">[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;)</div>
<div class="gallery-sub">
<span class="badge-category">gallery</span>
<span>作者: ajisio</span>
</div>
</div>
</div>
<div class="header-right">
<button class="action-btn" id="modeToggleBtn" title="縦スクロール / スライド表示切替 (M)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></svg>
<span class="text-label" id="modeLabel">スライド表示へ</span>
</button>
<button class="action-btn" id="thumbToggleBtn" title="サムネイル一覧 (T)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
</button>
<button class="action-btn" id="fullscreenBtn" title="全画面表示 (F)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"/></svg>
</button>
<button class="action-btn" id="helpBtn" title="ショートカット一覧 (?)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
</button>
</div>
</header>
<!-- メインビューアー -->
<main class="viewer-container">
<!-- 縦スクロールモード表示 -->
<div class="scroll-mode-view" id="scrollModeView">
<!-- メタ情報カード -->
<div class="info-card">
<h2>[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;)</h2>
<div style="margin-top: 8px; color: var(--text-muted); font-size: 0.85rem; display: flex; gap: 16px; flex-wrap: wrap;">
<span>📁 カテゴリ: <strong>gallery</strong></span>
<span>✍️ 作者: <strong>ajisio</strong></span>
<span>📄 総ページ数: <strong>17 ページ</strong></span>
<span>🔗 元サイト: <a href="https://aurahentai.com/gallery/013597" target="_blank" rel="noopener noreferrer" style="color:#818cf8; text-decoration:underline;">aurahentai</a></span>
</div>
<div class="info-tags">
<span class="tag-pill">#anal</span>
<span class="tag-pill">#bondage</span>
<span class="tag-pill">#female only</span>
<span class="tag-pill">#focus anal</span>
<span class="tag-pill">#variant set</span>
<span class="tag-pill">#very long hair</span>
<span class="tag-pill">#vtuber</span>
<span class="tag-pill">#nijisanji</span>
<span class="tag-pill">#amamiya kokoro</span>
</div>
</div>
<!-- 画像リスト -->
<div class="scroll-image-wrapper" data-page="1">
<img src="https://img.aurahentai.com/g/013597/001.webp" loading="lazy" decoding="async" alt="Page 1" onload="this.classList.add('loaded')" />
<div class="page-badge">1 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="2">
<img src="https://img.aurahentai.com/g/013597/002.webp" loading="lazy" decoding="async" alt="Page 2" onload="this.classList.add('loaded')" />
<div class="page-badge">2 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="3">
<img src="https://img.aurahentai.com/g/013597/003.webp" loading="lazy" decoding="async" alt="Page 3" onload="this.classList.add('loaded')" />
<div class="page-badge">3 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="4">
<img src="https://img.aurahentai.com/g/013597/004.webp" loading="lazy" decoding="async" alt="Page 4" onload="this.classList.add('loaded')" />
<div class="page-badge">4 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="5">
<img src="https://img.aurahentai.com/g/013597/005.webp" loading="lazy" decoding="async" alt="Page 5" onload="this.classList.add('loaded')" />
<div class="page-badge">5 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="6">
<img src="https://img.aurahentai.com/g/013597/006.webp" loading="lazy" decoding="async" alt="Page 6" onload="this.classList.add('loaded')" />
<div class="page-badge">6 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="7">
<img src="https://img.aurahentai.com/g/013597/007.webp" loading="lazy" decoding="async" alt="Page 7" onload="this.classList.add('loaded')" />
<div class="page-badge">7 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="8">
<img src="https://img.aurahentai.com/g/013597/008.webp" loading="lazy" decoding="async" alt="Page 8" onload="this.classList.add('loaded')" />
<div class="page-badge">8 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="9">
<img src="https://img.aurahentai.com/g/013597/009.webp" loading="lazy" decoding="async" alt="Page 9" onload="this.classList.add('loaded')" />
<div class="page-badge">9 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="10">
<img src="https://img.aurahentai.com/g/013597/010.webp" loading="lazy" decoding="async" alt="Page 10" onload="this.classList.add('loaded')" />
<div class="page-badge">10 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="11">
<img src="https://img.aurahentai.com/g/013597/011.webp" loading="lazy" decoding="async" alt="Page 11" onload="this.classList.add('loaded')" />
<div class="page-badge">11 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="12">
<img src="https://img.aurahentai.com/g/013597/012.webp" loading="lazy" decoding="async" alt="Page 12" onload="this.classList.add('loaded')" />
<div class="page-badge">12 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="13">
<img src="https://img.aurahentai.com/g/013597/013.webp" loading="lazy" decoding="async" alt="Page 13" onload="this.classList.add('loaded')" />
<div class="page-badge">13 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="14">
<img src="https://img.aurahentai.com/g/013597/014.webp" loading="lazy" decoding="async" alt="Page 14" onload="this.classList.add('loaded')" />
<div class="page-badge">14 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="15">
<img src="https://img.aurahentai.com/g/013597/015.webp" loading="lazy" decoding="async" alt="Page 15" onload="this.classList.add('loaded')" />
<div class="page-badge">15 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="16">
<img src="https://img.aurahentai.com/g/013597/016.webp" loading="lazy" decoding="async" alt="[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;) 16&#x30DA;&#x30FC;&#x30B8;" onload="this.classList.add('loaded')" />
<div class="page-badge">16 / 17</div>
</div>
<div class="scroll-image-wrapper" data-page="17">
<img src="https://img.aurahentai.com/g/013597/017.webp" loading="lazy" decoding="async" alt="[&#x3042;&#x3058;&#x3057;&#x304A;] am&#x307F;&#x3083;&#x3092;&#x30B1;&#x30C4;&#x7A74;&#x30D4;&#x30B9;&#x30C8;&#x30F3;&#x30DE;&#x30B7;&#x30F3;&#x3067;&#x5206;&#x304B;&#x3089;&#x305B;&#x8ABF;&#x6559; (&#x306B;&#x3058;&#x3055;&#x3093;&#x3058;) 17&#x30DA;&#x30FC;&#x30B8;" onload="this.classList.add('loaded')" />
<div class="page-badge">17 / 17</div>
</div>
<!-- 終了カード -->
<div class="info-card" style="text-align: center; margin-top: 24px;">
<h3>🎉 最後のページに到達しました(全 17 ページ)</h3>
<p style="color: var(--text-muted); margin-top: 8px; font-size: 0.85rem;">閲覧ありがとうございます!</p>
<div style="margin-top: 16px;">
<a href="/" class="action-btn" style="text-decoration:none;">ホームに戻る</a>
</div>
</div>
</div>
<!-- スライドモード表示 -->
<div class="slide-mode-view" id="slideModeView">
<div class="slide-stage" id="slideStage">
<img class="slide-image" id="currentSlideImage" src="" alt="Slide Image" />
<div class="slide-nav-zone slide-nav-prev" id="slidePrevZone" title="前のページへ (← / A)">
<div class="nav-arrow-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M15 18l-6-6 6-6"/></svg>
</div>
</div>
<div class="slide-nav-zone slide-nav-next" id="slideNextZone" title="次のページへ (→ / D / Space)">
<div class="nav-arrow-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M9 18l6-6-6-6"/></svg>
</div>
</div>
</div>
</div>
</main>
<!-- 下部ツールバー -->
<footer class="bottom-toolbar" id="bottomToolbar">
<div class="page-counter">
<span class="current-page" id="currentPageDisplay">1</span>
<span>/</span>
<span>17</span>
</div>
<div class="progress-bar-container" id="progressBar">
<div class="progress-bar-fill" id="progressFill"></div>
</div>
<div style="display: flex; gap: 8px;">
<button class="action-btn" id="prevPageBtn" title="前のページ">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 18l-6-6 6-6"/></svg>
</button>
<button class="action-btn" id="nextPageBtn" title="次のページ">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
</button>
</div>
</footer>
<!-- サムネイルドロワー -->
<div class="drawer-overlay" id="drawerOverlay"></div>
<div class="thumb-drawer" id="thumbDrawer">
<div class="drawer-header">
<h3>📖 サムネイル一覧 (17 ページ)</h3>
<button class="action-btn" id="closeDrawerBtn">✕ 閉じる</button>
</div>
<div class="thumb-list" id="thumbList">
<div class="thumb-item" data-page="1">
<img src="https://img.aurahentai.com/thumb/g/013597/001.webp" loading="lazy" alt="1" />
<div class="thumb-num">1</div>
</div>
<div class="thumb-item" data-page="2">
<img src="https://img.aurahentai.com/thumb/g/013597/002.webp" loading="lazy" alt="2" />
<div class="thumb-num">2</div>
</div>
<div class="thumb-item" data-page="3">
<img src="https://img.aurahentai.com/thumb/g/013597/003.webp" loading="lazy" alt="3" />
<div class="thumb-num">3</div>
</div>
<div class="thumb-item" data-page="4">
<img src="https://img.aurahentai.com/thumb/g/013597/004.webp" loading="lazy" alt="4" />
<div class="thumb-num">4</div>
</div>
<div class="thumb-item" data-page="5">
<img src="https://img.aurahentai.com/thumb/g/013597/005.webp" loading="lazy" alt="5" />
<div class="thumb-num">5</div>
</div>
<div class="thumb-item" data-page="6">
<img src="https://img.aurahentai.com/thumb/g/013597/006.webp" loading="lazy" alt="6" />
<div class="thumb-num">6</div>
</div>
<div class="thumb-item" data-page="7">
<img src="https://img.aurahentai.com/thumb/g/013597/007.webp" loading="lazy" alt="7" />
<div class="thumb-num">7</div>
</div>
<div class="thumb-item" data-page="8">
<img src="https://img.aurahentai.com/thumb/g/013597/008.webp" loading="lazy" alt="8" />
<div class="thumb-num">8</div>
</div>
<div class="thumb-item" data-page="9">
<img src="https://img.aurahentai.com/thumb/g/013597/009.webp" loading="lazy" alt="9" />
<div class="thumb-num">9</div>
</div>
<div class="thumb-item" data-page="10">
<img src="https://img.aurahentai.com/thumb/g/013597/010.webp" loading="lazy" alt="10" />
<div class="thumb-num">10</div>
</div>
<div class="thumb-item" data-page="11">
<img src="https://img.aurahentai.com/thumb/g/013597/011.webp" loading="lazy" alt="11" />
<div class="thumb-num">11</div>
</div>
<div class="thumb-item" data-page="12">
<img src="https://img.aurahentai.com/thumb/g/013597/012.webp" loading="lazy" alt="12" />
<div class="thumb-num">12</div>
</div>
<div class="thumb-item" data-page="13">
<img src="https://img.aurahentai.com/thumb/g/013597/013.webp" loading="lazy" alt="13" />
<div class="thumb-num">13</div>
</div>
<div class="thumb-item" data-page="14">
<img src="https://img.aurahentai.com/thumb/g/013597/014.webp" loading="lazy" alt="14" />
<div class="thumb-num">14</div>
</div>
<div class="thumb-item" data-page="15">
<img src="https://img.aurahentai.com/thumb/g/013597/015.webp" loading="lazy" alt="15" />
<div class="thumb-num">15</div>
</div>
<div class="thumb-item" data-page="16">
<img src="https://img.aurahentai.com/thumb/g/013597/016.webp" loading="lazy" alt="16" />
<div class="thumb-num">16</div>
</div>
<div class="thumb-item" data-page="17">
<img src="https://img.aurahentai.com/thumb/g/013597/017.webp" loading="lazy" alt="17" />
<div class="thumb-num">17</div>
</div>
</div>
</div>
<!-- ヘルプモーダル -->
<div class="modal" id="helpModal">
<div class="modal-body">
<h3 style="margin-bottom: 16px; font-weight: 700;">⌨️ キーボードショートカット</h3>
<div class="shortcut-row"><span>次のページへ</span><span class="kbd-key">→ / D / Space</span></div>
<div class="shortcut-row"><span>前のページへ</span><span class="kbd-key">← / A</span></div>
<div class="shortcut-row"><span>表示モード切替</span><span class="kbd-key">M</span></div>
<div class="shortcut-row"><span>サムネイル一覧開閉</span><span class="kbd-key">T</span></div>
<div class="shortcut-row"><span>全画面表示切替</span><span class="kbd-key">F</span></div>
<div class="shortcut-row"><span>先頭 / 末尾ページへ</span><span class="kbd-key">Home / End</span></div>
<div style="margin-top: 20px; text-align: right;">
<button class="action-btn" id="closeHelpBtn">閉じる</button>
</div>
</div>
</div>
<script>
const galleryData = {"id":"013597","title":"[あじしお] amみゃをケツ穴ピストンマシンで分からせ調教 (にじさんじ)","category":"gallery","circle":null,"author":"ajisio","tags":["anal","bondage","female only","focus anal","variant set","very long hair","vtuber","nijisanji","amamiya kokoro"],"totalPages":17,"thumbnailUrl":"https://img.aurahentai.com/w575/g/013597/cover.webp","sourceSite":"aurahentai","sourceUrl":"https://aurahentai.com/gallery/013597","images":[{"pageNumber":1,"imageUrl":"https://img.aurahentai.com/g/013597/001.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/001.webp","altText":"Page 1","width":null,"height":null},{"pageNumber":2,"imageUrl":"https://img.aurahentai.com/g/013597/002.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/002.webp","altText":"Page 2","width":null,"height":null},{"pageNumber":3,"imageUrl":"https://img.aurahentai.com/g/013597/003.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/003.webp","altText":"Page 3","width":null,"height":null},{"pageNumber":4,"imageUrl":"https://img.aurahentai.com/g/013597/004.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/004.webp","altText":"Page 4","width":null,"height":null},{"pageNumber":5,"imageUrl":"https://img.aurahentai.com/g/013597/005.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/005.webp","altText":"Page 5","width":null,"height":null},{"pageNumber":6,"imageUrl":"https://img.aurahentai.com/g/013597/006.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/006.webp","altText":"Page 6","width":null,"height":null},{"pageNumber":7,"imageUrl":"https://img.aurahentai.com/g/013597/007.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/007.webp","altText":"Page 7","width":null,"height":null},{"pageNumber":8,"imageUrl":"https://img.aurahentai.com/g/013597/008.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/008.webp","altText":"Page 8","width":null,"height":null},{"pageNumber":9,"imageUrl":"https://img.aurahentai.com/g/013597/009.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/009.webp","altText":"Page 9","width":null,"height":null},{"pageNumber":10,"imageUrl":"https://img.aurahentai.com/g/013597/010.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/010.webp","altText":"Page 10","width":null,"height":null},{"pageNumber":11,"imageUrl":"https://img.aurahentai.com/g/013597/011.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/011.webp","altText":"Page 11","width":null,"height":null},{"pageNumber":12,"imageUrl":"https://img.aurahentai.com/g/013597/012.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/012.webp","altText":"Page 12","width":null,"height":null},{"pageNumber":13,"imageUrl":"https://img.aurahentai.com/g/013597/013.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/013.webp","altText":"Page 13","width":null,"height":null},{"pageNumber":14,"imageUrl":"https://img.aurahentai.com/g/013597/014.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/014.webp","altText":"Page 14","width":null,"height":null},{"pageNumber":15,"imageUrl":"https://img.aurahentai.com/g/013597/015.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/015.webp","altText":"Page 15","width":null,"height":null},{"pageNumber":16,"imageUrl":"https://img.aurahentai.com/g/013597/016.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/016.webp","altText":"[あじしお] amみゃをケツ穴ピストンマシンで分からせ調教 (にじさんじ) 16ページ","width":null,"height":null},{"pageNumber":17,"imageUrl":"https://img.aurahentai.com/g/013597/017.webp","thumbnailUrl":"https://img.aurahentai.com/thumb/g/013597/017.webp","altText":"[あじしお] amみゃをケツ穴ピストンマシンで分からせ調教 (にじさんじ) 17ページ","width":null,"height":null}],"fetchedAt":"2026-08-31T13:06:28.912292Z"};
const totalPages = 17;
let currentPage = 1;
let isSlideMode = false;
// 要素参照
const scrollModeView = document.getElementById('scrollModeView');
const slideModeView = document.getElementById('slideModeView');
const modeToggleBtn = document.getElementById('modeToggleBtn');
const modeLabel = document.getElementById('modeLabel');
const currentSlideImage = document.getElementById('currentSlideImage');
const currentPageDisplay = document.getElementById('currentPageDisplay');
const progressFill = document.getElementById('progressFill');
const progressBar = document.getElementById('progressBar');
const thumbToggleBtn = document.getElementById('thumbToggleBtn');
const thumbDrawer = document.getElementById('thumbDrawer');
const drawerOverlay = document.getElementById('drawerOverlay');
const closeDrawerBtn = document.getElementById('closeDrawerBtn');
const thumbItems = document.querySelectorAll('.thumb-item');
const fullscreenBtn = document.getElementById('fullscreenBtn');
const helpBtn = document.getElementById('helpBtn');
const helpModal = document.getElementById('helpModal');
const closeHelpBtn = document.getElementById('closeHelpBtn');
const prevPageBtn = document.getElementById('prevPageBtn');
const nextPageBtn = document.getElementById('nextPageBtn');
const slidePrevZone = document.getElementById('slidePrevZone');
const slideNextZone = document.getElementById('slideNextZone');
// 表示モード切替
function toggleMode() {
isSlideMode = !isSlideMode;
if (isSlideMode) {
scrollModeView.style.display = 'none';
slideModeView.classList.add('active');
modeLabel.textContent = 'スクロール表示へ';
updateSlideImage();
} else {
slideModeView.classList.remove('active');
scrollModeView.style.display = 'flex';
modeLabel.textContent = 'スライド表示へ';
scrollToPage(currentPage);
}
}
// ページ更新
function setPage(page, smoothScroll = true) {
if (page < 1) page = 1;
if (page > totalPages) page = totalPages;
currentPage = page;
currentPageDisplay.textContent = currentPage;
const progress = ((currentPage - 1) / Math.max(1, totalPages - 1)) * 100;
progressFill.style.width = `${progress}%`;
// サムネイルのアクティブ状態更新
thumbItems.forEach(item => {
const itemPage = parseInt(item.dataset.page);
item.classList.toggle('active', itemPage === currentPage);
if (itemPage === currentPage && thumbDrawer.classList.contains('active')) {
item.scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });
}
});
if (isSlideMode) {
updateSlideImage();
} else if (smoothScroll) {
scrollToPage(currentPage);
}
}
function scrollToPage(page) {
const el = document.querySelector(`.scroll-image-wrapper[data-page="${page}"]`);
if (el) {
const offset = 80;
const bodyRect = document.body.getBoundingClientRect().top;
const elementRect = el.getBoundingClientRect().top;
const elementPosition = elementRect - bodyRect;
const offsetPosition = elementPosition - offset;
window.scrollTo({
top: offsetPosition,
behavior: 'smooth'
});
}
}
function updateSlideImage() {
if (galleryData.images && galleryData.images[currentPage - 1]) {
const imgObj = galleryData.images[currentPage - 1];
currentSlideImage.src = imgObj.imageUrl;
currentSlideImage.alt = imgObj.altText || `${galleryData.title} ${currentPage}ページ`;
preloadAdjacentImages();
}
}
function preloadAdjacentImages() {
if (!galleryData.images) return;
const nextIdx = currentPage;
if (nextIdx < totalPages) {
const preloadImg = new Image();
preloadImg.src = galleryData.images[nextIdx].imageUrl;
}
const prevIdx = currentPage - 2;
if (prevIdx >= 0) {
const preloadImg = new Image();
preloadImg.src = galleryData.images[prevIdx].imageUrl;
}
}
// サムネイルドロワー開閉
function toggleDrawer(open) {
const shouldOpen = open !== undefined ? open : !thumbDrawer.classList.contains('active');
thumbDrawer.classList.toggle('active', shouldOpen);
drawerOverlay.classList.toggle('active', shouldOpen);
if (shouldOpen) {
const activeThumb = document.querySelector(`.thumb-item[data-page="${currentPage}"]`);
if (activeThumb) {
setTimeout(() => activeThumb.scrollIntoView({ behavior: 'smooth', inline: 'center' }), 100);
}
}
}
// 全画面表示切替
function toggleFullscreen() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen().catch(() => {});
} else {
document.exitFullscreen().catch(() => {});
}
}
// スクロール検知によるページ番号自動更新
let scrollTimeout;
window.addEventListener('scroll', () => {
if (isSlideMode) return;
clearTimeout(scrollTimeout);
scrollTimeout = setTimeout(() => {
const wrappers = document.querySelectorAll('.scroll-image-wrapper');
let foundPage = currentPage;
const viewCenter = window.innerHeight / 2;
wrappers.forEach(w => {
const rect = w.getBoundingClientRect();
if (rect.top <= viewCenter && rect.bottom >= viewCenter) {
foundPage = parseInt(w.dataset.page);
}
});
if (foundPage !== currentPage) {
setPage(foundPage, false);
}
}, 50);
});
// イベントリスナー
modeToggleBtn.addEventListener('click', toggleMode);
thumbToggleBtn.addEventListener('click', () => toggleDrawer());
closeDrawerBtn.addEventListener('click', () => toggleDrawer(false));
drawerOverlay.addEventListener('click', () => toggleDrawer(false));
fullscreenBtn.addEventListener('click', toggleFullscreen);
helpBtn.addEventListener('click', () => helpModal.classList.add('active'));
closeHelpBtn.addEventListener('click', () => helpModal.classList.remove('active'));
helpModal.addEventListener('click', (e) => { if (e.target === helpModal) helpModal.classList.remove('active'); });
prevPageBtn.addEventListener('click', () => setPage(currentPage - 1));
nextPageBtn.addEventListener('click', () => setPage(currentPage + 1));
slidePrevZone.addEventListener('click', () => setPage(currentPage - 1));
slideNextZone.addEventListener('click', () => setPage(currentPage + 1));
thumbItems.forEach(item => {
item.addEventListener('click', () => {
const p = parseInt(item.dataset.page);
setPage(p);
toggleDrawer(false);
});
});
progressBar.addEventListener('click', (e) => {
const rect = progressBar.getBoundingClientRect();
const ratio = (e.clientX - rect.left) / rect.width;
const targetPage = Math.max(1, Math.min(totalPages, Math.round(ratio * totalPages)));
setPage(targetPage);
});
window.addEventListener('keydown', (e) => {
if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return;
switch (e.key) {
case 'ArrowRight':
case 'd':
case 'D':
case ' ':
e.preventDefault();
setPage(currentPage + 1);
break;
case 'ArrowLeft':
case 'a':
case 'A':
e.preventDefault();
setPage(currentPage - 1);
break;
case 'm':
case 'M':
toggleMode();
break;
case 't':
case 'T':
toggleDrawer();
break;
case 'f':
case 'F':
toggleFullscreen();
break;
case 'Home':
e.preventDefault();
setPage(1);
break;
case 'End':
e.preventDefault();
setPage(totalPages);
break;
case 'Escape':
toggleDrawer(false);
helpModal.classList.remove('active');
break;
}
});
setPage(1, false);
</script>
</body>
</html>