/* Font Face */
@font-face {
  font-family: 'corporate-logo';
  src: url('./fonts/Corporate-Logo-Medium-ver3.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'corporate-logo';
  src: url('./fonts/Corporate-Logo-Bold-ver3.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed JP';
  src: url('./fonts/LINESeedJP_OTF_Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed JP';
  src: url('./fonts/LINESeedJP_OTF_Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: #FFFFFF;
}

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background-color: #DD049A;
  color: #333;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Countdown Section */
.countdown {
  background-color: #000000;
  padding: 24px 16px;
  text-align: center;
}

.countdown__title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.countdown__timer {
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__digits {
  display: flex;
  gap: 4px;
}

.countdown__digit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(30px, 8vw, 37px);
  height: clamp(41px, 11vw, 52px);
  background-color: #333333;
  border: 2px solid #FFF;
  border-radius: 7px;
  color: #FFFFFF;
  font-size: clamp(22px, 6vw, 29px);
  font-weight: 700;
}

.countdown__separator {
  display: flex;
  align-items: center;
  height: clamp(41px, 11vw, 52px);
  color: #FFFFFF;
  font-size: clamp(22px, 6vw, 29px);
  font-weight: 700;
  margin: 0 3px;
}

.countdown__label {
  color: #FFFFFF;
  font-size: 12px;
  margin-top: 8px;
}

/* Campaign Bar */
.campaign-bar {
  text-align: center;
  padding: 18px 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'corporate-logo', sans-serif;
}

.campaign-bar--top {
  background-color: #DD049A;
  color: #FFFFFF;
}

.campaign-bar--bottom {
  background-color: #FFFFFF;
  color: #DD049A;
}

/* Key Visual Section */
.kv {
  background-image: url('images/KV_01.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #DD049A;
  aspect-ratio: 1125 / 2022;
  position: relative;
}

.kv__inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3%;
}

.kv__period {
  position: absolute;
  top: 236px;
  left: 0;
  right: 0;
  text-align: center;
  height: 44px;
}

.kv__period-date {
  display: inline-block;
  width: 78%;
  max-width: 500px;
  background-color: #FFF65D;
  color: #DD049A;
  font-size: clamp(20px, calc(1.5px + 5.26vw), 24px);
  font-weight: 700;
  padding: 8px 32px;
  border-radius: 30px;
}

.kv__cta {
  position: absolute;
  bottom: 24%;
  left: 0;
  right: 0;
  padding: 0 24px;
}

.kv__notes {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 16px;
  color: #FFFFFF;
}

.kv__notes-main {
  display: flex;
  justify-content: center;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 500;
  margin-bottom: 12px;
}

.kv__notes-main-left,
.kv__notes-main-right {
  width: 50%;
  text-align: center;
  font-weight: 700;
  font-family: 'corporate-logo', sans-serif;
}

.kv__notes-main-left {
  text-align: right;
  padding-right: 10px;
  font-size: 21px;
}

.kv__notes-main-right {
  text-align: left;
  padding-left: 10px;
}

.kv__notes-sub {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 700;
  font-family: 'LINE Seed JP', sans-serif;
}

/* Key Visual Section 2 (img版・比較用) */
.kv2 {
  background-color: #DD049A;
}

.kv2__image {
  width: 100%;
}

.kv2__period {
  text-align: center;
  padding: 0 16px;
  margin-top: -20px;
  position: relative;
}

.kv2__period-date {
  display: inline-block;
  background-color: #FFE500;
  color: #DD049A;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 25px;
}

.kv2__cta {
  padding: 20px 32px;
}

.kv2__notes {
  text-align: center;
  padding: 0 16px 20px;
  color: #FFFFFF;
}

.kv2__notes-main {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.kv2__notes-sub {
  font-size: 11px;
  line-height: 1.8;
}

/* CTA Button */
.cta-button {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button__image {
  width: 100%;
}

/* Step Sections */
.step {
  padding: 30px 16px 0px;
}

.step__container {
  position: relative;
}

.step__frame {
  position: relative;
  background: #FFFFFF;
  border: 3px solid #DD049A;
  border-radius: 40px;
  margin-top: 20px;
}

.step__frame::before {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #DD049A;
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  padding: 2px 35px;
  border-radius: 25px;
  border: 3px solid #FFFFFF;
}

.step__frame--step1::before {
  content: 'Step1';
}

.step__frame--step2::before {
  content: 'Step2';
}

.step.step2 {
  background-image: url('images/step2_kira.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.step__content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__period {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  background: #DD049A;
  padding: 8px 16px;
  margin: 18px 0 18px;
}

.step__title-image {
  width: 100%;
  margin-bottom: 8px;
}

.step__deadline {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #DD049A;
  font-weight: 700;
  letter-spacing: 1px;
}

.step__icon {
  width: 90%;
  margin: 22px auto 22px;
}

.step__cta {
  padding: 0 16px;
}

.step__notes {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 1em;
  text-align: center;
}

.step2__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 30px 0 0px;
}

.step2__button {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
}

/* Point Section */
.point {
  padding: 20px 16px;
}

.point__image-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.point__image {
  width: 100%;
}

.point__grant-info {
  position: absolute;
  bottom: 28%;
  left: 50px;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  font-family: 'corporate-logo', sans-serif;
}

.point__cta {
  padding: 0 16px;
}

/* Notes Section */
.notes {
  padding: 16px;
}

.notes__content {
  text-align: center;
  color: #FFFFFF;
  font-size: 10px;
  line-height: 1.8;
  font-family: 'LINE Seed JP', sans-serif;
  font-weight: 700;
}

/* More Section */
.more {
  padding: 20px 16px 30px;
}

.more__image {
  width: 100%;
  margin-bottom: 20px;
}

.more__cta {
  padding: 0 16px;
}

/* Terms Section */
.terms {
  background-color: #F5F5F5;
  padding: 30px 16px 120px;
}

.terms__title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.terms__scroll {
  height: 200px;
  overflow-y: scroll;
  background-color: #fffcfc;
  border: 1px solid #DDD;
  border-radius: 8px;
  padding: 16px;
}

.terms__content {
  font-size: 12px;
  line-height: 1.8;
  color: #555;
}

.terms__content p {
  margin-bottom: 12px;
}

.terms__content strong {
  color: #333;
}

.terms__content ul {
  margin-bottom: 12px;
  padding-left: 20px;
  list-style: disc;
}

.terms__content li {
  margin-bottom: 4px;
}

/* Scrollbar styling */
.terms__scroll::-webkit-scrollbar {
  width: 6px;
}

.terms__scroll::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 3px;
}

.terms__scroll::-webkit-scrollbar-thumb {
  background: #CCC;
  border-radius: 3px;
}

.terms__scroll::-webkit-scrollbar-thumb:hover {
  background: #AAA;
}

/* Fixed CTA Button */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  z-index: 100;
}

.fixed-cta .cta-button {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
}

.fixed-cta .cta-button::after {
  content: "";
  height: 100%;
  width: 30px;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #fff;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflection 4s ease-in-out infinite;
}

@keyframes reflection {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* Responsive */
@media (min-width: 640px) {
  body {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  .kv__period {
    top: 360px;
  }

  /* PC時はfont-size指定なし */
  .countdown__title,
  .countdown__digit,
  .countdown__separator,
  .countdown__label,
  .campaign-bar,
  .kv__notes-main,
  .kv__notes-sub,
  .step__frame::before,
  .step__period,
  .step__deadline,
  .step2__title,
  .point__grant-info,
  .notes__content,
  .terms__title,
  .terms__content {
    font-size: unset;
  }
}

@media (max-width: 374px) {
  .step__period {
    font-size: 12px;
  }

  .step__notes {
    font-size: 9px;
  }
}
