/* ============================================================
   アプライドネット ノートパソコンかんたん検索
   カテゴリページ直接設置用 CSS
   ============================================================ */

#applied_notepc_search_area,
#applied_notepc_search_area * {
  box-sizing: border-box;
}

#applied_notepc_search_area {
  width: 100%;
  margin: 0 0 28px;
  font-family: inherit;
  color: #222;
}

#applied_notepc_search_area a {
  color: inherit;
  text-decoration: none;
}

.ap-note-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ap-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ap-note-kicker {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ap-note-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: #1f2937;
}

.ap-note-lead {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.ap-note-reset {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #d9e2ef;
  background: #f7faff;
  color: #2563eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ap-note-reset:hover {
  background: #ecf4ff;
  transform: translateY(-1px);
}

.ap-note-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #edf0f5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ap-note-filter-group {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.ap-note-filter-group:nth-child(4n) {
  border-right: 0;
}

.ap-note-filter-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.ap-note-filter-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ap-note-filter-btn {
  width: 100%;
  min-height: 42px;
  appearance: none;
  border: 1px solid #e1e7f0;
  background: #fff;
  border-radius: 8px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.ap-note-filter-btn:hover {
  border-color: #9ec5ff;
  background: #f8fbff;
  transform: translateY(-1px);
}

.ap-note-filter-btn.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.ap-note-filter-btn.is-disabled-count {
  opacity: 0.45;
}

.ap-note-filter-btn.is-disabled-count:hover {
  transform: none;
}

.ap-note-filter-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fb;
  color: #2563eb;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.ap-note-filter-btn.is-active .ap-note-filter-icon {
  background: #2563eb;
  color: #fff;
}

.ap-note-filter-icon.ap-note-icon-creator {
  background: linear-gradient(135deg, #2b1a78 0%, #7c3aed 100%);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.ap-note-filter-btn.is-active .ap-note-filter-icon.ap-note-icon-creator {
  background: linear-gradient(135deg, #4c1d95 0%, #9333ea 100%);
  color: #ffffff;
}

.ap-note-filter-icon.ap-note-icon-gpu {
  background: #f3f6fb;
}

.ap-note-filter-icon.ap-note-icon-onboard {
  background: #f3f6fb;
}

.ap-note-filter-icon.ap-note-icon-applied {
  background: #e60012;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.ap-note-filter-btn.is-active .ap-note-filter-icon.ap-note-icon-applied {
  background: #c40010;
  color: #ffffff;
}

.ap-note-filter-label {
  flex: 1 1 auto;
  min-width: 0;
}

.ap-note-filter-count {
  flex: 0 0 auto;
  min-width: 22px;
  color: #94a3b8;
  font-size: 11px;
  text-align: right;
  font-weight: 800;
}

.ap-note-filter-btn.is-active .ap-note-filter-count {
  color: #1d4ed8;
}

.ap-note-clear-group {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2563eb;
  margin: 9px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ap-note-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}

.ap-note-searchbox {
  flex: 1 1 auto;
}

.ap-note-searchbox input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe4f0;
  border-radius: 9px;
  padding: 0 13px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.ap-note-searchbox input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ap-note-sortbox {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-note-sortbox label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.ap-note-sortbox select {
  height: 42px;
  border: 1px solid #dbe4f0;
  border-radius: 9px;
  padding: 0 30px 0 12px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.ap-note-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.ap-note-count {
  color: #4b5563;
  font-size: 13px;
}

.ap-note-count strong {
  color: #111827;
  font-size: 20px;
  margin-right: 3px;
}

.ap-note-selected {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ap-note-selected span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}

.ap-note-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ap-note-card {
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.ap-note-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.ap-note-card.is-soldout {
  opacity: 0.68;
}

.ap-note-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  background: #f8fafc;
  padding: 14px;
  border-bottom: 1px solid #edf0f5;
}

.ap-note-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ap-note-noimage {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.ap-note-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ap-note-card-name {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.ap-note-card-name a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.ap-note-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
}

.ap-note-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.ap-note-card-meta {
  margin-top: auto;
}

.ap-note-price {
  margin: 0 0 4px;
  color: #dc2626;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 900;
}

.ap-note-stock,
.ap-note-shipping {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.ap-note-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.15s ease;
}

.ap-note-detail-btn:hover {
  background: #1d4ed8;
}

.ap-note-pager {
  margin: 18px 0 0;
}

.ap-note-pager-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ap-note-pager button {
  min-width: 36px;
  height: 36px;
  appearance: none;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ap-note-pager button:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.ap-note-pager button.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.ap-note-pager-dots {
  color: #94a3b8;
  padding: 0 4px;
}

.ap-note-loading-wrap {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ap-note-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: ap-note-spin 0.8s linear infinite;
}

.ap-note-loading-text {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.ap-note-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.ap-note-error strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ap-note-error p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.ap-note-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

@keyframes ap-note-spin {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1100px) {
  .ap-note-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ap-note-filter-group:nth-child(4n) {
    border-right: 1px solid #edf0f5;
  }

  .ap-note-filter-group:nth-child(3n) {
    border-right: 0;
  }

  .ap-note-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 769px) {
  #applied_notepc_search_area {
    margin: 0 0 20px;
  }

  .ap-note-wrap {
    border-radius: 8px;
    padding: 12px;
  }

  .ap-note-head {
    display: block;
  }

  .ap-note-title {
    font-size: 19px;
  }

  .ap-note-reset {
    margin-top: 10px;
    width: 100%;
  }

  .ap-note-filter-grid {
    grid-template-columns: 1fr;
  }

  .ap-note-filter-group,
  .ap-note-filter-group:nth-child(3n),
  .ap-note-filter-group:nth-child(4n) {
    border-right: 0;
  }

  .ap-note-filter-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-note-toolbar {
    display: block;
  }

  .ap-note-sortbox {
    margin-top: 10px;
    justify-content: space-between;
  }

  .ap-note-sortbox select {
    flex: 1 1 auto;
  }

  .ap-note-result-head {
    display: block;
  }

  .ap-note-selected {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .ap-note-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ap-note-card-img {
    height: 130px;
  }

  .ap-note-card-body {
    padding: 10px;
  }

  .ap-note-card-name {
    font-size: 12px;
  }

  .ap-note-price {
    font-size: 15px;
  }
}

@media screen and (max-width: 420px) {
  .ap-note-filter-buttons {
    grid-template-columns: 1fr;
  }

  .ap-note-products {
    grid-template-columns: 1fr;
  }

  .ap-note-card-img {
    height: 160px;
  }
}
