a{
  color: #212529;
}
a:hover{
  opacity: .8;
}
/* ---------------------------------------------------
　　　　　　　　　　　　　　　　　　　　　　商品一覧　product
 ---------------------------------------------------*/
h1.page_title{
 text-align: center;
 color: #212529;
 padding: 1.2em 0;
 font-size: 1.75rem;
 border-bottom: 1px solid rgba(0,0,0,.05);
}
.product-list {
  width: 1140px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 60px 0;
  margin: 0 auto;
}
.product-item {
  width: calc(25% - 20px); /* 4カラム表示 */
  border: none;
  padding: 10px;
  box-sizing: border-box;
}
.product-item a{
 text-decoration: none;
}
.product-item a:hover{
 opacity: 0.5;
}
.product-link {
  text-decoration: none;
  color: inherit;
  display: block; /* aタグ内でブロック化 */
}
.product-item img {
  width: 100%;
  height: auto;
  display: block;
}
.product-item h2 {
  font-size: 16px;
  margin: 0;
  padding: 0;
  border-bottom: none;
  color: #212529;
}
/* 1. ページネーション */
.paging {
  margin: 50px 0;
  text-align: center;
}
.paging .nav-links {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.paging .product-link {
  display: contents !important; 
}
.paging .page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #212529;
  background: #fff;
  line-height: 1;
  box-sizing: border-box;
}
.paging .current {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* ホバーした時の動き（おまけ！親切なデザインになるよ） */
.paging a.page-numbers:hover {
  background: #f8f8f8;
  border-color: #bbb;
}
/* カテゴリー */
.product_cat {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  margin-bottom: 0;
  box-sizing: border-box;
}


/* ---------------------------------------------------
　　　　　　　　　　　　　　　　　　　　　商品ページ　
 ---------------------------------------------------*/
.product_body{
  color: #212529;
  font-size: 16px;
}
.product_body a{
 text-decoration: none;
}
.product_in{
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 0;
}
/* タイトル */
.product_body h1{
  width: 1140px;
  margin: 0 auto;
  padding: 1.2em 0;
  font-size: 1.75rem;
  position: relative;
}
/* 見出し */
.product_body h2{
  border-top: none;
  border-bottom: none;
  margin: 40px 0 15px 0;
  font-size: 24px;
  font-weight: bold;
  border-left: 4px solid #212529;
  padding: 0 0 0 15px;
}
h2.product_lead span{
  font-size: 14px;
  color: #999;
  margin-left: 15px;
  font-weight: normal;
}
.product_body h1 span{
  color: #c1272d;
  margin-right: 10px;
}
.product_body h1::after{
  content: '';
  display: block;
  width: 100vw;
  height: 1px;
  background: rgba(0,0,0,.05);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
/* 商品ページ内カテゴリー・ タグ*/
.title_tag_cat{
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}
.title_tag_cat a{
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  padding: 5px 8px;
  display: block;
  width: fit-content;
}
.title_tag_cat .product_cat{ background-color: #999; }
.t-mens   { background-color: #4682b4 !important; }
.t-ladies { background-color: #c76a7e !important; } 
.t-unisex { background-color: #6b8e23 !important; } 

/* --------------------------商品画像 + 説明文（2カラム） */
.p_top {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  align-items: flex-start;
}
/* 左：画像 */
.p_top > .p_img {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
}
/* 右：説明文 */
.p_top > .p_desc {
  flex: 1;
  max-width: 50%;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-top: 30px;
  padding-left: 30px;
  box-sizing: border-box;
}
.p_desc p {
  margin-bottom: 1em;
}
/* Swiper干渉対策 */
.p_img .swiper {
  width: 100%;
  max-width: 100%;
}
/* メイン画像 */
.swiper.p_main {
  overflow: visible;
  width: 100%;
}
.p_main_list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.p_main.swiper {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.p_main_list li img {
  width: 100%;
  aspect-ratio: 1 / 1;    /* 画像を正方形*/
  object-fit: cover;      /* 画像が歪まないように調整 */  
  display: block;
}
/* キャプション */
.p_cap {
  margin-top: 5px; 
  font-size: 0.9rem;
  color: #212529;
  text-align: center;
}
/* サムネイル */
.p_thumbs {
  width: 100%;
  overflow: hidden;
}
.p_thumb_list {
  display: flex !important; 
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.p_thumb_list li {
  flex-shrink: 0;
  width: calc((100% - 40px) / 5); /* 読み込み時も5枚並びに見えるように計算(隙間10px×4分を引く) */
  cursor: pointer;
}
.p_thumb_list li img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
  transition: opacity 0.3s;
}
/* 最後のスライドの右余白を消す */
.p_thumb_list li:last-child {
  margin-right: 0;
}
.p_thumb_list li.swiper-slide-thumb-active img {
  opacity: 1;
}
/* 矢印の色 */
.swiper-button-prev,
.swiper-button-next {
  color: #212529; /* 好きな色に変更 */
  width: 40px;     /* クリック幅 */
  height: 40px;    /* クリック高さ */
}
/* 矢印の中のアイコン（SVG）サイズ調整 */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 28px; /* 矢印の大きさ */
  font-weight: 900
}

/* 選択中のスライダーの中にある画像（img）をさらに薄くする */
.p_thumb_list li.swiper-slide-thumb-active img {
  opacity: 1; 
}
/* ---------------------------------------------カラー展開 */
.color_list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.color_item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.color_chip {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.color_item.is_light .color_chip {
  border: 1px solid #999;
}
/* ---------------------------------------------サイズ表 */
.table_size{
  border-collapse: collapse;
}
.table_size th,
.table_size td {
  border: 1px solid rgba(0,0,0,0.2);
  text-align: center;
  font-size: 16px;
  padding: 0.8em;
}
.table_size tr:first-child td {
  background-color: rgba(0,0,0,0.1);
  font-weight: 600;
}
.table_size tr td:first-child {
  background-color: rgba(0,0,0,0.1); /* 薄いグレー */
}
/* ---------------------------------------------商品詳細画像・モデル画像 */
/* ギャラリー */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 100px;
}
.product-gallery > .product_lead,p {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;    /* ★画像に関わらず正方形（1:1）を維持するよ */
  object-fit: cover;      /* ★はみ出た部分をいい感じにカットしてくれるよ */
  object-position: center; /* ★真ん中を中心に切り抜くよ */
  cursor: pointer;
  display: block;
}
/* 閉じてる時は中身を「消去」しておく */
.gallery-modal:not(.is-active) img {
    display: none;
}
/* モーダル背景 */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 9999;
}
.gallery-modal.is-active {
  opacity: 1;
  visibility: visible;
}
/* ふわっと */
.gallery-modal_inner {
  transform: translateY(10px) scale(0.98);
  transition: transform .8s ease;
}
.gallery-modal.is-active .gallery-modal_inner {
  transform: translateY(0) scale(1);
}
.gallery-modal_inner img {
  max-width: 90vw;
  max-height: 90vh;
}
/* ×ボタン */
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
/* 矢印 */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.product-gallery_caption {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  text-align: center;
}
.gallery-modal_caption {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #fff;
}
/* ---------------------------------------------JANコード一覧 */
.product_jan{
  margin-top: 100px;
  position: relative;
  margin-bottom: 20px;
}
.table_jan {
  margin-top: 20px;
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
}
.table_jan th,
.table_jan td {
  border: 1px solid rgba(0,0,0,0.2);
  text-align: center;
  padding: 10px;
  word-wrap: break-word; 
}
.table_jan th:nth-child(1),
.table_jan td:nth-child(1) {
  width: 40% !important;
  white-space: nowrap;
  text-align: center;
}
.table_jan th:nth-child(2), .table_jan td:nth-child(2),
.table_jan th:nth-child(3), .table_jan td:nth-child(3),
.table_jan th:nth-child(4), .table_jan td:nth-child(4),
.table_jan th:nth-child(5), .table_jan td:nth-child(5) {
  width: 15% !important;
  text-align: center;
}
.table_jan th {
  background-color: rgba(0,0,0,0.1); 
  font-weight: bold;
}
.table_jan tbody tr:nth-child(n+5) {
  display: none!important;
}
.table_jan:not(.is-hidden) tbody tr:nth-child(n+5) {
  display: table-row !important;
}
.table_jan.is-hidden {
  position: relative;
  display: table;
  width: 100% !important; 
}
.table_jan.is-hidden::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* グラデーションの高さ */
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none; /* 下の要素を触れるようにする */
  z-index: 1; /* ボタン(z-index: 2)より下に配置 */
}
/* 「すべて表示する」ボタンのスタイル */
.show-all-jan {
  position: relative;
  text-align: center;
  margin-top: -10px;
  z-index: 2;
}
.show-all-jan button {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 10px 40px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;
}
.show-all-jan button:hover {
  background: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.table_jan.is-hidden + .show-all-jan button::after {
    content: " ▼";
}
.table_jan:not(.is-hidden) + .show-all-jan button::after {
    content: " ▲";
}
/* ---------------------------------------------品質表示 + 注意事項　　2カラム */
.flex{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.product_wash,
.product_note{
  margin-top: 0;
  padding: 0;
}
.wash_note{
  margin-top: 100px;
}
/* 品質表示 */
.product_wash {
  flex: 5;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wash_item {
  display: flex;
  align-items: flex-start;   
  gap: 6px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.wash_icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wash_icon img {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.wash_text {
  padding-top: 1px;
  font-size: 12px;
}
/* 注意事項 */
.product_note{
  flex: 6;
  padding-left: 40px;
  box-sizing: border-box;
}
.product_note li {
  position: relative;
  padding-left: 1.6em;
  list-style: none;
  font-size: 12px;
  margin-bottom: .3em;
}
.product_note li::before {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #212529;
}
/* ---------------------------------------------ページ下部　カテゴリー　・　タグ */
.p_meta{
  margin-top: 100px;
}
p.m_item{
  font-size: 12px;
  margin-bottom: 5px;
}
.m_ttl{
  color: #fff;
  background: #999;
  padding: 0 8px;
  border-radius: 3px;
  margin-right: 5px;
}
/* ---------------------------------------------関連商品 */
p.connection_heading{
  width: calc(150px * 1.618);
  height: 150px;
  font-size: 20px;
  text-align: center;
  margin: 0 auto;
  background: #212529;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}
p.connection_heading span{
  font-size: 12px;
  display: block;
  width: 100%;
  padding-top: 8px;
}
.related_products {
  margin-top: 50px;
  padding-top: 30px;
}
.product_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
  margin-top: 30px;
}
.product_item a{
 color: #212529;
}
.product_item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.product_item a:hover img {
  transform: scale(1.05); /* ホバーで少し大きくして高級感を出す */
}
h3.product_name {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 0;
  text-decoration: none;
  border: none;
}




