@charset "utf-8";

/* キャンペーン全体のラップ部分 */
.campaign-wrap {
  padding: 40px;
  background-color: #fff;
}

/* 情報部分の上マージン */
.info-wrap {
  margin-top: 10px;
}

/* タイトルのデザイン */
.campaign-title {
  color: #333;
  font-size: 40px;
  line-height: 1.2;
  font-family: 'Noto Serif JP', serif !important;
}

/* センター寄せ共通クラス */
.center {
  text-align: center;
}

/* キャンペーンテキスト（1つ目のp） */
.campaign-txt {
  margin-top: 30px;
  color: #333;
  font-size: 150%;
  font-family: 'Noto Serif JP', serif !important;
}

.campaign-date {
  font-size: 150%;
  color: #333;
  margin: 20px;
  font-family: 'Noto Serif JP', serif !important;
}

/* ボタンラップ */
.campaign-btn {
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 440px;
  max-width: 100%; /* スマホ溢れ防止 */
}


/* ベース設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.4;
}

/* メインコンテナ（最大840px） */
.lixil-catalog {
  max-width: 840px;
  margin: 0 auto;
  background-color: #fff;
  padding: 15px;
}

/* 区分け線 */
.section-divider {
  border: none;
  border-top: 2px dashed #b5c4d0;
  margin: 25px 0;
}

/* カテゴリセクション */
.category-section {
  width: 100%;
}

/* ヘッダーエリア */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.category-title {
  font-size: 26px;
  font-weight: bold;
  border-bottom: 3px solid;
  padding-bottom: 3px;
  white-space: nowrap;
}

.logo-lixil {
  color: #ea5514;
  font-weight: bold;
  margin-right: 5px;
}

.title-ub {
  color: #004098;
  border-color: #004098;
  font-family: 'Noto Serif JP', serif !important;
}

.title-powder {
  color: #008080;
  border-color: #008080;
  font-family: 'Noto Serif JP', serif !important;
}

/* 工事費用ボックス */
.construction-box {
  background-color: #f2f7fa;
  border: 1px solid #d0dfeb;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
  max-width: 460px;
}

.construction-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge-blue, .badge-green {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
}
.badge-blue { background-color: #004098; }
.badge-green { background-color: #008080; }

.price-val {
  color: #004098;
  font-size: 18px;
  font-weight: bold;
}
.construction-price .price-val { font-size: 18px; }
.title-powder + .construction-box .price-val { color: #008080; }

.price-val .unit {
  font-size: 12px;
}

.construction-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  color: #444;
}

.badge-darkblue, .badge-darkgreen {
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}
.badge-darkblue { background-color: #1a365d; }
.badge-darkgreen { background-color: #0f4c4c; }

/* 商品グリッド（2列レイアウト） */
.products-grid {
  display: flex;
  gap: 15px;
}

.product-card {
  flex: 1;
  display: flex;
  background: #fff;
  gap: 10px;
}

.product-img {
  width: 48%;
  flex-shrink: 0;
}

.product-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-info {
  width: 52%;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.product-spec {
  font-size: 11px;
  color: #333;
}

.product-model {
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
}

.price-list {
  font-size: 11px;
  font-weight: bold;
}
.price-list .num {
  font-size: 12px;
}

/* キャンペーンバッジ */
.campaign-badge {
  border: 1px solid #2b5597;
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  margin: 4px 0;
  position: relative;
}

.discount {
  color: #004098;
  font-size: 10px;
  font-weight: bold;
  display: block;
}

.discount .percent {
  font-size: 18px;
  color: #004098;
}

.campaign-badge .note {
  position: absolute;
  right: -25px;
  bottom: -2px;
  font-size: 8px;
  color: #666;
}

/* 販売価格 */
.price-sale {
  background-color: #ffeb3b;
  color: #d11c1c;
  font-weight: bold;
  text-align: center;
  padding: 5px 0;
  margin: 4px 0 6px;
  line-height: 1.1;
}

.price-sale .amount {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.price-sale .unit {
  font-size: 10px;
}

/* 特典ボックス（ゴールド枠風デザイン） */
.bonus-box {
  border: 2px solid #caa855;
  background: linear-gradient(135deg, #fffdf7 0%, #f9f3e3 100%);
  border-radius: 3px;
  padding: 4px;
  position: relative;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e2cf94;
}

.bonus-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #836727;
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  font-weight: bold;
}

.bonus-text-large {
  font-size: 13px;
  font-weight: bold;
  color: #4a380e;
}

.bonus-text-price {
  font-size: 18px;
  font-weight: bold;
  color: #4a380e;
  line-height: 1.1;
}

.bonus-text-price .unit {
  font-size: 10px;
}

.bonus-text-sub {
  font-size: 11px;
  font-weight: bold;
  color: #4a380e;
}

.single-line {
  padding: 10px;
}


/* ===============================================
   レスポンシブ設定 (スマホ・タブレット表示: 768px以下)
   =============================================== */
@media screen and (max-width: 768px) {
  .lixil-catalog {
    padding: 10px 5px;
  }

  .category-header {
    flex-direction: column;
    gap: 10px;
  }

  .construction-box {
    max-width: 100%;
    width: 100%;
  }

  /* 商品を1列に */
  .products-grid {
    flex-direction: column;
    gap: 20px;
  }

  .product-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }

  .product-img {
    width: 42%;
  }

  .product-info {
    width: 58%;
  }

  .price-sale .amount {
    font-size: 20px;
  }

  .campaign-badge .note {
    position: static;
    display: block;
    text-align: right;
  }
}
