/* 素材ごとの印刷ページ（/materials/<slug>/）で使う共通スタイル。
   素材が増えるたびにページを足すので、体裁はここに集約する。
   site.css とは別ファイルにして、追記のたびに全ページのキャッシュ番号を
   付け替えなくて済むようにしている。 */

/* 見本（おもて・うら）を並べる */
.mp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.mp-shot { background: #f1f5f9; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; margin: 0; }
.mp-shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 10px rgba(15, 23, 42, .1); }
.mp-shot figcaption { font-size: 12px; color: var(--dim); margin-top: 8px; }

/* ダウンロードの帯。ページの主役なので目立たせる */
.mp-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; border-radius: 16px; padding: 20px 22px; margin: 20px 0; }
.mp-dl .txt { flex: 1; min-width: 220px; }
.mp-dl .ttl { display: block; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.mp-dl .sub { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.mp-dl .btn { background: var(--accent, #0284c7); color: #fff; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 14px 26px; text-decoration: none; white-space: nowrap; }
.mp-dl .btn:hover { text-decoration: none; opacity: .9; }

/* 仕様表 */
.mp-spec { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; background: #fff; }
.mp-spec th, .mp-spec td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; line-height: 1.7; background: #fff; }
.mp-spec th { width: 34%; white-space: nowrap; }

/* 印刷のつまずきポイント */
.mp-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 16px 20px; margin: 18px 0; font-size: 13.5px; line-height: 1.9; }
.mp-warn .t { font-weight: 800; color: #b45309; display: block; margin-bottom: 6px; }

/* 手順 */
.mp-steps { counter-reset: s; list-style: none; margin: 14px 0; padding: 0; }
.mp-steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; line-height: 1.85; font-size: 14px; }
.mp-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 999px; background: var(--accent, #0284c7); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }


/* 小見出し（用紙・道具など） */
.mp-h3 { font-size: 16px; margin: 22px 0 2px; }

/* 商品カード。画像は楽天のものを使い、購入先は楽天とAmazonを並べて選べるようにする。
   縦に積むと道具の紹介だけでページが長くなるので、2カラムに並べる */
.mp-goods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 12px 0; }
.mp-goods { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin: 0; }
.mp-goods-img { flex: 0 0 92px; }
.mp-goods-img img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 8px; }
.mp-goods-body { flex: 1; min-width: 0; }
.mp-goods-pr { display: inline-block; font-size: 9.5px; font-weight: 700; color: #b45309; background: #fdeed3; padding: 1px 8px; border-radius: 999px; }
.mp-goods-name { font-weight: 700; font-size: 13px; line-height: 1.5; margin: 5px 0 3px; }
.mp-goods-note { font-size: 11.5px; color: var(--dim); line-height: 1.7; margin: 0 0 6px; }
.mp-goods-price { font-size: 11.5px; color: var(--ink, #0f172a); margin: 0 0 8px; }
.mp-goods-price b { font-size: 13.5px; }
.mp-goods-price span { color: var(--dim); font-size: 10px; margin-left: 5px; }
.mp-goods-links { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-btn { display: inline-block; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.mp-btn:hover { text-decoration: none; opacity: .9; }
.mp-btn.rkt { background: #bf0000; color: #fff; }
.mp-btn.amz { background: #ff9900; color: #1f2937; }
@media (max-width: 420px) {
  .mp-goods { flex-direction: column; align-items: center; text-align: center; }
  .mp-goods-links { justify-content: center; }
}
