#header nav ul.navList li.link {
  margin-left: 49px;
  margin-right: 0;
}

/* #top */

#top {
  margin: 45px 0 111px;
}

/* .container */

.mainInner > .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

#internEntryPage .mainInner #caution p {
  width: 100%;
  text-align: center;
  margin-bottom: 80px;
  font-size: 24px;
}


/* #flowImage */

#flowImage {
  max-width: 944px;
  margin: 0 auto;
}

#flowImage picture img {
  margin-bottom: 80px;
}

hr {
  border-color: #019ea7;
  margin-bottom: 60px;
}

/* #contact */

#contact .contactInner {
  width: 881px;
  margin: 0 auto;
}

form ul {
  margin-bottom: 80px;
}

form ul li {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

form ul li:last-child {
  margin-bottom: 0;
}

form ul li label,
form li#privacy span {
  display: inline-block;
  width: 140px;
  font-size: 20px;
  font-weight: 600;
  color: #019ea7;
  margin-right: 150px;
}

form ul li span.required,
form #confirmation button,
#thankyouPage .container .gotop {
  display: inline-block;
  height: 44px;
  padding: 8px 14px;
  color: #fff;
  background-color: #019ea7;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

form ul li span.required {
  position: absolute;
  top: 50%;
  left: 160px;
  transform: translateY(-50%);
}

form ul li.optional label {
  padding-top: 8px;
}

form ul li.optional span.required {
  color: #646464;
  background-color: #e8e8e7;
  top: 0;
  transform: translateY(0);
}

form ul li.optional input,
form ul li.optional textarea {
  color: #444;
  background: #f7f7f7;
  border: 1px solid #444;
}

form ul input,
form ul textarea {
  width: 100%;
  font-size: 20px;
  padding: 10px;
  border-radius: 20px;
}

form input,
form select {
  height: 44px;
  width: 100%;
  font-size: 18px;
  background: #fffbf3;
  border: 1px solid #019ea7;
}

form li div.box {
  width: 100%;
  max-width: 591px;
  display: flex;
  justify-content: space-between;
}

#internEntryPage .mainInner form li .hidden{
  visibility: hidden;
}

form ul li div.pd {
  padding: 0 40px 0 16px;
}

form ul li div.item {
  position: relative;
  width: 154px;
}

form ul li div.item div {
  display: flex;
  align-items: center;
  line-height: 1;
}

form ul li div.item .br {
  display: inline-block;
  width: 100%;
  position: absolute;
  top: 1.2em;
  left: 3em;
}

form ul li span {
  font-size: 20px;
}

form li input.radio {
  appearance: none;
  -webkit-appearance: none; /* Safari用 */
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 16px;
  padding: 8px;
  border: 2px solid #019ea7;
  cursor: pointer;
  position: relative;
}

form li.radio span.sex {
  display: inline-block;
  margin-right: 48px;
}

form li.radio input.radio:checked::before {
  display: block;
  content: "";
  width: 12px;
  height: 12px;
  background-color: #019ea7;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

form .box .word {
  margin-right: 16px;
}

form .selectBox {
  margin-right: 10%;
}

form .selectBox:last-child {
  margin-right: 0;
}

form select {
  width: 110px;
  border-radius: 20px;
  margin-right: 8px;
  text-align: center;
}

form .box.sex {
  width: 208px;
}

form li.textarea {
  align-items: inherit;
}

form li textarea {
  border: 1px solid #444;
  max-width: 591px;
  height: 222px;
}

form input:focus {
  outline-color: #019ea7;
}

form li#privacy {
  align-items: inherit;
}

form li#privacy span {
  font-size: 18px;
  width: 144px;
  margin-right: 146px;
}

form li#privacy .textarea {
  max-width: 591px;
  height: 374px;
  padding: 22px 10px 2px 22px;
  border: 2px solid #019ea7;
  border-radius: 20px;
  position: relative;
}

.textInner {
  height: 100%;
  padding-right: 15px;
  overflow-y: scroll;
}

form li#privacy .textarea p,
form li#privacy .textarea li {
  font-size: 14px;
}

