/* EmDash-specific additions for the WordPress-parity theme (design1).
   wp-live.css is the captured live CSS; everything here fills gaps that WordPress plugins
   or EmDash-only markup would otherwise leave unstyled. */

/* --- Share bar: subset of AddToAny 1.16 (addtoany.min.css) for the static share links --- */
.addtoany_list{display:inline;line-height:16px}
.addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;text-decoration:none}
.addtoany_list a span{display:inline-block;float:none}
.addtoany_list.a2a_kit_size_32 a{font-size:32px}
.addtoany_list.a2a_kit_size_32 a>span{height:32px;line-height:32px;width:32px}
.addtoany_list a>span{border-radius:4px;display:inline-block;opacity:1}
.addtoany_list.a2a_kit_size_32{line-height:32px}
.addtoany_list a svg{width:32px;height:32px}
.addtoany_list a:hover,.addtoany_list a:focus{background:none;border:0;box-shadow:none}
.addtoany_list a:hover span{opacity:.7}
.addtoany_share_save_container{clear:both;margin:16px 0}

/* --- EmDash "buttons" block → same look as the live core/button (wp-block-button__link) --- */
/* every core/buttons block on the WP site is centred (justification is lost by the WXR import) */
.wp-block-post-content .emdash-buttons{display:flex!important;flex-wrap:wrap;gap:.5em;justify-content:center!important;margin:1.2rem 0 0!important}
.wp-block-post-content a.emdash-button,
.wp-block-post-content a.emdash-button:visited{
	--emdash-button-bg:#101828;--emdash-button-color:#fff;
	display:inline-flex;align-items:center;justify-content:center;
	background:#101828;color:#fff;border:1px solid #101828;border-radius:.75rem;
	padding:.5rem 1rem!important;font-size:.875rem;font-weight:500;line-height:1.25!important;
	text-decoration:none;box-shadow:none;text-align:center}
.wp-block-post-content a.emdash-button:hover,
.wp-block-post-content a.emdash-button:focus-visible{background:#364153;color:#fff;text-decoration:none}
.wp-block-post-content a.emdash-button.emdash-button--outline{background:transparent;color:#101828;border:1px solid #e5e7eb}

/* EmDash renders figures/tables/code with its own scoped classes; keep them inside the
   constrained content width like WordPress blocks. */
.wp-block-post-content img{max-width:100%;height:auto}

/* --- EmDash table block → plain <table> as on the live site (WP classic HTML table,
   browser defaults). Keeps EmDash's horizontal scroll wrapper for narrow screens. --- */
.wp-block-post-content>.emdash-table-wrapper{margin-block:1.2rem 0 !important}
.wp-block-post-content .emdash-table{inline-size:100% !important;border-collapse:separate !important;border-spacing:2px !important;font-size:inherit !important;min-width:0!important}
.wp-block-post-content .emdash-table th,
.wp-block-post-content .emdash-table td{position:static !important;border:0 !important;padding:1px !important;vertical-align:middle !important;background:none !important}
.wp-block-post-content .emdash-table th{text-align:center !important;font-weight:700 !important}
.wp-block-post-content .emdash-table td{text-align:start !important}
.wp-block-post-content .emdash-table tbody tr:nth-child(even),
.wp-block-post-content .emdash-table tbody tr:hover{background:none !important}
.wp-block-post-content .emdash-table th p,.wp-block-post-content .emdash-table td p{margin:0 !important;font:inherit !important;padding:0 !important;border:0 !important;background:none !important;color:inherit !important}

/* design2: wp-live.css appends block CSS (search label width:100%) after the global
   .screen-reader-text rule; on live the global rule wins by load order. Re-assert it. */
.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}
.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}


/* design2: core/html blocks render raw on WP (no wrapper); EmDash wraps them in
   .emdash-html-block; display:contents makes its children lay out as direct flow children
   (block-gap 1.2rem top / 0 bottom), as on WP. */
.wp-block-post-content>div.emdash-html-block{display:contents}
.wp-block-post-content>div.emdash-html-block>*{margin-block:1.2rem 0}

/* design2: WP renders <hr> with the UA default (1px inset, block-gap margin); EmDash's break
   block uses a 1px top rule and 2rem margins. */
.wp-block-post-content>hr.emdash-break{border:1px inset!important;margin-block:1.2rem 0!important}


/* ==========================================================================
   AIZNOH NEWS (案A) — classic Japanese news-site overrides
   White background, deep navy header + nav band, one crimson accent.
   Appended last so these rules win over wp-live.css / the sections above.
   ========================================================================== */
