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

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

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

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

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

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

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

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

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

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

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

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

::selection {
  background: color-mix(in oklab, var(--c2) 30%, transparent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ul > li {
  position: relative;
}

ul > li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.75em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--c1), var(--c2));
}

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

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

dl {
  margin: 1em 0;
}

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

dd {
  margin-left: 1.5em;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.site-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c2);
}

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

.drawer {
  --drawer-width: min(20rem, 80dvw);
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--drawer-width);
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-card);
  border-left: 1px solid var(--color-line);
  box-shadow: -8px 0 32px -12px color-mix(in oklab, var(--c2) 40%, transparent);
  color: var(--color-text);
  overflow: hidden;
  transform: translateX(105%);
  transition:
    transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1),
    display 0.28s allow-discrete,
    overlay 0.28s allow-discrete;
}

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

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

.drawer::backdrop {
  background: color-mix(in oklab, var(--c2) 35%, rgba(8, 6, 20, 0.6));
  opacity: 0;
  transition:
    opacity 0.28s ease,
    display 0.28s allow-discrete,
    overlay 0.28s allow-discrete;
}

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

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

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

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

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

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

.site-nav a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  letter-spacing: 0.005em;
}

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

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

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

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

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

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

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

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

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

  .site-nav a {
    display: inline;
    padding: 0;
    border-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.top-news-item time {
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--c2);
}

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

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

.gallery-item {
  position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.timeline-media a {
  display: block;
}

.timeline-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

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

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

.about-list dt {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--c2);
  /* base dt の margin-top を打ち消す（grid 表示で不要） */
  margin-top: 0;
}

/* ===== 「まだありません」表示 ===== */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--color-muted);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}
