@charset "UTF-8";
/* =============================================================
   クーポンのページ（/coupons/）。2026-10-26 作り直し フェーズ1
   inc/coupons-page.php だけが読む（front-head.php の $css_extra）。modern.css の後ろ。
   ・色・文字・ボタンはトップと同じ決まり（--jol-*・申し込みは赤）。お客様だけの特典は紺と金（アフィリエイトの LP と同じ）
   ・クーポンは「券」の形（右に切り取り線と割引の半券・左右の切り欠きは mask で抜く → 影は li の drop-shadow）
   ・お店のロゴが無いときは、お店の名前の札（種類の色 --cp-c・白い文字で 4.5:1 以上＝coupons-data.php の CP_CAT_COLORS）
   ★下層ページの上の部分（lower.css の div.main・#pan）は、div.main.cp-hero で上書きしている
   ★2026-10-28: マイページのクーポンのタブ（mypage.html）も、このファイルを読む（券・特典・絞り込み・お店で見せる画面は同じ部品）。
     マイページだけの直しは css/mypage-coupons.css。ここを変えたら、マイページの見た目も確かめる
     （?v= はファイルの更新日時を api/coupons/mypage.php が付ける＝mypage.html を直す必要はない）
   ============================================================= */

/* ★お店で見せる画面（dialog.cp-present）は article の外にあるので、色の決まりは両方に付ける */
article.cp-page,
dialog.cp-present {
  --cp-max: 1200px;
  --cp-pad: 16px;
  --cp-line: #e3eaf2;
  --cp-body: #33403e;
  --cp-soft: #f6f8fb;
  --cp-navy: #0b1530;
  --cp-navy-2: #15275a;
  --cp-navy-3: #1c3270;
  --cp-gold: #c9a84c;
  --cp-gold-2: #e6cd7e;
  --cp-red: #db1a1a;
  --cp-red-2: #ff4027;
  --cp-ok: #138a4f;
  --cp-stub: 112px;
}
article.cp-page [hidden] { display: none !important; }
article.cp-page span.nw { white-space: nowrap; }
article.cp-page .cp-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
article.cp-page div.cp-in {
  width: 100%;
  max-width: calc(var(--cp-max) + var(--cp-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--cp-pad);
}
article.cp-page div.cp-in.cp-narrow { max-width: calc(880px + var(--cp-pad) * 2); }
article.cp-page section.cp-sec { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 84px; }
article.cp-page section.cp-sec h2 {
  color: var(--jol-text);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.005em;
}
article.cp-page p.cp-sec-lead { max-width: 680px; margin: 14px auto 0; color: var(--cp-body); font-size: 17px; line-height: 1.75; text-align: center; }
article.cp-page h3 { color: var(--jol-text); font-size: 18px; line-height: 1.4; font-weight: 700; }
article.cp-page .cp-center { text-align: center; }
article.cp-page a.cp-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--jol-blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
article.cp-page a.cp-sub::after { content: "\2192"; }
article.cp-page a.cp-sub.cp-sub-light { color: #fff; }

/* 赤いボタン（申し込みと同じ色）と、青い枠のボタン */
article.cp-page a.cp-btn-red,
article.cp-page button.cp-show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 2px 28px 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cp-red), var(--cp-red-2));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 0 #a31414;
  cursor: pointer;
  transition: transform .2s var(--jol-ease), box-shadow .2s var(--jol-ease);
}
article.cp-page a.cp-btn-red:active,
article.cp-page button.cp-show-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a31414; }
@media (hover: hover) {
  article.cp-page a.cp-btn-red:hover,
  article.cp-page button.cp-show-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #a31414; }
}
article.cp-page a.cp-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--jol-blue);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--jol-blue);
  border-radius: 12px;
}
@media (hover: hover) {
  article.cp-page a.cp-btn-line:hover { background: #f2f7fe; }
}

/* 小さな札（お客様だけ・新着・まもなく終了） */
article.cp-page span.cp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 9px 0;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 999px;
}
article.cp-page span.cp-badge.is-perk { color: var(--cp-navy); background: var(--cp-gold-2); }
article.cp-page span.cp-badge.is-new { color: #0b5d3b; background: #ddf4e7; }
article.cp-page span.cp-badge.is-end { color: #9a3412; background: #ffedd5; }
article.cp-page span.cp-badge.is-left { color: #fff; background: #db1a1a; }   /* フェーズ2: 残りわずか */

/* ─── 券（クーポンのカード）────────────────────────────────── */
article.cp-page ul.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
/* 少ないとき（1〜2 枚）は、横に伸ばさず真ん中に */
article.cp-page ul.cp-grid.is-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 400px)); justify-content: center; }
article.cp-page li.cp-item {
  position: relative;
  min-width: 0;
  filter: drop-shadow(0 1px 1px rgba(16, 24, 40, .06)) drop-shadow(0 10px 18px rgba(16, 24, 40, .09));
  transition: transform .25s var(--jol-ease), filter .25s var(--jol-ease);
}
@media (hover: hover) {
  article.cp-page li.cp-item:hover { transform: translateY(-4px); filter: drop-shadow(0 2px 2px rgba(16, 24, 40, .06)) drop-shadow(0 18px 26px rgba(16, 24, 40, .14)); }
}
/* キーボードで選んだとき（券は mask で抜いているので、枠は li に付ける） */
article.cp-page li.cp-item:has(a.cp-t-link:focus-visible) { outline: 3px solid var(--jol-focus); outline-offset: 4px; border-radius: 20px; }
article.cp-page a.cp-t-link:focus-visible { outline: none; }

