/*
Theme Name: XWRITE child
Version: 1.0.0
Template: xwrite
*/



/*
========================================
屋根修理業者比較サイト
CSS作成方針・ルール
========================================

【ターゲットユーザー】
- 30〜60代の戸建て所有者
- 急いで業者を探している
- スマホメインで閲覧
- シンプルで分かりやすいデザインを好む

【デザインコンセプト】
「余計なものを削ぎ落とした、使いやすいフラットデザイン」
- グラデーション禁止
- シャドウはボタンのみ（押せることを示すため）
- 角丸は控えめに（4px程度）
- アニメーションは最小限
- 線は細く、色は薄く

【1. 基本方針】
- フラットデザイン徹底
- 余白で見やすさを作る
- 色数は最小限
- 太字は重要な部分だけ
- AIっぽい過剰な装飾は排除

【2. カラーパレット】
メインカラー: #1d87c4 （信頼感のある青）
アクセントカラー: #ffd500 （注目を集める黄色）
テキスト色: #333333 （読みやすい濃いグレー）

派生色:
- メインカラー（明）: #4da3d4
- メインカラー（暗）: #1567a4
- アクセントカラー（明）: #ffe140
- アクセントカラー（暗）: #e6c000
- テキスト色（薄）: #666666
- テキスト色（最薄）: #999999

【3. シンプルなファイル構成】
css/
├── reset.css     # リセット
├── base.css      # 基本スタイル
├── parts.css     # ボタンとかカードとか
├── layout.css    # レイアウト
└── style.css     # まとめ

複雑にしない。これで十分。

【4. クラス名ルール】
■ シンプルに
.btn（ボタン）
.card（カード）
.tag（タグ）
.filter（フィルター）
.list（リスト）

■ 状態
.active（アクティブ）
.disabled（無効）

■ 色とか
.primary（メイン色）
.accent（アクセント色）

BEMとか接頭辞とか、長くなるなら使わない。

【5. CSS変数定義】
■ 必須変数
:root {
  /* カラー */
  --color-primary: #1d87c4;
  --color-accent: #ffd500;
  --color-text: #333333;
  
  /* フォント */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", sans-serif;
  --font-size-base: 16px;
  
  /* スペーシング（8の倍数） */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1);    /* 8px */
  --space-sm: calc(var(--space-unit) * 2);    /* 16px */
  --space-md: calc(var(--space-unit) * 3);    /* 24px */
  --space-lg: calc(var(--space-unit) * 4);    /* 32px */
  --space-xl: calc(var(--space-unit) * 6);    /* 48px */
  
  /* その他 */
  --radius-base: 4px;
  --transition-base: all 0.3s ease;
}

【6. レスポンシブ設計】
■ ブレークポイント
--bp-sm: 576px;   /* スマートフォン（横向き） */
--bp-md: 768px;   /* タブレット */
--bp-lg: 992px;   /* デスクトップ */
--bp-xl: 1200px;  /* 大画面 */

■ メディアクエリの記述順
/* モバイルファースト */
.element { /* モバイル用スタイル */ }
@media (min-width: 768px) { /* タブレット以上 */ }
@media (min-width: 992px) { /* デスクトップ以上 */ }

【7. フラットデザインの鉄則】
■ やること
- 背景は白かごく薄いグレー（#f5f5f5まで）
- 線は細く薄く（1px、#e0e0e0くらい）
- 余白たっぷり
- フォントサイズは大きめ（最小14px）
- 色は3色まで

■ やらないこと
- グラデーション
- 影（ボタン以外）
- 太い線
- 濃い背景色
- 装飾的なアイコン
- ごちゃごちゃしたレイアウト

【8. ボタンデザイン】
/* シンプルなボタン */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.primary {
  background: #1d87c4;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn.primary:hover {
  background: #1567a4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

【9. カードデザイン】
/* フラットなカード */
.card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 24px;
}

/* 影は使わない。線で区切る */

【10. 禁止事項】
- text-shadow
- box-shadow（ボタン以外）
- gradient
- transform: rotate()とか凝った動き
- ::beforeや::afterでの装飾
- 画像での装飾
- 派手なhoverエフェクト
- 余計な背景色（薄いグレー #f5f5f5, #f9f9f9 など）の使用

