html {
  font-size: 62.5%;
}

@media (max-width: 389.98px) {
  :root {
    font-size: calc(100vw / 39);
  }
}

:root {
  --panel-gutter: max(min(12.8rem, 10vw), calc((100% - 102.4rem) / 2));
}

@media (max-width: 767.98px) {
  :root {
    --panel-gutter: min(2rem, 5.1282051282vw);
  }
}

html,
body {
  background: #000 !important;
  color: #242424;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif !important;
}

body {
  font-size: 1.6rem;
}

.fm-enquete,
.fm-enquete input,
.fm-enquete select,
.fm-enquete textarea,
.fm-question,
.fm-question h2,
.btn_next,
.btn_save,
.btn_confirm,
.btn_rewind,
.btn_login {
  box-sizing: border-box;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif !important;
}

.fm-enqueteout {
  width: 100%;

  margin-block: 0;

  table-layout: fixed;
}

.fm-enquete,
.fm-enquete > tbody {
  display: block;
  width: 100%;
}

.fm-enquete {
  box-sizing: border-box;
  padding-inline: var(--panel-gutter);
  background: #f7f6f6;

  box-shadow:
    0 -0.1rem 0 0 #f7f6f6,
    0 0.1rem 0 0 #f7f6f6;
}

ul.fm-errormessage {
  box-sizing: border-box;

  box-shadow:
    0 -0.1rem 0 0 #f7f6f6,
    0 0.1rem 0 0 #f7f6f6;
  margin: 0;
  padding: 1.6rem var(--panel-gutter);
  background: #f7f6f6;
}

.fm-enquete:not(:has(.fm-question)) {
  padding-block: 3.2rem min(21rem, 16.40625vw);
  border-radius: 0 0 min(3.2rem, 2.5vw) min(3.2rem, 2.5vw);
}

.fm-enquete > tbody > tr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-enquete > tbody > tr[class*='fm-input-']:not(.fm-input-view) {
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 3.2rem;
  background: #f8f8f8;
  border-bottom: 0.1rem solid #e5e5e5;
}

.fm-enqueteout:has(.consent-note) .fm-enquete > tbody > tr.fm-input-radio {
  padding-inline: var(--panel-gutter);
}

.fm-enqueteout:has(.consent-note) .fm-enquete > tbody > tr.fm-input-radio .fm-question {
  line-height: 1.9;
}

.fm-input-radio .fm-answer .order-table > tbody {
  display: flex;
  flex-wrap: wrap;

  gap: 1.8rem 0;
}

.fm-input-radio .fm-answer .order-table > tbody > tr > td {
  padding: 0 2rem 0 0;
}

.fm-input-radio .fm-answer .order-table > tbody > tr,
.fm-input-radio .fm-answer .order-table > tbody > tr > td {
  width: auto;
  min-width: max-content;
}

.fm-enqueteout:has(.consent-note) .fm-input-radio .fm-answer .order-table > tbody > tr,
.fm-enqueteout:has(.consent-note) .fm-input-radio .fm-answer .order-table > tbody > tr > td {
  flex: 1 0 0;
}

.fm-input-radio label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.4rem;
}

.fm-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex: 0 0 32rem;
  padding: 1.6rem 4.8rem 1.6rem 0;
  color: #000 !important;
  font-size: 2rem !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

.fm-question h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.fm-enqueteout:not(:has(.consent-note)) .fm-question h2 [lang='en'] {
  font-size: 1.4rem;
}

.br {
  display: inline-block;
  white-space: nowrap;
}

.inline-block {
  display: inline-block;
}

.only-sp {
  display: none;
}

.fm-required-label {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 7.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.2rem;
  background: #174f92;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 1.4rem !important;
  font-weight: 400;

  line-height: 1;
  text-align: center;
  white-space: normal;
}

.fm-answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  padding: 0;

  font-size: 2rem;

  overflow-wrap: anywhere;
}

.fm-answer input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='submit'], [type='button'], [type='image'], [type='file']),
.fm-answer textarea {
  width: 100%;
  min-height: 5.4rem;
  padding: 1rem 2.4rem;
  border: 0.1rem solid #929292 !important;
  border-radius: 0.4rem !important;
  background: #eee !important;
  color: #242424;
  font-size: 1.6rem;
  line-height: 1.5;
}

