
/* 通常のCSS */
.container{
/* 	padding: 0; */
/* 	margin: 0; */
}
/*
.wrapper {
  display: flex;
  flex-direction: row;
}
*/
.topicPath a,
#paper-info-root .pankuzu .bc-link {
	cursor: pointer;
	color: #0fd052;
	text-decoration: none;
}

#paper-info-root .pankuzu .bc-link:hover {
	text-decoration: underline;
}

/* スマホ: cssMainArea / cssCustomerpage の .topicPath 余白・非表示が乗らないよう bc-link のみ使用 */
@media screen and (max-width: 767px) {
  #paper-info-root .pankuzu .bc-link {
    padding-top: 0 !important;
    padding-left: 0 !important;
    display: inline !important;
  }

  #paper-info-root .top-wrapper > nav.pankuzu {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  /* 一覧：検索行（用紙名で検索・検索・フィルター）の左右余白 */
  #paper-info-root > .wrapper:not(.product-detail-page) .top-wrapper .search-bar-wrap {
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  /* 一覧：検索行〜用紙リストの上下余白を詰める */
  #paper-info-root > .wrapper:not(.product-detail-page) .list-wrapper {
    margin-top: 4px;
  }

  #paper-info-root > .wrapper:not(.product-detail-page) .filter-display-container {
    margin: 4px 0;
  }

  #paper-info-root > .wrapper:not(.product-detail-page) .paper-list-section {
    margin-top: 8px;
  }

  #paper-info-root > .wrapper:not(.product-detail-page) .list-container {
    padding-top: 4px;
  }
}

.top-wrapper{
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#paper-info-root .top-wrapper .search-bar-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 500px;
	max-width: 100%;
	flex-shrink: 0;
}
/* 検索枠＋モバイル用インラインフィルター（PC ではボタン非表示） */
#paper-info-root .paper-info-search-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 0;
}
#paper-info-root .paper-info-filter-open-btn {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
  background-color: #0ec3f1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  white-space: nowrap;
}
#paper-info-root .paper-info-filter-open-btn:hover {
  background-color: #0aabdd;
}
#paper-info-root .paper-info-filter-open-btn__text {
	display: inline;
}
.list-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-top: 20px;
}

/* 一覧・検索結果：パンくず直下〜リストまでの余白を詰める */
#paper-info-root > .wrapper:not(.product-detail-page) nav.pankuzu {
  margin-bottom: 0;
}

#paper-info-root > .wrapper:not(.product-detail-page) .list-wrapper {
  margin-top: 10px;
}

#paper-info-root > .wrapper:not(.product-detail-page) .top-wrapper .search-bar-wrap {
  margin-top: 0;
}

#paper-info-root > .wrapper:not(.product-detail-page) .paper-info-search-chip-row {
  margin-top: 6px;
}
.product-detail-page .list-container.product-detail-main {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}
.search-bar {
  width: 500px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 0;
  right: 0;
}

.search-input {
  flex: 1;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.search-button {
  background: #008be9;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 5px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-button:hover {
  background: #0076c7;
}

/* 検索窓直下のチップ（フィルターチップと同系・キーワード＋✕） */
.paper-info-search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}
#paper-info-root .search-bar-wrap .paper-info-search-chip {
  max-width: 100%;
  flex: 0 1 auto;
}
#paper-info-root .search-bar-wrap .paper-info-search-chip > span {
  min-width: 0;
  word-break: break-word;
}
.filter-item--search {
  border-bottom: none;
  padding-bottom: 0;
}
.filter-item--search .paper-info-search-chip {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .search-bar-wrap .paper-info-search-chip-row {
    display: none;
  }
}

#paper-info-root .search-bar-wrap .loading-text,
#paper-info-root .search-bar-wrap .error-text {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 0;
}
.loading-text {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.error-text {
  font-size: 14px;
  color: red;
  margin-top: 5px;
}

.sidebar {
  width: 250px;
  background: #f9f9fc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sidebar .paper-info-sort-block {
  margin-bottom: 10px;
}
/* 並び替えの下の「フィルター」: h3 の負 margin-top（先頭用）を打ち消して被りを防ぐ */
.sidebar .paper-info-sort-block + h3 {
  margin-top: 4px;
  margin-right: -20px;
  margin-bottom: 14px;
  margin-left: -20px;
}
.sidebar .paper-info-sort-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-weight: normal;
  color: #333;
  cursor: default;
}
.sidebar .paper-info-sort-label-text {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #ddd;
}
.sidebar .paper-info-sort-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #333;
}
.sidebar .paper-info-sort-select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
#paper-info-root .sidebar-responsive .paper-info-sort-block {
  margin-bottom: 10px;
}
#paper-info-root .product-card .product-card-title {
  margin-bottom: 4px;
}
#paper-info-root .product-card .paper-info-list-card-price-rank {
  margin: 0 0 6px;
  line-height: 1.2;
}
#paper-info-root .product-card .paper-info-price-rank-badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: #e8f0ff;
  background: #1a3558;
  border: 1px solid rgba(180, 200, 240, 0.45);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.02em;
  vertical-align: top;
}
.list-container{
	width: 100%;
    padding:0px 0px 0px 20px;
}
.sidebar .filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffea4c;
  color: #333;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar .filter-button:hover {
  background: #ffdb1a;
}

.sidebar.search-input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.sidebar h3 {
  cursor: default;
  user-select: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3d4350;
  margin: -20px -20px 14px -20px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #eceef3 0%, #dfe3eb 100%);
  border-bottom: 1px solid #c5cad6;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: static;
}
/* cssMainArea.css の .container h3:before（FA の三角）がサイドバー見出しに乗るのを防ぐ */
.sidebar h3::before,
.sidebar h3:before {
  content: none !important;
  display: none !important;
}

