code

このページはテンプレートのソースをそのまま貼り付けてあるコピペ用のページです。 各コードブロック右上の「コピー」ボタンで全文をコピーできます。公開するときは、この code ページごと削除して構いません。

■ 共通パーツ(全ページで同じ。最初に用意するもの)

ページの head(共通・文字コードやフォント読み込み)

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/destyle.css@3.0.2/destyle.min.css">

    <link
      href="https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap"
      rel="stylesheet"
    >

装飾用スタイル(共通・head に貼る)

<style>
/*
  Designed by instan <https://instan.fc2.page>
*/

/* ===== カラー・フォントの設定(ここを変えると全体の見た目が変わります) ===== */
:root {
  color-scheme: light dark;

  /* 白黒 2 色 — インク(黒)と紙(白)。この 2 色を差し替えると世界観が変わります */
  --ink: #14110e; /* 主線・文字(黒インク) */
  --paper: #f3f0e7; /* 紙の地色 */
  --paper-card: #ffffff; /* パネル / カードの地色 */
  --ink-muted: #6a655c; /* 補助テキスト */
  --ink-faint: #a8a298; /* さらに薄い装飾 */
  --line: var(--ink); /* 罫線(黒主線) */

  /* スクリーントーン(ドットの細かさ。小さいほど密) */
  --tone-size: 4px;
  --tone-dot: 30%;

  /* フォント */
  --font-display: "Dela Gothic One", sans-serif; /* 漫画ロゴ風のインパクト見出し */
  --font-ja: "Zen Kaku Gothic New", sans-serif; /* 本文・小見出し・英字アクセント兼用 */
  --font-body: var(--font-ja);

  /* レイアウト */
  --content-width: 820px;
  --measure: 38rem;
  --header-height: 56px;
  --radius: 2px;

  /* コミック調の影(ぼかしなしのオフセット影) */
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  /* スクリーントーン背景(黒ドットを敷き詰める) */
  --tone: radial-gradient(var(--ink) var(--tone-dot), transparent calc(var(--tone-dot) + 2%));
}

/* ダークモード(OS のダーク設定が ON のときだけインクと紙を反転) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece8df;
    --paper: #14110e;
    --paper-card: #1d1a16;
    --ink-muted: #9b958a;
    --ink-faint: #5a554c;
  }
}

/* Scroll-driven animation 用の registered custom property */
@property --header-bg-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ===== 文字まわりの基本設定 ===== */
html {
  font-feature-settings:
    "palt" 1,
    "pkna" 1;
}

body {
  background-color: var(--paper);
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

main
  a:not(
    .gallery-item a,
    .timeline-media a,
    .nav-toggle,
    .site-name,
    .drawer-close,
    .manga-page,
    .artwork-footer-back
  ) {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  font-weight: 700;
  transition: background-size 0.15s;
}

main
  a:not(
    .gallery-item a,
    .timeline-media a,
    .nav-toggle,
    .site-name,
    .drawer-close,
    .manga-page,
    .artwork-footer-back
  ):hover {
  background-size: 100% 100%;
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.35;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
  border-bottom: 5px solid var(--ink);
}

h2 {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  padding-left: 0.7rem;
  letter-spacing: 0.02em;
  border-left: 8px solid var(--ink);
}

h3 {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px dashed var(--ink);
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}

h4::before {
  content: "▶ ";
}

h5 {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.08em;
}

h6 {
  font-family: var(--font-ja);
  font-size: 0.85rem;
  font-weight: 400;
  margin: 1.25rem 0 0.4rem;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
}

p + p {
  margin-top: 1em;
}

/* ===== 強調 / 引用 / 区切り / コード ===== */
/* em: 傍点(日本語の伝統的な強調) */
em {
  font-style: normal;
  font-weight: 700;
  text-emphasis: filled dot var(--ink);
  -webkit-text-emphasis: filled dot var(--ink);
  text-emphasis-position: over right;
  -webkit-text-emphasis-position: over right;
}

/* strong: スクリーントーンの帯下線 */
strong {
  font-weight: 900;
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  background-position: 0 100%;
  background-repeat: repeat-x;
  padding-bottom: 0.1em;
}

/* mark: 黒ベタ反転(漫画のベタ塗りコマ風) */
mark {
  background: var(--ink);
  color: var(--paper);
  padding: 0.05em 0.4em;
  font-weight: 700;
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.25em;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  background: var(--paper-card);
  box-shadow: var(--shadow-hard-sm);
}

blockquote p {
  font-weight: 500;
}

ul {
  margin: 1em 0;
  padding-left: 1.6em;
  list-style: none;
}

ul > li {
  position: relative;
}

ul > li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.7em;
  width: 0.5em;
  height: 0.5em;
  background: var(--ink);
}

