code

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

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

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

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">
    <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=Outfit:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap"
      rel="stylesheet"
    >

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

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

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

  /* テーマカラー 3 色 — この 3 色を差し替えるとサイト全体の雰囲気が変わります */
  --c1: #ff5fa2; /* ピンク */
  --c2: #7b5cff; /* パープル */
  --c3: #37d4e8; /* シアン */

  /* ベースの色(ライトモード) */
  --color-bg: #faf8ff;
  --color-card: #ffffff;
  --color-text: #1a1530;
  --color-muted: #6b6488;
  --color-faint: #a9a3c2;
  --color-line: #e7e3f3;

  /* フォント */
  --font-en: "Outfit", sans-serif;
  --font-ja: "Zen Maru Gothic", sans-serif;
  --font-body: var(--font-en), var(--font-ja);

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

  /* 多色メッシュグラデーション(hero / セクションの背景に使う) */
  --mesh:
    radial-gradient(at 16% 20%, color-mix(in oklab, var(--c1) 60%, transparent), transparent 46%),
    radial-gradient(at 84% 14%, color-mix(in oklab, var(--c2) 55%, transparent), transparent 46%),
    radial-gradient(at 70% 82%, color-mix(in oklab, var(--c3) 52%, transparent), transparent 50%),
    radial-gradient(at 24% 88%, color-mix(in oklab, var(--c2) 38%, transparent), transparent 48%);
}

/* ダークモード(OS のダーク設定が ON のときだけ上の色を上書き) */
@media (prefers-color-scheme: dark) {
  :root {
    --c1: #ff7ab3;
    --c2: #9a82ff;
    --c3: #5ce0f0;

    --color-bg: #0c0a18;
    --color-card: #15122a;
    --color-text: #ece8fb;
    --color-muted: #9b94bd;
    --color-faint: #5b5480;
    --color-line: #26203f;
  }
}

/* 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: var(--color-bg);
  color: var(--color-text);
  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: color-mix(in oklab, var(--c2) 30%, transparent);
}

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

main
  a:not(
    .gallery-item a,
    .novel-card a,
    .nav-toggle,
    .site-name,
    .drawer-close,
    .novel-footer-back,
    .artwork-footer-back
  ) {
  background-image: linear-gradient(var(--c2), var(--c2));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size 0.2s;
}

main
  a:not(
    .gallery-item a,
    .novel-card a,
    .nav-toggle,
    .site-name,
    .drawer-close,
    .novel-footer-back,
    .artwork-footer-back
  ):hover {
  background-image: linear-gradient(100deg, var(--c1), var(--c3));
  background-size: 100% 2px;
}

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

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

h1 {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.6rem;
  letter-spacing: 0.01em;
  border-bottom: 3px solid;
  border-image: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3)) 1;
}

h2 {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2rem 0 0.85rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--c1);
}

h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.75rem 0 0.6rem;
  color: var(--color-text);
}

h5 {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c2);
}

h6 {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--color-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

/* ===== 強調 / 引用 / 区切り / コード ===== */
em {
  font-style: normal;
  font-weight: 500;
  color: var(--c2);
}

strong {
  font-weight: 700;
  color: var(--color-text);
  background-image: linear-gradient(
    transparent 60%,
    color-mix(in oklab, var(--c1) 35%, transparent) 60%
  );
}

mark {
  background: transparent;
  color: var(--color-text);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  background-image: linear-gradient(
    100deg,
    color-mix(in oklab, var(--c3) 38%, transparent),
    color-mix(in oklab, var(--c2) 30%, transparent)
  );
}

blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--c3);
  background: color-mix(in oklab, var(--c3) 8%, transparent);
  color: var(--color-muted);
}

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.75em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--c1), var(--c2));
}

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

ol::marker {
  color: var(--c2);
}

dl {
  margin: 1em 0;
}

dt {
  font-weight: 700;
  margin-top: 0.75em;
  color: var(--c2);
}

dd {
  margin-left: 1.5em;
}

table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  font-weight: 700;
  color: var(--c2);
  border-bottom: 2px solid color-mix(in oklab, var(--c2) 40%, var(--color-line));
}

