.main-photo.gallery{
 aspect-ratio:4/3
}
@charset "euc-jp";

/* *************
 *  商品詳細 CSS
 * ********** */

/*商品説明とカートブロックの間、カートブロックと総在庫の間、関連商品を探すの間の区切り高さ */
:root{
 --product-content-gap: clamp(6px, 1vw, 8px);/*モバイル6px タブ約8px　PC 8px*/ 
}
/**
*パンくず
*/
nav[aria-label="パンくず"] {
  padding: 0px;
}
.breadcrumb {
	display: grid;
	grid-template-columns: 60px auto;
	align-items: start;
    padding: 1.8em 1em 1em;
}
.breadcrumb > li:not(:first-child) a {
	font-size: 1.1em;
	font-weight: 600;
	width: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.breadcrumb li:not(:first-child)::before {
	content: ">";
	margin: 0 8px;
	display: inline;
	vertical-align: top;
}

a.breadcrumb__link {
    font-size: 16px;
    font-weight: 600;
}

article:not(#this#is#important){
  padding: 0;
}
/**
 * "タイトル"から"関連の商品をさがす"までを　.article-inner で囲み、grid-template-areasで配置指定することで
 * PC/モバイルでレイアウト変更しています 
**/
.article-inner {
	--details-gap:16px;
	padding-block: clamp(16px,3.0vw,40px); 
}
.article-inner >*, 
.not_fixed >*{
  padding-block: 8px;  /*上下の余白*/
  padding-inline: 1em; /* 左右の余白*/ 
  background: #fff;
  padding-bottom: 0;
}
.not_fixed{
  display: contents;
}
/**
 * 商品タイトル
*/
#product-title {
	padding-block: clamp(0px ,1vw - 4px , 8px);
	text-align: center;
}
/* ++++++++++
 商品画像
 ++++++++++ */
.product-details {
	padding: 16px 0 0;
}
.product-photos{
  margin-inline: -14px
}

@media(min-width: 768px){
  .product-photos{
    margin-inline:auto
  }
}

.product-photos__main{
  position:relative;
  text-align: center;
}
.product-photos__main .hint{
  position:absolute;
  top:-2em;
  left:0;
  width:-webkit-max-content;
  width:-moz-max-content;
  width:max-content;
  color:#fff;
  padding:8px;
  background:var(--main-text);
  opacity: 0;
}
.product-photos__thumb-container {
	display: grid;
	grid-template-columns: repeat( 4,calc((100% - 12px) / 4) );
	justify-content:space-evenly;
  column-gap:4px;
  max-width: 640px;
	margin: 0 auto;
  padding:8px 0
}
.thumb-photo:not([src]){
  height:0;
  visibility: hidden;
}
/* .favo-btn.show-pc{
  display: none;
} */
@media(hover: hover){
  .main-photo:hover + .hint{
    opacity:1
  }
}

/* ++++++++++
 画像モーダル（クリックで拡大表示）
 ++++++++++ */
.photo-modal-container {
  display:none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,.7);
  padding:24px min(1vw,8px);
  z-index: 10000;
}
.photo-modal-container[aria-hidden=false] {
  display:flex;
  justify-content:center;
  overflow-y:scroll;
  overscroll-behavior: contain;
}
.photo-modal-container[aria-hidden=false]::after {
  content:"";
  display:block;
  width:1px;
  height:calc(100vh + 1px);
}
.photo-modal{
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
}
.photo_modal__image {
  width: min(100%,640px);
}
.photo-modal__close {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	padding: 12px 24px;
	background: #000;
	margin-top: 24px;
}


/*
 * 商品説明
 */
.product_details {
  font-size: 16px; 
  color: var(--main-text);
  padding-inline: var(--details-gap);
  padding-bottom: 32px;
  padding-top: 0;
}
/** vimeo */
.product_details .video {
	position: relative;
	margin-inline: calc( var(--details-gap) * -1 - 14px);
	margin-block: 0;
	padding: 0;
}
@media( min-width:768px){
  .product_details .video {
    margin-inline: calc(  var(--details-gap) * -0.8);
  }
}
/** 読み込み完了まで”Now Loading”を表示するがあまり役に立ってない
.product_details .video:not(.loaded)::before {
  content: "Now Loading...";
  position:absolute;
  inset:0;
  display: flex;
  justify-content: center;
  padding:2em 1em;
  background: rgb(20 20 20 /.2);
}*/
.product_details .video iframe {
  aspect-ratio: 16/9;
  width: 100%;
}

