/* note風スタイル */

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: #333;
  background: #f6f6f6;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2cb696;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- ヘッダー --- */
.n-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 64px;
}

.n-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.n-header-left {
  flex-shrink: 0;
}

.n-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.n-logo:hover {
  text-decoration: none;
}

.n-header-center {
  flex: 1;
  max-width: 400px;
}

.n-search {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  position: relative;
}

.n-search-icon {
  color: #999;
  flex-shrink: 0;
}

.n-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: #333;
  width: 100%;
  font-family: inherit;
}

.n-search input::placeholder {
  color: #999;
}

.n-search-msg {
  display: none;
  font-size: 0.75rem;
  color: #999;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px 14px;
  background: #fff;
  z-index: 10;
}

.n-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.n-btn-text {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.n-btn-text:hover {
  text-decoration: none;
  opacity: 0.7;
}

.n-btn-primary {
  font-size: 0.875rem;
  color: #fff;
  background: #2cb696;
  border-radius: 20px;
  padding: 8px 20px;
  text-decoration: none;
  font-weight: 500;
}

.n-btn-primary:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* --- メインコンテンツ --- */
.n-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.n-article {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* --- アイキャッチ --- */
.n-eyecatch {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}

.n-eyecatch img {
  position: absolute;
  top: 0;
  left: 0;
}

.n-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- タイトル --- */
.n-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 32px 32px 0;
  color: #333;
}

/* --- 著者ヘッダー --- */
.n-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px 24px;
}

.n-author-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.n-author-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n-author-meta {
  display: flex;
  flex-direction: column;
}

.n-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
}

.n-author-date {
  font-size: 0.75rem;
  color: #999;
}

/* --- 本文 --- */
.n-body {
  padding: 0 32px 40px;
  font-size: 1rem;
  line-height: 2;
  color: #333;
}

.n-body p {
  margin-bottom: 20px;
}

.n-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #333;
}

.n-quote {
  background: #f8f8f8;
  border-left: 3px solid #ddd;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

.n-quote p {
  margin-bottom: 0;
}

.n-example {
  color: #999;
  font-size: 0.9rem;
}

.n-tag-line a {
  color: #2cb696;
}

/* --- ゲーム開始ボタン --- */
.n-game-start {
  text-align: center;
  margin: 48px 0 24px;
}

.n-start-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 14px 48px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.n-start-btn:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* --- スキ・シェア --- */
.n-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid #eee;
}

.n-like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.875rem;
  color: #999;
  font-family: inherit;
}

.n-like-btn:hover {
  color: #e0457b;
  border-color: #e0457b;
}

.n-like-btn svg {
  width: 20px;
  height: 20px;
}

.n-share-btns {
  display: flex;
  gap: 8px;
}

.n-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: none;
  color: #999;
}

.n-share-btn:hover {
  color: #333;
  border-color: #333;
}

/* --- 著者プロフィール --- */
.n-profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  border-top: 1px solid #eee;
}

.n-profile-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.n-profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n-profile-info {
  flex: 1;
}

.n-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.n-profile-bio {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.n-follow-btn {
  flex-shrink: 0;
  background: #2cb696;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
}

/* --- フッター --- */
.n-footer {
  border-top: 1px solid #eee;
  background: #fff;
  padding: 24px 16px;
  margin-top: 40px;
}

.n-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.n-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.n-footer-links span {
  font-size: 0.75rem;
  color: #999;
}

.n-footer-copy {
  font-size: 0.7rem;
  color: #ccc;
}

.n-footer-fiction {
  font-size: 0.7rem;
  color: #999;
  margin-top: 8px;
}

/* --- 共有バー --- */
.n-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: #f5f5f5;
  border-radius: 8px;
}

.n-share-label {
  font-size: 0.82rem;
  color: #999;
  font-weight: 500;
}

.n-share-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #fff;
  background: #0f1419;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

/* --- ハッシュタグ --- */
.n-hashtag {
  color: #2cb696;
  font-size: 0.9rem;
  margin-top: 32px;
}

/* --- ヒントページ --- */
.n-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 32px 0;
}

.n-hint-section {
  margin-bottom: 32px;
}

.n-hint-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.n-hint {
  margin-bottom: 8px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.n-hint summary {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  background: #fafafa;
  list-style: none;
}

.n-hint summary::-webkit-details-marker {
  display: none;
}

.n-hint summary::before {
  content: '▶ ';
  font-size: 0.7rem;
  color: #bbb;
}

.n-hint[open] summary::before {
  content: '▼ ';
}

.n-hint p {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  background: #fff;
}

.n-hint.answer summary {
  color: #c44;
}

.n-hint.answer p {
  color: #c44;
  font-weight: 500;
}

/* --- ユーザープロフィール --- */
.n-user-profile {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px 24px;
  margin-bottom: 0;
}

.n-user-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
}

.n-user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n-user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.n-user-bio {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.n-user-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.n-user-stat {
  font-size: 0.8rem;
  color: #999;
}

.n-user-stat strong {
  color: #333;
  font-weight: 700;
}

/* --- タブ --- */
.n-tabs {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 0 32px;
  margin-bottom: 2px;
}

.n-tab {
  display: inline-block;
  padding: 14px 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #333;
}

/* --- 記事カード一覧 --- */
.n-article-list {
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.n-card {
  display: flex;
  gap: 16px;
  padding: 20px 32px;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.n-card:hover {
  background: #fafafa;
  text-decoration: none;
}

.n-card-text {
  flex: 1;
  min-width: 0;
}

.n-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}

.n-card-excerpt {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.n-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #bbb;
}

.n-card-like {
  color: #bbb;
}

.n-card-thumb {
  width: 100px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.n-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- フッターリンク --- */
.n-footer-link {
  cursor: pointer;
}

.n-footer-link:hover {
  text-decoration: underline;
}

/* --- モーダル --- */
.n-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.n-modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.n-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.n-modal-close:hover {
  color: #333;
}

.n-modal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #333;
}

.n-modal-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #333;
}

.n-modal-body p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

.n-modal-body ul {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
  margin: 8px 0 8px 20px;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .n-header {
    height: 48px;
  }

  .n-header-inner {
    padding: 0 12px;
  }

  .n-header-center {
    flex: 1;
    min-width: 0;
  }

  .n-header-right {
    display: none;
  }

  .n-title {
    font-size: 1.375rem;
    padding: 24px 20px 0;
  }

  .n-author-header {
    padding: 12px 20px 20px;
  }

  .n-body {
    padding: 0 20px 32px;
    font-size: 0.95rem;
  }

  .n-actions {
    padding: 16px 20px;
  }

  .n-profile {
    padding: 20px;
    flex-wrap: wrap;
  }

  .n-modal {
    padding: 12px;
  }

  .n-modal-content {
    padding: 20px;
  }

  .n-game-start {
    margin: 32px 0 16px;
  }

  .n-start-btn {
    padding: 12px 32px;
    font-size: 0.9rem;
  }

  .n-quote {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}
