@charset "utf-8";
.blog-list { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media(max-width:640px){ .blog-list { grid-template-columns:repeat(2,1fr); gap:8px; } }
.blog-card { border:1px solid #e0e0e0; border-radius:4px; overflow:hidden; cursor:pointer; transition:box-shadow 0.2s; }
.blog-card:hover { box-shadow:0 2px 8px rgba(0,0,0,0.18); }
.blog-thumb { width:100%; aspect-ratio:1; overflow:hidden; }
.blog-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.blog-body { padding:6px; }
.blog-meta { display:flex; align-items:center; gap:4px; margin-bottom:3px; }
.blog-author { display:flex; align-items:center; gap:4px; flex:1; min-width:0; }
.blog-author img { width:20px; height:20px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.blog-author span { font-size:10px; color:#777; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* モーダル内 名前横の「本日出勤中」バッジ */
.modal-honjitsu { color:#fff; background:#D6428B; padding:3px 9px; border-radius:10px; font-size:10px; font-weight:bold; margin-left:6px; vertical-align:middle; white-space:nowrap; display:none; line-height:1; }
.modal-honjitsu.is-active { display:inline-block; }
.blog-date { font-size:10px; color:#bbb; white-space:nowrap; flex-shrink:0; }
.blog-title { font-size:11px; font-weight:bold; color:#333; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0; }
/* modal */
.blog-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.72); z-index:2000; display:none; align-items:center; justify-content:center; padding:16px; }
.blog-modal-overlay.is-open { display:flex; }
.blog-modal { background:#fff; border-radius:8px; width:100%; max-width:560px; height:88vh; display:flex; flex-direction:column; position:relative; }
.blog-modal-hd, .blog-modal-title, .blog-modal-footer { flex-shrink:0; }
.blog-modal-body { flex:1; overflow-y:auto; }
/* 本文中の画像（複数可・本家準拠のHTML埋め込み） */
.blog-modal-body img.main-image { max-width:100%; height:auto; display:block; margin:12px auto; border-radius:4px; }
.blog-modal-body p   { margin:0 0 1em; }
.blog-modal-body p:last-child { margin-bottom:0; }
/* スクロール継続ヒント（下端フェード + 点滅矢印） */
.blog-modal-body { mask-image:linear-gradient(to bottom, black calc(100% - 24px), transparent); -webkit-mask-image:linear-gradient(to bottom, black calc(100% - 24px), transparent); transition:mask-image 0.2s, -webkit-mask-image 0.2s; }
.blog-modal-body.is-bottom, .blog-modal-body.no-overflow { mask-image:none; -webkit-mask-image:none; }
.blog-modal-scroll-hint { position:absolute; left:50%; transform:translateX(-50%); bottom:64px; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,0.45); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; pointer-events:none; z-index:5; transition:opacity 0.2s; animation:scrollHintBounce 1.4s ease-in-out infinite; }
.blog-modal-scroll-hint.is-hidden { opacity:0; }
@keyframes scrollHintBounce { 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,4px);} }
.blog-modal-close { position:absolute; top:8px; right:12px; font-size:24px; color:#888; background:none; border:none; cursor:pointer; line-height:1; z-index:1; padding:4px; }
.blog-modal-close:hover { color:#333; }
.blog-modal-hd { display:flex; align-items:center; gap:10px; padding:16px 44px 12px 16px; border-bottom:1px solid #eee; }
.blog-modal-hd img { width:46px; height:46px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.modal-author { font-size:13px; font-weight:bold; }
.modal-author a, #modal-cast-link { color:#931d1d; text-decoration:none; }
.modal-author a:hover, #modal-cast-link:hover { text-decoration:underline; }
#modal-cast-link { display:block; flex-shrink:0; }
.modal-date { font-size:11px; color:#999; margin-top:2px; }
.blog-modal-title { font-size:15px; font-weight:bold; padding:14px 16px 8px; line-height:1.5; color:#222; }
.blog-modal-body { font-size:13px; line-height:1.9; color:#444; padding:0 16px 24px; }
.blog-modal-footer { padding:0 16px 20px; display:flex; gap:8px; justify-content:center; align-items:center; }
.blog-modal-close-btn { background:#555; color:#fff; border:none; border-radius:4px; padding:10px 30px; font-size:14px; font-weight:bold; cursor:pointer; }
.blog-modal-close-btn:hover { background:#333; }
.blog-modal-nav { background:#999; color:#fff; border:none; border-radius:4px; padding:10px 18px; font-size:14px; font-weight:bold; cursor:pointer; touch-action:manipulation; }
.blog-modal-nav:hover { background:#666; }
/* ダブルタップズーム抑止（モーダル操作系全般） */
.blog-modal-close, .blog-modal-close-btn, .blog-modal-swipe-hint { touch-action:manipulation; }
/* スワイプヒント矢印（SP/タブレットのみ） */
.blog-modal-swipe-hint { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; background:rgba(0,0,0,0.5); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:bold; cursor:pointer; z-index:2; animation:swipeHintPulse 1.6s ease-in-out infinite; user-select:none; }
.blog-modal-swipe-hint:active { background:rgba(0,0,0,0.75); }
.blog-modal-swipe-hint.left  { left:12px; }
.blog-modal-swipe-hint.right { right:12px; }
@keyframes swipeHintPulse {
    0%,100% { opacity:0.6; }
    50%     { opacity:1;   }
}
@media(min-width:894px){ .blog-modal-swipe-hint { display:none; } }
