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=Noto+Sans+JP:wght@400;500;700;900&family=IBM+Plex+Mono:wght@500&display=swap"
      rel="stylesheet"
    >

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

<style>
/*
  Designed by instan <https://instan.fc2.page>
  005 — riso print 風(リソグラフ印刷の蛍光色 + 版ズレ + 紙テクスチャ)
*/

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

  /* ライトモードの色(古紙色背景 + リソグラフの蛍光色) */
  --color-bg: #f6f1e6;
  --color-paper: #eee7d6;
  --color-text: #1a1a1a;
  --color-muted: #5a5852;
  --color-line: #1a1a1a;
  --color-pink: #ff4f8b;
  --color-blue: #3b3fc4;
  --color-yellow: #f5c100;

  /* フォント */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, monospace;
  --font-body: var(--font-sans);

  /* レイアウト */
  --content-width: 1080px;
  --reading-width: 36rem;
  --header-height: 56px;

  accent-color: var(--color-pink);
}

/* ダークモード(OS のダーク設定が ON のときだけ上の色を上書き) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #161614;
    --color-paper: #1f1e1a;
    --color-text: #f3eedc;
    --color-muted: #a8a392;
    --color-line: #f3eedc;
    --color-pink: #ff6ea0;
    --color-blue: #7a8cff;
    --color-yellow: #ffd84a;
  }
}

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

@property --drawer-backdrop {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ===== 文字まわりの基本設定 ===== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* ハーフトーン点 + 紙ノイズ */
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1.4px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size:
    4px 4px,
    180px 180px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1.4px),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  }
}

a {
  color: var(--color-text);
  text-decoration-color: var(--color-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

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

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 900;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-line);
  letter-spacing: -0.01em;
  text-shadow:
    -2px 1px 0 var(--color-pink),
    2px -1px 0 var(--color-blue);
}

@media (prefers-color-scheme: dark) {
  h1 {
    text-shadow: none;
  }
}

h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--color-line);
}

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--color-pink);
}

h4 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-pink);
  letter-spacing: 0.05em;
}

h5 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h6 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 1.25rem 0 0.4rem;
  color: var(--color-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

/* ===== 強調 / 引用 / 区切り / コード(本文中で使う inline / block 要素) ===== */
em {
  font-style: normal;
  background: linear-gradient(transparent 60%, var(--color-yellow) 60% 94%, transparent 94%);
  padding: 0 2px;
}

strong {
  font-weight: 700;
  color: var(--color-pink);
  text-shadow: 1.5px 0 0 var(--color-blue);
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  strong {
    mix-blend-mode: normal;
    text-shadow: none;
    text-decoration: underline;
    text-decoration-color: var(--color-blue);
    text-decoration-thickness: 2px;
  }
}

/* mark: 手描きの蛍光ペン風(ラフな縁を SVG 背景に焼き込み、box-decoration-break
   で折り返し各行に追従。デフォルト=ピンク、.hl-blue / .hl-yellow で色替え)。
   蛍光ペンらしく半透明にして、本文の文字色のまま読めるようにしている。 */
mark {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: inherit;
  padding: 0.04em 0.3em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='8' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%23ff4f8b' fill-opacity='.55'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
}

mark.hl-blue {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='7' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%233b3fc4' fill-opacity='.50'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
}

mark.hl-yellow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='4' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%23f5c100' fill-opacity='.60'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='8' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%23ff6ea0' fill-opacity='.50'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
  }

  mark.hl-blue {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='7' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%237a8cff' fill-opacity='.48'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
  }

  mark.hl-yellow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .09' numOctaves='3' seed='4' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='5'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='%23ffd84a' fill-opacity='.52'/%3E%3Crect x='3' y='5' width='114' height='30' rx='6' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E");
  }
}

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

ul {
  margin: 1em 0;
  padding-left: 1.75em;
  list-style: square;
}

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

dl {
  margin: 1em 0;
}

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