.filter-modal .modal-content h3::before,
.filter-modal .modal-content h3:before {
  content: none !important;
  display: none !important;
}

/* フィルターモーダル：タイトルを天側ぴったり（モーダル全体は上も角丸・下余白は内容に合わせる） */
#paper-info-root .filter-modal .modal-content {
  padding: 0 16px 10px;
  overflow: hidden;
  border-radius: 8px;
  height: auto;
  max-height: min(80vh, calc(100dvh - 48px));
  margin-top: 0;
  box-sizing: border-box;
}

#paper-info-root .filter-modal .modal-content .sidebar-modal-inner > h3,
#paper-info-root .filter-modal .modal-content h3 {
  position: static;
  margin: 0 -16px 10px;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #fff;
  background: #0ec3f1;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

/* フィルターモーダル内サイドバー（480px で .sidebar{display:none} を打ち消す） */
#paper-info-root .filter-modal .sidebar.sidebar-modal-inner {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* フィルターモーダル：用途・色の選択肢を横並び */
#paper-info-root .filter-modal #filter-modal-categories .category ul,
#paper-info-root .filter-modal .sidebar-modal-inner .category ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin: 0 0 7px;
  padding: 0;
  list-style: none;
}

#paper-info-root .filter-modal #filter-modal-categories .category:last-child ul,
#paper-info-root .filter-modal .sidebar-modal-inner .category:last-child ul {
  margin-bottom: 0;
}

#paper-info-root .filter-modal .sidebar-modal-inner .paper-info-sort-block {
  margin-bottom: 8px;
}

#paper-info-root .filter-modal #filter-modal-categories .category li,
#paper-info-root .filter-modal .sidebar-modal-inner .category li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 11px;
  font-size: 16px;
  line-height: 1.28;
  white-space: nowrap;
  list-style: none;
}

#paper-info-root .filter-modal #filter-modal-categories .category h4,
#paper-info-root .filter-modal .sidebar-modal-inner .category h4 {
  margin: 0 0 9px;
  padding: 6px 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #1a2030;
  border: none;
  border-radius: 6px;
  background: #e8f7fc;
}

#paper-info-root .filter-modal #filter-modal-categories .category + .category,
#paper-info-root .filter-modal .sidebar-modal-inner .category + .category {
  margin-top: 12px;
}

#paper-info-root .filter-modal #filter-modal-categories .color-swatch-mark,
#paper-info-root .filter-modal .sidebar-modal-inner .color-swatch-mark {
  font-size: 1em;
}

.category ul {
  list-style: none;
  padding: 0;
}

.category li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.category li:hover {
  background: rgba(0, 123, 255, 0.1);
}

.category li.active {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.category li.active:hover {
  background: #0056b3;
  color: white;
}

.color-swatch-mark {
  margin-right: 0.35em;
  font-size: 0.92em;
  vertical-align: 0.02em;
  line-height: 1;
}
.color-swatch-mark-other {
  color: #8b929e;
}
.category li.active .color-swatch-mark,
.category li.active .color-swatch-mark-other {
  color: #fff !important;
}

.paper-list-section {
  margin-top: 28px;
}
.paper-list-section:first-child {
  margin-top: 0;
}
/* cssMainArea の .container h3（大マージン・黄色帯等）より特異性を上げて一覧カテゴリ見出しだけ上書き */
#paper-info-root h3.paper-list-section-title {
  position: static;
  margin: 0 0 14px 0;
  padding: 10px 14px 10px 12px;
  font-size: 15.6px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #3d4350;
  background: #f9f9fc;
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em 0.6em;
}
#paper-info-root h3.paper-list-section-title .paper-list-section-count {
  font-size: 0.88em;
  font-weight: 600;
  color: #5c6575;
  letter-spacing: 0.02em;
}
#paper-info-root h3.paper-list-section-title::before,
#paper-info-root h3.paper-list-section-title:before {
  content: none !important;
  display: none !important;
}

@media (min-width: 481px) {
  .sidebar.desktop-sidebar {
    width: 180px;
    padding: 12px 10px;
    font-size: 12.8px;
  }
  .sidebar.desktop-sidebar h3 {
    font-size: 12.5px;
    line-height: 1.3;
    margin: -12px -10px 10px -10px;
    padding: 8px 10px;
    letter-spacing: 0.05em;
  }
  .sidebar.desktop-sidebar .paper-info-sort-block + h3 {
    margin: 8px -10px 10px -10px;
  }
  .sidebar.desktop-sidebar .category + .category {
    margin-top: 8px;
  }
  .sidebar.desktop-sidebar .category h4 {
    font-size: 11px;
    line-height: 1.2;
    margin: 0 0 4px;
    font-weight: bold;
  }
  .sidebar.desktop-sidebar .category ul {
    margin: 0;
    line-height: 1.25;
  }
  .sidebar.desktop-sidebar .category li {
    padding: 4px 6px;
    font-size: 12.8px;
    line-height: 1.2;
    margin-bottom: 1px;
  }
  .list-wrapper .list-container {
    padding-left: 12px;
    padding-top: 0;
  }
  /* PCでは空のプレースホルダを flex から外し、サイドバーとリストの上端を揃える */
  .list-wrapper .sidebar-responsive {
    display: none;
  }
  /* 一覧のフィルターチップはPCではサイドバーのアクティブ表示と重複するため非表示 */
  .list-wrapper .filter-display-container {
    display: none;
  }
  #paper-info-root h3.paper-list-section-title {
    font-size: 15px;
    line-height: 1.3;
    padding: 8px 10px;
  }
}