/*
 * 商品データ
 */
.product-data {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: .5em 1em;
  font-size: 15px;
  margin-bottom: 0;
  padding-block: 30px 20px;
  margin-top: 15px;

}
.product-data dd {
  font-size: 1.05em;
  font-weight: 600;
}

/**
 * Form
**********/
#product_form {
  margin: 0;
  margin-top: 0;
  margin-bottom: 15px;
}
/*  :focus */
#product_form :is(select ,.quantity-counter):focus {
  outline: 1px solid var(--link-color);
}
.add_to_cart:focus {
  outline-offset: -6px;
}

/* オプション選択のタイトル*/
legend {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

/* オプション選択 */
#product_form select {
	font-size: 17px;
	line-height: 1.8;
	margin-bottom:1em;
	position: relative;
	border: 1px solid #ccc; 
  background: url(https://img03.shop-pro.jp/PA01004/001/etc/arroww2.png) right 50% no-repeat, -webkit-linear-gradient(top, #fff 50%,#f7f7f7 90%);
  background: url(https://img03.shop-pro.jp/PA01004/001/etc/arroww2.png) right 50% no-repeat, linear-gradient(to bottom, #fff 50%,#f7f7f7 90%); 
}

/** オプション未選択のときに出る表示 */
.invalid-message{
  display:none;
}
#product_form select:invalid + .invalid-message{
  display:block;
  font-weight:600;
  color:var(--active-text);  
}


/* 数量 */
.quantity-container {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 48px;
  grid-template-areas: "label label label" "minus input plus ";
  gap: 0 10px;
  font-size: 16px;
  margin-bottom: 1em;
  padding-block: 1em;
}
.quantity-container label {
  grid-area: label;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
}
.quantity-container #product_num {
  grid-area: input;
  height: 100%;
  font-size: inherit;
  line-height: 2;
  text-align:center;
}
.quantity-container #product_num[readonly] {
  pointer-events: none;
}
.quantity-counter {
  aspect-ratio:1/1;
  box-shadow: -1px 1px 6px #ccc;
}
.quantity-counter[title="プラス1"] {
  grid-area: plus;
}
.quantity-counter[title="マイナス1"] {
  grid-area: minus;
}
/* 一点ものの場合はプラス/マイナスボタンを無効化 */
.quantity-counter[disabled] {
  pointer-events: none;
  opacity: 0.3;
  background: #ddd;
}

/* 入力数量と在庫に応じてプラス/マイナスボタンを無効化（例：在庫オーバー時はプラスを無効化） */
.quantity-counter[aria-disabled="true"] {
	opacity: 0.3;
	background: rgba(20, 20, 20, 0.2);
	cursor: default;
}



/* カートに追加ボタン */
.add_to_cart {
	display: flex;
	justify-content: center;
	align-items: center;
	width: min(100%, 420px);
	height: 70px;
	font-size: 18px;
	color: #fff;
	font-weight: 600;
	background-color: #222;
	border: none;
	letter-spacing: 1px;
	outline: 0;
}

/** オプション未選択のときはクリックできない */
#product_form:invalid .add_to_cart{
  pointer-events: none;
  opacity: 0.25;
}
@media(hover:hover){
  .add_to_cart:hover {
    background: #898989;
    transition: background-color .3s;
  }
}

/* 在庫オーバーのとき */
#product_form[data-stockover="true"] .quantity-container::after {
	content: "在庫オーバーしています";
	position: absolute;
	left: 100px;
	font-size: inherit;
	font-weight: 600;
	color: var(--active-text);
	line-height: 1.2;
}
#product_form[data-stockover="true"] .add_to_cart {
	pointer-events: none;
  opacity:.3
}
#product_form[data-stockover="true"] #product_num {
	background: rgb(255 0 0 /.1);
}


