* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  background-color: #333;
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: #fff;
  font-size: 1.6rem;
}

img {
  display: block;
  max-width: 100%;
}

.ly_root {
  margin: 0 auto;
  min-width: 360px;
  max-width: 430px;
  text-align: center;
}

.has_bgImage {
  position: relative;
}
.has_bgImage .el_bg {
  position: relative;
}
.has_bgImage .el_content {
  position: absolute;
}

.an_fadeIn {
  animation-name: fadeIn;
  animation-duration: 1500ms;
  animation-timing-function: ease;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =============================================================
# front page
============================================================= */
.el_logo {
  top: 50%;
}

.ly_motifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  top: 16%;
  padding-inline: 4%;
}

.bl_motif {
  animation-name: pulse;
  animation-duration: 1000ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 500;
  animation-direction: alternate-reverse;
}
@keyframes pulse {
  to {
    transform: scale(1.05);
  }
}
.bl_motif:nth-child(2n) {
  animation-direction: alternate;
}

.ly_front_scrollBtn {
  top: 0;
}
.ly_front_scrollBtn a {
  display: block;
  margin: 0 auto;
  width: 88%;
}

.ly_front_menuBtn {
  top: 40%;
}
.ly_front_menuBtn a {
  display: block;
  margin: 0 auto;
  width: 72%;
}

.bl_copyright {
  padding-block: 2rem;
  background-color: #baa184;
}
.bl_copyright small {
  font-size: 1.3rem;
}

/* =============================================================
# result page
============================================================= */
.ly_resultPage {
  display: none;
  position: relative;
  text-align: center;
}

.ly_result_forms {
  top: 0;
}

.ly_result_question {
  margin-top: 24px;
  margin-bottom: 12px;
  padding-inline: 4%;
}

.el_result_question {
  font-size: 1.8rem;
  font-weight: 700;
}

.ly_result_selectBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-inline: 4%;
}
.ly_result_selectBox select {
  display: inline-block;
  padding: 8px;
  width: 100%;
  border: 2px solid #333;
  border-radius: 8px;
  text-align: center;
  font-size: 1.8rem;
}
.ly_result_selectBox label {
  font-size: 1.8rem;
  font-weight: 700;
}

.ly_result_radioBtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-inline: 4%;
}
.ly_result_radioBtn input[type=radio] {
  display: none;
}
.ly_result_radioBtn label {
  display: inline-block;
  padding: 8px;
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #ddd;
  font-size: 1.8rem;
  font-weight: 700;
  color: #666;
}
.ly_result_radioBtn input[type=radio]#m:checked ~ label[for=m] {
  border-color: hsl(240, 100%, 40%);
  background-color: hsl(240, 100%, 30%);
  color: #fff;
}
.ly_result_radioBtn input[type=radio]#f:checked ~ label[for=f] {
  border-color: hsl(0, 100%, 40%);
  background-color: hsl(0, 100%, 30%);
  color: #fff;
}

.ly_result_textField {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 4%;
}
.ly_result_textField input[type=text] {
  display: inline-block;
  padding: 8px;
  width: 100%;
  border: 2px solid #333;
  border-radius: 8px;
  text-align: center;
  font-size: 1.8rem;
}

.ly_result_nextBtn {
  margin-top: 40px;
}
.ly_result_nextBtn input[type=image] {
  display: inline-block;
  max-width: 100%;
  width: 80%;
}

/* =============================================================
# confirmation page
============================================================= */
.ly_confPage {
  position: relative;
  text-align: center;
}

.ly_conf_table table {
  padding-block: 24px;
  width: 100%;
  border: 8px solid #0bd;
}
.ly_conf_table th {
  padding: 8px;
  text-align: right;
  color: navy;
}
.ly_conf_table td {
  padding: 8px;
  color: #333;
}

.ly_conf_ctaBtn {
  padding-block: 24px;
  background-color: #d5f3f7;
}
.ly_conf_ctaBtn a {
  display: inline-block;
  width: 64%;
}