html,
body {
  overflow-x: hidden;
}

:root {
  --site-header-height: 88px;
  --guide-height: 126px;
  --side-width: 260px;
  --page-gap: 20px;
  --page-pad: 16px;
}

header,
#header,
.site-header,
.l-header,
.global-header,
.header-wrap,
.header_area,
#globalHeader,
#siteHeader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.shopcart-pagewide {
  width: 100%;
  background: #ffffff;
  padding-top: var(--site-header-height);
  box-sizing: border-box;
}

/* ===== 固定上部 ===== */
.shopcart-fixed-top {
  position: fixed;
  top: calc(var(--site-header-height) + 8px);
  left: var(--page-pad);
  right: var(--page-pad);
  z-index: 900;
  background: #ffffff;
}

.shopcart-fax-guide {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 10px 14px;
  box-sizing: border-box;
}

.shopcart-fax-guide__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.shopcart-fax-guide__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.shopcart-fax-guide__sublead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555555;
}

.shopcart-fax-guide__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.shopcart-fax-guide__btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #7d5a2f;
  border-radius: 8px;
  background: #8b6a3d;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  font-size: 0.92rem;
}

.shopcart-fax-guide__btn--sub {
  background: #ffffff;
  color: #8b6a3d;
}

.shopcart-fax-guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eeeeee;
}

.shopcart-fax-guide__metaItem {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #666666;
}

.shopcart-fax-guide__metaItem strong {
  color: #333333;
}

/* ===== 固定左サイド ===== */
.shopcart-fixed-side {
  position: fixed;
  top: calc(var(--site-header-height) + var(--guide-height) + 52px);
  left: var(--page-pad);
  width: var(--side-width);
  z-index: 850;
}

.shopcart-index2-side {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  max-height: calc(100vh - (var(--site-header-height) + var(--guide-height) + 68px));
  overflow-y: auto;
}

.shopcart-index2-side__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.shopcart-index2-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopcart-index2-side__item {
  margin: 0 0 10px;
}

.shopcart-index2-side__link {
  display: block;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  color: #333333;
  text-decoration: none;
}

.shopcart-index2-side__link:hover {
  background: #f7f7f7;
}

/* ===== 本文 ===== */
.shopcart-content-shell {
  padding-top: calc(var(--guide-height) + 28px);
  padding-left: calc(var(--side-width) + var(--page-gap) + var(--page-pad));
  padding-right: var(--page-pad);
  padding-bottom: 40px;
  box-sizing: border-box;
}

.shopcart-index2-main {
  min-width: 0;
}

.shopcart-index2-box {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 16px;
}

.shopcart-index2-box__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.shopcart-index2-error {
  background: #fff4f4;
  color: #a33;
  border: 1px solid #e3bcbc;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== 商品一覧 ===== */
.shopcart-index2-oldgoods .shopcart-goodslist--fax {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shopcart-index2-oldgoods .sc-card2--fax {
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-width: 0;
  align-items: stretch;
}

.shopcart-index2-oldgoods .sc-card2__photo--fax {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
  min-height: 132px;
  border-right: 1px solid #eeeeee;
}

.shopcart-index2-oldgoods .sc-card2__photo--fax img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 108px;
  display: inline-block;
  object-fit: contain;
}

.shopcart-index2-oldgoods .sc-card2__main--fax {
  padding: 10px 12px 12px;
  min-width: 0;
  background: #ffffff;
}

.shopcart-index2-oldgoods .sc-card2__code {
  margin: 0 0 5px;
  font-size: 0.84rem;
  color: #666666;
  line-height: 1.4;
}

.shopcart-index2-oldgoods .sc-card2__name {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: bold;
  color: #222222;
}

.shopcart-index2-oldgoods .sc-card2__nameLink {
  text-decoration: none;
  color: inherit;
}

.shopcart-index2-oldgoods .sc-card2__desc {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #444444;
}

.shopcart-index2-oldgoods .sc-card2__price {
  margin: 0 0 6px;
  font-weight: bold;
  color: #7d2d2d;
  font-size: 0.95rem;
}

.shopcart-index2-oldgoods .sc-card2__note {
  font-size: 0.8rem;
  color: #444444;
  background: #ffffff;
  padding: 0;
  border-radius: 0;
  line-height: 1.45;
}

.shopcart-index2-oldgoods .sc-card2__sub {
  margin-top: 7px;
}

.shopcart-index2-oldgoods .sc-card2__pdfbtn {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #bbbbbb;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
}

.shopcart-index2-oldgoods .shopcart-addcart,
.shopcart-index2-oldgoods .sc-card2__bar,
.shopcart-index2-oldgoods .sc-qty,
.shopcart-index2-oldgoods .shopcart-btn,
.shopcart-index2-oldgoods select[name="qty"],
.shopcart-index2-oldgoods input[name="qty"],
.shopcart-index2-oldgoods input[name="quantity"],
.shopcart-index2-oldgoods button[type="submit"] {
  display: none !important;
}

@media (max-width: 1400px) {
  .shopcart-index2-oldgoods .shopcart-goodslist--fax {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* レスポンシブ1回目でくっついて見えるのをもう少し離す */
@media (max-width: 1280px) {
  :root {
    --guide-height: 182px;
    --side-width: 240px;
  }

  .shopcart-fax-guide__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .shopcart-fax-guide__actions {
    justify-content: flex-start;
  }

  .shopcart-fax-guide__meta {
    flex-direction: column;
    gap: 6px;
  }

  .shopcart-fixed-side {
    top: calc(var(--site-header-height) + var(--guide-height) + 38px);
  }

  .shopcart-index2-side {
    max-height: calc(100vh - (var(--site-header-height) + var(--guide-height) + 54px));
  }

  .shopcart-content-shell {
    padding-top: calc(var(--guide-height) + 34px);
    padding-left: calc(var(--side-width) + var(--page-gap) + var(--page-pad));
  }
}

@media (max-width: 1024px) {
  header,
  #header,
  .site-header,
  .l-header,
  .global-header,
  .header-wrap,
  .header_area,
  #globalHeader,
  #siteHeader {
    position: static !important;
  }

  .shopcart-pagewide {
    padding-top: 0;
  }

  .shopcart-fixed-top,
  .shopcart-fixed-side {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
  }

  .shopcart-content-shell {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .shopcart-index2-oldgoods .shopcart-goodslist--fax {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .shopcart-content-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .shopcart-fax-guide {
    padding: 12px;
  }

  .shopcart-fax-guide__title {
    font-size: 1.4rem;
  }

  .shopcart-fax-guide__btn {
    width: 100%;
  }

  .shopcart-index2-oldgoods .shopcart-goodslist--fax {
    grid-template-columns: 1fr;
  }

  .shopcart-index2-oldgoods .sc-card2--fax {
    grid-template-columns: 96px 1fr;
  }

  .shopcart-index2-oldgoods .sc-card2__photo--fax img {
    max-height: 96px;
  }
}