/* ═══════════════════════════════════════════════════════
   _layout.css  —  shared styles for all pages
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Noto Sans JP",sans-serif;background:#fff;color:#0d2240;line-height:1.8}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
svg{flex-shrink:0}
.container{width:100%;max-width:1280px;margin:0 auto;padding:0 1rem}

/* ─── HEADER ─── */
header{position:sticky;top:0;z-index:50;background:#0d2240;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:12px}
.logo-badge{width:32px;height:32px;border-radius:4px;background:#1a56db;display:flex;align-items:center;justify-content:center}
.logo-badge span{color:#fff;font-weight:700;font-size:14px;font-family:"BIZ UDPGothic",sans-serif}
.logo-text{display:flex;flex-direction:column}
.logo-title{color:#fff;font-weight:700;font-size:18px;font-family:"BIZ UDPGothic",sans-serif;letter-spacing:.05em}
.logo-sub{color:#93c5fd;font-size:11px;line-height:1;display:none}
@media(min-width:640px){.logo-sub{display:block}}
.header-cta{display:none;gap:8px}
@media(min-width:1024px){.header-cta{display:flex;align-items:center}}
.btn-line{display:flex;align-items:center;gap:6px;padding:8px 16px;font-size:14px;font-weight:700;border-radius:4px;background:#22c55e;color:#fff;transition:opacity .15s}
.btn-line:hover{opacity:.9}
.btn-form{display:flex;align-items:center;gap:6px;padding:8px 16px;font-size:14px;font-weight:500;border-radius:4px;border:1px solid #475569;color:#cbd5e1;transition:border-color .15s}
.btn-form:hover{border-color:#94a3b8}

/* ─── BREADCRUMB ─── */
.breadcrumb{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 0}
.breadcrumb-inner{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:#64748b}
.breadcrumb a{color:#1a56db}
.breadcrumb a:hover{opacity:.75}
.breadcrumb-sep{color:#cbd5e1}

/* ─── ARTICLE HERO ─── */
.article-hero{position:relative;overflow:hidden;min-height:360px;display:flex;align-items:flex-end}
@media(min-width:768px){.article-hero{min-height:440px}}
.article-hero-bg{position:absolute;inset:0}
.article-hero-bg img{width:100%;height:100%;object-fit:cover}
.fallback-bg{display:none;width:100%;height:100%;background:linear-gradient(135deg,#0d2240 0%,#1e3a5f 60%,#1a56db 100%)}
.article-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(13,34,64,.95) 0%,rgba(13,34,64,.70) 50%,rgba(13,34,64,.20) 100%)}
.article-hero-content{position:relative;width:100%;padding:40px 0 48px}
.article-cat-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:4px;font-size:12px;font-weight:500;margin-bottom:16px;background:rgba(26,86,219,.35);color:#93c5fd;border:1px solid rgba(26,86,219,.55)}
.article-hero-title{font-size:22px;font-weight:700;color:#fff;line-height:1.45;font-family:"BIZ UDPGothic",sans-serif;margin-bottom:16px;max-width:760px}
@media(min-width:768px){.article-hero-title{font-size:28px}}
.article-hero-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.article-hero-meta span{font-size:13px;color:rgba(255,255,255,.65);display:flex;align-items:center;gap:5px}
.article-kw-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.article-kw-tags span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.8);padding:3px 10px;border-radius:20px;font-size:11px}

/* ─── ARTICLE BODY ─── */
.article-layout{padding:48px 0 80px}
@media(max-width:639px){.article-layout{padding:32px 0 60px}}
.article-body h2{font-size:1.35rem;font-weight:700;color:#0d2240;border-left:4px solid #1a56db;padding-left:14px;margin:40px 0 16px;font-family:"BIZ UDPGothic",sans-serif}
.article-body h3{font-size:1.1rem;font-weight:700;color:#1e3a5f;margin:28px 0 10px;padding-bottom:4px;border-bottom:1px solid #e2e8f0}
.article-body h4{font-size:1rem;font-weight:700;color:#0d2240;margin:20px 0 8px}
.article-body p{margin-bottom:18px;font-size:15px;line-height:1.85;color:#334155}
.article-body ul,.article-body ol{margin:12px 0 20px 24px}
.article-body li{margin-bottom:8px;font-size:15px;color:#334155}
.article-body strong{color:#0d2240;font-weight:700}
.article-body a{color:#1a56db;text-decoration:underline;text-decoration-color:rgba(26,86,219,.3)}
.article-body a:hover{text-decoration-color:#1a56db}
.article-body .callout,.article-body blockquote{background:#f0f6ff;border-left:4px solid #1a56db;padding:16px 20px;border-radius:0 8px 8px 0;margin:24px 0;font-size:14px;color:#1e3a5f}
.article-body table{width:100%;border-collapse:collapse;margin:24px 0;font-size:14px}
.article-body th{background:#0d2240;color:#fff;padding:10px 14px;text-align:left;font-weight:600}
.article-body td{padding:10px 14px;border-bottom:1px solid #e2e8f0;color:#334155}
.article-body tr:nth-child(even) td{background:#f8fafc}
/* In-body images (image1.png, image2.png, …) — capped at 50% of column width, centered.
   Hero image (.article-hero-bg img) is unaffected because it's not under .article-body. */
.article-body img{max-width:50%;height:auto;margin:1.75rem auto;border-radius:10px}
.article-body figure{margin:1.75rem auto;text-align:center;max-width:50%}
.article-body figure img{max-width:100%;margin:0 auto;display:block}
.article-body figcaption{font-size:13px;color:#64748b;margin-top:8px;line-height:1.6}
@media(max-width:640px){
  .article-body img,.article-body figure{max-width:80%}
}
.article-footer-meta{margin-top:56px;padding-top:24px;border-top:2px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.article-footer-meta span{font-size:12px;color:#94a3b8}

/* ─── FOOTER ─── */
footer{background:#0d2240}
.footer-main{padding:48px 0}
.footer-grid{display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:768px){.footer-grid{grid-template-columns:1fr repeat(3,auto);gap:32px}}
.footer-logo{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.footer-logo-badge{width:28px;height:28px;border-radius:4px;background:#1a56db;display:flex;align-items:center;justify-content:center}
.footer-logo-badge span{color:#fff;font-weight:700;font-size:12px;font-family:"BIZ UDPGothic",sans-serif}
.footer-logo-name{color:#fff;font-weight:700;font-family:"BIZ UDPGothic",sans-serif}
.footer-brand-desc{font-size:12px;line-height:1.7;color:#64748b;margin-bottom:20px}
.footer-social{display:flex;gap:12px}
.social-btn{width:32px;height:32px;border-radius:4px;background:#1e3a5f;display:flex;align-items:center;justify-content:center;color:#fff;transition:background .15s}
.social-btn:hover{background:#1a56db}
.footer-col h4{font-size:12px;font-weight:700;letter-spacing:.1em;color:#60a5fa;border-bottom:1px solid #1e3a5f;padding-bottom:8px;margin-bottom:16px}
.footer-col ul{display:flex;flex-direction:column;gap:10px;list-style:none;padding:0;margin:0}
.footer-col li a{font-size:12px;display:flex;align-items:center;gap:6px;color:#94a3b8;transition:color .15s}
.footer-col li a:hover{color:#cbd5e1}
.footer-bottom{border-top:1px solid #1e3a5f}
.footer-bottom-inner{padding:16px 0;display:flex;justify-content:center}
.footer-copy{font-size:12px;color:#475569}