/*
  在庫表
------------*/
#option_table_container {
  margin-top: var(--product-content-gap); 
}

.stock_table th.option_cell1:empty {
  display: none;
}
table:is(.stock_table, .option_table) { 
  margin-top: 5px auto 24px;
  border-collapse: collapse;
}
@media (max-width: 767px) {
table:is(.stock_table, .option_table) { 
  margin-top: 5px auto 24px;
  border-collapse: collapse;
  width: 93vw;
  }
  }
#option_table_container > figure {
  margin-bottom: 0px;
  margin-top: 20px;
}

#option_table_container > figure + a {
  font-size: 15px;
  color: var(--link-color);
  font-weight: 600;
  letter-spacing: 0.08em;
}

#option_table_container figcaption {
  font-size: clamp(16px,1.7vw,17px);
  font-weight: 400;
  padding-bottom: 5px;
}

table:is(.option_table , .stock_table) thead th {
  text-align: center;
  background-color: #deefff;
}
table:is(.option_table , .stock_table) th{
  font-weight: bold;
  background-color: #efefef;
  border: 1px solid #CCC;
}
}
table.stock_table th{
  padding: 6px 0.8em 3px;
  white-space: nowrap;
}

table:is(.option_table , .stock_table) td{
  background-color: #FFF;
  border: 1px solid #CCC;
  font-size: 1.2em;
}
table.stock_table td{
  padding: 18px 3em 18px;
}
.option_cell1 {
  padding: 0.8em;
  border: 1px solid #FFF;
  border-collapse: collapse;
  font-size: 1.1em;
}
@media (max-width: 767px) {
.option_cell1 {
  padding: 0.1em;
  border: 1px solid #FFF;
  border-collapse: collapse;
  font-size: calc(0.8em + 0.4vw);
}
}
.option_cell2 {
  padding: 1em 3em;
  border: 1px solid #FFF;
  border-collapse: collapse;
  text-align: center;
}
@media (max-width: 767px) {
.option_cell2 {
  padding: 1em 1.2em;
  border: 1px solid #FFF;
  border-collapse: collapse;
  text-align: center;
}
  }
.option_table_div {
  padding: 0.3em;
  border-collapse: collapse;
  border: 1px solid #FFF;
}
.category_top {
  width: 730px;
  text-align: center;
  font-size: 80%;
}
.option_table_figure.scroll table {
	overflow-x: scroll;
	display: block;
	width: 100%;
}
.option_table_figure.scroll table tbody tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 100;
}


/**
 * お問合せ
 */
.inquiry {
	display: flex;
	flex-direction: column;
	row-gap: 1em;
	margin-block: 20px;
	padding: 1em;
  position:relative
}
.inquiry__link {
  display: flex;
  align-items: center;
  column-gap: 4px;
  font-weight: 500;
  color:var(--link-color);
}
/*
 * お気に入りボタン
*/
.article-inner .favo-btn {
	position: absolute;
	bottom: 12px;
	right: 24px;
	display: block;
	width: 56px;
	height: 56px;
	padding-block: 8px;
	border: 1px solid;
	border-radius: 50%;
}
.article-inner .favo-btn svg {
	width: 40px;
	height: 40px;
}

/** 注意書き */
#notice {
	padding-block: 40px;
}


/*
* 関連の商品をさがす
**/
.product-taglines:not(#this#is#important) {
  margin-top:15px;
  background: #fff;
}
.product-taglines figcaption {
	font-size: clamp(16px,2vw,18px);
	font-weight: 600;
	margin-bottom: clamp(12px,2vw,20px);
}
.product-taglines-list {
	display: grid;
	grid-template-columns: 7em auto;
	gap: 1em;
	font-size: clamp(14px,1.5vw,15px);
  margin-bottom:12px;
  padding-left: 1em;
}
.product-taglines-list :is(dt,dd){
  line-height: 2.2;
}
.product-taglines-list a {
	font-weight: 600;
	color: var(--link-color);
	margin-left: 1em;
	background-image: linear-gradient(to right , crimson,maroon);
	background-position: bottom left;
	background-repeat: no-repeat;
	background-size: 0% 2px;
  text-decoration: none;
}
@media(hover: hover){
  .product-taglines-list a:hover {
    transition: background-size 0.25s ease-in-out;
    color: var(--main-text);
    background-size: 100% 2px;
  }
}
/* フリースペース２が入るブロック */
#freespace2-contents:empty {
  display: none;
}
#freespace2-contents {
  margin-top: 15px;
}