.fm-answer input::placeholder,
.fm-answer textarea::placeholder {
  color: #565656;
}

.fm-answer .select_out {
  width: 100%;
}

.fm-answer .fm-error {
  display: flex;
  flex-direction: column;

  gap: 1.3rem;
  width: 100%;
}

.fm-answer label .fm-error {
  display: inline;
  gap: 0;
  width: auto;
}

.fm-answer .fm-error input,
.fm-answer .fm-error select {
  border: 0.2rem solid #ce0000 !important;
  background: #f7f6f6 !important;
}

.fm-answer input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='submit'], [type='button'], [type='image'], [type='file']):focus,
.fm-answer textarea:focus {
  border-color: #174f92 !important;
  outline: 0.2rem solid rgb(23 79 146 / 35%);
  outline-offset: 0.1rem;
  background: #fff !important;
}

.fm-answer select:focus {
  border-color: #174f92 !important;
  outline: 0.2rem solid rgb(23 79 146 / 35%);
  outline-offset: 0.1rem;
  background-color: #fff !important;
}

.fm-answer input.wcf-filled,
.fm-answer textarea.wcf-filled {
  background: #fff !important;
}

.fm-answer select.wcf-filled {
  background-color: #fff !important;
}

.fm-input-name .fm-answer {
  flex-direction: row;
  gap: 1.6rem;
}

.fm-name-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.fm-name-unit input {
  flex: 1;
  width: auto;
  min-width: 0;
}

.fm-input-tel .fm-answer {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

.fm-input-tel .fm-answer input {
  flex: 1;
  width: auto !important;
  max-width: none;
  min-width: 0;
  text-align: center;
}

.fm-answer select {
  width: 100% !important;
  min-height: 5.4rem;
  padding: 1rem 4.8rem 1rem 2.4rem !important;
  border: 0.1rem solid #929292 !important;
  border-radius: 0.4rem !important;
  background-color: #eee !important;
  color: #242424 !important;
  font-size: 1.6rem !important;
  line-height: 1.5;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path d='M1 1l5 5 5-5' fill='none' stroke='%23242424' stroke-width='1.5'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 2.4rem center !important;
}

.fm-input-checkbox .fm-answer {
  align-items: flex-start;
  gap: 1.8rem;
}

.fm-input-checkbox .fm-answer p {
  margin: 0;
}

.fm-input-checkbox .fm-answer p:empty {
  display: none;
}

.order-table,
.order-table > tbody,
.order-table > tbody > tr,
.order-table > tbody > tr > td {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.fm-answer .order-table > tbody > tr > td {
  text-indent: 0;
}

.order-table label {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;

  margin-right: 0;
  cursor: pointer;

  font-size: 1.8rem;
}

.order-table label span {
  min-width: 0;
  text-indent: 0 !important;
  overflow-wrap: anywhere;
}

.order-table input[type='checkbox'] {
  flex-shrink: 0;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  border: 0.2rem solid #000;
  border-radius: 0.2rem;
  background: #f7f6f6;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.order-table input[type='checkbox']:checked {
  border-color: #174f92;
  background: #174f92;
}

.order-table input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.7rem;
  width: 0.6rem;
  height: 1.2rem;
  border: solid #fff;
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
}

.order-table input[type='checkbox']:focus-visible {
  outline: 0.2rem solid #174f92;
  outline-offset: 0.2rem;
}

.fm-answer a {
  color: #000 !important;
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.1rem;
  transition: background-size 0.3s ease;
}

@media (hover: hover) {
  .fm-answer a:hover {
    background-position: right bottom;
    background-size: 0 0.1rem;
  }
}

.fm-errormessage:not(ul) {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.2rem 1.4rem;
  border-radius: 0.4rem;
  background-color: #ce0000;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.9;
}

.fm-errormessage:not(ul)::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  margin-bottom: -0.3rem;
  transform: translateX(-50%);
  background: #ce0000;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.fm-verticalanswer {
  width: 100%;
  padding: 1.2rem 0;
  text-align: center;
}

.fm-verticalanswer:has(.consent-note) {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding-top: 4.8rem;
}