とにかくシンプルに。情報が主役。


【11. テーマとの干渉対策】
■ 独自クラス名プレフィックスを使用
テーマのCSSと干渉を避けるため、各セクションで独自のプレフィックスを使用する。

- ファーストビュー → .fv- （first view）
- 比較表 → .comp- （comparison）
- 失敗例 → .fail- （failure）
- 診断ツール → .diag- （diagnosis）
- 絞り込み検索 → .filter- （filter）
- カード表示 → .card-list- （card list）

■ 共通クラス名は避ける
- .section-title → .fv-title, .comp-title など
- .container はそのまま使用可（汎用的なため）
- .btn → .fv-btn, .comp-btn など必要に応じて

■ リセット方法
必要に応じて各セクション内で部分的にリセット：
.fv-section * {
    /* 必要最小限のリセット */
}

これにより、テーマのスタイルの影響を最小限に抑える。
*/


/* ========================================
   固定ページの見出しを完全リセット（より強力版）
========================================== */
/* articleBody内の見出しも含めて完全リセット */
.page .articleBody h1,
.page .articleBody h2,
.page .articleBody h3,
.page .articleBody h4,
.page .articleBody h5,
.page .articleBody h6,
.page .main h1,
.page .main h2,
.page .main h3,
.page .main h4,
.page .main h5,
.page .main h6,
.page h1:not(.articleHeader__title),
.page h2:not(.articleHeader__title),
.page h3:not(.articleHeader__title),
.page h4:not(.articleHeader__title),
.page h5:not(.articleHeader__title),
.page h6:not(.articleHeader__title) {
    /* テーマの見出しスタイルを完全リセット */
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    background-image: none !important;
    color: #333 !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* 各見出しのフォントサイズを再定義 */
.page .articleBody h1,
.page .main h1:not(.articleHeader__title) {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    margin-top: 32px !important;
}

.page .articleBody h2,
.page .main h2 {
    font-size: 24px !important;
    margin-bottom: 16px !important;
    margin-top: 28px !important;
}

.page .articleBody h3,
.page .main h3 {
    font-size: 20px !important;
    margin-bottom: 14px !important;
    margin-top: 24px !important;
}

.page .articleBody h4,
.page .main h4 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
    margin-top: 20px !important;
}

.page .articleBody h5,
.page .main h5 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    margin-top: 16px !important;
}

.page .articleBody h6,
.page .main h6 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    margin-top: 12px !important;
}

/* 疑似要素も完全リセット */
.page .articleBody h1::before,
.page .articleBody h1::after,
.page .articleBody h2::before,
.page .articleBody h2::after,
.page .articleBody h3::before,
.page .articleBody h3::after,
.page .articleBody h4::before,
.page .articleBody h4::after,
.page .articleBody h5::before,
.page .articleBody h5::after,
.page .articleBody h6::before,
.page .articleBody h6::after,
.page .main h1::before,
.page .main h1::after,
.page .main h2::before,
.page .main h2::after,
.page .main h3::before,
.page .main h3::after,
.page .main h4::before,
.page .main h4::after,
.page .main h5::before,
.page .main h5::after,
.page .main h6::before,
.page .main h6::after {
    content: none !important;
    display: none !important;
}

/* is-style系のクラスもリセット */
.page [class*="is-style-heading"] {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
}




/* ========================================
   固定ページのタイトルを非表示
========================================== */
/* トップページのタイトルを非表示 */
.page-id-2 .articleHeader {
    display: none !important;
}

/* ファーストビューの上部余白を調整 */
.page-id-2 .fv-section {
    padding-top: 20px !important; /* 上部の余白を減らす */
}

/* メインコンテンツの上部余白も調整 */
.page-id-2 .main {
    padding-top: 0 !important;
}

.page-id-2 .articleContainer {
    margin-top: 0 !important;
}




/* ========================================
   ファーストビュー用CSS（独自クラス版）
======================================== */

/* セクション */
.fv-section {
    padding: 30px 0 50px !important;
    background: #ffffff !important;
}

.fv-content {
    text-align: center !important;
}

