@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ====================================================================
 * ihinseiri.area-matching-navi.com 全ページ共通 カスタマイズ CSS
 * （akiya v3 デザイン流用 — 色調・装飾は後で動的CSSで上書き可能）
 * ==================================================================== */


/* ============================================
 * 1. ヘッダーの境界線・影を削除
 * ============================================ */
.l-header,
.l-fixHeader {
    box-shadow: none !important;
    border-bottom: none !important;
}

/* SWELL ヘッダーのサイト名左の dot 装飾を削除
   （動的 CSS で .c-headLogo a::before に追加していたものを打ち消し） */
.l-header .c-headLogo a::before,
.l-fixHeader .c-headLogo a::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
}


/* ============================================
 * 2. PC ヘッダーの「LINEで相談する」を緑ボタン化（修正版）
 *    SWELL のメニュー高さに合わせ、丸角ボタンで安定表示
 * ============================================ */
.l-header__gnav .menu-line-btn {
    display: flex !important;
    align-items: center !important;
    margin: 0 12px 0 8px !important;
    height: auto !important;
}
.l-header__gnav .menu-line-btn > a {
    background: #06C755 !important;
    color: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 7px 18px !important;
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3) !important;
}
.l-header__gnav .menu-line-btn > a:hover {
    background: #05A847 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4) !important;
}
/* ::before の絵文字は削除 */
.l-header__gnav .menu-line-btn > a::before {
    content: none !important;
    display: none !important;
}


/* ============================================
 * 3. 追従ヘッダー（スクロール時に上部固定）専用：コンパクト版緑ボタン
 *    スコープ: .l-fixHeader__gnav のみ
 *    PC ヘッダーよりサイズ・余白を小さくしてスマートに
 * ============================================ */
.l-fixHeader__gnav .menu-line-btn {
    display: flex !important;
    align-items: center !important;
    margin-left: 8px !important;
    margin-right: 4px !important;
    height: auto !important;
}
.l-fixHeader__gnav .menu-line-btn > a {
    background: #06C755 !important;
    color: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 4px 14px !important;
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3) !important;
}
.l-fixHeader__gnav .menu-line-btn > a:hover {
    background: #05A847 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(6, 199, 85, 0.4) !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-bottom: none !important;
}
/* LINE ボタンに SWELL の hover 下線が出ないように打ち消し（ボタン形状なので下線不要） */
.l-fixHeader__gnav .menu-line-btn > a::after,
.l-fixHeader__gnav .menu-line-btn > a:hover::after,
.l-header__gnav .menu-line-btn > a::after,
.l-header__gnav .menu-line-btn > a:hover::after {
    display: none !important;
    content: none !important;
}
/* 追従ヘッダーも絵文字なし */
.l-fixHeader__gnav .menu-line-btn > a::before {
    content: none !important;
    display: none !important;
}

/* スマホ開閉メニュー（.p-spMenu）・フッターメニュー（.l-footer__nav）には
   CSS を一切当てない → SWELL のデフォルトスタイルそのまま */


/* ============================================
 * 4. フッター背景色をヘッダー・ヒーローと同色 #1E3A5F に統一
 * ============================================ */
.l-footer,
.l-footer__foot {
    background: #1E3A5F !important;
    border-top: none !important;
}
.l-footer__widgetArea {
    background: #1E3A5F !important;
}


/* ============================================
 * 5. フッターの余白縮小（メニュー表示モード）
 * ============================================ */
.l-footer {
    padding-top: 24px !important;
    padding-bottom: 8px !important;
}
.l-footer__nav {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
    margin: 0 !important;
}
.l-footer__foot {
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}
.copyright {
    margin: 0 !important;
    padding: 4px 0 !important;
}
.l-footer__widgetArea:empty {
    display: none !important;
}


/* ============================================
 * 6. 見出し装飾色をメインカラー（藍）に統一
 *    SWELL の --color_htag 変数だけ上書きする最小限の修正。
 *    文字色は SWELL のデフォルト自動判定に任せる
 *    （塗りスタイルなら白、線スタイルなら藍テキストに自動なる）
 * ============================================ */
