html {
  font-size: 10px;
}
body {
  font-family: -apple-system,'Noto Sans JP', BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  letter-spacing: 0.1rem;
  font-weight: 500;
  font-size: 1.6rem;
}
.sp-br {
  display: none;
}
@media screen and (max-width: 700px) {
  html {
    font-size: 1.6vw;
  }
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
video {
  width: 100%;
}
input {
  cursor: pointer;
}
input::placeholder {
  color: #979797;
}
.accent-yellow {
  color: #ffe400;
}
.accent-red {
  color: #f00000;
}
.accent-blue {
  color: #01387C;
}

.contents_wrapper {
  max-width: 700px;
  width: 100%;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
}
.contents_inner {
  padding: 20px 2rem;
}
.question-block {
  border: solid 0.5rem #01387C;
  position: relative;
  overflow: hidden;
  margin-top: -3rem;
  z-index: 10;
  position: relative;
  background: #ffffff;
}
.questions-container {
  display: flex;
  max-width: 700px;
  width: 100%;
  transition: transform 0.5s ease-out, height 0.3s ease;
}
.question {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
}
.qa-wrap {
  padding: 0 3rem;
  margin-bottom: 6rem;
}
/* ====================*/
/* =====　ヘッダー　=====*/
/* ====================*/
header {
  max-width: 700px;
  min-width: 375px;
  margin: 0 auto;
  padding: 1.5rem 10px;
  background: #fff;
  box-sizing: border-box;
}

header h1 {
  width: 50%;
  max-width: 150px;
  margin: 0 auto;
}

/* question */
.contents_inner {
  width: 100%;
  max-width: 700px;
  padding: 20px 2rem;
}

.question_wrap {
  overflow-x: hidden;
  margin-top: -2rem;
  z-index: 10;
  position: relative;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 0px 0px 3px rgba(1,56,124,1);
}

#question-slider {
  overflow: hidden;
  transition: height 0.4s ease;
  position: relative;
}

.question-container {
  display: flex;
  width: 100%;
  max-width: 700px;
  transition: transform 0.4s ease;
}

.question {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
  background: url("../../images/bg.jpg");
  border-radius: 10px;
  box-sizing: border-box;
}

.flow-questions {
  padding: 1.5rem 10px;
  background: #01387C;
  box-sizing: border-box;
}

.flow-questions p {
  display: block;
  width: 30rem;
  margin: 0 auto;
  font-size: 1.8rem;
  font-weight: 700;
}

.question_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10rem 1rem 15rem;
  box-sizing: border-box;
}

.question_inner label {
  width: 90%;
  font-size: 2.75rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
}

.question-select {
  position: relative;
}

.question-select::before,
.question-select::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.question-select::before {
  right: 1px;
  display: inline-block;
  width: 2.8em;
  height: 4.4em;
  border-radius: 0 3px 3px 0;
  background-color: #01387C;
  content: "";
}

