/* 新システムでの追加分（現行テーマの style.css には手を入れない） */

.staging-bar { background: #fff3cd; color: #7a5b00; text-align: center; font-size: 12px; padding: 4px 8px; }

/* WordPressのギャラリー（[gallery]）の代わり */
.wp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 1.5em 0; }
.wp-gallery figure { margin: 0; }
.wp-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* 埋め込み（[embed]） */
.wp-embed { margin: 1.5em 0; }

/* 移行作業中のフォームの案内 */
.form-pending { border: 1px solid #e0c9a6; background: #fffaf1; padding: 1.2em 1.4em; margin: 2em 0; line-height: 1.8; }

/* 404 */
.not-found { text-align: center; padding: 80px 16px; }

/* ヘッダーの「配信サービス料金プラン」ボタン（現行テーマではヘッダー内の<style>で指定） */
.header-top .inner { align-items: center; }
.header-top .header-plan { margin-right: 20px; margin-left: auto; }
.header-top .header-plan a { display: block; border-radius: 4px; padding: .6em 1em; background-color: #fff; font-weight: bold; }
@media only screen and (max-width: 640px) { .header-top .header-plan { display: none !important; } }

/* 記事下の「取材申し込み」ボタン */
.button-box.mousikomi form { width: 48%; background-color: #fff; min-width: auto; }

/* 画像の横並び（本文） */
.img-row { display: grid; gap: 8px; margin: 1em 0; }
.img-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.img-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.img-row figure { margin: 0; }
.img-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 4px; }
.img-row-cap { text-align: center; font-size: 13px; color: #777; margin-top: -.4em; }
@media (max-width: 600px) { .img-row.cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* フォーム（確認画面・エラー・完了） */
.form-errors { border: 1px solid #e05a5a; background: #fff4f4; color: #b42318; padding: 14px 18px; margin: 0 0 20px; }
.form-errors p { font-weight: 700; margin: 0 0 6px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-confirm { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.form-confirm th, .form-confirm td { border-bottom: 1px solid #ddd; padding: 12px 10px; text-align: left; vertical-align: top; font-size: 15px; }
.form-confirm th { width: 36%; color: #555; font-weight: 500; }
.form-confirm .muted { color: #aaa; }
.form-buttons, .mw_wp_form_input form > p:last-of-type { text-align: center; }
.mw_wp_form button[type=submit] { display: inline-block; min-width: 200px; padding: 14px 28px; margin: 6px; border: 1px solid #333; background: #333; color: #fff; font-size: 16px; cursor: pointer; }
.mw_wp_form button.form-back { background: #fff; color: #333; }
.form-complete { font-size: 17px; line-height: 2; padding: 30px 0; text-align: center; }
.mw_wp_form_complete p:last-child { text-align: center; }
@media (max-width: 768px) { .form-confirm th, .form-confirm td { display: block; width: auto; border: 0; padding: 4px 0; } .form-confirm tr { display: block; border-bottom: 1px solid #ddd; padding: 8px 0; } }

/* この記事のポイント（検索・AIが要点を拾いやすいよう本文の前に表示） */
.key-points { border: 2px solid #ff7a00; border-radius: 6px; padding: 14px 18px 10px; margin: 0 0 24px; background: #fff9f2; }
.key-points-head { font-weight: 700; color: #ff7a00; margin: 0 0 6px; font-size: 15px; }
.key-points ul { margin: 0; padding-left: 1.3em; }
.key-points li { margin: 0 0 6px; line-height: 1.7; }

/* フォームの入力補助：電話番号・郵便番号は1つの欄、設立年月はプルダウン、「〇〇と同じ」 */
.mw_wp_form input.tel-one { width: 100% !important; max-width: 320px !important; }
.mw_wp_form .zip-one { width: 140px; }
.mw_wp_form .zip-msg { margin-left: 10px; font-size: 12px; color: #888; }
.mw_wp_form .ym-field { display: flex; gap: 10px; align-items: center; }
.mw_wp_form .ym-field select { display: inline-block !important; width: auto !important; min-width: 130px; margin: 0 !important; }
.mw_wp_form .same-as-box { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.mw_wp_form .same-as { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #f0c9a8; background: #fff8f2; border-radius: 6px; cursor: pointer; font-size: 14px; width: fit-content; }
.mw_wp_form .same-as input { width: 18px; height: 18px; margin: 0; }
.mw_wp_form input.is-same { background: #f3f3f3; color: #666; }

/* ヘッダーのカテゴリー帯：1行にすっきり並べる。入りきらない画面幅では横スクロール（右端をぼかして続きがあることを示す） */
.header-menu-container { background: #f4f4f4; border-bottom: 1px solid #e4e4e4; position: relative; }
.header-menu { flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.header-menu::-webkit-scrollbar { display: none; }
.header-menu-item { flex-shrink: 0; margin-right: 0; }
.header-menu-item + .header-menu-item { margin-left: .7em; }
.header-menu-item a { white-space: nowrap; font-size: 13px; letter-spacing: 0; padding: 13px 2px 11px; color: #444; transition: color .15s; }
.header-menu-item a:hover { opacity: 1; color: #ee7f2d; }
.header-menu-item.active a { color: #222; }
.header-menu-item.active a:after { height: 3px; background-color: #ee7f2d; border-radius: 2px 2px 0 0; }
@media screen and (max-width: 1180px) {
  .header-menu-container .inner { position: relative; }
  .header-menu-container .inner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none; background: linear-gradient(to right, rgba(244,244,244,0), #f4f4f4 85%); }
}
