@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;
}




/* ここから */

main{
    padding: 20px;
}

.section_cover {
    width: 100%;
    max-width: 800px;
    margin: 250px auto 150px;
    padding: 15px;
    border-radius: 40px;
    background-image: url(../../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
    padding-bottom: 40px;
}
.form_section p{
    font-size: 18px;
    color: #3b3b3b;
}

.form_section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-top: 50px;
    margin-bottom: 30px;
}



.waving-character {
    position: absolute;
    top: -90px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
.waving-character2 {
    position: absolute;
    top: -120px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

.waving-character img {
    width: 100%;
    display: block;
}
.waving-character2 img {
    width: 100%;
    display: block;
}

/* ひょっこり出てくる状態 */
.waving-character.show {
    transform: translateY(0);
    opacity: 1;
}
/* ひょっこり出てくる状態 */
.waving-character2.show {
    transform: translateY(0);
    opacity: 1;
}

.line{
    width: 100%;
    margin: 10px 0 40px;
}
.line img {
    width: 100%;
    height: 100%;
    display: block; 
}
@media (max-width: 1000px) {


.waving-character2 {
    position: absolute;
    top: -90px;
    right: 30px;
    width: 150px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
}


@media (max-width: 600px) {
    .section_cover {
    width: 100%;
    max-width: 800px;
    margin: 180px auto 100px;
    padding: 10px;
    border-radius: 40px;
    background-image: url(../../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}


.form_section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 50px;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
}

.waving-character {
    position: absolute;
    top: -55px;
    right: 30px;
    width: 110px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

}





    .shop-body {
      padding: 70px 50px 20px; /* アイコン分スペースを確保 */
    }
    .shop-name {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 8px;
    }
    .shop-description {
      font-size: 1rem;
      color: #333;
      line-height: 1.5;
    }


    .title {
    display: flex;
    align-items: center;
}
/* ここまで */


.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;
}

.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: 0 auto 70px;
  padding: 20px;
}

/* 横スクロールできるように調整 */
.scroll-wrapper {
  max-width: 1200px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-wrapper.active {
  cursor: grabbing;
}

/* 商品一覧修正 */
.product-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 50px 30px 30px;
    max-width: 640px;
    margin: 0 auto;
}
.product-list-wrapper {
    display: flex;
    justify-content: center; /* 行全体を中央寄せ */
}

.product-card {
  width: 180px;
  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-thumb-wrapper {
  width: 180px;
  height: 180px;
  background-color: #fff; /* 余白を白に */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative; /* ラベル配置用 */
}

.product-thumbnail {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 縦長/横長でも収まる */
  background-color: #fff;
}
/* 締切表示 */
.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.85rem;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* ---------- 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;              /* 背景となじむ程度の透過に */
}

.product-card.disabled {
    opacity: 0.5;
    pointer-events: none; /* クリック無効 */
}
.product-thumbnail {
    -webkit-user-drag: none;
    user-select: none;
}

/* レスポンシブ対応（スマホ・タブレット） */
@media screen and (max-width: 1024px) {
    .new-images-container {
        padding: 15px;
    }

    .title h2 {
        font-size: 2.2em;
    }

    .title img {
        width: 45px;
    }
    .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;
    }
      .product-thumbnail{height:300px;}

}

@media screen and (max-width: 600px) {

    .title h2 {
        font-size: 1.8em;
        margin-left: 15px;
    }

    .scroll-wrapper {
        padding: 0 10px;
    }

    .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:240px;}
        .shop-body {
      padding: 70px 15px 20px; /* アイコン分スペースを確保 */
    }
        .shop-name {
      font-size: 1.6rem;
      font-weight: bold;
      margin-bottom: 8px;
    }
    .shop-description {
      font-size: .9rem;
      color: #333;
      line-height: 1.5;
    }
}


.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;
}

/* 押せないボタン（disabled） */
.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;
}


/* ソートフォーム */
.sort-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.sort-form label {
    display: flex;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
    .sort-form {
        flex-direction: column;
        gap: 10px;
        font-size: .8em;
        max-width: 300px;
    }
.status-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}

}

.sort-form label {
    display: flex;
    white-space: nowrap;    /* 文字を折り返さない */
    align-items: center;
    gap: 10px;
}
form select{
    width: 100%;
    max-width: 150px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'CustomFont', sans-serif;
    box-sizing: border-box;
    resize: vertical;
}

/* select box 特有の見た目の調整 */
form select {
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* textarea 調整 */
form textarea {
    min-height: 120px;
}

@media screen and (max-width: 710px) {
/* 商品一覧修正 */
.product-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 30px;
    max-width: 440px;
    margin: 0 auto;
}
}
@media screen and (max-width: 500px) {
/* 商品一覧修正 */
.product-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 30px 10px;
    max-width: 350px;
    margin: 0 auto;
}
.product-card {
  width: 150px;
  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-thumb-wrapper {
  width: 150px;
  height: 150px;
  background-color: #fff; /* 余白を白に */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative; /* ラベル配置用 */
}
form select{
    width: 100%;
    max-width: 100px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'CustomFont', sans-serif;
    box-sizing: border-box;
    resize: vertical;
    font-size: .9em;
}
main{
    padding: 10px;
}

}