.question-select::after {
  position: absolute;
  top: 50%;
  right: 1.4em;
  transform: translate(50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  content: "";
}

.question-select select {
  display: flex;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 230px;
  height: 2.5em;
  padding: 0.4em 3.6em 0.4em 0.8em;
  font-size: 1.75em;
  color: #333333;
  text-align: left;
  border: 2px solid #01387C;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.question-select select:focus {
  outline: 1px solid #01387C;
}
.radio-group {
  display: flex;
  width: 100%;
}
.question-retired-txt {
  font-size: 2.6rem;
  font-weight: bold;
}

.last-question_box {
  padding: 3rem 3rem 6rem;
}

.last-question_ttl {
  margin-bottom: 3rem;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: -0.05rem;
  background: linear-gradient(transparent 60%, #ff6 60%);
  line-height: 1.2;
}

.last-question_txt {
  display: inline-block;
  padding: 0 1rem;
  margin-bottom: 0.8rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  background-color: #f00000;
}

.input-wrapper {
  text-align: left;
  padding: 0 1rem;
  margin-top: 1.5rem;
}

.input-wrapper label {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

input {
  cursor: pointer;
}

.last-question_box input {
  width: 100%;
  height: 7rem;
  padding: 0 2rem;
  font-size: 2rem;
  background: #fff;
  border: solid 0.2rem #01387C;
  border-radius: 1rem;
  box-sizing: border-box;
}

.last-question_box .tel-input-wrapper input {
  width: 29.5%;
}

.accent-red {
  color: #f00000;
}

.accent-yellow {
  color: #ffe400;
}

.accent-white {
  color: #fff;
}

/* チェックボックス */
.agree-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.last-question_box .checkbox-item {
  border: none;
  width: fit-content;
}

.last-question_box .checkbox-item input {
  display: none;
}

.last-question_box .submit-button {
  border: none;
  height: auto;
  object-fit: cover;
  width: 92%;
  margin-top: 1rem;
}

/* ====================*/
/* ==　チェックボックス　==*/
/* ====================*/
.checkbox-item {
  display: flex;
  align-items: center;
  padding: 1.4rem;
  border-radius: 0.5rem;
  border: solid 1px #000;
  font-weight: bold;
}

.checkbox-item::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background-image: url("../../images/checkbox_off.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-item.on::before {
  content: "";
  display: block;
  background-image: url("../../images/checkbox_on.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#last_question .checkbox-item input {
  display: none;
}

.checkbox-item img {
  width: 35px;
  height: 35px;
  margin: 0 10px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 2rem;
  height: 130px;
  font-size: 1.6rem;
  background-color:#EEF7FF;
  color: #000;
}

footer a {
  font-size: 1.7rem;
  color: #000;
  font-weight: 700;
}
@media screen and (max-width: 700px) {
  .sp-br {
    display: block;
  }
  .select-button-wrap {
    flex-direction: column;
  }
  .select-button-wrap label {
    width: 100%;
  }
  .branch-text {
    display: block;
    font-size: 2.7rem;
  }
  #last_question .tel-input-wrapper input {
    width: 30.1%;
  }
  #last_question input {
    padding-top: 0.4rem;
  }
  .marker-text {
    font-size: 2.1rem;
  }
  .contents_inner {
    padding: 20px 1rem;
  }
  .last-qa-wrap {
    padding: 0 0.5rem;
  }
}

input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio; /* for Safari */
  width: 16px;
  height: 16px;
  margin: 0 0.5em 0 0;
}

/* ========================================================================== */
/* 「未払い残業代診断」フォーム専用の追加スタイル                   */
/* ========================================================================== */

/* --- 回答ボタンのデザイン --- */
.Q_box .btn {
  background-color: #fedddd;
  color: #333;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #fecfcf;
  border-bottom: 4px solid #f2b3b3;
  transition: all 0.1s ease-out;
  padding: 1rem; /* パディングを調整 */
}
.Q_box .btn:hover {
  background-color: #fdd7d7;
  border-color: #fca9a9;
  transform: translateY(-2px);
  box-shadow: none;
}
.Q_box .btn:active, .Q_box .btn:focus {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: none;
}

/* --- 診断結果表示エリアのスタイル --- */
#result_area .last-question_ttl {
  color: #d93535;
  font-weight: 700;
  font-size: 1.9rem;
  background: none;
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
#result_area .last-question_ttl span {
  color: inherit;
  font-weight: inherit;
}
#result_area .last-question_txt {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: #f00000;
  padding: 0.5em 1rem;
  margin: 0.5rem 0;
  display: inline-block;
  border-radius: 5px;
}

/* --- 注釈のスタイル --- */
#result_area .annotations-list {
  font-size: 14px;
  color: #ff0000;
  text-align: left;
  list-style-type: none;
  padding: 1rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px dashed #ccc;
}
#result_area .annotations-list li {
  margin-bottom: 0.5em;
}

/* --- 最終フォームの必須ラベル --- */
#disp_final_form_container .form-group .must {
    font-size: 70%;
    font-weight: bold;
    color: #fff;
    background-color: #d93535;
    border-radius: 15px;
    padding: 1px 8px;
    margin-left: 5px;
}

.submit-annotation {
  font-size: 1.4rem;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

.answer-annotation {
  font-size: 1.4rem;
  color: #d93535;
  text-align: center;
  margin: 20px 0;
}

.mv_img{
  width: 100%;
  margin-bottom: 26px;
}

/* スマートフォン表示（幅700px以下）の場合の文字サイズ調整 */
@media screen and (max-width: 700px) {
  html {
    font-size: 2.2vw; /* 現在の1.6vwから数値を大きくしました */
  }

  /* 個別の要素で文字サイズが指定されている箇所を調整 */
  .flow-questions p {
    font-size: 3.2rem;
  }
  .question_inner label {
    font-size: 2.9rem;
  }
  .question-select select {
    font-size: 1.9rem;
  }
  .last-question_ttl {
    font-size: 3rem;
    line-height: 1.4;
  }
  .last-question_txt {
    padding: 10px;
    font-size: 1.7rem;
  }
  .input-wrapper label {
    font-size: 2.2rem;
  }
  .last-question_box input {
    font-size: 2.2rem;
  }
  footer a {
    font-size: 1.9rem;
  }

  .question-select::before {
    height: 2.9em;
  }
  #last_question .tel-input-wrapper input {
    width: 29.5%;
  }

  .last-question_box .submit-button {
    padding: 0;
    width: 100%;
  }

}
