/* ============================================================
   @hieve - style.css
   ============================================================ */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --surface: #f8f9fa;
  --text: #2d3436;
  --text-light: #636e72;
  --card-bg: #ffffff;
  --border: #e9ecef;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* === ヘッダー === */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.site-logo span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 2.5px 0;
  transition: 0.3s;
  border-radius: 2px;
}
.nav-toggle-label {
  display: block;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 3px;
  font-family: 'Outfit', sans-serif;
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }

/* === ヒーロー（トップ） === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(233,69,96,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}
.hero h1 span,
.hero h1 em { color: var(--accent-light); font-style: normal; }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  position: relative;
}

/* === ヒーロー（下層ページ） === */
.hero-mini {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.hero-mini h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-mini h1 em { color: var(--accent-light); font-style: normal; }
.hero-mini .page-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* === メイン === */
.main { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
.section { margin-bottom: 48px; }
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

/* === カード === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card p { font-size: 0.95rem; color: var(--text); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--accent); font-weight: 600; }

/* === 最新記事（トップ） === */
.recent-entries { margin-bottom: 48px; }
.recent-entry {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.recent-entry:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.recent-date { font-family: 'Outfit', sans-serif; font-size: 0.8rem; color: var(--text-light); white-space: nowrap; min-width: 75px; }
.recent-title { font-size: 0.9rem; font-weight: 500; }
.recent-entry:hover .recent-title { color: var(--accent); }
.recent-cat { font-size: 0.7rem; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 3px; margin-left: auto; white-space: nowrap; }

/* === 新着情報 === */
.news-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--card-bg);
}
.news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.news-item:last-child { border-bottom: none; }
.news-date { font-family: 'Outfit', sans-serif; font-size: 0.82rem; color: var(--text-light); white-space: nowrap; min-width: 90px; }
.news-text { font-size: 0.92rem; }
.news-text a { color: var(--accent); text-decoration: none; }
.news-text a:hover { text-decoration: underline; }

/* === 基本理念 === */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.principle-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.principle-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.principle-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.principle-card h3::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.principle-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.75; }

/* === CTA === */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 0.92rem; color: rgba(255,255,255,0.75); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: var(--accent-light); transform: translateY(-1px); }

/* === トップ本文（home.mdから変換） === */
.home-body { font-size: 0.95rem; }
.home-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.home-body h2:first-child { margin-top: 0; }
.home-body p { margin-bottom: 14px; }
.home-body p:last-child { margin-bottom: 0; }
.home-body strong { color: var(--accent); font-weight: 600; }
.home-body a { color: var(--accent); text-decoration: none; }
.home-body a:hover { text-decoration: underline; }

/* === エントリ一覧（カテゴリページ） === */
.entry-list-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.entry-list-item:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.entry-list-date { font-family: 'Outfit', sans-serif; font-size: 0.82rem; color: var(--text-light); white-space: nowrap; min-width: 80px; }
.entry-list-title { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.entry-list-item:hover .entry-list-title { color: var(--accent); }

/* === 個別記事 === */
.entry-single {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.entry-single-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.entry-single-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.entry-single-date { font-family: 'Outfit', sans-serif; font-size: 0.82rem; color: var(--text-light); }
.entry-single-body { font-size: 0.95rem; line-height: 1.9; }
.entry-single-body p { margin-bottom: 14px; }
.entry-single-body p:last-child { margin-bottom: 0; }
.entry-single-body strong { color: var(--accent); }
.entry-single-body a { color: var(--accent); text-decoration: none; }
.entry-single-body a:hover { text-decoration: underline; }
.entry-single-body h2 { font-size: 1.1rem; margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.entry-single-body h3 { font-size: 1rem; margin: 20px 0 10px; }
.entry-single-body ul, .entry-single-body ol { padding-left: 24px; margin-bottom: 14px; }
.entry-single-body li { margin-bottom: 4px; }
.entry-single-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--text-light);
  background: rgba(233,69,96,0.04);
  border-radius: 0 8px 8px 0;
}
.entry-single-body pre {
  background: var(--primary);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.85rem;
}
.entry-single-body code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.entry-single-body pre code { background: none; padding: 0; }
.entry-single-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.entry-single-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '← '; }

/* === ページネーション === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
}
.pagination a { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; }

.empty-message { text-align: center; color: var(--text-light); padding: 60px 20px; }

/* === フッター === */
/* === 画面右下固定 @ マーク === */
.floating-at {
  position: fixed;
  right: 20px;
  bottom: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: rgba(200,50,70,0.28);
  pointer-events: none;
  user-select: none;
  z-index: 50;
}

/* === モットーバンド === */
.motto-band {
  background: var(--primary);
  text-align: center;
  padding: 18px 24px;
  position: relative;
  overflow: hidden;
}
.motto-band p {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.78rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* === 掲示板（teacup風） === */

/* 通知 */
.bbs-notice {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.bbs-notice-ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.bbs-notice-err { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }

/* 投稿フォーム */
.bbs-form-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
}
.bbs-form-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.bbs-form {
  padding: 20px;
}
.bbs-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bbs-form-row:last-child { margin-bottom: 0; }
.bbs-form-row label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  min-width: 72px;
  flex-shrink: 0;
}
.bbs-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
.bbs-input:focus { border-color: var(--accent); outline: none; }
.bbs-input-short { max-width: 180px; }
.bbs-input-mini { max-width: 90px; }
.bbs-textarea {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.bbs-textarea:focus { border-color: var(--accent); outline: none; }
.bbs-form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}
.bbs-form-submit { justify-content: flex-end; margin-top: 4px; }
.bbs-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 28px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.bbs-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.bbs-btn:active { transform: translateY(0); }