dd {
  margin-left: 1.5em;
}

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

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

th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

hr {
  border: 0;
  border-top: 2px solid var(--color-line);
  margin: 2em 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: color-mix(in oklab, var(--color-text) 10%, transparent);
  padding: 0.1em 0.35em;
}

pre {
  margin: 1.5em 0;
  padding: 1em;
  background: color-mix(in oklab, var(--color-text) 6%, transparent);
  border: 1.5px solid var(--color-line);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

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

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

/* ===== フォーム要素 ===== */
label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-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(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.5rem;
  border-radius: 0;
}

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='235a5852' 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(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-line);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  letter-spacing: 0.05em;
}

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

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

/* ===== 画面上部の固定ヘッダー(004 共通シェル + リソ装飾) ===== */
.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) * 100%), transparent);
}

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

.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-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
  /* 版ズレ風: pink + blue を text-shadow で重ねる */
  text-shadow:
    -2px 1px 0 var(--color-pink),
    2px -1px 0 var(--color-blue);
}

/* ===== ナビゲーション =====
   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-bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1.4px);
  background-size: 4px 4px;
  border-left: 2px solid var(--color-line);
  box-shadow:
    -6px 0 0 var(--color-blue),
    -12px 0 30px -10px rgba(0, 0, 0, 0.3);
  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: rgba(0, 0, 0, 0.5);
  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 a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-line);
  letter-spacing: 0.05em;
}

.site-nav a:hover {
  background: var(--color-yellow);
  color: var(--color-text);
}

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

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

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

.nav-toggle {
  touch-action: manipulation;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 2px solid var(--color-line);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--color-pink);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  color: var(--color-text);
}

.nav-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-pink);
}

/* PC: ヘッダー内インラインに切り替え(768px以上)
   drawer の box を display: contents で消すことで、
   中の <nav> が .site-header-inner の flex 子として横並びになる。 */
@media (min-width: 768px) {
  .drawer {
    display: contents;
  }

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

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

  .site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 0;
    border-left: 1px solid var(--color-line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .site-nav ul li:first-child a {
    border-left: 0;
  }

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

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

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

/* ===== 本文エリアの共通レイアウト(全ページ共通) ===== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 1.5rem auto;
  padding: 2rem 1.75rem 2.5rem;
  background: var(--color-paper);
  border: 2px solid var(--color-line);
  box-shadow: 6px 6px 0 var(--color-blue);
  position: relative;
}

.site-main::before {
  content: "RISO PRINT · ed. 005 / 100";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-bg);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  border: 1.5px solid var(--color-line);
}

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

.page-title {
  font-size: 1.75rem;
  font-weight: 900;
  /* base h1 の margin shorthand / text-shadow を打ち消す */
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-line);
  letter-spacing: -0.01em;
  text-shadow: none;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-text);
  color: var(--color-bg);
  display: inline-block;
  padding: 4px 12px;
  /* base h2 の margin / 罫線を打ち消す */
  margin: 0 0 1rem;
  padding-bottom: 4px;
  border-bottom: 0;
}

/* ===== トップページの大見出しエリア ===== */
.hero {
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-line);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  /* base h1 の margin shorthand / 罫線を打ち消す(text-shadow は class 側を使う) */
  margin: 0 0 0.75rem;
  padding-bottom: 0;
  border-bottom: 0;
  text-shadow:
    -3px 2px 0 var(--color-pink),
    3px -2px 0 var(--color-blue);
}

/* ===== トップページの各セクション ===== */
.top-section {
  margin-top: 2.5rem;
}

.top-section-more {
  margin-top: 1rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.top-section-more a {
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  padding: 6px 14px;
  display: inline-block;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.top-section-more a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-pink);
  color: var(--color-bg);
}

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

.top-news-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--color-line);
}

.top-news-item:last-child {
  border-bottom: 0;
}

