@charset "utf-8";

/* ================================================= */
/* 1. Reset & Base Settings */
/* ================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

*,
::before,
::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
  font-size: 14px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: #f8f9fa;
  color: #212121;
  font-family: "Noto Sans JP", 'メイリオ', Meiryo, sans-serif !important;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 961px) {
  body {
    font-size: 15px;
  }
}

img {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================================= */
/* 2. Header & Footer */
/* ================================================= */
header {
  background-color: #182d7c;
  padding: 8px 15px;
  color: #fff;
}

body footer.mt-5 {
  background-color: #182d7c !important;
  color: #ffffff !important;
  margin-top: auto !important;
  padding: 0 !important;
  width: 100% !important;
}

body footer.mt-5 div {
  padding: 20px 15px !important;
  max-width: 1200px;
  margin: 0 auto;
}

body footer.mt-5 small {
  color: #fff !important;
}

/* ================================================= */
/* 3. Sale Page Layout & Banner Header */
/* ================================================= */
.sale-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px 60px;
}

/* 画像バナーヘッダー */
.sale-header {
  margin-bottom: 30px;
  width: 100%;
}

.sale-header img {
  width: 100%;
  height: auto;
  display: block;
}

#salepage_fixheader {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.sale_navinner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sale_navinner li a {
  display: block;
  padding: 8px 20px;
  background-color: #dc143c;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s;
}

.sale_navinner li a:hover {
  background-color: #dc143cea;
  color: #ffffffde;
}

/* カテゴリ見出しのスタイル */
.category-section {
  padding-top: 80px;
  margin-top: -40px;
}

.category-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #dc143c;
  border-bottom: 3px solid #dc143c;
  margin: 20px auto 30px;
  padding-bottom: 10px;
  width: 90%;
  max-width: 1000px;
}

/* ================================================= */
/* 4. Product Grid & Cards */
/* ================================================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 40px;
}

/* 商品カード個別 */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 商品画像エリア */
.product-image {
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #e0e0e0;
  pointer-events: none;
}

/* 商品名エリア */
.product-name {
  margin: 10px 0 15px 0;
  text-align: center;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-label {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  color: #212121;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* クーポンコードボックス */
.coupon-box {
background: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #DC143C;
  border: 1px solid #DC143C;
  border-radius: 6px;
  
  width: 100%;
  max-width: 300px;
  padding: 12px 10px;
  text-align: center;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  
  height: 130px; 
  box-sizing: border-box;
}

.coupon-label {
  font-size: 14px;
  font-weight: bold;
  color: #212121;
  letter-spacing: 0.05em;
}

.coupon-code {
  font-size: 28px;
  font-weight: bold;
  color: #777777;
  /* グレーにしてオンライン価格を引き立てる */
  text-decoration: line-through;

  background: none;
  -webkit-text-fill-color: currentcolor;
  letter-spacing: 1px;
}

/* 下向きの矢印 */
.arrow-down {
  width: 0;
  height: 0;
  margin: 12px 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 22px solid #DC143C;

}

/* 価格表示エリア */
.price-box {
  color: #dc143c;
  text-shadow: none;
  font-weight: bold;
  display: flex;
  align-items: baseline;
}

.price-number {
  font-size: 40px;
  letter-spacing: 0.02em;
}

.price-unit {
  font-size: 24px;
  margin-left: 2px;
}

/* 購入ボタン */
.btn-product {
  display: inline-block;
  background: #dc143c;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 14px 30px;
  border-radius: 0px;
  margin-top: 20px;
  text-align: center;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  border: 1px solid #dc143c;
  transition: all 0.4s ease;
}

.btn-product:hover {
  background: #dc143cea;
  color: #ffffff;
  border: 1px solid #dc143cea;
  letter-spacing: 0.2em;
}

/* 完売御礼札 */
.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* 「完売御礼」バッジの見た目 */
.sold-out-badge {
  background: #dc143c;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 30px;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.product-card.sold-out .product-image img {
  opacity: 0.5;
  filter: grayscale(80%);
}


/* ================================================= */
/* 5. Responsive (スマホ表示対応) */
/* ================================================= */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    /* スマホでは1列表示 */
    row-gap: 50px;
  }

  .sale-header h1 {
    font-size: 18px;
  }
}