/* Loaded independently so the campaign layout refreshes cleanly during local preview. */
.summer-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  container-type: inline-size;
  /* 写真の右側に出るガター帯は「紙」で埋める（黒帯にしない）。
     左の紙面と同じ方眼にすることで、写真が紙に貼られたコラージュに見える。 */
  background-color: #faf5e9;
  background-image: linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* 写真の右端をヘッダーと同じ内容右端（1280px コンテナ）に揃える。
   画面右端まで全出血させると、被写体（抽選マシン）が構造的にコンテナ外へ出てしまい
   object-position では戻せない（幅 61%・高さ 720px 固定だと超広画面で横方向の
   トリミング余地がゼロになり object-position が無効化されるため）。 */
.summer-hero-media {
  position: absolute;
  inset: 0 var(--saku-hero-gutter) 0 auto;
  display: block;
  width: calc(61% - var(--saku-hero-gutter));
}
.summer-hero-media img { object-position: 82% center; }
.summer-hero-paper {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 720px;
  width: 47%;
  clip-path: polygon(0 0, 94% 0, 89% 22%, 96% 48%, 88% 76%, 93% 100%, 0 100%);
}
/* header（navbar の max-w-[1280px] + px-8）の内容左右端に揃えるガター。
   100cqw は container-type:inline-size を持つ .summer-hero 基準＝スクロールバーを含まない実幅。
   トップページの hero（home-summer-hero-v4.module.css の --saku-hero-gutter）と同一の方式。 */