.product-card-wrapper {
/* 	width: 100%; */
/* 	background: aqua; */
/* 	padding:0px 0px 0px 20px; */
}

.product-card-container {
  display: flex;
  flex-wrap: wrap;  /* アイテムを折り返す */
  gap: 24px;        /* カード間の隙間 */
  flex-grow: 1;     /* 残りのスペースを占める */
}

.product-card {
	width: calc(33.333% - 16px);  /* 3列の場合、16pxの隙間を除いた幅 */
	padding: 6px 6px 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	position: relative;
	display: inline-block;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s;
	overflow: hidden;
}
.product-card:hover{
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.color-list {
	text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    font-size: 14px;
    color: #333;
    max-height: 150px;
    overflow-y: auto;
}
.color-list-row {
	font-size: 1.2rem;
	color: #333;
	padding: 5px 8px;
	margin: 0 -4px;
	border-radius: 6px;
	cursor: default;
	transition: background-color 0.15s ease;
}
.color-list-row[data-pref-id] {
	cursor: pointer;
}
.color-list-row:hover {
	background-color: rgba(0, 123, 255, 0.12);
}
.color-list-row-muted:hover {
	background-color: rgba(0, 0, 0, 0.06);
}
.color-list .color-list-mark {
	margin-right: 0.35em;
	font-size: 0.95em;
	vertical-align: 0.03em;
	line-height: 1;
}
.product-card-img {
  width: 100%;
  aspect-ratio: 210 / 120;
  border-radius: 6px;
  position: relative;
  background: #f3f3f3;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.product-card-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.image-placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy-image {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block !important;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.product-card p {
  font-size: 1.5rem;
  color: #333;
  margin-top: 8px;
}

.product-detail-wrapper {
	margin: auto;
	padding: 20px;
	font-family: "Arial", sans-serif;
}

@media (min-width: 481px) {
  .product-detail-page .product-detail-back-row {
    padding: 0;
    margin: 0 0 14px;
  }
  .product-detail-page .product-detail-wrapper {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 20px;
  }
}
.product-content{
	width: 800px;
}
.product-info {
  display: flex;
  gap: 30px;
/*   margin-top: 20px; */
}

.product-info img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 薄い影をつけて立体感を出す */
}

/* 用紙詳細：メイン写真の影をなし（サムネイルは .product-info img のまま） */
.product-detail-page .product-info .image-wrapper .image-box .image > img {
  box-shadow: none;
}

.product-info h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.product-description {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  white-space: pre-line;
}
.product-specs {
  background: #fff5a6;
  padding: 10px;
  border-radius: 5px;
  margin: 0;
}
.color-section {
  margin-top: 20px;
}
.detail-category-container{
	margin-top: 10px;
	margin-left: 10px;
	display: flex;
}
.detail-category {
  padding: 5px;
/*   margin: 5px; */
/*   border: 1px solid #ccc; */
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  border: none; 
  font-weight: 500;
  font-size: 1.5rem;
}
.detail-category:hover {
	font-size: 1.6rem;
	transform: scale(1.05);
}
.detail-category.active {
/*   background: #007bff; */
  font-size: 1.7rem;
  font-weight: bold;
  border-top: 2px solid #ffea4c;
  border-left: 2px solid #ffea4c;
  border-right: 2px solid #ffea4c;
  border-radius: 0;
  border-bottom: none; /* 下のボーダーをなくす */
}
/* active の時は hover 無効 */
.detail-category.active:hover {
  font-size: 1.7rem;
  transform: none;
}
.color-variation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  min-width: 80px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.color-option:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-option.active {
  background: #ffea4c;
  font-weight: bold;
  border-color: #ffcc00;
}

