@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* プロダクト投稿ページ用CSS */
.custom-fields_product {
    display: flex;
    gap: 50px;
}

.custom-fields_product img {
    display: block;
    max-width: 100%;
    height: auto;
}

.custom-fields_product .product-textinfo h1 {
    padding: 0 10px;
    font-size: 200%;
  }

.custom-fields_product .product-textinfo p {
    padding: 20px 10px;
    font-size: 110%;
    line-height: 1.8;
  }

.custom-fields_product .product-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
  }
  
.custom-fields_product .product-info th, td {
    padding: 10px; /* セル内の余白を設定 */
    text-align: left; /* テキストを左揃え */
  }
  
.custom-fields_product .product-info th {
    font-weight: bold;
    width: 30%; /* デフォルトは30% */
  }
  
.custom-fields_product .product-info tr {
    border-bottom: 1px solid #ddd; /* 各行の下に薄い線を入れる */
  }
  
  /* 最初の行の上にも線を入れる */
.custom-fields_product .product-info tbody tr:first-child {
    border-top: 1px solid #ddd;
  }

.custom-fields_product .product-info .check_btn {
    display: block; 
    width: 260px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #e8b368;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 6px #00000052;
    margin: 0 auto 30px;
  }

.custom-fields_product .product-info .list_btn {
    display: block; 
    width: 260px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #214a91;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 6px #00000052;
    margin: 0 auto;
  }
  
  /* スマホサイズ（最大幅768px）のときにthを40%に変更 */
  @media screen and (max-width: 768px) {
    .custom-fields_product {
        display: flex;
        flex-direction: column;
    }
    .custom-fields_product .product-info th {
      width: 40%;
    }
  }

/* =========================================================
  無限ループアニメーション
========================================================= */

/* アニメーション定義 */
@keyframes infinite-loop {
  to {
    transform: translateX(-100%);
  }
}

/* メインスタイル */
.infiniteLoop {
  /* 設定項目 START */
  --item-max-width: 400px;          /* 各アイテムの最大幅 */
  --item-mobile-width: 80vw;        /* スマホでのアイテムの幅 */
  --duration: 12s;                  /* アニメーションスピード */
  --gap: 1rem;                      /* 各アイテム同士の間隔 */
  /* 設定項目 END */

  --play-state: running;
  --direction: normal;
  --flex-direction: row;
}

/* 逆再生 */
.infiniteLoop.-reverse {
  --direction: reverse;
  --flex-direction: row-reverse;
}

/* ホバー時：アニメーション停止 */
.infiniteLoop:hover {
  --play-state: paused;
}

/* 最上位のフレックスボックス設定 */
.infiniteLoop > * {
  display: flex;
}

/* 無限ループアニメーションの適用対象 */
.infiniteLoop > * > * > * {
  overflow: hidden;
  transform: translateX(0);
  flex-wrap: nowrap !important;
  flex-direction: var(--flex-direction, row);
  margin: 0 !important;
  padding-left: var(--gap) !important;
  gap: var(--gap);
  width: 100vw;
}

/* 各アイテムのラッパー（パディングリセット） */
.infiniteLoop > * > * > * > * {
  padding: 0 !important;
}

/* 各アイテムのスタイル（画像など） */
.infiniteLoop > * > * > * > * > * {
  max-width: var(--item-max-width, 400px);
  margin-inline: auto;
}

/* デスクトップ用（幅600px以上） */
@media (min-width: 600px) {
  .infiniteLoop > * > * > * {
    animation: infinite-loop var(--duration) linear infinite both var(--play-state) var(--direction);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* スマホ用（幅599px以下） */
@media not all and (min-width: 600px) {
  /* 2番目以降のループコンテンツは非表示 */
  .infiniteLoop > * > *:nth-child(n+2) {
    display: none;
  }

  /* 横スクロールスナップの設定 */
  .infiniteLoop > * > * > * {
    -webkit-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    padding: 0 calc((100vw - var(--item-mobile-width, 80vw)) / 2) !important;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* スクロールバー非表示 */
  .infiniteLoop > * > * > *::-webkit-scrollbar {
    display: none;
  }

  /* 各アイテム幅（スマホ用） */
  .infiniteLoop > * > * > * > * {
    flex-shrink: 0;
    width: var(--item-mobile-width, 80vw) !important;
    scroll-snap-align: center;
  }
}
