@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;
}

.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* テキストスタイル */
.product_name {
    color: #333333;
    font-size: 1.3em;
}

.product_price {
    color: #d85ca8;
    font-size: 1.5em;
    text-align: right;
}

.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 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .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: 1050px;
    margin: 150px auto 50px;
    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 50px;
    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;
}
}


.shop-header-mini {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.shop-header-mini .shop-bg {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

.shop-header-mini .shop-profile {
  position: absolute;
  bottom: -25px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-header-mini .shop-icon-mini {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  background-size: cover;
  background-position: center;
}

.shop-header-mini .shop-name-mini {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}
.product-detail {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.product-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;             /* 矢印と画像の距離 */
  max-width: 480px;      /* 全体の最大幅 */
  margin: 0 auto;
  margin-bottom: 30px;
}

.main-image-box {
  flex: 1;
  max-width: 400px;      /* 画像の最大サイズ */
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 正方形 */
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.nav-arrow {
  background-color: #39c5d8; /* 水色 */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  color: white;
  align-items: center;
  transition: background-color 0.3s;
  flex-shrink: 0; /* 矢印がつぶれないように固定 */
}

.nav-arrow.disabled {
  background-color: #ccc; /* 薄灰色 */
  cursor: default;
  pointer-events: none;
}
.sub-images{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sub-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.sub-image:hover,
.sub-image.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #5fbfdf;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 25px;
  background-color: white;
}

.price {
    color: #d85ca8;
    font-size: 2.2em;
    text-align: right;
    margin: 30px 0 0;
}
.price span {
    color: #646464;
    font-size: .4em;
    text-align: right;
}
.product_detail{
    padding: 0 20px 20px 20px;
}
.delivery{
  display: flex;
  justify-content: right;
}
.delivery p{
  text-align: center;
  width: 250px;
  padding: 10px 2px;
  background-color: #ececec;
  border-radius: 10px;
  font-size: .9em;
  color: rgb(212, 89, 89);
}
.delivery span{
  color: rgb(107, 107, 107);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }
  .main-image-wrapper {
    max-width: 100%;
  }
}
.shop-preview {
  max-width: 600px;
  margin: 50px auto;
}

.shop-header {
  width: 100%;
  height: auto; /* 高さは画像比率に応じて可変に */
  background-color: #eee; /* 背景画像を使う場合はここで background-image */
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  position: relative;
    background-size: 100% auto;  /* 横幅に合わせて縦は自動調整 */
  background-repeat: no-repeat;
  background-position: top center;
  aspect-ratio: 3 / 1; /* 任意。固定比率を決めたいなら入れる */
}

/* アイコン */
.shop-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  position: absolute;
  bottom: -25px; /* 下に少し被せる */
  left: 20px;
}

/* 本文部分 */
.shop-body {
  padding: 60px 20px 20px 20px; /* 上部にアイコン分のスペース */
}

/* 名前 */
.shop-name {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  text-align: right;
  margin: 20px 20px 0 0;
}

.notes{
  margin-top: 50px;
}

/* レスポンシブ */
@media (max-width: 600px) {

  .shop-icon {
    width: 70px;
    height: 70px;
    bottom: -35px;
    left: 15px;
  }
  .shop-name {
    font-size: 1.2em;
  }
}

.category{
  color: white;
  background-color: #27acd9;
  border-radius: 20px;
  font-size: .5em !important;
  padding: 1px 15px;
  margin-bottom: 3px;
}
.line{
    width: 100%;
    margin: 10px 0 0px;
}
.line img {
    width: 100%;
    height: 100%;
    display: block; 
}

/* ===== 購入数選択エリア ===== */
.purchase-section .quantity-wrapper {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
  margin-bottom: 30px; /* 下に隙間 */
}

.purchase-section label {
  margin-right: 8px;
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.purchase-section select {
  padding: 6px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.purchase-section select:hover {
  border-color: #888;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.purchase-section select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}



.notes {
  max-width: 920px;
  margin: 20px auto;
  border-radius: 10px;
  color: #2e2e2e;
  line-height: 1.5;
  word-break: break-word;
  font-size: 13px;
}

/* タイトル（※注意事項）を見やすく */
.notes strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  color: #b91c1c; /* 少し目立つ赤系 */
}

/* 各項目を「⚠️」付きで見やすく整形 */
.notes br {
  display: none; /* <br>は非表示にして擬似要素で区切る */
}

.notes {
  white-space: pre-line; /* 改行を維持（nl2brのbrを打ち消した分を補完） */
}

.notes {
  counter-reset: note-counter;
}

.notes::before,
.notes span {
  counter-increment: note-counter;
}

/* 各行をリスト風にする */
.notes {
  display: block;
}

.notes:after {
  content: "";
  display: block;
}

.notes {
  padding-left: 0;
}

.notes strong + br {
  display: none;
}

/* 各改行部分をブロック要素風に整形 */
.notes br + * {
  display: block;
  margin-top: 8px;
  padding-left: 28px;
  position: relative;
}

.notes br + *::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  top: 0;
}
.product_detail h2{
  margin-bottom: 20px;
}


.btn-cart {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;   /* ← block ではなく inline-block のほうが自然 */
  padding: 1rem 4rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  margin-bottom: 40px;
  background-color: #e7e7e7;
  color: #636363;
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-cart:hover {
  background-color: #c4c4c4;
  transform: translateY(-2px);
}

.btn-cart:active {
  transform: translateY(0);
}


/* カート */

.cart-icon {
    position: fixed;
    top: 100px;      /* 下からの位置 */
    right: 20px;       /* 右端からの位置 */
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: #ececec;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
}

.cart-icon img {
    width: 100%;
    height: 100%;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}


/* ユーザー情報フォーム */
.user-info-form {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 10px;
  margin-top: 20px;
}

.user-info-form p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.user-info-form .attention {
  color: #d9534f; /* 赤文字で注意強調 */
  font-size: 13px;
  margin-bottom: 15px;
}

.user-info-form .form-group {
  margin-bottom: 15px;
}

.user-info-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.user-info-form input[type="text"],
.user-info-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.user-info-form textarea {
  min-height: 80px;
  resize: vertical;
}

.user-info-form .btn-submit {
  background: #28a745; /* 緑系 */
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.user-info-form .btn-submit:hover {
  background: #218838;
}