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



.status-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}

/* 状態ごとの色分け（任意） */
.status-label:contains("販売予定") { background-color: #ecab49; }
.status-label:contains("販売終了") { background-color: #9e9e9e; }

.disabled-link {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* 状態別カラー */
.status-label.upcoming {
    background-color: #cf56b1; /* オレンジ：販売予定 */
}

.status-label.ended {
    background-color: #9e9e9e; /* グレー：販売終了 */
}
.status-label.available {
    background-color: #5fbfdf;
}
.status-label.lowstock {
    background-color: #5fbfdf;
}

.product-thumb-wrapper {
    position: relative;
}

/* ここから */

.main_view{
  width: 100%;
  max-width: 600px;
  margin: 100px auto 0;
}
.main_view img{
  width: 100%;
}

.campaign {
  width: 100%;
  max-width: 500px;
  margin: 100px auto;
  position: relative;
  overflow: hidden;
}
.campaign picture {
    width: 100%;
    max-width: 500px;
}

.campaign-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.campaign-slider a {
  flex: 0 0 100%;
}

.campaign img {
  width: 100%;
  max-width: 500px; /* ここを追加 */
  display: block;
  margin: 0 auto;   /* 中央寄せ */
}

.campaign-dots {
  text-align: center;
  margin-top: 15px;
}

.campaign-dots button {
  border: none;
  background: #ccc;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.campaign-dots button.active {
  background: #000;
}

.waving-character {
    position: absolute;
    top: 200px;
    right: 60px;
    width: 300px;
    height: auto;
    z-index: 10;
    transition: transform 0.6s ease;
    transform: translate(0, 0); /* 初期：ひょっこり見えてる */
    z-index: 0;
}

.waving-character img {
    width: 100%;
    display: block;
}

/* hide クラスがついたら右上に逃げる */
.waving-character.hide {
    transform: translate(40%, -80%);
}

@media (max-width: 1400px) {

.campaign{
    width: 100%;
    max-width: 900px;
    margin: 100px auto;
}
.waving-character {
    position: absolute;
    top: 200px;
    right: 60px;
    width: 250px;
    height: auto;
    z-index: 10;
    transition: transform 0.6s ease;
    transform: translate(0, 0); /* 初期：ひょっこり見えてる */
    z-index: 0;
}
.waving-character.hide {
    transform: translate(40%, -90%);
}

}

@media (max-width: 1200px) {

.main_view{
  width: 95%;
  margin: 100px auto 0;
}
.campaign{
    width: 100%;
    max-width: 900px;
    margin: 100px auto;
}
}
@media (max-width: 1000px) {

.main_view{
  width: 95%;
  margin: 100px auto 0;
}
.campaign{
    width: 80%;
    max-width: 900px;
    margin: 70px auto;
}
.waving-character {
    position: absolute;
    top: 130px;
    right: 60px;
    width: 170px;
    height: auto;
    z-index: 10;
    transition: transform 0.6s ease;
    transform: translate(0, 0); /* 初期：ひょっこり見えてる */
    z-index: 0;
}
.waving-character.hide {
    transform: translate(40%, -75%);
}
}
@media (max-width: 600px) {
    .status-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
    font-size: .8em;
}

.main_view{
  width: 90%;
  margin: 90px auto 0;
}
.campaign{
    width: 90%;
    max-width: 300px;
    margin: 70px auto;
}
.campaign img {
  width: 100%;
  max-width: 300px; /* ここを追加 */
  display: block;
  margin: 0 auto;   /* 中央寄せ */
}
.waving-character.hide {
    transform: translate(40%, -100%);
}
}

.line{
    width: 100%;
}
.line img {
    width: 100%;
    height: 100%;
    display: block; 
}

.color_background{
    width: 100%;
    background-image: url(../img/8631.png);
    background-size: cover;
    padding: 100px 0 0;
}

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

.all-products-container {
  max-width: 1200px;
  margin: 150px auto 70px;
  padding: 20px;
}

/* 横スクロールできるように調整 */
.scroll-wrapper {
  max-width: 1200px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  padding: 20px 50px;
}

.scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-wrapper.active {
  cursor: grabbing;
}

/* 商品リストを折り返し可能にする */
.product-list {
  display: flex;
  flex-wrap: wrap;   /* ← nowrap を wrap に */
  gap: 20px;
  justify-content: flex-start;
  padding: 30px 0;
  list-style: none;
  margin: 0;
}

.product-card {
  width: 190px;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.product-card a {
    text-decoration: none;
}

.product-card:hover {
  transform: translateY(-3px);
}

/* 商品画像 */
.product-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: contain;
  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;
}

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

a.btn_18 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 250px;
    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);
}
.button_pic2{
    width: 100px;
    margin-right: 30px;
    margin-bottom: -15px;
    transition: transform 0.3s ease-in-out;

}
.button_pic3{
    width: 100px;
    margin-right: 30px;
    margin-bottom: -26px;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease-in-out;

}

