.sd-category {
	margin-bottom: 20px;
}
.sd-category h2 {
  font-size: var(--fz-16);
  font-weight: bold;
  margin-bottom: 16px;
  padding: 16px 0px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.sd-category__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-category__item {
  margin-bottom: 0px;
}
.sd-category__item:last-child {
  margin-bottom: 0;
}
.sd-category__radio {
  display: none;
}
.sd-category__label {
  display: block;
  position: relative;
  padding: 8px 12px 8px 38px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.sd-category__label:hover {
  background-color: #f8f8f8;
}
.sd-category__label::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #a4a4a4;
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
}
.sd-category__label::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fs-btn-bg-c-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sd-category__radio:checked + .sd-category__label {
  font-weight: bold;
}
.sd-category__radio:checked + .sd-category__label::before {
  border-color: var(--fs-btn-bg-c-primary);
}
.sd-category__radio:checked + .sd-category__label::after {
  opacity: 1;
}
.sd-filter {
	margin-bottom: 20px;
}
.sd-filter__title {
  font-size: var(--fz-16);
  font-weight: bold;
  margin: 0;
  padding: 16px 0px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.sd-filter__content {
  padding: 16px 0px;
}
.sd-filter__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-filter__item {
  margin-bottom: 8px;
}
.sd-filter__item:last-child {
  margin-bottom: 0;
}
.sd-filter__checkbox {
  display: none;
}
.sd-filter__label {
  display: block;
  position: relative;
  padding: 6px 0 6px 35px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.sd-filter__label:hover {
  background-color: #f8f8f8;
}
.sd-filter__label::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 1px solid #a4a4a4;
  border-radius: 2px;
  background: #fff;
  transition: all 0.2s ease;
}
.sd-filter__label::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' stroke='%23E46E57' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 8l3 3 7-7' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sd-filter__checkbox:checked + .sd-filter__label::before {
  background: ;
  border-color: var(--fs-btn-bg-c-primary);
}
.sd-filter__checkbox:checked + .sd-filter__label::after {
  opacity: 1;
}
.sd-filter__checkbox:checked + .sd-filter__label {
  font-weight: bold;
}
.sd-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-color-item {
  text-align: center;
}
.sd-color__checkbox {
  display: none;
}
.sd-color__label {
  display: block;
  cursor: pointer;
  text-align: center;
}
.sd-color__chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2px solid #ddd;
  transition: all 0.2s ease;
  position: relative;
}
.sd-color__name {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}
.sd-color__checkbox:checked + .sd-color__label .sd-color__chip {
  border-color: var(--fs-btn-bg-c-primary);
}
.sd-color__checkbox:checked + .sd-color__label .sd-color__chip::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 52%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' stroke='%23CCCCCC' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 8l3 3 7-7' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.2s ease;
}
.sd-color__checkbox:checked + .sd-color__label .sd-color__name {
  font-weight: 500;
}
.sd-pattern-chip {
  overflow: hidden;
  position: relative;
}
.sd-pattern__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sd-color__checkbox:checked + .sd-color__label .sd-pattern-chip::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 52%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' stroke='%23CCCCCC' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 8l3 3 7-7' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.2s ease;
}
.color-white { background-color: #ffffff; border-color: #ccc; }
.color-beige { background-color: #f5f5dc; }
.color-gray { background-color: #808080; }
.color-brown { background-color: #8b4513; }
.color-yellow { background-color: #ffd700; }
.color-orange { background-color: #ff8c00; }
.color-pink { background-color: #ff69b4; }
.color-red { background-color: #dc143c; }
.color-blue { background-color: #4169e1; }
.color-green { background-color: #228b22; }
.color-purple { background-color: #9370db; }
.color-black { background-color: #000000; }

.sd-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sd-brand-item {
  position: relative;
}
.sd-brand__checkbox {
  display: none;
}
.sd-brand__label {
  display: block;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}
.sd-brand__label:hover {
  border-color: var(--fs-btn-bg-c-primary);
}
.sd-brand__image {
  width: 100%;
  height: auto;
  display: block;
}
.sd-brand__checkbox:checked + .sd-brand__label {
  border-color: var(--fs-btn-bg-c-primary);
}
.sd-brand__checkbox:checked + .sd-brand__label::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 15%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' stroke='%23E46E57' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 8l3 3 7-7' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.2s ease;
}
/* モーダル基本スタイル */
.samplemodal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.samplemodal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.samplemodal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: samplemodalSlideIn 0.3s ease-out;
}
@keyframes samplemodalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.samplemodal-header {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}
.samplemodal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}
.samplemodal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.samplemodal-close:hover {
  background-color: #e9ecef;
}
.samplemodal-body {
  padding: 20px 30px 30px;
}
#sample_form p{
  margin-bottom:10px;
}
#sample_form{
	margin-bottom: 10px;
}
#sampleRequest_submit{
	width:80%;
	margin: 0 auto;
	display: block;
	padding:10px 0;
	background-color: var(--fs-btn-bg-c-primary);
	border: 1px solid var(--fs-btn-bg-c-primary);
	color: var(--c-white);
	border-radius:5px;
}
.samplerequest__formbtn{
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size:1.2em;
}
.samplerequest__formbtn:after{
	content:">";
	padding-left:8px;
}


/* SP用のsidearea非表示 */
@media (max-width: 767px) {
	.sample_request_area .sample_link{
		padding:8px 0;
	}
	#sampleRequest_submit{
		padding:9px 0 7px;
	}
  .c-side {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 24vh 0 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .c-side.show {
    display: flex !important;
  }
  .sp-modal-wrapper {
    width: 100%;
    max-height: 76vh;
    background: white;
    border-radius: 16px 16px 0px 0px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sp-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 200px;
  }
  .sp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
  }
  .sp-modal-close:active {
    background-color: #e9ecef;
  }
  .sp-modal-footer {
    position: absolute;
    bottom: 0px;
    width:100%;
    background: white;
    padding: 16px 20px;
    padding-bottom: calc(env(safe-area-inset-top, 50px) + 60px);
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }
  .sp-modal-footer > div{
    display: flex;
    gap: 12px;
  }
  .sp-modal-btn {
    flex: 1;
    padding: 16px 16px;
    border: none;
    border-radius: 6px;
    var(--fz-16);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
  }
  .sp-modal-btn--secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
  }
  .sp-modal-btn--secondary:active {
    background: #f8f9fa;
  }
  .sp-modal-btn--primary {
    background: var(--fs-btn-bg-c-primary);
    color: white;
  }
  .sp-modal-btn--primary:active {
    background: #357abd;
  }
  .c-side .sd-category,
  .c-side .g-menu {
    background: transparent;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .c-side .sd-category:last-child,
  .c-side .g-menu:last-child {
    margin-bottom: 0;
  }
  .sp-modal-footer__productlist{
    margin-bottom: 10px;
    font-size:14px;
    text-align: center;
    font-weight: bold;
  }
  #sampleRequest_submit{
    width:100%;
  }
  .sd-color__chip{
	  width:48px;
	  height:48px;
  }
  .sd-color__checkbox:checked + .sd-color__label .sd-color__chip::after{
	  left:50%;
	  top:50%;
	  transform: translate(-50%, -50%);
  }
}
@media screen and (min-width:768px) {
  .sp-modal-footer{
    display: none;
  }
}
.sp-filter-trigger {
  display: none;
  position: fixed;
  bottom: 73px;
  left: 0;
  width: 100%;
  background: var(--fs-btn-bg-c-primary);
  color: white;
  border: none;
  padding: 16px;
  var(--fz-16);
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .sp-filter-trigger {
    display: block;
  }
}
.filter-status {
  background: var(--bg-c-gray);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}
.filter-status__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-status__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.filter-status__title {
  var(--fz-16);
  font-weight: bold;
  margin: 0;
}
.filter-status__clear {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-status__clear:hover {
  background: #f8f9fa;
  border-color: #999;
}
.filter-status__count {
  var(--fz-16);
  font-weight: bold;
  margin: 0;
}
.filter-status__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}
.filter-tag {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-tag__remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  var(--fz-16);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.filter-tag__remove:hover {
  background: #f0f0f0;
  color: #666;
}
.fs-c-productList__list {
  margin-bottom: 150px;
}
.itemsearch__sys .fs-c-productList__list__item.fs-c-productListItem {
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media (max-width: 767px) {
  .filter-status {
    padding: 16px;
    margin-bottom: 16px;
  }
  .filter-status__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .filter-status__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .filter-tag {
    font-size: 13px;
    padding: 5px 10px;
  }
  .fs-c-productList__list{
	  margin-bottom: 15px;
  }
}
