* { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 400; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  background: #eef1f5;
  color: #202630;
}

.mpd-page {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 96px;
  background: #f7f8fa;
}

.mpd-header {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  padding: 0 13px;
  background: #fff;
  border-bottom: 1px solid #eceef1;
}

.mpd-header a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #303642;
  text-decoration: none;
}

.mpd-back { font-size: 1.7rem; }
.mpd-header svg { width: 21px; height: 21px; }
.mpd-header-title { overflow: hidden; font-size: 0.94rem; font-weight: 400; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.mpd-hero { padding: 14px 16px 18px; background: #fff; }
.mpd-image-wrap { position: relative; overflow: hidden; background: #f2f3f5; border-radius: 8px; }
.mpd-image { width: 100%; aspect-ratio: 1.586 / 1; display: block; object-fit: cover; }
.mpd-badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; color: #fff; background: rgba(232, 103, 28, 0.95); border-radius: 5px; font-size: 0.62rem; font-weight: 400; }
.mpd-title { margin-top: 15px; font-size: 1.28rem; font-weight: 400; line-height: 1.35; }
.mpd-description { margin-top: 7px; color: #5f6672; font-size: 0.76rem; line-height: 1.75; }
.mpd-highlights { margin-top: 12px; list-style: none; }
.mpd-highlights li { display: flex; gap: 8px; padding: 5px 0; font-size: 0.73rem; line-height: 1.5; }
.mpd-check { width: 18px; height: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: #e8671c; border-radius: 50%; font-size: 0.6rem; font-weight: 400; }
.mpd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.mpd-btn { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 0.74rem; font-weight: 400; text-align: center; text-decoration: none; }
.mpd-btn-primary { color: #fff; background: #e8671c; }
.mpd-btn-outline { color: #e8671c; background: #fff; border: 1px solid #e8671c; }

.mpd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; }
.mpd-fact { min-width: 0; padding: 12px 5px; text-align: center; }
.mpd-fact + .mpd-fact { border-left: 1px solid #eceef1; }
.mpd-fact small { display: block; color: #8b929d; font-size: 0.55rem; line-height: 1.35; }
.mpd-fact strong { display: block; margin-top: 4px; color: #303642; font-size: 0.68rem; line-height: 1.35; overflow-wrap: anywhere; }

.mpd-section { margin-top: 10px; padding: 18px 16px; background: #fff; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; }
.mpd-section-title { margin-bottom: 12px; font-size: 0.94rem; font-weight: 400; }
.mpd-section-lead { margin: -5px 0 12px; color: #7b828d; font-size: 0.68rem; line-height: 1.6; }
.mpd-spec-list { margin: 0; }
.mpd-spec-row { min-height: 44px; display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 24px; padding: 12px 0; border-bottom: 1px solid #f0f1f3; font-size: 0.7rem; line-height: 1.5; }
.mpd-spec-row:last-child { border-bottom: 0; }
.mpd-spec-row dt { color: #8b929d; font-weight: 400; }
.mpd-spec-row dd { color: #303642; }
/* 料金表（枚数別）の先頭に付ける列名行。他の行と紛れないよう太字＋背景色で区別する。 */
.mpd-spec-row-head { min-height: 36px; padding: 7px 8px; margin: 0 -8px 2px; background: #f6f7f9; border-radius: 6px; border-bottom: 0; }
.mpd-spec-row-head dt,
.mpd-spec-row-head dd { color: #303642; font-weight: 700; }

/* 2026-09-10: 枚数別料金表を、用途ページ（membership-point-card.html等の
   .m-price-list/.m-price-row）と同じ見た目に統一する。「基本仕様」等の
   通常の.mpd-spec-listには影響しないよう、料金表のdlにだけ付く
   .mpd-price-tableでスコープする（js/mobile-product-detail.js側で付与）。 */
.mpd-price-table { border: 1px solid #e1e6ef; border-radius: 6px; overflow: hidden; }
.mpd-price-table .mpd-spec-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 10px; min-height: 44px; border-bottom: 1px solid #e8ebf1; }
.mpd-price-table .mpd-spec-row:last-child { border-bottom: 0; }
.mpd-price-table .mpd-spec-row:nth-child(even) { background: #f8f9fc; }
.mpd-price-table .mpd-spec-row dd { text-align: right; }
.mpd-price-table .mpd-spec-row.mpd-spec-row-head { margin: 0; border-radius: 0; background: #f1f3f8; }
.mpd-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.mpd-tag { padding: 7px 9px; color: #6f3d22; background: #fff4ed; border: 1px solid #f8dccd; border-radius: 6px; font-size: 0.66rem; line-height: 1.35; }
.mpd-note { margin-top: 12px; color: #7b828d; font-size: 0.64rem; line-height: 1.65; }
.mpd-note + .mpd-note { margin-top: 4px; }

.mpd-processing-group { margin-bottom: 10px; }
.mpd-processing-group:last-of-type { margin-bottom: 0; }
.mpd-processing-label { margin-bottom: 7px; font-size: 0.66rem; font-weight: 400; }
.mpd-processing-label.is-free { color: #18815f; }
.mpd-processing-label.is-paid { color: #b0530f; }
.mpd-tag-free { color: #18815f; background: #eafaf3; border-color: #cdeee0; }
.mpd-tag-paid { color: #b0530f; background: #fff1e8; border-color: #f6d9c4; }

.mpd-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mpd-flow-item { min-width: 0; position: relative; padding: 10px 5px; text-align: center; background: #fafafa; border: 1px solid #eceef1; border-radius: 7px; }
.mpd-flow-item:not(:last-child)::after { content: '›'; position: absolute; top: 27px; right: -8px; z-index: 2; color: #e8671c; font-size: 1.1rem; font-weight: 400; }
.mpd-flow-num { display: block; color: #e8671c; font-size: 0.57rem; font-weight: 400; }
.mpd-flow-item img { width: 43px; height: 43px; margin: 4px auto; display: block; object-fit: contain; }
.mpd-flow-item strong { display: block; font-size: 0.64rem; line-height: 1.35; }

.mpd-price-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.mpd-price-control label { display: block; margin-bottom: 4px; color: #676e79; font-size: 0.62rem; }
.mpd-price-select { width: 100%; height: 40px; padding: 0 8px; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; color: #1f2430; font-size: 0.7rem; }
.mpd-price-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px; background: #fff7f2; border: 1px solid #f5d7c6; border-radius: 7px; }
.mpd-price-label { color: #8c5b40; font-size: 0.62rem; }
.mpd-price { margin-top: 3px; color: #e8671c; font-size: 1.22rem; font-weight: 400; line-height: 1.2; }
.mpd-quantity { color: #676e79; font-size: 0.67rem; text-align: right; }
.mpd-price-order-btn { display: flex; margin-top: 12px; }

.mpd-faq details { border-bottom: 1px solid #eceef1; }
.mpd-faq details:last-child { border-bottom: 0; }
.mpd-faq summary { padding: 12px 24px 12px 0; position: relative; cursor: pointer; list-style: none; font-size: 0.72rem; font-weight: 400; line-height: 1.5; }
.mpd-faq summary::-webkit-details-marker { display: none; }
.mpd-faq summary::after { content: '+'; position: absolute; top: 11px; right: 3px; color: #4361ee; font-size: 1rem; transition: transform 0.2s; display: inline-block; }
.mpd-faq details[open] summary::after { transform: rotate(45deg); }
.mpd-faq p { padding: 0 0 13px; color: #68707c; font-size: 0.68rem; line-height: 1.7; }
.mpd-back-products { min-height: 42px; margin: 12px 16px 0; display: flex; align-items: center; justify-content: center; color: #59616d; border: 1px solid #dfe2e6; border-radius: 7px; font-size: 0.7rem; font-weight: 400; text-decoration: none; }

@media (max-width: 350px) {
  .mpd-hero { padding-left: 13px; padding-right: 13px; }
  .mpd-section { padding-left: 13px; padding-right: 13px; }
  .mpd-spec-row { grid-template-columns: 76px minmax(0, 1fr); }
  .mpd-btn { font-size: 0.68rem; }
}

/* 初回限定キャンペーン バナー（mobile/index.htmlと同じスタイルをコピー。
   プラスチックカード料金表カードにもクーポン訴求がなかったため追加） */
.m-campaign-banner {
  margin: 0 0 14px;
  padding: 14px 13px;
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffe0c2;
  border-radius: 8px;
  background: #fff7ed;
  color: #172033;
  text-decoration: none;
}
.m-campaign-gift { font-size: 2.7rem; line-height: 1; text-align: center; }
.m-campaign-label { display: block; color: #f26a12; font-size: 0.62rem; font-weight: 400; }
.m-campaign-price { display: block; margin-top: 2px; color: #f26a12; font-size: 1.35rem; font-weight: 400; white-space: nowrap; }
.m-campaign-price small { font-size: 0.65rem; }
.m-campaign-copy { display: block; margin-top: 2px; font-size: 0.6rem; font-weight: 400; }
.m-campaign-button { padding: 11px 12px; border-radius: 20px; background: #f26a12; color: #fff; font-size: 0.64rem; font-weight: 400; white-space: nowrap; }
@media (max-width: 380px) {
  .m-campaign-banner { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 7px; }
  .m-campaign-gift { font-size: 2.1rem; }
  .m-campaign-price { font-size: 1.08rem; }
  .m-campaign-button { padding: 9px 8px; font-size: 0.57rem; }
}

/* ICカード料金表（MIFARE/FeliCa 2素材×枚数）を実際のtableで表示。
   mobile/pricing.htmlの.m-id-tableと同じスタイル。 */
.m-id-table-wrap { overflow-x: auto; margin-top: 4px; }
.m-id-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.m-id-table th, .m-id-table td { padding: 9px 14px; text-align: center; border-bottom: 1px solid #f0f1f3; white-space: nowrap; }
.m-id-table th:first-child, .m-id-table td:first-child { padding-left: 0; }
.m-id-table th:last-child, .m-id-table td:last-child { padding-right: 0; }
.m-id-table th { color: #667085; font-weight: 400; background: #f6f7f9; }
.m-id-table td:first-child, .m-id-table th:first-child { text-align: left; color: #8b929d; }

/* おすすめの用途タグの下に並ぶ「関連商品の詳細を見る」ボタン群。
   .mpd-actionsのgapに頼らず独自にgapと上マージンを持たせ、
   タグ列・ボタン同士が隙間なく詰まって見えるのを防ぐ。 */
.mpd-related-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