:root {
    --color_htag: #1E3A5F !important;
}


/* ============================================
 * 7. SWELL ブロック間の余白縮小（読みやすさ向上）
 * ============================================ */
/* 空段落は非表示 */
.post_content p:empty,
.post_content .wp-block-paragraph:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* CAPBOX 内の余白を最小化 */
.post_content .swell-block-capbox .cap_box_content {
    padding: 12px 18px !important;
}
.post_content .swell-block-capbox .cap_box_content > p {
    margin: 6px 0 !important;
}
.post_content .swell-block-capbox .cap_box_content > p:first-child {
    margin-top: 0 !important;
}
.post_content .swell-block-capbox .cap_box_content > p:last-child {
    margin-bottom: 0 !important;
}
.post_content .swell-block-capbox .cap_box_content ul,
.post_content .swell-block-capbox .cap_box_content ol {
    margin: 4px 0 !important;
    padding-left: 22px !important;
}
.post_content .swell-block-capbox .cap_box_content li {
    margin: 4px 0 !important;
    line-height: 1.7 !important;
}
/* CAPBOX 自体の上下マージン縮小 */
.post_content .swell-block-capbox {
    margin: 18px 0 !important;
}
/* CAPBOX 連続時の隣接ボックスの間も詰める */
.post_content .swell-block-capbox + .swell-block-capbox {
    margin-top: 12px !important;
}
/* STEP ブロック内の各アイテム間 */
.post_content .swell-block-step {
    margin: 18px 0 !important;
}
.post_content .swell-block-step__item {
    margin-bottom: 12px !important;
}
.post_content .swell-block-step__title,
.post_content .swell-block-step__label {
    margin-bottom: 4px !important;
}
.post_content .swell-block-step__content > p {
    margin: 4px 0 !important;
}
/* SWELL_INFO / SWELL_CAUTION などのアラートグループ内も詰める */
.post_content .wp-block-group > p {
    margin: 6px 0 !important;
}


/* ============================================
 * 8. CAPBOX タイトルの可視性確保
 *    （SWELL デフォルトと干渉して白文字 on 白背景になる対策）
 * ============================================ */
/* GOOD CAPBOX：藍背景に白文字 */
.post_content .swell-block-capbox.cap_good .cap_box_ttl {
    background-color: #1E3A5F !important;
    color: #FFFFFF !important;
}
.post_content .swell-block-capbox.cap_good .cap_box_ttl > span,
.post_content .swell-block-capbox.cap_good .cap_box_ttl::before {
    color: #FFFFFF !important;
}
/* BAD CAPBOX：赤背景に白文字 */
.post_content .swell-block-capbox.cap_bad .cap_box_ttl {
    background-color: #C44C3C !important;
    color: #FFFFFF !important;
}
.post_content .swell-block-capbox.cap_bad .cap_box_ttl > span,
.post_content .swell-block-capbox.cap_bad .cap_box_ttl::before {
    color: #FFFFFF !important;
}
/* WARNING (orange) などその他のスタイルも保険で */
.post_content .swell-block-capbox.cap_warning .cap_box_ttl {
    background-color: #E67E3F !important;
    color: #FFFFFF !important;
}
.post_content .swell-block-capbox.cap_warning .cap_box_ttl > span {
    color: #FFFFFF !important;
}


/* ============================================
 * 9. フッターの文字色を白に統一（背景藍に対するコントラスト確保）
 *    SWELL のデフォルトでは text-sub 色がうっすら見えにくいため
 * ============================================ */
