body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: sans-serif;
}
main {
  width: 100%;
  margin: 0;
  padding: 5px;
}
.body {
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 100%;
}
.section-title .line {
  width: 5px;
  height: 24px;
  background: linear-gradient(to bottom, #4a90e2, #50e3c2);
  border-radius: 3px;
  margin-right: 10px;
}
.title-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.title-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.products-dia-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  justify-items: stretch;
}


.product-dia {
  position: relative;
  padding: 15px;
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: block;
  padding-top: 12px;
  padding-bottom: 5px;
  cursor: pointer;
}

.product-dia:active {
  opacity: 0.95;
}

.product-dia.recommended {
  background-color: #e7fff5;
  border-color: #a3e6cc;
}
.recommend-badge {
  position: absolute;
  top: -10px;
  left: -15px;
  background-color: #ff9500;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  transform: rotate(-15deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 10px;                     
}

.left-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-image-container {
  width: 60px;
  height: 60px;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.left-text-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dia-bonus-badge {
  background-color: #ff3b30;
  color: #fff;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dia-original {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}
.arrow {
  font-size: 14px;
  color: #333;
}
.dia-total {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.right-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.vip-label {
  color: #00c3ff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.dia-button {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: rgb(21, 197, 237);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(21, 197, 237, 0.25);
}

.product-dia.recommended .dia-button {
  background-color: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.dia-button:disabled {
  background-color: #e2e8f0;
  color: #718096;
  cursor: not-allowed;
  box-shadow: none;
}

.product-details {
  margin-top: 10px;
}
.description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .products-dia-container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-dia {
    display: flex; 
    flex-direction: row; /* スマホでも PC のような横並びを維持 */
    align-items: center;
    padding: 12px;
    width: 100%; /* 横幅をフルに使う */
  }

  .row {
    flex-direction: row; /* PC のような横並びを維持 */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
  }

  .left-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left; /* PC のデザインを再現 */
  }

  .product-image-container {
    width: 60px; /* 画像サイズを小さめに調整 */
    height: 60px;
  }

  .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* アスペクト比を維持 */
  }

  .left-text-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .right-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: auto;
    
  }

  .dia-bonus-badge {
    font-size: 12px;
    padding: 3px 5px;
    white-space: nowrap;
  }

  .dia-button {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #00c3ff; 
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 70px;
    text-align: center;
  }

  .modal-content {
    width: 90%;
    max-width: 350px;
  }
}

