/* rd_detail (作り直しの mock): 商品ページ ・ お知らせ・記事 */
:root { --rd-red: #7E0308; --rd-gold: #D99A23; --rd-line: #dcdcdc; }

/* ---- 商品ページ: 最初の画面に 価格 ・ 在庫 ・ 数量 ・ カート ---- */
#page_product_detail .contents_right { display: none; }
#page_product_detail .contents_main { width: 830px; max-width: 100%; }
#page_product_detail .ec-productRole { margin-bottom: 24px; }
#page_product_detail .ec-productRole .ec-grid2 { display: flex; align-items: flex-start; }
#page_product_detail .ec-grid2__img { width: 280px; }
#page_product_detail .ec-grid2__cont { width: 500px; margin-left: 20px; }
#page_product_detail .ec-productRole__priceSale { padding: 8px 0 6px; font-weight: bold; font-size: 14px; }
#page_product_detail .ec-productRole__priceSale .rd-price { font-size: 34px; font-weight: 700; color: var(--rd-red); letter-spacing: 0; }
#page_product_detail .productStock { margin: 0 0 14px; font-size: 14px; color: #444; }
#page_product_detail .ec-productRole__priceRegular { font-size: 13px; color: #666; }
#page_product_detail .ec-productRole__title .ec-headingTitle { margin-bottom: 12px; padding-bottom: 12px; }
#page_product_detail .ec-productRole__actions { margin: 0 0 14px; }
#page_product_detail .ec-productRole .ec-productRole__btn { max-width: 300px; margin-bottom: 14px; }
#page_product_detail .ec-productRole .ec-productRole__btn .ec-blockBtn--action { height: 52px; font-size: 16px; }
#page_product_detail .ec-productRole__tags { padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; }
#page_product_detail .ec-productRole__status { margin: 6px 0; }
#page_product_detail .ec-productRole_description { margin: 10px 0; font-size: 13px; line-height: 1.6; }

/* 数量: ＋− 44px */
.rd-qty { display: flex; align-items: center; gap: 0; }
.rd-qty > span { margin-right: 10px; font-size: 14px; color: #444; }
.rd-qty .rd-qty__btn { width: 44px; height: 44px; border: 1px solid #999; background: #f3f3f3; color: #222; font-size: 20px; line-height: 1; padding: 0; cursor: pointer; border-radius: 0; }
.rd-qty .rd-qty__btn:active { background: #e2e2e2; }
#page_product_detail .rd-qty input[type='number'] { width: 64px; max-width: 64px; height: 44px; margin: 0; padding: 0; text-align: center; border: 1px solid #222; border-left: 0; border-right: 0; border-radius: 0; font-size: 18px; -moz-appearance: textfield; }
#page_product_detail .rd-qty input[type='number']::-webkit-outer-spin-button,
#page_product_detail .rd-qty input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#page_product_detail .detailImages { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
#page_product_detail .detailImages a { display: block; flex: 0 0 auto; width: 90px; margin: 0; }

/* ---- 帯 ---- */
.rd-band { margin: 0 0 26px; }
.rd-band__hd { margin: 0 0 10px; padding: 2px 0 2px 10px; border-left: 4px solid var(--rd-red); font-size: 16px; font-weight: bold; color: #222; line-height: 1.4; }
.rd-band__hd small { margin-left: 10px; font-size: 12px; font-weight: normal; color: #888; }
.rd-band__list { display: flex; gap: 10px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rd-card { flex: 0 0 132px; scroll-snap-align: start; }
.rd-card a { display: block; height: 100%; box-sizing: border-box; padding: 6px; border: 1px solid var(--rd-line); border-radius: 4px; background: #fff; color: #222; text-decoration: none; }
.rd-card__img { display: block; height: 168px; background: #f4f4f4; }
.rd-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rd-card__rarity { display: inline-block; margin: 6px 0 2px; padding: 0 6px; background: var(--rd-red); color: #fff; font-size: 11px; font-weight: bold; line-height: 18px; }
.rd-card__name { display: block; font-size: 12px; font-weight: bold; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 32px; }
.rd-card__code { display: block; font-size: 12px; color: #888; }
.rd-card__price { display: block; margin-top: 2px; font-size: 15px; font-weight: bold; color: var(--rd-red); }
.rd-card__stock { display: block; font-size: 12px; color: #666; }
.rd-card.is-out a { opacity: .6; }
.rd-band__more { margin: 2px 0 0; text-align: right; font-size: 13px; }
.rd-band__more a { color: var(--rd-red); font-weight: bold; }

/* ---- 注意事項 (6 つの開閉) ---- */
.rd-notice { margin: 0 0 24px; border: 1px solid #000; border-radius: 3px; overflow: hidden; }
.rd-notice__hd { margin: 0; padding: 10px 14px; background: var(--rd-red); color: #fff; font-size: 14px; font-weight: bold; }
.rd-notice__item { border-top: 1px solid var(--rd-line); }
.rd-notice__hd + .rd-notice__item { border-top: 0; }
.rd-notice__item > summary { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 40px 0 14px; font-size: 14px; font-weight: bold; cursor: pointer; list-style: none; box-sizing: border-box; }
.rd-notice__item > summary::-webkit-details-marker { display: none; }
.rd-notice__item > summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(45deg); transition: transform .15s; }
.rd-notice__item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.rd-notice__n { margin-left: 8px; font-size: 12px; font-weight: normal; color: #888; }
.rd-notice__item ul { margin: 0; padding: 0 14px 12px 28px; font-size: 13px; line-height: 1.7; }
.rd-notice__item li { list-style: disc; margin: 0 0 6px; }
.rd-notice__item li::before { content: none; }

/* ---- 下に固定のカート帯 ---- */
.rd-stickycart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 12px; box-sizing: border-box; background: #fff; border-top: 1px solid var(--rd-line); box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.rd-stickycart[hidden] { display: none; }
.rd-stickycart__price { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.rd-stickycart__price b { font-size: 20px; color: var(--rd-red); }
.rd-stickycart__price small { font-size: 11px; color: #666; }
.rd-stickycart__btn { flex: 1 1 auto; max-width: 320px; height: 40px; border: 0; border-radius: 0; background: var(--rd-gold); color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
body.rd-sticky-on { padding-bottom: 48px; }

@media only screen and (max-width: 960px) {
  #page_product_detail .ec-productRole .ec-grid2 { display: block; }
  #page_product_detail .ec-grid2__img { width: auto; margin-bottom: 8px; }
  #page_product_detail .ec-grid2__cont { width: auto; margin-left: 0; }
  /* 札の絵は本番どおり幅いっぱい (11-04 見比べ、高さ 300px 固定で幅 214px に縮んで札の字が読めなかった) */
  #page_product_detail .detailMainImages { height: auto; text-align: center; }
  #page_product_detail .detailMainImages img { width: 100%; max-width: 420px; height: auto; display: inline-block; }
  #page_product_detail .ec-productRole__title { display: none; }
  #page_product_detail .ec-productRole__priceSale { padding-top: 4px; }
  #page_product_detail .ec-productRole__priceSale .rd-price { font-size: 30px; }
  #page_product_detail .productStock { margin-bottom: 10px; }
  #page_product_detail .ec-productRole__actions { margin-bottom: 12px; }
  #page_product_detail .ec-productRole .ec-productRole__btn { max-width: none; width: 100%; margin-bottom: 12px; }
  #page_product_detail .ec-productRole .ec-productRole__btn .ec-blockBtn--action { height: 52px; width: 100%; }
  #page_product_detail .hdS.bigHd { margin-bottom: 8px; }
  .rd-card { flex-basis: 112px; }
  .rd-card__img { height: 140px; }
}

/* ---- お知らせ・記事 ---- */
.rd-news { margin-bottom: 40px; font-size: 14px; color: #222; }
.rd-news__list { margin: 0; padding: 0; list-style: none; }
.rd-news__item { border-bottom: 1px solid var(--rd-line); }
.rd-news__item a { display: flex; gap: 14px; padding: 14px 0; color: #222; text-decoration: none; }
.rd-news__thumb { flex: 0 0 96px; width: 96px; height: 72px; background: #f1f1f1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rd-news__thumb img { max-width: 100%; max-height: 100%; object-fit: cover; width: 100%; height: 100%; }
.rd-news__noimg { font-size: 11px; color: #aaa; font-weight: bold; }
.rd-news__body { display: block; min-width: 0; }
.rd-news__date { display: block; font-size: 12px; color: #888; margin-bottom: 2px; }
.rd-news__title { display: block; font-size: 15px; font-weight: bold; line-height: 1.5; color: var(--rd-red); }
.rd-news__lead { display: block; margin-top: 4px; font-size: 13px; color: #555; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rd-news__empty { padding: 24px 0; }
.rd-news--detail .rd-news__date { margin: 0 0 12px; }
.rd-news__content { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.rd-news__content img { max-width: 100%; height: auto; }
.rd-news__content figure { margin: 12px 0; }
.rd-news__content figure.wp-block-table { overflow-x: auto; }
.rd-news__content table { border-collapse: collapse; width: 100%; font-size: 13px; }
.rd-news__content td, .rd-news__content th { border: 1px solid var(--rd-line); padding: 6px 8px; vertical-align: top; }
.rd-news__content a { color: var(--rd-red); text-decoration: underline; }
.rd-news__content ul { padding-left: 1.4em; } .rd-news__content ul li { list-style: disc; }
.rd-news__content iframe { max-width: 100%; }
.rd-news__related { margin: 28px 0 8px; padding: 14px; background: #f7f3ee; }
.rd-news__related h4 { margin: 0 0 8px; font-size: 14px; }
.rd-news__related li { margin: 6px 0; }
.rd-news__related a { color: var(--rd-red); font-weight: bold; }
.rd-news__back { margin: 20px 0; }
.rd-news__back a { display: inline-block; padding: 12px 16px; border: 1px solid #999; color: #222; text-decoration: none; min-height: 20px; }
@media only screen and (max-width: 960px) {
  .rd-news__thumb { flex-basis: 84px; width: 84px; height: 64px; }
}

/* ---- トップ (PC): 右の注目商品を出さず、本文を広げてタイトルの帯を 5 列 (11-04 先輩「注目商品いらなくね」「横にもう1-2増やせば」) ---- */
@media only screen and (min-width: 961px) {
    .front_page .contents_right { display: none; }
    .front_page .contents_main { flex: 1 1 auto; width: auto; min-width: 0; }
    /* 左の欄は一覧と同じ 250px で固定 (元の calc(50% - 415px) だと幅 980 のスマホの PC 表示で 75px に潰れていた、11-04) */
    .front_page .contents_left { flex: 0 0 280px; width: 280px; padding-right: 30px; box-sizing: border-box; }
    .front_page .topGoods ul { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-gap: 8px; }
    .front_page .topGoods img { display: block; width: 100%; height: auto; }
    .front_page .rd-top-hd { margin: 0 0 10px; line-height: 1.5; }
}
@media only screen and (min-width: 961px) and (max-width: 1240px) {
    .front_page .topGoods ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- 商品ページ (PC): 右の欄が無い分、本文が右へ寄って隙間が出ていた。左の欄と同じ幅の空きを右にも置いて真ん中へ ---- */
@media only screen and (min-width: 961px) {
    #page_product_detail .ec-contents .ec-inner02::after { content: ""; display: block; flex: none; width: calc(50% - 415px); padding-left: 30px; box-sizing: border-box; }
}
@media only screen and (min-width: 961px) {
    .front_page .topRecommendUl { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
