@charset "utf-8";

.modal {
  padding: 0;
  align-items: center; /* 中身が短いときは上下中央 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal .modal-content {
  position: relative; /* absolute だと縦長時に切れるため */
  width: calc(100% - 32px);
  max-width: 600px;
  /* margin:auto で中央寄せ。画面より高いときは上が切れずスクロールできる */
  margin: auto;
  padding: 0; /* 内側は #result 側で持つ */
  overflow: hidden;
  text-align: left;
}

.modal .close01 {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  float: none;
  line-height: 1;
  color: #555;
}

.modal .close01:hover,
.modal .close01:focus {
  color: #4b4b4b;
  opacity: 0.7;
}

#result {
  margin-top: 0;
  padding: 0;
  border-radius: 10px;
  text-align: left;
}

/* ---- 1サイズ分のブロック -------------------------------- */
.result_block + .result_block {
  border-top: 8px solid #e9e9ec;
}

/* ---- ヘッダー（サイズ見出し） --------------------------- */
.result_head {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 18px;
  border: 1px solid #000;
}

.result_head_lead {
  font-size: 12px;
  font-weight: bold;
}

.result_head_size {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.result_head_num {
  font-size: 36px;
  font-weight: 900;
  margin-right: 4px;
  padding-right: 8px;
}

@media screen and (min-width: 768px) {
  .result_head {
    padding: 20px 48px 20px 24px;
  }

  .result_head_lead {
    font-size: 13px;
  }

  .result_head_size {
    font-size: 16px;
  }

  .result_head_num {
    font-size: 36px;
  }
}

/* ---- カード置き場 --------------------------------------- */
.result_cards {
  background: #f5f5f7;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media screen and (min-width: 768px) {
  .result_cards {
    padding: 20px 24px;
    flex-direction: row; /* PCは横並び＝比較表と同じ見え方 */
    align-items: stretch;
  }

  .result_cards > .result_card {
    flex: 1 1 0;
  }
}

/* ---- 商品カード ----------------------------------------- */
.result_card {
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 12px;
  overflow: hidden;
}

.result_card_head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f2;
}

.result_card_bar {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: #a30080;
  flex: 0 0 auto;
}

.result_card--easy .result_card_bar {
  background: #f5ab1a;
}

.result_card_name {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.result_badge {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 10px;
  color: #1a7f4b;
  background: #e6f4ec;
}

.result_card_body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ---- 購入ボタン（44px以上のタップ領域） ------------------ */
.result_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: #f5ab1a; /* Amazon */
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.result_btn--rakuten {
  background: #bf0000;
}

.result_btn:hover,
.result_btn:focus {
  opacity: 0.85;
  color: #fff;
}

/* ---- 取扱いなしカード ----------------------------------- */
.result_card--none {
  background: #fff;
  border: 1px dashed #d6c3d1;
  padding: 14px;
}

.result_card--none .result_card_head {
  padding: 0;
  border-bottom: none;
}

.result_card--none .result_card_bar {
  background: #d9c6d4;
  height: 20px;
}

.result_card--none .result_card_name {
  font-size: 15px;
  color: #8a8a90;
}

.result_card--none .result_badge {
  color: #8a8a90;
  background: #f0f0f2;
}

.result_no_size {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
}

/* ---- 注意書き（1サイズにつき1回だけ） -------------------- */
.result_caution {
  padding: 16px ;
}

@media screen and (min-width: 768px) {
  .result_caution {
    padding: 20px 24px;
  }
}

.result_caution_ttl {
  margin: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  background: #dcdcdc;
}

.result_caution_txt {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: #000;
  text-wrap: pretty;
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  .result_caution_ttl {
    font-size: 13px;
  }

  .result_caution_txt {
    font-size: 12px;
  }
}

/* ---- 該当なし ------------------------------------------- */
.result_empty {
  padding: 32px 20px;
  text-align: center;
  color: #000;
}

.result_empty_ttl {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: bold;
}

.result_empty_txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}
