/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* 投稿者情報を消す */
.home .byline { 
     display:none !important; 
}
.archive .byline {
     display:none !important;
}
.single .byline {
    display: none !important;
}
.blog .byline {
    display: none !important;
}

/* コンタクトフォーム送信ボタン */
.wpcf7-form input[type="submit"] {
	width:100%;
	border-radius:5px;
}

/* reCAPTCHAロゴを消す */
.grecaptcha-badge { visibility: hidden; }

/* Wooショートコード2列 */
@media (max-width: 768px) {
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .woocommerce-page[class*="columns-"] ul.products li.product, .woocommerce[class*="columns-"] ul.products li.product {
        width: 48%;
        float: right;
    }
}

/* 必須マーク */
.must {
	background: #FF1A00;
}

/* 任意マーク */
.free {
	background: #999;
}
.must,
.free {
	color: #FFF;
	border-radius: 3px;
	font-size: 12px;
	margin-right: 10px;
	padding: 5px 10px;
	letter-spacing: 0.2em;
}

/* テーブルの1列目をセル内改行をしないようにする */
.col1-nowrap td:nth-of-type(1) { white-space: nowrap;}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }
 
/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 750px) {
    .pc { display: none !important; }
    .sp { display: block !important;
	}
}

/*買取リストmetaタグ調整 */
.sku_wrapper {
	display: block;
}
.posted_in{
	display: block;
}
/*一時的に非表示 */
.hidden-block {
  display: none;
}
/*買取個数を非表示*/
.single-product .quantity {
    display: none;
}

/* 商品ページ「カートに追加」ボタンを大きくする */
.single_add_to_cart_button {
    font-size: 20px !important; 
    padding: 15px 30px !important; 
    width: 100% !important;
}
/* 「カートに追加」ボタンカスタマイズ*/
.woocommerce ul.products li.product .button {
	display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 商品名を4行分で固定 */
.woocommerce ul.products li.product h2 {
    display: -webkit-box;
    -webkit-line-clamp: 4;   /* 表示行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.4;
    height: calc(1.4em * 4);   /* 4行分の高さ固定 */
    margin-bottom: 10px;
}

/*買取価格改行しない*/
.price {
    white-space: nowrap;
}

/*買取価格を大きく表示*/
.woocommerce-Price-amount {
    font-weight: 700;
	font-size: 1.3em;
}

/*個別ページ商品名を小さく表示*/
.single-product h1.product_title {
    font-size: 22px !important;
    line-height: 1.4;
	font-weight: 700;
}

/*注文メモ調整*/
.woocommerce-checkout .woocommerce-additional-fields textarea#order_comments {
    height: 300px !important; 
}

/* 完了画面 上部サマリーの支払い方法 */
.woocommerce-order-overview__payment-method {
    display: none;
}

/* ラップ内のみ横スクロール */
.horizontal-products ul.products {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
}

/* 商品カード幅固定 */
.horizontal-products ul.products li.product {
    flex: 0 0 220px;
    max-width: 220px;
}
@media (max-width: 767px) {
    .horizontal-products ul.products li.product {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

/*無限ループカルーセル */
@keyframes infinity-scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.scroll-infinity__list--right {
  animation: infinity-scroll-right 80s infinite linear!important;
}

.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
	width: 100%;
}

.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0!important;
  margin: 0!important;
}

.scroll-infinity__item {
  width: calc(100vw / 6);
  margin-bottom: 40px;
}

.scroll-infinity__item > img {
  width: 100%;
	height: 200px;
}

@media screen and (max-width: 640px) {
/* SP直下に置く！１番下はNG */
  .scroll-infinity__list--right {
    animation: infinity-scroll-right 80s infinite linear;
    will-change: transform;
  }
  .scroll-infinity__item {
    width: 80vw;   /* ←ここ変更（拡大） */
    margin-right: 16px;  /* 少し見せる余白 */
    margin-bottom: 20px;
  }
  .scroll-infinity__item > img {
    width: 100%;
    height: 140px;
    object-fit: cover;   /* ←画像崩れ防止（重要） */
  }
}