/*
Theme Name: Hisaya Original
Theme URI: https://hisaya.neural-athlete.com/
Author: 佐藤久哉
Description: プロスキーヤー佐藤久哉の日常ブログ用オリジナルテーマ。旧サイト（Cocoon）の見た目に合わせた、白基調のシンプルなデザイン。プラグイン不要で、記事一覧・単体記事・固定ページ・コメント・お問い合わせフォーム（ショートコード）に対応。
Version: 1.2.8
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hisaya-original
*/

:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --text: #333333;
  --muted: #777777;
  --line: #e5e7eb;
  --link: #1967d2;
  --label: rgba(51, 51, 51, .7);
  --soft: #f5f6f7;
  --pager: #eeeeee;
  --maxw: 1256px;
  --side: 376px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  word-break: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: .6em 1em; z-index: 1000; left: 8px; top: 8px; }

/* ---------- Header（白地にバナー画像＋メニュー） ---------- */
.site-header { background: var(--paper); }
.header-banner { max-width: var(--maxw); margin: 0 auto; }
.header-banner a { display: block; line-height: 0; }
.header-banner img { width: 100%; height: auto; display: block; }
.header-text { text-align: center; padding: 20px 16px 30px; }
.site-title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; }
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; opacity: .8; }
.site-description { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.site-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-nav .container { display: flex; justify-content: center; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; width: 100%; max-width: 720px; }
.primary-menu li { flex: 1 1 0; min-width: 0; }
.primary-menu a { display: block; padding: 12px 8px; color: var(--text); font-size: 16px; text-align: center; white-space: nowrap; }
.primary-menu a:hover { background: var(--soft); text-decoration: none; }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { font-weight: 700; }

.container { width: min(100% - 24px, var(--maxw)); margin-inline: auto; }

/* ---------- Layout ---------- */
.site-main { padding: 24px 0 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 24px; align-items: start; }
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.main-box { background: var(--paper); border: 1px solid #e9e9e9; padding: 29px; }

.archive-title { font-size: 20px; margin: 0 0 20px; padding: 0 0 10px; border-bottom: 2px solid var(--text); }

/* ---------- 記事一覧（サムネイル左・Cocoon風） ---------- */
.post-list { display: block; }
.post-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; margin-bottom: 0; }
.thumb { position: relative; display: block; background: var(--soft); aspect-ratio: 16 / 9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-label { position: absolute; top: 0; left: 0; background: var(--label); color: #fff; font-size: 12px; line-height: 1; padding: 6px 10px; z-index: 1; }
.post-card .body { display: flex; flex-direction: column; min-width: 0; }
.post-card h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.6; font-weight: 700; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { text-decoration: underline; }
.excerpt { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.post-date { margin-top: auto; padding-top: 6px; font-size: 12.6px; text-align: right; color: var(--text); }

.pagination { margin-top: 28px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; text-align: center; padding: 6px 12px; background: var(--pager); color: var(--text); border-radius: 3px; }
.pagination .page-numbers.current { background: var(--text); color: #fff; }
.pagination a.page-numbers:hover { background: #ddd; text-decoration: none; }

/* ---------- 記事・固定ページ ---------- */
.entry-title { font-size: 28px; line-height: 1.5; margin: 0 0 16px; font-weight: 700; }
.entry-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.entry-meta .cat-chip { background: var(--label); color: #fff; padding: 2px 10px; font-size: 12px; }
.entry-meta .cat-chip:hover { text-decoration: none; opacity: .85; }
.entry-thumb { margin: 0 0 22px; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 18px; }
.entry-content h2 { font-size: 24px; margin: 2em 0 .8em; padding: .5em .8em; background: var(--soft); border-left: 6px solid var(--text); line-height: 1.5; }
.entry-content h3 { font-size: 21px; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.4em; background: var(--soft); border-left: 4px solid #ccc; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid #ccc; padding: 8px 12px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 0 1.2em .8em 0; }
.entry-content .alignright { float: right; margin: 0 0 .8em 1.2em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-footer { margin-top: 26px; font-size: 13px; }
.tag-list a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 12px; border: 1px solid #ccc; color: var(--muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.post-nav a { display: block; background: var(--soft); padding: 12px 16px; color: var(--text); font-size: 14px; line-height: 1.6; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- サイドバー ---------- */
.widget { background: var(--paper); border: 1px solid #e9e9e9; padding: 0 0 16px; margin-bottom: 20px; }
.widget-title { margin: 0 0 12px; padding: 10px 16px; background: var(--soft); font-size: 18px; font-weight: 700; }
.widget ul { list-style: none; margin: 0; padding: 0 16px; }
.widget li { padding: 7px 0; border-bottom: 1px dotted #ddd; font-size: 15px; line-height: 1.6; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--text); }
.widget .meta-date { display: block; font-size: 12px; color: var(--muted); }
.widget select { width: calc(100% - 32px); margin: 0 16px; padding: 8px; border: 1px solid #ccc; font: inherit; font-size: 15px; background: #fff; }
.widget .search-form { padding: 0 16px; }

.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 1px solid #ccc; padding: 8px 12px; font: inherit; font-size: 15px; }
.search-form button, .button, .contact-form button { background: var(--text); color: #fff; border: 0; padding: 8px 20px; font: inherit; font-size: 15px; cursor: pointer; }
.search-form button:hover, .button:hover, .contact-form button:hover { background: #000; color: #fff; text-decoration: none; }

/* ---------- コメント ---------- */
.comments-area { margin-top: 32px; }
.comments-area ol { list-style: none; padding-left: 0; }
.comments-area .children { padding-left: 20px; list-style: none; }
.comment-body { border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #ccc; padding: 8px 12px; font: inherit; font-size: 16px;
}
.comments-title { font-size: 20px; margin: 0 0 12px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { display: grid; gap: 16px; max-width: 640px; }
.contact-form label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.contact-form input, .contact-form textarea { border: 1px solid #ccc; padding: 10px 14px; font: inherit; font-size: 16px; background: #fff; width: 100%; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; margin-bottom: 16px; }
.notice.ok { background: #e7f6ec; color: #1d6b3a; }
.notice.ng { background: #fdeaea; color: #8f1d1d; }

/* ---------- フッター ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 28px 0 24px; text-align: center; font-size: 14px; }
.site-footer a { color: var(--text); }
.social-links { display: flex; gap: 10px; list-style: none; margin: 0 0 12px; padding: 0; justify-content: center; }
.social-links a { display: inline-block; padding: 4px 16px; border: 1px solid #ccc; font-size: 13px; }
.social-links a:hover { background: var(--soft); text-decoration: none; }
.footer-menu { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.copyright { margin: 0; color: var(--muted); font-size: 13px; }

.back-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; background: var(--label); color: #fff; display: none; align-items: center; justify-content: center; z-index: 60; border: 0; cursor: pointer; font-size: 18px; }
.back-top.show { display: flex; }

/* ---------- スマホ下部ボタン ---------- */
.mobile-bar, .mobile-menu, .panel-overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  body.show-sidebar .sidebar {
    display: block; position: fixed; top: 0; right: 0; bottom: 56px; width: min(88vw, 380px);
    overflow-y: auto; background: var(--bg); padding: 12px; z-index: 120; box-shadow: -4px 0 16px rgba(0,0,0,.2);
  }
}
@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 56px; }
  .main-box { padding: 16px 14px; border-left: 0; border-right: 0; }
  .container { width: 100%; }
  .layout { gap: 0; }
  .site-main { padding: 12px 0 32px; }
  .back-top { display: none !important; }

  /* 旧サイトと同じ: メニューは下部ボタンから左に開くパネルにまとめる */
  .site-nav { display: none; }
  .panel-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 110; }
  body.show-menu .panel-overlay, body.show-sidebar .panel-overlay { display: block; }
  .mobile-menu {
    display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 72%; max-width: 320px; background: #fff;
    z-index: 120; padding: 12px 0; overflow-y: auto; transform: translateX(-102%); transition: transform .25s ease;
  }
  body.show-menu .mobile-menu { transform: none; box-shadow: 4px 0 16px rgba(0,0,0,.25); }
  .mobile-menu-list { list-style: none; margin: 0; padding: 0; }
  .mobile-menu-list a { display: block; padding: 12px 18px; color: var(--text); font-size: 16px; }
  .mobile-menu-list a:hover { background: var(--soft); text-decoration: none; }

  .post-card { grid-template-columns: 38% minmax(0, 1fr); gap: 12px; padding-bottom: 14px; margin-bottom: 14px; }
  .cat-label { font-size: 10px; padding: 4px 7px; }
  .post-card h2 { font-size: 15px; line-height: 1.5; }
  .excerpt { font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .entry-title { font-size: 22px; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 18px; }
  .post-nav { grid-template-columns: 1fr; }

  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: #fff; border-top: 1px solid var(--line); z-index: 100; }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; font: inherit; font-size: 10px; color: var(--text); cursor: pointer; padding: 0; text-decoration: none; }
  .mobile-bar .ico { font-size: 20px; line-height: 1; }
  .mobile-search { display: none; position: fixed; left: 0; right: 0; bottom: 56px; padding: 12px; background: #fff; border-top: 1px solid var(--line); z-index: 95; }
  body.show-search .mobile-search { display: block; }
}
@media (min-width: 769px) {
  .mobile-search, .mobile-menu, .panel-overlay { display: none; }
}

/* 過去のブログ: 直近5か月だけ表示し、残りは折りたたみ */
.archive-more { padding: 6px 16px 0; font-size: 14px; }
.archive-more summary { cursor: pointer; color: var(--link); padding: 4px 0; }
.archive-more select { width: 100%; margin: 6px 0 0; }

/* ---------- プロフィールページ（ブロックエディタで編集できる構成） ---------- */
.profile { font-size: 16px; }
.profile .profile-hero { align-items: center; flex-wrap: nowrap; gap: 28px; margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.profile .profile-hero .wp-block-column { margin: 0; }
.profile .profile-photo { margin: 0; }
.profile .profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.profile .profile-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.entry-content .profile .profile-name { margin: 0; padding: 0; background: none; border: 0; font-size: 32px; line-height: 1.3; }
.profile .profile-kana { margin: 2px 0 14px; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.profile .profile-fact { margin: 0 0 6px; }
.profile .profile-fact strong { display: inline-block; width: 5.5em; margin-right: 8px; color: var(--muted); font-size: 14px; font-weight: 400; text-align: left; }

.entry-content .profile .profile-h { margin: 32px 0 14px; padding: 0 0 8px 12px; background: none; border: 0; border-left: 5px solid var(--text); border-bottom: 1px solid var(--line); font-size: 20px; }

.profile .profile-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile .profile-roles > * { margin: 0; }
.profile .profile-role { background: var(--soft); padding: 12px 16px; }
.profile .profile-role p { margin: 0; }
.profile .profile-role .org { font-size: 14px; color: var(--muted); line-height: 1.5; }
.profile .profile-role .role { font-size: 17px; }

.profile .profile-timeline { position: relative; margin: 0; padding: 0 0 0 4px; }
.profile .profile-timeline > * { margin: 0; }
.profile .profile-timeline::before { content: ""; position: absolute; left: 91px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.profile .profile-year { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; padding: 8px 0; position: relative; }
.profile .profile-year > * { margin: 0; }
.profile .profile-year::before { content: ""; position: absolute; left: 87px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--text); }
.profile .profile-year p { line-height: 1.8; }
.profile .profile-year .year { font-weight: 700; font-size: 17px; text-align: right; white-space: nowrap; }

/* グループブロックの内側の入れ物は無いものとして扱い、行・カードを直接並べる */
.profile .wp-block-group__inner-container { display: contents; }
.profile .profile-roles .wp-block-group__inner-container > *,
.profile .profile-timeline .wp-block-group__inner-container > * { margin: 0 !important; }

@media (max-width: 781px) {
  .profile .profile-hero { text-align: center; gap: 16px; }
  .profile .profile-photo { width: 160px; max-width: 100%; margin-inline: auto; }
  .entry-content .profile .profile-name { font-size: 26px; }
  .profile .profile-fact { max-width: 17em; margin-inline: auto; text-align: left; }
}
@media (max-width: 768px) {
  .profile .profile-roles { grid-template-columns: 1fr; }
  .profile .profile-timeline::before { left: 80px; }
  .profile .profile-year { grid-template-columns: 64px minmax(0, 1fr); gap: 26px; }
  .profile .profile-year::before { left: 76px; }
  .profile .profile-year .year { font-size: 15px; }
}

/* ---------- お問い合わせ（入力 → 確認 → 完了） ---------- */
.contact-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 0; }
.contact-steps li { flex: 1; text-align: center; padding: 8px 4px; background: var(--soft); color: var(--muted); font-size: 14px; position: relative; }
.contact-steps li + li { margin-left: 2px; }
.contact-steps li span { display: inline-block; width: 22px; height: 22px; line-height: 22px; margin-right: 6px; border-radius: 50%; background: #ccc; color: #fff; font-size: 12px; }
.contact-steps li.is-current { background: var(--text); color: #fff; font-weight: 700; }
.contact-steps li.is-current span { background: #fff; color: var(--text); }
.contact-lead { margin: 0 0 18px; font-size: 15px; }
.req { color: #d33; font-weight: 700; }
.contact-form { max-width: 720px; gap: 20px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field label { font-weight: 700; font-size: 15px; display: block; }
.contact-form .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.contact-form .field-error { color: #c02626; font-size: 13px; font-weight: 700; }
.contact-form .has-error input, .contact-form .has-error textarea { border-color: #c02626; background: #fff7f7; }
.contact-form .actions { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.contact-form .btn-primary, .contact-done .button { min-width: 180px; background: var(--text); color: #fff; border: 0; padding: 12px 28px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.contact-form .btn-primary:hover, .contact-done .button:hover { background: #000; text-decoration: none; }
.contact-form .btn-secondary { min-width: 140px; background: #fff; color: var(--text); border: 1px solid #999; padding: 12px 24px; font: inherit; font-size: 16px; cursor: pointer; }
.contact-form .btn-secondary:hover { background: var(--soft); }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.confirm-list { margin: 0; border: 1px solid var(--line); }
.confirm-list > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.confirm-list > div:last-child { border-bottom: 0; }
.confirm-list dt { background: var(--soft); padding: 12px 14px; font-weight: 700; font-size: 15px; }
.confirm-list dd { margin: 0; padding: 12px 14px; word-break: break-word; }
.contact-done { text-align: center; padding: 16px 0 8px; }
.contact-done h2 { font-size: 22px; margin: 0 0 14px; padding: 0; background: none; border: 0; }
.contact-done .note { display: inline-block; margin: 6px 0 24px; padding: 12px 18px; background: var(--soft); font-size: 15px; }
.contact-done .button { display: inline-block; color: #fff; }
@media (max-width: 768px) {
  .confirm-list > div { grid-template-columns: 1fr; }
  .contact-form .actions.two { flex-direction: column-reverse; }
  .contact-form .actions.two button, .contact-form .btn-primary { width: 100%; }
}

/* ---------- スマホ最適化 (1.2.2) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,.08); }
body { overflow-x: clip; }
.entry-content, .entry-content p, .entry-content li, .entry-content td, .comment-body, .widget li { overflow-wrap: anywhere; }
.entry-content img, .entry-content figure, .entry-content video, .entry-content canvas { max-width: 100%; height: auto; }
.entry-content > *, .entry-content div, .entry-content table, .entry-content pre { max-width: 100%; }
.entry-content pre { overflow-x: auto; }
.entry-content .yt-embed { position: relative; width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"] { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content object, .entry-content embed { max-width: 100%; }

@media (max-width: 768px) {
  /* 固定幅(width:600px等)を持つ古い記事の横はみ出し対策 */
  .entry-content [style*="width"] { max-width: 100% !important; }
  .entry-content div[class="mobile"], .entry-content .mobile { width: auto !important; box-sizing: border-box; }
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100% !important; }
  .entry-content table td, .entry-content table th { min-width: 0; }
  .entry-content object, .entry-content embed { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
  .entry-content .alignleft, .entry-content .alignright, .entry-content img[align] { float: none; display: block; margin: 0 auto 1em; }
  .entry-content iframe { max-width: 100%; }
  .entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"] { width: 100%; height: auto; }

  /* iOSの入力時の自動ズームを防ぐ */
  input, select, textarea, .search-form input[type="search"], .widget select, .contact-form input, .contact-form textarea { font-size: 16px; }

  /* タップしやすい大きさ */
  .pagination a, .pagination span, .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .widget li a { display: inline-block; padding: 4px 0; }
  .mobile-menu-list a { padding: 15px 20px; min-height: 48px; box-sizing: border-box; }
  .social-links a { padding: 10px 18px; }
  .post-nav a { padding: 14px 16px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; }
  .contact-form .btn-primary, .contact-form .btn-secondary { min-height: 48px; }

  /* セーフエリア（ホームバー/ノッチ） */
  .mobile-bar { height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: border-box; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .mobile-search { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  body.show-sidebar .sidebar { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar a, .mobile-bar button { font-size: 11px; min-height: 56px; }
  .mobile-menu { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }

  /* パネルを開いている間は背面をスクロールさせない */
  body.show-menu, body.show-sidebar { overflow: hidden; }
  .mobile-menu, body.show-sidebar .sidebar { overscroll-behavior: contain; }
}
@media (max-width: 380px) {
  .post-card { grid-template-columns: 36% minmax(0, 1fr); gap: 10px; }
  .entry-title { font-size: 20px; }
  .main-box { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