form li#privacy .textarea .title{
  font-size: 15px;
  font-weight: 600;
}

form li#privacy .textarea li{
  margin-bottom: 1rem;
}

form li#privacy .textarea .inner1{
  margin-bottom: 2rem;
}

form li#privacy .textarea .inner1 ul{
  padding-left: 0;
  margin-bottom: 1rem;
}

form li#privacy .textarea .inner2 .title{
  margin-bottom: 1rem;
}

form li#privacy .textarea .inner2 ul{
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

form li#privacy .textInner::-webkit-scrollbar {
  width: 9px; /* 縦スクロールバーの幅 */
}

/* スクロールバーのトラック（背景部分） */
form li#privacy .textInner::-webkit-scrollbar-track {
  background: #d9d9d9; /* トラックの背景色 */
  border-radius: 24px; /* トラックの角を丸く */
  margin: 18px 0;
}

/* スクロールバーのつまみ（ポインター） */
form li#privacy .textInner::-webkit-scrollbar-thumb {
  background: #8b8b8b; /* サムの色 */
  border-radius: 10px; /* サムの角を丸く */
  border: 3px solid #d9d9d9; /* トラックとの間に余白を作る */
  margin-right: 10px;
}

form li.check {
  margin: 0 auto;
  justify-content: center;
  gap: 54px;
}

form ul li.check span.required {
  margin: 0;
  left: 130px;
}

form li.check div {
  display: flex;
  align-items: center;
  gap: 54px;
}

form li.check input {
  width: 18px;
  height: 18px;
}

form ul li.check span.word {
  font-weight: 600;
}

form #confirmation {
  margin-bottom: 90px;
  text-align: center;
}

form #confirmation button {
  height: auto;
  font-size: 28px;
  padding: 13px 80px 13px 73px;
  border-radius: 20px;
  margin: 0;
  position: relative;
}

form #confirmation button::before {
  display: block;
  content: "";
  width: 16px;
  height: 16px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  position: absolute;
  top: 50%;
  left: 85%;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease-in-out;
}

form #confirmation button:hover {
  opacity: 0.8;
  cursor: pointer;
}

form #confirmation button:active {
  scale: 0.9;
}

/* #footer */

#footer {
  background: url(img/pc/footerImg.png) center / cover;
}

/* #checkPage */

#checkPage #top {
  margin: 45px 0 81px;
}

#checkPage .textBox {
  text-align: center;
  margin-bottom: 120px;
}

#checkPage .textBox p {
  font-size: 20px;
}

#checkPage li#privacy span.word {
  width: auto;
  font-size: 18px;
  font-weight: 400;
  color: inherit;
  margin: 0;
}

#checkPage form #confirmation {
  margin: 110px 0 120px;
}

#checkPage form #confirmation button {
  padding: 13px 90px;
}

/* #thankyouPage */

#thankyouPage .textBox {
  text-align: center;
  margin-bottom: 80px;
}

#thankyouPage .textBox p {
  margin-bottom: 1em;
}

#thankyouPage #confirmation {
  text-align: center;
  margin-bottom: 90px;
}

#thankyouPage #confirmation .gotop {
  padding: 13px 80px;
  font-size: 28px;
  position: relative;
    height: auto;
    line-height: normal;
}

#thankyouPage #confirmation .gotop::before {
  display: block;
  content: "";
  width: 16px;
  height: 16px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  position: absolute;
  top: 50%;
  right: 85%;
  transform: translateY(-50%) rotate(-135deg);
  transition: all 0.3s ease-in-out;
}

#thankyouPage #confirmation .gotop:hover {
  opacity: 0.8;
  cursor: pointer;
}

#thankyouPage #confirmation .gotop:active {
  scale: 0.9;
}

