html{
  font-size: 62.5%; 
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background-color: #AD0000;
  color: #fff;
}

p{
  margin: 0;
}

img{
  margin: 0;
  width: 100%;
}

.pc-only{
  display: none;
}

@media (min-width: 1000px){
  .sp-only{
    display: none;
  }
  .pc-only{
    display: block;
  }
 }

.main-content{
  width:100%;
  margin: auto;
}

.FV{
  position: relative;
  width: 100%;
  z-index: 5;
}

.flow,
.faq{
  position: relative;
}

.reason{
  position: relative;
  z-index: 10;
}

.slide-area{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.CTA-line_03,
.CTA-form_03{
 background-color: #AD0000;
}

.CTA-line_04,
.CTA-form_04{
 background-color: #700101;
}

footer{
  width: 100%;
  background: #AD0000;

  .privacy{
    text-align: center;
    width: 100%;
    background-color: #000;
    font-size: 1.7rem;
    padding: 3rem 0;
    color: #fff;
  }
}

table{
  font-size: 1.4rem;
  width: calc(390px - 32px);
  margin: 20px auto 0;
  text-align: left;
  table-layout: auto;
  vertical-align: top;
  text-wrap: auto;
  overflow-wrap: anywhere;

  th{
    white-space: nowrap;
    width: 125px;
    font-weight: normal;
    vertical-align: top;
  }

  td{
    width: auto;
  }
}

.corporate-id {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  table:nth-child(2){
    padding-top: 0;

    @media screen and (max-width:999px){
      margin-top: 0;
    }
  }
}

.copyright{
  text-align: center;
  width: 100%;
  font-size: 1.4rem;
  padding: 3rem 0;
  color: #FFF;   
  font-weight: bold; 
}

@media screen and (min-width:600px){
  .corporate-id table{
    font-size: 1.3rem;
    line-height: 2;
  }
}

@media screen and (min-width:1000px){
  .corporate-id {
    flex-direction: row;
    max-width: 1280px;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
  }

  table {
    width: 45%;
    margin: 10px;
  }

  table:nth-child(2){
    padding-top: 20px;
    width: 350px;
  }
  
  th{
    width: 30px;
  }

  td{
    width: 403px;
  }
}

/* 追従ボタン　-------------------------------------------------*/
.follow-area {
  height: 800px;
  position: relative;
}

.sticky-image {
  position: fixed;
  z-index: 999;
  right: 0;
  width: 30%;

  @media (max-width:999px){
    width: 11.5%;
    top: 20px;
   }
}

.follow-items {
  display: flex;
  gap: 8px;

  @media (max-width:999px){
    flex-direction: column;
   }
}

/* 追従画像の初期状態：非表示 + 下から少し出現 */
.follow-image {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 表示状態：ふわっと表示＋スライド */
.follow-image.visible {
  opacity: 1;
}

/* form ---------------------------------------------*/
.form{
  background: #2D2D2D;
  width: 100%;
  padding: 10rem 0;
  font-size: 1.8rem;

  h1{
    font-size: 2.7rem;
    text-align: center;
  }

  h1::after{
    border: #fff solid 1px;
  }

  .form-ttl {
    width: 45vw;
    margin: 0 auto;

    @media screen and (min-width:1000px){
      width: 20vw;
    }
  }

  .form-container{
    margin: 40px auto 0;
    max-width: 700px;
    text-align: center;
    padding: 3.2rem;
  }
  .form-item{
    padding: 1rem 0;
    text-align: left;
    margin-top: 1rem;
  }
  label{
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: .5rem;
    display: inline-block;
  }
  .required{
    background-color: #AD0000;
    padding: .5rem;
    font-size: 1.2rem;
    border-radius: .3rem;
    font-weight: bold;
    color: #fff;
    margin-right: 1rem;
  }
  input{
    color: #fff;
    margin: 1rem 0 0;
    box-sizing: border-box;
  }
  textarea{
    color: #fff;
    margin: 10px 0 0;
  }
  .form-desc {
    margin-bottom: 8px;
    padding-left: .5rem;
    line-height: 2.6rem;
  }

  .u_under-bar {
    text-decoration: underline;
  }
  strong {
    font-size: 1.5rem;
  }

  .c-form-text {
    height: 3.6rem;
    width: 100%;
    padding: 0 .5rem;
    border-radius: 4px;
    border: solid .5px rgb(255 255 255 / 50%);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    background: rgb(255 255 255 / 10%);
  }
  .c-form-text:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(255, 255, 255) inset;
  }
  .submit{
    margin-top: 80px;
    width: 75vw;
    font-weight: bold;
    border-radius: .5rem;
    display: inline-block;
    cursor: pointer;

    @media screen and (min-width:1000px){
      max-width: 440px;
    }
  }

  p {
    font-size: 1.3rem;
  }
  
  #job-description,
  #motivation,
  #comments{
    height: 7.2rem;
  }

  /* セレクトボックス -------------------------------------------------*/
  .select_box {
  padding: .5rem;
  font-size: 1.7rem;
  margin-top: .5rem;
  background: rgb(255 255 255 / 100%);
  border: solid .5px rgb(255 255 255 / 50%);
  border-radius: 4px;
  color: #000;
  }

  .select_box:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgb(255, 255, 255) inset;
  }

  /* カレンダー -------------------------------------------------*/
  .date-wrapper {
    width: 70%;
    display: flex;
    gap: 10px;
    
    @media screen and (min-width:600px){
      width: 40%;
    }
  }

  /* ラジオボタン -------------------------------------------------*/

  .form_radio-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0;
    gap: 8px;
  }

  .radio_span {
    margin-left: 0.5em;
    white-space: nowrap;
  }
  .input_radio {
    display: none;
  }
  .input_radio + span {
    padding-left: 28px;
    display: inline-block;
    position: relative;
  }
  .input_radio + span::after,
  .input_radio + span::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
  }
  .input_radio + span::before {
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .input_radio + span::after {
    border: none;
    background-color: #AD0000;
    border-radius: 50%;
    height: 12px;
    width: 12px;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
  }
  .input_radio:checked + span::after {
    display: block;
  }
}

/* ----------------- thanksページのCSS ----------------- */
.header-logo {
  width: 300px;
  margin: 80px auto;
}

.contact_main {
  max-width: 980px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
.thanks_h1{
  font-size: 2rem;
  text-align: center;
  line-height: 5rem;
}

.btn_back {
  display: flex;
  margin: 64px auto;
  font-size: 1.7rem;
  background: #000;
  padding: 1rem 5rem;
  font-weight: bold;
}

.cta_body-btn {
  text-decoration: none;
}
