/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;

  padding-top: 40px; 
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  position: relative;
}

.section-title .line {
  width: 300px;
  height: 0;
  border-bottom: 3px dotted #999;
  margin: 0 20px;
}

.section-title .title-content {
  display: flex;
  max-width: 80%;
  align-items: center;
  background-color: rgb(249, 249, 249);
  padding: 0 10px;
}

.section-title .title-text {
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
}

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


.products-pack-container h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: #333;
}

/* パック商品のカード */
.product-pack-common {
  max-width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding-top: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  background-color: rgb(255, 254, 243);
  cursor: pointer;
}

.product-pack-common:active {
  opacity: 0.95;
}

.decorative-line {
  width: 90%;                 /* 横幅を全体に */
  height: 0;                   /* 高さは0 */
  border-top: 1px solid #ddd; /* 上側に飾り線 */
}

.product-dia:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.product-dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}
.product-pack-common h2 {
  font-size: clamp(12px, 2vw, 18px); 
  text-align: center;
  color: #333;
  background-color: rgba(255, 255, 255, 0.1); /* 白色、透明度50% */
  margin-top: 3%;  /* 不要な上部余白を除去 */
  font-weight: bold;
}

.product-pack-common p {
  font-size: 11px;
  color: #f5a338;
  text-align: center;
  height: 70px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1); /* 白色、透明度50% */
  margin-top: 0;  /* 不要な上部余白を除去 */
  align-items: center; 
  display: flex;
}

.price-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  gap: 10px; /* 矢印と文字の間隔 */
}

.arrow {
  font-size: 1.3em;
  color: #666;
  font-weight: bold;
}

.product-dia p.dia-original {
  font-size: 1.1em;
  color: #999;
  text-decoration: line-through;
}

.product-pack-image-container {
  width: 100%; /* コンテナの幅を親要素に合わせる */
  display: flex;
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  text-align: center; /* インライン要素の中央揃え */
   /* はみ出し防止 */
}

.product-image-pack {
  max-width: 100px; /* 画像の最大幅を指定 */
  max-height: 100px; /* 画像の最大高さを指定 */
  object-fit: contain; /* 画像の縦横比を維持しつつ収める */
  display: block; /* 画像が中央に収まるように */
}



/* dia-bonus に特化したスタイル */
.product-dia p.dia-bonus {
  font-size: 0.7em;
  font-weight: bold;
  color: #ffffff; /* 文字色を白色に変更 */
  border: 2px solid #e74c3c; /* 赤い枠線 */
  padding: 5px; /* 内側の余白 */
  border-radius: 5px; /* 角を丸くする */
  display: inline-block; /* 枠線が文字に合わせる */
  background-color: #ff7676; /* 背景色を赤色に設定 */
}


.product-dia p.dia-total {
  font-size: 1.4em;
  font-weight: bold;
  color: #000000; /* 青色 */
}


.product-dia p.product-price {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}
.pack-button.purchased:disabled {
  font-size: 13px;
  padding: 8px 25px;
  margin-bottom: 5px;
  color: #606060;
}

.product-dia p.description {
  margin-top: 10px;
  font-size: 1.1em;
  color: #bba24f;
}
.pack-button {
  background-color: rgb(21, 197, 237);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: clamp(13px, 14px, 16px);
  border-radius: 24px;
  cursor: pointer;
  margin-bottom: 5px;
  align-self: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(21, 197, 237, 0.25);
}

.pack-button:disabled {
  background-color: #e2e8f0;
  cursor: not-allowed;
  color: #718096;
  font-weight: 600;
  box-shadow: none;
}

.rest-pack-count {
  display: block; /* ブロック要素にして改行 */
  text-align: center; /* 中央揃え */
  font-size: 12px; /* 文字サイズ */
  font-weight: bold; /* 太字 */
  color: rgb(164, 164, 164);
  margin-top: 5px; /* ボタンとの間隔 */
  margin-bottom: 10px; /* 下部の余白 */
}
.calculate_duration{
  display: block; /* ブロック要素にして改行 */
  text-align: center; /* 中央揃え */
  font-size: 15px; /* 文字サイズ */
  font-weight: bold; /* 太字 */
  color: rgb(252, 20, 24);
  margin-top: 5px; /* ボタンとの間隔 */
}
.sale-badge {
  position: absolute;
  top: -15px;
  left: 0px;
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 10;
}
.product-pack {
  position: relative;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .products-pack-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    width: 100%;
    padding: 10px;
    margin: 0;
    gap: 15px;
  }
}

@media (min-width: 768px) {
  .products-pack-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-pack-common p {
    font-size: clamp(11px, 2vw, 14px);
    color: #f5a338;
    text-align: center;
    height: 70px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1); /* 白色、透明度50% */
    margin-top: 0;  /* 不要な上部余白を除去 */
    align-items: center;
    display: flex;
    justify-content: center;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .pack-button {
    font-size: clamp(9px, 12px, 14px); 
  }
}

@media (min-width: 1024px) {
  .products-pack-container {
    grid-template-columns: repeat(2,1fr); 
  }
}