/* 緊急バッジ */
.fv-emergency {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #fff3f3 !important;
    border: 1px solid #ff6b6b !important;
    color: #ff6b6b !important;
    padding: 8px 20px !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
}

.fv-emergency-icon {
    font-size: 18px !important;
}

/* タイトル */
.fv-title {
    font-size: 32px !important;
    line-height: 1.4 !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.fv-title-highlight {
    font-size: 52px !important;
    color: #1d87c4 !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    display: inline-block !important;
    position: relative !important;
}

.fv-title-highlight::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: #ffd500 !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
}

.fv-title-accent {
    color: #1d87c4 !important;
    font-size: 28px !important;
    display: inline-block !important;
    margin-top: 8px !important;
}

/* サブタイトル */
.fv-subtitle {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #666 !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
}

/* ビジュアル */
.fv-visual {
    max-width: 600px !important;
    margin: 0 auto 28px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

.fv-visual img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ボタン */
.fv-actions {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 40px !important;
}

.fv-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
}

.fv-btn-primary {
    background-color: #1d87c4 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(29, 135, 196, 0.3) !important;
}

.fv-btn-primary:hover {
    background-color: #1567a4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(29, 135, 196, 0.4) !important;
}

.fv-btn-outline {
    background-color: white !important;
    color: #1d87c4 !important;
    border: 2px solid #1d87c4 !important;
}

.fv-btn-outline:hover {
    background-color: #f0f8ff !important;
    border-color: #1567a4 !important;
}

.fv-btn-icon {
    font-size: 20px !important;
}

/* 信頼指標 */
.fv-trust {
    display: flex !important;
    gap: 40px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.fv-trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.fv-trust-number {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: #1d87c4 !important;
}

.fv-trust-label {
    font-size: 14px !important;
    color: #666 !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fv-section {
        padding: 24px 0 40px !important;
    }
    
    .fv-title {
        font-size: 24px !important;
    }
    
    .fv-title-highlight {
        font-size: 36px !important;
    }
    
    .fv-title-accent {
        font-size: 22px !important;
    }
    
    .fv-subtitle {
        font-size: 15px !important;
        margin-bottom: 24px !important;
    }
    
    .fv-visual {
        margin-bottom: 24px !important;
    }
    
    .fv-actions {
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 32px !important;
    }
    
    .fv-btn {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
    }
    
    .fv-trust {
        gap: 24px !important;
    }
    
    .fv-trust-number {
        font-size: 24px !important;
    }
    
    .fv-trust-label {
        font-size: 12px !important;
    }
}



/* ========================================
   比較表CSS（独自クラス版）
======================================== */

.comp-section {
    padding: 60px 0 !important;
    background-color: #ffffff !important;
}

.comp-title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.comp-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

