@charset "utf-8";
/* 商品ページ用スタイルシート */

.product_list .h1{
  padding-left:20px;
  font-size:1.4rem;
  color:var(--fe-darkorange);
  position: relative;
}

.h1::after{
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
    background: linear-gradient(
    to right, 
    rgb(255, 140, 0, 1) 0%, 
    rgb(255, 140, 0, 1) 75%, 
    rgba(255, 255, 255, 0) 100%
    );
}

.product_category{
  width:fit-content;
  margin:0 auto;
}

.product_category .category{
  padding:0 6px;
  margin:5px 12px;
  line-height: 1.8;
}

.product_list .h2{
  padding-left:10px;
  font-size:1.2rem;
  color:var(--fe-green);
  border-left: 5px solid var(--fe-green);
  border-bottom: 2px solid var(--fe-green);
}

.item_list_box {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

/* --- 1. 画像エリア（80x80 正方形ボックス） --- */
.item_img_link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-right: 15px; /* 画像とテキストの間に15pxの隙間（下線は出ない） */
  background-color: #fff; /* 白バック */
  flex-shrink: 0;
}

.item_img_link img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* アスペクト比を維持して枠内に収める（白バックが出る） */
}

/* --- 2. 情報エリア（画像の高さ80px内に収める） --- */
.item_info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上に商品名、下に価格を配置 */
  height: 80px; /* 画像の高さに合わせる */
  flex: 1;
}

/* 商品名リンク */
.item_name {
  text-decoration: none;
  color: #333;
  /* font-size: 0.95rem; */
  line-height: 1.3;
  /* 2行を超えたら省略（...）にする場合の設定 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item_name:hover {
  text-decoration: underline; /* ホバー時だけ下線を表示 */
}

/* 価格表示 */
.product_list .price {
  margin: 0;
  font-size: 1rem;
  color: var(--fe-red);
  text-align: right; /* 右寄せ */
  padding-right:5px;
}

.product_list .standard_price {
  display: inline;
  color: var(--fe-red);
  text-decoration: line-through;
  font-size: 0.8rem;
  margin-right:10px;
}


/* 商品詳細ページ */
.product_item_name{
  font-size:1.5rem;
  color:var(--fe-orange);
  margin: 0 0 10px 0;
  padding-left:15px;
  border-bottom: 1px solid var(--fe-orange);
}

.product_item_name .subtitle{
  font-size:1rem;
  font-weight: normal;
}

.introduction{
  margin:0 10px 20px 10px;
}

.product_item .h2{
  color:rgba(217,144,39,1.00);
  font-size:1rem;
  border-bottom:1px solid rgba(217,144,39,1.0);
}

.product_item .item_summary{
  border-top:2px solid var(--fe-lightslategray);
  padding-top: 20px;
}

.item_summary .h2{
  font-size:1rem;
  color:#000;
  margin:0;
  padding: 0;
  border: 0;
}

.item_summary .price{
  width:fit-content;
  font-size:1.2rem;
  color:var(--fe-red);
  margin:5px 0 0 15px;
  font-weight: bold;
}

.item_summary .standard_price{
  color:var(--fe-red);
  text-decoration: line-through;
  font-size:small
}

.item_product .summary, .item_produt .option{
  margin-top:10px;
}

.item_product .cart_form{
  margin:15px 0px 20px 5px;
}

.product_item .cart_form form{
  padding:15px;
  background-color: var(--fe-lavender);
  border: 1px solid var(--fe-slategray);
  border-radius: 5px;
}

.product_item .cart_form form *{
  margin-bottom: 15px;
}

 .product_item .cart_form form>*:last-child{
  margin-bottom: 0px;
} 

.product_item .cart_form form input[type="submit"]{
  color:var(--fe-white);
  padding:0 10px;
  background-color: var(--fe-darkorange);
  margin-left:25px;
  border-color: var(--fe-peru);
  border-radius: 3px
}

.cart_form input[type="number"]{
  width:5rem;
}

.cart_aria{
  margin: 10px;
  padding: 10px;
  background-color: #A6A6A6;
  border-radius: 10px;
}

.cart_aria input, .cart_aria select{
  margin-left:10px;
  margin-bottom: 5px;
  min-width:70px;
}

.cart_aria .amount{
  margin-top:10px;
  width: 50px;
  text-align: end;
}

.cart_aria .forcart{
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
  margin: 10px 0px 0px auto;
}

@media (min-width:756px){
  .introduction{
    margin:0 30px 20px 30px;
  }
  .col-m-5{
    width: calc((100% / 5) - (var(--gutter-x) * 2)) !important;
  }
}