/* =========================================================
   このページ専用スコープ（.pcwrap-page で限定）
========================================================= */

/* --------------------------------
   ベース（PC）
-------------------------------- */
.pcwrap-page {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* 商品リスト（PC 4列 + ギャップ） */
.pcwrap-page .image-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4つ区切り */
  gap: 20px;
  margin-bottom: 20px;
}

/* --------------------------------
   商品カード
-------------------------------- */
.pcwrap-page .item {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 3px 3px 10px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pcwrap-page .item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.pcwrap-page .item p {
  font-size: 16px;
  margin: 10px 0;
  text-align: left;
}

.pcwrap-page .item .title {
  font-size: 16px;
  font-weight: bold;
  min-height: 60px;
  border-bottom: 1px dotted #999;
  padding-bottom: 3px;
}

.pcwrap-page .item .specs {
  flex-grow: 1;
  min-height: 100px;
}

.pcwrap-page .item .specs p {
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px dotted #999;
  padding-bottom: 3px;
}

.pcwrap-page .item .bottom {
  min-height: 10px;
}

.pcwrap-page .item .price {
  font-size: 17.6px;
  font-weight: bold;
  color: red;
}

/* --- 2枚重ね画像（pickup + 商品画像） --- */
.pcwrap-page .item a {
  position: relative;
  display: block;
}

.pcwrap-page .item a img:first-child {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  z-index: 2;
}

.pcwrap-page .item a img:nth-child(2) {
  width: 100%;
}

/* --------------------------------
   上部の説明・お気に入り（既存要素）
-------------------------------- */
.pcwrap-page .wrapper {
  padding: 20px;
  text-align: center;
}

.pcwrap-page .wrapper h2 {
  color: #FF0000;
  background: yellow;
  text-align: center;
}

.pcwrap-page .favorite .sub-title {
  font-size: 38.4px;
  margin-top: 0;
  text-decoration: underline;
  color: #222;
  text-align: center;
}

.pcwrap-page .favorite p {
  color: #222;
  font-size: 28.8px;
}

.pcwrap-page .explanation h1,
.pcwrap-page .explanation h2 {
  text-align: center;
}

.pcwrap-page .explanation h1 span {
  display: inline-block;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
}

.pcwrap-page .explanation img {
  width: 300px;
  height: auto;
}

.pcwrap-page .text-center h3 {
  margin-top: 50px;
  text-align: left;
}

/* --------------------------------
   挿入要素：導入・用途補足・強み・FAQ
-------------------------------- */
.pcwrap-page .beginner-intro {
  padding: 18px 16px;
  margin: 6px 0 16px;
  background: #f6fbff;
  border: 1px solid #dfe9ff;
  border-radius: 10px;
}

.pcwrap-page .beginner-intro h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #003E97;
}

.pcwrap-page .beginner-intro p {
  margin: 0;
  color: #333;
}

.pcwrap-page .section-lead {
  margin: 8px 0 12px;
  color: #333;
  font-size: 16px;
}

.pcwrap-page .subhead {
  margin: 14px 0 6px;
}

.pcwrap-page .subhead h4 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #222;
}

.pcwrap-page .subhead h4,
.pcwrap-page .subhead p {
  text-align: left;
}

.pcwrap-page .scroll-hint {
  position: relative;
  font-size: 14px;
  color: #666;
  text-align: right;
  margin: 4px 8px 8px;
}

.pcwrap-page .scroll-hint::after {
  content: "→";
  margin-left: 4px;
}

/* 強み */
.pcwrap-page .pcwrap-merit {
  margin: 24px 0;
  padding: 18px 16px;
  background: #f9f9ff;
  border: 1px solid #e5e8ff;
  border-radius: 10px;
}

.pcwrap-page .pcwrap-merit h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #003E97;
}

.pcwrap-page .pcwrap-merit ul {
  margin: 8px 0 0 22px;
}

.pcwrap-page .pcwrap-merit li {
  margin: 6px 0;
}

/* FAQ */
.pcwrap-page .faq {
  margin: 24px 0;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.pcwrap-page .faq h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #003E97;
}

.pcwrap-page .faq h3 {
  margin: 14px 0 4px;
  font-size: 16px;
}

.pcwrap-page .faq p {
  margin: 0 0 10px;
}

/* --------------------------------
   TOPへ戻るボタン
-------------------------------- */
.pcwrap-page #back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #5D99FF;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 1000;
  text-align: center;
  line-height: 50px;
}

.pcwrap-page #back-to-top:hover {
  background-color: #005BB5;
}

/* =========================================================
   スマホ（〜768px）
========================================================= */
@media (max-width: 768px) {

  /* ヘッダー余白（150pxを想定して +30px） */
  .pcwrap-page .explanation {
    padding-top: 180px;
  }

  /* --- 横スクロール（カルーセル風） --- */
  .pcwrap-page .image-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    grid-template-columns: unset;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 10px 10px;
    scrollbar-width: none;
  }

  .pcwrap-page .image-container::-webkit-scrollbar {
    display: none;
  }

  .pcwrap-page .image-container .item {
    scroll-snap-align: start;
    width: auto;
    flex: none;
    min-height: 520px;
  }

  .pcwrap-page .item .title {
    font-size: 16px;
  }

  .pcwrap-page .item .specs p {
    font-size: 14.4px;
  }

  .pcwrap-page .item .price {
    font-size: 16px;
  }

  .pcwrap-page .wrapper {
    padding: 15px;
  }

  .pcwrap-page .explanation h1,
  .pcwrap-page .explanation h2,
  .pcwrap-page .text-center h3 {
    font-weight: bold;
  }

  .pcwrap-page .explanation h1 {
    font-size: 22.4px;
  }

  .pcwrap-page .explanation h2 {
    font-size: 22.4px;
  }

  .pcwrap-page .text-center h3 {
    font-size: 19.2px;
  }

  .pcwrap-page .beginner-intro h2 {
    font-size: 20px;
  }

  .pcwrap-page .section-lead {
    font-size: 15px;
  }

  .pcwrap-page .subhead h4 {
    font-size: 17px;
  }
}

/* =========================================================
   600px以下：画像切替
========================================================= */
@media (max-width: 600px) {
  .pcwrap-page .favorite-img {
    content: url('work_images/sale/faborites-sp.png');
  }
  .pcwrap-page .favoriteitem-img {
    content: url('work_images/sale/faboritesitem-sp.png');
  }
}

/* =========================================================
   用途ジャンプボタン
========================================================= */
.pcwrap-page .usecase-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.pcwrap-page .usecase-jump a {
  display: inline-block;
  padding: 10px 14px;
  background: #003E97;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease;
}

.pcwrap-page .usecase-jump a:hover,
.pcwrap-page .usecase-jump a:focus {
  background: #005BB5;
  outline: none;
}

.pcwrap-page .usecase-jump a:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 94, 181, .35);
}

/* スムーズスクロール（CSSのみ） */
html:focus-within {
  scroll-behavior: smooth;
}

/* アンカーのオフセット（ヘッダー回避） */
.pcwrap-page .anchor-offset {
  scroll-margin-top: 180px; /* ヘッダー約150px + 調整 */
}

@media (max-width: 768px) {

  .pcwrap-pick-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 6px 10px 6px;
  }

  .pcwrap-pick-controls button {
    width: 32px;
    height: 32px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;

    font-size: 14px;
    font-weight: bold;
    color: #000;

    cursor: pointer;
    line-height: 1;
  }

  .pcwrap-pick-controls button:active {
    background: #f2f2f2;
  }
}

@media (min-width: 769px) {
  .pcwrap-pick-controls {
    display: none;
  }
}