/*
Theme Name: もめごと.jp SEO Edition
Theme URI: https://momedoto.jp
Description: SEO最強・法律トラブルブログテーマ。Core Web Vitals対応・Schema.org完全実装・表示速度最適化済み。
Author: リーガルベスト
Version: 2.0.6
License: Private
Text Domain: momedoto
*/

/* ===================================================
   CSS Variables
=================================================== */
:root{
  --navy:#0C2461;--navy-d:#071540;--navy-m:#163377;
  --sky:#2196F3;--sky-lt:#E3F2FD;
  --orange:#FF6B00;--orange-lt:#FFF3E0;
  --white:#fff;--bg:#F0F4F8;--bg-m:#E8EEF5;
  --text:#1A2540;--muted:#5A6A80;--border:#D0DCE8;
  --gold:#C9A84C;
  --shadow:0 1px 6px rgba(12,36,97,.10);
  --shadow-h:0 4px 18px rgba(12,36,97,.17);
  --radius:6px;
}

/* ===================================================
   Reset & Base
=================================================== */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;font-size:16px;}
body{font-family:'Noto Sans JP',sans-serif;background:var(--bg);color:var(--text);line-height:1.8;overflow-x:hidden;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;height:auto;display:block;}
ul,ol{list-style:none;}

/* ===================================================
   HEADER
=================================================== */
.site-header{background:var(--navy);box-shadow:0 2px 12px rgba(0,0,0,.3);position:sticky;top:0;z-index:100;}
.header-inner{max-width:1160px;margin:0 auto;padding:0 24px;display:flex;align-items:center;min-height:72px;}
.logo-area{display:flex;align-items:center;gap:12px;padding-right:20px;border-right:1px solid rgba(255,255,255,.15);flex-shrink:0;}
.logo-img{width:52px;height:52px;mix-blend-mode:screen;}
.logo-text{font-size:26px;font-weight:700;color:#fff;letter-spacing:1px;line-height:1;}
.logo-text:hover{opacity:.85;}
.header-badges{display:flex;align-items:center;gap:10px;padding-left:20px;flex-wrap:wrap;}
.badge{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,rgba(201,168,76,.25),rgba(201,168,76,.1));border:1px solid rgba(201,168,76,.55);color:#f0d080;font-size:15px;font-weight:700;padding:6px 16px;border-radius:4px;letter-spacing:.5px;}
.header-deco{background:linear-gradient(90deg,var(--gold),rgba(201,168,76,.3) 60%,transparent);height:2px;}

/* ===================================================
   HERO
=================================================== */
.hero-section{max-width:1160px;margin:0 auto;padding:0 24px;box-sizing:border-box;}
.hero-img-wrap{line-height:0;}
.hero-img-wrap img{width:100%;border-radius:0;display:block;}
.hero-text-wrap{background:linear-gradient(135deg,var(--navy-d),var(--navy));padding:44px 28px;}
.hero-h1{font-size:clamp(18px,2.8vw,34px);font-weight:900;color:#fff;line-height:1.4;letter-spacing:-.5px;}
.hero-h1 em{color:#63C8FF;font-style:normal;}

/* ===================================================
   BREADCRUMB
=================================================== */
.breadcrumb-nav{background:#fff;border-bottom:1px solid var(--border);}
.breadcrumb-inner{max-width:1160px;margin:0 auto;padding:8px 24px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted);}
.breadcrumb-inner a{color:var(--sky);}
.breadcrumb-inner a:hover{text-decoration:underline;}
.bc-sep{color:var(--border);font-size:10px;}

/* ===================================================
   LAYOUT
=================================================== */
.main-wrap{max-width:1160px;margin:24px auto;padding:0 24px;display:grid;grid-template-columns:1fr 288px;gap:28px;align-items:start;}
.static-wrap{max-width:1160px;margin:24px auto;padding:0 24px;display:grid;grid-template-columns:1fr 288px;gap:28px;align-items:start;}

/* ===================================================
   SECTION TITLE
=================================================== */
.sec-title{font-size:15px;font-weight:900;color:#fff;background:var(--navy);padding:10px 16px 10px 20px;border-left:5px solid var(--orange);border-radius:var(--radius) var(--radius) 0 0;}

/* ===================================================
   CATEGORY NAV
=================================================== */
.cat-block{margin-bottom:20px;}
.cat-grid{background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background-color:var(--border);}
.cat-item{display:flex;flex-direction:column;align-items:center;gap:5px;padding:16px 8px;background:#fff;text-decoration:none;transition:background .18s;}
.cat-item:hover{background:var(--sky-lt);}
.cat-icon{font-size:26px;line-height:1;}
.cat-name{font-size:12px;font-weight:700;color:var(--navy);text-align:center;}
.cat-count{font-size:10px;color:var(--muted);}

/* ===================================================
   ARTICLE CARDS
=================================================== */
.article-block{margin-bottom:20px;}

/* 注目 大カード */
.feat-card{display:block;background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;transition:box-shadow .18s;text-decoration:none;}
.feat-card:hover{box-shadow:var(--shadow-h);}
.feat-thumb{width:100%;aspect-ratio:16/7;object-fit:cover;display:block;}
.feat-thumb-empty{width:100%;aspect-ratio:16/7;background:linear-gradient(135deg,var(--navy),var(--navy-m));display:flex;align-items:center;justify-content:center;font-size:56px;position:relative;}
.feat-tag{position:absolute;top:12px;left:12px;background:#e02020;color:#fff;font-size:10px;font-weight:700;padding:3px 10px;border-radius:3px;}
.feat-body{padding:18px 20px;}
.feat-title{font-size:18px;font-weight:900;color:var(--navy);line-height:1.45;margin-bottom:8px;}
.feat-card:hover .feat-title{color:var(--sky);}
.feat-excerpt{font-size:13px;color:var(--muted);line-height:1.75;margin-bottom:10px;}
.feat-meta{font-size:11px;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap;}

/* 小カード3枚 */
.sub-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border);border-top:none;background:var(--border);gap:1px;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;}
.sub-card{display:flex;flex-direction:column;background:#fff;text-decoration:none;transition:background .18s;}
.sub-card:hover{background:#f7faff;}
.sub-thumb{aspect-ratio:16/9;object-fit:cover;width:100%;display:block;}
.sub-thumb-empty{aspect-ratio:16/9;background:linear-gradient(135deg,var(--bg),var(--bg-m));display:flex;align-items:center;justify-content:center;font-size:24px;border-bottom:1px solid var(--border);}
.sub-body{padding:10px 12px;flex:1;}
.sub-cat{margin-bottom:5px;}
.sub-title{font-size:12px;font-weight:700;color:var(--navy);line-height:1.5;margin-bottom:5px;}
.sub-card:hover .sub-title{color:var(--sky);}
.sub-date{font-size:10px;color:var(--muted);}

/* 記事リスト */
.art-list{background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;}
.art-item{display:flex;border-bottom:1px solid var(--border);text-decoration:none;transition:background .18s;}
.art-item:last-child{border-bottom:none;}
.art-item:hover{background:#f7faff;}
.art-thumb-img{width:120px;min-width:120px;aspect-ratio:4/3;object-fit:cover;border-right:1px solid var(--border);}
.art-thumb-empty{width:120px;min-width:120px;aspect-ratio:4/3;background:linear-gradient(135deg,var(--bg),var(--bg-m));display:flex;align-items:center;justify-content:center;font-size:28px;border-right:1px solid var(--border);}
.art-body{padding:12px 16px;flex:1;min-width:0;}
.art-title{font-size:14px;font-weight:700;color:var(--navy);line-height:1.55;margin-bottom:6px;}
.art-item:hover .art-title{color:var(--sky);}
.art-meta{font-size:11px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap;}

/* Badge */
.badge-cat{font-size:10px;font-weight:700;padding:2px 9px;border-radius:3px;display:inline-block;}
.bc-blue{background:var(--sky-lt);color:#0a6da8;}
.bc-orange{background:var(--orange-lt);color:#b85500;}

/* ===================================================
   BANNER
=================================================== */
.bnr-wrap{margin-bottom:16px;}
.bnr-img{width:100%;display:block;border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;}
.bnr-img:hover{transform:translateY(-2px);box-shadow:var(--shadow-h);}
.bnr-hero-img{width:100%;display:block;border-radius:var(--radius);box-shadow:var(--shadow);}

/* ===================================================
   3社CTA
=================================================== */
.cta-block{margin-bottom:20px;}
.cta-grid{background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);display:grid;grid-template-columns:repeat(3,1fr);background-color:var(--border);gap:1px;}
.cta-card{background:#fff;padding:18px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;}
.cta-icon{font-size:26px;}
.cta-name{font-size:13px;font-weight:900;color:var(--navy);line-height:1.3;}
.cta-price{font-size:14px;font-weight:900;color:var(--orange);}
.cta-desc{font-size:11px;color:var(--muted);line-height:1.6;flex:1;}
.cta-btn{display:block;background:var(--orange);color:#fff;font-size:12px;font-weight:700;padding:9px 10px;border-radius:5px;width:100%;margin-top:6px;transition:all .18s;text-decoration:none;box-shadow:0 2px 8px rgba(255,107,0,.3);}
.cta-btn:hover{background:#e55f00;transform:translateY(-1px);}

/* ===================================================
   グリッド
=================================================== */
.grid-block{margin-bottom:20px;}
.art-grid{background:var(--border);border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);display:grid;grid-template-columns:repeat(3,1fr);gap:1px;}
.grid-item{display:block;background:#fff;padding:14px;text-decoration:none;transition:background .18s;}
.grid-item:hover{background:#f7faff;}
.grid-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px;margin-bottom:8px;display:block;}
.grid-thumb-empty{width:100%;aspect-ratio:16/9;background:linear-gradient(135deg,var(--bg),var(--bg-m));display:flex;align-items:center;justify-content:center;font-size:26px;border-radius:4px;margin-bottom:8px;}
.grid-cat{font-size:10px;font-weight:700;color:#0a6da8;background:var(--sky-lt);padding:2px 8px;border-radius:3px;display:inline-block;margin-bottom:6px;}
.grid-title{font-size:12px;font-weight:700;color:var(--navy);line-height:1.55;}
.grid-item:hover .grid-title{color:var(--sky);}
.grid-date{font-size:10px;color:var(--muted);margin-top:4px;}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar{display:flex;flex-direction:column;gap:20px;}
.widget-title{font-size:14px;font-weight:900;color:#fff;background:var(--navy);padding:9px 14px 9px 18px;border-left:4px solid var(--orange);border-radius:var(--radius) var(--radius) 0 0;}
.widget-body{background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);padding:14px;}

/* ランキング */
.rank-list{display:flex;flex-direction:column;}
.rank-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px dashed var(--border);text-decoration:none;transition:opacity .15s;}
.rank-item:last-child{border-bottom:none;padding-bottom:0;}
.rank-item:hover{opacity:.7;}
.rank-no{width:22px;height:22px;border-radius:4px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;background:var(--bg);color:var(--muted);}
.rn-1{background:#F5A623;color:#fff;}.rn-2{background:#9B9B9B;color:#fff;}.rn-3{background:#B87333;color:#fff;}
.rank-title{font-size:12px;font-weight:700;color:var(--navy);line-height:1.5;}
.rank-item:hover .rank-title{color:var(--sky);}

/* サイドカテゴリ */
.side-cat-list{display:flex;flex-direction:column;}
.side-cat-item{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-bottom:1px solid var(--border);text-decoration:none;transition:background .15s;margin:0 -14px;}
.side-cat-item:last-child{border-bottom:none;}
.side-cat-item:hover{background:var(--sky-lt);}
.sc-left{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--navy);}
.sc-count{font-size:10px;background:var(--bg);color:var(--muted);padding:1px 7px;border-radius:10px;}

/* タグ */
.tag-cloud{display:flex;flex-wrap:wrap;gap:6px;}
.tag-link{font-size:11px;color:var(--muted);background:var(--bg);border:1px solid var(--border);padding:4px 10px;border-radius:20px;transition:all .15s;text-decoration:none;}
.tag-link:hover{background:var(--sky-lt);color:#0a6da8;border-color:var(--sky);}

/* ===================================================
   SINGLE POST
=================================================== */
.post-wrap{max-width:1160px;margin:24px auto;padding:0 24px;display:grid;grid-template-columns:1fr 288px;gap:28px;align-items:start;}
.post-main{min-width:0;}

/* 記事ヘッダー */
.post-eyecatch{width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:var(--radius) var(--radius) 0 0;display:block;}
.post-header{background:#fff;border:1px solid var(--border);border-top:none;padding:20px 24px;margin-bottom:6px;}
.post-cats{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap;}
.post-h1{font-size:clamp(18px,2.5vw,26px);font-weight:900;color:var(--navy);line-height:1.4;margin-bottom:12px;}
.post-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding-top:10px;border-top:1px solid var(--border);}

/* 目次 */
.toc-box{background:#f8f9fc;border:1px solid var(--border);border-left:4px solid var(--navy);border-radius:var(--radius);padding:18px 20px;margin:0 0 20px;}
.toc-title{font-size:14px;font-weight:900;color:var(--navy);margin-bottom:10px;display:flex;align-items:center;gap:8px;}
.toc-list{list-style:none;}
.toc-list li{margin-bottom:5px;}
.toc-list a{font-size:13px;color:var(--sky);text-decoration:none;}
.toc-list a:hover{text-decoration:underline;}
.toc-list .toc-h3{padding-left:16px;font-size:12px;}

/* 記事本文 */
.post-body{background:#fff;border:1px solid var(--border);padding:28px;margin-bottom:20px;font-size:15px;line-height:2;color:var(--text);}
.post-body h2{font-size:clamp(17px,2vw,21px);font-weight:900;color:var(--navy);margin:36px 0 14px;padding:12px 16px 12px 20px;background:var(--bg);border-left:5px solid var(--orange);border-radius:0 4px 4px 0;line-height:1.4;}
.post-body h3{font-size:17px;font-weight:700;color:var(--navy);margin:26px 0 10px;padding-bottom:7px;border-bottom:2px solid var(--sky);}
.post-body h4{font-size:15px;font-weight:700;color:var(--navy);margin:20px 0 8px;}
.post-body p{margin-bottom:18px;}
.post-body ul{margin:0 0 18px 22px;list-style:disc;}
.post-body ol{margin:0 0 18px 22px;list-style:decimal;}
.post-body li{margin-bottom:8px;line-height:1.8;}
.post-body a{color:var(--sky);text-decoration:underline;}
.post-body strong{color:var(--navy);font-weight:700;}
.post-body img{max-width:100%;height:auto;border-radius:4px;margin:10px 0;}
.post-body blockquote{background:var(--bg);border-left:4px solid var(--muted);padding:16px 20px;margin:20px 0;border-radius:0 4px 4px 0;font-style:italic;color:var(--muted);}

/* インライン CTA */
.inline-cta{background:linear-gradient(120deg,#030d1f,var(--navy));border-radius:10px;padding:28px;text-align:center;color:#fff;margin:36px 0;}
.inline-cta-sub{font-size:11px;color:#63C8FF;letter-spacing:2px;margin-bottom:10px;font-weight:700;}
.inline-cta-title{font-size:clamp(16px,2.2vw,22px);font-weight:900;line-height:1.4;margin-bottom:10px;}
.inline-cta-desc{font-size:12px;color:rgba(255,255,255,.7);margin-bottom:18px;}
.inline-cta-btn{display:inline-block;background:var(--orange);color:#fff;padding:14px 32px;border-radius:5px;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 4px 14px rgba(255,107,0,.4);transition:all .18s;}
.inline-cta-btn:hover{background:#e55f00;transform:translateY(-1px);}
.inline-cta-note{font-size:10px;color:rgba(255,255,255,.4);margin-top:10px;}

/* タグ */
.post-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px;}

/* シェア */
.share-box{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:18px;text-align:center;margin-bottom:20px;}
.share-label{font-size:13px;font-weight:700;color:var(--navy);margin-bottom:12px;}
.share-btns{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;}
.share-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 20px;border-radius:5px;font-size:13px;font-weight:700;text-decoration:none;transition:all .18s;}
.share-x{background:#000;color:#fff;}.share-line{background:#06c755;color:#fff;}.share-hb{background:#00a4de;color:#fff;}
.share-btn:hover{opacity:.85;transform:translateY(-1px);}

/* 関連記事 */
.related-title{font-size:14px;font-weight:900;color:#fff;background:var(--navy);padding:9px 14px 9px 18px;border-left:4px solid var(--orange);border-radius:var(--radius) var(--radius) 0 0;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);background:var(--border);gap:1px;border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);margin-bottom:20px;}
.related-card{display:block;background:#fff;text-decoration:none;transition:background .15s;}
.related-card:hover{background:#f7faff;}
.related-img{aspect-ratio:16/9;object-fit:cover;width:100%;display:block;border-bottom:1px solid var(--border);}
.related-img-empty{aspect-ratio:16/9;background:linear-gradient(135deg,var(--bg),var(--bg-m));display:flex;align-items:center;justify-content:center;font-size:24px;border-bottom:1px solid var(--border);}
.related-body{padding:10px 12px;}
.related-cat{font-size:10px;font-weight:700;background:var(--sky-lt);color:#0a6da8;padding:2px 8px;border-radius:3px;display:inline-block;margin-bottom:6px;}
.related-card-title{font-size:12px;font-weight:700;color:var(--navy);line-height:1.5;}
.related-card:hover .related-card-title{color:var(--sky);}

/* ===================================================
   STATIC PAGES
=================================================== */
.static-main{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px 36px;}
.static-main h1{font-size:22px;font-weight:900;color:var(--navy);border-left:5px solid var(--orange);padding-left:14px;margin-bottom:24px;}
.static-main h2{font-size:16px;font-weight:700;color:var(--navy);margin:24px 0 10px;border-bottom:1px solid var(--border);padding-bottom:6px;}
.static-main p{font-size:14px;line-height:1.9;margin-bottom:12px;}
.static-main ol{margin:0 0 16px 20px;list-style:decimal;}
.static-main li{font-size:14px;line-height:1.9;margin-bottom:8px;}
.static-main table{width:100%;border-collapse:collapse;font-size:14px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-top:16px;}
.static-main th{background:var(--bg);font-weight:700;padding:13px 18px;text-align:left;border-bottom:1px solid var(--border);border-right:3px solid var(--orange);width:140px;}
.static-main td{padding:13px 18px;border-bottom:1px solid var(--border);background:#fff;}
.static-main tr:last-child th,.static-main tr:last-child td{border-bottom:none;}

/* お問い合わせ */
.contact-form{margin-top:24px;}
.form-row{margin-bottom:20px;}
.form-label{display:block;font-size:14px;font-weight:700;color:var(--navy);margin-bottom:7px;}
.form-req{display:inline-block;background:var(--orange);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:3px;margin-left:8px;}
.form-opt{display:inline-block;background:var(--muted);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:3px;margin-left:8px;}
.form-input,.form-textarea{width:100%;padding:12px 14px;font-size:14px;font-family:'Noto Sans JP',sans-serif;border:1.5px solid var(--border);border-radius:5px;background:#fff;outline:none;transition:border .18s;}
.form-input:focus,.form-textarea:focus{border-color:var(--sky);box-shadow:0 0 0 3px rgba(33,150,243,.1);}
.form-textarea{resize:vertical;line-height:1.8;}
.form-note{font-size:12px;color:var(--muted);background:var(--bg);padding:14px 16px;border-radius:5px;margin-bottom:24px;line-height:1.8;}
.form-submit{background:var(--navy);color:#fff;border:none;font-size:15px;font-weight:700;font-family:'Noto Sans JP',sans-serif;padding:14px 56px;border-radius:5px;cursor:pointer;transition:all .18s;}
.form-submit:hover{background:var(--orange);transform:translateY(-1px);}

/* ===================================================
   PAGINATION
=================================================== */
.pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin:24px 0;}
.page-numbers{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:4px;font-size:13px;font-weight:700;border:1px solid var(--border);background:#fff;color:var(--muted);text-decoration:none;transition:all .18s;}
.page-numbers:hover,.page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy);}
.page-numbers.current{background:var(--orange);border-color:var(--orange);}

/* ===================================================
   FOOTER
=================================================== */
footer{background:var(--navy-d);color:rgba(255,255,255,.7);padding:40px 0 24px;margin-top:36px;}
.footer-inner{max-width:1160px;margin:0 auto;padding:0 24px;}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:32px;margin-bottom:32px;}
.f-logo-wrap{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.f-logo-img{width:44px;height:44px;mix-blend-mode:screen;}
.f-logo-text{font-size:20px;font-weight:700;color:#fff;text-decoration:none;}
.f-tagline{font-size:12px;color:rgba(255,255,255,.8);font-weight:700;margin-bottom:4px;}
.f-col h4{font-size:12px;font-weight:700;color:#fff;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.1);}
.f-col ul{list-style:none;}
.f-col li{margin-bottom:7px;}
.f-col a{font-size:11px;color:rgba(255,255,255,.55);transition:color .15s;}
.f-col a:hover{color:#63C8FF;}
.footer-cta{margin-top:14px;background:rgba(255,107,0,.15);border:1px solid rgba(255,107,0,.35);border-radius:8px;padding:14px;text-align:center;}
.footer-cta p{font-size:11px;color:rgba(255,255,255,.7);margin-bottom:8px;line-height:1.7;}
.footer-cta-btn{background:var(--orange);color:#fff;padding:10px 14px;border-radius:5px;font-size:12px;font-weight:700;display:inline-block;text-decoration:none;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:16px;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px;}
.f-disclaimer{font-size:10px;color:rgba(255,255,255,.28);max-width:600px;line-height:1.7;}
.f-copy{font-size:11px;color:rgba(255,255,255,.35);}

/* ===================================================
   404
=================================================== */
.notfound-wrap{max-width:700px;margin:60px auto;padding:0 24px;text-align:center;}
.notfound-wrap h1{font-size:80px;font-weight:900;color:var(--navy);line-height:1;}
.notfound-wrap p{font-size:16px;color:var(--muted);margin:16px 0 28px;}
.btn-home{display:inline-block;background:var(--navy);color:#fff;padding:13px 32px;border-radius:5px;font-size:14px;font-weight:700;transition:all .18s;text-decoration:none;}
.btn-home:hover{background:var(--orange);}

/* ===================================================
   SEARCH FORM
=================================================== */
.search-form-wrap{display:flex;gap:0;margin-bottom:20px;}
.search-form-wrap input{flex:1;padding:11px 14px;font-size:14px;font-family:'Noto Sans JP',sans-serif;border:1.5px solid var(--border);border-right:none;border-radius:5px 0 0 5px;outline:none;}
.search-form-wrap button{background:var(--navy);color:#fff;border:none;padding:11px 18px;border-radius:0 5px 5px 0;cursor:pointer;font-family:'Noto Sans JP',sans-serif;font-weight:700;font-size:14px;}

/* ===================================================
   RESPONSIVE
=================================================== */
@media(max-width:960px){
  .main-wrap,.post-wrap,.static-wrap{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .cta-grid{grid-template-columns:1fr;}
  .cta-card{border-bottom:1px solid var(--border);}
  .related-grid{grid-template-columns:1fr 1fr;}
}

@media(max-width:600px){
  /* ヘッダー */
  .header-inner{min-height:50px;padding:0 14px;}
  .logo-img{width:26px;height:26px;}
  .logo-text{font-size:14px;letter-spacing:0;}
  .logo-area{padding-right:12px;gap:6px;}
  .header-badges{display:none;}

  /* ヒーロー */
  .hero-section{padding:0 16px;}
  .hero-text-wrap{padding:20px 18px;}
  .hero-h1{font-size:clamp(15px,4.5vw,20px);}

  /* レイアウト */
  .main-wrap,.post-wrap,.static-wrap{padding:0 14px;margin:16px auto;}
  .breadcrumb-nav{display:none;}

  /* カテゴリ */
  .cat-grid{grid-template-columns:repeat(4,1fr);}
  .cat-icon{font-size:20px;}
  .cat-name{font-size:10px;}

  /* 記事 */
  .art-thumb-img,.art-thumb-empty{width:88px;min-width:88px;}
  .art-title{font-size:13px;}

  /* サブカード */
  .sub-grid{grid-template-columns:1fr;}
  .sub-card{flex-direction:row;}
  .sub-thumb,.sub-thumb-empty{width:88px;min-width:88px;aspect-ratio:4/3;}

  /* グリッド */
  .art-grid{grid-template-columns:1fr 1fr;}

  /* 関連 */
  .related-grid{grid-template-columns:1fr;}

  /* フッター */
  .footer-grid{grid-template-columns:1fr;}
  .footer-inner{padding:0 16px;}

  /* シェア */
  .share-btns{flex-direction:column;align-items:stretch;}
}

/* ============================================================
   momegoto.jp v4 追記パッチ
   ============================================================
   このCSSは既存の style.css の末尾に追記してください。
   全クラスは fp- プレフィックスで既存ルールとの競合を回避。

   対応内容:
   - v3-fixed-v3 デザインの完全再現
   - ヘッダー / フッター / サイドバー / トップページ
   - スマホ不具合 H-1〜H-8 の全修正
   - archive / single / page / search / 404 にも適用される
     ヘッダー・フッター・サイドバーのスマホ対応
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --fp-navy: #1A6BB5;
  --fp-navy-dark: #0D4A7F;
  --fp-navy-darker: #083A64;
  --fp-orange: #E89B3C;
  --fp-orange-dark: #C47A1D;
  --fp-marker: #FFF59D;
  --fp-danger: #D32F2F;
  --fp-success: #22A06B;
  --fp-bg-soft: #F8FAFC;
  --fp-bg-warm: #FFF8F0;
  --fp-bg-page: #f5f7fa;
  --fp-text: #2c3e50;
  --fp-mute: #666;
  --fp-border: #e8ecef;
}

body {
  background: var(--fp-bg-page);
  color: var(--fp-text);
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 旧テーマのグローバルヘッダーを無効化（新デザインに差し替え） */
.site-header { display: none !important; }

/* ============================================================
   HEADER (fp-site-header)
   ============================================================ */
.fp-site-header {
  background: #fff;
  border-bottom: 1px solid var(--fp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.fp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.fp-site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-weight: 900;
  color: var(--fp-navy);
  text-decoration: none;
}
.fp-site-logo-img {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}
.fp-site-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.fp-site-logo-text {
  font-size: 1.4em;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fp-navy);
}
.fp-site-logo-text small {
  display: block;
  font-size: 0.55em;
  color: var(--fp-mute);
  font-weight: 600;
  margin-top: 0.2em;
  letter-spacing: 0.05em;
}
.fp-header-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.fp-header-search::before {
  content: "🔍";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.fp-header-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 2px solid var(--fp-border);
  border-radius: 50px;
  font-size: 0.95em;
  outline: none;
  background: var(--fp-bg-soft);
  transition: all 0.2s;
  font-family: inherit;
}
.fp-header-search input:focus {
  border-color: var(--fp-navy);
  background: #fff;
}
.fp-header-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9em;
  font-weight: 700;
}
.fp-header-nav a {
  color: var(--fp-text);
  text-decoration: none;
  transition: color 0.2s;
}
.fp-header-nav a:hover { color: var(--fp-navy); }
.fp-header-cta {
  background: var(--fp-orange);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85em;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.fp-header-cta:hover { background: var(--fp-orange-dark); }

/* ============================================================
   HERO (fp-hero)
   ============================================================ */
.fp-hero {
  max-width: none !important;
  margin: 0 !important;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, #0D4A7F 0%, #1A6BB5 50%, #2E86D1 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.fp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(255,213,79,0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(232,155,60,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.fp-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.fp-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35em 1.2em;
  border-radius: 24px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  color: #fff;
}
.fp-hero-title {
  font-size: 2.3em;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  color: #fff;
}
.fp-hero-title em {
  color: #FFD54F;
  font-style: normal;
  background: linear-gradient(transparent 65%, rgba(255,213,79,0.3) 65%);
  padding: 0 0.1em;
}
.fp-hero-sub {
  font-size: 1em;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #fff;
}
.fp-hero-search {
  max-width: 600px;
  margin: 0 auto 1.8rem;
  background: #fff;
  border-radius: 50px;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.fp-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.3rem;
  font-size: 1em;
  background: transparent;
  color: var(--fp-text);
  font-family: inherit;
  min-width: 0;
}
.fp-hero-search button {
  background: var(--fp-orange);
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.fp-hero-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.82em;
  opacity: 0.92;
}
.fp-hero-popular-label { margin-right: 0.3rem; font-weight: 700; color: #fff; }
.fp-hero-popular a {
  background: rgba(255,255,255,0.15);
  padding: 0.3em 0.9em;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s;
}
.fp-hero-popular a:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   TRUST BAR (fp-trust-bar) ← H-2 修正済み
   ============================================================ */
.fp-trust-bar {
  background: var(--fp-bg-warm);
  border-top: 3px solid var(--fp-orange);
  padding: 1.2rem 1.5rem;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
}
.fp-trust-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}
.fp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  font-size: 0.88em;
}
.fp-trust-icon {
  font-size: 1.6em;
  flex-shrink: 0;
}
.fp-trust-text { line-height: 1.3; }
.fp-trust-text strong {
  display: block;
  color: var(--fp-navy-dark);
  font-size: 1.02em;
}
.fp-trust-text span { color: var(--fp-mute); font-size: 0.85em; }

/* ============================================================
   MAIN WRAP & COMMON SECTIONS
   ============================================================ */
.fp-main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  box-sizing: border-box;
}
.fp-main-content { min-width: 0; }

.fp-section-hd {
  font-size: 1.4em;
  font-weight: 900;
  color: var(--fp-navy);
  border-left: 6px solid var(--fp-navy);
  padding: 0.3em 0 0.3em 0.9em;
  margin: 0 0 1.3rem;
  background: linear-gradient(to right, var(--fp-bg-soft) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
  position: relative;
}
.fp-section-hd-en {
  display: block;
  font-size: 0.55em;
  color: var(--fp-orange);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.15em;
}

/* ============================================================
   FEATURED CARD (注目記事・横並び)
   ============================================================ */
.fp-featured-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26,107,181,0.12);
  border: 3px solid var(--fp-orange);
  position: relative;
  margin-bottom: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s;
}
.fp-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,107,181,0.18);
}
.fp-featured-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1A1F3D 0%, #E91E63 100%);
  overflow: hidden;
  position: relative;
}
.fp-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fp-featured-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  color: rgba(255,255,255,0.7);
}
.fp-featured-body {
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fp-featured-cat {
  display: inline-block;
  background: var(--fp-navy);
  color: #fff;
  padding: 0.25em 0.9em;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  margin-bottom: 0.7rem;
  align-self: flex-start;
}
.fp-featured-title {
  font-size: 1.3em;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 0.7rem;
  color: var(--fp-navy-dark);
}
.fp-featured-excerpt {
  font-size: 0.92em;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.fp-featured-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.82em;
  color: var(--fp-mute);
  padding-top: 0.8rem;
  border-top: 1px dashed var(--fp-border);
  flex-wrap: wrap;
}

/* ============================================================
   CATEGORY GRID (fp-cat-grid) ← H-3 修正済み
   ============================================================ */
.fp-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.fp-cat-card {
  background: #fff;
  border: 2px solid var(--fp-border);
  border-radius: 12px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.fp-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--fp-orange);
  box-shadow: 0 8px 20px rgba(232,155,60,0.15);
}
.fp-cat-icon {
  font-size: 2.2em;
  line-height: 1;
}
.fp-cat-name {
  font-weight: 700;
  font-size: 0.88em;
  color: var(--fp-navy-dark);
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.fp-cat-count {
  display: inline-block;
  background: var(--fp-orange);
  color: #fff;
  padding: 0.1em 0.6em;
  border-radius: 10px;
  font-size: 0.72em;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* ============================================================
   RANKING TOP5
   ============================================================ */
.fp-ranking-section {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border: 2px solid var(--fp-orange);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}
.fp-ranking-list { display: grid; gap: 0.9rem; }
.fp-ranking-item {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.2rem 1rem 3.8rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.fp-ranking-item:hover { transform: translateX(4px); }
.fp-ranking-item::before {
  content: attr(data-rank);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, var(--fp-navy), var(--fp-navy-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(26,107,181,0.4);
}
.fp-ranking-item[data-rank="01"]::before { background: linear-gradient(135deg, #FFD700, #FFA000); color: #333; }
.fp-ranking-item[data-rank="02"]::before { background: linear-gradient(135deg, #C0C0C0, #808080); }
.fp-ranking-item[data-rank="03"]::before { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.fp-ranking-title {
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fp-navy-dark);
  margin-bottom: 0.2rem;
}
.fp-ranking-cat {
  font-size: 0.75em;
  color: var(--fp-mute);
}

/* ============================================================
   SUBTLE BANNER
   ============================================================ */
.fp-subtle-banner {
  display: block;
  margin: 1.5rem 0 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  text-decoration: none;
}
.fp-subtle-banner:hover { transform: translateY(-2px); }
.fp-subtle-banner img { width: 100%; height: auto; display: block; }
.fp-subtle-banner-fallback {
  background: linear-gradient(135deg, var(--fp-orange), var(--fp-orange-dark));
  color: #fff;
  text-align: center;
  padding: 1.3rem 1.5rem;
  font-weight: 900;
  font-size: 1.02em;
}

/* ============================================================
   OPERATOR INTRO
   ============================================================ */
.fp-operator-intro {
  background: linear-gradient(135deg, var(--fp-bg-soft) 0%, #fff 100%);
  border: 2px solid var(--fp-navy);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  align-items: center;
}
.fp-operator-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fp-navy), var(--fp-navy-dark));
  box-shadow: 0 6px 20px rgba(26,107,181,0.3);
  border: 4px solid #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.fp-operator-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-operator-label {
  display: inline-block;
  background: var(--fp-orange);
  color: #fff;
  padding: 0.2em 0.8em;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.fp-operator-name {
  font-size: 1.3em;
  font-weight: 900;
  color: var(--fp-navy-dark);
  margin-bottom: 0.3rem;
}
.fp-operator-title {
  font-size: 0.88em;
  color: var(--fp-mute);
  margin-bottom: 0.8rem;
}
.fp-operator-desc {
  font-size: 0.92em;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1rem;
}
.fp-operator-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.fp-operator-stat { text-align: center; }
.fp-operator-stat-num {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--fp-orange);
  line-height: 1;
  display: block;
}
.fp-operator-stat-label {
  font-size: 0.72em;
  color: var(--fp-mute);
}
.fp-operator-link {
  display: inline-block;
  background: var(--fp-navy);
  color: #fff !important;
  padding: 0.5em 1.3em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   ARTICLE LIST (新着記事)
   ============================================================ */
.fp-article-list {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.fp-article-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.fp-article-item:hover { transform: translateY(-2px); }
.fp-article-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1A6BB5, #E89B3C);
  overflow: hidden;
}
.fp-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fp-article-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2em;
  opacity: 0.85;
}
.fp-article-body { padding: 1.1rem 1.3rem; }
.fp-article-cat {
  display: inline-block;
  background: var(--fp-bg-soft);
  color: var(--fp-navy);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  border: 1px solid var(--fp-navy);
}
.fp-article-title {
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: var(--fp-navy-dark);
}
.fp-article-meta {
  font-size: 0.78em;
  color: var(--fp-mute);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   INSURANCE 3 PLANS ← H-7 修正済み
   ============================================================ */
.fp-insurance-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fp-insurance-lead {
  font-size: 0.92em;
  color: var(--fp-mute);
  margin-bottom: 1rem;
}
.fp-insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.fp-plan-card {
  background: var(--fp-bg-soft);
  border: 2px solid var(--fp-navy);
  border-radius: 12px;
  padding: 1.3rem 1rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.fp-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26,107,181,0.15);
}
.fp-plan-icon { font-size: 2.2em; margin-bottom: 0.3rem; }
.fp-plan-name {
  font-weight: 900;
  color: var(--fp-navy-dark);
  font-size: 0.98em;
  margin-bottom: 0.3rem;
}
.fp-plan-price {
  color: var(--fp-orange);
  font-size: 1.2em;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.fp-plan-desc {
  font-size: 0.8em;
  color: var(--fp-mute);
  min-height: 2.4em;
  margin-bottom: 0.8rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-plan-btn {
  display: block;
  background: var(--fp-orange);
  color: #fff !important;
  padding: 0.55em;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 900;
  text-decoration: none;
}
.fp-plan-btn:hover { background: var(--fp-orange-dark); }

/* ============================================================
   SIDEBAR (fp-sidebar) ← H-4, H-5, H-8 修正済み
   ============================================================ */
.fp-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 上部CTAボックス（紺グラデ）*/
.fp-sidebar-cta {
  background: linear-gradient(135deg, var(--fp-navy), var(--fp-navy-dark));
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(13,74,127,0.15);
}
.fp-sidebar-cta-icon { font-size: 2em; margin-bottom: 0.3rem; }
.fp-sidebar-cta-title {
  font-size: 1.1em;
  font-weight: 900;
  margin-bottom: 0.4rem;
  color: #fff;
}
.fp-sidebar-cta-sub {
  font-size: 0.85em;
  opacity: 0.95;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.5;
}
.fp-sidebar-cta-btn {
  display: inline-block;
  background: var(--fp-orange);
  color: #fff !important;
  padding: 0.6em 1.6em;
  border-radius: 24px;
  font-size: 0.88em;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.2s;
}
.fp-sidebar-cta-btn:hover { background: var(--fp-orange-dark); }

/* サイドバーブロック共通 */
.fp-sidebar-block {
  background: #fff;
  border-radius: 12px;
  padding: 1.3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.fp-sidebar-title {
  font-size: 1.05em;
  font-weight: 900;
  color: var(--fp-navy);
  border-bottom: 2px solid var(--fp-orange);
  padding-bottom: 0.5rem;
  margin-bottom: 0.9rem;
}

/* 人気記事リスト（動的・H-8修正） */
.fp-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fp-popular-item {
  border-bottom: 1px dashed var(--fp-border);
}
.fp-popular-item:last-child { border-bottom: none; }
.fp-popular-item a {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  text-decoration: none;
  align-items: flex-start;
  color: inherit;
}
.fp-popular-rank {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--fp-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  font-weight: 900;
}
.fp-popular-rank-1 { background: linear-gradient(135deg, #FFD700, #FFA000); color: #333; }
.fp-popular-rank-2 { background: linear-gradient(135deg, #C0C0C0, #808080); }
.fp-popular-rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.fp-popular-title {
  font-size: 0.86em;
  font-weight: 700;
  color: var(--fp-navy-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* サイドバーカテゴリ */
.fp-sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fp-sidebar-cat-list li { border-bottom: 1px dashed var(--fp-border); }
.fp-sidebar-cat-list li:last-child { border-bottom: none; }
.fp-sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  font-size: 0.88em;
  color: var(--fp-text);
  text-decoration: none;
}
.fp-sidebar-cat-list a:hover .fp-sidebar-cat-label { color: var(--fp-navy); }
.fp-sidebar-cat-label {
  font-weight: 700;
  transition: color 0.2s;
}
.fp-sidebar-cat-count {
  background: var(--fp-orange);
  color: #fff;
  padding: 0.15em 0.6em;
  border-radius: 10px;
  font-size: 0.72em;
  font-weight: 900;
}

/* タグクラウド */
.fp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fp-tag-cloud a {
  background: var(--fp-bg-soft);
  color: var(--fp-navy);
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 700;
  border: 1px solid var(--fp-border);
  transition: all 0.15s;
  text-decoration: none;
}
.fp-tag-cloud a:hover {
  background: var(--fp-navy);
  color: #fff;
  border-color: var(--fp-navy);
}

/* サイドバー下部画像バナー */
.fp-sidebar-img-banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,107,181,0.15);
  margin-bottom: 1.5rem;
}
.fp-sidebar-img-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOOTER (fp-site-footer) ← H-6 修正済み：白背景＋青ロゴ
   ============================================================ */
/* 旧テーマのフッターを無効化 */
#footer { display: none !important; }

.fp-site-footer {
  background: #fff;
  color: var(--fp-text);
  padding: 3rem 1.5rem 0;
  margin-top: 3rem;
  border-top: 3px solid var(--fp-navy);
}
.fp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.fp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.fp-footer-brand {}
.fp-footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.fp-footer-logo-img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
.fp-footer-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.fp-footer-brand-name {
  font-size: 1.4em;
  font-weight: 900;
  color: var(--fp-navy);
  margin: 0;
  letter-spacing: -0.01em;
}
.fp-footer-tagline {
  font-size: 0.9em;
  color: var(--fp-text);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.fp-footer-runner {
  font-size: 0.82em;
  color: var(--fp-mute);
}
.fp-footer-runner a {
  color: var(--fp-navy);
  font-weight: 700;
  text-decoration: none;
}
.fp-footer-runner a:hover { text-decoration: underline; }

.fp-footer-col h4 {
  font-size: 0.95em;
  margin-bottom: 0.9rem;
  color: var(--fp-navy);
  font-weight: 900;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--fp-orange);
  display: inline-block;
}
.fp-footer-col ul {
  list-style: none;
  font-size: 0.88em;
  margin: 0;
  padding: 0;
}
.fp-footer-col li { padding: 0.35rem 0; }
.fp-footer-col li a {
  color: var(--fp-text);
  text-decoration: none;
  transition: color 0.2s;
}
.fp-footer-col li a:hover { color: var(--fp-navy); }

.fp-footer-bottom {
  background: var(--fp-navy);
  color: #fff;
  text-align: center;
  padding: 1rem 1.5rem;
  margin: 0 -1.5rem;
}
.fp-footer-copy { margin: 0; }
.fp-footer-copy small { font-size: 0.8em; opacity: 0.9; }

/* ============================================================
   RESPONSIVE (PC → Tablet → Mobile)
   ============================================================ */

/* === Tablet (max 960px) === */
@media (max-width: 960px) {
  .fp-main-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .fp-sidebar {
    order: 2;
  }
  .fp-header-nav { display: none; }
  .fp-header-search { max-width: 100%; }
  .fp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .fp-featured-card { grid-template-columns: 260px 1fr; }
}

/* === Mobile (max 720px) === */
@media (max-width: 720px) {
  /* H-1: ヘッダー右端見切れ修正 */
  .fp-header-inner {
    padding: 0.5rem 0.9rem;
    gap: 0.7rem;
    flex-wrap: nowrap;
  }
  .fp-site-logo { gap: 0.4rem; }
  .fp-site-logo-img { width: 34px; height: 34px; }
  .fp-site-logo-text {
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fp-site-logo-text small { display: none; }
  .fp-header-search {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }
  .fp-header-search input {
    padding: 0.5rem 0.8rem 0.5rem 2.2rem;
    font-size: 0.85em;
  }
  .fp-header-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.78em;
    flex-shrink: 0;
  }

  /* HERO */
  .fp-hero { padding: 2.5rem 1rem 2rem; }
  .fp-hero-title { font-size: 1.5em; }
  .fp-hero-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }
  .fp-hero-search input { width: 100%; }
  .fp-hero-search button {
    width: 100%;
    margin-top: 0.4rem;
  }

  /* H-2: トラストバー */
  .fp-trust-bar { padding: 1rem 0.8rem; }
  .fp-trust-inner { grid-template-columns: 1fr; gap: 0.7rem; }
  .fp-trust-item { justify-content: flex-start; }

  /* MAIN WRAP */
  .fp-main-wrap {
    padding: 1.5rem 1rem;
  }
  .fp-section-hd { font-size: 1.2em; }

  /* 注目記事：縦積み */
  .fp-featured-card { grid-template-columns: 1fr; }
  .fp-featured-thumb { aspect-ratio: 16 / 9; }
  .fp-featured-body { padding: 1.2rem 1.3rem; }
  .fp-featured-title { font-size: 1.15em; }

  /* H-3: カテゴリグリッド 2列×5段 */
  .fp-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .fp-cat-card { padding: 1rem 0.6rem; }
  .fp-cat-icon { font-size: 1.9em; }
  .fp-cat-name { font-size: 0.85em; }

  /* ランキング */
  .fp-ranking-section { padding: 1.3rem 1rem; }
  .fp-ranking-item {
    padding: 0.9rem 1rem 0.9rem 3.4rem;
  }
  .fp-ranking-title { font-size: 0.88em; }

  /* 運営者 */
  .fp-operator-intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.2rem;
    gap: 1.2rem;
  }
  .fp-operator-avatar {
    margin: 0 auto;
    width: 110px;
    height: 110px;
  }
  .fp-operator-stats { justify-content: center; }

  /* 新着記事 */
  .fp-article-item { grid-template-columns: 1fr; }
  .fp-article-thumb { aspect-ratio: 16 / 8; }

  /* H-7: 3プラン */
  .fp-insurance-section { padding: 1.5rem 1.2rem; }
  .fp-insurance-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .fp-plan-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  /* H-4: サイドバーCTA正常化 */
  .fp-sidebar-cta {
    background: linear-gradient(135deg, var(--fp-navy), var(--fp-navy-dark)) !important;
    color: #fff !important;
  }
  .fp-sidebar-cta-title,
  .fp-sidebar-cta-sub { color: #fff !important; }

  /* サイドバーカテゴリ：スマホでは非表示 */
  .fp-sidebar-cats { display: none !important; }

  /* フッター */
  .fp-site-footer { padding: 2rem 1rem 0; }
  .fp-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .fp-footer-brand-head { justify-content: flex-start; }
  .fp-footer-bottom { margin: 0 -1rem; padding: 0.9rem 1rem; }
}

/* === Extra small (max 420px) === */
@media (max-width: 420px) {
  .fp-hero-title { font-size: 1.3em; }
  .fp-site-logo-text { font-size: 0.9em; }
  .fp-header-cta {
    padding: 0.4rem 0.7rem;
    font-size: 0.72em;
  }
  .fp-header-search input { font-size: 0.8em; }
}

/* ============================================================
   archive.php / single.php / page.php / search.php 向け
   旧テーマの .main-wrap / .post-wrap / .static-wrap にも
   fp- サイドバーのレイアウトを適用するための橋渡し
   ============================================================ */
@media (max-width: 960px) {
  .main-wrap, .post-wrap, .static-wrap {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  .main-wrap, .post-wrap, .static-wrap {
    padding: 1rem !important;
    margin: 1rem auto !important;
  }
}

/* ============================================================
   EOF
   ============================================================ */

/* ============================================================
   momegoto.jp v4.4 追加パッチ
   ============================================================
   このCSSは既存の style.css（v3+v4結合済み）の末尾にさらに追記。
   v4 の見た目の細かい問題を修正する。

   修正内容:
   - セクション見出しの視認性UP（紺背景＋白文字＋オレンジライン）
   - 注目記事・新着記事のサムネ 16:7（画像全体が見える）
   - ヘッダーロゴ・フッターロゴのサイズ微調整
   - 運営者アバターの表示調整
   - フッター下部の色境界を自然に
   ============================================================ */

/* ============================================================
   セクション見出しの視認性UP（紺単色、サイト統一）
   ============================================================ */
.fp-section-hd {
  background: var(--fp-navy) !important;
  color: #fff !important;
  padding: 0.9em 1.2em !important;
  border-left: 6px solid var(--fp-orange) !important;
  border-radius: 8px !important;
  margin: 0 0 1.5rem !important;
  box-shadow: 0 4px 12px rgba(13, 74, 127, 0.15);
}

.fp-section-hd::before {
  display: none !important;
}

.fp-section-hd-en {
  display: block;
  font-size: 0.6em !important;
  color: var(--fp-orange) !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 0.3em !important;
  opacity: 0.95;
}

/* ============================================================
   B案: ヘッダー・ヒーロー・コンテンツを全部独立カード型に
   ============================================================ */

/* ヘッダーをカード型に */
.fp-site-header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  position: static !important;
}
.fp-header-inner {
  max-width: 1200px !important;
  margin: 1.5rem auto 0 !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 0.9rem 1.5rem !important;
  box-shadow: 0 4px 16px rgba(13, 74, 127, 0.08) !important;
  box-sizing: border-box !important;
}

/* ヒーローをカード型に（同じ1200px幅） */
.fp-hero {
  max-width: 1200px !important;
  margin: 1rem auto 0 !important;
  padding: 2.8rem 1.5rem 2.2rem !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(13, 74, 127, 0.15) !important;
  box-sizing: border-box !important;
  border-bottom: none !important;
}
.fp-hero::after {
  display: none !important;
  content: none !important;
}
.fp-hero-inner {
  max-width: 800px !important;
  margin: 0 auto !important;
}

/* メインコンテンツも同じ1200px幅で揃える */
.fp-main-wrap {
  max-width: 1200px !important;
  margin: 1rem auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 1.5rem !important;
  box-sizing: border-box !important;
  align-items: start !important;
}

/* メインコンテンツのカード型背景 */
.fp-main-content {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 2rem 1.8rem !important;
  box-shadow: 0 4px 16px rgba(13, 74, 127, 0.08) !important;
  min-width: 0 !important;
}

/* サイドバー全体（カードの集合） */
.fp-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
  min-width: 0 !important;
}

/* body 背景を薄いグレーにして「外周」を見せる */
body {
  background: var(--fp-bg-page, #f5f7fa) !important;
}

/* トラストバー残骸を完全削除 */
.fp-trust-bar {
  display: none !important;
  border: none !important;
  background: transparent !important;
}

/* 旧パンくずバーを非表示（固定ページや個別記事で出るやつ） */
.breadcrumb-nav,
.bc-sep,
.breadcrumb-inner {
  display: none !important;
}

/* ============================================================
   旧テーマの紺色を新青に全面上書き（!important 直接指定）
   CSS変数の!importantは効かないので、各プロパティに直接指定
   ============================================================ */

/* 背景色が紺色だった要素を新青に */
.site-header,
.sec-title,
.widget-title,
.related-title,
.form-submit,
.btn-home,
.search-form-wrap button {
  background: #1A6BB5 !important;
}

/* グラデ背景が紺だった要素 */
.hero-text-wrap {
  background: linear-gradient(135deg, #0D4A7F, #1A6BB5) !important;
}
.feat-thumb-empty {
  background: linear-gradient(135deg, #1A6BB5, #2E86D1) !important;
}
.inline-cta {
  background: linear-gradient(120deg, #0D4A7F, #1A6BB5) !important;
}

/* 文字色が紺色だった要素を新青に */
.cat-name,
.feat-title,
.sub-title,
.art-title,
.cta-name,
.grid-title,
.rank-title,
.sc-left,
.post-h1,
.toc-title,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body strong,
.share-label,
.related-card-title,
.static-main h1,
.static-main h2,
.form-label,
.notfound-wrap h1,
.fp-site-logo-text,
.fp-site-logo,
.fp-sidebar-cat-list a,
.fp-popular-title,
.fp-cat-name,
.fp-article-title,
.fp-featured-title,
.fp-operator-name,
.fp-ranking-title {
  color: #1A6BB5 !important;
}

/* ボーダー色 */
.toc-box {
  border-left-color: #1A6BB5 !important;
}
.post-body h3 {
  border-bottom-color: #1A6BB5 !important;
}
.page-numbers:hover {
  background: #1A6BB5 !important;
  border-color: #1A6BB5 !important;
  color: #fff !important;
}

/* ============================================================
   スマホ：ヘッダー検索バー文字切れ対策＋ロゴg切れ対策
   ============================================================ */
@media (max-width: 720px) {
  /* ロゴテキストのline-height調整でg切れ防止 */
  .fp-site-logo-text {
    line-height: 1.3 !important;
    padding: 0.1em 0 !important;
  }
  
  /* 検索バーの文字を小さく */
  .fp-header-search input,
  .fp-header-search input::placeholder {
    font-size: 0.7em !important;
  }
  .fp-header-search input {
    padding: 0.45rem 0.7rem 0.45rem 2rem !important;
  }
  .fp-header-search::before {
    font-size: 0.85em !important;
    left: 0.7rem !important;
  }
}

@media (max-width: 480px) {
  /* さらに小さい画面での文字調整 */
  .fp-header-search input,
  .fp-header-search input::placeholder {
    font-size: 0.65em !important;
  }
  .fp-site-logo-text {
    font-size: 0.85em !important;
  }
}

/* ============================================================
   archive/category/tag ページの記事カード
   .art-item を flex で正方形サムネに統一
   ============================================================ */
.art-list {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  border-radius: 0 !important;
}

.art-item {
  display: flex !important;
  align-items: stretch !important;
  background: #fff !important;
  border: 1px solid #e0e6ed !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  text-decoration: none !important;
  border-bottom: 1px solid #e0e6ed !important;
}
.art-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(13, 74, 127, 0.12) !important;
}

/* archive サムネ：正方形 contain（強制） */
.art-item .art-thumb-img,
.art-item img.art-thumb-img,
.art-item img {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #0D4A7F !important;
  border: none !important;
  display: block !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.art-item .art-thumb-empty {
  width: 200px !important;
  min-width: 200px !important;
  height: 200px !important;
  aspect-ratio: 1 / 1 !important;
  background: linear-gradient(135deg, #1A6BB5, #0D4A7F) !important;
  border-right: none !important;
  flex-shrink: 0 !important;
}

/* archive記事カードの本文部分 */
.art-item .art-body {
  padding: 1rem 1.3rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.art-item .art-title {
  font-size: 0.95em !important;
  line-height: 1.55 !important;
  color: #1A6BB5 !important;
  font-weight: 700 !important;
  margin: 0.4rem 0 0 !important;
}
.art-item .art-meta {
  display: none !important;
}

@media (max-width: 720px) {
  .art-item .art-thumb-img,
  .art-item img.art-thumb-img,
  .art-item .art-thumb-empty {
    width: 110px !important;
    min-width: 110px !important;
    height: 110px !important;
  }
  .art-item .art-body {
    padding: 0.7rem 0.9rem !important;
  }
  .art-item .art-title {
    font-size: 0.82em !important;
    line-height: 1.5 !important;
  }
}

/* ============================================================
   運営者ページ：青背景カード内の見出しを白に
   ============================================================ */
/* 運営者ページで青背景カード内の名前 h1/h2/h3 を白に */
.operator-card h1,
.operator-card h2,
.operator-card h3,
.operator-name,
.operator-card .name,
[class*="operator"] h1,
[class*="operator"] h2 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 青背景内の border-left オレンジは維持しつつ文字色だけ白に */
.static-main [style*="background"] h1,
.static-main [style*="background"] h2,
.static-main [class*="bg-"] h1,
.static-main [class*="bg-"] h2 {
  color: #fff !important;
}

/* ============================================================
   固定ページ青背景カード内の見出しを白に統一
   （運営者・お問い合わせ・免責事項・勧誘方針・個人情報保護方針 等）
   ============================================================ */

/* 旧運営者ページ専用クラス対応（広め） */
.fp-operator-name,
.fp-operator-intro h1,
.fp-operator-intro h2,
.fp-operator-intro h3 {
  color: #fff !important;
}

/* hero クラスを含む青背景セクション内の見出しは全部白に強制 */
.contact-hero h1,
.contact-hero h2,
.contact-hero h3,
.disclaimer-hero h1,
.disclaimer-hero h2,
.disclaimer-hero h3,
.solicitation-hero h1,
.solicitation-hero h2,
.solicitation-hero h3,
.privacy-hero h1,
.privacy-hero h2,
.privacy-hero h3,
.operator-hero h1,
.operator-hero h2,
.operator-hero h3,
[class$="-hero"] h1,
[class$="-hero"] h2,
[class$="-hero"] h3,
[class*="-hero "] h1,
[class*="-hero "] h2,
[class*="-hero "] h3 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 青背景カード内のあらゆる h1/h2/h3 を白に
   （static-main 内の青グラデ背景セクション対応） */
.static-main div[style*="background"] h1,
.static-main div[style*="background"] h2,
.static-main div[style*="background"] h3,
.static-main section[style*="background"] h1,
.static-main section[style*="background"] h2,
.static-main section[style*="background"] h3,
.static-main div[style*="linear-gradient"] h1,
.static-main div[style*="linear-gradient"] h2,
.static-main div[style*="linear-gradient"] h3,
.static-main section[style*="linear-gradient"] h1,
.static-main section[style*="linear-gradient"] h2,
.static-main section[style*="linear-gradient"] h3 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* 旧テーマや固定ページで使われる青背景クラス対応（広め） */
[class*="hero"] h1,
[class*="hero"] h2,
[class*="hero"] h3,
[class*="page-header"] h1,
[class*="page-header"] h2,
[class*="bg-navy"] h1,
[class*="bg-navy"] h2,
[class*="bg-navy"] h3,
[class*="bg-blue"] h1,
[class*="bg-blue"] h2,
[class*="bg-blue"] h3 {
  color: #fff !important;
}

/* ============================================================
   旧テーマのバー類の色を新青（fp-navy）に統一
   ============================================================ */
.sec-title,
.widget-title,
.related-title {
  background: var(--fp-navy) !important;
  border-left-color: var(--fp-orange) !important;
  color: #fff !important;
}

/* 旧テーマの h1（固定ページ・カテゴリページのタイトル）も統一 */
.static-main h1,
.notfound-wrap h1 {
  border-left-color: var(--fp-orange) !important;
  color: var(--fp-navy) !important;
}

/* 旧テーマの記事本文 h2 も統一 */
.post-body h2 {
  border-left-color: var(--fp-orange) !important;
  background: var(--fp-bg-soft) !important;
  color: var(--fp-navy) !important;
}

/* 旧テーマの記事本文 h3 のアンダーライン色 */
.post-body h3 {
  border-bottom-color: var(--fp-navy) !important;
  color: var(--fp-navy) !important;
}

/* インラインCTAの紺グラデも新青に */
.inline-cta {
  background: linear-gradient(120deg, var(--fp-navy-dark), var(--fp-navy)) !important;
}

/* ページネーション */
.page-numbers:hover,
.page-numbers.current {
  background: var(--fp-navy) !important;
  border-color: var(--fp-navy) !important;
}
.page-numbers.current {
  background: var(--fp-orange) !important;
  border-color: var(--fp-orange) !important;
}

/* ============================================================
   archive / single / page もカード型に統一
   （あたまでっかち解消）
   ============================================================ */
.main-wrap,
.post-wrap,
.static-wrap {
  max-width: 1200px !important;
  margin: 1rem auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 1.5rem !important;
  box-sizing: border-box !important;
  align-items: start !important;
}

/* メインカラム（archive・single・page共通） */
.main-wrap > main,
.main-wrap > .article-block,
.main-wrap > .feat-card,
.main-wrap > .art-list,
.main-wrap > .pagination,
.post-wrap > .post-main,
.post-wrap > main,
.static-wrap > .static-main,
.static-wrap > main {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 2rem 1.8rem !important;
  box-shadow: 0 4px 16px rgba(13, 74, 127, 0.08) !important;
  min-width: 0 !important;
}

/* archive で記事リストとページネーションが別要素の場合の対策 */
.main-wrap .pagination {
  margin-top: 0 !important;
}

/* ============================================================
   archive / single / page のサイドバー（共通）
   ============================================================ */
.main-wrap > .sidebar,
.post-wrap > .sidebar,
.static-wrap > .sidebar,
.main-wrap > aside,
.post-wrap > aside,
.static-wrap > aside {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
  min-width: 0 !important;
}

/* スマホでアーカイブ系もカード余白統一 */
@media (max-width: 960px) {
  .main-wrap,
  .post-wrap,
  .static-wrap {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 720px) {
  .main-wrap,
  .post-wrap,
  .static-wrap {
    max-width: calc(100% - 2rem) !important;
    margin: 0.8rem auto 0 !important;
    padding: 0 !important;
    gap: 1rem !important;
  }
  .main-wrap > main,
  .post-wrap > .post-main,
  .post-wrap > main,
  .static-wrap > .static-main,
  .static-wrap > main {
    padding: 1.5rem 1.2rem !important;
    border-radius: 12px !important;
  }
}

/* スマホでカード余白を調整 */
@media (max-width: 960px) {
  .fp-main-wrap {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 720px) {
  .fp-header-inner {
    max-width: calc(100% - 2rem) !important;
    margin: 1rem auto 0 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 12px !important;
  }
  .fp-hero {
    max-width: calc(100% - 2rem) !important;
    margin: 0.8rem auto 0 !important;
    padding: 2rem 1.2rem 1.8rem !important;
    border-radius: 12px !important;
  }
  .fp-main-wrap {
    max-width: calc(100% - 2rem) !important;
    margin: 0.8rem auto 0 !important;
    padding: 0 !important;
    gap: 1rem !important;
  }
  .fp-main-content {
    padding: 1.5rem 1.2rem !important;
    border-radius: 12px !important;
  }
}

/* ============================================================
   注目記事のサムネ（絶対に切らない・全体表示）
   v4.10: WordPress出力サムネを large に変更
   ============================================================ */
.fp-featured-card {
  overflow: hidden !important;
}
.fp-featured-thumb {
  aspect-ratio: 16 / 9 !important;
  background: linear-gradient(135deg, #1A1F3D 0%, #0D4A7F 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
}

/* 画像の強制 contain */
.fp-featured-thumb > img,
.fp-featured-thumb img.wp-post-image,
.fp-featured-thumb img.attachment-large,
.fp-featured-thumb img.attachment-post-thumbnail,
.fp-featured-thumb img[class*="attachment-"],
.fp-featured-thumb img[class*="wp-image-"] {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  position: relative !important;
}

/* 注目記事の日付・読了時間を非表示 */
.fp-featured-meta {
  display: none !important;
}

.fp-featured-excerpt {
  margin-bottom: 0.4rem !important;
}

.fp-featured-title {
  font-size: 1.2em !important;
}

@media (max-width: 960px) {
  .fp-featured-card {
    grid-template-columns: 1fr !important;
  }
  .fp-featured-thumb {
    aspect-ratio: 16 / 9 !important;
  }
  .fp-featured-title {
    font-size: 1.1em !important;
  }
}

/* ============================================================
   新着記事のサムネ（横長16:9・絶対に切らない・全体表示）
   v4.10: WordPress出力サムネを large に変更し、CSSも強化
   ============================================================ */
.fp-article-item {
  grid-template-columns: 240px 1fr !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.fp-article-thumb {
  aspect-ratio: 16 / 9 !important;
  background: #0D4A7F !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
}

/* 画像の強制 contain：あらゆるWordPress出力クラスに対応 */
.fp-article-thumb > img,
.fp-article-thumb img.wp-post-image,
.fp-article-thumb img.attachment-large,
.fp-article-thumb img.attachment-post-thumbnail,
.fp-article-thumb img[class*="attachment-"],
.fp-article-thumb img[class*="wp-image-"] {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  position: relative !important;
}

/* 新着記事の日付・読了時間を非表示 */
.fp-article-meta {
  display: none !important;
}

/* 新着記事のタイトル余白調整 */
.fp-article-body {
  padding: 1rem 1.3rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.fp-article-title {
  margin-bottom: 0 !important;
  font-size: 0.95em !important;
  line-height: 1.55 !important;
}
.fp-article-cat {
  font-size: 0.72em !important;
  margin-bottom: 0.4rem !important;
  align-self: flex-start !important;
}

@media (max-width: 720px) {
  .fp-article-item {
    grid-template-columns: 140px 1fr !important;
    align-items: stretch !important;
  }
  .fp-article-thumb {
    aspect-ratio: 16 / 9 !important;
    background: #0D4A7F !important;
  }
  .fp-article-body {
    padding: 0.7rem 0.9rem !important;
  }
  .fp-article-title {
    font-size: 0.82em !important;
    line-height: 1.5 !important;
  }
  .fp-article-cat {
    font-size: 0.66em !important;
    margin-bottom: 0.3rem !important;
  }
}

/* ============================================================
   ヘッダーロゴの調整（青鷲ロゴが綺麗に見えるように）
   ============================================================ */
.fp-site-logo-img {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.fp-site-logo-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* ============================================================
   フッターロゴの調整
   ============================================================ */
.fp-footer-logo-img {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.fp-footer-logo-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* ============================================================
   運営者アバター：写真が正しく見えるように
   ============================================================ */
.fp-operator-avatar {
  background: #fff !important;
  border: 4px solid var(--fp-navy) !important;
  overflow: hidden !important;
}
.fp-operator-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* 運営者欄をコンパクト化（スタット削除済み） */
.fp-operator-intro {
  padding: 1.5rem 1.8rem !important;
  gap: 1.4rem !important;
}
.fp-operator-avatar {
  width: 110px !important;
  height: 110px !important;
}
.fp-operator-desc {
  margin-bottom: 0.9rem !important;
  font-size: 0.9em !important;
  line-height: 1.75 !important;
}
.fp-operator-name {
  font-size: 1.2em !important;
  margin-bottom: 0.2rem !important;
}
.fp-operator-title {
  font-size: 0.85em !important;
  margin-bottom: 0.6rem !important;
}
.fp-operator-label {
  margin-bottom: 0.4rem !important;
  font-size: 0.75em !important;
}

@media (max-width: 720px) {
  .fp-operator-intro {
    padding: 1.3rem 1.1rem !important;
  }
  .fp-operator-avatar {
    width: 95px !important;
    height: 95px !important;
  }
}

/* ============================================================
   フッター下部の色境界を自然に（v4.5で青背景を完全復活）
   ============================================================ */
.fp-site-footer {
  background: #fff !important;
  border-top: 4px solid var(--fp-navy) !important;
  padding: 3rem 1.5rem 0 !important;
  margin-top: 3rem !important;
  position: relative;
  overflow: hidden;
}

.fp-footer-bottom {
  background: var(--fp-navy) !important;
  color: #fff !important;
  text-align: center !important;
  padding: 1.2rem 1.5rem !important;
  margin: 2rem -1.5rem 0 -1.5rem !important;
  width: calc(100% + 3rem) !important;
  box-sizing: border-box;
}

.fp-footer-copy {
  margin: 0 !important;
  color: #fff !important;
}

.fp-footer-copy small {
  font-size: 0.85em;
  opacity: 0.95;
  color: #fff !important;
}

/* ============================================================
   ヒーローバナー画像の調整
   ============================================================ */
.fp-subtle-banner img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  aspect-ratio: 1200 / 630 !important;
  object-fit: cover !important;
}

/* ============================================================
   サイドバー下部バナーの調整
   ============================================================ */
.fp-sidebar-img-banner {
  aspect-ratio: auto !important;
}
.fp-sidebar-img-banner img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ============================================================
   スマホでセクション見出しが小さすぎないように
   ============================================================ */
@media (max-width: 720px) {
  .fp-section-hd {
    font-size: 1.15em !important;
    padding: 0.8em 1rem !important;
  }
  .fp-section-hd-en {
    font-size: 0.55em !important;
  }
}

/* ============================================================
   EOF v4.4
   ============================================================ */


/* === MOMEGOTO FIX 2026-04 START === */

/* CTA banner link: ensure 700px wide display */
.entry-content a.cta-banner-link {
  display: block !important;
  max-width: 700px !important;
  width: 100% !important;
  margin: 24px auto !important;
  padding: 0 !important;
  text-decoration: none !important;
  line-height: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative !important;
}

.entry-content a.cta-banner-link img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Collapse empty <p> tags wrapping cta-banner-link */
.entry-content p:has(> a.cta-banner-link:only-child) {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.entry-content p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Content images: preserve aspect ratio, auto height */
.entry-content img:not(.cta-banner-link img) {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5rem auto;
}

/* === MOMEGOTO FIX 2026-04 END === */

/* === MOMEGOTO FIX 2026-04 v3 START === */

/* Problem A: CTA banner - higher specificity to override theme */
.entry-content a.cta-banner-link,
article .entry-content a.cta-banner-link,
.single .entry-content a.cta-banner-link,
body.single .entry-content a.cta-banner-link {
  display: block !important;
  width: auto !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.entry-content a.cta-banner-link img,
article .entry-content a.cta-banner-link img,
.single .entry-content a.cta-banner-link img,
body.single .entry-content a.cta-banner-link img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  vertical-align: top !important;
}

.entry-content > p > a.cta-banner-link {
  margin: 0 auto !important;
}

/* Problem C: Eyecatch - override object-fit:cover and aspect-ratio:16/7 */
img.post-eyecatch,
img.post-eyecatch.wp-post-image,
.post-main img.post-eyecatch,
article.post-main img.post-eyecatch {
  object-fit: contain !important;
  aspect-ratio: auto !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 0 1.5rem 0 !important;
}

/* Problem C: Content images - ensure no cropping */
.post-body img:not(.cta-banner-link img):not(.avatar):not(.emoji) {
  object-fit: contain !important;
  aspect-ratio: auto !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}

/* CTA parent P in post-body: remove line-height causing whitespace */
.post-body p:has(> a.cta-banner-link),
.post-body p:has(a.cta-banner-link) {
  line-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Empty P in post-body: hide completely with no margin */
.post-body p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
}

/* === MOMEGOTO FIX 2026-04 v3 END === */


/* === MOMEGOTO FIX 2026-04 v5 START === */

/*
 * CTAバナー：本文幅いっぱいに広げる
 * .post-body がこのテーマの本文コンテナ（.entry-contentではない）
 */
.post-body a.cta-banner-link,
article.post-main .post-body a.cta-banner-link,
body.single .post-body a.cta-banner-link {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.post-body a.cta-banner-link img,
article.post-main .post-body a.cta-banner-link img,
body.single .post-body a.cta-banner-link img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  vertical-align: top !important;
}

/* 親 Pタグの余白殺し */
.post-body p:has(> a.cta-banner-link:only-child),
.post-body p:has(a.cta-banner-link) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* .post-bodyのpaddingを吸収してコンテナ幅いっぱいに広げる */
/* .post-body padding: 28px left/right → ネガティブマージンで818px全幅化 */
.post-body a.cta-banner-link,
article.post-main .post-body a.cta-banner-link,
body.single .post-body a.cta-banner-link {
  margin-left: -28px !important;
  margin-right: -28px !important;
  width: calc(100% + 56px) !important;
  max-width: calc(100% + 56px) !important;
}
/* === MOMEGOTO FIX 2026-04 v5 END === */

/* === MOMEGOTO FIX 2026-04 v5 IMG START === */

/*
 * 汎用画像表示ルール（全記事共通）
 * 目的：どんな比率の画像も元の比率を保ったまま本文幅内に収まるように表示
 * 対応比率：16:9, 4:3, 1:1, 3:4, 9:16などどんな比率でも可
 * 適用範囲：.post-body 内の全ての画像
 * 除外：CTAバナー画像、アバター画像、絵文字
 */
.post-body img:not(.avatar):not(.emoji),
article.post-main .post-body img:not(.avatar):not(.emoji) {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* CTAバナー画像は除外：上記CTAルールが優先 */
.post-body a.cta-banner-link img {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* 画像の親要素のクロップ解除 */
.post-body figure,
.post-body .wp-block-image,
.post-body p:has(> img:only-child) {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
}

/* 除外：吹き出し内のアバター画像は丸くしたい */
.post-body .balloon img,
.post-body img.avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
}

/* === MOMEGOTO FIX 2026-04 v5 IMG END === */

/* === MOMEGOTO FIX 2026-04 v5 EYECATCH START === */

/*
 * アイキャッチ：画像固有の比率で表示
 * 16:9でも、4:3でも、1:1でも、どんな比率でも自動対応
 */
img.post-eyecatch,
img.post-eyecatch.wp-post-image,
.post-main img.post-eyecatch,
article.post-main img.post-eyecatch,
body.single img.post-eyecatch {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  aspect-ratio: auto !important;
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}

/* アイキャッチ親要素の固定heightやoverflowを解除 */
.post-main > figure,
.post-main > .post-thumbnail,
article.post-main > div:has(> .post-eyecatch) {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
}

/* === MOMEGOTO FIX 2026-04 v5 EYECATCH END === */

/* ============================================
   === MOMEGOTO FIX 2026-04 v6 START ===
   Avatar & Profile image circular display fix
   ============================================ */

/*
 * 課題5：吹き出しアバター・プロフィール画像の例外ルール
 *
 * 詳細度計算：
 *   v5 IMGルール(2番目): article.post-main .post-body img:not(.avatar):not(.emoji) = 0,4,2
 *     (:not(.class) は .class の詳細度 0,1,0 を加算する仕様)
 *   v6例外ルール: body.single article.post-main .post-body div[style*=".."] img = 0,4,4
 *   → 0,4,4 > 0,4,2 なので !important 同士でもv6が勝つ
 */

/* 詳細度 0,4,4 */
body.single article.post-main .post-body div[style*="border-radius:50%"] > img,
body.single article.post-main .post-body div[style*="border-radius: 50%"] > img,
body.single article.post-main .post-body div[style*="border-radius:50%"] img,
body.single article.post-main .post-body div[style*="border-radius: 50%"] img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
}

/* 円形コンテナ自体：サイズ崩れ・overflow防止 */
article.post-main .post-body div[style*="border-radius:50%"],
article.post-main .post-body div[style*="border-radius: 50%"] {
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* ============================================
   === MOMEGOTO FIX 2026-04 v6 END ===
   ============================================ */

/* ============================================
   === MOMEGOTO FIX 2026-04 v8 START ===
   Header unity: eyecatch + title block (v8.2)
   ============================================ */

/*
 * アイキャッチとタイトルブロックの一体感修正（強化版 v8.2）
 *
 * 調査結果：
 *   article.post-main: padding = 2rem 1.8rem (32px 28.8px), border-radius: 16px
 *   img.post-eyecatch はカード内側に 32px/28.8px 引っ込んでいた
 *   → 上・左右に白い帯が見えて、画像がカードから浮いた印象
 *
 * 対策：
 *   1. article の padding-top を 0 → 画像をカード上端に密着
 *   2. 画像を margin: 0 -1.8rem で左右いっぱいに拡張（width: calc(100% + 3.6rem)）
 *   3. article に overflow: hidden → border-radius が画像上角を自然にクリップ
 *   4. header も同様に左右マイナスマージンで画像と同幅に揃え、内側に padding 確保
 *   5. header の padding-top: 16px → 画像直下に適切な内側余白
 */

/* article カードの padding-top を解除し、overflow:hidden で角丸クリッピングを有効化 */
body.single article.post-main {
  padding-top: 0 !important;
  overflow: hidden !important;
}

/* アイキャッチ画像をカード幅いっぱいに拡張し、上端に密着 */
body.single article.post-main img.post-eyecatch {
  width: calc(100% + 3.6rem) !important;
  max-width: calc(100% + 3.6rem) !important;
  margin-top: 0 !important;
  margin-left: -1.8rem !important;
  margin-right: -1.8rem !important;
  margin-bottom: 0 !important;
  display: block !important;
}

/* ヘッダーブロックも画像と同幅に揃える（左右マイナスマージン＋内側パディングで補正） */
body.single article.post-main > header.post-header {
  margin-top: 0 !important;
  margin-left: -1.8rem !important;
  margin-right: -1.8rem !important;
  padding-top: 16px !important;
  padding-left: 1.8rem !important;
  padding-right: 1.8rem !important;
  box-sizing: border-box !important;
  width: calc(100% + 3.6rem) !important;
}

/* カテゴリバッジ→タイトルの間隔を12px以上に保つ */
body.single article.post-main > header.post-header h1.post-h1 {
  margin-top: 12px !important;
}


/* ============================================
   === MOMEGOTO FIX 2026-04 v8 END ===
   ============================================ */

/* ============================================
   === MOMEGOTO FIX 2026-04 v9 START ===
   TOC gap reduction + CTA border-radius
   ============================================ */

/*
 * 課題A：TOC (#ez-toc-container) の上に margin-top: -24px を設定し、
 * POINT枠直後の空白P要素 (height=30px, margin-bottom=18px) による 48px ギャップを 24px に削減
 */
.post-body #ez-toc-container {
  margin-top: -24px !important;
  margin-bottom: 24px !important;
}

/*
 * 課題B：CTAバナーに角丸と影を追加
 * v5/v6/v7/v8 の border-radius: 0 !important (詳細度 0,4,2) を
 * 詳細度 0,4,4 で上書きする
 */
body.single article.post-main .post-body a.cta-banner-link {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
}

body.single article.post-main .post-body a.cta-banner-link img {
  border-radius: 14px !important;
}

/* ============================================
   === MOMEGOTO FIX 2026-04 v9 END ===
   ============================================ */

/* ============================================
   === MOMEGOTO FIX 2026-04 v12 START ===
   CTAバナー白帯削除 (object-fit: unset)
   ============================================ */

/*
 * 原因：v9 で追加した object-fit: contain が親<a>の固定高さと噛み合い、
 * 画像の上下に 24px ずつ白帯が発生していた。
 * 対策：object-fit を unset して画像が width:100%/height:auto で自然表示されるように戻す。
 * 詳細度 0,5,4 (html + body.single + article + .post-body + a.cta-banner-link + img)
 * で既存ルールを確実に上書き。
 */
html body.single article.post-main .post-body a.cta-banner-link img,
html body.single article.post-main .post-body a.cta-banner-link > img,
html body article.post-main .post-body a.cta-banner-link img {
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  object-position: unset !important;
  max-width: 100% !important;
  display: block !important;
  vertical-align: top !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
}

/*
 * <a>タグ自体には固定高さを設定しない（画像に合わせる）
 * 角丸・影・overflow:hidden は維持
 */
html body.single article.post-main .post-body a.cta-banner-link {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ============================================
   === MOMEGOTO FIX 2026-04 v12 END ===
   ============================================ */

/* ============================================
   === MOMEGOTO FIX 2026-04 v13 START ===
   CTAバナー スマホ余白修正 (padding: 0 20px 打ち消し)
   ============================================ */

/*
 * 問題：CTAバナーの外側ラッパーDIVに inline style で
 *   padding:0 20px;margin:24px 0;box-sizing:border-box;
 * が設定されており、スマホ幅では画像が左右20pxずつ縮小して白帯が生じていた。
 *
 * 対策①：.cta-banner-link 自体の padding / margin を解除
 * 対策②：:has(> a.cta-banner-link) で親DIVの padding を打ち消す
 */

/* === CTAバナー スマホ余白修正 (2026-04) === */
@media (max-width: 767px) {
  .cta-banner-link,
  .cta-banner-link img {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* 外側ラッパーdivのpadding打ち消し */
  .cta-banner-link {
    padding: 0 !important;
  }
  /* 親DIVのインラインpadding上書き（:has() を使用） */
  div:has(> a.cta-banner-link) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ============================================
   === MOMEGOTO FIX 2026-04 v13 END ===
   ============================================ */