hr {
  border: 0;
  height: 2px;
  border-radius: 2px;
  margin: 2em 0;
  background: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
  opacity: 0.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: color-mix(in oklab, var(--c2) 12%, transparent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

pre {
  margin: 1.5em 0;
  padding: 1em;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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

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

@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(--color-line);
    }
  }
}

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

.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-en);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c2);
}

/* ===== ナビゲーション =====
   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;
  background: var(--color-card);
  border-left: 1px solid var(--color-line);
  box-shadow: -8px 0 32px -12px color-mix(in oklab, var(--c2) 40%, transparent);
  color: var(--color-text);
  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: color-mix(in oklab, var(--c2) 35%, rgba(8, 6, 20, 0.6));
  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-en);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  letter-spacing: 0.005em;
}

.site-nav a[aria-current] {
  color: var(--c2);
}

.site-nav a:hover {
  color: var(--c1);
}

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

.drawer-close:hover {
  border-color: var(--c1);
  color: var(--c1);
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-text);
  touch-action: manipulation;
}

.nav-toggle:hover {
  background: color-mix(in oklab, var(--c2) 12%, transparent);
}

/* 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: 0.95rem;
    color: var(--color-muted);
  }

  .site-nav a[aria-current] {
    color: var(--c2);
  }

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

/* ===== 本文エリアの共通レイアウト ===== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

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

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

.page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
}

.section-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.4rem;
  /* base h2 の margin shorthand を打ち消す(::after で下線代替) */
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 6px;
  flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2) 55%, var(--c3));
}

/* ===== トップページの hero(背後にぼかしメッシュ光) ===== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
  margin-bottom: 3.5rem;
}

/* メッシュを敷き詰めず、背後のぼんやりした光として効かせる */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(150%, 760px);
  aspect-ratio: 1.5 / 1;
  transform: translate(-50%, -50%);
  background-image: var(--mesh);
  filter: blur(64px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-title {
  margin: 0;
  line-height: 1.02;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: var(--font-en), var(--font-ja);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 4.75rem);
  letter-spacing: -0.03em;
  color: var(--c2);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title {
    background: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ===== トップページの各セクション ===== */
.top-section-more {
  margin-top: 1.5rem;
  text-align: right;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.95rem;
}

.top-section-more a {
  color: var(--c2);
}

.top-section-more a::after {
  content: " →";
}

.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-en);
  font-weight: 500;
  color: var(--c2);
}

/* ===== ギャラリー(/gallery/) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  /* 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(180px, 1fr));
}

.gallery-item {
  position: relative;
}

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

.gallery-item a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--c2) 10%, transparent);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -10px color-mix(in oklab, var(--c2) 55%, transparent);
}

.gallery-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
}

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

.gallery-caption {
  display: block;
  padding: 0.75rem 0.85rem 1rem;
}

.gallery-caption-title {
  display: block;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

.gallery-caption-meta {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ===== 作品(イラスト)詳細ページ(/gallery/NNN.html) ===== */
.artwork-back,
.novel-back {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: inline-block;
  color: var(--color-muted);
}

.artwork-back:hover,
.novel-back:hover {
  color: var(--c1);
}

.artwork-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
}

.artwork-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  /* base h1 の罫線 / margin shorthand を打ち消す */
  margin: 0 0 0.85rem;
  padding-bottom: 0;
  border-bottom: 0;
  text-wrap: balance;
}

.artwork-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.artwork-meta .media {
  font-family: var(--font-ja);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c2);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--c2) 14%, transparent);
}

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

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

.artwork-footer-back,
.novel-footer-back {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3));
  transition: filter 0.2s ease;
}

.artwork-footer-back:hover,
.novel-footer-back:hover {
  filter: brightness(1.08) saturate(1.1);
}

/* ===== 作品一覧(/novels/) ===== */
.novels-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* base ul の list-style / padding / margin / dot を打ち消す */
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.novel-card::before {
  content: none;
}

.novel-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-left: 4px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.novel-card a:hover {
  border-left-color: var(--c1);
  box-shadow: 0 10px 26px -14px color-mix(in oklab, var(--c2) 60%, transparent);
}

