/*
Theme Name:  メディア・プラン（Lightning 子テーマ）
Theme URI:   https://www.media-plan-tokyo.co.jp/
Description: 株式会社メディア・プランのサイト用 Lightning 子テーマ。配色・文字サイズは theme.json で管理し、各セクションはブロックパターンとして登録しています。
Author:      株式会社メディア・プラン
Template:    lightning
Version:     1.0.0
Text Domain: mediaplan-child
*/

/* ==========================================================================
   このファイルには「ブロックだけでは表現できない形」だけを書きます。
   色・文字サイズ・余白は theme.json 側で管理してください。
   ========================================================================== */

/* --- ヘッダー上部の帯（電話番号・受付時間） --- */
.mp-header-top { background: var(--wp--preset--color--base-alt, #F5F8F7); border-bottom: 1px solid var(--wp--preset--color--line, #D5DEE0); font-size: 13px; }
.mp-header-top__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.mp-header-top p { margin: 0; }
.mp-header-top__tagline { color: var(--wp--preset--color--text-sub, #5A6873); }
.mp-header-top__contact a { font-weight: 700; color: var(--wp--preset--color--body-text, #1F2A33); text-decoration: none; margin-right: 12px; }
.mp-header-top__contact span { color: var(--wp--preset--color--text-sub, #5A6873); font-size: 12px; }
@media (max-width: 1023px) { .mp-header-top { display: none; } }

/* --- Lightning の見出しデザイン（罫線・下線）を打ち消す --- */
.entry-body :is(h1, h2, h3, h4, h5, h6).wp-block-heading { border: 0; padding: 0; background: none; box-shadow: none; }
.entry-body :is(h1, h2, h3, h4, h5, h6).wp-block-heading::before,
.entry-body :is(h1, h2, h3, h4, h5, h6).wp-block-heading::after { content: none; }

/* --- ブロックスタイル「チェック付き」（リスト） --- */
.is-style-mp-check { list-style: none; padding-left: 0; }
.is-style-mp-check li { position: relative; padding-left: 24px; margin: 6px 0; }
.is-style-mp-check li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--wp--preset--color--primary); }

/* --- ブロックスタイル「仕様表」（表） --- */
.is-style-mp-spec table { border-collapse: collapse; font-size: 14px; }
.is-style-mp-spec th, .is-style-mp-spec td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 10px 4px; text-align: left; vertical-align: top; }
.is-style-mp-spec th { width: 34%; white-space: nowrap; font-weight: 700; }

/* --- ブロックスタイル「お知らせ一覧」「チップ」 --- */
.is-style-mp-news .wp-block-post-template { margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--line); }
.is-style-mp-news .wp-block-post-title { margin: 0; }
.is-style-mp-chip a { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--wp--preset--color--primary-pale); color: var(--wp--preset--color--primary-dark); font-weight: 700; text-decoration: none; }

/* --- ブロックスタイル「ラベル（文字幅）」 --- */
.is-style-mp-inline { display: inline-block; width: auto !important; }

/* --- グローバルメニューの「お問い合わせ」をボタン風にする ---
   使い方：メニュー項目の「CSSクラス」に mp-nav-cta と入力 */
@media (min-width: 992px) {
  .global-nav-list > li.mp-nav-cta > a { background: var(--wp--preset--color--primary); color: #fff; border-radius: 6px; padding: 10px 20px; }
  .global-nav-list > li.mp-nav-cta > a:hover { background: var(--wp--preset--color--primary-dark); }
  .global-nav-list > li.mp-nav-cta > a::after { display: none; }
}