.top-news-item time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* ===== 2 カラム レイアウト(top の feed-sidebar pattern) ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.layout-main {
  min-width: 0;
}

@media (max-width: 780px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== サイドバー(005 独自パーツ。class 名は将来 parts/ へ抽出予定) ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.side-card {
  border: 2px solid var(--color-line);
  background: var(--color-bg);
  padding: 1rem 1rem 1.25rem;
  position: relative;
}

.side-card-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: -1.75rem 0 0.875rem;
  background: var(--color-text);
  color: var(--color-bg);
  display: inline-block;
  padding: 4px 10px;
  /* base h3 の罫線 / padding-left を打ち消す */
  padding-left: 10px;
  border-left: 0;
}

.side-card-pink {
  box-shadow: 3px 3px 0 var(--color-pink);
}

.side-card-blue {
  box-shadow: 3px 3px 0 var(--color-blue);
}

.side-card-yellow {
  box-shadow: 3px 3px 0 var(--color-yellow);
}

/* about-card (sidebar 用 about 縮約版) */
.about-card .profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.about-card .avatar {
  width: 54px;
  height: 54px;
  background: radial-gradient(var(--color-pink) 30%, transparent 32%), var(--color-blue);
  background-size: 5px 5px;
  border: 1.5px solid var(--color-line);
  mix-blend-mode: multiply;
  flex: 0 0 auto;
}

@media (prefers-color-scheme: dark) {
  .about-card .avatar {
    mix-blend-mode: normal;
  }
}

.about-card .profile-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.about-card .profile-handle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

.about-card-text {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text);
}

/* links-list (sidebar 用) */
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-list li {
  border-top: 1px dashed var(--color-line);
}

.links-list li:first-child {
  border-top: 0;
}

.links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  padding: 0.5rem 4px;
}

.links-list a::after {
  content: "↗";
  color: var(--color-blue);
  font-family: var(--font-mono);
}

.links-list a:hover {
  background: var(--color-yellow);
  padding-left: 8px;
  transition: padding 0.12s;
}

/* banners-list (sidebar 用) */
.banners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.banner {
  display: block;
  line-height: 0;
}

.banner img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.banner:hover {
  opacity: 0.85;
}

.banners-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-muted);
  letter-spacing: 0.15em;
  margin: 10px 0 0;
  text-transform: uppercase;
}

/* mail-form (sidebar 用) */
.mail-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mail-form label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.mail-form input,
.mail-form textarea {
  background: var(--color-paper);
  border: 1.5px solid var(--color-line);
  padding: 8px 10px;
  color: var(--color-text);
  font-size: 0.85rem;
}

.mail-form textarea {
  min-height: 70px;
  resize: vertical;
}

.mail-form button {
  align-self: flex-start;
  background: var(--color-text);
  color: var(--color-bg);
  border: 1.5px solid var(--color-line);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.mail-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-pink);
}

.clap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

.clap-button {
  background: var(--color-yellow);
  color: var(--color-text);
  border: 1.5px solid var(--color-line);
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
}

.clap-button:hover {
  background: var(--color-pink);
  color: var(--color-bg);
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .clap-button:hover {
    mix-blend-mode: normal;
  }
}

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

.novel-card {
  padding: 1.25rem;
  border: 2px solid var(--color-line);
  background: var(--color-bg);
  position: relative;
  box-shadow: 3px 3px 0 var(--color-pink);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.novel-card:nth-child(3n + 2) {
  box-shadow: 3px 3px 0 var(--color-blue);
}

.novel-card:nth-child(3n) {
  box-shadow: 3px 3px 0 var(--color-yellow);
}

.novel-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-pink);
}

.novel-card:nth-child(3n + 2):hover {
  box-shadow: 5px 5px 0 var(--color-blue);
}

.novel-card:nth-child(3n):hover {
  box-shadow: 5px 5px 0 var(--color-yellow);
}

