/* fake note */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #c8c8c8;
  font-family: 'Noto Serif JP', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- 検索バー --- */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 1px solid #222;
  padding: 12px 20px;
}

.search-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #c8c8c8;
  padding: 8px 14px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
}

.search-bar input:focus {
  outline: none;
  border-color: #b83030;
}

.search-bar input::placeholder {
  color: #444;
}

.search-bar button {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  padding: 8px 20px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.search-bar button:hover {
  border-color: #b83030;
  color: #b83030;
}

.search-results {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.8rem;
  height: 20px;
  padding-top: 6px;
  color: #444;
}

.search-results.found {
  color: #b83030;
}

.search-results.already {
  color: #555;
}

.search-results.empty {
  color: #444;
}

/* --- コンテナ --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* --- タイトル --- */
.glitch-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #e8e8e8;
  letter-spacing: 0.3em;
  margin-bottom: 8px;
  text-shadow: 2px 2px 8px rgba(180, 0, 0, 0.4);
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  margin-bottom: 60px;
}

/* --- ページ共通 --- */
.page {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1a1a1a;
}

.page.hidden {
  display: none;
}

.page.revealed {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container h2 {
  color: #b83030;
  font-size: 1.1rem;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
}

.page p {
  line-height: 2.2;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* --- テキストスタイル --- */
.intro-text {
  line-height: 2.4;
  font-size: 1rem;
  margin-bottom: 40px;
}

.handwriting {
  font-style: italic;
  color: #999;
  padding-left: 16px;
  border-left: 2px solid #333;
  margin: 20px 0;
}

.handwriting p {
  line-height: 2.2;
}

.struck {
  text-decoration: line-through;
  color: #555;
}

/* --- エンディング --- */
.ending {
  text-align: center;
  padding: 20px 0;
}

.ending p {
  color: #555;
  margin-bottom: 16px;
}

.credit {
  text-align: center;
  margin-top: 48px;
}

.credit p {
  color: #333;
  font-size: 0.75rem;
}

.credit-author {
  color: #222;
  font-size: 0.65rem;
  margin-top: 4px;
}

/* --- 画像 --- */
.page-image {
  width: 100%;
  margin: 24px 0;
  border: 1px solid #222;
}

/* --- ページ番号 --- */
.page-num {
  text-align: center;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 60px;
  letter-spacing: 0.3em;
}

.fiction-notice {
  text-align: center;
  color: #888;
  font-size: 0.65rem;
  margin-top: 12px;
  padding-bottom: 20px;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
  .glitch-title {
    font-size: 2rem;
  }

  .container {
    padding: 30px 16px 60px;
  }

  .search-bar {
    padding: 10px 12px;
  }

  .search-bar input {
    font-size: 0.85rem;
  }

  .search-bar button {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .handwriting {
    padding-left: 12px;
    font-size: 0.88rem;
  }

  .page-image {
    margin: 16px 0;
  }
}