/*
*
*組み合わせ商品とチェックした商品のタイトル左寄せ*/
#together-title, #checkitem-title {
	text-align: left;
    font-size: clamp(16px, 2vw, 18px);
    margin-left: 8px;
}


/*
 * 免責
*/
.menseki-inner {
  --menseki-gap: 14px;
  padding: var(--menseki-gap);
  background: #fff;
}
#menseki-title {
  margin-bottom: var(--menseki-gap);
}
/*
* 980px〜をPCと定義
*/
@media(min-width: 980px){
  /*
   *
  * PC用レイアウト */
  .article-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) 32%;
    --article-gap-pc : 8px;
    gap: 0px var(--article-gap-pc);
    padding:0;
  }

  /** PC用の余白指定 */
  .article-inner>*{
    padding-inline:var(--details-gap);
   }
  .article-inner > :not(#pc_fixed){
    grid-column: 1/2;
    grid-row:auto
  }
  

  /*商品名*/
  #pc_fixed {
    grid-column: 2/3;
    grid-row: 1/3;
    align-self: start;
    position: sticky;
    top: 70px;
    padding-block:var(--details-gap);
    box-shadow: -1px 1px 6px #ccc;
  }
  #product-title {
    font-size:1.3em;
    padding-bottom: 2em;
    text-align: left;
  }


  /** 商品画像 */
  .product-photos {
    display: grid;
    grid-template-columns: 75% auto;
    margin-bottom: 0;
    padding-inline: 0px;
    padding-top: 0;
    gap: 8px;
    background:#fff;
  }
  .product-photos__thumb-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  	align-items: center;
    column-gap:0;
    padding:0;
  }
  .thumb-photo:not(.gallery) {
  	display: none;
  }
  .thumb-photo {
    display: block;
    width:100%;
  	max-width: 200px;
  }

  /** 商品説明 */
  .product_details {
    padding-top:var(--article-gap-pc);
    margin-bottom: 0px;
    background:#fff;
  }
  .product_details .video{
    margin-inline: calc(var(--details-gap) * -1);
  }
  /** 関連さがす*/
  .product-taglines {
    padding-block: 16px;
  }
}

/* クイックカートポップアップ部分 */
#cart-message{
  position:fixed;
  top:0;
  right:0;
  width:320px;
  height:48px;
  z-index:5;
  display:none;
  justify-content:center;
  align-items:center;
  font-weight:600;
  color:#fff;
  padding:0 40px;
  opacity:0;
  z-index:20
}
#cart-message.is-active{
  display:flex;
  animation:show-msg 1s cubic-bezier(.16,.81,.32,1) forwards,hide-msg 1s ease-in 6s forwards
}
#cart-message.is-success{
  background:teal
}
#cart-message.is-error{
  background:#f54266
}
.cart-message__icon{
  width:20px;
  height:20px;
  margin-right:.6em
}
@keyframes show-msg{
  from{
    opacity:0;
    translate:50px
  }
  to{
    opacity:1;
    translate:0
  }
}
@keyframes hide-msg{
  to{
    translate:-50px;
    opacity:0
  }
}
#cart-modal[open] {
  width:100%;
  max-width:100%;
  height: 100vh;
  border: none;
  background: none;
  position: fixed;
  top:48px;
  right:0;
} 
#cart-modal::backdrop{
  background: rgb(255 255 255 /.3)
}
.cart-modal-inner {
  position: absolute;
  top: 1em;
  right: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(98%,360px);
  padding: 16px;
  padding-top: 24px;
  background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 /.7);
}
.cart-modal__title {
  font-size: 18px;
  font-weight: 600;
  padding: 8px 0;
}
.cart-modal__list {
  max-height: 320px;
  padding: 1em 0;
  overflow-y: scroll;
  box-shadow: 0 0 3px rgb(0 0 0 /.1) inset;
}
.cart-modal__listitem__link {
  display: flex;
  column-gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  transition:background-color .3s
}
.cart-modal__listitem__link:focus{
  background-color: #eee;
  text-decoration: none;
}
@media(hover:hover){
  .cart-modal__listitem__link:hover{
    background-color: #eee;
    text-decoration: none;
  }
}
.cart-modal__listitem__name {
  font-size: 12px;
  margin-bottom: 0;
}
.cart-modal__total {
  font-size: 16px;
  font-weight: 600;
  margin-top: .8em;
  margin-bottom: 0;
}
.cart-modal__link {
  width: 240px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 1em 0;
  padding: 16px 0px;
  background: var(--main-text);
  text-align: center;
  text-decoration: none;
  transition: background-color .3s;
}
@media(hover:hover){
  .cart-modal__link:hover {
    color: #fff;
    background-color: #e70834;
    text-decoration: none;
  }
}
.cart-modal__btn {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 20px;
  height: 20px;
}


