/*
Theme Name: BLACK MEZAME NEWS LOG
Description: モルアゥナと黒猫が案内する、白を基調とした独立オリジナルテーマ。
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: black-mezame-newslog
*/
:root{--ink:#171b2d;--muted:#60647a;--line:#e3e3ee;--pale:#f2f1f7;--accent:#373969;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",Georgia,serif;--sans:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif}
/* NEWS LOG card palette: home and category listings only. */
.home .post-card, .category .post-card { background: #f2f1f7; border-color: #e0dfe9; }
.home .post-card h3, .category .post-card h3,
.home .post-card h3 a:hover, .category .post-card h3 a:hover,
.home .post-card h3 a:focus-visible, .category .post-card h3 a:focus-visible { color: #1f2240; }
.home .post-card .excerpt, .category .post-card .excerpt { color: #4b4f68; }
.home .post-card time, .category .post-card time { color: #62677a; }
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:var(--serif);font-size:15px;line-height:1.8;overflow-wrap:anywhere}img{max-width:100%;height:auto;vertical-align:middle}a{color:inherit;text-decoration:none}a:hover{color:var(--accent);text-decoration:underline}button,input,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7677ae;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.5}ul{padding-left:1.4em}.container{width:min(1310px,calc(100% - 80px));margin-inline:auto}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:12px;left:12px;background:#fff;padding:12px;z-index:100}.muted{color:var(--muted)}[hidden]{display:none!important}
.site-header{border-bottom:1px solid var(--line);background:#fff}.header-inner{min-height:82px;display:flex;align-items:center;gap:30px}.site-brand{width:270px;flex-shrink:0}.site-brand img{display:block;width:100%;height:auto}.primary-navigation{margin-left:auto}.menu{display:flex;list-style:none;margin:0;padding:0;gap:25px;font-size:13px;letter-spacing:.04em;flex-wrap:wrap}.menu a{display:block;padding:8px 0}.current-menu-item>a,.current_page_item>a{border-bottom:2px solid var(--accent)}.menu li{position:relative}.menu .sub-menu{list-style:none;padding:8px 16px;margin:0;background:#fff;border:1px solid var(--line);min-width:170px}.header-search{width:190px;flex-shrink:0}.search-form{position:relative;display:flex;border:1px solid #d4d5e3;border-radius:3px;background:#fff;min-height:38px;font-family:var(--sans)}.search-form input[type=search]{min-width:0;width:100%;border:0;background:transparent;padding:8px 42px 8px 12px;font-size:12px;color:var(--ink)}.search-form button{position:absolute;right:0;top:0;bottom:0;width:38px;border:0;background:transparent;color:var(--accent);display:grid;place-items:center}.search-form svg{stroke:currentColor;fill:none;stroke-width:1.6}.menu-toggle{border:1px solid var(--line);border-radius:3px;background:#fff;padding:7px 12px;color:var(--ink)}
.hero{position:relative;isolation:isolate}.hero-picture{display:block}.hero-picture img{display:block;width:100%;height:auto}.hero-copy{position:absolute;inset:0 auto 0 0;width:35%;padding:clamp(16px,3vw,48px) clamp(20px,4.8vw,80px);display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.83) 70%,rgba(255,255,255,0));z-index:1}.eyebrow{font-family:Georgia,serif;font-size:11px;letter-spacing:.3em;margin-bottom:12px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(32px,4.5vw,74px);line-height:1.05;white-space:nowrap;letter-spacing:-.03em;margin:0 0 20px}.hero-copy>p:last-child{font-size:clamp(12px,1.1vw,17px);margin:0;max-width:27ch;line-height:1.9}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:36px;padding-top:28px;padding-bottom:44px}.main-column,.sidebar{min-width:0}.introduction{display:flex;gap:22px;background:var(--pale);padding:18px 24px;border-radius:3px;margin-bottom:24px;align-items:center}.intro-mark{width:76px;flex-shrink:0;padding-right:15px;border-right:1px solid #a8a9bc}.introduction h2{font-size:17px;margin-bottom:4px}.introduction p{font-size:14px;margin:0;white-space:normal}.section-heading{display:flex;align-items:baseline;gap:20px;border-bottom:1px solid var(--line);margin-bottom:18px;padding-bottom:10px}.section-heading h2{font-size:23px;letter-spacing:.12em;margin:0}.section-heading>span{font-size:12px;color:var(--muted)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px}.post-card{border:1px solid var(--line);border-radius:3px;overflow:hidden;background:#fff;min-width:0;display:flex;flex-direction:column}.post-image{display:flex;align-items:center;justify-content:center;background:var(--pale);aspect-ratio:2/1}.post-image img{width:100%;height:100%;object-fit:contain}.post-image img.fallback-image{width:50%}.card-body{position:relative;padding:13px 17px 26px;flex:1}.post-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-family:var(--sans);font-size:11px;color:var(--muted);margin-bottom:7px}.category-badge{padding:2px 9px;border-radius:4px;font-size:10px;color:#fff;background:#61677c;line-height:1.6}.category-badge:hover{color:#fff}.category-badge.category-development{background:#4053a8}.category-badge.category-behind-the-scenes{background:#8054a3}.category-badge.category-diary{background:#416f7b}.category-badge.category-information{background:#67538e}.post-card h3{font-size:18px;margin:0 0 7px}.excerpt{font-size:14px;line-height:1.65;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-arrow{position:absolute;bottom:8px;right:16px}.pagination{margin-top:24px;text-align:center;font-family:var(--sans);font-size:13px}.nav-links{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.page-numbers{padding:6px 13px;border:1px solid var(--line);border-radius:20px}.page-numbers.current,.page-numbers.next{background:var(--accent);color:#fff}.archive-description{color:var(--muted);margin-bottom:20px}.category-banner{margin-bottom:22px}.category-banner img{width:100%;height:auto}.empty-state{padding:44px 24px;background:var(--pale);border:1px solid var(--line);border-radius:3px}.empty-state h3{font-size:22px}.empty-state p{color:var(--muted)}.empty-state .search-form{max-width:420px}
.sidebar{font-size:13px}.sidebar-section{margin-top:22px}.sidebar h2{font-size:18px;letter-spacing:.08em;border-bottom:1px solid #babdcc;padding-bottom:8px;margin-bottom:10px}.category-list,.recent-posts{list-style:none;padding:0;margin:0}.category-list li{border-bottom:1px solid var(--line)}.category-list a{display:flex;justify-content:space-between;gap:12px;padding:6px 2px}.category-count{color:var(--muted);font-family:var(--sans);font-size:11px}.category-guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.category-guides a{border-radius:3px;overflow:hidden;border:1px solid var(--line)}.category-guides img{display:block;width:100%;height:auto}.recent-posts li{border-bottom:1px solid var(--line);padding:8px 0}.recent-posts a{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;line-height:1.5}.recent-image{display:flex;align-items:center;background:var(--pale)}.recent-image img{width:100%;height:auto}.recent-posts time{display:block;color:var(--muted);font-size:11px;font-family:var(--sans);margin-top:4px}.profile{display:grid;grid-template-columns:95px minmax(0,1fr);gap:14px;align-items:start}.profile>img{border-radius:8px;width:95px;height:auto}.profile h3{font-size:15px;margin:0 0 6px}.profile p{font-size:12px;margin:0}.profile-link{display:block;text-align:right;margin-top:10px;color:var(--accent);font-size:12px}
.site-footer{border-top:1px solid var(--line)}.footer-scene{position:relative}.footer-scene:before{content:"";position:absolute;inset:0 0 auto;height:15%;background:linear-gradient(#fff,transparent);pointer-events:none}.footer-scene img{display:block;width:100%;height:auto}.footer-bar{background:#111b30;color:#e3e7f5;font-family:var(--sans);font-size:11px;padding:22px 0}.footer-inner{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.footer-inner small{margin-left:auto}.footer-inner .menu{font-size:11px;gap:20px}.entry-header h1,.entry-header h2{font-size:clamp(25px,3vw,36px);margin-bottom:22px}.entry-content{font-size:16px;line-height:2}.entry-featured{margin-bottom:28px}.entry-featured img{width:100%;height:auto}.entry-content a,.entry-tags a{color:var(--accent);text-decoration:underline}.entry-content img,.entry-content video,.entry-content iframe{max-width:100%}.entry-content img{height:auto}.entry-content figure{max-width:100%;margin-inline:0}.entry-content blockquote{border-left:3px solid var(--accent);padding-left:20px;margin-inline:0;color:var(--muted)}.entry-content pre{overflow:auto;padding:20px;background:var(--pale)}.entry-content table{border-collapse:collapse;width:100%;display:block;overflow:auto}.entry-content th,.entry-content td{border:1px solid var(--line);padding:8px}.entry-tags{margin-top:25px}.post-navigation{margin-block:30px}.post-navigation .nav-links{justify-content:space-between}.comments-area{border-top:1px solid var(--line);padding-top:24px;margin-top:32px}.comment-list{padding-left:20px}.comment-list .children{padding-left:18px}.comment-form textarea,.comment-form input:not([type=checkbox]){max-width:100%;border:1px solid #babdcc;padding:8px}.comment-form textarea{width:100%}.comment-form .submit{background:var(--accent);color:#fff;border:0;padding:10px 22px;border-radius:3px}.comment-body{margin-bottom:20px}
@media(min-width:768px){.primary-navigation .sub-menu{position:absolute;z-index:4;left:0;top:100%;display:none}.primary-navigation li:hover>.sub-menu,.primary-navigation li:focus-within>.sub-menu{display:block}.primary-navigation .sub-menu .sub-menu{left:100%;top:0}}
@media(max-width:1199px){.container{width:calc(100% - 48px)}.header-inner{gap:20px}.site-brand{width:240px}.header-search{display:none}.content-layout{grid-template-columns:minmax(0,1fr) 270px;gap:24px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu{gap:18px}.hero-copy{padding:22px 24px;width:35%}.hero h1{font-size:clamp(30px,4.5vw,52px)}}
@media(max-width:959px){.content-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sidebar>.search-form{grid-column:1/-1;max-width:420px}.sidebar-section{margin-top:0}.site-brand{width:220px}.menu{font-size:12px;gap:14px}.hero-copy{padding:18px}.hero-copy>p:last-child{font-size:12px}.hero h1{margin-bottom:12px}}
@media(max-width:767px){.container{width:calc(100% - 32px)}.header-inner{min-height:76px;flex-wrap:wrap;gap:0;justify-content:space-between;padding-block:8px}.site-brand{width:210px}.primary-navigation{width:100%;margin:8px 0 0}.primary-navigation .menu{flex-direction:column;gap:0;font-size:14px}.navigation-ready .primary-navigation:not(.is-open){display:none}.primary-navigation .sub-menu{border:0;border-left:1px solid var(--line)}.header-search{display:none}.hero-copy{position:static;width:100%;padding:24px 20px 28px;background:linear-gradient(#f5f3fa,#fff)}.hero h1{font-size:46px;margin-bottom:14px}.hero-copy>p:last-child{font-size:14px;max-width:none}.hero-picture img{width:100%;height:auto}.content-layout{padding-top:15px;padding-bottom:30px}.post-grid{grid-template-columns:minmax(0,1fr);gap:20px}.post-card h3{font-size:20px}.post-image{aspect-ratio:2/1}.section-heading{gap:12px;flex-wrap:wrap}.section-heading h2{font-size:22px}.sidebar{display:block}.sidebar-section{margin-top:24px}.category-guides{gap:12px}.category-guides img{width:100%}.introduction{padding:16px;gap:14px}.intro-mark{width:56px;padding-right:10px}.introduction p{font-size:13px}.footer-inner{gap:14px;display:block}.footer-inner small{display:block;margin-top:15px}.footer-inner nav{margin-bottom:12px}.footer-inner .menu{gap:12px}.footer-scene:before{height:8%}.profile{grid-template-columns:95px 1fr}.entry-content{font-size:15px}.entry-content .alignleft,.entry-content .alignright{float:none;margin-inline:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* 1.0.1: compact cards and mobile sidebar; retain all supplied image compositions. */
.post-grid { align-items: start; }
.card-body { padding: 12px 15px 24px; flex: 0 0 auto; }
.post-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.post-meta { font-size: 12px; gap: 6px; margin-bottom: 7px; }
.category-badge { font-size: 12px; padding: 3px 8px; }
.excerpt { font-size: 14px; line-height: 1.7; }
.category-guide-section { margin-top: 16px; }
.category-guide-section h3 { font-size: 14px; margin-bottom: 8px; }
.footer-scene { background: #111b30; }
.footer-scene img { max-width: 1310px; margin-inline: auto; }
@media (max-width: 767px) {
  .post-card h3 { font-size: 18px; -webkit-line-clamp: 3; }
  .card-body { padding: 12px 14px 23px; }
  .category-guide-section { display: none; }
  .sidebar { font-size: 14px; }
  .sidebar-section { margin-top: 18px; }
  .sidebar h2 { font-size: 17px; margin-bottom: 6px; padding-bottom: 6px; }
  .category-list a { min-height: 44px; align-items: center; padding: 8px 4px; }
  .category-count { font-size: 12px; }
  .recent-posts li { padding: 5px 0; }
  .recent-posts a { min-height: 52px; align-items: center; font-size: 13px; }
  .recent-posts time { font-size: 12px; }
  .profile p { font-size: 13px; line-height: 1.7; }
  .profile-link { font-size: 14px; min-height: 44px; padding-block: 10px; }
  .footer-bar, .footer-inner .menu { font-size: 13px; }
  .footer-inner .menu { gap: 4px 16px; }
  .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-inner .menu a { padding-block: 8px; }
}

/* Individual NEWS LOG entries only; keep historical archive articles unchanged. */
.single-post .entry:not(.category-past-articles) .entry-header h1 {
  font-size: 28px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.single-post .entry:not(.category-past-articles) .entry-header .post-meta {
  margin-bottom: 12px;
}
.single-post .entry:not(.category-past-articles) .entry-featured {
  margin-bottom: 28px;
  text-align: center;
}
.single-post .entry:not(.category-past-articles) .entry-featured img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .single-post .entry:not(.category-past-articles) .entry-header h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .single-post .entry:not(.category-past-articles) .entry-featured {
    margin-bottom: 22px;
  }
  .single-post .entry:not(.category-past-articles) .entry-featured img {
    max-height: 240px;
  }
}

/* Keep the hero introduction on one line without changing the illustration. */
.hero-copy > p:last-child { max-width: none; width: max-content; white-space: nowrap; }
@media (max-width: 767px) {
  .hero-copy > p:last-child { font-size: clamp(10px, 3.2vw, 14px); max-width: 100%; }
}
