/* --- 商品紹介（Amazonメイン） --- */
/* 全体中央揃え + 横幅は576px */
.item-wrapper {
  max-width: 576px;
  margin: 0 auto;
  margin-bottom: 1.8em;
  padding: 10px;
}

/* カード全体 */
.item-box {
  display: flex;
  width: 100%;
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
  font-family: sans-serif;
  background: #fff;
  border: 3px solid #FFDBED;
}

/* 左 30% の画像エリア */
.item-image-area {
  width: 30%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 商品画像 */
.item-image-area img {
  width: 100%;
  height: 120%;
  object-fit: contain;
  border: 0px !important;
}

/* 右側のテキストエリア */
.item-info {
  width: 70%;
}

/* 商品名：3行で省略 */
.item-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: calc(1.4em * 3);
}

/* コメント */
.item-comment {
  font-size: 13px;
  margin-bottom: 10px;
  color: #444;
}

/* サイトリンク：縦並び */
.item-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 0; /* Amazonだけにしても余白なし */
}

/* ボタン */
.link-btn {
  padding: 5px 0;
  width: 100%;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  display: block;
}

/* ブランドカラー */
.amazon { background: #FF9900; }
.rakuten { background: #BF0000; }
.yahoo   { background: #FF0033; }

/* スマホ対応（500px以下） */
@media (max-width: 500px) {
  .item-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .item-image-area {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  /* スマホ時は画像を4:3で自動縮小（高さ抑制） */
  .item-image-area img {
    width: 80%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .item-info {
    width: 100%;
  }
}

/*---列車情報---*/
.train_joho_style {
  position: relative;
  list-style:none;
  border:  solid 2px #FFDBED;/*太さ 色*/
  padding: 0.5em 0.5em 0.5em 1em!important;
  box-shadow :0px 0px 5px silver;/*5px=影の広がり具合*/
}

.train_joho::before {
  content: attr(title);
  font-weight: bold;
  line-height: 1.5;
  padding-right: 0.5em;
  font-size: 1em;
}

.train_joho {
  font-size: 1em;
}

/*---製品のポイント（以前は列車情報にも使ってる）---*/
.goodbad_list_waku {
 padding-top:0.1em;
}

.goodbad_list {
  position: relative;
  list-style:none;
  border:  solid 2px #FFDBED;/*太さ 色*/
  padding: 0.5em 0.5em 0.5em 1em!important;
  box-shadow :0px 0px 5px silver;/*5px=影の広がり具合*/
}

.goodbad_list::after {
 position: absolute;
 content: attr(title);
 padding: 1px 7px;
 letter-spacing: 0.05em;
 font-weight: bold;
 font-size: 1em;
 background: #FFDBED;
 color: #000;
 bottom: 100%;
 left: -0px;
 border-radius: 4px 4px 0px 0px;
 border-bottom:  solid 2px #fdeeef;/*太さ 色*/
}

.goodpoint::before {
  content: '◎';
  font-weight: bold;
  color: green;
  line-height: 1.5;
  padding-right: 0.5em;
  font-size: 1.2em;
}

.goodpoint {
  font-size: 1em;
}

.badpoint::before {
  content: "▲";
  font-weight: bold;
  color: red;
  line-height: 1.5;
  padding-right:  0.5em;
  font-size: 1.2em;
}

.badpoint {
  font-size: 1em;
}