.color-button {
  padding: 3px 5px;
  background: #ddd;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
.product-info ul {
  margin-top: 20px;
}

.product-info li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

.review-wrapper,
.comment-wrapper {
  margin-top: 40px;
}

.review-wrapper h2,
.comment-wrapper h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.review-wrapper .review-item,
.comment-wrapper .comment-item {
  background-color: #f9f9f9;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.review-wrapper .review-item p,
.comment-wrapper .comment-item p {
  margin: 4px 0;
  color: #555;
}

.back-button {
  background: #007bff;
  color: white;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.back-button:hover {
  background-color: #0056b3;
}

/* 個別画面：左フィルターメニューと一体感のある「一覧に戻る」 */
.product-detail-page .back-button {
  background: linear-gradient(180deg, #fafbfd 0%, #f4f6f9 100%);
  color: #3d4350;
  border: 1px solid #c5cad6;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin: 0;
  display: inline-block;
  line-height: 1.35;
  vertical-align: middle;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.product-detail-page .back-button:hover {
  background: rgba(0, 123, 255, 0.12);
  color: #1a1d24;
  border-color: #7eb6ff;
}
@media (max-width: 480px) {
  .product-detail-page .back-button {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}
.image-wrapper{
	width:55%;
}
.image-wrapper img{
	width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}
.info-wrapper{
	width: 45%;
	flex: 1;
}

/* 個別ページ：画像右エリアをサイドバー（フィルター）と同系のパネル調に */
.product-detail-page .info-wrapper {
  background: #f9f9fc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 14px 16px 16px;
  box-sizing: border-box;
}
.product-detail-page .info .product-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: #3d4350;
  margin: 0;
}
.product-detail-page .detail-favorite-wrap {
  text-align: left;
  margin: 0 0 10px 0;
}
.product-detail-page .jq_material_favorite_btn {
  display: inline-block;
  margin-top: 0;
  padding: 0.4em 1.25em;
  font-size: 0.85rem;
  font-weight: bold;
  color: #333;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1.4;
}
@media screen and (min-width: 481px) {
  .product-detail-page .jq_material_favorite_btn {
    font-size: calc(0.85rem * 1.3);
  }
}
.product-detail-page .jq_material_favorite_btn:hover {
  border-color: #999;
  background-color: #f9f9f9;
}
.product-detail-page .jq_material_favorite_btn.is-favorited {
  border-color: #e6a817;
  background: #fff8e6;
  color: #8a5a00;
}
.product-detail-page .jq_material_favorite_btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.product-detail-page .info .product-title-responsive {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: #3d4350;
  margin: 0;
}

@media screen and (min-width: 481px) {
  .product-detail-page .info .product-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
  }
}
.product-detail-page .info .product-description {
  font-size: 13px;
  line-height: 1.55;
  color: #5a5f6b;
  margin-top: 12px;
}
.product-detail-page .product-specs {
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  margin-top: 14px;
}
.product-detail-page .product-specs p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5a5f6b;
}
.product-detail-page .product-specs p:first-child {
  margin-top: 0;
}
.product-detail-page .product-specs p:last-child {
  margin-bottom: 0;
}
.product-detail-page .product-specs strong {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
  color: #a3a9b4;
  min-width: 3.5em;
  display: inline-block;
}
.product-detail-page .color-section {
  margin-top: 16px;
}
.product-detail-page .color-section-heading {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.2;
  font-weight: bold;
  color: #3d4350;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0d5dc;
  letter-spacing: 0.03em;
}
.product-detail-page .availability-section {
  margin-top: 16px;
}
.product-detail-page .availability-heading {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.2;
  font-weight: bold;
  color: #3d4350;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0d5dc;
  letter-spacing: 0.03em;
}
.product-detail-page .availability-list {
  margin: 0;
  padding-left: 1.25em;
  list-style-position: outside;
}
/* 取扱状況リスト：ラベルは小さめ（価格ランクバッジは下で 10px 固定） */
.product-detail-page .availability-list li {
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a5f6b;
}
.product-detail-page .availability-list li.availability-line-item {
  display: list-item;
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
}
.product-detail-page .availability-list li.availability-line-item:last-child {
  margin-bottom: 0;
}
.product-detail-page .availability-line-item__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 部材行とバッジは1ブロックとして詰める */
  gap: 2px;
}
.product-detail-page .availability-line-item__label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}

.product-detail-page .availability-line-item__form-link {
  font-size: inherit;
  color: #0fd052;
  text-decoration: none;
  font-weight: 600;
}

.product-detail-page .availability-line-item__form-link:hover {
  color: #0fd052;
  text-decoration: underline;
}
.product-detail-page .availability-line-item__badge-wrap {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
}
.product-detail-page .availability-section .paper-info-price-rank-badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: #e8f0ff;
  background: #1a3558;
  border: 1px solid rgba(180, 200, 240, 0.45);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  margin-top: 0;
  vertical-align: top;
}
.product-detail-page .availability-list li:first-child {
  margin-top: 0;
}
.product-detail-page .availability-list li:last-child {
  margin-bottom: 0;
}
.product-detail-page .color-variation {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.product-detail-page .color-variation > div {
  min-width: 0;
}
.product-detail-page .color-option {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  color: #3d4350;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
/* 背景白・枠線＝メニューと同じ color_category スウォッチ色 */
.product-detail-page .color-option--menu-tint {
  position: relative;
  background: #fff;
  border: 2px solid var(--chip-border, #dfe3eb);
  color: #3d4350;
}
.product-detail-page .color-option--menu-tint:hover {
  transform: none;
  background: #fff;
  border-color: var(--chip-border, #dfe3eb);
  color: #3d4350;
  box-shadow: 0 0 0 1px rgba(61, 67, 80, 0.08);
}
/* 選択中・検索ヒット：カテゴリ色の背景＋白文字（枠線・二重リングなし） */
.product-detail-page .color-option--menu-tint.active,
.product-detail-page .color-option--menu-tint.active:hover,
.product-detail-page .color-option--menu-tint.color-option--search-hit,
.product-detail-page .color-option--menu-tint.color-option--search-hit:hover {
  background: var(--chip-border, #757575);
  border-color: var(--chip-border, #757575);
  border-width: 2px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  text-shadow: none;
  z-index: 1;
}
.product-detail-page .color-option--menu-tint.active::after,
.product-detail-page .color-option--menu-tint.color-option--search-hit::after {
  display: none;
}

@media (min-width: 481px) {
  .product-detail-page .product-detail-wrapper {
    box-sizing: border-box;
    max-width: 100%;
  }
  .product-detail-page .product-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .product-detail-page .product-info {
    min-width: 0;
    max-width: 100%;
  }
  .product-detail-page .image-wrapper {
    flex: 0 1 55%;
    max-width: 55%;
    min-width: 0;
  }
  .product-detail-page .info-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    width: auto;
  }
  .product-detail-page .info {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .product-detail-page .product-description,
  .product-detail-page .product-specs {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

.product-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.no-products-message {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #888;
  margin-top: 20px;
}

.no-products-category, .no-products-subcategory {
  font-size: 16px;
  color: #666;
  padding: 10px;
}
/* スタッフコメント表示モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 600px;
  height: 90vh;
  text-align: center;
  overflow: hidden; /* はみ出しを防ぐ */
  display: flex;
  flex-direction: column;
}
.modal-content h2{
	margin: 0;
	margin-bottom: 10px;
}
.chat-container{
	display: flex;
	margin: 5px 0;
	justify-content: space-around;
}
.chat-box {
  flex-grow: 1; /* 余ったスペースを埋める */
  overflow-y: auto; /* 縦スクロールを有効化 */
  max-height: calc(90vh - 100px); /* モーダル内でスクロール可能にする */
}

.chat-message {
  width: 400px;       /* 幅いっぱい */
  text-align: left;  /* 左揃え */
  white-space: pre-wrap;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  height: auto;
}

.staff-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 10px;
  background: #ffb6b6;
}

/*
.skip-button, .close-button {
  margin-top: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: #007bff;
  color: white;
}
*/
.product-title-responsive{
	display: none;
}
/* フィルターボタン */
.filter-btn {
  display: none; /* デフォルトでは非表示 */
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #0ec3f1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
}

/* モーダルスタイル */
.filter-modal {
  display: none; /* モーダルは初期状態では非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景に半透明の黒を追加 */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  max-height: 80vh;  /* モーダルの最大高さを画面の80%に設定 */
  overflow-y: auto;  /* 縦方向にスクロール可能 */
  margin-top: 30px;
}
.close-btn {
  position: fixed; /* 画面全体を基準に配置 */
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5); /* 背景を半透明に */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* モーダルの上に表示 */
  transition: background 0.2s ease-in-out;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.filter-info {
  margin: 20px;
  font-size: 16px;
  color: #333;
  display: none;
}
.image-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-page .image-container .thumbnail-container {
    margin-top: 0;
}
.image-box{
	position: relative;
    display: inline-block;
}
.product-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 左のナビゲーションボタン（くの字の矢印） */
/*
.nav-button.left, .modal-nav-button.left {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
*/
/* ボタン全体 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    background-color: #7a0; /* 円の背景色 */
	padding: 15px;
    border-radius: 70%; /* 円形にする */
    opacity: 1; /* ボタンを表示 */
    background: rgba(135, 135, 135, 0.48);
    border: 1px solid rgba(255,  255,  255, 0.6);
    opacity: 0;
}
/* 矢印部分 */
.arrow::before,
.arrow::after {
    position: absolute;
    top: 50%; /* 親要素の中央に配置 */
    left: 50%; /* 親要素の中央に配置 */
    transform: translate(-50%, -50%); /* 完全に中央に配置 */
    content: "";
    vertical-align: middle;
}
.arrow.left{
	left:5px;
}
.arrow.right{
	right:5px;
}
.sample5-2{
	width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: transparent;
    cursor: pointer;
}
/* 左矢印 */
.sample5-2.left {
	margin-left: 2px;
    border-left: 2px solid white; /* 矢印の色 */
    border-bottom: 2px solid white; /* 矢印の色 */
    border-right: none;
    border-top: none;
}

/* 右矢印 */
.sample5-2.right {
	margin-right: 2px;
    border-top: 2px solid white; /* 矢印の色 */
    border-right: 2px solid white; /* 矢印の色 */
    border-bottom: none;
    border-left: none;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease-in-out;
}
.arrow-container{
	display: none;
}
.image-container:hover .arrow-container.active{
	display: block;
    opacity: 1; /* ホバー時に表示 */
}
.image-container:hover .arrow:hover {
    opacity: 0.8; /* ホバー時に表示 */
}
.modal-image-box:hover .arrow-modal-container.active{
	display: block;
    opacity: 1; /* ホバー時に表示 */
}
.modal-image-box:hover .arrow:hover {
    opacity: 0.8; /* ホバー時に表示 */
}
.arrow-modal-container{
	display: none;
}
.nav-button.left {
    left: 10px;
}

.nav-button.right {
    right: 10px;
}
.image-container:hover .arrow {
    opacity: 1; /* ホバー時に表示 */
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.close-button {
  position: fixed; /* 画面全体を基準に配置 */
  top: 50px;
  right: 50px;
  font-size: 24px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5); /* 背景を半透明に */
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* モーダルの上に表示 */
  transition: background 0.2s ease-in-out;
}

.close-button:hover {
  background: rgba(0, 0, 0, 0.8);
}
.modal-detailImage-content {
    background: white;
    border-radius: 10px;
    text-align: center;
    width: min(600px, 92vw);
    max-width: 600px;
    max-height: 90vh;
    padding: 20px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
}
.modal-title {
	margin: 0;
	margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 0 4px;
    box-sizing: border-box;
}
.modal-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: min(55vh, calc(90vh - 140px));
	border-radius: 10px;
	object-fit: contain;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
}
.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
/*

.modal-nav-button {  
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}
.modal-nav-button.left {
    left: 10px;
}

.modal-nav-button.right {
    right: 10px;
}
*/
.modal-info {
	width: 100%;
    margin: 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.modal-image-box{
	position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-image-overlay .modal-info {
    gap: 16px;
}
.detail-image-overlay .modal-image-box {
    flex: 0 0 auto;
    padding-bottom: 8px;
}
.detail-image-overlay .modal-image {
    max-height: min(48vh, calc(90vh - 240px));
}
.detail-image-overlay .thumbnail-container {
    flex-shrink: 0;
    max-width: 100%;
    margin-top: 0;
    box-sizing: border-box;
}
/* 拡大モーダル：白背景でも矢印が見えるよう常時表示＋濃いボタン背景 */
.detail-image-overlay .arrow-modal-container.active {
    display: block;
}
.detail-image-overlay .arrow {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.55);
}
.detail-image-overlay .arrow:hover {
    opacity: 0.85;
}
.detail-image-overlay .sample5-2.left {
    border-left-color: #fff;
    border-bottom-color: #fff;
}
.detail-image-overlay .sample5-2.right {
    border-top-color: #fff;
    border-right-color: #fff;
}
.filter-button-div{
	display: flex;
	align-items: center;
	background: #ddd;
	padding: 5px 10px;
	border-radius: 5px;
}
.filter-button{
	margin-left: 8px; 
	background: red; 
	color: white; 
	border: none; 
	cursor: pointer;
	border-radius: 50%; 
	width: 20px; 
	height: 20px;
	font-size: 14px;
	line-height:18px;
}
.filter-display-container{
	display: flex;
	gap: 10px;
	flexWrap:wrap;
	margin: 10px 0;
/*
	position: sticky;
	top: 115px; 
	z-index: 1;  
*/
}
.pankuzu ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pankuzu li {
  font-size: 1.2rem;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* 区切りは隣接する項目の前に1つだけ（角度のマイルドなシェブロン） */
.pankuzu li + li::before {
  content: "";
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin: 0 0.5em 0 0.5em;
  border-right: 1.5px solid #b0b5bf;
  border-bottom: 1.5px solid #b0b5bf;
  transform: rotate(-45deg);
  vertical-align: 0.05em;
  flex-shrink: 0;
}
.image {
    position: relative; /* 親要素にrelativeを設定して、テキストをその中で絶対配置できるようにする */
    display: inline-block; /* 画像が横並びに表示される場合 */
}
.image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景色 */
    color: white; /* テキスト色 */
    text-align: left; /* テキストを中央揃え */
    padding: 5px; /* テキストの周りに余白を追加 */
    font-weight: bold; /* テキストを太字に */
    border-radius: 0 0 20px 20px;
}
.image-text-box{
	margin: 0 auto;
	width: 80%;
	font-size: 12px; /* フォントサイズ調整 */
}
.thumbnail-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}
.thumbnail-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}
.thumbnail-container > .thumbnail {
    flex: 0 0 auto;
    line-height: 0;
}
.thumbnail-container > .thumbnail > img,
.thumbnail-container img.thumbnail {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
    vertical-align: top;
}

.thumbnail-container > .thumbnail.is-thumbnail-active > img {
    border-color: #ffea4c;
    box-shadow: 0 0 0 1px rgba(255, 234, 76, 0.55);
}

.thumbnail-container > .thumbnail.is-thumbnail-active:hover > img {
    border-color: #e6d444;
}
.alert-box {
/*
  display: flex;
  align-items: flex-start;
  gap: 10px;
*/
  background-color: #fff8db; /* 淡い黄色 */
  border: 1px solid #ffe58a;
  border-left: 5px solid #ffc107; /* 左にアクセントライン */
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 14px;
  color: #5a4400;
}

.alert-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.alert-text {
  line-height: 1.6;
}

.alert-text.sub {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #ff3957;
}

/* 個別ページ：注意文を説明文（13px）に揃える（上の .alert-box / .alert-icon より後で確実に適用） */
#paper-info-root .product-detail-page .info .alert-box {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}
#paper-info-root .product-detail-page .info .alert-box .alert-icon {
  font-size: 13px;
  line-height: 1.4;
}
#paper-info-root .product-detail-page .info .alert-box .alert-text,
#paper-info-root .product-detail-page .info .alert-box .alert-text.sub {
  font-size: 13px;
  line-height: 1.55;
}

/* メディアクエリでレスポンシブ対応（必要に応じて） */
@media (max-width: 480px) {
	.top-wrapper{
		margin-top: 10px;
		display: block;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .top-wrapper {
		margin-top: 4px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .top-wrapper > nav.pankuzu {
		margin-bottom: 2px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .top-wrapper .search-bar-wrap {
		margin-top: 2px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .list-wrapper {
		margin-top: 2px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .paper-list-section {
		margin-top: 4px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .filter-display-container {
		margin: 2px 0 4px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .list-container {
		padding-top: 2px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .product-card-wrapper {
		margin-top: 4px;
		margin-bottom: 4px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .sidebar-responsive .filter-info {
		margin: 4px 14px 2px;
	}
	#paper-info-root .top-wrapper .search-bar-wrap {
		width: 100%;
		max-width: none;
	}
	#paper-info-root .paper-info-search-row {
		flex-direction: row;
		align-items: stretch;
		gap: 8px;
		width: 100%;
		box-sizing: border-box;
	}
	#paper-info-root .paper-info-search-row .search-bar {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
		margin: 0;
		display: flex;
		align-items: center;
		gap: 8px;
		background: #fff;
		padding: 5px;
		border-radius: 10px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}
	#paper-info-root .paper-info-filter-open-btn {
		display: inline-flex;
		align-self: center;
	}
	.list-wrapper{
		display: block;
	}
	.product-card-wrapper{
		padding: 0;
		width: 100%;
	}
	.product-card-container {
		display: block;
	}
	.product-card {
		width: 100%;
		margin: 10px 0;
	}
	#paper-info-root > .wrapper:not(.product-detail-page) h3.paper-list-section-title {
		width: 100%;
		margin: 0 0 8px 0;
		box-sizing: border-box;
	}
	#paper-info-root h3.paper-list-section-title {
		width: 100%;
		margin: 0 0 12px 0;
		box-sizing: border-box;
	}
	.product-card-img {
	  width: 100%;
	}
	.product-content{
		width: 100%;
	}
	.product-info {
	  display: block;
	/*   margin-top: 20px; */
	}
	.image-wrapper{
		width: 100%;
/* 		text-align: center; */
	}
	.product-image{
		max-width: 100%;
	}
	.info-wrapper{
		width: 100%;
	}
	.color-variation {
	  margin-top: 20px;
	  gap: 15px;
	}
	.product-detail-page .info-wrapper {
	  margin-top: 16px;
	  padding: 12px 14px 14px;
	}
	.product-title{
		display: none;
	}
	.product-title-responsive{
		display: block;
		font-size: 18px;
		font-weight: 800;
		margin-top: 20px;
	}
	.product-detail-page .info .product-title-responsive {
	  font-size: 1.75rem;
	  font-weight: 800;
	  line-height: 1.35;
	  margin-top: 0;
	}
	/* デスクトップではサイドバーが常に表示 */
	.sidebar {
		display: none;
	}
	
	/* スマホではフィルターボタンを表示 */
	.filter-btn {
		display: block; /* スマホの時にボタンを表示 */
	}
	
	/* モーダル表示 */
	.filter-modal {
		display: flex; /* モーダルはボタンがクリックされた時に表示 */
	}
	#paper-info-root .filter-modal .modal-content {
	  padding: 0 16px 10px;
	  margin-top: 0;
	}

	#paper-info-root .filter-modal .modal-content .sidebar-modal-inner > h3,
	#paper-info-root .filter-modal .modal-content h3 {
	  margin-top: 0;
	  padding-bottom: 10px;
	  border-radius: 0;
	  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}
	/* フィルター情報の表示エリア */
	.filter-info {
	  display: block;
	}
	
	/* 各フィルター情報のアイテム */
	.filter-item {
	  margin: 10px 0;
	  padding: 5px 0;
	  border-bottom: 1px solid #ddd;
	}
	
	.filter-item strong {
	  font-weight: bold;
	}
	
	.filter-item span {
	  color: #555;
	}
	.modal-content{
		width:90%;
	}
	.product-image{
		width: 200%;
	}
	
	.detail-image-overlay .modal-detailImage-content {
		width: 92vw;
		padding: 16px 12px;
	}
	.detail-image-overlay .modal-title {
		display: block;
	    margin-bottom: 8px;
	    margin-left: 0;
	    font-size: 14px;
	    font-weight: bold;
	}
	.detail-image-overlay .modal-image {
		max-height: min(44vh, calc(90vh - 220px));
	}
	.modal-nav-button {  
	    padding: 2px;
	}
	.close-button {
	    top: 10px;
		right: 10px;
	}
	.list-container{
		padding: 10px;
	}

	#paper-info-root > .wrapper:not(.product-detail-page) .list-container {
		padding: 2px 10px 10px;
	}

	/* 用紙詳細：パンくず〜写真の余白を詰める（「一覧に戻る」はスマホでは非表示） */
	#paper-info-root > .wrapper.product-detail-page .list-wrapper {
		margin-top: 4px;
	}

	#paper-info-root > .wrapper.product-detail-page .list-container.product-detail-main {
		padding: 0 10px 10px;
	}

	#paper-info-root > .wrapper.product-detail-page .product-detail-back-row {
		display: none;
	}

	#paper-info-root > .wrapper.product-detail-page .product-detail-wrapper {
		margin-top: 0;
		padding: 4px 0 16px;
	}

	#paper-info-root > .wrapper.product-detail-page .product-info {
		margin-top: 0;
	}

	#paper-info-root > .wrapper.product-detail-page .image-wrapper {
		margin-top: 0;
	}

	.thumbnail-container{
	  width: 100%;
  }
}

