/* =========================================================
   蒜山サイクリングフォトラリー LP
   PC: 1440px design / SP: 400px design
   ========================================================= */

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #333333;
  --color-orange: #de4f0f;
  --color-green: #04562f;
  --color-green-btn: #76c643;
  --color-pink: #d23872;
  --color-blue: #117295;
  --color-yellow: #f6f39d;
  --color-bg: #f4f8e0;
  --color-prize-bg: #ffe4e4;
  --color-text-link:#F6F39D;

  --font-sans: "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --font-accent: "Zen Maru Gothic", "Yu Gothic", sans-serif;
  --font-en: "Miltonian Tattoo", cursive;

  --content-width: 90%;
  --content-max: none;
  --radius-pill: 999px;
  --radius-card: 12px;
  --radius-img: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.pc-only {
  display: none;
}

.page {
  overflow-x: hidden;
}

/* ---------- Content width ---------- */
/* SP: 90% / Tablet 768–1028: 80% / PC: max 1008px */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-bg);
}

.hero__visual {
  position: relative;
  width: 100%;
}

.hero__bg {
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* ---------- Contents ---------- */
.contents {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  background: var(--color-bg);
  margin-top: 16px;
}

/* ---------- Copy ---------- */
.copy-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: var(--content-width);
  max-width: var(--content-max);
  margin-inline: auto;
}

.copy-group__lead {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-orange);
  text-align: justify;
}

.copy-group__body {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-align: justify;
  padding: 0 16px;
}

/* ---------- Joining ---------- */
.joining {
  background: var(--color-white);
  padding: 32px 0;
}

.joining__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: var(--content-width);
  max-width: var(--content-max);
  margin-inline: auto;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-heading__title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.67;
  letter-spacing: 0.025em;
  color: var(--color-text);
}

.section-heading__line {
  display: block;
  width: 64px;
  height: 1.5px;
  background: var(--color-green);
}

.joining__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  text-align: justify;
  padding: 0 16px;
}

.joining__desc-highlight{
  color: var(--color-white);
  background: #72BB2B;

}

.preparation {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-green);
  border-bottom: 1px solid var(--color-green);
}

.preparation__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.preparation__list{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.preparation__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  padding: 0 16px;
}

.preparation__note {
  font-size: 14px;
  line-height: 1.71;
  color: var(--color-black);
  text-align: center;
  padding: 0 16px;
}

/* ---------- Steps ---------- */
.steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step__number {
  font-family: var(--font-en);
  font-size: 32px;
  line-height: 1.67;
  letter-spacing: 0.025em;
  color: var(--color-blue);
}

.step__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.step__icon {
  width: 74px;
  height: auto;
}

.step__icon--stamp {
  width: 88px;
}

.step__icon--gift {
  width: 88px;
}

.step__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step__text {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-black);
  padding: 0 16px;
}

.steps__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: auto;
}

.steps__arrow img {
  width: 24px;
  height: 15px;
  transform: rotate(90deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn--join {
  width: 100%;
  background: var(--color-green-btn);
  color: var(--color-white);
  max-width: 328px;
}

.btn--join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 86, 47, 0.2);
}

.btn--join:active {
  transform: translateY(0);
}

.btn--cta {
  width: 100%;
}

/* ---------- Prize ---------- */
.prize-outer {
  padding-top: 16px;
}

.prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
  background: var(--color-white);
  border: 2px solid var(--color-pink);
  border-radius: var(--radius-card);
  width: var(--content-width);
  max-width: var(--content-max);
  margin-inline: auto;
}

.prize-card__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 20px;
  background: var(--color-yellow);
  border: 2px solid var(--color-green);
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-text);
}

.prize-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prize-main__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.57;
  letter-spacing: 0.02em;
  color: var(--color-pink);
  text-align: center;
}

.prizes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.prize__media {
  position: relative;
  width: 286px;
  max-width: 100%;
}

.prize__img {
  width: 100%;
  aspect-ratio: 286 / 161;
  object-fit: cover;
  border-radius: var(--radius-img);
  background: var(--color-prize-bg);
}

.prize__img--wchance {
  aspect-ratio: 308 / 204;
  object-fit: contain;
  background: #f3c5bd;
}

