/* /lp_category_towel（オリジナルのタオルを1枚から作成しよう！）だけが読み込む。
   古いテーマは本文の <p> の余白を !important で決めているので、<p> の margin には !important を付けている。
   agent-lp-* の付いたブロックが対象。商品の <li> の価格と instock / outofstock は、
   ビルドが商品マスタから書き直す（src/lib/products.mjs の card）。 */

.agent-lp-lead {
  margin: 16px 0 28px;
  padding: 16px 16px 12px;
  border: 1px solid #d5dbe6;
  border-top: 3px solid #0b1b4a;
  background: #f6f8fc;
}
#agent-lp-lead .agent-lp-points {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
#agent-lp-lead .agent-lp-points li {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}
#agent-lp-lead .agent-lp-points li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #f48f09;
  border-bottom: 2px solid #f48f09;
  transform: rotate(-45deg);
}
#agent-lp-lead .agent-lp-points strong {
  color: #0b1b4a;
}
#agent-lp-lead .agent-lp-date {
  margin: 0 0 10px !important;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}
#agent-lp-lead .agent-lp-date b {
  font-size: 18px;
  color: #d6001c;
}
#agent-lp-lead .agent-lp-date small {
  display: block;
  font-size: 11px;
  color: #666;
}
/* お届け予定日は表示時に入る（public/orilab/site.js）。入らなかったときは行ごと出さない。 */
#agent-lp-lead .agent-lp-date:not(:has(b)) {
  display: none;
}
#agent-lp-lead .agent-lp-jump {
  margin: 0 0 4px !important;
}
#agent-lp-lead .agent-lp-jump a,
#agent-lp-bulk .agent-lp-jump a {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f48f09;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.agent-lp-items,
.agent-lp-bulk {
  margin: 0 0 40px;
  scroll-margin-top: 80px;
}
#agent-lp-items .agent-lp-h2,
#agent-lp-bulk .agent-lp-h2 {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 2px solid #0b1b4a;
  background: #f2f3f6;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1b4a;
}
#agent-lp-items p,
#agent-lp-bulk p {
  margin: 0 0 12px !important;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
#agent-lp-items .agent-lp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
#agent-lp-items .agent-lp-toc li {
  margin: 0;
  padding: 0;
}
#agent-lp-items .agent-lp-toc a {
  display: block;
  padding: 6px 12px;
  border: 1px solid #0b1b4a;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: #0b1b4a;
}
#agent-lp-items .agent-lp-h3,
#agent-lp-bulk .agent-lp-h3 {
  margin: 28px 0 6px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 4px solid #f48f09;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1b4a;
  scroll-margin-top: 80px;
}
#agent-lp-items .agent-lp-list {
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 769px) {
  #agent-lp-items .agent-lp-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}
#agent-lp-items .agent-lp-list li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
#agent-lp-items .agent-lp-list li.product::before {
  content: none;
}
#agent-lp-items .agent-lp-link *,
#agent-lp-bulk .agent-lp-bulk-list a,
#agent-lp-items .agent-lp-toc a,
#agent-lp-lead .agent-lp-jump a,
#agent-lp-bulk .agent-lp-jump a {
  text-decoration: none;
}
#agent-lp-items .agent-lp-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #d5dbe6;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: #222;
}
#agent-lp-items .agent-lp-link:hover,
#agent-lp-items .agent-lp-link:focus {
  border-color: #f48f09;
}
#agent-lp-items .agent-lp-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 8px;
  background: #fff;
  object-fit: contain;
}
#agent-lp-items .agent-lp-name {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #0b1b4a;
}
#agent-lp-items .agent-lp-spec {
  margin: 3px 0 0 !important;
  font-size: 11px;
  line-height: 1.5;
  color: #666;
}
#agent-lp-items .agent-lp-price {
  margin: 6px 0 0 !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}
#agent-lp-items .agent-lp-price small {
  font-size: 11px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}
#agent-lp-items .discount-sale {
  display: block;
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  color: #d6001c;
}
#agent-lp-items .discount-sale .discount-sale__price-wrap {
  display: inline;
}
#agent-lp-items .discount-sale .discount-sale__price {
  font-size: 15px;
  font-weight: 700;
  color: #d6001c;
}
#agent-lp-items .agent-lp-more {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #b85f00;
}
#agent-lp-items .agent-lp-more::after {
  content: " ›";
}
/* 注文できなくなった商品は出さない */
#agent-lp-items .agent-lp-list li.outofstock {
  display: none;
}

#agent-lp-items .agent-lp-material {
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid #d5dbe6;
  background: #fff;
}
#agent-lp-items .agent-lp-material div {
  padding: 10px 12px;
  border-bottom: 1px solid #d5dbe6;
}
#agent-lp-items .agent-lp-material div:last-child {
  border-bottom: 0;
}
#agent-lp-items .agent-lp-material dt {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1b4a;
}
#agent-lp-items .agent-lp-material dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

#agent-lp-bulk .agent-lp-bulk-list {
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
@media (min-width: 769px) {
  #agent-lp-bulk .agent-lp-bulk-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
#agent-lp-bulk .agent-lp-bulk-list li {
  margin: 0;
  padding: 0;
}
#agent-lp-bulk .agent-lp-bulk-list a {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #d5dbe6;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  color: #0b1b4a;
}
