/* ========================================
商品レイアウト（Flexbox）
======================================== */
.product-layout {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 30px;
}

.product-image-section {
flex: 1;
min-width: 300px;
max-width: 530px;
}

.product-info-section {
flex: 1;
min-width: 300px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {
.product-layout {
flex-direction: column;
gap: 20px;
}

.product-image-section,
.product-info-section {
min-width: 100%;
max-width: 100%;
}
}

/* ========================================
共通スタイル
======================================== */
.input-prepend.input-append input {
font-size: 24px;
padding-top: 11px;
padding-bottom: 11px;
width: 100px;
text-align: right;
}

.stock_error {
color: #db5656;
}

/* ========================================
商品画像エリア
======================================== */
.p-product-img {
width: 100%;
max-width: 100%;
}

/* ========================================
メイン画像エリア
======================================== */
.p-product-img__main {
margin-bottom: 1em;
text-align: center;
}

@media screen and (max-width: 1030px) {
.p-product-img__main {
margin-left: auto;
margin-right: auto;
width: 100%;
max-width: 530px;
}
}

@media screen and (max-width: 767px) {
.p-product-img__main {
width: auto;
}
}

.p-product-img__main-item {
position: relative;
text-align: center;
}

.p-product-img__main-item:before {
content: "";
display: block;
padding-top: 100%;
}

.p-product-img__main-item a {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.p-product-img__main-item img {
display: inline-block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 100% !important;
height: 100% !important;
object-fit: contain;
text-align: center;
}

/* ========================================
サムネイルエリア
======================================== */
.p-product-thumb-list {
display: flex;
flex-wrap: wrap;
margin: 8px -4px 0;
}

@media screen and (max-width: 1030px) {
.p-product-thumb-list {
margin: 8px 0 0;
flex-wrap: nowrap;
}
}

.p-product-thumb-list__item {
box-sizing: border-box;
margin-bottom: 8px;
padding: 0 4px;
width: 20%;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
cursor: pointer;
}

.p-product-thumb-list__item:hover,
.p-product-thumb-list__item.is-current {
opacity: 0.7;
}

.p-product-thumb-list__item.is-current {
opacity: 1;
}

@media screen and (max-width: 1030px) {
.p-product-thumb-list__item {
margin-right: 5px;
padding: 0;
width: 90px;
}
}

@media screen and (max-width: 767px) {
.p-product-thumb-list__item {
width: 60px;
}
}

.p-product-thumb-list__img {
position: relative;
text-align: center;
}

.p-product-thumb-list__img:before {
content: "";
display: block;
padding-top: 100%;
}

.p-product-thumb-list__img img {
display: inline-block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 100%;
height: 100%;
object-fit: cover;
text-align: center;
}

/* サムネイル画像のサイズ調整 */
@media screen and (max-width: 1030px) {
.p-product-thumb-list__img {
width: 90px;
}

.p-product-thumb-list__item img {
width: 90px;
}
}

@media screen and (max-width: 767px) {
.p-product-thumb-list__img {
width: 60px;
}

.p-product-thumb-list__item img {
width: 60px;
}
}

/* ========================================
スライダーナビゲーション
======================================== */
.p-product-img__main .slick-track {
margin: 0;
}

.p-product-img__main .slick-prev,
.p-product-img__main .slick-next {
position: absolute;
top: 50%;
width: 45px;
height: 45px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.15);
transition: all 0.4s ease;
z-index: 1;
transform: translateY(-50%);
}

.p-product-img__main .slick-prev {
left: 10px;
}

.p-product-img__main .slick-next {
right: 10px;
}

.p-product-img__main .slick-prev:before,
.p-product-img__main .slick-next:before {
content: "";
position: absolute;
top: 16px;
left: 14px;
width: 13px;
height: 13px;
border-left: 1px solid #fff;
border-top: 1px solid #fff;
transition: all 0.4s ease;
}

.p-product-img__main .slick-prev:before {
left: 16px;
transform: rotate(-45deg);
}

.p-product-img__main .slick-next:before {
left: 13px;
transform: rotate(135deg);
}

/* ホバー効果 */
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
background: rgba(0, 0, 0, 0.3) !important;
}

/* モバイル対応 */
@media screen and (max-width: 767px) {
.p-product-img__main .slick-prev:before,
.p-product-img__main .slick-next:before {
top: 15px;
}

.p-product-img__main .slick-prev:before {
left: 18px;
}
}

/* ========================================
メイン画像エリア
======================================== */

/* 商品名 */
.product-name {
margin-bottom: 1em;
font-size: 0.9em;
	line-height: 1.6;
}

/* 商品数量 */
.product-order input {
width: 140px;
height: 46px;
border-radius: 4px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
text-align: right;
}

/*カートボタン*/
.product-order .btn-addcart {
width: clamp(280px, 70%, 360px);
padding: 1.2em 1.1em;
border: solid 1px var(--color-main);
	border-radius: 0;
background-color: var(--color-main);
color: #fff;
font-size: 1.15em;
font-weight: bold;
transition: all 0.3s ease;
}
.product-order .btn-addcart:hover {
background-color: #fff;
color: var(--color-main);
}

/* 商品関連リンク */
.product-link {
margin-bottom: 1.5em;
}
.product-link li a {
display: block;
padding: 0.2em 0 0.3em 1em;
background: url("https://eirsignal.com/apps/note/wp-content/themes/theme_eir/images/common/icon-arrow03.png") no-repeat left center;
background-size: 0.7em;
font-size: 0.9em;
transition: 0.3s ease;
}
.product-link li a:hover {
opacity: 0.7;
}


.product-info-exp01 {
margin-bottom:2em;
}
.product-info-exp01 span.cool {
display: block;
padding: 0.6em 0.8em 0.8em;
background: #bce2e850;
text-align: center;
}
.prduct-option {
position: relative;
}

.prduct-option select {
position: relative;
margin-top: 0.5em;
padding: 0 55px 0 0.5em;
height: 50px;
appearance: none; /* デフォルトの矢印を非表示 */
-webkit-appearance: none;
-moz-appearance: none;
}

.prduct-option::after {
content: "";
display: block;
position: absolute;
bottom: 0;
right: 0;
width: 50px;
height: 50px;
border: 1px solid #ccc;
background: url("https://eirsignal.com/apps/note/wp-content/themes/theme_eir/images/common/icon-arrow-u02.png") no-repeat center center, #f5f5f5;
background-size: 0.7em;
pointer-events: none;
}


/* ========================================
最近チェックしたリスト
======================================== */
.history-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.history-list li {
width: 100%;
}
.history-list li a.history-unit-img {
display: block;
margin-bottom: 5px;
aspect-ratio: 1/1;
}
.history-list li a.history-unit-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media screen and (min-width: 768px) {
.history-list {
  grid-template-columns: repeat(6, 1fr);
}
}