@charset "UTF-8";
/* CSS Document */ 
a{
    text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover{
  opacity: 0.7;
}
.banner{
  display:flex;
  align-items:center;
  padding:3%;
  margin: 2% 0;    
  width:100%;
  max-width:550px;
  max-height: 180px;
    height: auto;    
  box-sizing:border-box;
  position: relative;        /* ★基準 */
  padding-right:0;
    text-align: left;/* ★右帯の分だけ余白を確保（帯幅+少し） */
}

.banner-text{
  width:70%;
}

.banner-text h2{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.3;
text-align: left;
}

.banner-text p{
  margin:0 0 8px;
  font-weight:400;
    font-size:14px;
    line-height:1.4;
}

span{
display:block;
 font-weight: 100;
  font-size:8px;
  line-height: 1.5;
}

.qty{
  margin:5px 0;
  width:auto;
  text-align:center;
  font-size:14px;
  font-weight:700;
    line-height:1.3;
  padding:2% 10%;
  border-radius:3px;
}

.banner-image{
  width:50%;  
  position:relative;
margin-left: 10%; 

}


.img-pack{

 max-height: 150px; 
}


.banner-rail{
  position: absolute;        /* ★これが決め手 */
  top: 0;
  right: 0;
  height: 100%;              /* ★常にバナー100% */
  width: 4%;
  border-radius: 0 3px 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 中の丸矢印 */
.banner-rail span{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:18px;
  font-weight: 700;
  line-height: 1;
    z-index: 0;
}
/* =========================
   SP（768px以下）
========================= */
@media screen and (max-width: 500px){

  .banner{
    max-width: 100%;
    max-height: none;
    padding: 3%;
    padding-right: 5%; /* 右レール分を少し広めに確保 */
    gap: 0px;
  }

  /* 文字を少し読みやすく */
  .banner-text{
    width: 50%;
  }

  .banner-text h2{
    font-size: 13px;
    line-height: 1.35;
  }

  .banner-text p{
    font-size: 10px;
    line-height: 1.45;
  }

  .qty{
    font-size: 12px;
    padding: 6px 10px;
  }

  /* 画像を詰めて崩れ防止 */
  .banner-image{
    width:50%;
    margin-left: auto;
  }

  .img-pack{
    max-height: 120px;
    width: 100%;
    object-fit: contain;
    display: block;
  }

  /* 右レール（タップしやすく） */
  .banner-rail{
    width: 5%;
    height: 100%;
    font-size: 8px;
  }

  .banner-rail span{
    font-size: 16px;
  }
    .qty{
  margin:5px 0;
  width:auto;
  text-align:center;
  font-size:11px;
  font-weight:700;
    line-height:1.3;
  padding:2% auto;
  border-radius:3px;
}
}