.prize__label {
  position: absolute;
  top: -22px;
  left: -20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 75px;
  height: 44px;
  padding-top: 4px;
  background: url("../images/prize-label.svg") no-repeat center 8px / 75px 36px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-white);
}

.prize__rank {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.prize__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.prize__name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-text);
}

.prize:first-child .prize__name {
  color: var(--color-black);
}

.prize__count {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.71;
  color: var(--color-text);
}

.prize:first-child .prize__count {
  color: var(--color-black);
}

.prize__count-num {
  font-family: var(--font-en);
  font-size: 24px;
  line-height: 1.67;
  letter-spacing: 0.025em;
  font-weight: 400;
}

.prize__count-num--md {
  font-size: 24px;
}

.prize__count-unit {
  font-size: 14px;
  line-height: 1.71;
}

.prize-card__divider {
  border: none;
  border-top: 1px solid var(--color-pink);
  margin: 0 auto;
  width: 90%;
}

.wchance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wchance__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 20px;
  background: var(--color-orange);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-white);
}

.wchance__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
  max-width: 90%;
  padding: 0 16px;
}

.prize--wchance .prize__media {
  width: min(308px, 100%);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-yellow);
  padding: 40px 0 80px;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: var(--content-width);
  max-width: var(--content-max);
  margin-inline: auto;
}

.cta__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-green);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 16px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: var(--content-width);
  max-width: var(--content-max);
  margin-inline: auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  width: 80px;
  height: auto;
}

.footer__contacts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.footer__label {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.footer__value {
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.03em;
}

.footer__value-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 10px;
  line-height: 1.71;
  letter-spacing: 0.02em;
}

.footer__meta p {
  text-decoration: none;
}

.footer__links-outer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer__link {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
  color:var(--color-text-link);
  display: flex;
  align-items: center;
}

.footer__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ---------- Motion ---------- */
.hero__visual {
  animation: hero-in 1s ease both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn--join {
  animation: pulse-soft 2.8s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(118, 198, 67, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(118, 198, 67, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__visual,
  .btn--join {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Tablet / PC 共通レイアウト (768px+)
   ========================================================= */
@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }

  .contents {
    gap: 80px;
    margin-top: 0px;
  }

  .joining {
    padding: 40px 0;
  }

  .copy-group__lead {
    text-align: center;
  }

  .preparation__list{
    align-items: center;
  }

  .steps {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .step {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    height: 316px;
  }

  .step__body {
    flex: 1;
  }

  .steps__arrow img {
    width: 15px;
    height: 24px;
    transform: none;
  }

  .prize-main {
    gap: 40px;
  }

  .prize-main__title {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 0.25em;
  }

  .prizes {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
  }

  .prize__rank {
    line-height: 1.2;
  }

  .prize__count-num:not(.prize__count-num--md) {
    font-size: 32px;
  }

  .wchance__desc {
    text-align: center;
  }

  .cta {
    padding: 40px 0 64px;
  }

  .cta__inner {
    align-items: center;
    gap: 32px;
  }

  .cta__title {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .btn--cta {
    width: 240px;
  }

  .footer {
    padding: 24px 0 40px;
  }

  .footer__brand {
    gap: 24px;
  }

  .footer__logo {
    width: 96px;
  }

  .footer__contacts {
    width: auto;
    align-items: center;
  }

  .footer__value-group {
    align-items: flex-start;
    gap: 4px;
  }

  .footer__meta {
    flex-direction: row;
    gap: 24px;
    font-size: 12px;
  }

  .footer__links-outer {
    flex-direction: row;
    gap: 72px;
  }

  .footer__links {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    align-items: center;
  }
}

/* =========================================================
   PC (1029px+): max-width 1008px
   ========================================================= */
@media (min-width: 1029px) {
  :root {
    --content-width: 100%;
    --content-max: 1008px;
  }
}

/* =========================================================
   Tablet (768px ～ 1028px): コンテンツ幅 80%
   ========================================================= */
   @media (min-width: 768px) and (max-width: 1028px) {
    :root {
      --content-width: 80%;
      --content-max: none;
    }
  
    .pc-only {
      display: none!important;
    }
  
    .step {
      height: 376px;
    }

    .btn--join {
      width: 224px;
    }
    
    .prizes {
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
  
  }