
/* =========================================
   No Body No Fun
   PRIVATE SHOP
   レイアウト修正版
   ========================================= */


/* =========================================
   Shop全体
   ========================================= */

.nbnf-shop {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 100px;
}


/* =========================================
   Shop Header
   ========================================= */

.nbnf-shop-header {
  text-align: center;
  margin-bottom: 90px;
}

.nbnf-shop-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.nbnf-shop-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nbnf-shop-lead {
  max-width: 650px;
  margin: 25px auto 0;

  color: #666;

  font-size: 15px;
  line-height: 2;
}


/* =========================================
   商品セクション
   ========================================= */

.nbnf-shop-products {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 35px;
}


/* =========================================
   ITEMS見出し
   ========================================= */

.nbnf-shop-section-title {
  width: 100%;

  grid-column: 1 / -1;

  margin: 0 0 35px;
}

.nbnf-shop-section-title p {
  margin: 0 0 5px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.25em;
}

.nbnf-shop-section-title h2 {
  margin: 0;

  font-size: 25px;
}


/* =========================================
   商品カード
   ========================================= */

.nbnf-shop-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;

  background: #fff;

  border: 1px solid #e7e7e7;

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.nbnf-shop-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.09);
}


/* =========================================
   Gallery
   ========================================= */

.nbnf-shop-gallery {
  padding: 14px;

  background: #f7f7f7;
}

.nbnf-shop-card-image {
  width: 100%;
  height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  overflow: hidden;

  cursor: zoom-in;
}

.nbnf-shop-card-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

.nbnf-shop-card:hover
.nbnf-shop-card-image img {
  transform: scale(1.025);
}


/* =========================================
   Thumbnails
   ========================================= */

.nbnf-shop-thumbnails {
  display: flex;
  gap: 8px;

  margin-top: 10px;
}

