/*
Theme Name: 暮らしの速報 (sokuho-news)
Description: 暮らしの速報 news-explainer theme, cloned from ronten-editorial 1.1.2 and adapted (16:9 hero, 公開/更新 stamps, timeline/FAQ/出典 blocks, related posts).
Version: 1.0.0
Text Domain: sokuho-news
*/
:root{--ink:#161a22;--paper:#f5f6f8;--surface:#fff;--muted:#566070;--line:#dfe3e9;--accent:#d8261c;--accent-text:#b4201a;--accent-soft:#fdeceb;--accent-line:#f4c4c0;--blue:#1f4fd8;--blue-soft:#eef2ff;--navy:#0f1b33}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP","Yu Gothic",sans-serif;line-height:1.8;overflow-wrap:anywhere}
a{color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(100% - 40px,1060px);margin:0 auto}

/* Header */
.site-header{background:rgba(255,255,255,.96);border-top:4px solid var(--accent);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.header-inner{position:relative;min-height:68px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:22px;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}
.brand-mark{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:7px;background:var(--accent);color:#fff;font-size:17px;letter-spacing:0}
.site-nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-left:auto;justify-content:flex-end}
.site-nav a{font-size:13px;font-weight:700;text-decoration:none;padding:4px 10px;border-radius:999px;color:var(--muted)}
.site-nav a:hover{background:var(--accent-soft);color:var(--accent-text)}
.mobile-menu{display:none}

/* Pills */
.pills{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.pill{display:inline-block;padding:3px 12px;border-radius:999px;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent-text);font-size:12px;font-weight:800;line-height:1.7;text-decoration:none;letter-spacing:.02em}
a.pill:hover{background:var(--accent);border-color:var(--accent);color:#fff}

/* Home / archive */
.home-head{padding:34px 0 14px}
.home-head h1{margin:0 0 6px;font-size:clamp(26px,3.4vw,36px);line-height:1.3;letter-spacing:-.04em}
.home-head p{margin:0 0 16px;color:var(--muted);font-size:15px}
.archive-page{padding:34px 0 10px}
.archive-page h1{margin:6px 0 8px;letter-spacing:-.04em;line-height:1.3}
.archive-desc{color:var(--muted);max-width:760px;margin:0 0 20px}
.eyebrow{margin:0;color:var(--accent-text);font-weight:900;font-size:12px;letter-spacing:.08em}
.section-title{display:flex;align-items:center;gap:10px;margin:34px 0 14px;font-size:20px;letter-spacing:-.03em}
.section-title::before{content:"";width:5px;height:1.1em;background:var(--accent);border-radius:2px}
.lead-card{display:grid;grid-template-columns:1.25fr 1fr;gap:26px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;margin:12px 0 22px}
.lead-card h2{font-size:clamp(22px,2.6vw,30px);line-height:1.4;letter-spacing:-.04em;margin:10px 0}
.lead-card h2 a{text-decoration:none}
.lead-card h2 a:hover,.post-card h2 a:hover{text-decoration:underline}
.lead-card p{color:var(--muted);margin:0 0 10px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.post-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.post-card .card-body{padding:14px 16px 18px;display:flex;flex-direction:column;flex:1}
.post-card h2{margin:8px 0;font-size:18px;line-height:1.5;letter-spacing:-.03em}
.post-card h2 a{text-decoration:none}
.post-card p{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.7}
.card-stamps{margin-top:auto;font-size:12px;color:var(--muted)}
.thumb{display:block;text-decoration:none;aspect-ratio:16/9;background:linear-gradient(135deg,var(--navy) 0 58%,var(--accent) 58%);overflow:hidden;border-radius:10px}
.post-card .thumb{border-radius:0}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thumb.ph{display:grid;place-items:end start;padding:12px 14px;color:#fff;font-weight:900;font-size:15px}
.empty-state{background:#fff;border:1px dashed var(--line);padding:30px;border-radius:14px;color:var(--muted)}
.pagination{margin:26px 0 0}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}
.pagination .page-numbers{padding:6px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;text-decoration:none;font-weight:700;font-size:14px}
.pagination .current{background:var(--ink);border-color:var(--ink);color:#fff}

/* Single */
article.single{padding:26px 0 10px}
.col{max-width:760px;margin:0 auto}
.crumbs{margin:0 0 14px;font-size:13px;color:var(--muted)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;list-style:none}
.crumbs li:not(:last-child)::after{content:"›";margin-left:8px}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
article.single h1{font-size:clamp(28px,3.6vw,42px);line-height:1.38;letter-spacing:-.05em;margin:14px 0 14px}
.stamps{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 20px;font-size:14px;color:var(--muted)}
.stamps b{display:inline-block;margin-right:6px;padding:0 7px;border-radius:4px;background:var(--ink);color:#fff;font-size:12px;font-weight:800;letter-spacing:.06em}
.stamps .upd b{background:var(--accent)}
.stamps a{font-weight:700}
.hero{margin:0 0 30px}
.hero .hero-frame{aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,var(--navy) 0 58%,var(--accent) 58%);box-shadow:0 14px 38px rgba(15,27,51,.14)}
.hero img{display:block;width:100%;height:100%;object-fit:cover}
.hero figcaption{margin-top:8px;font-size:12px;color:var(--muted);text-align:right}
.entry{font-size:17px}
.entry h2{margin:42px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--ink);line-height:1.45;letter-spacing:-.03em;font-size:24px;scroll-margin-top:90px}
.entry h3{margin:28px 0 8px;line-height:1.5;font-size:19px;scroll-margin-top:90px}
.entry p{margin:0 0 20px}
.entry ul,.entry ol{margin:0 0 22px;padding-left:1.4em}
.entry li{margin-bottom:6px}
.entry img{border-radius:8px}
.entry a{color:var(--blue)}

/* Content blocks: callouts */
.sokuho-update,.sokuho-summary,.sokuho-box{border-radius:12px;padding:14px 18px;margin:0 0 24px;font-size:15px;line-height:1.75}
.sokuho-update{background:var(--accent-soft);border:1px solid var(--accent-line);border-left:5px solid var(--accent)}
.sokuho-summary{background:var(--blue-soft);border:1px solid #cdd8fb;border-left:5px solid var(--blue)}
.sokuho-box{background:#fff;border:1px solid var(--line);border-left:5px solid var(--navy)}
.sokuho-box.is-official{border-left-color:#16794c;background:#f1faf5}
.sokuho-box.is-next{border-left-color:#b86a00;background:#fff8ec}
.sokuho-update>:last-child,.sokuho-summary>:last-child,.sokuho-box>:last-child{margin-bottom:0}
.sokuho-update .label,.sokuho-summary .label,.sokuho-box .label{display:block;margin:0 0 6px;font-size:12px;font-weight:900;letter-spacing:.1em;color:var(--accent-text)}
.sokuho-summary .label{color:var(--blue)}
.sokuho-update ul,.sokuho-update ol,.sokuho-summary ul,.sokuho-summary ol,.sokuho-box ul,.sokuho-box ol{margin:0;padding-left:1.3em}
.sokuho-update time,.sokuho-update strong{font-weight:800}

/* Content blocks: tables (timeline is the signature style) */
.sokuho-table-wrap{overflow-x:auto;margin:0 0 26px;-webkit-overflow-scrolling:touch}
.entry table{width:100%;border-collapse:collapse;font-size:15px;background:#fff;border:1px solid var(--line)}
.entry th,.entry td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);line-height:1.65}
.entry thead th{background:var(--navy);color:#fff;font-size:13px;letter-spacing:.04em;white-space:nowrap}
.entry tbody th{font-weight:800;white-space:nowrap}
table.sokuho-timeline{border:0;background:transparent}
table.sokuho-timeline td:first-child,table.sokuho-timeline tbody th{position:relative;width:9.5em;white-space:nowrap;font-weight:800;color:var(--accent-text);padding-left:28px;border-left:3px solid var(--accent-line)}
table.sokuho-timeline td:first-child::before,table.sokuho-timeline tbody th::before{content:"";position:absolute;left:-8px;top:17px;width:13px;height:13px;border-radius:50%;background:var(--accent);border:3px solid var(--paper)}
table.sokuho-timeline tbody tr:last-child td,table.sokuho-timeline tbody tr:last-child th{border-bottom:0}
table.sokuho-timeline tbody tr:nth-child(odd){background:#fff}
table.sokuho-timeline tbody tr:nth-child(even){background:#fbfbfc}

/* Content blocks: FAQ */
.sokuho-faq{margin:0 0 28px}
.sokuho-faq .faq-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px 6px;margin-bottom:10px}
.sokuho-faq h3{display:flex;gap:10px;margin:0 0 8px;font-size:17px;line-height:1.55}
.sokuho-faq h3::before{content:"Q";flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-size:13px;font-weight:900}
.sokuho-faq p{display:flex;gap:10px;margin:0 0 12px;font-size:15px}
.sokuho-faq p::before{content:"A";flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;font-weight:900}

/* 出典 (theme-rendered from post meta sokuho_sources; markup also styled if present in content) */
.sokuho-sources{margin:36px 0 0;padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:14px}
.sokuho-sources h2{margin:0 0 8px;padding:0;border:0;font-size:17px}
.sokuho-sources ul{margin:0;padding:0;list-style:none}
.sokuho-sources li{margin:0 0 6px;padding-left:1em;text-indent:-1em}
.sokuho-sources li::before{content:"・"}
.sokuho-sources a{color:var(--blue);word-break:break-all}
.sokuho-sources .chk{display:inline-block;margin-left:8px;color:var(--muted);font-size:13px}
.sokuho-trust{margin:18px 0 0;padding:12px 16px;border-left:3px solid var(--navy);background:#eef0f4;color:#3c4656;font-size:13px;line-height:1.75}
.sokuho-trust a{font-weight:700}

/* Related */
.related{border-top:1px solid var(--line);margin-top:44px;padding-top:6px}
.related .section-title{margin-top:24px}

/* Pages / 404 / search */
article.page{max-width:760px;margin:0 auto;padding:40px 0 10px}
article.page h1{font-size:clamp(28px,3.4vw,38px);line-height:1.35;letter-spacing:-.04em;margin:8px 0 16px}
article.page .entry h2{font-size:22px}
.page-stamp{margin:0 0 22px;font-size:13px;color:var(--muted)}
.notfound{max-width:760px;margin:0 auto;padding:60px 0 20px}
.notfound h1{font-size:clamp(28px,3.4vw,38px);margin:8px 0 14px;line-height:1.35}
.search-form{display:flex;gap:8px;margin:18px 0}
.search-form input{min-width:0;flex:1;min-height:46px;border:1px solid var(--muted);border-radius:8px;padding:8px 12px;font:inherit;font-size:16px;background:#fff}
.search-form button{flex:none;min-height:46px;border:0;border-radius:8px;padding:8px 18px;background:var(--ink);color:#fff;font:inherit;font-weight:750;cursor:pointer}

/* Footer */
.footer{border-top:1px solid var(--line);background:#fff;margin-top:52px;padding:28px 0 34px;color:var(--muted);font-size:14px}
.footer-top{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:baseline}
.footer .footer-brand{margin:0;color:var(--ink);font-weight:900;font-size:17px}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;padding:0;list-style:none}
.footer a{font-weight:700;text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer-cats a{font-weight:600}
.footer .copy{margin:16px 0 0;font-size:13px}

a:focus-visible,summary:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

@media(max-width:900px){.post-grid{grid-template-columns:repeat(2,1fr)}.lead-card{grid-template-columns:1fr}}
@media(max-width:780px){
.wrap{width:min(100% - 32px,1060px)}
.header-inner{min-height:60px}
.brand{font-size:20px}
.site-nav{display:none}
.mobile-menu{display:block;margin-left:auto}
.mobile-menu summary{min-height:44px;display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:750;font-size:14px;list-style:none;border:1px solid var(--line);border-radius:9px;padding:7px 12px;white-space:nowrap;background:#fff}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu summary::after{content:"＋"}
.mobile-menu[open] summary::after{content:"−"}
.mobile-menu-panel{position:absolute;right:0;top:calc(100% + 1px);width:min(22rem,calc(100vw - 32px));max-height:calc(100dvh - 90px);overflow-y:auto;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:0 0 12px 12px;box-shadow:0 14px 26px rgba(23,32,51,.14)}
.mobile-menu-panel .menu-label{margin:8px 0 2px;font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--accent-text)}
.mobile-menu-panel nav{display:grid}
.mobile-menu-panel nav a{display:block;min-height:44px;padding:10px 6px;text-decoration:none;font-size:15px;font-weight:700;border-bottom:1px solid var(--line)}
.mobile-menu-panel form{margin-top:14px}
.mobile-menu-panel label{display:block;font-size:14px;font-weight:750;margin-bottom:7px}
.post-grid{grid-template-columns:1fr}
article.single{padding-top:16px}
.entry{font-size:16px}
.entry h2{font-size:21px;margin-top:34px}
.hero .hero-frame{border-radius:10px}
.stamps{flex-direction:column;gap:2px}
.sokuho-update,.sokuho-summary,.sokuho-box{padding:12px 14px}
.entry th,.entry td{padding:9px 10px}
table.sokuho-timeline thead{display:none}
table.sokuho-timeline,table.sokuho-timeline tbody,table.sokuho-timeline tr,table.sokuho-timeline td,table.sokuho-timeline th{display:block;width:auto}
table.sokuho-timeline tr{border:1px solid var(--line);border-left:3px solid var(--accent-line);border-radius:10px;margin-bottom:10px;padding:8px 12px;background:#fff!important}
table.sokuho-timeline td:first-child,table.sokuho-timeline tbody th{width:auto;border:0;padding:0 0 2px;white-space:normal}
table.sokuho-timeline td:first-child::before,table.sokuho-timeline tbody th::before{display:none}
table.sokuho-timeline td{border:0;padding:2px 0}
.footer-top{display:block}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