/** 完売案内*/
.soldout-message {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
}

.soldout-guide{
  display:flex;margin:20px;
  column-gap:32px;
  font-size: 1.3em;
}
.soldout-guide a{
  margin:20px 0;
}
@media(max-width:810px){
  .soldout-guide{
    flex-direction: column;align-items:center
  }
}
@media(min-width:811px){
  .soldout-guide{
    flex-direction:row;justify-content: center
  }
}








/** 配送・送料案内*/
/* 最後のinfo以外に下線つける */
.info:not(:last-child){
  border-bottom: 1px solid;
}
.info h2 {
  margin-bottom: 30px;
}
  
.info h3 {
  margin: 10px 0;
}
  p.souryo {
  font-weight: 700;
}
.guide {
  margin-left: 10px;
}
@media(min-width:980px){
  /* gridでレイアウトするとき */
  .guide{
    display:grid;
    grid-template-columns: repeat(3, 1fr); /* 1フレームを3回繰り返す repeat(4,100px) のように具体的なサイズでもOK*/
  }
  .info:not(:last-child){
    border-right: 1px solid;
    border-bottom: none;
    margin: 10px 18px;
  }
} 
.guide-inner {
  --menseki-gap: 14px;
  padding: var(--menseki-gap);
  background: #fff;
  margin-bottom: 15px;
}
.soryotable {
  font-size: 0.8em;
  margin: 0 0 10px 0;
}
td.ind {
  width: 100px;
}
.soryotable td{
 padding: 2px 5px;
} 
.info {
  margin: 10px 0;
}

/** 商品説明 リンク色 **/
.product_details a {
    color: #2768d6;
}


p.hint {
    display: none;
}

img.main-photo.gallery {
    image-rendering: ;
}

/** フリースペース２追加情報 **/
.free2 {
    font-size: 15px;
    padding-bottom: 5px;
}

.free2 table tr, td {
    border: 1px solid #333;
    padding: 5px 12px;
}
.free2 h2{
 margin: 40px 0 10px ;
}
.free2 p{
 margin: 30px 0;
}
.free2 table{
 margin: 20px 0 40px;
}
.free2 h2 {
   font-size: 18px;
}
@media(max-width: 768px){
table.addinfo {
    margin-right: auto;
    margin-left: auto;
}
}

.free2 img {
      max-width: 100%;
      height: auto;
      margin: 10px auto;
}

.boxtxt {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 1px #e5e5e5;
    border-radius: 8px;
}
.boxtxt .box-title {
  display: inline-block;
  position: absolute;
  top: -6px;
  left: 10px;
  padding: 0 9px;
  font-size: 16px;
  font-weight: bold;
  color: #666;
  background: #fff;
  line-height: 1;
}
.boxtxt p {
  margin-top: 3px;
  margin-bottom: 3px;
  padding: 10px;
}
/* 動画なしの場合 画像と商品説明の間にマージンを取るCSS */
/* 通常時の video がある場合の設定 */
.product_details:has(.video) {
  padding-top: 8px;
}

/* .video がない場合だけ空行っぽいスペースを表示する */
.product_details:not(:has(.video))::before {
  content: "";
  display: block;
  height: 1em; /* 必要な高さに調整 */
}
}