.nbnf-shop-thumb {
  width: 72px;
  height: 72px;

  padding: 0;

  border: 1px solid transparent;

  background: #fff;

  overflow: hidden;

  cursor: pointer;

  transition:
    border-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nbnf-shop-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.nbnf-shop-thumb:hover {
  transform: translateY(-2px);

  opacity: 0.8;
}

.nbnf-shop-thumb.is-active {
  border-color: #111;
}


/* =========================================
   Card body
   ========================================= */

.nbnf-shop-card-body {
  padding: 30px;
}

.nbnf-shop-item-number {
  margin: 0 0 9px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.2em;

  color: #888;
}

.nbnf-shop-product-title {
  margin: 0;

  font-size: 22px;
  line-height: 1.45;
}

.nbnf-shop-condition {
  margin: 13px 0 0;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.1em;

  color: #777;
}

.nbnf-shop-description {
  margin: 22px 0 0;

  font-size: 14px;
  line-height: 1.9;

  color: #555;
}


/* =========================================
   Price
   ========================================= */

.nbnf-shop-price {
  display: flex;
  align-items: baseline;

  gap: 14px;

  margin-top: 25px;
  padding-top: 20px;

  border-top: 1px solid #eee;
}

.nbnf-shop-price span {
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.15em;

  color: #888;
}

.nbnf-shop-price strong {
  font-size: 25px;
}


/* =========================================
   Status
   ========================================= */

.nbnf-shop-status {
  margin: 12px 0 0;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.18em;
}

.nbnf-shop-status-available {
  color: #111;
}

.nbnf-shop-status-sold {
  color: #999;

  text-decoration: line-through;
}


/* =========================================
   Buy button
   ========================================= */

.nbnf-shop-buy {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  margin-top: 20px;

  background: #111;
  color: #fff;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.nbnf-shop-buy:hover {
  background: #333;

  transform: translateY(-2px);
}

.nbnf-shop-buy-disabled {
  opacity: 0.4;

  pointer-events: none;
}


/* =========================================
   ▼ ここが今回の重要部分 ▼
   Information
   ========================================= */

.nbnf-shop-info {
  width: 100%;

  margin-top: 110px;

  border-top: 1px solid #ddd;
}


/*
  中身を左右いっぱいにせず、
  商品カードと同じ基準で収める
*/

.nbnf-shop-info-block {
  width: min(100%, 1000px);

  margin: 0 auto;

  padding: 55px 20px;

  border-bottom: 1px solid #ddd;
}


/* =========================================
   Information headings
   ========================================= */

.nbnf-shop-info-label {
  margin: 0 0 10px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.22em;
}

.nbnf-shop-info-block h2 {
  margin: 0 0 25px;

  font-size: 25px;
}


/*
  説明文も左端に張り付かないようにする
*/

.nbnf-shop-info-block > p:not(.nbnf-shop-info-label) {
  max-width: 800px;

  margin: 0 0 15px;

  font-size: 14px;
  line-height: 2;

  color: #555;
}


/* =========================================
   HOW TO BUY
   ========================================= */

.nbnf-shop-steps {
  width: 100%;
  max-width: 800px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.nbnf-shop-steps li {
  display: flex;

  gap: 20px;

  padding: 17px 0;

  border-bottom: 1px solid #eee;

  font-size: 14px;
}

.nbnf-shop-steps li:first-child {
  border-top: 1px solid #eee;
}

.nbnf-shop-steps span {
  min-width: 30px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.1em;
}


/* =========================================
   NOTES
   ========================================= */

.nbnf-shop-notes ul {
  max-width: 800px;

  margin: 0;
  padding-left: 20px;
}

.nbnf-shop-notes li {
  margin-bottom: 10px;

  font-size: 14px;
  line-height: 1.8;

  color: #555;
}


/* =========================================
   Footer
   ========================================= */

.nbnf-shop-footer {
  padding-top: 80px;

  text-align: center;

  color: #777;

  font-size: 13px;
}

.nbnf-shop-footer-en {
  margin: 0 0 10px;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.25em;
}

.nbnf-shop-back {
  display: inline-block;

  margin-top: 25px;

  color: #111;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;

  border-bottom: 1px solid #111;

  padding-bottom: 4px;
}


/* =========================================
   Lightbox
   ========================================= */

.nbnf-shop-lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  background: rgba(0, 0, 0, 0.9);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.nbnf-shop-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.nbnf-shop-lightbox-inner {
  position: relative;

  width: min(1100px, 95vw);

  display: flex;
  flex-direction: column;
  align-items: center;

  transform: scale(0.94);

  transition:
    transform 0.35s ease;
}

.nbnf-shop-lightbox.is-open
.nbnf-shop-lightbox-inner {
  transform: scale(1);
}

.nbnf-shop-lightbox-image {
  display: block;

  max-width: 90vw;
  max-height: 78vh;

  width: auto;
  height: auto;

  object-fit: contain;

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.5);
}

.nbnf-shop-lightbox-caption {
  margin: 16px 0 0;

  color: #fff;

  font-size: 13px;
  letter-spacing: 0.08em;

  text-align: center;
}

.nbnf-shop-lightbox-close,
.nbnf-shop-lightbox-prev,
.nbnf-shop-lightbox-next {
  position: absolute;

  border: 0;

  color: #fff;

  background: rgba(255, 255, 255, 0.12);

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* 左右の矢印 */
.nbnf-shop-lightbox-prev,
.nbnf-shop-lightbox-next {
  font-size: 56px;
  font-weight: bold;
  line-height: 1;

  color: #fff;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.8);
}

.nbnf-shop-lightbox-close:hover,
.nbnf-shop-lightbox-prev:hover,
.nbnf-shop-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nbnf-shop-lightbox-close {
  top: -45px;
  right: 0;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  font-size: 27px;
  line-height: 1;
}

.nbnf-shop-lightbox-close:hover {
  transform: rotate(90deg);
}

.nbnf-shop-lightbox-prev,
.nbnf-shop-lightbox-next {
  top: 50%;

  width: 48px;
  height: 70px;

  margin-top: -35px;

  font-size: 28px;
}

.nbnf-shop-lightbox-prev {
  left: 15px;
}

.nbnf-shop-lightbox-next {
  right: 15px;
}

body.nbnf-shop-lightbox-open {
  overflow: hidden;
}


/* =========================================
   Back to top
   ========================================= */

.nbnf-shop-backtop {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 1000;

  width: 46px;
  height: 46px;

  border: 1px solid #222;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 20px;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.nbnf-shop-backtop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nbnf-shop-backtop:hover {
  background: #111;
  color: #fff;
}


/* =========================================
   Smartphone
   ========================================= */

@media (max-width: 760px) {

  .nbnf-shop {
    width: calc(100% - 28px);

    padding-top: 55px;
  }

  .nbnf-shop-header {
    margin-bottom: 60px;
  }

  .nbnf-shop-title {
    font-size: 35px;
  }

  .nbnf-shop-pc {
    display: none;
  }

  .nbnf-shop-products {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .nbnf-shop-card-image {
    height: min(105vw, 520px);
  }

  .nbnf-shop-card-body {
    padding: 25px 22px;
  }

  .nbnf-shop-product-title {
    font-size: 20px;
  }

  .nbnf-shop-thumb {
    width: 64px;
    height: 64px;
  }


  /*
    スマホでは情報部分も
    画面端に張り付かないようにする
  */

  .nbnf-shop-info-block {
    width: 100%;

    padding: 42px 10px;
  }

  .nbnf-shop-info {
    margin-top: 75px;
  }


  .nbnf-shop-lightbox {
    padding: 15px;
  }

  .nbnf-shop-lightbox-image {
    max-width: 94vw;
    max-height: 72vh;
  }

  .nbnf-shop-lightbox-prev,
  .nbnf-shop-lightbox-next {
    width: 42px;
    height: 55px;

    margin-top: -27px;

    font-size: 23px;
  }

  .nbnf-shop-lightbox-prev {
    left: 5px;
  }

  .nbnf-shop-lightbox-next {
    right: 5px;
  }

  .nbnf-shop-backtop {
    right: 14px;
    bottom: 14px;

    width: 42px;
    height: 42px;
  }

}


/* =========================================
   Very small smartphone
   ========================================= */

@media (max-width: 420px) {

  .nbnf-shop {
    width: calc(100% - 20px);
  }

  .nbnf-shop-title {
    font-size: 30px;
  }

  .nbnf-shop-lead {
    font-size: 13px;
  }

  .nbnf-shop-card-image {
    height: 100vw;
  }

  .nbnf-shop-card-body {
    padding: 22px 18px;
  }

  .nbnf-shop-thumb {
    width: 58px;
    height: 58px;
  }

  .nbnf-shop-info-block {
    padding-left: 8px;
    padding-right: 8px;
  }

}


/* =========================================
   Reduced motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .nbnf-shop-card,
  .nbnf-shop-card-image img,
  .nbnf-shop-thumb,
  .nbnf-shop-lightbox,
  .nbnf-shop-lightbox-inner,
  .nbnf-shop-backtop {
    transition: none;
  }

}