/* ---------- 用紙個別：レビュー / SNS タブ ---------- */
.product-detail-page .paper-detail-feedback-tabs {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 28px;
  clear: both;
}

.product-detail-page .paper-detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  border-bottom: none;
}

.product-detail-page .paper-detail-tab {
  appearance: none;
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  background: transparent;
  border: none;
  border-bottom: 3px solid #d0d5dc;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
}

@media screen and (min-width: 481px) {
  .product-detail-page .paper-detail-tab {
    font-size: 1.35rem;
    padding: 12px 18px 14px;
    line-height: 1.35;
  }
}

.product-detail-page .paper-detail-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

.product-detail-page .paper-detail-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.product-detail-page .paper-detail-tab[aria-selected='true'] {
  color: #111;
  border-bottom-color: #ffea4c;
  background: #fff;
}

.product-detail-page .paper-detail-tab[aria-selected='true']:hover {
  background: #fff;
}

.product-detail-page .paper-detail-tabpanels {
  position: relative;
}

.product-detail-page .paper-detail-tabpanel[hidden] {
  display: none !important;
}

/* ---------- 用紙個別ページ：みんなの用紙レビュー（モーダル相当・ページ埋め込み） ---------- */
.product-detail-page .paper-detail-reviews {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  clear: both;
}