.summer-hero-paper,
.summer-hero-media,
.summer-hero-pink-note,
.summer-hero-offer {
  --saku-hero-gutter: max(2rem, calc((100cqw - 1280px) / 2 + 2rem));
}
.summer-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  /* ガター分を max-width にも足さないと、ガターが伸びた分だけ本文が痩せる */
  max-width: calc(600px + var(--saku-hero-gutter));
  flex-direction: column;
  justify-content: center;
  container-type: inline-size;
  padding: 3rem 6rem 3rem 3rem;
  padding-left: var(--saku-hero-gutter);
}
.summer-hero-badge {
  display: inline-block;
  width: fit-content;
  margin-top: 1.25rem;
  transform: rotate(-2deg);
  border: 3px solid #1a1a1a;
  background: #a99cd9;
  padding: .5rem 1rem;
  font-family: Fredoka, 'Noto Sans JP', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 5px 5px 0 #1a1a1a;
}
.summer-hero-title {
  margin-top: 1.35rem;
  font-family: Fredoka, 'Noto Sans JP', sans-serif;
  /* en/zh/ko/vi 共用同一段拉丁文案 "SAKU SUMMER"，用 cqi 贴左栏（.summer-hero-content）实际
     可用宽度收缩字号，保证落在 .summer-hero-paper 的撕纸 clip-path 内、不被吃字。
     日文「サクサマー」很短，走 :lang(ja) 保留原尺寸，不受这次收缩影响。 */
  font-size: clamp(2.75rem, 12cqi, 6.5rem);
  font-weight: 900;
  line-height: .77;
  letter-spacing: -.045em;
}
/* 19cqw = .summer-hero-content の本文幅基準。「サクサマー」5 文字 nowrap でも収まる上限 */
.summer-hero-title:lang(ja) { font-size: clamp(4.25rem, 19cqw, 8rem); }
.summer-hero-title span { display: block; white-space: nowrap; }
.summer-hero-title span + span { margin-top: -.35rem; color: #f37021; }
.summer-hero-copy { max-width: 36rem; margin-top: 1.75rem; font-size: 1.125rem; font-weight: 500; line-height: 1.75; }
.summer-hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.75rem; }
.summer-hero-note { flex: 0 1 auto; max-width: 100%; font-size: .875rem; font-weight: 500; line-height: 1.65; color: rgba(26,26,26,.7); }
.summer-hero-pink-note { position: absolute; z-index: 3; right: max(1.5rem, var(--saku-hero-gutter)); bottom: 1.5rem; border: 3px solid #1a1a1a; background: #f4a6a8; padding: .75rem 1rem; font-family: Fredoka, 'Noto Sans JP', sans-serif; font-size: .875rem; font-weight: 700; box-shadow: 5px 5px 0 #1a1a1a; }
.summer-hero-offer { position: absolute; z-index: 3; top: 6%; right: max(4%, var(--saku-hero-gutter)); display: flex; height: 5rem; width: 5rem; transform: rotate(12deg); align-items: center; justify-content: center; border: 3px solid #1a1a1a; border-radius: 50%; background: #f37021; color: #1a1a1a; text-align: center; font-family: Fredoka, 'Noto Sans JP', sans-serif; font-size: .875rem; font-weight: 900; line-height: 1.1; }
.summer-prize-card { min-height: 0; aspect-ratio: 1 / 1; isolation: isolate; }
.summer-prize-card > .inline-flex, .summer-prize-card > p, .summer-prize-card > h3 { position: relative; z-index: 2; }
.summer-prize-art { position:absolute; z-index:0; inset:0; height:100%; width:100%; opacity:1; }
.summer-prize-shade { position:absolute; z-index:1; inset:0; background:linear-gradient(128deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.80) 42%, rgba(255,255,255,.38) 74%, rgba(244,166,168,.48) 100%); animation:summer-card-shade 7s ease-in-out infinite alternate; }
.summer-prize-card:nth-child(2) .summer-prize-shade { background:linear-gradient(128deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 42%, rgba(169,156,217,.34) 74%, rgba(255,255,255,.42) 100%); animation-delay:-2.5s; }
.summer-prize-card:nth-child(3) .summer-prize-shade { background:linear-gradient(128deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.76) 42%, rgba(243,112,33,.30) 74%, rgba(255,255,255,.44) 100%); animation-delay:-4.5s; }
@keyframes summer-card-shade { from { opacity:.72; } to { opacity:1; } }
.summer-steps { position:relative; overflow:hidden; background-color:#faf5e9; }
.summer-steps-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:3.75rem; border-bottom:3px solid #1a1a1a; padding-bottom:1rem; }
.summer-steps-track { display:grid; grid-template-columns:repeat(3,1fr); align-items:center; gap:1.5rem; }
.summer-step { position:relative; min-height:330px; overflow:hidden; border:3px solid #1a1a1a; padding:2rem; box-shadow:7px 7px 0 #1a1a1a; }
.summer-step-01 { z-index:3; transform:translateY(-18px); background:#f37021; }
.summer-step-02 { z-index:2; transform:translateY(20px); background:#a99cd9; }
.summer-step-03 { z-index:1; transform:translateY(-8px); background:#f4a6a8; }
.summer-step-number { position:absolute; right:-.1em; bottom:-.14em; margin:0; color:rgba(26,26,26,.18); font-family:monospace; font-size:clamp(7.5rem,11vw,10rem); font-weight:900; letter-spacing:-.1em; line-height:.72; }
.summer-final-eyebrow { display:inline-block; text-align:center; }
@media (max-width: 1023px) {
  /* Hero image becomes a full-bleed background; the paper panel loses its
     opaque fill and instead gets a soft paper-tone scrim (::before) so the
     copy stays readable over the photo instead of stacking image-then-text. */
  .summer-hero { min-height: 480px; }
  .summer-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border-top: none; }
  .summer-hero-paper { position: relative; min-height: 0; width: 100%; clip-path: none; background-color: transparent; }
  .summer-hero-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(240,234,216,.42) 0%, rgba(240,234,216,.86) 32%, rgba(240,234,216,.96) 100%);
    pointer-events: none;
  }
  .summer-hero-paper .saku-grid-bg { display: none; }
  .summer-hero-paper,
  .summer-hero-media,
  .summer-hero-pink-note,
  .summer-hero-offer { --saku-hero-gutter: 0px; }
  .summer-hero-content { max-width: 690px; padding: 3rem 1.5rem; position: relative; z-index: 1; }
  .summer-hero-title { width: 100%; font-size: clamp(3.4rem, 14vw, 5.8rem); }
  .summer-hero-copy { font-size: 1rem; }
  .summer-hero-actions { align-items: flex-start; flex-direction: column; }
  .summer-prize-card { min-height: 360px; aspect-ratio:auto; }
  .summer-steps-heading { align-items:flex-start; flex-direction:column; margin-bottom:2.25rem; }
  .summer-steps-track { grid-template-columns:1fr; gap:1.5rem; }
  .summer-step, .summer-step-01, .summer-step-02, .summer-step-03 { min-height:290px; transform:none; }
  .summer-hero-pink-note, .summer-hero-offer { display: none; }
}
@media (max-width: 639px) {
  .summer-hero-content { padding-left: .75rem; }
}

/* ---- dark mode ---- */
.dark .summer-hero-badge { border-color: #F0EAD8; box-shadow: 5px 5px 0 #F0EAD8; color: #1a1a1a; }
.dark .summer-hero-note { color: rgba(245,239,224,.7); }
.dark .summer-hero-pink-note { border-color: #F0EAD8; box-shadow: 5px 5px 0 #F0EAD8; color: #1a1a1a; }
.dark .summer-hero-offer { border-color: #F0EAD8; }
.dark .summer-prize-shade { background: linear-gradient(128deg, rgba(33,29,24,.94) 0%, rgba(33,29,24,.80) 42%, rgba(33,29,24,.38) 74%, rgba(244,166,168,.48) 100%); }
.dark .summer-prize-card:nth-child(2) .summer-prize-shade { background: linear-gradient(128deg, rgba(33,29,24,.94) 0%, rgba(33,29,24,.78) 42%, rgba(169,156,217,.34) 74%, rgba(33,29,24,.42) 100%); }
.dark .summer-prize-card:nth-child(3) .summer-prize-shade { background: linear-gradient(128deg, rgba(33,29,24,.94) 0%, rgba(33,29,24,.76) 42%, rgba(243,112,33,.30) 74%, rgba(33,29,24,.44) 100%); }
.dark .summer-prize-art img { filter: brightness(.88) contrast(1.03); }
html.dark .summer-hero {
  background-color: #151310;
  background-image: linear-gradient(rgba(240,234,216,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(240,234,216,.08) 1px, transparent 1px);
}
.dark .summer-hero-media img { filter: brightness(.88) contrast(1.03); }
.dark .summer-hero-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(21,19,16,.16); pointer-events: none; }
.dark .summer-steps-heading { border-bottom-color: #F0EAD8; }
.dark .summer-step { border-color: #F0EAD8; box-shadow: 7px 7px 0 #F0EAD8; }
.dark .summer-step h3,
.dark .summer-step p,
.dark .summer-step .inline-flex { color: #1a1a1a; }
.dark .summer-step .bg-foreground { background: #1a1a1a; color: #F5EFE0; }
.dark .summer-prize-card .bg-saku-pink,
.dark .summer-prize-card .bg-saku-lavender { color: #1a1a1a; }
html.dark .summer-steps { background-color: #151310; }
@media (max-width: 1023px) {
  .dark .summer-hero-paper::before {
    background: linear-gradient(180deg, rgba(21,19,16,.48) 0%, rgba(21,19,16,.88) 32%, rgba(21,19,16,.97) 100%);
  }
}
