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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

blockquote p {
  font-weight: 500;
}

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

ul > li {
  position: relative;
}

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

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

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

dl {
  margin: 1em 0;
}

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

dd {
  margin-left: 1.5em;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gallery-item {
  position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.timeline-media a {
  display: block;
}

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

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