.fm-verticalanswer h2 {
  margin: 0 0 2.4rem;
  color: #16263a;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: normal;
  text-align: center;
}

.fm-verticalanswer p {
  margin: 0;
  color: #242424;
  font-size: 1.6rem;
  line-height: 1.9;
  text-align: center;

  overflow-wrap: anywhere;
}

.fm-verticalanswer a {

  display: block;
  box-sizing: border-box;
  width: 30rem;
  max-width: 100%;
  margin-top: 3.2rem;
  margin-inline: auto;

  min-height: 4.6rem;
  padding: 1.3rem 1.6rem;
  overflow-wrap: anywhere;
  border: 0.2rem solid #171717;
  border-radius: 12.8rem;
  background: transparent;
  color: #242424;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (hover: hover) {
  .fm-verticalanswer a:hover {
    background: #171717;
    color: #fff;
  }
}

.fm-verticalanswer .consent-note {
  max-width: 76.8rem;
  margin-inline: auto;
  color: #242424;
  font-size: 1.6rem;
  line-height: normal;
  text-align: left;

  overflow-wrap: anywhere;
}

.fm-verticalanswer .consent-note h2 {
  text-align: center;
}

.fm-verticalanswer .consent-note p {
  margin: 0;
  text-align: inherit;
}

.fm-verticalanswer .consent-note a {
  display: inline;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.4rem 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #000;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left calc(100% - 0.4rem);
  background-size: 100% 0.1rem;
  transition: background-size 0.3s ease;
}

@media (hover: hover) {
  .fm-verticalanswer .consent-note a:hover {
    background-position: right calc(100% - 0.4rem);
    background-size: 0 0.1rem;
  }
}

.fm-enquete-commands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  box-sizing: border-box;
  padding: 4rem var(--panel-gutter) min(21rem, 16.40625vw);
  border-radius: 0 0 min(3.2rem, 2.5vw) min(3.2rem, 2.5vw);
  background: #f7f6f6;

  box-shadow: 0 -0.1rem 0 0 #f7f6f6;
}

.fm-enquete-commands br {
  display: none;
}