.product-detail-page .paper-detail-reviews-panel {
  background: #f5f5f7;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 20px 24px 28px;
  box-sizing: border-box;
  background-image: url('/tsukuyomi_share/images/ondemandset/bg0.jpg');
  background-repeat: repeat;
}

.product-detail-page .paper-detail-reviews-panel .review_title-img {
  position: relative;
}

.product-detail-page .paper-detail-reviews-panel .review_title-img img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  margin-top: 0;
  margin-bottom: 12px;
}

@media screen and (max-width: 768px) {
  .product-detail-page .paper-detail-reviews-panel .review_title-img img {
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
  }
}

.product-detail-page .paper-detail-reviews-sort-row {
  margin: 0 0 12px;
  padding: 0;
}

.product-detail-page .paper-detail-reviews-sort-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 1.15rem;
  color: #333;
}

.product-detail-page .paper-detail-reviews-sort-label-text {
  font-weight: 600;
}

.product-detail-page .paper-detail-reviews-sort-select {
  min-width: 220px;
  max-width: 100%;
  padding: 10px 3.25rem 10px 12px;
  font-size: 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #111;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 12px 8px;
}

.product-detail-page .paper-detail-reviews-loading {
  text-align: center;
  padding: 24px;
  font-size: 1rem;
  color: #555;
}

