@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;
}



.outside_wrapper{
    max-width: 1200px;
    margin: 200px auto 150px;
    padding: 20px;
}
    .detail-container {
      display: flex;
      gap: 40px;
      margin: 30px auto;
      max-width: 800px;
      width: 100%;
    }
    .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;
    }
    .profile-icon {
      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;
        margin-top: 30px;
        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: 1em;
    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: 1em!important;
    color: #d6655f;
    margin-top: 10px;
}
.money{
    color: rgb(87, 124, 194);
    font-size: .9em!important;
    margin-right: 15px;
    margin-top: 10px;
}
.done{
    color: #7c7c7c;
    margin-top: 15px;
    font-size: .75em!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;
}






/* 商品画像（モザイクあり） */
.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;
}

/* サムネイル枠 */
.product-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;   /* 縦長比率に固定（例: 3:4、必要に応じて調整） */
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

/* 中央をくりぬき表示 */
.product-thumb-wrapper img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 枠に合わせて拡大し、はみ出した部分はトリミング */
  object-position: center; /* 真ん中を基準に切り抜く */
  display: block;
}
/* 透明オーバーレイ：全面でイベントを奪う（最重要） */
.product-thumb-wrapper .img-overlay-block {
  position: absolute;
  inset: 0;                        /* top/right/bottom/left:0 */
  z-index: 5;
  background: transparent;
  pointer-events: auto;            /* ← ここがないと裏のimgが反応します */
  touch-action: pan-y;              /* ← ジェスチャを無効化（長押し/ドラッグ） */
}

.product-thumb-wrapper.mosaic .thumb {
    filter: blur(10px); /* モザイク/ぼかし */
}

.product-thumb-wrapper .mosaic-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50%; /* ロゴサイズ調整 */
    pointer-events: none; /* クリックを通さない */
}

@media screen and (max-width: 800px) {
    .outside_wrapper{
    max-width: 600px;
    margin: 200px auto 150px;
    padding: 20px;
}
    .detail-container {
      display: flex;
    flex-direction: column;
      gap: 40px;
      margin: 30px auto;
      max-width: 800px;
      width: 100%;
    }
    .product-thumb-wrapper {
  position: relative;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}
    .left-side {
      flex: 1;
      max-width: 400px;
      margin: 0 auto;
    }
}
@media screen and (max-width: 600px) {
      .outside_wrapper{
    max-width: 1200px;
    margin: 120px auto 150px;
    padding: 20px;
}
.product-meta div {
    text-align: center;
    font-size: 1em;
    padding: 0 5px;
    position: relative;
}
.money{
    color: rgb(87, 124, 194);
    font-size: 1em!important;
    margin-right: 0;
    margin-top: 10px;
}

        .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: 60px;
        height: 60px;
    }

    .elapsed-time {
        font-size: 0.7em;
    }
    .user_name{
        font-size: 1.5em;
    }
    .product-thumb-wrapper {
        position: relative;
        width: 100%;
        background-color: #f0f0f0;
        border-radius: 8px;
        overflow: hidden;
        max-width: 250px;
        margin: 0 auto;
    }
    .done{
    color: #7c7c7c;
    margin-top: 15px;
    font-size: .85em!important;
}
}

/* トーク枠リスト */
.timetable ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
/* トーク枠リスト */
.timetable li {
  background: #fff;
  border: 2px solid #8cd3f8; /* 水色（通常） */
  border-radius: 12px;
  padding: 15px;
  margin: 0 auto 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 350px;
}

/* 予約済みの枠をピンクに変更 */
.timetable li.reserved {
  border-color: #ee81e8; /* ピンク */
}

/* 枠番号（背景色はそのままでも良ければこのまま） */
.timetable strong {
  display: inline-block;
  background: #4ab9f0; /* 濃いめの水色 */
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 枠番号も予約済みはピンクにしたい場合 */
.timetable li.reserved strong {
  background: #ee81e8;
}

/* 日付（重要度低い） */
.timetable .date {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 5px;
  display: block;
}

/* 時間（重要） */
.timetable .time {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* --- 表示モード --- */
.slot-view {
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 8px;
}

.slot-view .values {
  font-size: .9em;
  font-weight: bold;
  color: #7a7a7a;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.slot-view .edit-btn {
  display: block;
  margin-left: auto; /* 右寄せ */
  background: #ee81e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s;
}

/* --- 編集モード --- */
.slot-edit {
  margin-top: 8px;
}

.slot-edit .inputs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.slot-edit .input-group {
  display: flex;
  align-items: center;
  gap: 4px; /* inputと単位の隙間 */
}

.slot-edit input[type="number"] {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f7f7f7;
  font-size: 0.95em;
}
.slot-edit input[type="number"]:focus {
  border-color: #4ab9f0;
  outline: none;
  background-color: #fff;
}

.slot-edit .buttons {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  gap: 6px;
}
.slot-edit .buttons button {
  background: #ee81e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s;
}
.slot-edit .buttons .cancel-btn {
  background: #aaa;
}
.slot-edit .buttons button:hover {
  opacity: 0.9;
}


.slot-delete-form {
    margin-top: 8px;
    text-align: right;
}

.delete-btn {
    background-color: #ee8199;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 0.8;
}




/* モーダル全体 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;               /* 中央配置にするためflex */
  align-items: center;         /* 縦方向中央 */
  justify-content: center;     /* 横方向中央 */
  z-index: 999;
}

/* コンテンツ本体 */
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

/* タイトル */
.modal-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.close:hover {
  color: #333;
}

/* クリエイター情報 */
.creator-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}
.creator-name {
  font-size: 1.1rem;
  font-weight: bold;
}

/* 枠の詳細 */
.slot-detail p {
  margin: 6px 0;
  font-size: 0.95rem;
}

/* 所持ポイント */
.user-points {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

/* ボタン */
.confirm-btn {
  display: block;
  margin: 20px auto 0;
  padding: 12px 20px;
  background-color: #df89c4;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}
.confirm-btn:hover {
  background-color: #d369b0;
  transform: translateY(-2px);
}
.confirm-btn:active {
  transform: translateY(0);
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
.reserve-btn {
  display: block;
  margin: 15px auto 0;          /* 真ん中に配置 */
  padding: 8px 24px;
  background-color: #df89c4;  /* ピンク */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.reserve-btn:hover {
  background-color: #d369b0;  /* 少し濃いピンク */
  transform: translateY(-2px);
}

.reserve-btn:active {
  transform: translateY(0);
}