:root{
	--news-navy:#0a2540;
	--news-navy-2:#10243e;
	--news-red:#b91c1c;
	--news-ink:#111827;
	--news-muted:#5b6770;
	--news-hairline:#d9dee3;
	--news-gothic:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
}
body{background:#fff !important;color:var(--news-ink)}
.wp-site-blocks{background:#fff}

/* --- Masthead --- */
.news-masthead{background:var(--news-navy);color:#fff}
.news-masthead-inner{max-width:1120px;margin:0 auto;padding:20px 16px 16px;display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.news-logo{font-family:var(--news-gothic);font-size:30px;font-weight:800;letter-spacing:.02em;line-height:1.1;color:#fff !important;text-decoration:none !important}
.news-date{margin:0;font-size:13px;color:#c3cede;white-space:nowrap}

/* --- Category nav band --- */
.news-nav{background:var(--news-navy-2);border-top:1px solid rgba(255,255,255,.16);border-bottom:3px solid var(--news-red)}
.news-nav-inner{max-width:1120px;margin:0 auto;padding:0 16px;display:flex;align-items:stretch;gap:4px;overflow-x:auto}
.news-nav a{display:block;padding:11px 14px;font-family:var(--news-gothic);font-size:15px;font-weight:700;color:#fff !important;text-decoration:none !important;white-space:nowrap}
.news-nav a:hover,.news-nav a:focus-visible{background:rgba(255,255,255,.12)}
.news-nav a[aria-current="page"]{box-shadow:inset 0 -3px 0 #fff}
.news-nav .news-nav-search{margin-left:auto}

/* --- Home heading (compact, no hero) --- */
.news-home-head{max-width:1120px;margin:0 auto;padding:22px 16px 12px;border-bottom:2px solid var(--news-navy)}
.news-home-title{font-family:var(--news-gothic);font-size:26px;font-weight:800;line-height:1.3;color:var(--news-navy);margin:0;padding-left:12px;border-left:5px solid var(--news-red)}
.news-home-tagline{margin:8px 0 0 17px;font-size:14px;color:var(--news-muted)}

/* --- Lead story (home page 1) --- */
.news-lead{padding:22px 0 20px;border-bottom:2px solid var(--news-navy)}
.news-lead-title{font-family:var(--news-gothic);font-size:clamp(26px,4.5vw,40px);font-weight:800;line-height:1.35;margin:8px 0 0}
.news-lead-title a{color:var(--news-ink) !important;text-decoration:none !important}
.news-lead-title a:hover,.news-lead-title a:focus-visible{color:var(--news-navy) !important;text-decoration:underline !important}
.news-lead-excerpt{margin:12px 0 0;font-size:16px;line-height:1.8;color:#374151}

/* --- News list rows (PostCards) --- */
.news-list{list-style:none;margin:0;padding:0}
.news-row{padding:16px 0;border-bottom:1px solid var(--news-hairline)}
.news-row-meta{display:flex;align-items:center;gap:12px;font-size:13px}
.news-cat{font-family:var(--news-gothic);font-weight:700;color:var(--news-red) !important;text-decoration:none !important}
.news-cat:hover,.news-cat:focus-visible{text-decoration:underline !important}
.news-row-date{color:var(--news-muted)}
.news-row-title{font-family:var(--news-gothic);font-size:20px;font-weight:800;line-height:1.45;margin:6px 0 0}
.news-row-title a{color:var(--news-ink) !important;text-decoration:none !important}
.news-row-title a:hover,.news-row-title a:focus-visible{color:var(--news-navy) !important;text-decoration:underline !important}
.news-row-excerpt{margin:6px 0 0;font-size:15px;line-height:1.7;color:#374151}

/* --- Footer --- */
.news-footer{background:var(--news-navy);color:#dbe3ec;margin-top:48px}
.news-footer-inner{max-width:1120px;margin:0 auto;padding:32px 16px 24px}
.news-footer-name{font-family:var(--news-gothic);font-size:20px;font-weight:800;color:#fff;margin:0}
.news-footer-desc{margin:8px 0 0;font-size:14px;line-height:1.7;color:#c3cede}
.news-footer-nav{display:flex;gap:48px;flex-wrap:wrap;margin-top:24px}
.news-footer-group p{font-family:var(--news-gothic);font-size:13px;font-weight:700;color:#fff;margin:0 0 8px}
.news-footer-group ul{list-style:none;margin:0;padding:0}
.news-footer-group li{margin:6px 0}
.news-footer-group a{font-size:14px;color:#dbe3ec !important;text-decoration:none !important}
.news-footer-group a:hover,.news-footer-group a:focus-visible{text-decoration:underline !important}
.news-copyright{margin:28px 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.2);font-size:13px;color:#c3cede}

/* --- Responsive: single column under 768px --- */
@media (max-width:767px){
	.news-masthead-inner{padding:16px 12px 12px}
	.news-logo{font-size:24px}
	.news-nav-inner{padding:0 8px}
	.news-nav a{padding:10px 10px;font-size:14px}
	.news-nav .news-nav-search{margin-left:0}
	.news-home-head{padding:18px 12px 10px}
	.news-home-title{font-size:22px}
	.news-lead-title{font-size:26px}
	.news-row-title{font-size:18px}
	.news-footer-nav{flex-direction:column;gap:20px}
}
