/* EmDash 版で追加した部分の見た目（旧サイトの Cocoon / Contact Form 7 に合わせる） */

/* 本文の HTML ブロック・表（EmDash の部品）を Cocoon の本文と同じ余白に */
.entry-content .emdash-html-block { margin: 0; }
.entry-content table { width: 100%; }
.shobo-block .emdash-html-block { margin: 0; }

/* 記事一覧（旧サイトは Masonry で並べていたため、CSS グリッドで同じ3列を再現） */
.list.ect-tile-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.6%; }
.list.ect-tile-card .entry-card-wrap { width: auto !important; margin: 0 0 1.6% 0 !important; }
.list.ect-tile-card .entry-card-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.list.ect-tile-card .entry-card-thumb img.no-image { aspect-ratio: 16 / 9; }
@media screen and (max-width: 834px) { .list.ect-tile-card { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 480px) { .list.ect-tile-card.sp-entry-card-1-column { grid-template-columns: 1fr; } }

/* 関連記事・前後記事のサムネイル（元画像を 16:9 に切り抜いて表示） */
.related-entry-card-thumb img, .prev-post-thumb img, .next-post-thumb img { aspect-ratio: 16 / 9; object-fit: cover; }

/* お問い合わせフォーム（Contact Form 7 の見た目に近づける） */
.shobo-contact-form input[type="text"], .shobo-contact-form input[type="email"], .shobo-contact-form input[type="tel"], .shobo-contact-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.cf7-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0 !important; width: 0 !important; overflow: hidden !important; }
.contact-target-notice { background: #fdeee0; border: 1px solid #f0d3a8; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.wpcf7-response-output { margin: 1em 0; padding: .6em 1em; border: 2px solid #ffb900; }
.wpcf7-response-output.shobo-ok { border-color: #46b450; }
.wpcf7-response-output.shobo-ng { border-color: #dc3232; }
.cf-turnstile { margin: 1em 0; }
.copy-info { display: none; }

/* ===== 問い合わせ導線の改善（2026-11-14） ===== */
/* 業者カード：問い合わせボタンを主役（オレンジ）に */
.shobo-btn-inquiry--main { background: var(--shobo-accent); color: #fff !important; border: 1px solid var(--shobo-accent); text-decoration: none; }
.shobo-btn-inquiry--main:hover { background: var(--shobo-accent-dark); border-color: var(--shobo-accent-dark); }
.shobo-company-card .actions { min-width: 150px; }
.shobo-company-card .actions a { text-decoration: none; }
@media (max-width: 780px) {
  .shobo-company-card .actions { flex-direction: column; }
  .shobo-company-card .actions a { padding: 12px 14px; font-size: 14px; }
}

/* 業者ページ：見出しのすぐ下の問い合わせボタン */
.company-top-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }
.company-top-cta a { text-decoration: none; text-align: center; border-radius: 8px; font-weight: 700; }
.company-top-cta__main { flex: 2 1 240px; background: var(--shobo-accent); color: #fff !important; padding: 12px 16px; font-size: 16px; line-height: 1.4; box-shadow: 0 2px 0 var(--shobo-accent-dark); }
.company-top-cta__main:hover { background: var(--shobo-accent-dark); }
.company-top-cta__main small { display: block; font-size: 11px; font-weight: 400; opacity: .95; }
.company-top-cta__sub { flex: 1 1 140px; background: #fff; color: var(--shobo-primary) !important; border: 1px solid var(--shobo-primary); padding: 12px 14px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.company-check-cta { margin-top: 1em; }
.company-check-cta a { display: inline-block; padding: 12px 18px; border-radius: 6px; font-weight: 700; }

/* 記事の途中・最後の誘導ブロック */
.article-cta { margin: 2em 0; padding: 18px 18px 14px; border: 2px solid var(--shobo-accent); border-radius: 10px; background: #fffaf1; }
.article-cta__title { font-weight: 800; font-size: 17px; color: var(--shobo-primary); margin: 0 0 .5em !important; }
.article-cta__text { font-size: 15px; line-height: 1.8; margin: 0 0 .8em !important; }
.article-cta__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.article-cta__btn { flex: 1 1 160px; text-align: center; padding: 11px 12px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none !important; background: #fff; color: var(--shobo-primary) !important; border: 1px solid var(--shobo-primary); }
.article-cta__btn--main { background: var(--shobo-accent); border-color: var(--shobo-accent); color: #fff !important; }
.article-cta__btn--main:hover { background: var(--shobo-accent-dark); }
/* 業者カードの「詳細を見る」は控えめ（白地に赤枠）にして、問い合わせボタンを目立たせる */
.shobo-company-card .actions .shobo-btn-detail { background: #fff; color: var(--shobo-primary) !important; border: 1px solid var(--shobo-primary); }