.novel-card-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.35;
  /* base h2 の margin shorthand を打ち消す */
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.novel-card-meta {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.novel-card-cat {
  font-family: var(--font-ja);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c2);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--c2) 14%, transparent);
}

.novel-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
}

.novel-tag {
  font-size: 0.82rem;
  color: var(--c2);
}

.novel-tag::before {
  content: "# ";
  color: var(--c1);
}

.novel-card-excerpt {
  font-size: 0.96rem;
  color: var(--color-muted);
  text-wrap: pretty;
}

/* ===== 作品本文ページ(/novels/NNN.html) ===== */
.novel-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.novel-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  /* base h1 の罫線 / margin shorthand は .novel-header 側で持つので打ち消す */
  margin: 0 0 1rem;
  padding-bottom: 0;
  border-bottom: 0;
  text-wrap: balance;
}

.novel-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.caution {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--c1);
  background: color-mix(in oklab, var(--c1) 8%, transparent);
  font-size: 0.9rem;
}

.caution-title {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--c1);
}

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

.novel-body {
  max-width: var(--measure);
  margin: 2.5rem auto 3rem;
  font-size: 1rem;
  line-height: 1.95;
  text-align: justify;
  hanging-punctuation: allow-end;
  text-wrap: pretty;
}

.novel-body p + p {
  margin-top: 1.4em;
  text-indent: 1em;
}

.novel-body p:first-child {
  text-indent: 0;
}

.novel-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

/* ===== お知らせ一覧(/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: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: start;
}

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

.news-date {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--c2);
}

.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;
  }
}

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

.timeline-item {
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

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

.timeline-item.is-pinned {
  border-color: color-mix(in oklab, var(--c1) 45%, var(--color-line));
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--c1) 10%, var(--color-card)),
    color-mix(in oklab, var(--c2) 8%, var(--color-card))
  );
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-en);
  font-size: 0.8rem;
}

.timeline-pin {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, var(--c1), var(--c2) 60%, var(--c3));
}

.timeline-time {
  font-weight: 500;
  color: var(--c2);
}

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

.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: 1px solid var(--color-line);
  border-radius: 12px;
}

/* ===== 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-en);
  font-weight: 600;
  color: var(--c2);
  /* base dt の margin-top を打ち消す(grid 表示で不要) */
  margin-top: 0;
}

/* ===== 「まだありません」表示 ===== */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--color-muted);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}
</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="/novels/index.html">novels</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">illustrations</h2>
        <ul class="gallery-grid is-top">
          <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">May 23, 2026</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">May 10, 2026</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">May 1, 2026</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">stories</h2>
        <ul class="novels-list">
          <li class="novel-card">
            <a href="/novels/001.html">
              <h3 class="novel-card-title">銀河鉄道の夜</h3>
              <div class="novel-card-meta">
                <time datetime="2026-05-23">May 23, 2026</time>
                <span>5,200 字</span>
                <span class="novel-card-cat">Fiction</span>
              </div>
              <div class="novel-card-tags">
                <span class="novel-tag">短編</span>
                <span class="novel-tag">現代</span>
              </div>
              <p class="novel-card-excerpt">
                ぼんやりと白い銀河の正体を問われた日の放課後、ジョバンニは不思議な汽車に乗る。
              </p>
            </a>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/novels/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>about ページを追加しました。</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>
        <figure class="artwork-figure">
          <img
            src="https://placehold.jp/30/7b5cff/ffffff/1200x900.png?text=artwork"
            alt="作品: 夏の終わり"
          >
        </figure>

        <h1 class="artwork-title">夏の終わり</h1>
        <div class="artwork-meta">
          <time datetime="2026-05-23">May 23, 2026</time>
          <span class="media">illustration</span>
          <span>CLIP STUDIO PAINT</span>
        </div>

        <p class="artwork-desc">
          夕立のあとの、少しだけ涼しくなった空気を描きました。 二次創作 /
          オリジナルの別、版権元、配布・利用の可否などをここに書いてください。
        </p>

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