.novel-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.novel-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  /* base h2 / h3 双方の margin / 罫線を打ち消す(カード内タイトル) */
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  border-bottom: 0;
  padding-left: 0;
  border-left: 0;
}

.novel-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.novel-card-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

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

.novel-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--color-text);
  color: var(--color-bg);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.novel-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

/* ===== 作品本文ページ(/novels/NNN.html) ===== */
.novel-back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.novel-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-line);
}

.novel-title {
  font-size: 1.75rem;
  font-weight: 900;
  /* base h1 の罫線 / text-shadow は .novel-header 側で持つので打ち消す */
  margin: 0 0 0.75rem;
  padding-bottom: 0;
  border-bottom: 0;
  text-shadow: none;
}

.novel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

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

.caution-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 0.25rem;
}

.novel-body {
  max-width: var(--reading-width);
  margin: 2rem auto 3rem;
  font-size: 0.95rem;
  line-height: 1.95;
  text-align: justify;
  text-align-last: left;
}

.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: 2px solid var(--color-line);
}

.novel-footer-back {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-text);
  color: var(--color-bg);
  border: 2px solid var(--color-line);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.novel-footer-back:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-pink);
  color: var(--color-bg);
}

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

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

.news-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

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

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

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

.timeline-item {
  padding: 1.5rem 0;
  border-bottom: 1px dashed var(--color-line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item.is-pinned {
  border: 2px solid var(--color-line);
  box-shadow: 3px 3px 0 var(--color-pink);
  padding: 1.25rem 1rem;
  margin-bottom: 0.5rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.875rem;
  margin-bottom: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.timeline-pin {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 2px 8px;
  letter-spacing: 0.2em;
}

.timeline-time {
  color: var(--color-muted);
}

.timeline-body {
  font-size: 0.95rem;
  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.625rem;
}

/* 画像が 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(--color-line);
  box-shadow: 2px 2px 0 var(--color-blue);
}

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

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

.about-list dt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  text-transform: uppercase;
  /* base dt の margin-top / color を打ち消す(grid 表示で不要) */
  margin-top: 0;
}

/* ===== 「まだありません」表示用(一覧が空のとき) ===== */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===== SP 調整 ===== */
@media (max-width: 600px) {
  .site-main {
    padding: 1.75rem 1.25rem 2rem;
    margin: 1rem auto 1.5rem;
  }
  .site-main::before {
    left: 14px;
    font-size: 9px;
  }
}
</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="/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>

      <div class="layout">
        <div class="layout-main">
          <section class="top-section">
            <h2 class="section-title">latest</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">2026.05.23</time>
                    <span>5,200 字</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">2026.05.23</time>
                <span>about ページを追加しました。</span>
              </li>
              <li class="top-news-item">
                <time datetime="2026-05-10">2026.05.10</time>
                <span>サイトをリニューアルしました。</span>
              </li>
            </ul>
            <p class="top-section-more">
              <a href="/news/index.html">お知らせ一覧 →</a>
            </p>
          </section>
        </div>

        <aside class="sidebar">
          <section class="side-card side-card-pink about-card">
            <h3 class="side-card-title">about</h3>
            <div class="profile">
              <div class="avatar" aria-hidden="true"></div>
              <div>
                <div class="profile-name">(your name)</div>
                <div class="profile-handle">@handle</div>
              </div>
            </div>
            <p class="about-card-text">
              ようこそ。個人で運営している小説サイトです。
              書きたいときに書きたいものを綴っています。
            </p>
          </section>

          <section class="side-card side-card-blue">
            <h3 class="side-card-title">links</h3>
            <ul class="links-list">
              <li><a href="#">pixiv</a></li>
              <li><a href="#">privatter</a></li>
              <li><a href="#">syosetu</a></li>
              <li><a href="#">misskey</a></li>
            </ul>
          </section>

          <section class="side-card side-card-yellow">
            <h3 class="side-card-title">banners</h3>
            <ul class="banners-list">
              <li>
                <a href="#" class="banner"
                  ><img
                    src="https://placehold.jp/200x40.png"
                    alt="リンク先サイト"
                    width="200"
                    height="40"
                  ></a
                >
              </li>
              <li>
                <a href="#" class="banner"
                  ><img
                    src="https://placehold.jp/200x40.png"
                    alt="リンク先サイト"
                    width="200"
                    height="40"
                  ></a
                >
              </li>
            </ul>
            <p class="banners-note">relink / welcome</p>
          </section>

          <section class="side-card side-card-pink">
            <h3 class="side-card-title">mail / 拍手</h3>
            <form class="mail-form" onsubmit="event.preventDefault();alert('demo');">
              <label for="m-name">name</label>
              <input id="m-name" type="text" placeholder="お名前 / 匿名可">
              <label for="m-body">message</label>
              <textarea id="m-body" placeholder="ひとこと"></textarea>
              <button type="submit">send →</button>
            </form>
            <div class="clap">
              <span>claps · 128</span>
              <button type="button" class="clap-button" aria-label="clap">👏 +1</button>
            </div>
          </section>
        </aside>
      </div>

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

      <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">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="/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>

      <div class="layout">
        <div class="layout-main">
          <section class="top-section">
            <h2 class="section-title">latest</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">2026.05.23</time>
                    <span>5,200 字</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">2026.05.23</time>
                <span>about ページを追加しました。</span>
              </li>
              <li class="top-news-item">
                <time datetime="2026-05-10">2026.05.10</time>
                <span>サイトをリニューアルしました。</span>
              </li>
            </ul>
            <p class="top-section-more">
              <a href="/news/index.html">お知らせ一覧 →</a>
            </p>
          </section>
        </div>

        <aside class="sidebar">
          <section class="side-card side-card-pink about-card">
            <h3 class="side-card-title">about</h3>
            <div class="profile">
              <div class="avatar" aria-hidden="true"></div>
              <div>
                <div class="profile-name">(your name)</div>
                <div class="profile-handle">@handle</div>
              </div>
            </div>
            <p class="about-card-text">
              ようこそ。個人で運営している小説サイトです。
              書きたいときに書きたいものを綴っています。
            </p>
          </section>

          <section class="side-card side-card-blue">
            <h3 class="side-card-title">links</h3>
            <ul class="links-list">
              <li><a href="#">pixiv</a></li>
              <li><a href="#">privatter</a></li>
              <li><a href="#">syosetu</a></li>
              <li><a href="#">misskey</a></li>
            </ul>
          </section>

          <section class="side-card side-card-yellow">
            <h3 class="side-card-title">banners</h3>
            <ul class="banners-list">
              <li>
                <a href="#" class="banner"
                  ><img
                    src="https://placehold.jp/200x40.png"
                    alt="リンク先サイト"
                    width="200"
                    height="40"
                  ></a
                >
              </li>
              <li>
                <a href="#" class="banner"
                  ><img
                    src="https://placehold.jp/200x40.png"
                    alt="リンク先サイト"
                    width="200"
                    height="40"
                  ></a
                >
              </li>
            </ul>
            <p class="banners-note">relink / welcome</p>
          </section>

          <section class="side-card side-card-pink">
            <h3 class="side-card-title">mail / 拍手</h3>
            <form class="mail-form" onsubmit="event.preventDefault();alert('demo');">
              <label for="m-name">name</label>
              <input id="m-name" type="text" placeholder="お名前 / 匿名可">
              <label for="m-body">message</label>
              <textarea id="m-body" placeholder="ひとこと"></textarea>
              <button type="submit">send →</button>
            </form>
            <div class="clap">
              <span>claps · 128</span>
              <button type="button" class="clap-button" aria-label="clap">👏 +1</button>
            </div>
          </section>
        </aside>
      </div>
    </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="/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="/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="/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="/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="/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>