ol {
  margin: 1em 0;
  padding-left: 1.75em;
  list-style: decimal;
}

ol::marker {
  font-weight: 900;
}

dl {
  margin: 1em 0;
}

dt {
  font-weight: 900;
  margin-top: 0.75em;
}

dd {
  margin-left: 1.5em;
}

table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
}

th,
td {
  padding: 0.55em 0.85em;
  border: 1px solid var(--ink);
  text-align: left;
}

th {
  font-weight: 900;
  background: var(--ink);
  color: var(--paper);
}

hr {
  border: 0;
  height: 8px;
  margin: 2em 0;
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  background-repeat: repeat;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 0.1em 0.4em;
}

pre {
  margin: 1.5em 0;
  padding: 1em;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== フォーム要素 ===== */
label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.3em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 0.95rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}

textarea {
  width: 100%;
  min-height: 4rem;
  margin: 0.5rem 0;
  resize: vertical;
}

select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  border-color: var(--ink);
}

.form-actions {
  display: block;
  text-align: center;
}

/* ===== 画面上部の固定ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 3px solid transparent;
  background: color-mix(in oklab, var(--paper) calc(var(--header-bg-alpha) * 92%), transparent);
  backdrop-filter: blur(6px);
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solidify linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80px;
  }

  @keyframes header-solidify {
    from {
      --header-bg-alpha: 0;
      border-bottom-color: transparent;
    }
    to {
      --header-bg-alpha: 1;
      border-bottom-color: var(--ink);
    }
  }
}

/* JS fallback (main.js が .scrolled クラスを付与) */
.site-header.scrolled {
  --header-bg-alpha: 1;
  border-bottom-color: var(--ink);
}

.site-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ===== ナビゲーション =====
   1 つの <nav class="site-nav"> をリンク編集の唯一の場所として運用する。
   SP では .drawer を popover + transform: translateX で右からスライドインするドロワー化、
   PC では .drawer を display: contents でフラット化してヘッダー内インラインにする。 */

.drawer {
  --drawer-width: min(20rem, 80dvw);
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--drawer-width);
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 3px solid var(--ink);
  background-color: var(--paper-card);
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  color: var(--ink);
  overflow: hidden;
  transform: translateX(105%);
  transition:
    transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1),
    display 0.28s allow-discrete,
    overlay 0.28s allow-discrete;
}

.drawer:popover-open {
  transform: translateX(0);
}

@starting-style {
  .drawer:popover-open {
    transform: translateX(105%);
  }
}

.drawer::backdrop {
  background: rgba(8, 6, 4, 0.55);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    display 0.28s allow-discrete,
    overlay 0.28s allow-discrete;
}

.drawer:popover-open::backdrop {
  opacity: 1;
}

@starting-style {
  .drawer:popover-open::backdrop {
    opacity: 0;
  }
}

.site-nav {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  padding: 4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  /* base ul の list-style / margin を打ち消す */
  list-style: none;
  margin: 0;
}

.site-nav li::before {
  /* base ul li の dot マーカーを打ち消す */
  content: none;
}

.site-nav a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  letter-spacing: 0.04em;
}

.site-nav a[aria-current] {
  background: var(--ink);
  color: var(--paper);
  padding-left: 0.8rem;
}

.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 0.8rem;
}

.drawer-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 1;
}

.drawer-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper-card);
  touch-action: manipulation;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

/* PC: ヘッダー内インライン (768px以上) */
@media (min-width: 768px) {
  .drawer {
    display: contents;
  }

  .site-nav {
    display: block;
    height: auto;
    overflow: visible;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }

  .site-nav a {
    display: inline;
    padding: 0;
    border-bottom: 0;
    font-size: 1.15rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
  }

  .site-nav a[aria-current],
  .site-nav a:hover {
    background: transparent;
    padding-left: 0;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }

  .drawer-close,
  .nav-toggle {
    display: none;
  }
}

/* ===== 本文エリアの共通レイアウト ===== */
/* 本文は白い「誌面」パネルに乗せる(地のドットは外周の余白に覗かせる) */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 2rem auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 4rem;
  background-color: var(--paper-card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

section + section {
  margin-top: 4rem;
}

.page-title {
  font-family: var(--font-display), var(--font-ja);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4rem);
  text-align: center;
  letter-spacing: 0.04em;
  /* base h1 の罫線 / margin shorthand を上書き */
  margin: 0 0 2.5rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 0;
  position: relative;
}

