@media only screen and (min-width: 600px) {
    #p-slider #slider > div img {
        max-height: inherit;
        height: 550px;
    }
}
/* ▼ Triggers & Banners */
.side-promo-tab {
  position: fixed;
  bottom: calc(10% + 24em);
  right: 0;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  z-index: 1000;
  opacity: .95;
  cursor: pointer;
}
.promo-banner {
  display: none;
  cursor: pointer;
}
.promo-text-wrapper {
  position: relative;
  display: block;
  background-color: #f0908d;
  color: #fff;
  padding: 8px 15px 3px 15px;
  white-space: nowrap;
  text-align: left;
  border-radius: 6px 6px 0 0;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.12);
  transition : all 0.3s;
}
.promo-text-wrapper:hover { background-color:#ef7775;}
.promo-line2 {
  display: block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: .2em;
  color: #fff;
  filter: drop-shadow(0px 0px 2px rgba(204, 66, 61, 0.6));
}
.promo-line1 {
  display: block;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.promo-tax {
  font-size: 9px;
  margin-left: 2px;
  margin-right: 2px;
}

/* ▼ Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.is-shown {
  visibility: visible;
  opacity: 1;
}
.popup-window {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 80%;
  width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}
.popup-overlay.is-shown .popup-window {
    transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.popup-close:hover {
  color: #000;
}

@media screen and (max-width: 599px) {
  .side-promo-tab {
    display: none;
  }
  .promo-banner {
    display: block;
    width: fit-content;
    margin: 1em auto;
  }
  .promo-text-wrapper {
    padding: 5px 15px 0px 20px;
    border-radius: 4px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.12);
  }
  .promo-line1, .promo-line2 {
    display: inline-block;
  }
}
.coupon-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f9fe;
  border: 1px dashed #89c3eb;
  border-radius: 6px;
  padding: 10px 15px;
  margin: 5px 0 5px 0;
}
.coupon-outline {
  color: #3b8ac4;
}
.coupon-code {
  font-size: 20px;
  color: #3b8ac4;
}
.copy-btn {
  background-color: #89c3eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
.copy-btn:hover {
  background-color: #6dafdc;
}
.copy-feedback {
  display: none;
  font-size: 13px;
  color: #008000;
  text-align: right;
  margin: 0;
}
/*ピンクバージョン
.coupon-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff4f3;
  border: 1px dashed #f0908d;
  border-radius: 6px;
  padding: 10px 15px;
  margin: 5px 0 5px 0;
}
.coupon-outline {
  color: #d94f4a;
}
.coupon-code {
  font-size: 20px;
  color: #d94f4a;
}
.copy-btn {
  background-color: #f0908d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
.copy-btn:hover {
  background-color: #d94f4a;
}
.copy-feedback {
  display: none;
  font-size: 13px;
  color: #008000;
  text-align: right;
  margin: 0;
}
*/
/* =================================================
   1. 共通設定（PC版ベース）
   ================================================= */
.btn-pc { display: block !important; }
.btn-sp { display: none !important; }

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  /* ★ポイント：PCでの枠の高さを揃える */
  min-height: 280px; 
}

/* PC版：詳細ボタンを最下部に固定 */
.text-content {
  display: flex;
  flex-direction: column;
  flex: 1; /* 残りのスペースを埋める */
  width: 100%;
}

.text_link { 
  margin-top: auto; /* これでボタンが一番下に押し下げられる */
  width: 100%; 
  padding-top: 15px;
}

.btn-pc {
  max-width: 180px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid #ddd !important;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  background-color: #fff !important;
}

/* -------------------------------------------------
   2. ポイント注釈（背景なし）の設定
   ------------------------------------------------- */
.point-note-pc, .point-note-sp {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

@media screen and (min-width: 768px) {
  .point-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 75px;
  }
  .point-note-pc {
    font-size: 11px !important;
    color: #666 !important;
    text-align: left;
    line-height: 1.4 !important;
    white-space: nowrap;
  }
}

/* =================================================
   3. スマホ版（767px以下）
   ================================================= */
@media screen and (max-width: 767px) {
  .btn-pc { display: none !important; }
  .btn-sp { display: flex !important; }

  .grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .grid-item {
    min-height: auto !important; /* スマホでは高さ固定を解除 */
    flex-direction: row !important;
    padding: 25px 90px 25px 20px !important; 
    border: none !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
    text-align: left !important;
  }

  .header-flex {
    flex: 0 0 80px !important;
    margin-right: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .header-flex img { width: 50px !important; }

  .point-note-sp {
    display: block !important;
    font-size: 10px !important;
    color: #666 !important;
    margin-bottom: 5px;
  }

 /* スマホ版詳細ボタン：右端固定・グレー背景 */
  .text_link {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important; 
    height: 38px !important;
    background-color: #e5e5e5 !important;
    
    /* ↓ここを追加・修正して余白を消します */
    margin: 0 !important;      /* PC版のmargin-top:autoを打ち消し */
    padding: 0 !important;    /* 余計な内白をリセット */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-sp {
    display: flex !important; /* 文字を中央にするため */
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    font-size: 11px !important;
    color: #333 !important;
    line-height: 1 !important; /* 行間によるズレを防止 */
  }
}
/* お知らせバー全体の設定 */
.custom-announcement-bar {
  background-color: #c2b09a;
  color: #ffffff;
  height: 40px;
  overflow: hidden;
  position: fixed; /* 画面最上部に固定 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 11000;  /* 既存ヘッダー(10000前後)より確実に上にする */
}

/* リンクの色と装飾 */
.custom-announcement-bar a {
  color: #ffffff !important;
  text-decoration: none;
}

.scroll-wrapper {
  display: block;
  width: 100%;
  height: 40px;
  position: relative;
}

.scroll-item {
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 15px;
  font-family:"Hiragino Sans", "Hiragino Kaku Gothic ProN", "sans-serif";
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: step-scroll 12s infinite; 
}

/* スライドのタイミング（4秒ずつ） */
.scroll-item:nth-child(1) { animation-delay: 0s; }
.scroll-item:nth-child(2) { animation-delay: 4s; }
.scroll-item:nth-child(3) { animation-delay: 8s; }
/* 4つ目はループ用なので少し早めにフェード */
.scroll-item:nth-child(4) { animation-delay: 12s; }

@keyframes step-scroll {
  0% { opacity: 0; transform: translateY(5px); }
  5% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  35% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 0; }
}

/* ★超重要：既存ヘッダーが重ならないように押し下げる設定 ★ */

/* PC版の調整 */
#js-fixed-header {
  top: 40px !important; /* 黒帯の高さ分下げる */
}

/* スマホ版の調整 */
#js-sp-header {
  top: 40px !important;
}

/* コンテンツ全体の開始位置調整 */
.p-header {
  padding-top: 40px !important;
}

/* スマホ版のドロワーメニュー（左から出るメニュー）の開始位置も調整 */
.p-drawer-nav {
  margin-top: 40px !important;
}
.scroll-item {
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 15px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "sans-serif";
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: step-scroll 12s infinite; 

  /* --- ここを追加 --- */
  pointer-events: none; /* 基本はクリックを無効にする */
}

@keyframes step-scroll {
  0% { opacity: 0; transform: translateY(5px); pointer-events: none; }
  5% { opacity: 1; transform: translateY(0); pointer-events: auto; } /* 表示中だけクリック有効 */
  30% { opacity: 1; transform: translateY(0); pointer-events: auto; }
  35% { opacity: 0; transform: translateY(-5px); pointer-events: none; }
  100% { opacity: 0; }
}