/* 比較表ラッパー */
.comp-wrapper {
    background: white !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 比較表本体 */
.comp-table {
    width: 100% !important;
    min-width: 700px !important;
    border-collapse: collapse !important;
}

.comp-table th,
.comp-table td {
    padding: 10px 8px !important;
    text-align: center !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
}

.comp-table th {
    background-color: #f9f9f9 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    color: #333 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* 固定カラム（サービス名） */
.comp-fixed-column {
    position: sticky !important;
    left: 0 !important;
    background-color: white !important;
    z-index: 5 !important;
    min-width: 150px !important;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05) !important;
    text-align: left !important;
}

/* 並び替えボタン */
.comp-sort-btn {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin-left: 8px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #f9f9f9 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    border-radius: 2px !important;
    transition: all 0.2s !important;
}

.comp-sort-btn:hover {
    background-color: #1d87c4 !important;
    color: white !important;
    border-color: #1d87c4 !important;
}

thead .comp-fixed-column {
    background-color: #f9f9f9 !important;
    z-index: 11 !important;
}

.comp-service-name {
    font-weight: bold !important;
    font-size: 14px !important;
    margin-bottom: 2px !important;
}

.comp-service-name a {
    color: #1d87c4 !important;
    text-decoration: none !important;
}

.comp-service-name a:hover {
    text-decoration: underline !important;
}

.comp-service-type {
    font-size: 12px !important;
    color: #666 !important;
}

/* アイコン */
.comp-icon-best, 
.comp-icon-good, 
.comp-icon-fair, 
.comp-icon-none {
    font-weight: bold !important;
    font-size: 18px !important;
    display: inline !important;
    margin-right: 4px !important;
}

.comp-icon-best {
    color: #ff4757 !important;
}

.comp-icon-good {
    color: #ffa502 !important;
}

.comp-icon-fair {
    color: #26de81 !important;
}

.comp-icon-none {
    color: #54a0ff !important;
}

/* ボタン */
.comp-btn-small {
    display: inline-block !important;
    padding: 8px 20px !important;
    background-color: #1d87c4 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    transition: all 0.2s !important;
}

.comp-btn-small:hover {
    background-color: #1567a4 !important;
    color: white !important;
}

/* 注記 */
.comp-note {
    margin-top: 16px !important;
    text-align: center !important;
}

.comp-note p {
    font-size: 12px !important;
    color: #999 !important;
    margin: 0 !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comp-section {
        padding: 40px 0 !important;
    }
    
    .comp-title {
        font-size: 24px !important;
        margin-bottom: 4px !important;
    }
    
    .comp-subtitle {
        font-size: 12px !important;
        margin-bottom: 24px !important;
    }
    
    .comp-table th,
    .comp-table td {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .comp-fixed-column {
        min-width: 120px !important;
    }
    
    .comp-service-name {
        font-size: 14px !important;
    }
    
    .comp-service-type {
        font-size: 11px !important;
    }
    
    /* スクロールヒント */
    .comp-wrapper {
        position: relative !important;
    }
    
    .comp-wrapper:after {
        content: "→" !important;
        position: absolute !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 24px !important;
        color: #1d87c4 !important;
        opacity: 0.5 !important;
        pointer-events: none !important;
        animation: scroll-hint 1.5s ease-in-out infinite !important;
    }
    
    @keyframes scroll-hint {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(5px); }
    }
}



/* ========================================
   失敗例CSS（独自クラス版）
======================================== */

.fail-section {
    padding: 60px 0 !important;
    background: #ffffff !important;
}

/* メインタイトル */
.fail-main-title {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.fail-main-desc {
    font-size: 14px !important;
    color: #666 !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

/* ラッパー */
.fail-wrapper {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 失敗アイテム */
.fail-item {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.fail-badge {
    display: inline-block !important;
    background: #ff4757 !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
}

.fail-name {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* ストーリー部分 */
.fail-story {
    margin-bottom: 20px !important;
}

.fail-story p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #666 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

.fail-result {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #fff3f3 !important;
    border-left: 3px solid #ff4757 !important;
    padding: 12px 16px !important;
}

.fail-emoji {
    font-size: 24px !important;
    flex-shrink: 0 !important;
}

.fail-result p {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #d32f2f !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 教訓部分 */
.fail-lesson {
    background: #f0f8ff !important;
    border-radius: 4px !important;
    padding: 16px !important;
}

.fail-lesson h4 {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #1d87c4 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.fail-lesson p {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .fail-section {
        padding: 40px 0 !important;
    }
    
    .fail-main-title {
        font-size: 24px !important;
    }
    
    .fail-item {
        padding: 20px 16px !important;
    }
    
    .fail-name {
        font-size: 16px !important;
    }
    
    .fail-story p {
        font-size: 13px !important;
    }
}




/* ========================================
   診断ツールCSS（独自クラス版）
======================================== */

/* セクション */
.diag-section {
    padding: 60px 0 !important;
    background-color: #ffffff !important;
}

/* タイトル */
.diag-main-title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
}

.diag-main-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

/* 診断フォーム */
.diag-form {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 質問ブロック */
.diag-question-block {
    display: none !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 32px !important;
}

.diag-question-block.active {
    display: block !important;
}

.diag-question-header {
    margin-bottom: 24px !important;
}

.diag-question-number {
    display: inline-block !important;
    color: #999 !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

.diag-question-title {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 回答オプション */
.diag-answer-options {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

.diag-answer-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.diag-answer-btn:hover {
    border-color: #1d87c4 !important;
}

.diag-answer-icon {
    font-size: 24px !important;
    flex-shrink: 0 !important;
}

.diag-answer-text {
    color: #333 !important;
}

/* プログレスバー */
.diag-progress-bar {
    max-width: 800px !important;
    height: 2px !important;
    background: #e0e0e0 !important;
    margin: 24px auto 0 !important;
}

.diag-progress-fill {
    height: 100% !important;
    background: #1d87c4 !important;
    width: 33.33% !important;
    transition: width 0.3s !important;
}

/* 診断結果 */
.diag-result {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.diag-result-header {
    text-align: center !important;
    margin-bottom: 32px !important;
}

.diag-result-badge {
    display: inline-block !important;
    background: #ffd500 !important;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 8px !important;
}

.diag-result-title {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* おすすめサービス */
.diag-recommended-service {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 32px !important;
    text-align: center !important;
}

.diag-service-name {
    font-size: 28px !important;
    font-weight: bold !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.diag-service-name a {
    color: #1d87c4 !important;
    text-decoration: none !important;
}

.diag-service-name a:hover {
    text-decoration: underline !important;
}

.diag-service-type {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

.diag-service-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

/* マッチ理由 */
.diag-match-reasons {
    display: block !important;
    background: #f0f8ff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 20px !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

.diag-match-reasons h5 {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.diag-match-reasons ul {
    display: block !important;
    margin: 0 !important;
    padding-left: 20px !important;
    list-style: disc !important;
}

.diag-match-reasons li {
    display: list-item !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    list-style-type: disc !important;
}

.diag-match-reasons li:last-child {
    margin-bottom: 0 !important;
}

/* ボタン */
.diag-btn {
    display: inline-block !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}

.diag-btn-primary {
    background-color: #1d87c4 !important;
    color: white !important;
    border: none !important;
}

.diag-btn-primary:hover {
    background-color: #1567a4 !important;
    color: white !important;
}

/* 結果フッター */
.diag-result-footer {
    text-align: center !important;
    margin-top: 16px !important;
}

.diag-reset-link {
    background: none !important;
    border: none !important;
    color: #666 !important;
    font-size: 13px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.diag-reset-link:hover {
    color: #1d87c4 !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .diag-section {
        padding: 40px 0 !important;
    }
    
    .diag-main-title {
        font-size: 24px !important;
    }
    
    .diag-main-subtitle {
        font-size: 12px !important;
        margin-bottom: 24px !important;
    }
    
    .diag-question-block {
        padding: 24px 16px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .diag-question-title {
        font-size: 18px !important;
    }
    
    .diag-answer-options {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .diag-answer-btn {
        font-size: 14px !important;
        padding: 14px !important;
    }
    
    .diag-answer-icon {
        font-size: 20px !important;
    }
    
    .diag-result-title {
        font-size: 20px !important;
    }
    
    .diag-recommended-service {
        padding: 24px 16px !important;
    }
    
    .diag-service-name {
        font-size: 24px !important;
    }
    
    .diag-btn {
        width: 100% !important;
    }
}


/* =====================================================
   絞り込み検索セクション
   プレフィックス: .filter-
===================================================== */

/* セクション */
.filter-section {
    padding: 48px 0;
    background-color: #ffffff;
}

/* コンテナ */
.filter-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* セクションタイトル */
.filter-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 32px;
}

/* フィルターコンテナ */
.filter-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 32px;
    margin-bottom: 32px;
}

/* フィルターグループ */
.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
}

/* フィルターボタン */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: #1d87c4;
    color: #1d87c4;
}

.filter-btn.active {
    background-color: #1d87c4;
    color: #ffffff;
    border-color: #1d87c4;
}

/* チェックボックス */
.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666666;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

/* 検索結果数 */
.filter-result-count {
    font-size: 16px;
    color: #666666;
    margin-bottom: 32px;
}

.filter-result-number {
    font-size: 20px;
    font-weight: 700;
    color: #1d87c4;
}

/* カードコンテナ */
.filter-cards-container {
    display: block;
}

/* サービスカード */
.filter-service-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 24px;
    border-radius: 4px;
}

/* カード内部 */
.filter-card-inner {
    display: flex;
}

/* カードメイン */
.filter-card-main {
    flex: 1;
    padding: 24px;
}

/* カードヘッダー */
.filter-card-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

/* PRラベル（控えめに） */
.filter-pr-label {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f5f5f5;
    color: #999999;
    font-size: 11px;
    font-weight: 400;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

/* カードタイトル（青色） */
.filter-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d87c4;
    margin: 0;
    line-height: 1.3;
}

/* カードリンク（青色） */
.filter-card-link {
    color: #1d87c4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.filter-card-link:hover {
    color: #1567a4;
    text-decoration: underline;
}

/* リンクアイコン */
.filter-link-icon {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    opacity: 0.5;
}

/* キャッチコピー */
.filter-catchphrase {
    font-size: 16px;
    color: #666666;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* 情報項目 */
.filter-info-item {
    margin-bottom: 8px;
}

.filter-info-label {
    font-size: 14px;
    color: #999999;
}

.filter-info-value {
    font-size: 14px;
    color: #333333;
    font-weight: 600;
}

/* ポイントボックス */
.filter-point-box {
    margin-top: 24px;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.filter-point-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.filter-point-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
}

/* ターゲットボックス */
.filter-target-box {
    margin-top: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-left: 3px solid #ffd500;
    padding-left: 16px;
}

.filter-target-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.filter-target-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
}

/* カードサブ */
.filter-card-sub {
    width: 280px;
    padding: 24px;
    background-color: #f5f5f5;
    border-left: 1px solid #e0e0e0;
}

/* 詳細リスト */
.filter-detail-list {
    margin-bottom: 24px;
}

.filter-detail-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-detail-label {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.filter-detail-value {
    display: block;
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* アクションボタン */
.filter-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn-site {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: #1d87c4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn-site:hover {
    background-color: #1567a4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* バナー広告エリア */
.filter-banner-area {
    margin: 20px 0;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* バナー広告コンテナ（300x250想定） */
.filter-banner-container {
    width: 100%;
    max-width: 300px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

/* バナー内の画像を最適化 */
.filter-banner-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* バナーリンクのスタイル */
.filter-banner-container a {
    display: block;
    line-height: 0;
}

/* バナーのプレースホルダーテキスト */
.filter-banner-placeholder {
    color: #999999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.filter-banner-placeholder small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #cccccc;
}

/* 結果なし */
.filter-no-results {
    text-align: center;
    padding: 48px 16px;
}

.filter-no-results p {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
}

/* 投稿なし */
.filter-no-posts {
    text-align: center;
    padding: 48px 16px;
    color: #999999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .filter-section {
        padding: 32px 0;
    }
    
    .filter-container {
        padding: 24px;
    }
    
    .filter-card-inner {
        flex-direction: column;
    }
    
    .filter-card-main {
        padding: 16px;
    }
    
    .filter-card-sub {
        width: 100%;
        padding: 16px;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .filter-checkboxes {
        flex-direction: column;
    }
    
    .filter-card-title {
        font-size: 18px;
    }
    
    .filter-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    /* モバイルでバナーを画面幅いっぱいに */
    .filter-banner-area {
        margin: 15px -15px;
    }
    
    .filter-banner-container {
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-cards-container {
        display: block;
    }
}





/* =====================================================
   火災保険情報
   プレフィックス: .crosssell-
===================================================== */

/* セクション */
.crosssell-section {
    padding: 32px 0;
}

.crosssell-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ボックス */
.crosssell-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 32px;
}

/* タイトル */
.crosssell-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crosssell-icon {
    font-size: 24px;
}

/* PRラベル */
.crosssell-pr {
    margin-left: auto;
    background-color: #f5f5f5;
    color: #999999;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 4px;
}

/* コンテンツ */
.crosssell-content {
    color: #333333;
}

.crosssell-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ポイント */
.crosssell-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.crosssell-point {
    text-align: center;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.crosssell-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1d87c4;
    margin-bottom: 8px;
}

.crosssell-label {
    display: block;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

/* 注記 */
.crosssell-note {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin: 0 0 16px 0;
}

/* アクション */
.crosssell-action {
    text-align: center;
}

/* リンク */
.crosssell-link {
    display: inline-block;
    background-color: #ffffff;
    border: 2px solid #1d87c4;
    color: #1d87c4;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.crosssell-link:hover {
    background-color: #1d87c4;
    color: #ffffff;
}

.crosssell-service {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.crosssell-arrow {
    font-size: 13px;
    opacity: 0.8;
}

/* スマホ表示用改行 */
.sp-only {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .crosssell-section {
        padding: 24px 0;
    }
    
    .crosssell-box {
        padding: 24px 16px;
    }
    
    .crosssell-title {
        font-size: 18px;
    }
    
    .crosssell-lead {
        font-size: 15px;
    }
    
    .crosssell-points {
        gap: 8px;
    }
    
    .crosssell-point {
        padding: 12px 8px;
    }
    
    .crosssell-number {
        font-size: 20px;
    }
    
    .crosssell-label {
        font-size: 11px;
    }
    
    .crosssell-link {
        padding: 10px 20px;
    }
    
    .crosssell-service {
        font-size: 15px;
        margin-bottom: 2px;
    }
    
    .crosssell-arrow {
        font-size: 12px;
    }
    
    /* スマホで改行を有効化 */
    .sp-only {
        display: inline;
    }
}






/* =====================================================
   免責事項セクション
   プレフィックス: .ync-disclaimers
   用途：ページ最下部の「ご利用にあたってのご注意」表示用
   ync = Yane Clear（ヤネクリア）の略
===================================================== */

.ync-disclaimers {
    margin-top: 80px;
    padding: 30px 0;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.ync-disclaimers-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ync-disclaimers-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    font-weight: normal;
}

.ync-disclaimers-content {
    font-size: 12px;
    line-height: 1.6;
    color: #999;
}

.ync-disclaimers-content p {
    margin-bottom: 8px;
}

.ync-disclaimers-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .ync-disclaimers {
        margin-top: 60px;
        padding: 20px 0;
    }
    
    .ync-disclaimers-inner {
        padding: 0 15px;
    }
    
    .ync-disclaimers-content {
        font-size: 11px;
        line-height: 1.5;
    }
}



/* ========================================
   業者選びで確認すべき3つのポイント
   プレフィックス: .check-
======================================== */

.check-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.check-title {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin: 0 0 12px 0;
    padding: 0;
}

.check-subtitle {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin: 0 0 48px 0;
    padding: 0;
}

.check-list {
    max-width: 800px;
    margin: 0 auto;
}

.check-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 32px 24px;
    position: relative;
    margin-bottom: 24px;
}

.check-card:last-child {
    margin-bottom: 0;
}

.check-number {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #1d87c4;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.check-point-title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin: 12px 0 16px 0;
    padding: 0;
}

.check-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    margin: 0 0 12px 0;
    padding: 0;
}

.check-text:last-child {
    margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .check-section {
        padding: 40px 0;
    }
    
    .check-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .check-subtitle {
        font-size: 12px;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    
    .check-list {
        padding: 0 16px;
    }
    
    .check-card {
        padding: 28px 20px 24px;
        margin-bottom: 20px;
    }
    
    .check-point-title {
        font-size: 16px;
        margin-top: 8px;
    }
    
    .check-text {
        font-size: 13px;
    }
}



/* ========================================
   よくあるお悩み（Q&A）
   プレフィックス: .qa-
======================================== */

.qa-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.qa-title {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin: 0 0 48px 0;
    padding: 0;
}

.qa-list {
    max-width: 800px;
    margin: 0 auto;
}

.qa-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qa-question:hover {
    background-color: #ffffff;
    border-color: #1d87c4;
}

.qa-item:hover {
    border-color: #1d87c4;
}

.qa-question h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin: 0;
    padding: 0;
    flex: 1;
    line-height: 1.5;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.qa-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
    padding: 0;
    flex: 1;
}

.qa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1d87c4;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qa-icon-answer {
    background: #666666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .qa-section {
        padding: 40px 0;
    }
    
    .qa-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .qa-list {
        padding: 0 16px;
    }
    
    .qa-item {
        margin-bottom: 12px;
    }
    
    .qa-question {
        padding: 16px;
        gap: 12px;
    }
    
    .qa-question h3 {
        font-size: 14px;
    }
    
    .qa-answer {
        padding: 0 16px 16px 16px;
        gap: 12px;
    }
    
    .qa-answer p {
        font-size: 13px;
    }
    
    .qa-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}