.l-footer,
.l-footer * {
    color: #FFFFFF !important;
}
.l-footer a {
    color: #FFFFFF !important;
    text-decoration: none !important;
}
.l-footer a:hover {
    color: #E2A488 !important;
    text-decoration: underline !important;
}
.copyright,
.copyright * {
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ============================================
 * 10. LINE ボタン (wp-block-button__link) のテキスト色を白に強制
 *     SWELL のデフォルト link 色 (赤系) を完全上書きするため
 *     :link / :visited / :hover / :active 全状態 + 高 specificity
 * ============================================ */
body .post_content .wp-block-button__link,
body .post_content a.wp-block-button__link,
body .post_content a.wp-block-button__link:link,
body .post_content a.wp-block-button__link:visited,
body .post_content a.wp-block-button__link:hover,
body .post_content a.wp-block-button__link:active,
body .post_content a.wp-block-button__link:focus,
body a.wp-block-button__link,
body a.wp-block-button__link:link,
body a.wp-block-button__link:visited,
body a.wp-block-button__link:hover,
body a.wp-block-button__link:active,
body .entry-content a.wp-block-button__link,
body .entry-content a.wp-block-button__link:link,
body .entry-content a.wp-block-button__link:visited,
body .entry-content a.wp-block-button__link:hover {
    color: #FFFFFF !important;
    text-decoration: none !important;
    background-color: #06C755 !important;
}
/* 念のため、style 属性付きのインライン LINE ボタンも上書き */
body a.wp-block-button__link[href*="area-matching-navi.com/line"],
body a.wp-block-button__link[href*="area-matching-navi.com/line"]:link,
body a.wp-block-button__link[href*="area-matching-navi.com/line"]:visited,
body a.wp-block-button__link[href*="area-matching-navi.com/line"]:hover {
    color: #FFFFFF !important;
    background-color: #06C755 !important;
}


/* ============================================
 * 12. 個別ページ (TOP 以外) を「カード風」レイアウトに
 *     PC で左右余白がただの空白で寂しい問題への対策
 *     SWELL の実構造: <main class="l-mainContent l-article"> >
 *                    <div class="l-mainContent__inner"> >
 *                    <h1.c-pageTitle> + <div.post_content>
 *
 *     重要 (2026-05-31 第51弾):
 *       SWELL の body には class が出力されない (`<body>` だけ) ことが判明。
 *       なので `body.page:not(.home)` セレクタは効かない。
 *       代わりに `.l-mainContent` の有無で判別する。
 *       TOP は page-home.php (独自構造) で .l-mainContent を持たない → 影響なし。
 *       FAQ/藤本/その他通常ページは l-mainContent.l-article 構造 → 適用される。
 *
 *     c-pageTitle の data-style="b_bottom" 属性も対応 (SWELL の見出しプリセット)
 * ============================================ */
/* --- SWELL b_bottom の「打ち消し線」を根絶 (2026-05-31 第52弾) ---
 * SWELL の素の仕組み:
 *   .c-pageTitle (h1)             → 全幅 border-bottom (薄グレー)
 *   .c-pageTitle__inner (テキスト) → float:left + 自前 border-bottom
 *   .c-pageTitle::after           → clear:both の clearfix (float 解除用)
 * 第51弾で ::after を朱アクセントに上書きした結果、clearfix が消滅 →
 * float したテキストで親 h1 の高さが 0 に潰れ、全幅下線がテキストの
 * 中央を貫通 = 打ち消し線に見えていた。
 * 対策: __inner の float と自前ボーダーを解除し、通常フローに戻す。
 * これは PC/SP 共通の根本対策なので @media の外に置く。 */
.l-mainContent.l-article .l-mainContent__inner .c-pageTitle__inner {
    float: none !important;
    display: block !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 1024px) {
    /* メインコンテンツ周辺: warm グラデ背景 (カード周りを彩る) */
    .l-mainContent.l-article {
        background-color: #EFE4D2 !important;
        background-image: linear-gradient(135deg, #EFE4D2 0%, #F8F4ED 50%, #EFE4D2 100%) !important;
        padding: 30px 20px 50px !important;
    }
    /* breadcrumb は背景に溶かす */
    .l-mainContent.l-article #breadcrumb {
        background: transparent !important;
    }
    /* メインコンテンツのカード化 */
    .l-mainContent.l-article .l-mainContent__inner {
        background: white !important;
        max-width: 920px !important;
        margin: 0 auto !important;
        padding: 60px 70px !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15),
                    0 2px 8px rgba(30, 58, 95, 0.08) !important;
    }
    /* c-pageTitle (ページ見出し h1) もカード内で整理 */
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle,
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"] {
        margin: 0 0 30px !important;
        padding: 0 0 20px !important;
        border-bottom: 2px solid #1E3A5F !important;
        position: relative !important;
        background: transparent !important;
        color: #1E3A5F !important;
        overflow: visible !important;
    }
    /* 朱アクセント (clearfix の visibility:hidden を visible で打ち消す) */
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle::after,
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"]::after {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        bottom: -2px !important;
        top: auto !important;
        width: 100px !important;
        height: 3px !important;
        background: #C44C3C !important;
        display: block !important;
        visibility: visible !important;
        clear: none !important;
    }
    /* SWELL の data-style="b_bottom" が生成する独自 underline を消す (干渉防止) */
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"]::before {
        content: none !important;
        display: none !important;
    }
}
/* SP / Tablet では padding を控えめに */
@media (max-width: 1023px) {
    .l-mainContent.l-article .l-mainContent__inner {
        padding: 0 !important;
    }
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle,
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"] {
        position: relative !important;
        background: transparent !important;
        color: #1E3A5F !important;
        border-bottom: 2px solid #1E3A5F !important;
        padding: 0 0 16px !important;
        margin: 0 0 20px !important;
        overflow: visible !important;
    }
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle::after,
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"]::after {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        bottom: -2px !important;
        top: auto !important;
        width: 80px !important;
        height: 3px !important;
        background: #C44C3C !important;
        display: block !important;
        visibility: visible !important;
        clear: none !important;
    }
    .l-mainContent.l-article .l-mainContent__inner .c-pageTitle[data-style="b_bottom"]::before {
        content: none !important;
        display: none !important;
    }
}