@media screen and (max-width: 900px) {

  #header {
    height: auto;
  }

  #header nav ul.navList li.link {
    margin-left: 0;
  }

  #header .headerInner .menuButton {
    height: auto;
    width: auto;
  }

  /* #menuPage */

  #menuPage {
    padding-top: 0;
  }

  #menuPage .menuLink .container {
    width: 100%;
  }

  #menuPage .menuLink .container span {
    margin: 0 auto 56px;
  }

  #menuPage .menuMain .imgBox {
    bottom: -80px;
  }

  #top {
    margin: 40px 0;
  }

  .mainInner > .container {
    padding: 0;
  }

  #internEntryPage .mainInner #caution p{
    font-size: 16px;
    margin-bottom: 30px;
  }

  #flowImage {
    margin-bottom: 54px;
  }

  #flowImage img.sp {
    padding: 0 26.7%;
    margin-bottom: 40px;
  }

  #flowImage picture img {
    margin-bottom: 60px;
  }

  hr {
    margin-bottom: 37px;
  }

  #contact .contactInner {
    width: 100%;
    padding: 0 24px;
  }

  form ul {
    margin-bottom: 54px;
  }

  form ul li {
    display: block;
    max-width: 591px;
    margin: 0 auto 54px;
  }

  form ul li:first-child {
    margin-bottom: 84px;
  }

  form ul li div.box {
    display: block;
  }

  form ul li div.box .item , 
  #internEntryPage form ul li:first-child div.box .item:nth-child(2) {
    margin-bottom: 26px;
  }

  form ul li:first-child div.box .item:nth-child(2) {
    margin-bottom: 52px;
  }

  form ul li label {
    display: block;
    width: auto;
    margin-right: 38px;
    margin-bottom: 32px;
  }

  form ul li span.required {
    font-size: 16px;
    height: 37px;
    margin: 0;
    padding: 8px 10px;
    top: -8px;
    transform: translateY(0);
    left: 150px;
  }

  form ul li span.word {
    font-size: 14px;
  }

  form ul input,
  form ul textarea {
    font-size: 18px;
  }

  form li.birth .box div ,
  #internEntryPage form li.grade .box div,
  #internEntryPage form li.graduationYear .box div {
    text-align: right;
    padding-right: 11%;
    margin-bottom: 24px;
  }

  #internEntryPage form li.graduationYear .box div.hidden{
    display: none;
  }

  form li .box div .wc {
    font-size: 20px;
    margin-right: 1%;
  }

  form .selectBox {
    margin-right: 24px;
  }

  form .selectBox:last-child {
    margin-right: 0;
  }

  form .selectBox select {
    font-size: 14px;
    width: 62%;
    height: 44px;
    margin-right: 16px;
  }

  form li.radio .box.sex .item {
    padding-left: 24px;
  }

  form ul li.optional {
    margin-bottom: 72px;
  }

  form ul li.optional textarea {
    display: block;
  }

  form li#privacy {
    margin-bottom: 24px;
  }

  form li#privacy span {
    margin-bottom: 32px;
  }

  form li#privacy .textarea {
    height: 279px;
    margin-bottom: 82px;
    padding: 22px 5px 15px 12px;
  }

  .textInner {
    padding-right: 10px;
  }

  form ul li.check span.required {
    display: block;
    width: 68px;
    margin-bottom: 24px;
    top: -54px;
    left: 0;
  }

  form ul li.check div {
    display: flex;
    align-items: center;
    gap: 38px;
    padding-left: 24px;
  }

  form ul li.check span.word {
    font-size: 16px;
  }

  form #confirmation {
    margin-bottom: 73px;
  }

  form #confirmation button {
    max-width: 293px;
    padding: 13px 76px 13px 69px;
    font-size: 20px;
  }

  form #confirmation button a {
    width: 100%;
    padding: 13px 0;
  }

  #footer {
    background: url(img/sp/spfooter.png) center / cover;
    margin-bottom: 0;
  }

  /* #checkPage */

  #checkPage #top {
    margin-bottom: 40px;
  }

  #checkPage .textBox {
    margin-bottom: 90px;
  }

  #checkPage .textBox p {
    font-size: 16px;
  }

  #checkPage li span {
    display: inline;
  }

  #checkPage form ul {
    margin-bottom: 90px;
  }

  #checkPage form #confirmation {
    margin: 0 0 60px;
  }

}
