/* 遺品整理ECOみやぎ 下層ページ共通デザイン(フェーズ2) — swell_child/assets/renewal-sub.css
   トップ(renewal.css)の配色・見出し・ボタンを、SWELLで作られた下層ページ本文に当てる。
   旧オレンジ系(style.css / 本文のインライン色)を青系に上書きする。 */

/* 共通パーツのラッパーはレイアウトに影響させない(sticky ヘッダーを効かせる) */
.rn.rn-part{display:contents}
#body_wrap{overflow:visible}

/* SWELL の配色変数を青系へ */
body,#body_wrap{
  --color_main:#0a2e8a; --color_htag:#0a2e8a; --color_link:#1876d2;
  --color_main_thin:rgba(46,155,232,.06); --color_main_dark:#071f5e;
  --color_list_num:#2e9be8; --color_list_check:#2e9be8; --color_faq_q:#0a2e8a; --color_faq_a:#2e9be8;
  --swl-font_family:"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}
body:not(.home) #body_wrap{font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;background:#fff;color:#333}
body:not(.home) .l-content{padding-top:0}

/* ページタイトル(上部) */
.l-topTitleArea,.c-pageTitle__wrap{background:#e6f3fe}
.l-topTitleArea{min-height:0;padding-block:40px}
.l-topTitleArea__img,.l-topTitleArea::before{display:none!important}
.l-topTitleArea .c-pageTitle,h1.c-pageTitle,.c-pageTitle{color:#0a2e8a!important;font-weight:800;letter-spacing:.06em;text-shadow:none}
.l-topTitleArea .c-pageTitle{font-size:clamp(22px,5vw,34px);text-align:center}
.c-pageTitle__subTitle{color:#2e9be8;opacity:1}
.p-breadcrumb{background:#fff}
.p-breadcrumb__text,.p-breadcrumb__text a{color:#555}

/* 本文フォント・見出し(旧 Zen Maru / 茶色 / オレンジ下線を置き換え) */
.post_content,.post_content h2,.post_content h3,.post_content h4,.swell-block-fullWide__inner h1,.font_maru,h4{font-family:inherit!important}
.swell-block-fullWide__inner h1{color:#0a2e8a!important;font-weight:800!important}
.font_maru{color:#0a2e8a}

/* h2: 紺文字+上の青ライン(トップの見出しと同じ型) */
body .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
h2.index_h2{
  background:none!important;color:#0a2e8a!important;text-align:center!important;font-weight:800!important;
  letter-spacing:.06em;border:0!important;border-radius:0!important;padding:16px 0 0!important;
  font-size:clamp(21px,4.4vw,30px)!important;line-height:1.5;margin:64px 0 28px!important;position:relative
}
body .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
h2.index_h2::before{
  content:""!important;display:block!important;position:static!important;width:44px!important;height:4px!important;
  margin:0 auto 12px!important;border:0!important;border-radius:2px;background:#2e9be8!important;transform:none!important
}
body .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::after,
h2.index_h2::after{display:none!important;content:none!important}

/* h3: 紺文字+左の青バー+薄い下線 */
body .post_content h3,body .post_content h3.index_h3_green{
  color:#0a2e8a!important;font-weight:800!important;border-bottom:2px solid #c9dcf0!important;
  padding:4px 0 10px 18px!important;font-size:clamp(18px,3.6vw,22px)!important;line-height:1.5
}
body .post_content h3::before,body .post_content h3.index_h3_green::before{
  content:""!important;position:absolute!important;left:0!important;top:6px!important;bottom:12px!important;
  width:5px!important;height:auto!important;border:0!important;border-radius:3px;background:#2e9be8!important;transform:none!important
}
body .post_content h3.index_h3{border-bottom:0!important;padding-left:0!important;font-size:clamp(20px,4vw,28px)!important}
body .post_content h3.index_h3::before{display:none!important}
body .post_content h4{color:#0a2e8a!important}

/* マーカー */
.swl-marker.mark_orange,.swl-marker.mark_yellow,.post_content mark{background:linear-gradient(transparent 62%,#f7dc4a 62%)!important}

/* 旧オレンジ・茶色・薄橙を青系へ(本文のインライン指定も含む) */
.has-swl-main-color{color:#0a2e8a!important}
.has-swl-main-background-color{background-color:#0a2e8a!important}
[style*="background-color:#f39900"],[style*="background-color:#F39900"],.title_green,.footer-menu-title{background-color:#0a2e8a!important;color:#fff}
[style*="color:#f39900"]:not([style*="background-color:#f39900"]),[style*="color:#8f4e13"]{color:#0a2e8a!important}
[style*="background-color:#fff8ed"],[style*="background-color:#ffd68f"],[style*="background-color:#fffec7"],[style*="background-color:#FFFEC7"]{background-color:#e6f3fe!important}
[style*="border-color:#f39900"],.jirei_wapper,.box_green{border-color:#bee0f8!important}
.bg_line{background:#e6f3fe!important}
.faq .swell-block-accordion__title{background:#e6f3fe!important;border-radius:12px}
.faq h4{color:#0a2e8a!important}
.cap_box_ttl{background:#0a2e8a!important;color:#fff!important;border-radius:14px 14px 0 0}
.cap_box_content{border-radius:0 0 14px 14px}
body .has-border,body div.has-background,body p.has-background,body img.radius,body .radius img,body .radius{border-radius:14px}

/* ボタン: 白地・紺枠・▶ のピル型(トップの .rn-btn と同じ型) */
.post_content .wp-block-button__link,.post_content .swell-block-button__link,.post_content .c-btn,.p-postList__more a,.c-pagination a{
  background:#fff!important;color:#0a2e8a!important;border:2px solid #0a2e8a!important;border-radius:999px!important;
  font-weight:700;box-shadow:none!important;padding:.7em 2.6em .7em 1.8em!important;position:relative;text-align:center!important;transition:background .2s,color .2s
}
.post_content .wp-block-button__link::after{content:"";position:absolute;right:1.1em;top:50%;margin-top:-5px;border:5px solid transparent;border-left:8px solid currentColor;border-right:0}
.post_content .wp-block-button__link:hover,.post_content .swell-block-button__link:hover{background:#0a2e8a!important;color:#fff!important}
.post_content .swell-block-button__link::before,.post_content .swell-block-button__link::after{border-color:currentColor}

/* テーブル */
.post_content table th{background:#e6f3fe!important;color:#0a2e8a;border-color:#c9dcf0!important}
.post_content table td{border-color:#c9dcf0!important}
.post_content thead th,.post_content thead td{background:#0a2e8a!important;color:#fff!important}

/* 画像・カード */
.post_content img{border-radius:10px}
.p-postList__thumb,.c-postThumb__figure{border-radius:10px;overflow:hidden}
.c-categoryList__link,.c-tagList__link{background:#2e9be8!important;color:#fff!important;border-radius:999px}
.p-postList__title{color:#0a2e8a}

/* お問い合わせフォーム */
.post_content input[type=submit],.wpcf7-submit,.mw_wp_form input[type=submit]{background:#0a2e8a!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:.9em 3em!important;font-weight:700}
.post_content input[type=text],.post_content input[type=email],.post_content input[type=tel],.post_content textarea,.post_content select{border:1px solid #c9dcf0;border-radius:8px;padding:.6em .8em}
.post_content input:focus,.post_content textarea:focus{outline:2px solid #2e9be8;outline-offset:1px}

/* SWELL標準の固定ボタン(ページトップ)を追従CTAと重ならない位置へ */
.p-fixBtnWrap{bottom:84px!important}
@media (min-width:768px){.p-fixBtnWrap{bottom:24px!important}}
/* 下層では .rn のpadding-bottom が効かないため、追従CTA分の余白を確保 */
@media (max-width:767px){body:not(.home) #body_wrap{padding-bottom:64px}}

/* 紺に置き換えた帯の中の見出し・文字は白 */
[style*="background-color:#f39900"] :is(h1,h2,h3,h4,p,span,a):not(.wp-block-button__link),
[style*="background-color:#f39900"] .swell-block-fullWide__inner h1{color:#fff!important}
[style*="background-color:#f39900"] h2::before{background:#2e9be8!important}
[style*="background-color:#f39900"] h3{border-bottom-color:rgba(255,255,255,.35)!important}

/* SWELL の注意/ポイント系アイコンボックスも青系へ */
body,#body_wrap{--color_icon_announce:#2e9be8;--color_icon_announce_bg:#eef6fd;--color_icon_point:#2e9be8;--color_icon_hatena:#0a2e8a}
[style*="background-color:#f39900"] h2{margin:0!important;padding:16px 8px 20px!important}

/* 許可証ギャラリー(会社概要) */
.rn-kyoka{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}
.rn-kyoka-item{margin:0;text-align:center}
.rn-kyoka-item img{width:100%;height:auto;border:1px solid #c9dcf0;border-radius:8px!important;box-shadow:0 3px 10px rgba(10,46,138,.08)}
.rn-kyoka-item figcaption{font-size:13px;font-weight:700;color:#0a2e8a;margin-top:6px}
.rn-kyoka-note{font-size:12px;color:#777;text-align:center;margin-top:8px}
.rn-kyoka-table td:nth-child(2){white-space:nowrap}
@media (min-width:768px){.rn-kyoka{grid-template-columns:repeat(4,1fr)}}