article.cp-page article.cp-ticket {
  --n: 10px;   /* 切り欠きの半径 */
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cp-stub);
  min-height: 150px;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  -webkit-mask:
    radial-gradient(circle var(--n) at calc(100% - var(--cp-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--n) at calc(100% - var(--cp-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--n) at calc(100% - var(--cp-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--n) at calc(100% - var(--cp-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
article.cp-page div.cp-t-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 14px 18px 18px;
}
/* お店の札（ロゴが無いとき＝名前） */
article.cp-page div.cp-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 5px;
  overflow: hidden;
  color: var(--mk-ink, #fff);   /* フェーズ2: お店の色が明るいときは黒い文字（coupons-data.php の cpColors） */
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%),
    var(--mk-bg, var(--cp-c, #1e3a5f));
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
article.cp-page span.cp-mark-t {
  display: -webkit-box;
  overflow: hidden;
  font-size: calc(var(--mk, 13.5) * 1px);   /* いちばん長い単語が 1 行に入る大きさ（coupons-data.php の cpMarkSize） */
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
article.cp-page div.cp-mark.has-logo { padding: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--cp-line); }
article.cp-page div.cp-mark.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

article.cp-page div.cp-t-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
article.cp-page p.cp-t-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-right: 30px;   /* 右上の ♡ の分 */
  color: var(--jol-text-sub);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
}
article.cp-page span.cp-t-where::before { margin-right: 4px; content: "\25CF"; color: var(--cp-c, var(--jol-teal)); font-size: 8px; vertical-align: 2px; }
article.cp-page .cp-t-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jol-text);
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
article.cp-page a.cp-t-link { color: inherit; text-decoration: none; }
/* 券ぜんたいを押せるように（リンクの見えない広がり）。♡ はその上 */
article.cp-page a.cp-t-link::after { position: absolute; inset: 0; z-index: 1; content: ""; }
article.cp-page p.cp-t-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--jol-text-sub); font-size: 12.5px; line-height: 1.35; }
article.cp-page span.cp-t-valid { font-weight: 600; }

/* 半券（割引） */
article.cp-page div.cp-t-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px 10px;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    color-mix(in srgb, var(--cp-c, #1e3a5f) 9%, #fff);
  border-left: 2px dashed color-mix(in srgb, var(--cp-c, #1e3a5f) 28%, #fff);
}
article.cp-page span.cp-t-off {
  color: var(--cp-c, #1e3a5f);
  font-size: 25px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
article.cp-page span.cp-t-off.is-long { font-size: 17px; line-height: 1.15; }
article.cp-page span.cp-t-go {
  display: block;
  color: var(--cp-c, #1e3a5f);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}
/* 矢印は最後の言葉とくっつけて折り返す（矢印だけが次の行に落ちないように＝間はつながる空白） */
article.cp-page span.cp-t-go::after { content: "\00a0\2192"; }

/* 保存（♡） */
article.cp-page button.cp-save {
  position: absolute;
  top: 8px;
  right: calc(var(--cp-stub) + 6px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #8a96a8;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
article.cp-page button.cp-save svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .2s var(--jol-ease); }
article.cp-page button.cp-save[aria-pressed="true"] { color: #e11d48; }
article.cp-page button.cp-save[aria-pressed="true"] svg { fill: currentColor; animation: cpHeart .35s var(--jol-ease); }
article.cp-page button.cp-save:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 0; }
@media (hover: hover) {
  article.cp-page button.cp-save:hover { color: #e11d48; background: #fff1f2; }
}
@keyframes cpHeart { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* お客様だけの特典の券（紺と金） */
article.cp-page article.cp-ticket.is-perk {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(201, 168, 76, .14), rgba(201, 168, 76, 0) 60%),
    linear-gradient(140deg, #13234d 0%, #0e1a3d 100%);
}
article.cp-page article.cp-ticket.is-perk .cp-t-title,
article.cp-page article.cp-ticket.is-perk a.cp-t-link { color: #fff; }
article.cp-page article.cp-ticket.is-perk p.cp-t-meta,
article.cp-page article.cp-ticket.is-perk p.cp-t-foot { color: rgba(255, 255, 255, .78); }
article.cp-page article.cp-ticket.is-perk span.cp-t-where::before { color: var(--cp-gold-2); }
article.cp-page article.cp-ticket.is-perk div.cp-mark { box-shadow: 0 0 0 2px rgba(230, 205, 126, .55); }
article.cp-page article.cp-ticket.is-perk div.cp-t-stub {
  background: radial-gradient(90% 70% at 50% 0%, rgba(230, 205, 126, .2), rgba(230, 205, 126, 0) 70%), #0a1430;
  border-left-color: rgba(230, 205, 126, .45);
}
article.cp-page article.cp-ticket.is-perk span.cp-t-off { color: var(--cp-gold-2); }
article.cp-page article.cp-ticket.is-perk button.cp-save { color: rgba(255, 255, 255, .7); }
@media (hover: hover) {
  article.cp-page article.cp-ticket.is-perk button.cp-save:hover { color: #fda4af; background: rgba(255, 255, 255, .08); }
}
article.cp-page span.cp-t-lock { color: rgba(255, 255, 255, .86); font-size: 11.5px; line-height: 1.3; font-weight: 700; }
article.cp-page span.cp-t-lock > span { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
article.cp-page span.cp-t-lock svg { width: 18px; height: 18px; fill: none; stroke: var(--cp-gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
article.cp-page span.cp-lk-on { display: none !important; }
article.cp-page.is-customer span.cp-lk-off { display: none !important; }
article.cp-page.is-customer span.cp-lk-on { display: inline-flex !important; color: #9be7bd; }
article.cp-page.is-customer span.cp-lk-on svg { stroke: #9be7bd; stroke-width: 2.6; }

/* ─── 最初の画面 ─────────────────────────────────────────── */
article.cp-page div.main.cp-hero {
  display: block;
  min-height: 0;
  height: auto;
  padding: 84px 0 0;   /* 上はパンくず（#pan は位置が決まっている）の分をあける */
  background:
    radial-gradient(48% 70% at 88% 30%, rgba(255, 196, 120, .22), rgba(255, 196, 120, 0) 70%),
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 40%, rgba(255, 255, 255, .55) 66%, rgba(255, 255, 255, .1) 100%),
    url(../img/webp/front/front-bk.webp) right 42% / auto 112% no-repeat,
    #fff;
}
article.cp-page div.main.cp-hero p { padding-top: 0; color: inherit; font-size: inherit; line-height: inherit; }
article.cp-page #pan .breadcrumbs { display: inline-block; padding: 4px 12px; background: rgba(255, 255, 255, .88); border-radius: 999px; }
article.cp-page div.cp-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  max-width: calc(var(--cp-max) + var(--cp-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--cp-pad);
}
article.cp-page div.cp-hero-txt { max-width: 620px; padding: 12px 0 8px; }
article.cp-page div.main.cp-hero p.eyebrow { display: block; margin: 0 0 10px; color: #0b6e6f; line-height: 1.5; }
article.cp-page div.main.cp-hero p.eyebrow::before,
article.cp-page div.main.cp-hero p.eyebrow::after { display: none; }
article.cp-page div.main.cp-hero h1 {
  color: var(--jol-text);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
}
article.cp-page div.main.cp-hero p.cp-lead {
  max-width: 560px;
  margin-top: 18px;
  color: var(--cp-body);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
}
/* 探す */
article.cp-page form.cp-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 540px;
  margin-top: 24px;
  padding: 6px 6px 6px 48px;
  background: #fff;
  border: 2px solid #d6dee8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
article.cp-page form.cp-search:focus-within { border-color: var(--jol-blue); box-shadow: 0 0 0 4px rgba(0, 101, 184, .14), 0 8px 24px rgba(16, 24, 40, .08); }
article.cp-page svg.cp-search-ic { position: absolute; top: 50%; left: 16px; width: 22px; height: 22px; fill: none; stroke: #5d6b69; stroke-width: 2.2; stroke-linecap: round; transform: translateY(-50%); }
article.cp-page form.cp-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 8px 0 0;
  color: var(--jol-text);
  font-size: 16px;   /* 16px より小さいと、iPhone が拡大してしまう */
  background: transparent;
  border: 0;
  outline: none;
}
article.cp-page form.cp-search input::placeholder { color: #7a8788; }
article.cp-page form.cp-search button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  background: var(--jol-blue);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}
article.cp-page form.cp-search button:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
article.cp-page ul.cp-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
article.cp-page ul.cp-chips li { display: inline-flex; align-items: center; gap: 6px; color: var(--cp-body); font-size: 14px; font-weight: 700; }
article.cp-page ul.cp-chips svg { width: 18px; height: 18px; padding: 2px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--cp-ok); border-radius: 50%; }
article.cp-page div.cp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
/* 最初の画面の赤いボタン（layout.css の幅 420px・高さ 80px は、このページでは大きすぎる） */
article.cp-page div.main.cp-hero a.btn {
  width: auto;
  min-width: 240px;
  height: 56px;
  margin: 0;
  padding: 2px 64px 0 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
}
article.cp-page div.main.cp-hero a.btn::after { right: 20px; width: 24px; height: 24px; transform: translateY(-50%) rotate(90deg); }   /* 下の一覧へ */
article.cp-page div.main.cp-hero a.btn:hover::after { right: 20px; }

/* フェーズ2: 写真（AI で作った）と、写真の上に浮かぶ本物のクーポンの小さな券 */
article.cp-page figure.cp-hero-img { position: relative; justify-self: end; width: 100%; max-width: 440px; margin: 0 30px 0 0; }
article.cp-page figure.cp-hero-img picture,
article.cp-page figure.cp-hero-img img { display: block; width: 100%; }
article.cp-page figure.cp-hero-img img {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(7, 42, 79, .22), 0 0 0 6px rgba(255, 255, 255, .7);
}
article.cp-page div.cp-hero-chip {
  position: absolute;
  width: 272px;
  filter: drop-shadow(0 2px 2px rgba(16, 24, 40, .08)) drop-shadow(0 16px 26px rgba(16, 24, 40, .2));
  animation: cpChipIn .8s var(--jol-ease) .45s both, cpBob 6s ease-in-out 1.4s infinite;
}
article.cp-page div.cp-hero-chip.c1 { top: 12%; left: -78px; rotate: -4deg; }
article.cp-page div.cp-hero-chip.c2 { right: -40px; bottom: 9%; rotate: 3deg; animation-delay: .85s, 2.2s; }
@keyframes cpChipIn { 0% { opacity: 0; transform: translateY(16px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes cpBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
/* 小さな券（chip）: 写真の上に収まる大きさ。★div.main の中の p の決まり（lower.css）より強く書く */
article.cp-page article.cp-ticket.is-chip { --cp-stub: 80px; --n: 7px; min-height: 0; border-radius: 14px; }
article.cp-page article.cp-ticket.is-chip div.cp-t-main { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 8px 12px 12px; }
article.cp-page article.cp-ticket.is-chip div.cp-mark { width: 44px; height: 44px; padding: 3px; border-radius: 11px; }
article.cp-page article.cp-ticket.is-chip span.cp-mark-t.is-ini { font-size: 21px; font-weight: 900; }
article.cp-page div.main.cp-hero article.cp-ticket.is-chip p.cp-t-meta { padding-right: 0; font-size: 11.5px; line-height: 1.3; color: var(--jol-text-sub); }
article.cp-page div.main.cp-hero article.cp-ticket.is-chip .cp-t-title { font-size: 13.5px; line-height: 1.3; color: var(--jol-text); -webkit-line-clamp: 2; }
article.cp-page div.main.cp-hero article.cp-ticket.is-chip.is-perk p.cp-t-meta { color: rgba(255, 255, 255, .78); }
article.cp-page div.main.cp-hero article.cp-ticket.is-chip.is-perk .cp-t-title { color: #fff; }
article.cp-page article.cp-ticket.is-chip div.cp-t-stub { gap: 5px; padding: 8px 6px; }
article.cp-page article.cp-ticket.is-chip span.cp-t-off { font-size: 17px; }
article.cp-page article.cp-ticket.is-chip span.cp-t-off.is-long { font-size: 12.5px; }
article.cp-page article.cp-ticket.is-chip span.cp-t-lock { font-size: 9.5px; }
article.cp-page article.cp-ticket.is-chip span.cp-t-lock svg { width: 14px; height: 14px; }
article.cp-page span.cp-hero-spark { position: absolute; width: 16px; height: 16px; background: var(--cp-gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: cpTwinkle 2.8s ease-in-out infinite; }
article.cp-page span.cp-hero-spark.s1 { top: -12px; right: 14%; }
article.cp-page span.cp-hero-spark.s2 { bottom: 36%; left: -30px; width: 11px; height: 11px; background: var(--cp-red-2); animation-delay: 1.1s; }
@keyframes cpTwinkle { 0%, 100% { opacity: .25; scale: .7; } 50% { opacity: 1; scale: 1.1; } }

/* 数字の帯 */
article.cp-page ul.cp-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - var(--cp-pad) * 2);
  margin: 36px auto -46px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .1);
}
article.cp-page ul.cp-stats li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 150px; padding: 18px 26px 16px; text-align: center; }
article.cp-page ul.cp-stats:has(li:nth-child(4)) li { min-width: 136px; padding-right: 20px; padding-left: 20px; }
article.cp-page ul.cp-stats li + li { border-left: 1px solid var(--cp-line); }
article.cp-page span.cp-st-v { color: var(--cp-red); font-size: clamp(28px, 2.6vw, 34px); line-height: 1; font-weight: 900; }
article.cp-page span.cp-st-l { color: var(--jol-text-sub); font-size: 13.5px; line-height: 1.35; font-weight: 700; }

/* 終わったクーポンを開いたとき */
article.cp-page p.cp-ended {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 76px auto -60px;
  padding: 12px 18px;
  color: #7c2d12;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

/* ─── 使える店の帯（フェーズ2）: 数字の帯の下。お店ごとに 1 つ（押すとそのクーポンへ） ─── */
article.cp-page section.cp-brands { padding: clamp(84px, 9vw, 104px) 0 0; }
article.cp-page h2.cp-brands-h { color: var(--jol-text-sub); font-size: 14px; line-height: 1.4; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
article.cp-page ul.cp-brands-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
article.cp-page a.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 6px;
  color: var(--jol-text);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
  transition: transform .2s var(--jol-ease), box-shadow .2s var(--jol-ease), border-color .2s ease;
}
article.cp-page a.cp-brand.is-perk { background: linear-gradient(180deg, #fffdf5, #fff); border-color: rgba(201, 168, 76, .65); }
article.cp-page span.cp-brand-mk {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  color: var(--mk-ink, #fff);
  font-size: 16px;
  font-weight: 900;
  background: var(--mk-bg, #1e3a5f);
  border-radius: 50%;
}
article.cp-page span.cp-brand-mk.has-logo { padding: 4px; background: #fff; border: 1px solid var(--cp-line); }
article.cp-page span.cp-brand-mk img { display: block; width: 100%; height: 100%; object-fit: contain; }
article.cp-page span.cp-brand-off { padding-left: 10px; color: #c2170f; font-size: 13px; font-weight: 900; white-space: nowrap; border-left: 1px solid var(--cp-line); }
article.cp-page a.cp-brand:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
@media (hover: hover) {
  article.cp-page a.cp-brand:hover { transform: translateY(-2px); border-color: #c8d3e1; box-shadow: 0 10px 22px rgba(16, 24, 40, .1); }
}

/* ─── 使い方（3 つ）。フェーズ2: 場面が動く（inc/coupons-art.php）・パソコンは 1→2→3 を線と光の点がつなぐ ─── */
article.cp-page div.main.cp-hero + section.cp-sec { padding-top: clamp(96px, 11vw, 132px); }   /* 最初の画面のすぐ下の節（店の帯を隠した・並びを変えたとき）は、数字の帯の分をあける（フェーズ3） */
article.cp-page div.cp-how-wrap { position: relative; margin-top: 36px; }
article.cp-page ol.cp-how-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
article.cp-page li.cp-how-i {
  position: relative;
  padding: 16px 20px 26px;
  text-align: center;
  background: var(--cp-soft);
  border: 1px solid var(--cp-line);
  border-radius: 22px;
}
article.cp-page div.cp-how-art {
  height: 156px;
  margin: 0 0 16px;
  padding: 6px 0;
  background: radial-gradient(80% 90% at 50% 40%, #fff 0%, rgba(255, 255, 255, .6) 60%, rgba(255, 255, 255, 0) 100%);
  border-radius: 16px;
}
article.cp-page div.cp-how-art svg { display: block; width: 100%; height: 100%; }
article.cp-page span.cp-how-no {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: var(--jol-text);
  border-radius: 50%;
}
article.cp-page li.cp-how-i h3 { font-size: 18px; }
article.cp-page li.cp-how-i p { margin-top: 8px; color: var(--cp-body); font-size: 15px; line-height: 1.7; }
/* 1→2→3 をつなぐ線（絵の高さの真ん中・カードの後ろ）と、その上を進む光の点 */
article.cp-page span.cp-flow {
  position: absolute;
  top: 94px;
  right: 16%;
  left: 16%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #f3b2a6 0 10px, rgba(243, 178, 166, 0) 10px 18px);
  border-radius: 3px;
}
article.cp-page span.cp-flow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #db1a1a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(219, 26, 26, .16), 0 0 18px rgba(255, 64, 39, .65);
  opacity: 0;
}
article.cp-page div.cp-how-wrap.is-show span.cp-flow-dot { animation: cpFlow 6s ease-in-out infinite; }
@keyframes cpFlow { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 46% { left: 50%; } 54% { left: 50%; } 94% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* =============================================================
   フェーズ2: 動く絵（inc/coupons-art.php）。li.cp-how-i が画面に入ったら（.is-show）動き出し、6 秒でくり返す
   ・形を変える要素は transform-box: fill-box（自分の大きさを基準に）
   ★動きを減らしたい設定の人: 止まった完成の絵（下の prefers-reduced-motion）
   ============================================================= */
article.cp-page svg.cp-artsvg .a1-tap,
article.cp-page svg.cp-artsvg .a1-heart,
article.cp-page svg.cp-artsvg .a2-tap,
article.cp-page svg.cp-artsvg .a2-btn,
article.cp-page svg.cp-artsvg .a2-live,
article.cp-page svg.cp-artsvg .a2-ch,
article.cp-page svg.cp-artsvg .a3-ok,
article.cp-page svg.cp-artsvg .a3-sp,
article.cp-page svg.cp-artsvg .a3-tag { transform-box: fill-box; transform-origin: center; }
article.cp-page svg.cp-artsvg .a3-receipt { transform-box: fill-box; transform-origin: center bottom; }
article.cp-page svg.cp-artsvg .a3-num { transform-box: fill-box; transform-origin: left center; }
/* 止まった絵（動く前・動きを減らす人）: 選ばれた券・画面いっぱいの券・できた✓ を見せておく */
article.cp-page svg.cp-a1 .a1-sel .a1-card { stroke: #db1a1a; stroke-width: 1.6; }
article.cp-page svg.cp-a1 .a1-list { transform: translateY(-28px); }
article.cp-page svg.cp-a1 .a1-tap { opacity: 0; }
article.cp-page svg.cp-a2 .a2-before,
article.cp-page svg.cp-a2 .a2-tap { opacity: 0; }
article.cp-page svg.cp-a3 .a3-tag { transform: translate(-16px, 22px) rotate(-10deg); }

/* 1 選ぶ（6 秒）: 列が流れる → 指が 1 枚を押す → 券が赤く光る → ♡ が飛ぶ */
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-list { animation: cpA1list 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-tap { animation: cpA1tap 6s ease-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-sel .a1-card { animation: cpA1sel 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-heart { animation: cpA1heart 6s ease-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-fl1 { animation: cpFloat 4s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a1 .a1-fl2 { animation: cpFloat 4.6s ease-in-out .8s infinite; }
@keyframes cpA1list { 0%, 6% { transform: translateY(0); } 28%, 92% { transform: translateY(-28px); } 100% { transform: translateY(0); } }
@keyframes cpA1tap { 0%, 32% { opacity: 0; transform: scale(.5); } 38% { opacity: 1; transform: scale(1); } 43% { opacity: 1; transform: scale(.8); } 56%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cpA1sel { 0%, 40% { stroke: #dbe5f1; stroke-width: 1; } 44%, 90% { stroke: #db1a1a; stroke-width: 1.8; } 100% { stroke: #dbe5f1; stroke-width: 1; } }
@keyframes cpA1heart { 0%, 46% { opacity: 0; transform: translate(-30px, 18px) scale(.3); } 54% { opacity: 1; transform: translate(0, 0) scale(1.2); } 60%, 86% { opacity: 1; transform: translate(0, -4px) scale(1); } 94%, 100% { opacity: 0; transform: translate(0, -14px) scale(.8); } }
@keyframes cpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 2 見せる（6 秒）: ボタンを押す → 券が下から画面いっぱいに → コードが 1 文字ずつ → 明るさの光 */
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-tap { animation: cpA2tap 6s ease-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-btn { animation: cpA2btn 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-before { animation: cpA2before 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-after { animation: cpA2after 6s var(--jol-ease) infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-ch { animation: cpA2ch 6s ease-out infinite; animation-delay: calc(var(--i) * .16s); }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-live { animation: cpLivePulse 1.2s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a2 .a2-rays { animation: cpA2rays 6s ease-in-out infinite; }
@keyframes cpA2tap { 0%, 8% { opacity: 0; transform: scale(.5); } 14% { opacity: 1; transform: scale(1); } 19% { opacity: 1; transform: scale(.8); } 28%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes cpA2btn { 0%, 16% { transform: scale(1); } 19% { transform: scale(.92); } 23%, 100% { transform: scale(1); } }
@keyframes cpA2before { 0%, 24% { opacity: 1; } 32%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cpA2after { 0%, 24% { opacity: 0; transform: translateY(40px); } 34%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes cpA2ch { 0%, 38% { opacity: 0; transform: translateY(4px); } 44%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cpLivePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes cpA2rays { 0%, 40% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* 3 お会計（6 秒）: スマホとパスポートを見せる → レシートが出る → 値引きの札が落ちる → ✓ ときらり */
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-phone { animation: cpA3phone 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-pass { animation: cpA3pass 6s var(--jol-ease) infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-receipt { animation: cpA3receipt 6s ease-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-tag { animation: cpA3tag 6s ease-in infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-num { animation: cpA3num 6s ease-in-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-ok { animation: cpA3ok 6s ease-out infinite; }
article.cp-page li.cp-how-i.is-show svg.cp-a3 .a3-sp { animation: cpA3sp 6s ease-in-out infinite; }
@keyframes cpA3phone { 0%, 8% { transform: translateX(0); } 18%, 92% { transform: translateX(-8px); } 100% { transform: translateX(0); } }
@keyframes cpA3pass { 0%, 18% { opacity: 0; transform: translateX(26px); } 28%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cpA3receipt { 0%, 30% { transform: scaleY(.15); } 42%, 94% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
@keyframes cpA3tag { 0%, 42% { opacity: 0; transform: translate(-6px, -16px) rotate(8deg); } 52% { opacity: 1; transform: translate(-16px, 22px) rotate(-10deg); } 56% { transform: translate(-16px, 19px) rotate(-8deg); } 60%, 92% { opacity: 1; transform: translate(-16px, 22px) rotate(-10deg); } 100% { opacity: 0; transform: translate(-16px, 22px) rotate(-10deg); } }
@keyframes cpA3num { 0%, 54% { transform: scaleX(1); fill: #5eead4; } 58%, 92% { transform: scaleX(.66); fill: #fde047; } 100% { transform: scaleX(1); fill: #5eead4; } }
@keyframes cpA3ok { 0%, 60% { opacity: 0; transform: scale(.4); } 68% { opacity: 1; transform: scale(1.15); } 74%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
@keyframes cpA3sp { 0%, 64% { opacity: 0; transform: scale(.3) rotate(0deg); } 74% { opacity: 1; transform: scale(1.1) rotate(45deg); } 86% { opacity: 0; transform: scale(.6) rotate(90deg); } 100% { opacity: 0; } }

/* ─── お客様だけの特典（紺と金の帯） ────────────────────────── */
article.cp-page section.cp-perks {
  color: #fff;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(201, 168, 76, .2), rgba(201, 168, 76, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(0, 101, 184, .3), rgba(0, 101, 184, 0) 70%),
    linear-gradient(160deg, var(--cp-navy) 0%, var(--cp-navy-2) 100%);
}
article.cp-page section.cp-perks p.eyebrow { color: var(--cp-gold-2); }
article.cp-page section.cp-perks h2 { color: #fff; }
article.cp-page section.cp-perks p.cp-sec-lead { color: rgba(255, 255, 255, .86); }
article.cp-page ul.cp-grid.cp-grid-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin-right: auto; margin-left: auto; }
article.cp-page ul.cp-grid.cp-grid-perks.is-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 440px)); }
article.cp-page section.cp-perks li.cp-item { filter: drop-shadow(0 0 1px rgba(230, 205, 126, .4)) drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
article.cp-page section.cp-perks li.cp-item:has(a.cp-t-link:focus-visible) { outline-color: #fff; }
article.cp-page div.cp-perks-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 34px; }
/* フェーズ2: 上は文（左）と写真（右）。文は左にそろえる */
article.cp-page div.cp-perks-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 4vw, 60px); margin-bottom: clamp(36px, 5vw, 52px); }
article.cp-page div.cp-perks-txt p.eyebrow { justify-content: flex-start; }
article.cp-page div.cp-perks-txt p.eyebrow::before { display: none; }
article.cp-page section.cp-perks div.cp-perks-txt h2 { text-align: left; }
article.cp-page div.cp-perks-txt p.cp-sec-lead { margin-left: 0; text-align: left; }
article.cp-page div.cp-perks-txt div.cp-perks-cta { justify-content: flex-start; margin-top: 26px; }
article.cp-page div.cp-perks-txt p.cp-perks-ok { margin-left: 0; }
article.cp-page figure.cp-perks-img { position: relative; margin: 0; }
article.cp-page figure.cp-perks-img picture,
article.cp-page figure.cp-perks-img img { display: block; width: 100%; }
article.cp-page figure.cp-perks-img img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(230, 205, 126, .5);
}
article.cp-page span.cp-perks-chip {
  position: absolute;
  bottom: 22px;
  left: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  color: var(--jol-text);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
  animation: cpBob 5.4s ease-in-out infinite;
}
article.cp-page span.cp-pc-ic { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 38px; background: linear-gradient(135deg, var(--cp-navy) 0%, var(--cp-navy-2) 100%); border-radius: 12px; }
article.cp-page span.cp-pc-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--cp-gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
article.cp-page span.cp-pc-ic svg .shk { transform-box: fill-box; transform-origin: left bottom; animation: cpUnlock 4s ease-in-out infinite; }
@keyframes cpUnlock { 0%, 30% { transform: translateY(0) rotate(0deg); } 45%, 80% { transform: translateY(-2px) rotate(-18deg); } 95%, 100% { transform: translateY(0) rotate(0deg); } }
/* 特典の券を、光がゆっくり横切る（金の券らしく）。押す所の邪魔をしない */
article.cp-page section.cp-perks article.cp-ticket.is-perk::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 233, 170, .16) 50%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-120%);
  animation: cpShineX 7s ease-in-out infinite;
}
article.cp-page section.cp-perks li.cp-item:nth-child(2) article.cp-ticket.is-perk::before { animation-delay: 1.2s; }
article.cp-page section.cp-perks li.cp-item:nth-child(3) article.cp-ticket.is-perk::before { animation-delay: 2.4s; }
article.cp-page section.cp-perks li.cp-item:nth-child(4) article.cp-ticket.is-perk::before { animation-delay: 3.6s; }
@keyframes cpShineX { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
article.cp-page div.cp-perks-cta a:focus-visible,
article.cp-page section.cp-end a:focus-visible { outline-color: #fff; }
article.cp-page p.cp-perks-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: max-content;
  margin: 30px auto 0;
  padding: 10px 18px;
  color: #d9f7e6;
  font-size: 16px;
  font-weight: 700;
  background: rgba(19, 138, 79, .22);
  border: 1px solid rgba(155, 231, 189, .4);
  border-radius: 999px;
}
article.cp-page p.cp-perks-ok svg { width: 20px; height: 20px; fill: none; stroke: #9be7bd; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ─── すべての旅行者の割引（絞り込み・並べ替え） ───────────────── */
article.cp-page div.cp-tools { margin-top: 32px; }
article.cp-page div.cp-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
article.cp-page button.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 16px;
  color: var(--jol-text);
  font-size: 14.5px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid #d6dee8;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
article.cp-page button.cp-chip svg { width: 16px; height: 16px; fill: #e11d48; stroke: none; }
article.cp-page span.cp-chip-n {
  min-width: 24px;
  padding: 2px 7px;
  color: var(--jol-text-sub);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  background: var(--cp-soft);
  border-radius: 999px;
}
article.cp-page button.cp-chip[aria-pressed="true"] { color: #fff; background: var(--jol-text); border-color: var(--jol-text); }
article.cp-page button.cp-chip[aria-pressed="true"] span.cp-chip-n { color: var(--jol-text); background: #fff; }
article.cp-page button.cp-chip[aria-pressed="true"] svg { fill: #fda4af; }
article.cp-page button.cp-chip:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
@media (hover: hover) {
  article.cp-page button.cp-chip:hover { border-color: var(--jol-text); }
}
article.cp-page div.cp-tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--cp-line); }
article.cp-page p.cp-count { color: var(--jol-text-sub); font-size: 14.5px; font-weight: 700; }
article.cp-page div.cp-sort { display: flex; align-items: center; gap: 8px; color: var(--jol-text-sub); font-size: 14px; font-weight: 700; }
article.cp-page div.cp-sort select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  color: var(--jol-text);
  font-size: 15px;
  font-weight: 700;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23070c1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 16px 16px no-repeat;
  border: 1.5px solid #d6dee8;
  border-radius: 10px;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
article.cp-page div.cp-sort select:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
/* 絞り込んで見えなくなった券 */
article.cp-page li.cp-item.is-out { display: none; }
article.cp-page div.cp-empty { max-width: 520px; margin: 30px auto 0; padding: 36px 24px; text-align: center; background: var(--cp-soft); border: 1px dashed #c8d3e1; border-radius: 22px; }
article.cp-page span.cp-empty-ic { display: inline-flex; width: 52px; height: 52px; padding: 12px; background: #fff; border-radius: 50%; box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
article.cp-page span.cp-empty-ic svg { width: 100%; height: 100%; fill: none; stroke: #5d6b69; stroke-width: 2.2; stroke-linecap: round; }
article.cp-page p.cp-empty-t { margin-top: 12px; color: var(--jol-text); font-size: 18px; font-weight: 800; }
article.cp-page p.cp-empty-d { margin-top: 6px; color: var(--cp-body); font-size: 15px; line-height: 1.7; }
article.cp-page div.cp-empty a.cp-btn-line { margin-top: 16px; }
/* フェーズ2: 新しいクーポンの知らせ（プッシュ通知）。JS が使えると分かったときだけ出る */
article.cp-page div.cp-notify {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 18px;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  border: 1px solid #fed7aa;
  border-radius: 20px;
}
article.cp-page span.cp-notify-ic { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #fff; border-radius: 50%; box-shadow: 0 6px 16px rgba(194, 65, 12, .14); }
article.cp-page span.cp-notify-ic svg { width: 26px; height: 26px; fill: none; stroke: #c2410c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 10%; animation: cpBell 6s ease-in-out infinite; }
@keyframes cpBell { 0%, 80%, 100% { transform: rotate(0deg); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
article.cp-page div.cp-notify-txt h3 { font-size: 17px; }
article.cp-page div.cp-notify-txt p { margin-top: 4px; color: var(--cp-body); font-size: 14.5px; line-height: 1.65; }
article.cp-page div.cp-notify-txt p.cp-notify-st { margin-top: 6px; color: var(--cp-ok); font-size: 14px; font-weight: 800; }
article.cp-page div.cp-notify-txt p.cp-notify-st.is-bad { color: #8a1c1c; }
article.cp-page button.cp-notify-btn {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--jol-text);
  border: 1.5px solid var(--jol-text);
  border-radius: 12px;
  cursor: pointer;
}
article.cp-page button.cp-notify-btn.is-on { color: var(--jol-text); background: #fff; border-color: #d6dee8; }
article.cp-page button.cp-notify-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
article.cp-page button.cp-notify-btn:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }

/* ─── よくある質問（details） ─────────────────────────────── */
article.cp-page section.cp-faq { background: var(--cp-soft); }
article.cp-page div.cp-qa-list { margin-top: 30px; background: #fff; border: 1px solid var(--cp-line); border-radius: 20px; }
article.cp-page details.cp-qa + details.cp-qa { border-top: 1px solid var(--cp-line); }
article.cp-page details.cp-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 22px;
  list-style: none;
  cursor: pointer;
}
article.cp-page details.cp-qa summary::-webkit-details-marker { display: none; }
article.cp-page details.cp-qa summary h3 { font-size: 17px; line-height: 1.5; }
article.cp-page details.cp-qa summary:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: -3px; border-radius: 16px; }
article.cp-page span.cp-qa-ic { position: relative; flex-shrink: 0; width: 30px; height: 30px; background: #f2f7fe; border-radius: 50%; }
article.cp-page span.cp-qa-ic::before,
article.cp-page span.cp-qa-ic::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--jol-blue);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .2s var(--jol-ease);
}
article.cp-page span.cp-qa-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
article.cp-page details.cp-qa[open] span.cp-qa-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) {
  article.cp-page details.cp-qa summary:hover h3 { color: var(--jol-blue); }
}
article.cp-page div.cp-qa-a { padding: 0 22px 20px; }
article.cp-page div.cp-qa-a p { color: var(--cp-body); font-size: 15.5px; line-height: 1.8; }
article.cp-page div.cp-qa-a a { padding: 3px 0; color: var(--jol-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ─── 最後の帯（紺） ─────────────────────────────────────── */
article.cp-page section.cp-end { padding-top: clamp(56px, 8vw, 96px); }
article.cp-page div.cp-end-in {
  position: relative;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(45% 90% at 100% 0%, rgba(201, 168, 76, .24), rgba(201, 168, 76, 0) 70%),
    radial-gradient(40% 80% at 0% 100%, rgba(0, 101, 184, .35), rgba(0, 101, 184, 0) 70%),
    linear-gradient(150deg, var(--cp-navy) 0%, var(--cp-navy-2) 100%);
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(11, 21, 48, .28);
}
article.cp-page section.cp-end h2 { color: #fff; }
article.cp-page div.cp-end-in > p { max-width: 620px; margin: 12px auto 26px; color: rgba(255, 255, 255, .9); font-size: 17px; line-height: 1.7; }
article.cp-page span.cp-sc-text { font-size: 16px; line-height: 1.25; }

article.cp-page p.cp-ai-note { max-width: 720px; margin: 0 auto clamp(48px, 7vw, 80px); padding: 0 var(--cp-pad); color: var(--jol-text-sub); font-size: 13px; line-height: 1.7; text-align: center; }
article.cp-page p.cp-ai-note a { display: inline-block; padding: 3px 3px; color: var(--jol-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ═════════════ 1 件の詳しいページ ═════════════ */
article.cp-page div.main.cp-d-hero { padding-bottom: clamp(36px, 5vw, 60px); background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
article.cp-page a.cp-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--jol-blue); font-size: 15px; font-weight: 700; text-decoration: none; }
article.cp-page a.cp-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  article.cp-page a.cp-back:hover { text-decoration: underline; text-underline-offset: 3px; }
}
article.cp-page div.cp-d-top { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(24px, 4vw, 56px); margin-top: 10px; }
article.cp-page div.cp-d-ticket { position: sticky; top: 96px; filter: drop-shadow(0 2px 2px rgba(16, 24, 40, .07)) drop-shadow(0 22px 34px rgba(16, 24, 40, .16)); }
article.cp-page article.cp-ticket.is-big { --cp-stub: 150px; --n: 13px; min-height: 230px; border-radius: 24px; }
article.cp-page article.cp-ticket.is-big div.cp-t-main { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 26px 20px 26px 26px; }
article.cp-page article.cp-ticket.is-big div.cp-mark { width: 96px; height: 96px; border-radius: 20px; }
article.cp-page article.cp-ticket.is-big span.cp-mark-t { font-size: calc(var(--mk, 13.5) * 1.33px); }
article.cp-page article.cp-ticket.is-big .cp-t-title { font-size: 19px; -webkit-line-clamp: 3; }
article.cp-page article.cp-ticket.is-big p.cp-t-meta { padding-right: 0; font-size: 13.5px; }
article.cp-page article.cp-ticket.is-big span.cp-t-off { font-size: 34px; }
article.cp-page article.cp-ticket.is-big span.cp-t-off.is-long { font-size: 22px; }
article.cp-page p.cp-d-meta { padding-right: 0; font-size: 14px; }
article.cp-page div.main.cp-d-hero h1.cp-d-h1 { margin-top: 10px; color: var(--jol-text); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 900; letter-spacing: -.01em; overflow-wrap: anywhere; }
article.cp-page div.main.cp-d-hero p.cp-d-brand { margin-top: 8px; color: var(--jol-text-sub); font-size: 15px; font-weight: 700; }
article.cp-page div.main.cp-d-hero p.cp-d-lead { margin-top: 16px; color: var(--cp-body); font-size: 16.5px; line-height: 1.8; }
article.cp-page dl.cp-d-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
article.cp-page dl.cp-d-facts > div { padding: 12px 16px; background: #fff; border: 1px solid var(--cp-line); border-radius: 14px; }
article.cp-page dl.cp-d-facts dt { color: var(--jol-text-sub); font-size: 12.5px; font-weight: 700; }
article.cp-page dl.cp-d-facts dd { margin: 2px 0 0; color: var(--jol-text); font-size: 15.5px; font-weight: 800; }
article.cp-page div.cp-d-cta { margin-top: 24px; }
article.cp-page button.cp-show-btn { width: 100%; max-width: 440px; min-height: 62px; font-size: 18.5px; }
article.cp-page button.cp-show-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
article.cp-page button.cp-show-btn:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 3px; }
article.cp-page button.cp-show-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
article.cp-page div.main.cp-d-hero p.cp-d-again { margin-top: 10px; color: var(--jol-text-sub); font-size: 13.5px; line-height: 1.6; }
article.cp-page div.main.cp-d-hero p.cp-d-msg { margin-top: 12px; padding: 10px 14px; color: #8a1c1c; font-size: 14.5px; font-weight: 700; background: #fdecec; border-radius: 10px; }
/* お客様だけの特典の鍵 */
article.cp-page div.cp-gate {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(150deg, var(--cp-navy) 0%, var(--cp-navy-2) 100%);
  border: 1px solid rgba(201, 168, 76, .4);
  border-radius: 18px;
}
article.cp-page span.cp-gate-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(230, 205, 126, .14); border-radius: 14px; }
article.cp-page span.cp-gate-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--cp-gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
article.cp-page div.main.cp-d-hero p.cp-gate-t { color: var(--cp-gold-2); font-size: 16px; font-weight: 800; line-height: 1.4; }
article.cp-page div.main.cp-d-hero p.cp-gate-d { margin-top: 6px; color: rgba(255, 255, 255, .88); font-size: 14.5px; line-height: 1.7; }
article.cp-page div.cp-gate-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
article.cp-page div.cp-gate-btns a.cp-btn-red { min-height: 48px; padding: 2px 20px 0; font-size: 15.5px; }
article.cp-page div.cp-gate-btns a.cp-btn-line { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .7); }
article.cp-page div.cp-gate a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  article.cp-page div.cp-gate-btns a.cp-btn-line:hover { background: rgba(255, 255, 255, .1); }
}
/* 使い方・お店のご案内 */
article.cp-page section.cp-d-how { padding-top: clamp(44px, 6vw, 72px); }
article.cp-page ol.cp-d-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
article.cp-page ol.cp-d-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: var(--cp-soft); border-radius: 16px; }
article.cp-page span.cp-d-no { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; font-size: 14px; font-weight: 900; background: var(--jol-text); border-radius: 50%; }
article.cp-page ol.cp-d-steps p { color: var(--cp-body); font-size: 15px; line-height: 1.65; font-weight: 600; }
article.cp-page div.cp-d-box { margin-top: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--cp-line); border-left: 4px solid var(--jol-teal); border-radius: 14px; }
article.cp-page div.cp-d-box.is-terms { border-left-color: #9db0ca; }
article.cp-page div.cp-d-box.is-store { border-left-color: var(--jol-blue); }
article.cp-page div.cp-d-box h3 { font-size: 16.5px; }
article.cp-page div.cp-d-box p { margin-top: 6px; color: var(--cp-body); font-size: 15.5px; line-height: 1.8; }
article.cp-page p.cp-d-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
article.cp-page p.cp-d-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--jol-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
article.cp-page p.cp-d-links a::after { content: "\2197"; font-size: 13px; }
/* フェーズ2: お店を探す（公式の店舗検索・Google マップ）は、押しやすいボタンの形 */
article.cp-page p.cp-d-links a.cp-d-link.is-main { gap: 6px; min-height: 44px; padding: 0 14px; text-decoration: none; background: #f2f7fe; border-radius: 10px; }
article.cp-page p.cp-d-links a.cp-d-link.is-main svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  article.cp-page p.cp-d-links a.cp-d-link.is-main:hover { background: #e3eefc; }
}
article.cp-page div.cp-d-box p.cp-d-maps-note { margin-top: 8px; color: var(--jol-text-sub); font-size: 13px; line-height: 1.6; }
/* 共有 */
article.cp-page div.cp-d-share { margin-top: 14px; }
article.cp-page button.cp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  color: var(--jol-text);
  font-size: 14.5px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid #d6dee8;
  border-radius: 999px;
  cursor: pointer;
}
article.cp-page button.cp-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
article.cp-page button.cp-share-btn:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
@media (hover: hover) {
  article.cp-page button.cp-share-btn:hover { border-color: var(--jol-text); }
}
article.cp-page div.main.cp-d-hero p.cp-share-st { margin-top: 8px; color: var(--cp-ok); font-size: 13.5px; font-weight: 700; }
article.cp-page section.cp-related { padding-top: 0; }
article.cp-page section.cp-related h2 { font-size: clamp(22px, 2.6vw, 30px); }
article.cp-page section.cp-related p.cp-center { margin-top: 22px; }

/* ═════════════ お店で見せる画面（dialog） ═════════════ */
dialog.cp-present {
  width: min(480px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--jol-text);
  background: #fff;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overscroll-behavior: contain;
}
/* ★この画面は article の外（body の直下）なので、article の [hidden] の決まりが効かない。ここでも隠す */
dialog.cp-present [hidden] { display: none !important; }
dialog.cp-present::backdrop { background: rgba(7, 12, 26, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.cp-present[open] { animation: cpUp .35s var(--jol-ease); }
@keyframes cpUp { 0% { opacity: 0; transform: translateY(28px) scale(.98); } 100% { opacity: 1; transform: none; } }
dialog.cp-present div.cp-p-in { position: relative; }
dialog.cp-present button.cp-p-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
dialog.cp-present button.cp-p-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
dialog.cp-present button.cp-p-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* 上の色の部分（お店の色）。光の筋がゆっくり流れる＝止まった写真（スクリーンショット）ではないしるし */
dialog.cp-present div.cp-p-head {
  position: relative;
  padding: 30px 64px 26px 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%),
    var(--cp-c, #1e3a5f);
}
dialog.cp-present div.cp-p-head::after {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 40%;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: cpShine 3.6s ease-in-out infinite;
}
@keyframes cpShine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
dialog.cp-present div.cp-p-head.is-perk { background: radial-gradient(90% 120% at 0% 0%, rgba(230, 205, 126, .24), rgba(230, 205, 126, 0) 60%), linear-gradient(150deg, var(--cp-navy) 0%, var(--cp-navy-2) 100%); }
dialog.cp-present div.cp-p-head.is-perk p.cp-p-off { color: var(--cp-gold-2); }
dialog.cp-present p.cp-p-brand { font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
dialog.cp-present p.cp-p-off { margin-top: 4px; font-size: clamp(40px, 12vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; overflow-wrap: anywhere; }
dialog.cp-present p.cp-p-title { margin-top: 8px; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.45; font-weight: 600; }
dialog.cp-present div.cp-p-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; }
dialog.cp-present p.cp-p-loading { color: var(--jol-text-sub); font-size: 15px; font-weight: 700; text-align: center; }
dialog.cp-present p.cp-p-offline { padding: 10px 12px; color: #7c2d12; font-size: 14px; font-weight: 700; line-height: 1.5; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
dialog.cp-present div.cp-p-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 16px 16px 20px;
  background: color-mix(in srgb, var(--cp-c, #1e3a5f) 6%, #fff);
  border: 2px dashed color-mix(in srgb, var(--cp-c, #1e3a5f) 45%, #fff);
  border-radius: 16px;
}
dialog.cp-present span.cp-p-code-l { grid-column: 1 / -1; color: var(--jol-text-sub); font-size: 12.5px; font-weight: 700; }
dialog.cp-present span.cp-p-code-v {
  min-width: 0;
  color: var(--jol-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
  user-select: all;
}
dialog.cp-present button.cp-p-copy {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--jol-text);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
dialog.cp-present button.cp-p-copy.is-done { background: var(--cp-ok); }
dialog.cp-present button.cp-p-copy:focus-visible { outline: 3px solid var(--jol-focus); outline-offset: 2px; }
dialog.cp-present figure.cp-p-img { margin: 0; }
dialog.cp-present figure.cp-p-img img { display: block; width: 100%; height: auto; border-radius: 14px; }
dialog.cp-present p.cp-p-show { padding: 18px 16px; color: var(--jol-text); font-size: 20px; line-height: 1.45; font-weight: 800; text-align: center; background: var(--cp-soft); border-radius: 16px; }
dialog.cp-present a.cp-p-link { width: 100%; }
dialog.cp-present p.cp-p-cust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #0b5d3b;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  background: #e5f6ec;
  border-radius: 14px;
}
dialog.cp-present p.cp-p-cust svg { flex-shrink: 0; width: 30px; height: 30px; fill: none; stroke: var(--cp-ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
dialog.cp-present p.cp-p-cust small { display: block; margin-top: 2px; color: #2f6b4f; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
dialog.cp-present p.cp-p-passport { display: flex; align-items: center; gap: 10px; color: var(--jol-text); font-size: 16px; line-height: 1.4; font-weight: 800; }
dialog.cp-present p.cp-p-passport svg { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--jol-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
dialog.cp-present p.cp-p-note { color: var(--cp-body); font-size: 14.5px; line-height: 1.7; }
dialog.cp-present p.cp-p-msg { padding: 12px 14px; color: #8a1c1c; font-size: 15px; font-weight: 700; background: #fdecec; border-radius: 12px; }
dialog.cp-present p.cp-p-live { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--jol-text); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
dialog.cp-present span.cp-live-dot { width: 10px; height: 10px; background: #16a34a; border-radius: 50%; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: cpLive 1.6s ease-out infinite; }
@keyframes cpLive { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
dialog.cp-present p.cp-p-tip { color: var(--jol-text-sub); font-size: 12.5px; line-height: 1.6; text-align: center; }
html.cp-lock { overflow: hidden; }

/* ─── パソコンより狭いとき ─── */
@media screen and (max-width: 1024px) {
  article.cp-page div.main.cp-hero {
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 46%, rgba(255, 255, 255, .72) 72%, rgba(255, 255, 255, .25) 100%),
      url(../img/webp/front/front-bk.webp) right 42% / auto 104% no-repeat,
      #fff;
  }
  /* 1 件の詳しいページは、和柄の絵を出さない（ボタンや鍵の案内に重なるため。パソコンと同じ淡い地） */
  article.cp-page div.main.cp-hero.cp-d-hero { background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
  /* タブレット: 写真の上の小さな券は写真の中に寄せる。念のため最初の画面の横は切る（縦は数字の帯が下へはみ出すので切らない） */
  article.cp-page div.main.cp-hero { overflow-x: clip; }
  article.cp-page figure.cp-hero-img { margin-right: 0; }
  article.cp-page div.cp-hero-chip { width: 236px; }
  article.cp-page div.cp-hero-chip.c1 { left: -30px; }
  article.cp-page div.cp-hero-chip.c2 { right: -12px; }
  article.cp-page span.cp-hero-spark.s2 { left: -14px; }
  article.cp-page div.cp-perks-top { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-right: auto; margin-left: auto; }
  article.cp-page span.cp-perks-chip { left: 14px; }
  article.cp-page div.cp-d-top { grid-template-columns: minmax(0, 1fr); }
  article.cp-page div.cp-d-ticket { position: static; max-width: 560px; }
}

/* ─── スマホ ─── */
@media screen and (max-width: 768px) {
  article.cp-page { --cp-stub: 96px; }
  article.cp-page div.main.cp-hero {
    padding: 66px 0 0;
    background:
      linear-gradient(180deg, #fff 0%, #fff 62%, rgba(255, 255, 255, .6) 82%, rgba(255, 255, 255, .2) 100%),
      url(../img/webp/front/front-bk-sp.webp) center bottom / 100% auto no-repeat,
      #fff;
  }
  article.cp-page div.main.cp-hero.cp-d-hero { padding-bottom: 36px; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%); }
  article.cp-page div.cp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  article.cp-page div.main.cp-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  article.cp-page div.cp-cta-row { flex-direction: column; align-items: stretch; gap: 6px; }
  article.cp-page div.main.cp-hero a.btn { width: 100%; }
  article.cp-page div.cp-cta-row a.cp-sub { justify-content: center; }
  /* 写真は文の下に横長で。小さな券は出さない（狭い写真では顔や名前にかかる） */
  article.cp-page figure.cp-hero-img { justify-self: stretch; max-width: none; margin: 16px 0 0; }
  article.cp-page figure.cp-hero-img img { aspect-ratio: 16 / 9; border-radius: 20px; box-shadow: 0 16px 40px rgba(7, 42, 79, .2); }
  article.cp-page div.cp-hero-chip { display: none; }
  article.cp-page span.cp-hero-spark { display: none; }
  article.cp-page .cp-t-title { -webkit-line-clamp: 3; }
  article.cp-page ul.cp-stats { width: auto; margin: 22px var(--cp-pad) -42px; }
  article.cp-page ul.cp-stats li { flex: 1 1 0; min-width: 0; padding: 16px 6px 14px; }
  /* 4 つのときは 2×2 */
  article.cp-page ul.cp-stats:has(li:nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  article.cp-page ul.cp-stats:has(li:nth-child(4)) li { min-width: 0; padding: 14px 6px 12px; }
  article.cp-page ul.cp-stats:has(li:nth-child(4)) li:nth-child(3) { border-left: 0; }
  article.cp-page ul.cp-stats:has(li:nth-child(4)) li:nth-child(n + 3) { border-top: 1px solid var(--cp-line); }
  article.cp-page span.cp-st-l { font-size: 12px; }
  /* 使い方: 縦に並べる。絵は左に小さく・線と光の点は出さない */
  article.cp-page span.cp-flow { display: none; }
  article.cp-page ol.cp-how-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  article.cp-page li.cp-how-i { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px 14px 10px; text-align: left; }
  article.cp-page div.cp-how-art { grid-row: 1 / span 2; height: 82px; margin: 0; padding: 2px 0; }
  article.cp-page span.cp-how-no { top: 8px; left: 8px; width: 26px; height: 26px; font-size: 13px; }
  article.cp-page li.cp-how-i h3 { align-self: end; font-size: 17px; }
  article.cp-page li.cp-how-i p { align-self: start; margin-top: 4px; font-size: 14.5px; }
  /* 使える店の帯: 1 列に並べて横に流す（指で送る・名前は省かない）。右の端は少し見せて、続きがあると分かるように */
  article.cp-page section.cp-brands { padding-top: 76px; }
  article.cp-page ul.cp-brands-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 14px calc(var(--cp-pad) * -1) 0;
    padding: 2px var(--cp-pad) 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--cp-pad);
    scrollbar-width: none;
  }
  article.cp-page ul.cp-brands-list::-webkit-scrollbar { display: none; }
  article.cp-page ul.cp-brands-list li { flex-shrink: 0; scroll-snap-align: start; }
  article.cp-page a.cp-brand { gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; font-size: 13.5px; }
  article.cp-page span.cp-brand-mk { width: 34px; height: 34px; font-size: 15px; }
  article.cp-page span.cp-brand-off { padding-left: 8px; font-size: 12px; }
  /* 特典の節: 文 → 写真 → 券。文は真ん中 */
  article.cp-page div.cp-perks-txt { text-align: center; }
  article.cp-page div.cp-perks-txt p.eyebrow { justify-content: center; }
  article.cp-page div.cp-perks-txt p.eyebrow::before { display: block; }
  article.cp-page section.cp-perks div.cp-perks-txt h2 { text-align: center; }
  article.cp-page div.cp-perks-txt p.cp-sec-lead { margin-right: auto; margin-left: auto; text-align: center; }
  article.cp-page div.cp-perks-txt div.cp-perks-cta { flex-direction: column; justify-content: center; gap: 6px; }
  article.cp-page div.cp-perks-txt div.cp-perks-cta a.cp-btn-red { width: 100%; }
  article.cp-page div.cp-perks-txt p.cp-perks-ok { margin-right: auto; margin-left: auto; }
  article.cp-page span.cp-perks-chip { bottom: 12px; left: 12px; padding: 8px 12px 8px 8px; font-size: 13px; }
  article.cp-page span.cp-pc-ic { width: 32px; height: 32px; border-radius: 10px; }
  /* 知らせ: 縦に */
  article.cp-page div.cp-notify { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 16px; }
  article.cp-page span.cp-notify-ic { width: 44px; height: 44px; }
  article.cp-page button.cp-notify-btn { grid-column: 1 / -1; width: 100%; }
  article.cp-page ul.cp-grid,
  article.cp-page ul.cp-grid.cp-grid-perks,
  article.cp-page ul.cp-grid.is-few { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* 絞り込み: 横に流す（折り返すと、ボタンが何段にもなる） */
  article.cp-page div.cp-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 calc(var(--cp-pad) * -1);
    padding: 2px var(--cp-pad) 6px;
    overflow-x: auto;
    scroll-padding: 0 var(--cp-pad);
    scrollbar-width: none;
  }
  article.cp-page div.cp-filter::-webkit-scrollbar { display: none; }
  article.cp-page button.cp-chip { flex-shrink: 0; white-space: nowrap; }
  article.cp-page dl.cp-d-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  article.cp-page ol.cp-d-steps { grid-template-columns: minmax(0, 1fr); }
  article.cp-page article.cp-ticket.is-big { --cp-stub: 116px; min-height: 180px; }
  article.cp-page article.cp-ticket.is-big div.cp-t-main { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 20px 14px 20px 18px; }
  article.cp-page article.cp-ticket.is-big div.cp-mark { width: 72px; height: 72px; border-radius: 16px; }
  article.cp-page article.cp-ticket.is-big span.cp-mark-t { font-size: calc(var(--mk, 13.5) * 1px); }
  article.cp-page article.cp-ticket.is-big .cp-t-title { font-size: 16.5px; }
  article.cp-page article.cp-ticket.is-big span.cp-t-off { font-size: 26px; }
  article.cp-page article.cp-ticket.is-big span.cp-t-off.is-long { font-size: 18px; }
  article.cp-page div.cp-gate { grid-template-columns: minmax(0, 1fr); }
  article.cp-page div.cp-gate-btns a { flex: 1 1 100%; }
  /* お店で見せる画面: スマホは画面いっぱい */
  dialog.cp-present { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  dialog.cp-present div.cp-p-in { min-height: 100%; display: flex; flex-direction: column; }
  dialog.cp-present div.cp-p-head { padding: calc(28px + env(safe-area-inset-top)) 64px 24px 22px; }
  dialog.cp-present button.cp-p-close { top: calc(10px + env(safe-area-inset-top)); }
  dialog.cp-present div.cp-p-body { flex: 1; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media screen and (max-width: 400px) {
  article.cp-page div.cp-t-main { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px 10px 16px 14px; }
  article.cp-page div.cp-mark { width: 56px; height: 56px; border-radius: 13px; }
  article.cp-page span.cp-mark-t { font-size: calc(var(--mk, 13.5) * .72px); }   /* 56px の札（中は 46px）に、いちばん長い単語が入る大きさ */
  article.cp-page .cp-t-title { font-size: 15.5px; }
  article.cp-page span.cp-t-off { font-size: 22px; }
  article.cp-page span.cp-t-off.is-long { font-size: 15px; }
  article.cp-page form.cp-search { padding-left: 42px; }
  article.cp-page svg.cp-search-ic { left: 13px; }
  article.cp-page form.cp-search button { padding: 0 14px; }
}

/* 日本語・中国語・韓国語は、文字の間をあけない（小見出しの大文字用の字間） */
html:lang(ja) article.cp-page span.cp-st-l,
html:lang(zh-CN) article.cp-page span.cp-st-l,
html:lang(zh-TW) article.cp-page span.cp-st-l,
html:lang(ko) article.cp-page span.cp-st-l { letter-spacing: 0; }

/* 動きを減らしたい人: 扇・光・脈・絵の動きを止める（止まった形＝完成の絵） */
@media (prefers-reduced-motion: reduce) {
  article.cp-page div.cp-hero-chip,
  article.cp-page span.cp-perks-chip,
  article.cp-page span.cp-pc-ic svg .shk,
  article.cp-page span.cp-notify-ic svg { animation: none; }
  article.cp-page span.cp-hero-spark { animation: none; opacity: .6; }
  article.cp-page svg.cp-artsvg *,
  article.cp-page span.cp-flow-dot { animation: none !important; }
  article.cp-page span.cp-flow-dot { display: none; }
  article.cp-page section.cp-perks article.cp-ticket.is-perk::before { display: none; animation: none; }   /* WebKit は隠しても動きを回し続ける（2026-10-28） */
  article.cp-page a.cp-brand { transition: none; }
  article.cp-page li.cp-item,
  article.cp-page button.cp-save svg { transition: none; animation: none !important; }
  dialog.cp-present[open] { animation: none; }
  dialog.cp-present div.cp-p-head::after { display: none; }
  dialog.cp-present span.cp-live-dot { animation: none; }
}
@media print {
  article.cp-page li.cp-item,
  article.cp-page div.cp-d-ticket { filter: none; }
  article.cp-page div.cp-hero-chip,
  article.cp-page span.cp-hero-spark,
  article.cp-page span.cp-perks-chip { display: none; }
}