小説一覧ページ:本文だけ

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

      <ul class="novels-list">
        <li class="novel-card">
          <a href="/novels/001.html">
            <h2 class="novel-card-title">銀河鉄道の夜</h2>
            <div class="novel-card-meta">
              <time datetime="2026-05-23">2026.05.23</time>
              <span>5,200 字</span>
              <span class="novel-card-cat">小説</span>
            </div>
            <div class="novel-card-tags">
              <span class="novel-tag">短編</span>
              <span class="novel-tag">現代</span>
            </div>
            <p class="novel-card-excerpt">
              ぼんやりと白い銀河の正体を問われた日の放課後、ジョバンニは不思議な汽車に乗る。
            </p>
          </a>
        </li>
      </ul>

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

小説個別ページ:本文だけ

      <a href="/novels/index.html" class="novel-back">← 作品一覧へ</a>

      <article>
        <header class="novel-header">
          <h1 class="novel-title">銀河鉄道の夜</h1>
          <div class="novel-meta">
            <time datetime="2026-05-23">2026.05.23</time>
            <span>5,200 字</span>
            <span>短編 / 現代</span>
          </div>
        </header>

        <aside class="caution" role="note">
          <p class="caution-title">注意書き</p>
          <p>
            フィクションです。実在の人物・団体とは関係ありません。 R-18 / 暴力描写 /
            ネタバレ等を含む場合はここに明記してください。
          </p>
        </aside>

        <div class="novel-body">
          <p>
            「ではみなさんは、そういうふうに川だと言われたり、乳の流れたあとだと言われたりしていた、このぼんやりと白いものがほんとうは何かご承知ですか。」先生は、黒板に吊した大きな黒い星座の図の、上から下へ白くけぶった銀河帯のようなところを指しながら、みんなに問いをかけました。
          </p>
          <p>
            カムパネルラが手をあげました。それから四、五人手をあげました。ジョバンニも手をあげようとして、急いでそのままやめました。たしかにあれがみんな星だと、いつか雑誌で読んだのでしたが、このごろはジョバンニはまるで毎日教室でもねむく、本を読むひまも読む本もないので、なんだかどんなこともよくわからないという気持ちがするのでした。
          </p>
          <p>
            ところが先生は早くもそれを見つけたのでした。「ジョバンニさん。あなたはわかっているのでしょう。」ジョバンニは勢いよく立ちあがりましたが、立ってみるともうはっきりとそれを答えることができないのでした。
          </p>
          <p>
            ザネリが前の席からふりかえって、ジョバンニを見てくすっとわらいました。ジョバンニはもうどぎまぎしてまっ赤になってしまいました。先生がまた言いました。「大きな望遠鏡で銀河の星をよくしらべると銀河はだいたい何でしょう。」やはり星だとジョバンニは思いましたが、こんどもすぐに答えることができませんでした。
          </p>
          <p>
            先生はしばらく困ったようすでしたが、眼をカムパネルラのほうへ向けて、「ではカムパネルラさん。」と名指しました。するとあんなに元気に手をあげたカムパネルラが、やはりもじもじ立ちあがったまま、やはり答えができませんでした。
          </p>
        </div>

        <footer class="novel-footer">
          <a href="/novels/index.html" class="novel-footer-back">作品一覧へ戻る</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="/novels/index.html">novels</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">illustrations</h2>
        <ul class="gallery-grid is-top">
          <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">May 23, 2026</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">May 10, 2026</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">May 1, 2026</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">stories</h2>
        <ul class="novels-list">
          <li class="novel-card">
            <a href="/novels/001.html">
              <h3 class="novel-card-title">銀河鉄道の夜</h3>
              <div class="novel-card-meta">
                <time datetime="2026-05-23">May 23, 2026</time>
                <span>5,200 字</span>
                <span class="novel-card-cat">Fiction</span>
              </div>
              <div class="novel-card-tags">
                <span class="novel-tag">短編</span>
                <span class="novel-tag">現代</span>
              </div>
              <p class="novel-card-excerpt">
                ぼんやりと白い銀河の正体を問われた日の放課後、ジョバンニは不思議な汽車に乗る。
              </p>
            </a>
          </li>
        </ul>
        <p class="top-section-more">
          <a href="/novels/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>about ページを追加しました。</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="/novels/index.html">novels</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="/novels/index.html">novels</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="/novels/index.html">novels</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>
        <figure class="artwork-figure">
          <img
            src="https://placehold.jp/30/7b5cff/ffffff/1200x900.png?text=artwork"
            alt="作品: 夏の終わり"
          >
        </figure>

        <h1 class="artwork-title">夏の終わり</h1>
        <div class="artwork-meta">
          <time datetime="2026-05-23">May 23, 2026</time>
          <span class="media">illustration</span>
          <span>CLIP STUDIO PAINT</span>
        </div>

        <p class="artwork-desc">
          夕立のあとの、少しだけ涼しくなった空気を描きました。 二次創作 /
          オリジナルの別、版権元、配布・利用の可否などをここに書いてください。
        </p>

        <footer class="artwork-footer">
          <a href="/gallery/index.html" class="artwork-footer-back">back to gallery</a>
        </footer>
      </article>
    </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="/novels/index.html">novels</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">novels</h1>

      <ul class="novels-list">
        <li class="novel-card">
          <a href="/novels/001.html">
            <h2 class="novel-card-title">銀河鉄道の夜</h2>
            <div class="novel-card-meta">
              <time datetime="2026-05-23">2026.05.23</time>
              <span>5,200 字</span>
              <span class="novel-card-cat">小説</span>
            </div>
            <div class="novel-card-tags">
              <span class="novel-tag">短編</span>
              <span class="novel-tag">現代</span>
            </div>
            <p class="novel-card-excerpt">
              ぼんやりと白い銀河の正体を問われた日の放課後、ジョバンニは不思議な汽車に乗る。
            </p>
          </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="/novels/index.html">novels</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="/novels/index.html" class="novel-back">← 作品一覧へ</a>

      <article>
        <header class="novel-header">
          <h1 class="novel-title">銀河鉄道の夜</h1>
          <div class="novel-meta">
            <time datetime="2026-05-23">2026.05.23</time>
            <span>5,200 字</span>
            <span>短編 / 現代</span>
          </div>
        </header>

        <aside class="caution" role="note">
          <p class="caution-title">注意書き</p>
          <p>
            フィクションです。実在の人物・団体とは関係ありません。 R-18 / 暴力描写 /
            ネタバレ等を含む場合はここに明記してください。
          </p>
        </aside>

        <div class="novel-body">
          <p>
            「ではみなさんは、そういうふうに川だと言われたり、乳の流れたあとだと言われたりしていた、このぼんやりと白いものがほんとうは何かご承知ですか。」先生は、黒板に吊した大きな黒い星座の図の、上から下へ白くけぶった銀河帯のようなところを指しながら、みんなに問いをかけました。
          </p>
          <p>
            カムパネルラが手をあげました。それから四、五人手をあげました。ジョバンニも手をあげようとして、急いでそのままやめました。たしかにあれがみんな星だと、いつか雑誌で読んだのでしたが、このごろはジョバンニはまるで毎日教室でもねむく、本を読むひまも読む本もないので、なんだかどんなこともよくわからないという気持ちがするのでした。
          </p>
          <p>
            ところが先生は早くもそれを見つけたのでした。「ジョバンニさん。あなたはわかっているのでしょう。」ジョバンニは勢いよく立ちあがりましたが、立ってみるともうはっきりとそれを答えることができないのでした。
          </p>
          <p>
            ザネリが前の席からふりかえって、ジョバンニを見てくすっとわらいました。ジョバンニはもうどぎまぎしてまっ赤になってしまいました。先生がまた言いました。「大きな望遠鏡で銀河の星をよくしらべると銀河はだいたい何でしょう。」やはり星だとジョバンニは思いましたが、こんどもすぐに答えることができませんでした。
          </p>
          <p>
            先生はしばらく困ったようすでしたが、眼をカムパネルラのほうへ向けて、「ではカムパネルラさん。」と名指しました。するとあんなに元気に手をあげたカムパネルラが、やはりもじもじ立ちあがったまま、やはり答えができませんでした。
          </p>
        </div>

        <footer class="novel-footer">
          <a href="/novels/index.html" class="novel-footer-back">作品一覧へ戻る</a>
        </footer>
      </article>
    </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="/novels/index.html">novels</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="/novels/index.html">novels</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>