/*
 * 製品ページ（LP 統合版）の共通スタイル。フェーズ5-01。
 * 対象：/mta-kk10/・/mta-cs10/・/mta-yb5/ と /mta-fex4/ の丸棒節（読み込みは inc/setup.php）。
 * 色・書体はサイト全体（FeX4 ページ）に合わせる：赤 #da0a17、黄 #dbad09、本文 Noto Sans JP。
 * Divi の部品は使わず素直な HTML で書いてあるので、新テーマ（MTA Official）へ移すときはこの CSS ごと持っていける。
 */
.mp {
  --mp-red: #da0a17;
  --mp-red-dark: #bf0915;
  --mp-yellow: #dbad09;
  --mp-ink: #222;
  --mp-sub: #555;
  --mp-line: #e6e1de;
  --mp-bg-alt: #faf8f7;
  --mp-radius: 10px;
  color: var(--mp-ink);
  font-size: 16px;
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
.mp img { max-width: 100%; height: auto; display: block; }
/* 外側の余白は消しておき、下の「余白のルール」で付ける（:where で詳細度を下げ、ルールが勝つようにする） */
.mp :where(p, ul, ol, dl, h1, h2, h3, h4, figure) { margin: 0; }
.mp p, .mp ul, .mp ol, .mp dl { padding: 0; }
.mp h1, .mp h2, .mp h3, .mp h4 { padding: 0; color: inherit; line-height: 1.45; font-weight: 800; }
.mp a { color: var(--mp-red); }

.mp-wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/*
 * 余白のルール（要素の上にだけ付ける。個々の部品には外側の余白を持たせない）
 *   セクションの中の大きなまとまり同士：56px（スマホ 40px）
 *   見出し（h2）→ 次：36px、見出し（h2）→ リード文：16px、リード文 → 次：32px
 *   列・箱・カードの中の要素同士：1em、その中の小見出し（h3）の前：2em、h3 → 次：12px
 */
.mp-wrap > * + * { margin-top: 56px; }
.mp-wrap > .mp-h2 + * { margin-top: 36px; }
.mp-wrap > .mp-h2 + .mp-lead { margin-top: 16px; }
.mp-wrap > .mp-lead + * { margin-top: 32px; }
.mp-split > * > * + *,
.mp-grid > * > * + *,
.mp-box > * + *,
.mp-block > * + *,
.mp-person__body > * + *,
.mp-person > div > * + * { margin-top: 1em; }
.mp-split > * > * + .mp-h3,
.mp-grid > * > * + .mp-h3,
.mp-box > * + h3,
.mp-block > * + .mp-h3 { margin-top: 2em; }
.mp .mp-h3 + * { margin-top: 12px; }
.mp-card > * + * { margin-top: 8px; }
.mp-card > .mp-card__num + * { margin-top: 12px; }

/* ---------- ヒーロー ---------- */
.mp-hero {
  color: #fff;
  background-image: url("../../../../uploads/2023/04/coding-background-texture.jpg"), linear-gradient(180deg, var(--mp-red) 0%, var(--mp-yellow) 100%);
  background-blend-mode: overlay, normal;
  background-size: cover;
  padding: 150px 0 64px; /* 上は固定ヘッダー（約94px）の分を含む */
}
.mp-hero .mp-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.mp-hero__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; background: rgba(0, 0, 0, .22); border-radius: 100px; padding: 2px 14px; margin-bottom: 14px; }
.mp-hero h1 { font-size: clamp(30px, 4.2vw, 46px); color: #fff; margin: 0 0 6px; padding: 0; letter-spacing: .02em; }
.mp-hero__model { font-family: Poppins, "Noto Sans JP", sans-serif; font-weight: 700; font-size: 18px; opacity: .95; margin-bottom: 18px !important; }
.mp-hero__lead { font-size: 17px; font-weight: 500; }
.mp-hero__photo { border-radius: var(--mp-radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); background: #fff; }
.mp-hero__photo img { width: 100%; aspect-ratio: 1280 / 790; object-fit: cover; }
.mp-hero .mp-actions { margin-top: 26px; }
.mp-hero .mp-wrap > * + *, .mp-toc .mp-wrap > * + *, .mp-notice .mp-wrap > * + * { margin-top: 0; }
.mp-hero__lead { margin-top: 0; }

/* ---------- 販売終了の帯 ---------- */
.mp-notice { background: #222; color: #fff; }
.mp-notice .mp-wrap { padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; font-weight: 700; text-align: center; }
.mp-notice a { color: #fff; text-decoration: underline; font-weight: 500; }
.mp-badge { display: inline-block; background: var(--mp-red); color: #fff; border-radius: 4px; padding: 1px 10px; font-size: .85em; font-weight: 700; }

/* ---------- ページ内目次 ---------- */
.mp-toc { background: #fff; border-bottom: 1px solid var(--mp-line); }
.mp-toc ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 12px 0; }
.mp-toc a { display: block; padding: 4px 14px; border-radius: 100px; color: var(--mp-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mp-toc a:hover { background: var(--mp-bg-alt); color: var(--mp-red); }

/* ---------- セクション・見出し ---------- */
.mp-sec { padding: 72px 0; scroll-margin-top: 112px; }
.mp-sec--alt { background: var(--mp-bg-alt); }
.mp-h2 { text-align: center; font-size: clamp(24px, 3vw, 32px); }
.mp-h2 small { display: block; font-family: Poppins, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--mp-red); text-transform: uppercase; margin-bottom: 4px; }
.mp-h2::after { content: ""; display: block; width: 56px; height: 0; border-bottom: 3px dotted var(--mp-red); margin: 14px auto 0; }
.mp-h3 { font-size: 20px; padding-left: 12px !important; border-left: 4px solid var(--mp-red); }
.mp-lead { text-align: center; max-width: 820px; margin-inline: auto; color: var(--mp-sub); }
.mp-em { color: var(--mp-red); font-weight: 700; }
.mp-mark { background: linear-gradient(transparent 62%, #fff2a8 62%); font-weight: 700; }

/* ---------- 並べ方 ---------- */
.mp-grid { display: grid; gap: 24px; }
.mp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mp-split--wide { grid-template-columns: 1.4fr 1fr; }
.mp-split--top { align-items: start; }

/* ---------- カード ---------- */
.mp-card { background: #fff; border-radius: var(--mp-radius); padding: 24px; border-top: 3px solid var(--mp-red); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.mp-sec--alt .mp-card { box-shadow: none; }
.mp-card h3 { font-size: 18px; }
.mp-card p { font-size: 15px; color: var(--mp-sub); line-height: 1.8; }
.mp-card__num { font-family: Poppins, sans-serif; font-weight: 800; color: var(--mp-red); font-size: 28px; line-height: 1; }

/* ---------- 箇条書き ---------- */
.mp-checks { list-style: none; display: grid; gap: 10px; }
.mp-checks li { position: relative; padding-left: 30px; line-height: 1.7; }
.mp-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mp-red); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.mp-checks--cols { grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.mp-dots { list-style: none; display: grid; gap: 6px; }
.mp-dots li { position: relative; padding-left: 18px; }
.mp-dots li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--mp-red); }
.mp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-tags li { background: #fff; border: 1px solid var(--mp-line); border-radius: 100px; padding: 2px 14px; font-size: 14px; }

/* ---------- 表 ---------- */
.mp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--mp-radius); }
.mp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.6; }
.mp-table th, .mp-table td { border: 1px solid var(--mp-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.mp-table thead th { background: var(--mp-red); color: #fff; font-weight: 700; text-align: center; border-color: var(--mp-red-dark); }
.mp-table tbody th { background: #fbeceb; font-weight: 700; white-space: nowrap; }
.mp-table--center td { text-align: center; }
.mp-table .is-strong { color: var(--mp-red); font-weight: 800; }
.mp-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--mp-sub); padding-top: 8px; }

/* ---------- 図 ---------- */

.mp-figure img { border-radius: 8px; width: 100%; }
.mp-figure figcaption { font-size: 14px; color: var(--mp-sub); margin-top: 8px; line-height: 1.7; }
.mp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mp-compare figure { margin: 0; background: #fff; border-radius: var(--mp-radius); overflow: hidden; border: 1px solid var(--mp-line); }
.mp-compare figcaption { padding: 10px 14px; font-size: 15px; }
.mp-compare figcaption strong { display: inline-block; color: #fff; background: #555; border-radius: 4px; padding: 0 8px; margin-right: 8px; font-size: 14px; }
.mp-compare .is-good strong { background: var(--mp-red); }

/* ---------- 注記・囲み ---------- */
.mp .mp-note { font-size: 13px; color: var(--mp-sub); line-height: 1.7; margin-top: 14px; }
.mp-box { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 24px 28px; }
.mp-box--red { border: 2px solid var(--mp-red); }
.mp-box h3 { font-size: 18px; }
.mp-box h3 + * { margin-top: 10px; }

/* ---------- 人物 ---------- */
.mp-person { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; background: #fff; border-radius: var(--mp-radius); padding: 28px; border: 1px solid var(--mp-line); }
.mp-person img { border-radius: 8px; }
.mp-person__name { font-size: 20px; font-weight: 800; }
.mp .mp-person__name + .mp-person__career { margin-top: 4px; }
.mp-person__career { font-size: 13px; color: var(--mp-sub); line-height: 1.7; }
.mp-person__body p { font-size: 15px; }

/* ---------- 仕様（定義リスト） ---------- */
.mp-spec { display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--mp-line); }
.mp-spec dt, .mp-spec dd { padding: 12px 14px; border-bottom: 1px solid var(--mp-line); margin: 0; line-height: 1.7; }
.mp-spec dt { font-weight: 700; background: #fbeceb; min-width: 8em; }
.mp-spec dd { background: #fff; }

/* ---------- 価格 ---------- */
.mp-price { text-align: center; }
.mp-price__label { display: inline-block; background: var(--mp-red); color: #fff; font-weight: 800; border-radius: 100px; padding: 2px 18px; }
.mp-price__list { color: var(--mp-sub); text-decoration: line-through; }
.mp-price__main { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--mp-red); line-height: 1.3; }
.mp-price__main small { font-size: 15px; color: var(--mp-ink); font-weight: 600; margin-left: 4px; }

/* ---------- Q&A ---------- */
.mp-qa { display: grid; gap: 14px; }
.mp-qa > div { background: #fff; border-radius: var(--mp-radius); border: 1px solid var(--mp-line); overflow: hidden; }
.mp-qa dt { font-weight: 700; padding: 14px 20px 14px 56px; position: relative; background: #fbeceb; }
.mp-qa dd { margin: 0; padding: 14px 20px 16px 56px; position: relative; font-size: 15px; }
.mp-qa dt::before, .mp-qa dd::before { position: absolute; left: 18px; top: 12px; font-family: Poppins, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.4; }
.mp-qa dt::before { content: "Q"; color: var(--mp-red); }
.mp-qa dd::before { content: "A"; color: #555; }

/* ---------- ボタン ---------- */
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.mp-actions--center { justify-content: center; }
.mp-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--mp-red); color: #fff !important; font-weight: 700; font-size: 16px; line-height: 1.5; text-decoration: none; padding: 12px 28px; border-radius: 100px; border: 2px solid var(--mp-red); transition: background .2s, color .2s; }
.mp-btn::after { content: "→"; transition: transform .2s; }
.mp-btn:hover { background: #fff; color: var(--mp-red) !important; }
.mp-btn:hover::after { transform: translateX(3px); }
.mp-btn--white { background: #fff; color: var(--mp-red) !important; border-color: #fff; }
.mp-btn--white:hover { background: transparent; color: #fff !important; }
.mp-btn--line { background: transparent; color: var(--mp-red) !important; }
.mp-btn--line:hover { background: var(--mp-red); color: #fff !important; }
.mp-btn--ghost { background: transparent; color: #fff !important; border-color: #fff; }
.mp-btn--ghost:hover { background: #fff; color: var(--mp-red) !important; }
.mp-btn--ext::after { content: "↗"; }

/* ---------- 問い合わせの帯 ---------- */
.mp-cta { background: var(--mp-ink); color: #fff; padding: 56px 0; text-align: center; }
.mp-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.mp-cta .mp-wrap > * + * { margin-top: 0; }
.mp-cta p { color: #ddd; margin-top: 10px; }
.mp-cta .mp-actions { margin-top: 24px; }

/* ---------- 動画 ---------- */
.mp-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--mp-radius); overflow: hidden; background: #000; }
.mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FeX4 ページの丸棒節（既存ページの中に置く） ---------- */
.mp--inline { padding: 0; }
.mp--inline .mp-sec { padding: 64px 0; }

/* ---------- スマホ ---------- */
@media (max-width: 980px) {
  .mp-hero .mp-wrap, .mp-split, .mp-split--wide { grid-template-columns: 1fr; gap: 28px; }
  .mp-grid--3, .mp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .mp { font-size: 15px; }
  .mp-hero { padding: 124px 0 44px; } /* スマホの固定ヘッダー（約92px）の分を含む */
  .mp-sec { padding: 52px 0; }
  .mp-wrap > * + * { margin-top: 40px; }
  .mp-wrap > .mp-h2 + * { margin-top: 28px; }
  .mp-wrap > .mp-h2 + .mp-lead { margin-top: 14px; }
  .mp-wrap > .mp-lead + * { margin-top: 26px; }
  .mp-hero .mp-wrap > * + *, .mp-toc .mp-wrap > * + *, .mp-notice .mp-wrap > * + *, .mp-cta .mp-wrap > * + * { margin-top: 0; }
  .mp-grid--2, .mp-grid--3, .mp-grid--4, .mp-compare, .mp-checks--cols { grid-template-columns: 1fr; }
  .mp-person { grid-template-columns: 1fr; padding: 20px; }
  .mp-person img { max-width: 180px; }
  .mp-spec { grid-template-columns: 1fr; }
  .mp-spec dt { border-bottom: 0; padding-bottom: 4px; }
  .mp-spec dd { padding-top: 4px; }
  .mp-box { padding: 20px; }
  .mp-qa dt, .mp-qa dd { padding-left: 48px; padding-right: 14px; }
  .mp-qa dt::before, .mp-qa dd::before { left: 14px; }
  .mp-table { font-size: 14px; }
  .mp-table th, .mp-table td { padding: 8px 10px; }
  .mp-btn { padding: 11px 22px; }
  .mp-toc ul { justify-content: flex-start; }
}

/* ---------- フォーム（Contact Form 7。資料ダウンロード） ---------- */
.mp .mp-form { max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 32px; }
.mp-form .dtq-cf7-styler, .mp-form .wpcf7, .mp-form form { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.mp-form .wpcf7-form > p, .mp-form .wpcf7-form > div:not(.wpcf7-response-output):not(.hidden-fields-container) { margin: 0 0 14px !important; padding: 0 !important; }
.mp .mp-form input[type="text"], .mp .mp-form input[type="email"], .mp .mp-form input[type="tel"], .mp .mp-form textarea {
  width: 100% !important; box-sizing: border-box; padding: 12px 16px !important; border: 1px solid #d8d2ce !important; border-radius: 8px !important;
  background: #fff !important; color: var(--mp-ink) !important; font-size: 16px !important; line-height: 1.5 !important; margin: 0 !important;
}
.mp-form input:focus, .mp-form textarea:focus { outline: 2px solid rgba(218, 10, 23, .25); border-color: var(--mp-red) !important; }
.mp-form .wpcf7-acceptance { display: block; text-align: center; font-size: 15px; }
.mp .mp-form input[type="submit"] {
  display: block; margin: 8px auto 0 !important; background: var(--mp-red) !important; color: #fff !important; border: 2px solid var(--mp-red) !important;
  border-radius: 100px !important; padding: 12px 48px !important; font-size: 16px !important; font-weight: 700 !important; cursor: pointer; width: auto !important;
}
.mp .mp-form input[type="submit"]:hover { background: #fff !important; color: var(--mp-red) !important; }
.mp-form .wpcf7-spinner { display: block; margin: 8px auto 0; }
.mp-form .doc-dl-btn-box { margin-top: 20px; background: transparent !important; padding: 0 !important; text-align: center; }
@media (max-width: 767px) { .mp .mp-form { padding: 20px; } }
.mp .mp-form .link-template-default.card { background: var(--mp-bg-alt) !important; color: var(--mp-ink) !important; border: 1px solid var(--mp-line) !important; border-radius: 8px !important; text-align: left; }
.mp .mp-form .link-template-default.card * { color: inherit; }
.mp .mp-form .link-template-default .wpdm-download-link { color: #fff !important; background: var(--mp-red) !important; border-color: var(--mp-red) !important; border-radius: 100px !important; padding: 6px 20px !important; }
