:root{
--primary_progress_color: #00695b;
--secondary_progress_color: #e2e8e5;
}

/*  プライバシーポリシー  */
.form__privacy-box {
  width: 100%;             /* 横幅いっぱいに広げる */
  height: 200px;           /* スライドさせる高さ（ここを固定するのが重要） */
  box-sizing: border-box;
  overflow-y: scroll;      /* 縦方向にスライド（スクロール）を許可 */
  border: 2px solid #ccc;  /* 枠線 */
  padding: 15px;           /* 中の余白 */
  background-color: #fcfcfc; /* 背景色 */
  font-size: 0.85rem;      /* 文字を少し小さくして読みやすく */
  line-height: 1.6;        /* 行間 */
  margin-bottom: 15px;     /* 下の要素との間隔 */
}

/* スクロールバーのデザイン（任意） */
.form__privacy-box::-webkit-scrollbar {
  width: 8px;
}
.form__privacy-box::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

/* チェックボックス部分 */
.form__consent {
  display: block;
  font-size: 1rem;
  cursor: pointer;
}

.consent__wrapper{
  margin: 0 auto;
}

.consent__label {
  display: flex;
  align-items: center;
  column-gap: 4px;
  width: fit-content;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.consent__label:not(:last-of-type) {
  margin-bottom: 16px;
}

.checkbox {
  appearance: none;
  position: relative;
  width: 25px;
  height: 25px;
  border: 2px solid var(--primary_progress_color);
  border-radius: 2px;
  cursor: pointer;
}

.checkbox:checked {
  background-color: var(--primary_progress_color);
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 9px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.page__title{
  margin: 80px 0;
}

@media screen and (max-width: 980px) {
    .page__title {
        margin: 50px 0;
    }
}

.success__text{
  text-align: left;
}

.success__text p{
  display: inline-block;
}

.success__text p:nth-child(2){
  padding-top: 20px;
}

.link__pagetop{
  text-align: center;
  margin-top: 140px;
}

@media screen and (max-width: 767.98px) {
  .link__pagetop{
    margin-top: 80px;
  }
}

.button__show-home a{
  padding: 15px 50px;
  font-size: 18px;
  font-weight: 500;
  color: #3f2021;
  border-radius: 50px;
  border: 1px solid #3f2021;
}

@media screen and (min-width: 767.98px) {
  .button__show-home a{
    font-size: 16px;
  }
}

.button__show-home a:hover{
  opacity: 0.5;
  text-decoration: none;
}

/* --- form --- */
#application_form{
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.questionnaire_roomnumber{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

@media screen and (max-width: 767.98px) {
  .questionnaire_roomnumber{
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
}

.questionnaire_fullname,
.questionnaire_furigana,
.questionnaire_tel{
  width: 50%;
}

@media screen and (max-width: 767.98px) {
  .questionnaire_fullname,
  .questionnaire_furigana,
  .questionnaire_tel{
    width: 100%;
  }
}

.questionnaire_complaints{
  width: 100%;
}

.questionnaire_buildingnumber_field,
.questionnaire_roomnumber_field{
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0 8px;
}

@media screen and (max-width: 767.98px) {
  .questionnaire_roomnumber{
    width: 70%;
  }
}

.form_field{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.textInput_wraaper,
.textArea_wraaper{
  width: 100%;
  position: relative;
}

.textinput_unit{
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  white-space: nowrap;
}

.form_label{
  display: flex;
  font-weight: 500;
  margin-bottom: 10px;
}

.required{
  padding: 0px 5px;
  margin-left: 10px;
  color: #fff;
  background-color: tomato;
  border-radius: 4px;
}

.textInput_input{
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 18px;
  height: 48px;
  padding: 4px 40px 4px 8px;
  border-width: 1px;
  border-radius: 4px;
}

.textArea_input{
  resize: none;
  width: 100%;
  height: 300px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 18px;
  padding: 8px;
  border-radius: 4px;
}

.textInput_input::placeholder{
  color: lightgrey;
  font-weight: 500;
}

/* focus in*/
.textInpute_focus{
  color: #000000;
  border:solid 1px currentColor;
  background-color: #fff;
}

/* error */
.textInput_error{
  color: var(--content_attention);
  border:solid 1px var(--content_attention_border);
  background-color: var(--content_attention_bg);
}

.textinput_icon{
  display: none;
  color: var(--content_attention);
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.form_errorText{
  width: 100%;
  color: var(--content_attention);
}

/* --- ボタン --- */
.form__actions{
  display: flex;
  justify-content: center;
  gap: 0 40px;
}

@media screen and (max-width: 767.98px) {
  .form__actions{
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px 0;
  }
}

.btn{
  user-select: none;
  display: inline-block;
  width: 300px;
  min-width: 150px;
  height: 50px;
  padding: 10px 5px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight:bolder;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  margin-top: 0;
  border: 1px solid rgba(99,108,125,0.3);
}

.btn--submit{
  color: #fff;
  background-color: var(--button_primary);
}

.btn--cancel{
  background-color: #fff;
}

.btn--submit:hover{
  opacity: 0.7;
  font-size: 16px;
  font-weight:bolder;
  color: #fff;
  text-decoration: none;
}

.btn--cancel:hover{
  opacity: 0.7;
  font-size: 16px;
  font-weight:bolder;
  color: rgba(99,108,125,0.3);
  text-decoration: none;
}


/* --- confirm(確認画面) --- */
.confirm__table{
  display: table;
  margin-bottom: 64px;
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.confirm__table th,
.confirm__table td{
  display: table-cell;
  padding: 20px 20px;
  height: auto;
}

.confirm__table th{
  width: 30%;
  white-space: nowrap;
  background-color: #a5ddc6;
  border-left: 1px solid  #ccc;
  border-bottom: 1px solid #f9f7f3;
}

.confirm__table td{
  word-break: break-all;
  background-color: #fff;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.confirm__table tr:first-child th{
  border-top: 1px solid #ccc;
  border-top-left-radius: 10px;
}

.confirm__table tr:first-child td{
  border-top: 1px solid #ccc;
  border-top-right-radius: 10px;
}

.confirm__table tr:last-child th{
  border-bottom: 1px solid #ccc;
  border-bottom-left-radius: 10px;
}

.confirm__table tr:last-child td{
  border-bottom-right-radius: 10px;
}

.confirm__item{
  display: flex;  
}

@media screen and (max-width: 767.98px) {
  .confirm__table th,
  .confirm__table td{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .confirm__table tr:first-child th{
    border-top: 1px solid #ccc;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .confirm__table tr:first-child td{
    border-top: 0;
    border-top-right-radius: 0;
  }

  .confirm__table tr:last-child th{
    border-bottom: 0;
    border-bottom-left-radius: 0;
  }

  .confirm__table tr:last-child td{
    border-bottom: 1px solid #ccc;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }

}

/*  プログレスバー  */
.progressbar {
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
}

.progressbar .item {
    position: relative;
    width: 33%;
    text-align: center;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    line-height: 1.5;
    background: var(--secondary_progress_color);
    color: #999999;
}
.progressbar .item:not(:last-child)::before,
.progressbar .item:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 100%;
    content: '';
    border: 37px solid transparent;
    border-left: 20px solid var(--secondary_progress_color);
    margin: auto;
}
.progressbar .item:not(:last-child)::before {
    margin-left: 1px;
    border-left-color: #FFF;
}

@media screen and (max-width: 767px) {
.progressbar .item {
    font-size: 11px;
    line-height: 1.4;
    padding: 10px 0;
}
.progressbar .item:not(:last-child)::before,
.progressbar .item:not(:last-child)::after {
    border-width: 25px;
    border-left-width: 12px;
}
}

/* active */
.progressbar .item.active {
    z-index: 1;
    background: var(--primary_progress_color);
    color: #FFF;
}
.progressbar .item.active:not(:last-child)::after {
    border-left-color: var(--primary_progress_color);
}
.progressbar .item.active:not(:last-child)::before {
    border-left: none;
}