/* ============================================
 * 13. h2 セクションアイコン (SVG リッチアイコン用スタイル)
 * ============================================ */
.post_content h2 .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(196, 76, 60, 0.10) 0%, rgba(196, 76, 60, 0.20) 100%);
    border-radius: 10px;
    color: #8E4F35;
    margin-right: 12px;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.post_content h2 .section-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.post_content h2 {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
}

/* ============================================
 * 14. 記事ヘッダー画像 (各ページのアイキャッチ)
 * ============================================ */
.post_content .article-hero {
    margin: 0 -70px 36px !important;
    height: 280px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
}
/* SP/Tablet: padding がない時はマージンも不要 */
@media (max-width: 1023px) {
    .post_content .article-hero {
        margin: 0 0 28px !important;
        border-radius: 8px !important;
    }
}
.post_content .article-hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%) !important;
}
.post_content .article-hero .hero-title {
    position: absolute !important;
    bottom: 30px !important;
    left: 40px !important;
    right: 40px !important;
    color: white !important;
    font-family: 'Noto Serif JP', serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    z-index: 2 !important;
}
.post_content .section-image {
    width: 100% !important;
    height: 200px !important;
    margin: 24px 0 32px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
@media (max-width: 768px) {
    .post_content .article-hero {
        margin: 0 -16px 28px !important;
        height: 200px !important;
    }
    .post_content .article-hero .hero-title {
        font-size: 22px !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
    }
    .post_content .section-image {
        height: 160px !important;
        margin: 18px 0 24px !important;
    }
    .post_content h2 .section-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    .post_content h2 .section-icon svg {
        width: 18px;
        height: 18px;
    }
}


/* ============================================
 * 11. 個別記事ページのコンテンツ装飾強化 (Phase 2)
 *     .post_content の h2/h3/段落/リスト/リンクをエレガントに
 * ============================================ */

/* h2: 藍下線 + 朱アクセント (page-home.php の section-heading 風)
   SWELL の h2 ブロックデザイン (ブラウン背景等) を完全上書きするため
   background-* 系を全て透明化 */
.post_content > h2,
.post_content h2,
.entry-content > h2,
.entry-content h2,
.l-mainContent h2:not(.swell-block-faq__item h2):not(.swell-block-capbox h2) {
    font-family: 'Noto Serif JP', 'Yu Mincho', serif !important;
    font-size: 28px !important;
    line-height: 1.5 !important;
    color: #1E3A5F !important;
    margin: 56px 0 22px !important;
    padding: 0 0 14px 0 !important;
    border: none !important;
    border-bottom: 2px solid #1E3A5F !important;
    position: relative !important;
    font-weight: 700 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}
.post_content > h2::before,
.post_content h2::before,
.entry-content h2::before {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-image: none !important;
}
.post_content > h2::after,
.post_content h2::after,
.entry-content h2::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -2px !important;
    width: 90px !important;
    height: 3px !important;
    background: #C44C3C !important;
    border: none !important;
    display: block !important;
}

