/* テキストとテーブル＋画像配置 */
.rental-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  table-layout: auto; /* ← fixed を auto に変更 */
  border: 2px solid #888;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rental-text {
  background-color: #FFF;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: #222;
  flex: 1 1 0%;
  min-width: 300px;
}

.rental-text p {
  margin-bottom: 16px;
  line-height: 1.8;
  text-align: left;
}

.rental-caution {
  font-size: 1.4rem;
  color: #d32f2f;
  background-color: #fff3cd;
  padding: 0 6px;
  border-radius: 4px;
  display: inline-block;
  font-weight: bold;
  margin-top: 4px;
}

/* テーブル＋画像横並び */
.rental-table-image-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center; /* ← これで中央寄せ */
  gap: 16px; /* 間隔を広げて見栄えよく */
}

/* レンタル表（コンパクト・青系） */
.rental-table {
  flex: 0 0 auto;
  width: 280px;
  border-collapse: collapse;
  background-color: #f0f8ff;
  font-size: 1.3rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rental-table th {
  background-color: #e0f0ff;
  color: #005bac;
  font-weight: 600;
  padding: 8px;
  border: 1px solid #cce0ee;
  text-align: center;
}

.rental-table td {
  border: 1px solid #cce0ee;
  padding: 8px 10px;
  text-align: center;
  background-color: #ffffff;
}

.rental-table td.amount {
  font-weight: bold;
  color: #d32f2f;
  background-color: #fff7f7;
}

/* 共通：画像コンテナの基本調整 */
.rental-image {
  flex: 0 0 auto;
  max-width: 140px;
  margin-left: 20px;
}

.rental-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 注意事項リスト */
.rental-text ul {
  background-color: f8f8f8;
  border-radius: 4px;
  padding-left: 10px;
  list-style-type: disc;
  font-size: 1.2rem;
  color: #444;
}

.rental-text ul li {
  margin-bottom: 4px;
  text-align: left;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .rental-table-image-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .rental-image {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 16px 0 0 0;
  }

  .rental-image img {
    aspect-ratio: 16 / 9;
  }
}