/* ハニーポット（ボット対策・人間には見えない） */
.bbs-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 投稿件数 */
.bbs-info {
  margin-bottom: 16px;
  padding: 0 4px;
}
.bbs-count {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* 空メッセージ */
.bbs-empty {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* 各投稿 */
.bbs-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}
.bbs-post-header {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bbs-post-no {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 1px 8px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
}
.bbs-post-subject {
  font-size: 0.9rem;
  font-weight: 500;
}
.bbs-post-meta {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.015);
}
.bbs-post-name strong { color: var(--text); font-weight: 500; }
.bbs-post-date { font-family: 'Outfit', sans-serif; }
.bbs-post-body {
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  word-break: break-word;
}

/* 投稿画像 */
.bbs-post-image {
  padding: 0 16px 14px;
}
.bbs-post-image a {
  display: inline-block;
  line-height: 0;
}
.bbs-post-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  object-fit: contain;
}
.bbs-post-image img:hover {
  opacity: 0.85;
}

/* ファイル入力 */
.bbs-input-file {
  display: block;
  width: 100%;
  padding: 8px 0;
  font-size: 0.88rem;
  color: inherit;
}
.bbs-input-file::file-selector-button {
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s, color 0.2s;
}
.bbs-input-file::file-selector-button:hover {
  background: var(--accent);
  color: #fff;
}

/* 画像プレビュー（投稿前） */
.bbs-image-preview-area {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
}
.bbs-image-preview-area img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 4px;
  object-fit: contain;
}

/* 管理者編集フォーム内の画像プレビュー */
.bbs-edit-image-preview {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.bbs-edit-image-preview img {
  border: 1px solid var(--border);
}
.bbs-delete-image-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #e74c3c;
  cursor: pointer;
}
.bbs-delete-image-label input[type="checkbox"] {
  accent-color: #e74c3c;
}

/* 削除フォーム */
.bbs-del-wrap {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.bbs-del-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bbs-del-form label {
  font-size: 0.8rem;
  color: var(--text-light);
}
.bbs-btn-del {
  background: var(--text-light);
  padding: 7px 16px;
  font-size: 0.8rem;
}
.bbs-btn-del:hover { background: #e74c3c; }

/* 管理者バー */
.bbs-admin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
}
.bbs-admin-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e65100;
  background: #ffe0b2;
  padding: 2px 10px;
  border-radius: 4px;
}

/* 小ボタン共通 */
.bbs-btn-sm {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.bbs-btn-logout { background: var(--text-light); color: #fff; }
.bbs-btn-logout:hover { background: #455a64; }
.bbs-btn-edit { background: #1976d2; color: #fff; }
.bbs-btn-edit:hover { background: #1565c0; }
.bbs-btn-admin-del { background: #e74c3c; color: #fff; }
.bbs-btn-admin-del:hover { background: #c0392b; }
.bbs-btn-cancel { background: var(--border); color: var(--text); }
.bbs-btn-cancel:hover { background: #ccc; }
.bbs-btn-admin { background: var(--primary); color: #fff; }
.bbs-btn-admin:hover { background: #16213e; }

/* 投稿内の管理者操作 */
.bbs-admin-actions {
  padding: 8px 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: rgba(0,0,0,0.015);
}

/* 編集フォーム */
.bbs-edit-form-wrap { border: 2px solid #1976d2; }
.bbs-edit-header { background: #1976d2; }

/* 管理者ログイン */
.bbs-admin-login-wrap {
  margin-top: 20px;
}
.bbs-admin-details summary {
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}
.bbs-admin-details summary:hover { color: var(--accent); }
.bbs-admin-login-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* === 掲示板モバイル === */
@media (max-width: 640px) {
  .bbs-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .bbs-form-row label { min-width: auto; }
  .bbs-input-short { max-width: 100%; }
  .bbs-form-submit { align-items: stretch; }
  .bbs-btn { width: 100%; text-align: center; }
  .bbs-post-header { flex-wrap: wrap; }
  .bbs-del-form { flex-direction: column; align-items: stretch; }
  .bbs-del-form .bbs-input-mini { max-width: 100%; }
  .bbs-del-form .bbs-input-short { max-width: 100%; }
  .bbs-btn-del { width: 100%; text-align: center; }
  .bbs-admin-bar { flex-wrap: wrap; }
  .bbs-admin-actions { justify-content: flex-start; }
  .bbs-admin-login-form { flex-direction: column; align-items: stretch; }
  .bbs-admin-login-form .bbs-input-short { max-width: 100%; }
  /* 画像モバイル調整 */
  .bbs-image-preview-area img { max-width: 150px; max-height: 120px; }
  .bbs-post-image img { max-height: 300px; }
  .bbs-edit-image-preview { flex-direction: column; }
}

/* === アニメーション === */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === モバイル === */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .header-inner nav { width: 0; overflow: visible; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 20px; font-size: 0.9rem; }
  .hero { padding: 56px 20px 40px; }
  .hero-mini { padding: 24px 20px; }
  .card { padding: 20px; }
  .news-item { flex-direction: column; gap: 2px; }
  .principles-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 32px 20px; }
  .recent-entry { flex-direction: column; gap: 4px; padding: 14px 20px; }
  .recent-cat { margin-left: 0; }
  .entry-single { padding: 20px; }
  .entry-list-item { flex-direction: column; gap: 2px; padding: 16px 20px; }
}

/* === アクセスカウンター === */
.access-counter {
  text-align: center;
  padding: 6px 0 10px;
  font-family: 'Outfit', monospace;
  font-size: 0.7rem;
  color: #999;
  letter-spacing: 0.5px;
}