/* h3: 朱の左ボーダー */
.post_content > h3 {
    font-size: 20px !important;
    color: #1E3A5F !important;
    border-left: 5px solid #C44C3C !important;
    padding-left: 14px !important;
    margin: 36px 0 16px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, rgba(196, 76, 60, 0.06) 0%, transparent 60%) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* 段落: 読みやすく */
.post_content > p {
    line-height: 1.95 !important;
    font-size: 16px !important;
    margin-bottom: 18px !important;
    color: #3A2A1F !important;
}
.post_content > p:first-of-type {
    font-size: 17px !important;
    line-height: 2 !important;
}

/* strong: 藍 + 微マーカー */
.post_content > p strong,
.post_content > ul strong,
.post_content > ol strong {
    color: #1E3A5F !important;
    font-weight: 700 !important;
    background: linear-gradient(transparent 62%, rgba(196, 76, 60, 0.18) 62%) !important;
    padding: 0 2px !important;
}

/* リスト: 見やすい行間 */
.post_content > ul,
.post_content > ol {
    margin: 18px 0 !important;
    padding-left: 30px !important;
}
.post_content > ul > li,
.post_content > ol > li {
    line-height: 1.9 !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

/* 本文リンク: 朱 + 下線 */
.post_content > p a:not(.wp-block-button__link):not(.btn-line-primary):not(.chat-line-cta),
.post_content > ul a:not(.wp-block-button__link),
.post_content > ol a:not(.wp-block-button__link) {
    color: #8E4F35 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1.5px !important;
}
.post_content > p a:hover:not(.wp-block-button__link) {
    color: #C44C3C !important;
}

/* 引用 (blockquote) スタイル */
.post_content > blockquote {
    border-left: 4px solid #1E3A5F !important;
    background: #F8F4ED !important;
    padding: 18px 22px !important;
    margin: 24px 0 !important;
    font-style: normal !important;
    color: #3A2A1F !important;
    line-height: 1.85 !important;
}

/* テーブル装飾 */
.post_content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    border: 1px solid #E5DCCE !important;
}
.post_content table th {
    background: #1E3A5F !important;
    color: #FFFFFF !important;
    padding: 12px 14px !important;
    text-align: left !important;
    font-weight: 700 !important;
    border: 1px solid #1E3A5F !important;
}
.post_content table td {
    padding: 12px 14px !important;
    border: 1px solid #E5DCCE !important;
    line-height: 1.7 !important;
}
.post_content table tr:nth-child(even) td {
    background: #F8F4ED !important;
}

/* 画像にやさしい影 */
.post_content img,
.post_content .wp-block-image img {
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* SP 調整 */
@media (max-width: 768px) {
    .post_content > h2 {
        font-size: 22px !important;
        margin: 40px 0 18px !important;
    }
    .post_content > h3 {
        font-size: 17px !important;
        margin: 28px 0 12px !important;
    }
    .post_content > p,
    .post_content > ul > li,
    .post_content > ol > li {
        font-size: 15px !important;
    }
}
