@charset "UTF-8";

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/zen-maru-gothic-v18-japanese-700.woff2') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'CustomFont2';
    src: url('../fonts/baloo-regular.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: 'CustomFont', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}
.status-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}
.status-label.upcoming { background-color: #ecab49; } /* オレンジ：販売予定 */
.status-label.ended { background-color: #9e9e9e; }    /* グレー：販売終了 */
.status-label.lowstock,
.status-label.available { background-color: #5fbfdf; } /* 水色：在庫あり or 少ない */

/* タイトル */
.title {
    display: flex;
    align-items: center;
}

.title h2 {
    font-family: 'CustomFont2', sans-serif;
    font-size: 3em;
    color: #333333;
    margin-left: 30px;
    padding-top: 10px;
}

.title img {
    width: 60px;
}

/* コンテナ */
.new-images-container {
    max-width: 1200px;
    margin: 200px auto 70px;
    padding: 20px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 50px 30px;
  justify-content: center;
  padding: 30px 0;
}

/* 商品カード */
.product-card {
  flex: 1 1 250px; /* 初期幅250px、縮小・拡大可能 */
  max-width: 300px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.product-card a {
    text-decoration: none;
    display: block;
    height: 100%;
}
.product-card.disabled {
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-3px);
}

/* 商品画像 */
.product-thumbnail {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* 締切表示 */
.product-deadline {
    width: 100%;
    text-align: center;
    background: #f8f8f8;
    font-size: 0.9em;
    padding: 4px 0;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

/* 詳細エリア */
.product-info {
    padding: 10px;
}

.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* テキストスタイル */
.product_name {
    color: #333333;
    font-size: 1.3em;
}

.product_price {
    text-align: left;
    color: #d85ca8;
    font-size: 1.5em;
}

.product_explain {
    color: #333333;
}

.product_creator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product_creator p {
    color: #333333;
    font-size: 1.4em;
}

.elapsed-time {
    text-align: right;
    color: #5f5f5f;
    width: 100%;
    font-size: 0.8em;
}

.elapsed-time img {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    margin-top: 3px;
}

/* モザイク表示に必要なスタイル */
.product-thumb-wrapper {
    position: relative;
}

.product-thumbnail {
    width: 100%;
    display: block;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.product-thumbnail.mosaic {
    filter: blur(6px);
    /* pixelatedでブロック風にするなら以下も検討 */
    /* image-rendering: pixelated; transform: scale(0.99); */
}

.mosaic-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66%;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
}



/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .product-card {
  flex: 1 1 250px; /* 初期幅250px、縮小・拡大可能 */
  max-width: 250px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
    .new-images-container {
        padding: 15px;
    }

    .title h2 {
        font-size: 1.8em;
    }

    .title img {
        width: 40px;
    }

    .product_name {
        font-size: 1em;
    }

    .product_price {
        font-size: 1.1em;
    }

    .product_creator p {
        font-size: 1em;
    }

    .product_explain {
        font-size: 0.9em;
    }

    .profile-icon {
        width: 40px;
        height: 40px;
    }

    .elapsed-time {
        font-size: 0.75em;
    }
          .product-thumbnail{height:300px;}
}

@media screen and (max-width: 600px) {
        .product-card {
  flex: 1 1 200px; /* 初期幅250px、縮小・拡大可能 */
  max-width: 200px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
    .title h2 {
        font-size: 1.5em;
        margin-left: 10px;
    }

    .title img {
        width: 35px;
    }

    .product_name {
        font-size: 0.95em;
    }

    .product_price {
        font-size: 1em;
    }

    .product_creator p {
        font-size: 0.95em;
    }

    .product_explain {
        font-size: 0.85em;
    }

    .profile-icon {
        width: 36px;
        height: 36px;
    }

    .elapsed-time {
        font-size: 0.7em;
    }
      .product-thumbnail{height:240px;}

}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.page-nav {
  background-color: #bbb;
  color: #fff !important;
  padding: 8px 16px 9px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.page-nav:hover {
  background-color: #27acd9;
}

.page-nav.disabled {
  background-color: #888;
  pointer-events: none;
  cursor: default;
}

.current-page {
  background-color: #27acd9;
  color: white;
  padding: 8px 16px;
  border-radius: 50%;
  font-weight: bold;
}



.creator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 20px;
  justify-content: center;
  margin: 100px 0 50px;
}

.creator-card {
  display: block;
  width: 170px;
  padding: 30px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  transition: transform 0.2s ease;
}

.creator-card:hover {
  transform: translateY(-4px);
}

.creator-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

.creator-card p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
}


.product-category {
    background-color: #5fbfdf; /* 水色 */
    color: #fff;               /* 白文字 */
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}



@media screen and (max-width: 600px) {
        .product-card {
  flex: 1 1 200px; /* 初期幅250px、縮小・拡大可能 */
  max-width: 200px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
    .title h2 {
        font-size: 1.5em;
        margin-left: 10px;
    }

    .title img {
        width: 35px;
    }

    .product_name {
        font-size: 0.95em;
    }

    .product_price {
        font-size: 1em;
    }

    .product_creator p {
        font-size: 0.95em;
    }

    .product_explain {
        font-size: 0.85em;
    }

    .profile-icon {
        width: 36px;
        height: 36px;
    }

    .elapsed-time {
        font-size: 0.7em;
    }
    .new-images-container {
    max-width: 1200px;
    margin: 120px auto 70px;
    padding: 20px;
}
.creator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  justify-content: center;
  margin: 50px 0 50px;
}

}




/* フィルター全体 */
.filter-section {
  background: #f9f9fb;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* 各ラベル */
.filter-section label {
  font-weight: bold;
  color: #333;
  margin-right: 5px;
  margin-left: 10px;
}

/* セレクトボックス */
.filter-section select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ホバー時・フォーカス時 */
.filter-section select:hover,
.filter-section select:focus {
  border-color: #888;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
  outline: none;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .filter-section select {
    width: 100%;
  }
  .filter-section label {
  font-weight: bold;
  color: #333;
  margin-right: 5px;
  margin-left: 0px;
}
/* セレクトボックス */
.filter-section select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}
/* フィルター全体 */
.filter-section {
  background: #f9f9fb;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 15px 0px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
}

}

.space{
    margin-top: 30px;
}



/* --- 検索エリア全体 --- */
.search-area {
  display: flex;
  justify-content: center;
  margin: 25px 0 20px;
}

/* --- 検索ボックス --- */
.search-box {
  position: relative;
  width: 90%;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 3.5px solid #ddd;
  border-radius: 30px;
  outline: none;
  background-color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-box input:focus {
  border-color: #de75e7;
  box-shadow: 0 3px 10px rgba(74,144,226,0.2);
}

/* --- 結果リスト --- */
#searchResults {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 100;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 各項目 --- */
.search-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.search-item:hover {
  background: #f5f8ff;
}

.search-empty {
  padding: 12px;
  text-align: center;
  color: #888;
}