@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;
}

/* タイトル */
.title {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.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;
}
.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;
}

/* 色分け（テキスト含む）：基本はclassで制御 */
.status-label.upcoming {
    background-color: #ecab49; /* 販売予定：オレンジ */
}
.status-label.ended {
    background-color: #9e9e9e; /* 販売終了：グレー */
}
.status-label.available {
    background-color: #5fbfdf; /* 販売中：水色 */
}
.status-label.lowstock {
    background-color: #5fbfdf; /* 残り○枚：紫 */
}

.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:hover {
    transform: translateY(-3px);
}

.img-overlay-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: transparent;
  pointer-events: auto;
}

/* 商品画像 */
.product-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* 締切表示 */
.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;
}

/* レスポンシブ対応 */
@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;
    }
}

@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;
    }


}

.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;
}
.outside_wrapper{
    max-width: 1200px;
    margin: 200px auto 150px;
    padding: 20px;
}
    .detail-container {
      display: flex;
      gap: 40px;
      margin: 30px 0;
    }
    .left-side {
      flex: 1;
      max-width: 400px;
    }
    .left-side img{
        border-radius: 30px;
    }
    .right-side {
      flex: 2;
      display: flex;
      flex-direction: column;
      gap: 15px;
      color: #333333;
    }
    .creator-info {
      display: flex;
      align-items: center;
      gap: 30px;
    }
    .creator-info img {
      width: 90px;
      height: 90px;
      border-radius: 50%;
  object-fit: cover;
    }

    .product-meta div {
      flex: 1;
    }
    .purchase-section {
      margin-top: 20px;
      text-align: center;
    }
    .description-box {
      background: #f9f9f9;
      padding: 10px;
      border-radius: 8px;
    }

    .user_name{
        font-size: 2em;
    }
    .product_name h3{
        font-size: 1.5em;
        margin: 30px 0 10px;
    }
    .product_name p{
        font-size: .8em;
    }
    .product_name{
        margin-bottom: 10px;
    }
    .opened_time{
        color: #777777;
    }
    .product-meta-background{
        background-image: url(../img/1355802542.jpg);
        background-size: cover;
        padding: 5px;
        border-radius: 20px;
    }
.product-meta {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 30px 0;
    border-radius: 20px;
}

.product-meta div {
    text-align: center;
    font-size: 1.2em;
    padding: 0 15px;
    position: relative;
}

.duration_time{
    background-color: rgb(201, 126, 211);
    color: white;
    padding: 4px 10px;
    margin-top: 30px;
    margin-bottom: -20px;
    border-radius: 15px;
    display: inline-block;

}

/* 区切り線の追加 */
.product-meta div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    height: 80%;
    width: 3px;
    background-color: #ccc;
}
.lest{
    font-size: 1.3em!important;
    color: #d6655f;
    margin-top: 10px;
}
.money{
    color: rgb(87, 124, 194);
    font-size: 1.3em!important;
    margin-right: 15px;
    margin-top: 10px;
}
.done{
    color: #7c7c7c;
    margin-top: 15px;
    font-size: 1em!important;
}
.space_above{
    margin-top: 20px;
}
.btn{
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  margin: 0 auto;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

.btn-malformation {
  font-size: 1.2rem;
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 100% 80px / 80px 100%;
  background-color: #eb6100;
}

.btn-malformation:hover {
  color: #fff;
  border-radius: 60% 80% / 100% 80%;
}
.login-button {
  display: inline-block;
  width: 0 auto;
}

.more_button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


a.btn_18 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 270px;
    padding: 1rem 3rem;
    font-weight: bold;
    border-radius: 10px;
    color: #3b3b3b;
    font-size: 20px;
    border: 3px solid #3b3b3b;
    box-shadow: 5px 5px #3b3b3b;
    transition: box-shadow 0.3s ease-in-out;
    background-color: white;
    text-decoration: none;
    position: relative;
}

a.btn_18:hover {
    box-shadow: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; /* ← 追加 */
}

.button_pic {
    width: 100px;
    margin-right: 30px;
    margin-bottom: -30px;
    transition: transform 0.3s ease-in-out;
}

[class^="button_pic"].hovered {
    transform: translate(5px, 5px);
}

.arrow{
    width: 25px;
    height: 25px;
    margin-top: 3px;
}



@media screen and (max-width: 800px) {
    .outside_wrapper{
    max-width: 1200px;
    margin: 120px auto 150px;
    padding: 20px;
}
    .detail-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 40px;
      margin: 30px 0;
    }
        .left-side {
      flex: 1;
      max-width: 300px;
    }
}
@media screen and (max-width: 600px) {
    .outside_wrapper{
    max-width: 1200px;
    margin: 120px auto 150px;
    padding: 20px;
}
    .detail-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 40px;
      margin: 30px 0;
    }
        .left-side {
      flex: 1;
      max-width: 250px;
    }
        .right-side {
      flex: 2;
      display: flex;
      flex-direction: column;
      gap: 15px;
      color: #333333;
      max-width: 100%;
    }
    .product-meta {
    display: flex;
    gap: 0px;
    justify-content: space-between;
    background-color: white;
    padding: 30px 0;
    border-radius: 20px;
}

    .product-meta div {
    text-align: center;
    font-size: .8em;
    padding: 0;
    position: relative;
}
.money{
    color: rgb(87, 124, 194);
    font-size: 1.3em!important;
    margin-top: 10px;
}
    .creator-info img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
    }
    .user_name{
        font-size: 1.5em;
    }
        .description-box {
      background: #f9f9f9;
      padding: 10px;
      border-radius: 8px;
      margin-top: 20px;
    }
    .space_above{
    margin-top: 10px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.more_button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: transform 0.3s ease-in-out;
    margin-top: 60px;
}
    .btn_18 {
        width: 250px!important;
        font-size: 18px!important;
        padding: 0.8rem 2rem!important;
    }
    .button_pic{
    width: 80px;
    margin-right: 30px;
    margin-bottom: -25px;
}
}


/* 商品画像（モザイクあり） */
.product-thumb-wrapper {
  position: relative;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

/* アスペクト比保持で中央に収める */
.thumb {
  width: 100%;
  height: auto;
  display: block;
}
/* モザイク */
.thumb.mosaic {
  filter: blur(6px);
}

.mosaic-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  pointer-events: none;
}