.btn_next,
.btn_save,
.btn_confirm,
.btn_login {
  min-width: 42rem !important;
  max-width: 100%;
  padding-inline: 3.4rem !important;

  white-space: normal;
  border: 0.2rem solid transparent !important;
  border-radius: 12.8rem !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1rem;

  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.btn_next,
.btn_login {
  padding-block: 2.233rem !important;
}

.btn_save,
.btn_confirm {
  padding-block: 2.133rem !important;
}

.btn_next:disabled,
.btn_save:disabled,
.btn_confirm:disabled,
.fm-input-disabled {
  background: #bbb !important;
  color: #505050 !important;
  cursor: not-allowed;
}

.fm-answer input:disabled,
.fm-answer select:disabled,
.fm-answer textarea:disabled {
  border-color: #bbb !important;
  background: #ddd !important;
  color: #767676;
  cursor: not-allowed;
}

.btn_rewind {
  box-sizing: border-box !important;
  width: 22.7rem !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 4.6rem !important;
  padding: 0 1.6rem !important;
  border: 0.2rem solid #171717 !important;
  border-radius: 12.8rem !important;
  background: transparent !important;
  color: #242424 !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.fm-enqueteout:has(.consent-note) .btn_next {
  padding-block: 1.83rem !important;
  font-size: 1.8rem !important;
  letter-spacing: 0.09rem;
  line-height: 1;
}

@media (hover: hover) {
  .btn_next:hover,
  .btn_save:hover,
  .btn_confirm:hover,
  .btn_login:hover {
    background: #fff !important;
    color: #171717 !important;
    border-color: #171717 !important;
  }

  .btn_rewind:hover {
    background: #171717 !important;
    color: #fff !important;
  }
}

.fm-verticalanswer .form-note {
  color: #242424;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: left;

  overflow-wrap: anywhere;
}

.fm-verticalanswer .form-note [lang='en'] {
  font-size: 1.3rem;
}

.fm-enquete > tbody > tr[class*='fm-input-']:not(.fm-input-view):has(+ tr .form-note--attached) {
  padding-bottom: 1.2rem;
  border-bottom: 0;
}

.fm-verticalanswer:has(.form-note--attached) {

  padding: 0 3.2rem 4rem;
}

.fm-enquete > tbody > tr.fm-input-view:has(.form-note--attached) {
  border-bottom: 0.1rem solid #e5e5e5;
}

.fm-verticalanswer:has(.form-note--standalone) {
  padding: 10.4rem 3.2rem 0;
}

@media (max-width: 767.98px) {
  .fm-enquete,
  ul.fm-errormessage {
    padding-inline: var(--panel-gutter);
  }

  .fm-enqueteout:has(.consent-note) .fm-enquete > tbody > tr.fm-input-radio {
    padding-inline: 0;
  }

  .only-pc {
    display: none;
  }

  .only-sp {
    display: revert;
  }

  .fm-input-radio .fm-answer .order-table > tbody {
    flex-direction: column;
    gap: 0.8rem;
  }

  .fm-enqueteout:has(.consent-note) .fm-enquete > tbody > tr.fm-input-radio .fm-question {
    line-height: 1.2;
  }

  .fm-enquete-commands {
    padding: 3.2rem var(--panel-gutter) min(7.2rem, 18.4615384615vw);
    border-radius: 0 0 min(3.2rem, 8.2051282051vw) min(3.2rem, 8.2051282051vw);
  }

  .fm-enquete > tbody > tr[class*='fm-input-']:not(.fm-input-view) {
    padding: 2.8rem 0;
  }

  .fm-question {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    flex: 0 0 38%;
    min-width: 0;

    max-width: 100%;
    padding: 0 1.4rem 0 0;
    font-size: 1.4rem !important;
    line-height: 1.3;
    word-break: break-word;
  }

  .fm-required-label {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 1.2rem !important;
    white-space: nowrap;
  }

  .fm-answer input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='submit'], [type='button'], [type='image'], [type='file']) {
    height: 4.2rem;
    min-height: 0;
    padding: 1rem 2.4rem;
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .fm-answer textarea {
    min-height: 4.2rem;
    padding: 1rem 2.4rem;
    font-size: 1.2rem;
  }

  .fm-enqueteout:not(:has(.consent-note)) .order-table label {
    font-size: 1.4rem;
  }

  .fm-answer {
    font-size: 1.4rem;
  }

  .fm-verticalanswer p {
    text-align: left;
  }

  .fm-answer select {
    height: 4.2rem;
    min-height: 0;
    padding: 1rem 3.4rem 1rem 1.4rem !important;
    background-position: right 1.4rem center !important;
    font-size: 1.2rem !important;
  }

  .fm-input-name .fm-answer {
    flex-direction: column;
    gap: 0.8rem;
  }

  .fm-name-unit {
    flex: none;
    width: 100%;
  }

  .fm-input-tel .fm-answer input {
    padding: 1rem 0.4rem;
  }

  .fm-input-checkbox .fm-answer p {
    align-self: stretch;
    text-align: left;
  }

  .fm-input-checkbox .fm-answer p a {
    display: block;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }

  .fm-input-checkbox .fm-answer .order-table > tbody > tr > td {
    display: flex;
    justify-content: center;
  }

  .fm-errormessage:not(ul) {
    padding: 0.6rem 1.4rem;
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .fm-answer .fm-error input,
  .fm-answer .fm-error select {
    background: #fff !important;
  }

  .btn_next,
  .btn_save,
  .btn_confirm,
  .btn_login {
    min-width: 28rem !important;
    width: auto;
    max-width: 100%;

    padding-block: 1.933rem !important;

    padding-inline: 1.2rem !important;
    font-size: 1.6rem !important;
    letter-spacing: 0.08rem;
  }

  .fm-verticalanswer a {
    max-width: 100%;
  }

  .fm-verticalanswer .form-note {
    font-size: 1.3rem;
  }

  .fm-verticalanswer .form-note [lang='en'] {
    font-size: 1.2rem;
  }

  .fm-verticalanswer:has(.form-note--attached) {
    padding: 0 2rem 2.8rem;
  }

  .fm-enquete > tbody > tr[class*='fm-input-']:not(.fm-input-view):has(+ tr .form-note--attached) {
    padding-bottom: 1rem;
  }

  .fm-verticalanswer:has(.form-note--standalone) {
    padding: 7.2rem 2rem 0;
  }
}