.product-detail-page .paper-detail-reviews-panel ul.rewiew-container {
  list-style-type: none;
  margin: 24px 0 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .product-detail-page .paper-detail-reviews-panel ul.rewiew-container {
    padding: 0 10px;
  }
}

.product-detail-page .paper-detail-reviews-panel ul.rewiew-container li {
  margin-bottom: 15px;
}

.product-detail-page .paper-detail-reviews-panel ul.rewiew-container li h4.review_title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.8rem;
}

.product-detail-page
  .paper-detail-reviews-panel
  ul.rewiew-container
  li
  div.review_create_at {
  font-size: 0.8em;
  color: gray;
  margin: 0 0 5px 0;
}

.product-detail-page
  .paper-detail-reviews-panel
  ul.rewiew-container
  li
  p.review_article {
  font-size: 1.4rem;
  line-height: 1.5;
}

.product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt {
  background: var(--maincolor-link, #2563eb);
  border-radius: 9999px;
  padding: 10px;
  width: 80%;
  margin: 20px auto 10px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt {
    width: 90%;
  }
}

.product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt a {
  color: #fff;
  font-weight: bold;
}

.product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt a:hover {
  text-decoration: underline;
}

.product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-empty-msg {
  text-align: center;
  margin: 0 0 8px;
  color: #fff;
}

.product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt p {
  text-align: center;
  margin: 0;
  color: #fff;
}

.product-detail-page .paper-detail-reviews-panel .load_information_modal_review_helpful_count {
  color: royalblue;
  margin-top: 10px;
  font-size: 0.8em;
}

.product-detail-page .paper-detail-reviews-panel .like_btn_container {
  margin-top: 10px;
}

.product-detail-page .paper-detail-reviews-panel .like_btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  color: #374151;
  font-size: 0.875em;
  font-weight: 500;
  background-color: #ffffff;
  cursor: pointer;
  transition:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-page .paper-detail-reviews-panel .like_btn:hover {
  background-color: #f9fafb;
}

.product-detail-page .paper-detail-reviews-panel .like_btn.is_like {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.product-detail-page .paper-detail-reviews-panel .like_btn.is_like:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.product-detail-page .paper-detail-reviews-panel .box3-9 {
  margin: 0 auto 2em;
  padding: 3em 2em 2em;
  position: relative;
  background: #f5f5f7;
  z-index: 1;
}

.product-detail-page .paper-detail-reviews-panel .box3-9::before {
  content: '';
  position: absolute;
  inset: 0.5em 0 0 0;
  margin: 0 auto;
  width: 95%;
  border-top: dotted 12px #eeeff0;
  z-index: -1;
}

@media screen and (max-width: 768px) {
  .product-detail-page .paper-detail-reviews-panel .box3-9 {
    padding: 35px 20px 15px;
  }
}

/* スマホ：レビュー欄の横余白を詰める */
@media (max-width: 480px) {
  .product-detail-page .paper-detail-reviews {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-page .paper-detail-reviews-panel {
    padding: 14px 8px 18px;
  }

  .product-detail-page .paper-detail-reviews-panel ul.rewiew-container {
    padding: 0;
  }

  .product-detail-page .paper-detail-reviews-panel .box3-9 {
    padding: 32px 10px 14px;
  }

  .product-detail-page .paper-detail-reviews-panel .paper-detail-reviews-prompt {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail-page .paper-detail-tab {
    font-size: 1.2rem;
    padding: 11px 12px 13px;
    line-height: 1.35;
  }

  .product-detail-page .paper-detail-feedback-tabs {
    margin-top: 18px;
  }

  .product-detail-page .paper-detail-reviews-sort-label {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 1.25rem;
  }

  .product-detail-page .paper-detail-reviews-sort-label-text {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .product-detail-page .paper-detail-reviews-sort-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    font-size: 1.2rem;
    padding: 10px 3rem 10px 8px;
    background-position: right 0.9rem center;
  }
}

/* ---------- SNS 紹介（用紙詳細・タブ内） ---------- */
.product-detail-page .paper-detail-social-intro {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.product-detail-page .paper-social-intro-panel {
  padding: 1.25rem 1rem 2rem;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid #e8eaed;
}

.product-detail-page .paper-social-intro-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.25rem;
}

.product-detail-page .paper-social-intro-loading,
.product-detail-page .paper-social-intro-empty {
  margin: 0;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media screen and (min-width: 481px) {
  .product-detail-page .paper-social-intro-lead,
  .product-detail-page .paper-social-intro-loading,
  .product-detail-page .paper-social-intro-empty {
    font-size: 1.15rem;
  }
}

.product-detail-page .paper-social-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.product-detail-page .paper-social-intro-item {
  margin: 0;
  padding: 1rem 1rem 1.25rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e3e5e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-detail-page .paper-social-intro-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #5c6bc0;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.product-detail-page .paper-social-intro-embed--x .twitter-tweet {
  margin: 0 auto !important;
}

.product-detail-page .paper-social-intro-note-iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
}

.product-detail-page .paper-social-intro-fallback-link {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.product-detail-page .paper-social-intro-fallback-link a {
  color: #1565c0;
}

.product-detail-page .paper-social-intro-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: #1a1a1a;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #b0bec5;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.product-detail-page .paper-social-intro-card:hover {
  background: #f0f7ff;
}

.product-detail-page .paper-social-intro-card__plat {
  font-size: 0.8rem;
  font-weight: 700;
  color: #455a64;
}

.product-detail-page .paper-social-intro-card__url {
  font-size: 0.8rem;
  word-break: break-all;
  color: #0277bd;
}

@media screen and (max-width: 768px) {
  .product-detail-page .paper-social-intro-panel {
    padding: 1rem 0.65rem 1.5rem;
  }
}