.page-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 8px;
  margin: 1rem auto 0;
  background-color: var(--ink);
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  border: 2px solid var(--ink);
}

.section-title {
  font-family: var(--font-display), var(--font-ja);
  font-weight: 400;
  font-size: 1.45rem;
  /* base h2 の border-left / padding / margin shorthand を打ち消す */
  margin: 0 0 1.5rem;
  padding: 0.35rem 1rem;
  border-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}

/* ===== トップページの hero(コミックの表紙パネル風) ===== */
.hero {
  position: relative;
  margin-bottom: 3.5rem;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  border: 3px solid var(--ink);
  background-color: var(--paper-card);
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

/* 集中線風の放射グラデーションを薄く重ねる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 45%,
    color-mix(in oklab, var(--paper-card) 80%, transparent) 0deg,
    color-mix(in oklab, var(--paper-card) 80%, transparent) 2deg,
    transparent 2deg,
    transparent 5deg
  );
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 0.95;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: var(--font-display), var(--font-ja);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 6rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow:
    4px 4px 0 var(--paper-card),
    6px 6px 0 var(--ink);
}

/* ===== トップページの各セクション ===== */
.top-section-more {
  margin-top: 1.5rem;
  text-align: right;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.top-section-more a::after {
  content: " ▶";
  font-size: 0.8em;
}

.top-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* base ul の list-style / padding / margin / dot を打ち消す */
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.top-news-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}

.top-news-item::before {
  content: none;
}

.top-news-item time {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

/* ===== ギャラリー(/gallery/)漫画作品の一覧 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  /* base ul の list-style / padding / margin / dot を打ち消す */
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.gallery-grid.is-top {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.gallery-item {
  position: relative;
}

.gallery-item::before {
  content: none;
}

.gallery-item a {
  display: block;
  background: var(--paper-card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.gallery-item a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.gallery-thumb {
  display: block;
  /* 漫画の表紙らしい縦長トリミング */
  aspect-ratio: 3 / 4;
  border-bottom: 3px solid var(--ink);
  background-color: var(--paper);
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  display: block;
  padding: 0.7rem 0.8rem 0.9rem;
}

.gallery-caption-title {
  display: block;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.35;
}

.gallery-caption-meta {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* ===== 作品詳細ページ(/gallery/NNN.html) ===== */
.artwork-back {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--ink-muted);
}

.artwork-back:hover {
  color: var(--ink);
}

.artwork-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  /* base h1 の罫線 / margin shorthand を打ち消す */
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 5px solid var(--ink);
  text-wrap: balance;
}

.artwork-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--font-ja);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.artwork-meta .media {
  font-family: var(--font-ja);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.15rem 0.7rem;
}

.artwork-desc {
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* 連続読みの案内(漫画リーダーの前に置く一文) */
.manga-read-note {
  margin: 1.5rem 0;
  padding: 0.7rem 1rem;
  border: 2px dashed var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.manga-read-note::before {
  content: "▶ ";
}

/* 漫画リーダー本体(ページを縦に積む web 漫画ビュー) */
.manga-reader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  /* base ul を使わないが念のため list-style 系の影響を打ち消す */
  list-style: none;
  padding: 0;
}

.manga-page {
  display: block;
  width: 100%;
  max-width: 760px;
  border: 3px solid var(--ink);
  background: var(--paper-card);
  box-shadow: var(--shadow-hard-sm);
  cursor: zoom-in;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.manga-page:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.manga-page img {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--ink);
}

.artwork-footer-back {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  transition: transform 0.12s ease;
}

.artwork-footer-back:hover {
  transform: translateY(-2px);
}

/* ===== お知らせ一覧(/news/) ===== */
.news-list {
  display: flex;
  flex-direction: column;
  /* base ul の list-style / padding / margin / dot を打ち消す */
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.news-item {
  padding: 1.5rem 0;
  border-bottom: 2px dashed var(--ink);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: start;
}

.news-item::before {
  content: none;
}

.news-date {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.news-body {
  font-size: 0.96rem;
}

@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .top-news-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ===== aboutページ ===== */
.about-section {
  margin-bottom: 2.5rem;
}

.about-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.about-list dt {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  /* base dt の margin-top を打ち消す(grid 表示で不要) */
  margin-top: 0;
}

/* ===== タグ(# 表記。tags.html のサンプル用) ===== */
.novel-tag {
  font-size: 0.82rem;
  font-weight: 700;
}

.novel-tag::before {
  content: "# ";
}

/* ===== 注意書きボックス(tags.html のサンプル用) ===== */
.caution {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  background: var(--paper-card);
}

.caution-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.caution-title::before {
  content: "⚠ ";
}

.caution p + p {
  margin-top: 0.5em;
}

/* ===== つぶやきタイムライン(/timeline.html) ===== */
.timeline {
  /* base ul の list-style / padding を打ち消す */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  padding: 1.5rem;
  border: 2px solid var(--ink);
  background-color: var(--paper-card);
  box-shadow: var(--shadow-hard-sm);
}

.timeline-item::before {
  content: none;
}

.timeline-item.is-pinned {
  border-width: 3px;
  background-image: var(--tone);
  background-size: var(--tone-size) var(--tone-size);
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.timeline-pin {
  font-family: var(--font-ja);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.15rem 0.7rem;
}

.timeline-time {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.timeline-body {
  line-height: 1.85;
}

.timeline-body p {
  margin: 0 0 0.75em;
  text-wrap: pretty;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

.timeline-media {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

/* 画像が 1 枚のときは横いっぱいに引き伸ばさない */
.timeline-media:has(a:only-child) {
  grid-template-columns: minmax(0, 320px);
}

.timeline-media a {
  display: block;
}

.timeline-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
}

/* ===== 「まだありません」表示 ===== */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  border: 3px dashed var(--ink);
}
</style>

動き・メニュー開閉(共通・head か body の末尾に貼る)

<script>
function init() {
  const drawer = document.getElementById("drawer");
  const openBtn = document.querySelector(".nav-toggle");
  const closeBtn = drawer?.querySelector(".drawer-close");
  const sheet = drawer?.querySelector(".site-nav");
  const main = document.querySelector("main");

  if (drawer && openBtn && sheet && main) {
    function openDrawer() {
      drawer.showPopover();
      document.documentElement.style.overflow = "hidden";
      document.body.style.overflow = "hidden";
      main.inert = true;
      openBtn.setAttribute("aria-expanded", "true");
      requestAnimationFrame(() => sheet.focus());
    }

    function closeDrawer() {
      drawer.hidePopover();
      document.documentElement.style.overflow = "";
      document.body.style.overflow = "";
      main.inert = false;
      openBtn.setAttribute("aria-expanded", "false");
    }

    openBtn.addEventListener("click", () => {
      if (drawer.matches(":popover-open")) {
        closeDrawer();
      } else {
        openDrawer();
      }
    });

    closeBtn?.addEventListener("click", closeDrawer);

    // backdrop tap または drawer 内の sheet 外領域 click で close
    drawer.addEventListener("click", (event) => {
      if (!sheet.contains(event.target)) closeDrawer();
    });

    document.addEventListener("keydown", (event) => {
      if (event.key === "Escape" && drawer.matches(":popover-open")) {
        closeDrawer();
      }
    });
  }

  // sticky header 不透明化の fallback (animation-timeline 未対応時)
  if (!CSS.supports("animation-timeline: scroll()")) {
    const header = document.querySelector(".site-header");
    if (header) {
      const onScroll = () => {
        header.classList.toggle("scrolled", window.scrollY > 80);
      };
      document.addEventListener("scroll", onScroll, { passive: true });
      onScroll();
    }
  }
}

// head / body どちらに置いても動くよう DOM 構築完了を待つ
if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", init);
} else {
  init();
}
</script>

レイアウトの外枠(共通・ヘッダーと本文の枠)

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <!-- ここにページの内容を入れる -->
    </main>

■ 各ページの本文だけ(上の「レイアウトの外枠」の <main> の中に入れる)

TOPページ:本文だけ

      <section class="hero">
        <h1 class="hero-title">site name</h1>
      </section>

      <section class="top-section">
        <h2 class="section-title">about</h2>
        <p>
          ようこそ。ここは漫画を置いている個人サイトです。
          短編から連載まで、白と黒だけで描いた作品をのんびり公開しています。
        </p>
        <p class="top-section-more">
          <a href="/about.html">about を読む</a>
        </p>
      </section>

      <section class="top-section">
        <h2 class="section-title">comics</h2>
        <ul class="gallery-grid is-top">
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-01/600/800?grayscale"
                  alt="作品サムネイル: 真夜中の怪談"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">真夜中の怪談</span>
                <span class="gallery-caption-meta">May 23, 2026 / 全 4 ページ</span>
              </span>
            </a>
          </li>
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-02/600/800?grayscale"
                  alt="作品サムネイル: 放課後の屋上"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">放課後の屋上</span>
                <span class="gallery-caption-meta">May 10, 2026 / 全 8 ページ</span>
              </span>
            </a>
          </li>
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-03/600/800?grayscale"
                  alt="作品サムネイル: 星を売る店"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">星を売る店</span>
                <span class="gallery-caption-meta">May 1, 2026 / 全 6 ページ</span>
              </span>
            </a>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/gallery/index.html">作品一覧</a>
        </p>
      </section>

      <section class="top-section">
        <h2 class="section-title">news</h2>
        <ul class="top-news-list">
          <li class="top-news-item">
            <time datetime="2026-05-23">May 23, 2026</time>
            <span>新作「真夜中の怪談」を公開しました。</span>
          </li>
          <li class="top-news-item">
            <time datetime="2026-05-10">May 10, 2026</time>
            <span>サイトをリニューアルしました。</span>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/news/index.html">お知らせ一覧</a>
        </p>
      </section>

自己紹介ページ:本文だけ

      <h1 class="page-title">about</h1>

      <section class="about-section">
        <h2 class="section-title">about</h2>
        <p>
          個人で運営している漫画のサイトです。
          商業活動とは無関係に、描きたいときに描いたものを白黒で公開しています。
        </p>
      </section>

      <section class="about-section">
        <h2 class="section-title">about me</h2>
        <dl class="about-list">
          <dt>HN</dt>
          <dd>(your name)</dd>
          <dt>創作ジャンル</dt>
          <dd>漫画 / 読み切り / 連載 / 現代</dd>
          <dt>連絡先</dt>
          <dd><a href="mailto:hello@example.com">hello@example.com</a></dd>
        </dl>
      </section>

      <section class="about-section">
        <h2 class="section-title">notes</h2>
        <p>
          当サイトの画像の無断転載・無断利用はご遠慮ください。
          作品にはフィクションが含まれます。実在の人物・団体とは関係ありません。
        </p>
      </section>

漫画一覧ページ:本文だけ

      <h1 class="page-title">gallery</h1>

      <ul class="gallery-grid">
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/7b5cff/ffffff/600x600.png?text=art+01"
                alt="作品サムネイル: 夏の終わり"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">夏の終わり</span>
              <span class="gallery-caption-meta">2026.05.23 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/37d4e8/ffffff/600x600.png?text=art+02"
                alt="作品サムネイル: 放課後"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">放課後</span>
              <span class="gallery-caption-meta">2026.05.10 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/ff5fa2/ffffff/600x600.png?text=art+03"
                alt="作品サムネイル: 星をのむ"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">星をのむ</span>
              <span class="gallery-caption-meta">2026.05.01 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/9a82ff/ffffff/600x600.png?text=art+04"
                alt="作品サムネイル: 雨上がり"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">雨上がり</span>
              <span class="gallery-caption-meta">2026.04.18 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/5ce0f0/ffffff/600x600.png?text=art+05"
                alt="作品サムネイル: 真夜中の電話"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">真夜中の電話</span>
              <span class="gallery-caption-meta">2026.04.02 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/ff7ab3/ffffff/600x600.png?text=art+06"
                alt="作品サムネイル: 春の予感"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">春の予感</span>
              <span class="gallery-caption-meta">2026.03.20 / illustration</span>
            </span>
          </a>
        </li>
      </ul>

      <!-- 作品が無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">作品はまだありません。</p> -->

漫画個別ページ:本文だけ

      <a href="/gallery/index.html" class="artwork-back">← back to gallery</a>

      <article>
        <h1 class="artwork-title">真夜中の怪談</h1>
        <div class="artwork-meta">
          <time datetime="2026-05-23">May 23, 2026</time>
          <span class="media">読み切り</span>
          <span>全 4 ページ</span>
        </div>

        <p class="artwork-desc">
          深夜のラジオ番組に届いた、一通のお便りから始まる短い怪談です。 二次創作 /
          オリジナルの別、配布・利用の可否などをここに書いてください。
        </p>

        <p class="manga-read-note">
          ページをクリックすると全画面で連続して読めます(左右スワイプ / 矢印キーでページ送り)。
        </p>

        <div class="manga-reader" id="manga-pages">
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-1/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-1/800/1130?grayscale"
              alt="真夜中の怪談 1 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-2/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-2/800/1130?grayscale"
              alt="真夜中の怪談 2 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-3/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-3/800/1130?grayscale"
              alt="真夜中の怪談 3 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-4/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-4/800/1130?grayscale"
              alt="真夜中の怪談 4 ページ目"
            >
          </a>
        </div>

        <footer class="artwork-footer">
          <a href="/gallery/index.html" class="artwork-footer-back">back to gallery</a>
        </footer>
      </article>

お知らせ一覧ページ:本文だけ

      <h1 class="page-title">news</h1>

      <ul class="news-list">
        <li class="news-item">
          <time class="news-date" datetime="2026-05-23">2026.05.23</time>
          <p class="news-body">about ページを追加しました。</p>
        </li>
        <li class="news-item">
          <time class="news-date" datetime="2026-05-10">2026.05.10</time>
          <p class="news-body">サイトをリニューアルしました。</p>
        </li>
        <li class="news-item">
          <time class="news-date" datetime="2026-05-01">2026.05.01</time>
          <p class="news-body">サイトを開設しました。</p>
        </li>
      </ul>

      <!-- お知らせが無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">お知らせはまだありません。</p> -->

つぶやきタイムラインページ:本文だけ

      <h1 class="page-title">timeline</h1>
      <ul class="timeline">
        <li class="timeline-item is-pinned">
          <div class="timeline-meta">
            <span class="timeline-pin">pinned</span>
            <time class="timeline-time" datetime="2026-06-14T10:30">2026.06.14 10:30</time>
          </div>
          <div class="timeline-body">
            <p>
              ピン留めしたつぶやき。固定したいお知らせや、いちばん上に置いておきたい一言をここに。
            </p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-13T22:05">2026.06.13 22:05</time>
          </div>
          <div class="timeline-body">
            <p>画像を複数そえたつぶやき。日々の記録や作業の途中経過などを、写真と一緒に短く。</p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-12T09:12">2026.06.12 09:12</time>
          </div>
          <div class="timeline-body">
            <p>テキストだけの短いつぶやき。ひとことメモやリンクの共有に。</p>
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-10T18:40">2026.06.10 18:40</time>
          </div>
          <div class="timeline-body">
            <p>画像を1枚そえたつぶやき。</p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
      </ul>

      <!-- つぶやきが無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">まだつぶやきはありません。</p> -->

■ 各ページまるごと(HTML ファイルを 1 から作る人向け・body の中身全部)

TOPページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <section class="hero">
        <h1 class="hero-title">site name</h1>
      </section>

      <section class="top-section">
        <h2 class="section-title">about</h2>
        <p>
          ようこそ。ここは漫画を置いている個人サイトです。
          短編から連載まで、白と黒だけで描いた作品をのんびり公開しています。
        </p>
        <p class="top-section-more">
          <a href="/about.html">about を読む</a>
        </p>
      </section>

      <section class="top-section">
        <h2 class="section-title">comics</h2>
        <ul class="gallery-grid is-top">
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-01/600/800?grayscale"
                  alt="作品サムネイル: 真夜中の怪談"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">真夜中の怪談</span>
                <span class="gallery-caption-meta">May 23, 2026 / 全 4 ページ</span>
              </span>
            </a>
          </li>
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-02/600/800?grayscale"
                  alt="作品サムネイル: 放課後の屋上"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">放課後の屋上</span>
                <span class="gallery-caption-meta">May 10, 2026 / 全 8 ページ</span>
              </span>
            </a>
          </li>
          <li class="gallery-item">
            <a href="/gallery/001.html">
              <span class="gallery-thumb">
                <img
                  src="https://picsum.photos/seed/manga-03/600/800?grayscale"
                  alt="作品サムネイル: 星を売る店"
                >
              </span>
              <span class="gallery-caption">
                <span class="gallery-caption-title">星を売る店</span>
                <span class="gallery-caption-meta">May 1, 2026 / 全 6 ページ</span>
              </span>
            </a>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/gallery/index.html">作品一覧</a>
        </p>
      </section>

      <section class="top-section">
        <h2 class="section-title">news</h2>
        <ul class="top-news-list">
          <li class="top-news-item">
            <time datetime="2026-05-23">May 23, 2026</time>
            <span>新作「真夜中の怪談」を公開しました。</span>
          </li>
          <li class="top-news-item">
            <time datetime="2026-05-10">May 10, 2026</time>
            <span>サイトをリニューアルしました。</span>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/news/index.html">お知らせ一覧</a>
        </p>
      </section>
    </main>

自己紹介ページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <h1 class="page-title">about</h1>

      <section class="about-section">
        <h2 class="section-title">about</h2>
        <p>
          個人で運営している漫画のサイトです。
          商業活動とは無関係に、描きたいときに描いたものを白黒で公開しています。
        </p>
      </section>

      <section class="about-section">
        <h2 class="section-title">about me</h2>
        <dl class="about-list">
          <dt>HN</dt>
          <dd>(your name)</dd>
          <dt>創作ジャンル</dt>
          <dd>漫画 / 読み切り / 連載 / 現代</dd>
          <dt>連絡先</dt>
          <dd><a href="mailto:hello@example.com">hello@example.com</a></dd>
        </dl>
      </section>

      <section class="about-section">
        <h2 class="section-title">notes</h2>
        <p>
          当サイトの画像の無断転載・無断利用はご遠慮ください。
          作品にはフィクションが含まれます。実在の人物・団体とは関係ありません。
        </p>
      </section>
    </main>

漫画一覧ページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <h1 class="page-title">gallery</h1>

      <ul class="gallery-grid">
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/7b5cff/ffffff/600x600.png?text=art+01"
                alt="作品サムネイル: 夏の終わり"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">夏の終わり</span>
              <span class="gallery-caption-meta">2026.05.23 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/37d4e8/ffffff/600x600.png?text=art+02"
                alt="作品サムネイル: 放課後"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">放課後</span>
              <span class="gallery-caption-meta">2026.05.10 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/ff5fa2/ffffff/600x600.png?text=art+03"
                alt="作品サムネイル: 星をのむ"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">星をのむ</span>
              <span class="gallery-caption-meta">2026.05.01 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/9a82ff/ffffff/600x600.png?text=art+04"
                alt="作品サムネイル: 雨上がり"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">雨上がり</span>
              <span class="gallery-caption-meta">2026.04.18 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/5ce0f0/ffffff/600x600.png?text=art+05"
                alt="作品サムネイル: 真夜中の電話"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">真夜中の電話</span>
              <span class="gallery-caption-meta">2026.04.02 / illustration</span>
            </span>
          </a>
        </li>
        <li class="gallery-item">
          <a href="/gallery/001.html">
            <span class="gallery-thumb">
              <img
                src="https://placehold.jp/30/ff7ab3/ffffff/600x600.png?text=art+06"
                alt="作品サムネイル: 春の予感"
              >
            </span>
            <span class="gallery-caption">
              <span class="gallery-caption-title">春の予感</span>
              <span class="gallery-caption-meta">2026.03.20 / illustration</span>
            </span>
          </a>
        </li>
      </ul>

      <!-- 作品が無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">作品はまだありません。</p> -->
    </main>

漫画個別ページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <a href="/gallery/index.html" class="artwork-back">← back to gallery</a>

      <article>
        <h1 class="artwork-title">真夜中の怪談</h1>
        <div class="artwork-meta">
          <time datetime="2026-05-23">May 23, 2026</time>
          <span class="media">読み切り</span>
          <span>全 4 ページ</span>
        </div>

        <p class="artwork-desc">
          深夜のラジオ番組に届いた、一通のお便りから始まる短い怪談です。 二次創作 /
          オリジナルの別、配布・利用の可否などをここに書いてください。
        </p>

        <p class="manga-read-note">
          ページをクリックすると全画面で連続して読めます(左右スワイプ / 矢印キーでページ送り)。
        </p>

        <div class="manga-reader" id="manga-pages">
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-1/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-1/800/1130?grayscale"
              alt="真夜中の怪談 1 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-2/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-2/800/1130?grayscale"
              alt="真夜中の怪談 2 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-3/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-3/800/1130?grayscale"
              alt="真夜中の怪談 3 ページ目"
            >
          </a>
          <a
            class="manga-page"
            href="https://picsum.photos/seed/kaidan-4/800/1130?grayscale"
            data-pswp-width="800"
            data-pswp-height="1130"
          >
            <img
              src="https://picsum.photos/seed/kaidan-4/800/1130?grayscale"
              alt="真夜中の怪談 4 ページ目"
            >
          </a>
        </div>

        <footer class="artwork-footer">
          <a href="/gallery/index.html" class="artwork-footer-back">back to gallery</a>
        </footer>
      </article>
    </main>


    <!-- 全画面連続読み(PhotoSwipe v5)。#manga-pages 内の各 .manga-page を 1 枚ずつ表示する -->
    <script type="module">
    import PhotoSwipeLightbox from "https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe-lightbox.esm.min.js";

    const lightbox = new PhotoSwipeLightbox({
      gallery: "#manga-pages",
      children: "a.manga-page",
      pswpModule: () =>
        import("https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe.esm.min.js"),
    });
    lightbox.init();
    </script>

お知らせ一覧ページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <h1 class="page-title">news</h1>

      <ul class="news-list">
        <li class="news-item">
          <time class="news-date" datetime="2026-05-23">2026.05.23</time>
          <p class="news-body">about ページを追加しました。</p>
        </li>
        <li class="news-item">
          <time class="news-date" datetime="2026-05-10">2026.05.10</time>
          <p class="news-body">サイトをリニューアルしました。</p>
        </li>
        <li class="news-item">
          <time class="news-date" datetime="2026-05-01">2026.05.01</time>
          <p class="news-body">サイトを開設しました。</p>
        </li>
      </ul>

      <!-- お知らせが無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">お知らせはまだありません。</p> -->
    </main>

つぶやきタイムラインページ:body まるごと

    <header class="site-header">
      <div class="site-header-inner">
        <a href="/index.html" class="site-name">site name</a>
        <div class="drawer" id="drawer" popover="manual">
          <button class="drawer-close" type="button" aria-label="メニューを閉じる">✕</button>
          <nav class="site-nav" tabindex="-1" aria-label="サイト内ナビゲーション">
            <ul>
              <li><a href="/index.html">top</a></li>
              <li><a href="/about.html">about</a></li>
              <li><a href="/gallery/index.html">gallery</a></li>
              <li><a href="/news/index.html">news</a></li>
              <li><a href="/timeline.html">timeline</a></li>
              <li><a href="/tags.html">tags</a></li>
              <li><a href="/code.html">code</a></li>
            </ul>
          </nav>
        </div>
        <button
          class="nav-toggle"
          type="button"
          aria-label="メニューを開く"
          aria-expanded="false"
          aria-controls="drawer"
        >
          <svg
            aria-hidden="true"
            viewBox="0 0 24 24"
            width="24"
            height="24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
            stroke-linecap="round"
          >
            <path d="M3 6h18M3 12h18M3 18h18" />
          </svg>
        </button>
      </div>
    </header>

    <main class="site-main">
      <h1 class="page-title">timeline</h1>
      <ul class="timeline">
        <li class="timeline-item is-pinned">
          <div class="timeline-meta">
            <span class="timeline-pin">pinned</span>
            <time class="timeline-time" datetime="2026-06-14T10:30">2026.06.14 10:30</time>
          </div>
          <div class="timeline-body">
            <p>
              ピン留めしたつぶやき。固定したいお知らせや、いちばん上に置いておきたい一言をここに。
            </p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-13T22:05">2026.06.13 22:05</time>
          </div>
          <div class="timeline-body">
            <p>画像を複数そえたつぶやき。日々の記録や作業の途中経過などを、写真と一緒に短く。</p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-12T09:12">2026.06.12 09:12</time>
          </div>
          <div class="timeline-body">
            <p>テキストだけの短いつぶやき。ひとことメモやリンクの共有に。</p>
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-meta">
            <time class="timeline-time" datetime="2026-06-10T18:40">2026.06.10 18:40</time>
          </div>
          <div class="timeline-body">
            <p>画像を1枚そえたつぶやき。</p>
          </div>
          <div class="timeline-media">
            <a
              href="https://placehold.jp/1200x800.png"
              data-pswp-width="1200"
              data-pswp-height="800"
              target="_blank"
              rel="noopener"
              ><img
                src="https://placehold.jp/300x200.png"
                alt="添付画像"
                width="300"
                height="200"
              ></a
            >
          </div>
        </li>
      </ul>

      <!-- つぶやきが無いときは上の <ul> を削除して以下を表示 -->
      <!-- <p class="empty">まだつぶやきはありません。</p> -->
    </main>

    <!-- つぶやき添付画像の拡大表示(PhotoSwipe v5)。各 .timeline-media を 1 ギャラリーとして扱う -->
    <script type="module">
    import PhotoSwipeLightbox from "https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe-lightbox.esm.min.js";

    for (const media of document.querySelectorAll(".timeline-media")) {
      const lightbox = new PhotoSwipeLightbox({
        gallery: media,
        children: "a",
        pswpModule: () =>
          import("https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe.esm.min.js"),
      });
      lightbox.init();
    }
    </script>