body {
  font-family: sans-serif;
  text-align: center;
  color: #363533;
  line-height: 1.4;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
section:nth-of-type(1) {
  background-image: url("../img/q-1-bg.jpg");
  padding: 15% 0 10%;
  margin-top: -15%;
}
section:nth-of-type(2) {
  background-image: url("../img/q-2-bg.jpg");
  padding: 8% 0;
}
section:nth-of-type(3) {
  background-image: url("../img/q-3-bg.jpg");
  padding: 8% 0;
}
section:nth-of-type(4) {
  background-image: url("../img/q-4-bg.jpg");
  padding: 8% 0;
}
section.offer {
  background-image: url("../img/offer-bg.jpg");
}

.box {
  background-color: #fff;
  width: 92%;
  margin: 0 auto;
  padding: 5% 3%;
  border-radius: 1rem;
}

.number {
  width: 20%;
  margin: 0 auto;
}

.question {
  margin: 1em 0;
}
.question .color {
  font-weight: 700;
}

section.day .box {
  border: 4px solid #1499ff;
}

section.day .question .color {
  color: #1499ff;
}

section.night .question .color {
  color: #242a82;
}

.note {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: normal;
}

ul.answer {
  margin: 1.5em 0 1em;
	list-style: none;  
  padding: 0;        
}
ul.answer li {
  margin-bottom: 0.3em;
}
ul.answer input {
  display: none;
}
ul.answer label {
  display: block;
  width: 100%;
  padding: 1.3rem 0;
  font-weight: 700;
  border-radius: 3rem;
  color: #fff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: inset 0 0 0 2px rgb(255, 255, 255);
          box-shadow: inset 0 0 0 2px rgb(255, 255, 255);
  border: 2px solid transparent;
}

section.day ul.answer label {
  background: #1499ff;
}

section.day ul.answer input:checked + label {
  background: #242a82;
}

section.night ul.answer label {
  background: #242a82;
}

section.night ul.answer input:checked + label {
  background: #8368d9;
}

section.q4 .image {
  width: 60%;
  margin: 0 auto;
}
section.q4 ul.answer label {
  font-size: 0.8em;
}

.detail {
  padding: 2rem 0;
  border-radius: 1.5em;
  margin-top: 2em;
}
.detail .title {
  font-weight: bold;
  color: #fff;
  margin-bottom: 1em;
  display: inline-block;
  border-radius: 1em;
  line-height: 1;
  color: #ffe400;
}
.detail .title .small {
  font-size: 0.9em;
}
.detail p {
  font-size: 0.9rem;
}
.detail .color {
  font-weight: bold;
}
.detail img:first-of-type {
  width: 60%;
  margin: 1em auto;
}
.detail img:nth-of-type(2) {
  width: 100%;
  margin: 1em auto;
}
.detail img:last-of-type {
  width: 100%;
  margin: 0 auto 0.5em;
}
.detail .note {
  margin-top: 2em;
}

section.day .detail {
  background: #fff6d5;
}
section.day .detail .title {
  background: #453325;
  padding: 0.5em 1em;
}
section.day .detail .color {
  color: #a77526;
}

section.night .detail {
  background: #f4efff;
}
section.night .detail .title {
  background: #8368d9;
  padding: 0.5em 0.6em 0.5em 0.8em;
}
section.night .detail .color {
  color: #8368d9;
}

.offer {
  color: #fff;
  font-weight: bold;
}
.offer p {
  margin: 1em 0;
}
.offer p .yellow {
  color: #ffe400;
}
.offer .thanks {
  background-image: url("../img/thanks-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 15% 0 5%;
}
.offer .thanks .text {
  font-size: 1.5em;
  font-family: "Noto Serif JP", serif;
}
.offer .cta {
  background-image: url("../img/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3% 0 12%;
}
.offer .cta p {
  text-shadow: 0 0 1em rgb(0, 103, 38);
}
.offer .cta a {
  position: relative;
  display: block;
  width: 84%;
  margin: 0.8em auto 0;
  overflow: hidden;
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-animation: cta-pulse 2.4s ease-in-out infinite;
          animation: cta-pulse 2.4s ease-in-out infinite;
}
.offer .cta a::after {
  content: "";
  position: absolute;
  top: -25%;
  left: -45%;
  width: 50%;
  height: 150%;
  z-index: 1;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 60%, transparent 100%);
  -webkit-transform: skewX(-18deg);
          transform: skewX(-18deg);
  pointer-events: none;
  -webkit-animation: cta-shimmer 5s ease-in-out infinite;
          animation: cta-shimmer 5s ease-in-out infinite;
}

@-webkit-keyframes cta-pulse {
  0%, 100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.04);
            transform: scale(1.04);
  }
}

@keyframes cta-pulse {
  0%, 100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.04);
            transform: scale(1.04);
  }
}
@-webkit-keyframes cta-shimmer {
  0%, 72% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 0;
  }
  76% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 1;
  }
  80% {
    -webkit-transform: translateX(280%) skewX(-18deg);
            transform: translateX(280%) skewX(-18deg);
    opacity: 1;
  }
  83% {
    -webkit-transform: translateX(280%) skewX(-18deg);
            transform: translateX(280%) skewX(-18deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 0;
  }
}
@keyframes cta-shimmer {
  0%, 72% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 0;
  }
  76% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 1;
  }
  80% {
    -webkit-transform: translateX(280%) skewX(-18deg);
            transform: translateX(280%) skewX(-18deg);
    opacity: 1;
  }
  83% {
    -webkit-transform: translateX(280%) skewX(-18deg);
            transform: translateX(280%) skewX(-18deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-20%) skewX(-18deg);
            transform: translateX(-20%) skewX(-18deg);
    opacity: 0;
  }
}
@media screen and (min-width: 769px) {
  html {
    font-size: 24px;
    background-color: #f0ede8; /* ページ両端の背景色（適宜変更してください） */
  }
  main {
    width: 600px;
    margin: 0 auto;
    background-color: #fff;
  }
}