@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;800;900&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --main: #dd1e1c;
  --yellow: #ffcf3c;
  --gold: #d3a129;
  --white: #fff;
  --black: #000;
  --off-white: #f5f5f5;
  --gray-light: #f1f1f1;
  --gray: #d9d9d9;
  --backdrop: #0008;

  /* Fonts */
  --rounded: "Rounded Mplus 1c", "M PLUS Rounded 1c", sans-serif;
  --text: "Noto Sans JP", sans-serif;

  /* Layout */
  --sp-width: 500px;
  --pc-width:800px;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--main);
  color: var(--black);
  font-family: var(--rounded);
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

main {
  width: min(100%, var(--sp-width));
  margin: auto;
  padding: 32px 32px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}


.corners {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 2;
  width: min(100%, var(--sp-width));
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateX(-50%);
}

.corners img {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   Header / Intro
   ========================================================================== */

header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

header img {
  width: 70px;
  height: 70px;
}

h1 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--off-white);
  white-space: nowrap;
}

.characters {
  width: 100%;
  height: 132px;
  object-fit: contain;
}

.intro {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 800;
  text-align: center;
  color: var(--off-white);
  white-space: nowrap;
}

.probability {
  width: 100%;
  border: 1px solid var(--white);
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
}

/* ==========================================================================
   Prize
   ========================================================================== */

.prize {
  width: 100%;
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prize-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.prize-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rank {
  padding: 4px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.8px;
}

.rank span {
  display: block;
  border: 1px solid var(--white);
  padding: 0 26px;
}

.prize h2 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.28px;
  white-space: nowrap;
}

.prize-image {
  width: 109px;
  height: 96px;
  margin-left: -10px;
  object-fit: cover;
  flex-shrink: 0;
}

.prize-image-1 {
  object-fit: contain;
}

.placeholder {
  background: var(--gray);
}

.note {
  font-family: var(--text);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.8px;
  font-weight: 400;
}

/* ==========================================================================
   Panel / Steps
   ========================================================================== */

.panel {
  width: 100%;
  background: var(--white);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.56px;
}

.panel h2 {
  color: var(--main);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.28px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--black);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  letter-spacing: 1.12px;
}

.step h3 {
  font-size: 14px;
  color: var(--main);
  font-weight: 800;
  margin-bottom: 4px;
}

.arrow {
  align-self: center;
  width: 17.32px;
  height: 15px;
  margin-top: -12px;
  margin-bottom: 5px;
  transform: rotate(180deg);
}

.red {
  color: var(--main);
}

.small,
footer p {
  font-family: var(--text);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* ==========================================================================
   Tickets
   ========================================================================== */

.tickets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ticket {
  background: var(--gray-light);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ticket img {
  width: 93px;
  height: 72px;
  object-fit: cover;
}

.ticket strong {
  font-size: 12px;
  color: var(--main);
  letter-spacing: 0.96px;
  line-height: 1.4;
  font-weight: 800;
}

.ticket p {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   Buttons (CTA)
   ========================================================================== */

.cta {
  display: grid;
  place-items: center;
  width: min(311px, 100%);
  height: 64px;
  flex-shrink: 0;
  border-radius: 100px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
}

.cta:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

.cta:hover {
  filter: brightness(0.94);
}

.cta:active {
  transform: translateY(1px);
}

.entry {
  background: var(--yellow);
  color: var(--main);
  border: 0;
}

.join {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  width: 100%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer h2 {
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1.12px;
  text-align: center;
  border-bottom: 1px solid var(--white);
  padding-bottom: 16px;
}

/* ==========================================================================
   Animation
   ========================================================================== */


  /* --- 読み込み時：上から順にポップイン --- */
  header,
  .intro,
  .probability {
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .intro {
    animation-delay: 0.3s;
  }

  .probability {
    animation-delay: 0.45s;
  }


  /* --- スクロールでフェードアップ（JS有効時のみ） --- */
  .js .prize,
  .js .panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js .prize.is-visible,
  .js .panel.is-visible {
    opacity: 1;
    transform: none;
  }



  /* --- 抽選チケット：順番にポンッと出る --- */
  .js .ticket {
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
  }

  .js .is-visible .ticket {
    animation: ticket-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .js .is-visible .ticket:nth-child(2) {
    animation-delay: 0.1s;
  }

  .js .is-visible .ticket:nth-child(3) {
    animation-delay: 0.2s;
  }

  .js .is-visible .ticket:nth-child(4) {
    animation-delay: 0.3s;
  }

  /* --- 参加エントリーボタン：やさしく鼓動 --- */
  .entry {
    animation: pulse 2s ease-in-out infinite;
  }

  .entry:hover {
    animation-play-state: paused;
  }

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes shine {
  0%,
  60% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes ticket-pop {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* ==========================================================================
   Media queries
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .cta {
    transition: filter 0.15s, transform 0.15s;
  }
}
@media (max-width: 500px) {
.pc{
  display: none;
}
}
@media (min-width: 501px) {
  body{
  background: url(/static/fourlimitedsazabys/fanclub/feature/youtown_lot_hf2ido98he/images/pc_bg.png) #ffffff;
  background-repeat:repeat;
  background-size:cover;
  background-attachment: fixed;
  background-color: #f2b8b8;
  }
 main {

    background: var(--main);
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.15);
  }
  .prize.first {
  margin-bottom: -8px;
}
}



@media (max-width: 389px) {
  main {
    padding-left: 24px;
    padding-right: 24px;
  }

  header {
    gap: 12px;
  }

  header img {
    width: 60px;
    height: 60px;
  }

  h1 {
    font-size: clamp(20px, 6.66vw, 26px);
  }

  .intro {
    font-size: clamp(13px, 4.35vw, 17px);
  }

  .probability {
    font-size: clamp(9px, 3.07vw, 12px);
    padding-inline: 4px;
  }

  .prize h2 {
    font-size: clamp(12px, 4.1vw, 16px);
  }

  .prize-image {
    width: 33%;
    height: 96px;
  }

  .ticket p {
    font-size: 9px;
  }
}






@media (min-width: 801px) {
  .sp{
    display: none;
  }

 main {
    width: min(100%, var(--pc-width));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    column-gap: 16px;
    background: var(--main);
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.15);
  }

  /* 賞品以外は2列ぶち抜き */
  main > :not(.prize) {
    grid-column: 1 / -1;
  }
.corners {
  width: min(100%, var(--pc-width));
}
.characters{
  width: 90%;
  height: auto;
}
h1{
  font-size: clamp(20px, 6.5vw, 52px);
}
header img{
width: clamp(60px, 17vw, 136px);
height: auto;
}
.intro{
  font-size: clamp(10px, 3.5vw, 28px);
}
.probability{
    font-size: clamp(10px, 2.5vw, 20px);
}
.steps{
  text-align: center;
}
  .prize {
    gap: 12px;
  }

  .prize-top {
    gap: 12px;
  }

  .arrow {
    margin-top: -3px;
  }
}
