/* promo.css — coupon Golden Week (accueil) + page promo.html
   Style affiche japonaise : fond rouge rayé, ticket bleu, bulle jaune.
   À charger APRÈS style.css (index.html et promo.html). */

:root { --gw-red: #e03428; --gw-blue: #265cc8; --gw-yel: #ffde59; }

/* ---------- Minuteur (commun) ---------- */
.gw-timer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.gw-timer-label { margin-right: 4px; font-size: 13px; font-weight: 900; color: #fff; }
.gw-box { display: inline-flex; align-items: baseline; gap: 2px; padding: 5px 9px; background: #fff; color: var(--gw-blue); }
.gw-box b { font-size: 24px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gw-box i { font-style: normal; font-size: 11px; font-weight: 900; color: var(--gw-red); }

/* ---------- Coupon de l'accueil ---------- */
.gw-coupon { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 22px; padding: 26px 28px; overflow: hidden; color: #fff;
    background: repeating-linear-gradient(135deg, var(--gw-red) 0 34px, #e55b4f 34px 68px); }
.gw-left { position: relative; z-index: 1; }
.gw-badge { display: inline-block; margin-bottom: 10px; padding: 3px 16px; background: var(--gw-yel); color: var(--gw-blue); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.gw-title { margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.4; }
.gw-sub { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.gw-period { display: inline-block; margin: 0 0 14px; padding: 5px 18px; background: #fff; color: var(--gw-red); font-size: 13px; font-weight: 900; }
.gw-left .gw-timer { margin-bottom: 16px; }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; background: var(--gw-yel); color: var(--gw-blue); font-size: 16px; font-weight: 900; text-decoration: none; }
.gw-btn:hover, .gw-btn:active { background: #fff; }

.gw-ticket { position: relative; z-index: 1; padding: 12px; background: var(--gw-blue); }
.gw-ticket-in { display: flex; flex-direction: column; align-items: center; padding: 14px 10px 12px; background: #fff; color: var(--gw-blue); text-align: center; }
.gw-ticket-lead { font-size: 13px; font-weight: 900; color: var(--gw-red); }
.gw-off { display: flex; align-items: baseline; justify-content: center; line-height: 1; font-weight: 900; }
.gw-off b { font-size: 110px; letter-spacing: -4px; }
.gw-off span { font-size: 38px; margin-left: 2px; }
.gw-off em { font-style: normal; font-size: 34px; margin-left: 8px; }
.gw-code { margin-top: 8px; padding: 3px 14px; border: 2px dashed var(--gw-blue); font-size: 13px; font-weight: 900; letter-spacing: .1em; }

/* ---------- Page promo ---------- */
.pm-hero img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
.pm-page { max-width: 780px; margin: 0 auto; padding: 22px 12px 44px; }
.pm-page [hidden] { display: none !important; }

.pm-ticket { padding: 12px; background: var(--gw-blue); margin-bottom: 18px; }
.pm-ticket-in { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 18px 20px; background: #fff; }
.pm-off { display: flex; align-items: baseline; color: var(--gw-blue); font-weight: 900; line-height: 1; }
.pm-off b { font-size: 92px; letter-spacing: -3px; }
.pm-off span { font-size: 30px; margin-left: 2px; }
.pm-ticket-text .pm-badge { display: inline-block; margin-bottom: 6px; padding: 2px 14px; background: var(--gw-red); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.pm-h1 { margin: 0 0 6px; font-size: 22px; font-weight: 900; line-height: 1.4; color: #222; }
.pm-period { margin: 0 0 10px; font-size: 12.5px; font-weight: 900; color: var(--gw-red); }
.pm-ticket .gw-timer-label { color: #444; }
.pm-ticket .gw-box { background: var(--gw-blue); color: #fff; }
.pm-ticket .gw-box i { color: var(--gw-yel); }
.pm-code { margin-top: 10px; display: inline-block; padding: 3px 14px; border: 2px dashed var(--gw-blue); font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--gw-blue); }

.pm-lead { margin: 0 0 18px; font-size: 14px; line-height: 2; color: #444; }

.pm-cond { margin: 0 0 18px; padding: 14px 18px; background: #fffbe6; border: 1px solid #e8d98a; border-left: 6px solid var(--gw-yel); }
.pm-cond h2 { margin: 0 0 6px; font-size: 14px; font-weight: 900; color: #222; }
.pm-cond ul { margin: 0; padding-left: 1.2em; font-size: 12.5px; line-height: 1.9; color: #555; }

.pm-form { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gw-red); padding: 20px 18px; }
.pm-field { margin-bottom: 14px; }
.pm-actions { display: grid; gap: 10px; }
.pm-actions .btn-line { max-width: none; }
.pm-link { color: var(--gw-red); font-weight: 700; text-decoration: none; }
.pm-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .gw-coupon { grid-template-columns: 1fr; padding: 20px 16px; gap: 16px; text-align: center; }
    .gw-title { font-size: 20px; }
    .gw-timer { justify-content: center; }
    .gw-off b { font-size: 84px; }
    .pm-ticket-in { grid-template-columns: 1fr; text-align: center; }
    .pm-off { justify-content: center; }
    .pm-off b { font-size: 76px; }
    .pm-ticket .gw-timer { justify-content: center; }
    .pm-h1 { font-size: 18px; }
}
@media (max-width: 380px) { .gw-box { padding: 4px 6px; } .gw-box b { font-size: 19px; } }


/* ===================== Coupon d'accueil : symboles du Golden Week + animations ===================== */
.gw-coupon { grid-template-areas: "sky sky" "left ticket"; }
.gw-sky { grid-area: sky; position: relative; height: 72px; margin: -10px -6px 0; z-index: 1; }
.gw-pole { position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: rgba(255,255,255,.85); }
.gw-carp { position: absolute; top: 8px; width: 150px; height: auto; transform-origin: 8% 50%; animation: gwSway 3.2s ease-in-out infinite alternate; pointer-events: none; }
.gw-carp.c2 { left: 18%; animation-delay: -1.1s; }
.gw-carp.c3 { left: 50%; animation-delay: -2s; }
.gw-leaf { position: absolute; top: 0; font-size: 22px; animation: gwSway 4s ease-in-out infinite alternate; transform-origin: top center; }
.gw-leaf.l1 { right: 14%; } .gw-leaf.l2 { right: 7%; animation-delay: -1.3s; } .gw-leaf.l3 { right: 2%; animation-delay: -2.4s; }
@keyframes gwSway { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(4deg) translateY(3px); } }

.gw-left { grid-area: left; } .gw-ticket { grid-area: ticket; }
.gw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 14px; max-width: 460px; }
.gw-days span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; background: rgba(255,255,255,.18); font-size: 15px; font-weight: 900; line-height: 1.15; }
.gw-days span.h { background: #fff; color: var(--gw-red); }
.gw-days small { font-size: 10px; font-weight: 700; opacity: .85; }
.gw-days em { font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--gw-blue); white-space: nowrap; }

.gw-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gw-confetti i { position: absolute; top: -20px; width: 24px; height: 9px; opacity: .85; animation: gwFall 7s linear infinite; }
.gw-confetti i:nth-child(1) { left: 6%; background: #c8a6ee; animation-delay: 0s; }
.gw-confetti i:nth-child(2) { left: 18%; background: #9fe070; animation-delay: -2s; animation-duration: 8s; }
.gw-confetti i:nth-child(3) { left: 31%; background: #ffb85a; animation-delay: -4s; }
.gw-confetti i:nth-child(4) { left: 44%; background: #7fb4ee; animation-delay: -1s; animation-duration: 9s; }
.gw-confetti i:nth-child(5) { left: 58%; background: #f8a0a0; animation-delay: -5s; }
.gw-confetti i:nth-child(6) { left: 71%; background: #c8a6ee; animation-delay: -3s; animation-duration: 8s; }
.gw-confetti i:nth-child(7) { left: 84%; background: #9fe070; animation-delay: -6s; }
.gw-confetti i:nth-child(8) { left: 94%; background: #ffb85a; animation-delay: -2.5s; animation-duration: 9s; }
@keyframes gwFall { to { transform: translateY(420px) rotate(300deg); } }

.gw-ticket { overflow: hidden; }
.gw-ticket::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -90px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: gwShine 4.5s ease-in-out infinite; }
@keyframes gwShine { 0%, 55% { left: -90px; } 100% { left: 120%; } }
.gw-btn { animation: gwPulse 2.2s ease-in-out infinite; }
@keyframes gwPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.gw-coupon { animation: gwIn .7s ease both; }
@keyframes gwIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
    .gw-coupon { grid-template-areas: "sky" "left" "ticket"; }
    .gw-sky { height: 56px; } .gw-carp { width: 100px; }
    .gw-days { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-carp, .gw-leaf, .gw-confetti i, .gw-ticket::after, .gw-btn, .gw-coupon { animation: none !important; }
    .gw-confetti { display: none; }
}

/* ===================== Page promo : version douce (bleu pastel, vagues, carpes pastel) ===================== */
body.pm-soft { background: #eef5f9; }
.pm-sky { position: relative; height: 190px; overflow: hidden; background: linear-gradient(180deg, #cfe5f1 0%, #e6f1f7 100%); }
.pm-sky svg.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-sky .pm-carp { position: absolute; width: 190px; height: auto; animation: pmSwim 5s ease-in-out infinite alternate; }
.pm-carp.a { top: 22px; left: 10%; }
.pm-carp.b { top: 80px; left: 42%; animation-delay: -1.6s; width: 160px; }
.pm-carp.c { top: 34px; left: 70%; animation-delay: -3s; }
@keyframes pmSwim { from { transform: translate(-10px, 0) rotate(-2deg); } to { transform: translate(14px, -8px) rotate(2deg); } }
.pm-sky .nano { position: absolute; bottom: -6px; left: 0; right: 0; height: 46px; background:
    radial-gradient(circle at 10px 18px, #f4d64e 6px, transparent 7px) 0 0 / 34px 30px,
    radial-gradient(circle at 24px 8px, #f7e27a 5px, transparent 6px) 0 0 / 34px 30px; opacity: .9; }
.pm-sky .cloud { position: absolute; width: 90px; height: 26px; background: #fff; border-radius: 30px; opacity: .8; animation: pmCloud 30s linear infinite; }
.pm-sky .cloud.x { top: 18px; left: -100px; } .pm-sky .cloud.y { top: 70px; left: -100px; animation-delay: -15s; transform: scale(.7); }
@keyframes pmCloud { to { transform: translateX(120vw); } }
@media (prefers-reduced-motion: reduce) { .pm-carp, .cloud { animation: none !important; } }

body.pm-soft .pm-ticket { background: #cfe3ee; }
body.pm-soft .pm-off { color: #3d7399; }
body.pm-soft .pm-ticket-text .pm-badge { background: #e58f9a; }
body.pm-soft .pm-h1 { color: #2d4a5f; }
body.pm-soft .pm-period, body.pm-soft .pm-link { color: #c25f6d; }
body.pm-soft .pm-ticket .gw-box { background: #5a8fb4; }
body.pm-soft .pm-ticket .gw-box i { color: #ffe9a0; }
body.pm-soft .pm-code { border-color: #5a8fb4; color: #3d7399; }
body.pm-soft .pm-cond { background: #fffaf0; border-color: #efe2b8; border-left-color: #f4d64e; }
body.pm-soft .pm-form { border-top-color: #5a8fb4; background: #fff; }
body.pm-soft .pm-actions .btn-primary { background: #4f86ad !important; }
body.pm-soft .pm-actions .btn-primary:hover, body.pm-soft .pm-actions .btn-primary:active { background: #3d7399 !important; }
body.pm-soft .pm-ticket, body.pm-soft .pm-form { animation: gwIn .6s ease both; }

/* ===================== Coupon « 10% OFF クーポンプレゼント » (accueil + promo.html) =====================
   Vert #5bc561, cadre blanc, typographie Noto Sans JP Black. Tout est du texte : modifiable via promo_campaigns. */
.cp { --g: #5bc561; --gd: #2f9a3b; container-type: inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--g); font-family: 'Noto Sans JP', sans-serif; overflow: hidden; isolation: isolate; animation: cpIn .8s cubic-bezier(.2,.8,.2,1) both; }
.cp::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%); transform: translateX(-130%); animation: cpShine 5s ease-in-out 1.4s infinite; }
.cp-card { position: relative; margin: 1.1cqw 0 0 1.1cqw; padding: 1.4cqw 2.4cqw 1.2cqw 2.2cqw; background: #fff; color: #000; display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .9cqw; min-width: 0; align-items: end; }
.cp-num { grid-column: 1; grid-row: 1 / 3; font-size: 15.5cqw; font-weight: 900; line-height: .78; letter-spacing: -.05em; padding-top: 1cqw; font-variant-numeric: tabular-nums; transform-origin: 0 100%; animation: cpRise .9s cubic-bezier(.2,.9,.25,1.1) .15s both; }
.cp-pct { grid-column: 2; grid-row: 1; align-self: start; font-size: 7.4cqw; font-weight: 900; line-height: 1; animation: cpPop .55s cubic-bezier(.3,1.6,.5,1) .55s both; }
.cp-off { grid-column: 2; grid-row: 2; font-size: 5.8cqw; font-weight: 900; line-height: .9; letter-spacing: -.02em; animation: cpPop .55s cubic-bezier(.3,1.6,.5,1) .7s both; }
.cp-ban { grid-column: 3; grid-row: 1; align-self: start; justify-self: stretch; margin: .5cqw 0 1cqw; padding: 1.1cqw 2cqw; background: var(--g); color: #fff; font-size: 2.9cqw; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; clip-path: polygon(1.2cqw 0, 100% 0, calc(100% - 1.2cqw) 100%, 0 100%); animation: cpSlide .7s cubic-bezier(.2,.8,.2,1) .4s both; }
.cp-head { grid-column: 3; grid-row: 2; margin: 0; font-size: 4.5cqw; font-weight: 900; line-height: 1; letter-spacing: -.04em; white-space: nowrap; animation: cpWipe .9s cubic-bezier(.6,0,.2,1) .75s both; }
.cp-head em { display: inline-block; margin-left: .3cqw; font-style: normal; font-size: 1.25em; transform: skewX(-9deg); transform-origin: 50% 100%; animation: cpBounce 3.2s ease-in-out 2.4s infinite; }
.cp-spark { position: absolute; font-style: normal; color: #ffc928; font-size: 2.2cqw; line-height: 1; pointer-events: none; animation: cpTwinkle 2.6s ease-in-out infinite; }
.cp-spark.s1 { left: 13%; top: 9%; } .cp-spark.s2 { right: 3.5%; top: 14%; animation-delay: -.9s; font-size: 1.7cqw; } .cp-spark.s3 { left: 33%; bottom: 6%; animation-delay: -1.7s; font-size: 1.5cqw; color: var(--g); }
.cp-side { position: relative; display: flex; align-items: center; gap: .5cqw; padding: 0 3.2cqw 0 1.8cqw; margin-top: 1.1cqw; gap: .9cqw; color: #fff; text-decoration: none; cursor: pointer; }
.cp-side span { writing-mode: vertical-rl; font-size: 2.3cqw; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
.cp-side b { position: relative; z-index: 1; font-size: 3.6cqw; font-weight: 300; line-height: 1; animation: cpNudge 1.5s ease-in-out infinite; }
.cp-side::before { content: ''; position: absolute; right: .9cqw; top: 50%; width: 4.4cqw; height: 4.4cqw; margin-top: -2.2cqw; border-radius: 50%; border: .25cqw solid rgba(255,255,255,.85); animation: cpPulse 2s ease-out infinite; }
.cp-side:hover b { animation-duration: .7s; }
.cp-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8cqw 2.4cqw; padding: .9cqw 2cqw 1.1cqw; color: #fff; font-size: 1.5cqw; font-weight: 900; }
.cp-period { margin: 0; letter-spacing: .02em; }
.cp-timer { display: inline-flex; align-items: center; gap: .6cqw; }
.cp-timer > em { font-style: normal; margin-right: .4cqw; }
.cp-t { display: inline-flex; align-items: baseline; gap: .2cqw; padding: .3cqw .9cqw; background: #fff; color: var(--gd); }
.cp-t b { font-size: 2.5cqw; line-height: 1.1; font-variant-numeric: tabular-nums; } .cp-t i { font-style: normal; font-size: 1.15cqw; }
.cp-code { padding: .3cqw 1.3cqw; border: .2cqw dashed #fff; letter-spacing: .1em; }

@keyframes cpIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cpRise { from { opacity: 0; transform: translateY(35%) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes cpPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes cpSlide { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }
@keyframes cpWipe { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(-20% -5% -20% 0); opacity: 1; } }
@keyframes cpShine { 0% { transform: translateX(-130%); } 38%, 100% { transform: translateX(130%); } }
@keyframes cpNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.9cqw); } }
@keyframes cpBounce { 0%, 55%, 100% { transform: skewX(-9deg) translateY(0); } 65% { transform: skewX(-9deg) translateY(-12%) scale(1.12); } 78% { transform: skewX(-9deg) translateY(0); } 88% { transform: skewX(-9deg) translateY(-4%); } }
@keyframes cpPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes cpTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }

/* Page promo : plein écran sur ordinateur portable, inchangé sur mobile */
body.pm-soft { overflow-x: clip; }
.pm-page .cp { margin-bottom: 14px; }
.pm-page .pm-h1 { text-align: center; margin-bottom: 18px; }
@media (min-width: 1024px) { .pm-page .cp-full { width: 100vw; margin-left: calc(50% - 50vw); } }

@media (max-width: 720px) {
    .cp { grid-template-columns: 1fr; }
    .cp-card { margin: 2.4cqw 2.4cqw 0; padding: 5cqw 4cqw 6cqw; grid-template-columns: auto auto; justify-content: center; row-gap: 3cqw; column-gap: 2cqw; }
    .cp-num { font-size: 36cqw; padding-top: 2cqw; } .cp-pct { font-size: 17cqw; } .cp-off { font-size: 14cqw; }
    .cp-ban { grid-column: 1 / -1; grid-row: 3; margin: 2cqw 0 0; padding: 2.4cqw 3cqw; font-size: 5cqw; clip-path: polygon(3cqw 0, 100% 0, calc(100% - 3cqw) 100%, 0 100%); }
    .cp-head { grid-column: 1 / -1; grid-row: 4; text-align: center; font-size: 8.6cqw; }
    .cp-spark { font-size: 5cqw !important; }
    .cp-side { margin-top: 0; padding: 3.6cqw 4cqw; justify-content: center; gap: 2cqw; }
    .cp-side span { writing-mode: horizontal-tb; font-size: 5cqw; } .cp-side b { font-size: 7cqw; }
    .cp-side::before { right: auto; left: 62%; width: 10cqw; height: 10cqw; margin-top: -5cqw; }
    .cp-foot { padding: 2.4cqw 3cqw 3.4cqw; gap: 2cqw 3cqw; font-size: 3cqw; }
    .cp-t b { font-size: 5.4cqw; } .cp-t i { font-size: 2.4cqw; } .cp-t { padding: .6cqw 1.8cqw; gap: .4cqw; } .cp-timer { gap: 1.2cqw; }
    .cp-code { border-width: .4cqw; padding: .6cqw 2.4cqw; }
}
@media (prefers-reduced-motion: reduce) { .cp, .cp::after, .cp-card *, .cp-side b, .cp-side::before { animation: none !important; } .cp-spark { display: none; } }
