:root {
      --black: #111111;
      --white: #ffffff;
      --gray-50: #f7f7f7;
      --gray-100: #eeeeee;
      --gray-300: #d7d7d7;
      --gray-600: #666666;
      --red: #d91f26;
      --blue: #1769aa;
      --green: #16844a;
      --max-width: 1180px;
      --radius: 14px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--black);
      background: var(--white);
      font-family:
        "M PLUS 1p",
        "Zen Kaku Gothic New",
        "Noto Sans JP",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    }

    button,
    input,
    a {
      font: inherit;
    }

    a {
      color: inherit;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 255, 255, 0.96);
      border-bottom: 1px solid var(--gray-100);
      backdrop-filter: blur(8px);
    }

    .header-inner {
      width: min(100% - 28px, var(--max-width));
      min-height: 76px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 11px;
      min-width: 0;
    }

    .brand-mark {
      width: 46px;
      height: 46px;
      flex: 0 0 46px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--black);
      color: var(--white);
      font-size: 21px;
      line-height: 1;
    }

    .brand-name {
      margin: 0;
      font-size: clamp(20px, 3.6vw, 28px);
      font-weight: 900;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .updated-at {
      flex: 0 0 auto;
      text-align: right;
      color: var(--gray-600);
      font-size: 12px;
      line-height: 1.55;
    }

    .updated-at strong {
      display: block;
      color: var(--black);
      font-size: 13px;
      font-weight: 800;
    }

    main {
      width: min(100% - 28px, var(--max-width));
      margin: 0 auto;
      padding: 28px 0 44px;
    }

    .closed-notice {
      display: none;
      margin-bottom: 18px;
      padding: 14px 16px;
      border: 1px solid #f0b8ba;
      border-radius: 12px;
      background: #fff3f3;
      color: #b3151b;
      font-weight: 800;
      line-height: 1.6;
    }

    .closed-notice.is-visible {
      display: block;
    }

    .listing-count {
      margin: 0 0 14px;
      font-size: clamp(15px, 3.6vw, 18px);
      font-weight: 900;
    }

    .search-wrap {
      position: relative;
      margin-bottom: 16px;
    }

    .search-icon {
      position: absolute;
      top: 50%;
      left: 16px;
      transform: translateY(-50%);
      color: var(--gray-600);
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      height: 52px;
      padding: 0 16px 0 46px;
      border: 1px solid var(--gray-300);
      border-radius: 14px;
      outline: none;
      background: var(--white);
      font-size: 16px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-input:focus {
      border-color: var(--black);
      box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
    }

    .category-list {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 2px 0 12px;
      margin-bottom: 20px;
      scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
      display: none;
    }

    .category-button {
      flex: 0 0 auto;
      min-height: 40px;
      padding: 8px 15px;
      border: 1px solid var(--gray-300);
      border-radius: 999px;
      background: var(--white);
      color: var(--black);
      cursor: pointer;
      font-size: 14px;
      font-weight: 800;
      transition: 0.2s ease;
    }

    .category-button:hover {
      border-color: var(--black);
    }

    .category-button.is-active {
      border-color: var(--black);
      background: var(--black);
      color: var(--white);
    }

    .wanted-section {
      margin: 8px 0 28px;
    }

    .wanted-section.is-hidden {
      display: none;
    }

    .wanted-heading {
      margin-bottom: 12px;
    }

    .wanted-title {
      margin: 0;
      font-size: clamp(22px, 5vw, 28px);
      font-weight: 900;
      line-height: 1.2;
      letter-spacing: 0.01em;
    }

    .wanted-subtitle {
      margin: 5px 0 0;
      color: var(--gray-600);
      font-size: 13px;
      font-weight: 700;
    }

    .wanted-scroll {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(150px, 44vw);
      gap: 12px;
      overflow-x: auto;
      padding: 2px 2px 12px;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
    }

    .wanted-scroll .product-card {
      scroll-snap-align: start;
    }

    .product-list-heading {
      margin: 0 0 14px;
      padding-top: 4px;
      font-size: 20px;
      font-weight: 900;
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .product-card {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--gray-100);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    }

    .wanted-ribbon {
      position: absolute;
      top: 12px;
      left: -34px;
      z-index: 2;
      width: 118px;
      padding: 5px 0;
      transform: rotate(-45deg);
      background: var(--red);
      color: var(--white);
      text-align: center;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.05em;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .product-image-wrap {
      width: 100%;
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      overflow: hidden;
      background:
        linear-gradient(135deg, #fafafa, #f1f1f1);
    }

    .product-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .image-placeholder {
      color: #9b9b9b;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .product-body {
      padding: 12px 12px 14px;
    }

    .product-name {
      min-height: 2.8em;
      margin: 0 0 8px;
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .price-list {
      display: grid;
      gap: 5px;
    }

    .price-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3px;
      font-size: 12px;
      font-weight: 800;
    }

    .price-label {
      color: var(--gray-600);
      line-height: 1.2;
    }

    .price-value {
      justify-self: end;
      padding-right: 2px;
      font-size: clamp(17px, 4vw, 22px);
      font-weight: 900;
      line-height: 1.1;
      white-space: nowrap;
    }

    .price-red .price-value {
      color: var(--red);
    }

    .price-blue .price-value {
      color: var(--blue);
    }

    .price-green .price-value {
      color: var(--green);
    }

    .empty-message {
      display: none;
      padding: 44px 16px;
      text-align: center;
      color: var(--gray-600);
      font-weight: 700;
    }

    .empty-message.is-visible {
      display: block;
    }

    .site-footer {
      border-top: 1px solid var(--gray-100);
      background: var(--white);
    }

    .footer-inner {
      width: min(100% - 28px, var(--max-width));
      margin: 0 auto;
      padding: 28px 0 34px;
    }

    .footer-notes {
      margin-bottom: 18px;
      color: var(--gray-600);
      font-size: 12px;
      line-height: 1.8;
    }

    .footer-notes p {
      margin: 0;
    }

    .footer-links {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .footer-button {
      min-height: 48px;
      display: grid;
      place-items: center;
      padding: 10px 18px;
      border: 1px solid var(--black);
      border-radius: 12px;
      text-decoration: none;
      font-weight: 900;
      transition: 0.2s ease;
    }

    .footer-button:hover {
      background: var(--black);
      color: var(--white);
    }

    .copyright {
      margin: 18px 0 0;
      color: #999999;
      text-align: center;
      font-size: 11px;
    }

    @media (min-width: 640px) {
      .wanted-scroll {
        grid-auto-columns: minmax(180px, 28vw);
        gap: 16px;
      }

      .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }

      .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 900px) {
      main {
        padding-top: 36px;
      }

      .wanted-scroll {
        grid-auto-columns: 210px;
        gap: 18px;
      }

      .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px;
      }

      .product-body {
        padding: 14px 14px 16px;
      }
    }

/* 商品一覧見出しと表示件数 */
.product-list-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-list-heading-row .product-list-heading {
  margin: 0;
}

.result-information {
  margin: 0;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* 小さいスマートフォンでも操作しやすくする */
@media (max-width: 390px) {
  .header-inner,
  main,
  .footer-inner {
    width: min(100% - 18px, var(--max-width));
  }

  .product-grid {
    gap: 8px;
  }
}
/*
 * スマホの商品表示を4〜5列にする
 * style.cssの一番下に追加
 */

/* 通常のスマートフォン：4列 */
@media screen and (max-width: 429px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 5px;
  }

  .wanted-scroll {
    grid-auto-columns: calc((100vw - 49px) / 4);
    gap: 5px;
  }

  .product-card {
    border-radius: 6px;
  }

  .product-information {
    padding: 6px 3px 7px;
  }

  .product-name {
    min-height: 2.6em;
    margin-bottom: 5px;

    font-size: 10px;
    line-height: 1.3;
  }

  .price-list {
    gap: 5px;
  }

  .price-label {
    font-size: 8px;
  }

  .price-value {
    padding-right: 1px;
    font-size: 13px;
  }

  .wanted-ribbon {
    top: 8px;
    left: -38px;
    width: 110px;

    padding: 3px 0;
    font-size: 8px;
  }
}


/* 大きめのスマートフォン：5列 */
@media screen and (min-width: 430px) and (max-width: 639px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 5px;
  }

  .wanted-scroll {
    grid-auto-columns: calc((100vw - 54px) / 5);
    gap: 5px;
  }

  .product-card {
    border-radius: 6px;
  }

  .product-information {
    padding: 6px 3px 7px;
  }

  .product-name {
    min-height: 2.6em;
    margin-bottom: 5px;

    font-size: 10px;
    line-height: 1.3;
  }

  .price-list {
    gap: 5px;
  }

  .price-label {
    font-size: 8px;
  }

  .price-value {
    padding-right: 1px;
    font-size: 13px;
  }

  .wanted-ribbon {
    top: 8px;
    left: -38px;
    width: 110px;

    padding: 3px 0;
    font-size: 8px;
  }
}


/* =====================================
   ヘッダー右上：更新日時・営業状況
===================================== */

.header-status {
  flex: 0 0 auto;
  text-align: right;
}

.header-status-label {
  display: block;
  margin-bottom: 3px;
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1;
}

.header-status-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-status-date {
  display: inline !important;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.header-open-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;

  box-shadow:
    0 0 4px rgba(34, 197, 94, 0.9),
    0 0 8px rgba(34, 197, 94, 0.6);

  animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 4px rgba(34, 197, 94, 0.9),
      0 0 8px rgba(34, 197, 94, 0.6);
  }

  50% {
    transform: scale(1.2);
    box-shadow:
      0 0 6px rgba(34, 197, 94, 1),
      0 0 14px rgba(34, 197, 94, 0.9);
  }
}

/* スマホでは窮屈にならないよう少し縮小 */
@media screen and (max-width: 429px) {
  .header-status-line {
    gap: 7px;
  }

  .header-status-label {
    font-size: 10px;
  }

  .header-status-date,
  .header-open-status {
    font-size: 11px;
  }

  .header-open-icon {
    font-size: 13px;
  }
}

/* ===========================
   買取ミミ ロゴ画像
=========================== */

.brand-mark {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  border-radius: 50%;
  overflow: hidden;

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

  background: transparent;
}

.brand-logo{
    max-width:32px;
    max-height:32px;
    width:auto;
    height:auto;
    display:block;
}