.arrow{
    width: 25px;
    height: 25px;
    margin-top: 3px;
}
.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: .8em;
}
.elapsed-time img{
    width: 13px;
    height: 13px;
    margin-right: 5px;
    margin-top: 3px;
}
.product-category {
    background-color: #5fbfdf; /* 水色 */
    color: #fff;               /* 白文字 */
    font-weight: bold;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}
.shop_name{
    color: #333333;
    font-size: .9em !important;
}

/* ---------- mosaic thumbnail ---------- */
.product-thumb-wrapper {
    position: relative;          /* ロゴを重ねる土台 */
}

.product-thumbnail {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* ▼ モザイク（ぼかし） */
.product-thumbnail.mosaic {
    /* ぼかし量はお好みで。pixelate を強調したい場合は値を上げる */
    filter: blur(6px);
    /* さらに明度を落として「隠している」感を強めるなら ↓ */
    /* filter: blur(6px) brightness(0.7); */
}

/* ▼ ロゴ（画像の 2/3 サイズで中央配置） */
.mosaic-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全中央寄せ */
    width: 66%;       /* = 2/3 */
    height: auto;
    pointer-events: none;        /* クリック判定を邪魔しない */
    opacity: 0.85;              /* 背景となじむ程度の透過に */
}

/* レスポンシブ対応（スマホ・タブレット） */
@media screen and (max-width: 1024px) {
    .new-images-container {
        padding: 15px;
    }

    .title h2 {
        font-size: 2.2em;
    }

    .title img {
        width: 45px;
    }

    .product-card {
        width: 200px;
    }

    .product_name {
        font-size: 1.1em;
    }

    .product_price {
        font-size: 1.2em;
    }

    .product_creator p {
        font-size: 1.2em;
    }


    .btn_18 {
        width: 200px!important;
        font-size: 18px!important;
        padding: 0.8rem 2rem!important;
    }
    .button_pic{
    width: 80px;
    margin-right: 30px;
    margin-bottom: -25px;
}
.button_pic2{
    width: 80px;
    margin-right: 30px;
    margin-bottom: -12px;
}
.button_pic3{
    width: 80px;
    margin-right: 30px;
    margin-bottom: -22px;
    position: relative;
    z-index: 5;
}


    .arrow {
        width: 20px;
        height: 20px;
    }

}

@media screen and (max-width: 600px) {
    .product-list {
  display: flex;
  flex-wrap: wrap;   /* ← nowrap を wrap に */
  gap: 20px;
  justify-content: center;
  padding: 30px 0;
  list-style: none;
  margin: 0;
}

    .title h2 {
        font-size: 1.8em;
        margin-left: 15px;
    }

    .scroll-wrapper {
        padding: 0 10px;
    }

    .product-card {
        width: 150px;
    }

    .product_name {
        font-size: 1em;
    }

    .product_price {
        font-size: 1.1em;
    }

    .product_creator p {
        font-size: 1em;
    }

    .profile-icon {
        width: 40px;
        height: 40px;
    }

    .btn_18 {
        width: 180px;
        font-size: 16px;
        padding: 0.6rem 1.5rem;
    }


    .arrow {
        width: 18px;
        height: 18px;
    }
      .product-thumbnail{height:150px;}

}


@media screen and (max-width: 600px) {

.profile-border {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--border-color, #ccc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.profile-icon-large {
    border-radius: 50%;
    object-fit: cover;
    width: 95px;
    height: 95px;
    background-color: white;
}

.all-products-container {
  max-width: 1200px;
  margin: 100px auto 70px;
  padding: 20px;
}
}


/* ここまで */


.for-u_goods {
    max-width: 600px;
    margin: 50px auto 0;
    padding: 20px;
}

.for-u_goods img{
    width: 100%;
}


/* overlay（販売予定・販売終了）のスタイル */
.product-card.overlay,
.product-card.overlay .product-thumbnail {
    pointer-events: none;  /* クリック不可 */
    opacity: 0.8;          /* 少し白っぽく */
}

/* カート */

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



/* フィルター全体 */
.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;
}

.product-card.disabled {
    opacity: 0.7;           /* 少し白っぽく */
    pointer-events: none;    /* クリック無効 */
}


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