* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic", sans-serif;
  max-width: 1250px;
  margin: 0 auto
}

.bg_logo {
  position: fixed;
  bottom: 0;
  right: -6%;
  z-index: -1;
  height: 80vh;
  width: 0;
  padding-right: 100%;
  background: url(images/logo/logo_mark.svg) bottom right no-repeat;
  background-size: contain;
  opacity: .05;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 25px 20px 10px 20px;
  position: relative;
  z-index: 1;
}

header img {
  max-height: 60px;
  margin-right: 20px;
}

a {
  text-decoration: none;
  color: #000000;
  transition: .3s;
}

a:hover {
  opacity: .6;
  transition: .3s;
}

a:active {
  color: #000000;
}

input {
  padding: 0;
  border: none;
  outline: none;
  background: none;
}

textarea {
  padding: 0;
  border: none;
  outline: none;
  resize: none;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 10px 0;
  margin-left: 60px;
}

nav a {
  display: inline-block;
  padding: 10px;
  margin: 0 0 0 10px;
  font-size: min(8vw, 35px);
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  transition: background-color .3s ease;
}

nav a:hover {
  color: #C0C0C0;
}

h1 {
  font-size: inherit;
  font-weight: inherit;
  margin: 30px 0 10px 70px;
  padding: 10px;
  line-height: inherit;
  font-size: min(8vw, 35px);
}

.section {
  align-items: center;
  margin: 0 80px 120px 120px;
}

h2 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

.about_contents {
  display: flex;
  margin-bottom: 3%;
}

.about_contents h2 {
  width: 90px;
}

.mission_contents {
  margin-bottom: 60px;
}

.mission_contents h2 {
  font-size: min(4vw, 30px);
  font-weight: bold;
  margin-bottom: 5px;
}

.services_contents {
  margin-bottom: 60px;
}

.services_contents h2 {
  font-weight: bold;
}

.news_contents h2, .services_contents h2 {
  margin-bottom: 20px;
}

.news_contents h2 {
  margin-bottom: 10px;
}
.news_contents .year_box {
  margin-bottom: 50px;
}

.news_contents .year_box dt {
  font-size: .9em;
  opacity: .5;
  margin: 20px 0 5px ;
}

.news_contents .year_box dd {
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-bottom: 20px;
}

.news_contents .year_box dd a {
  text-decoration: underline;
}

.privacy_contents h1 {
  margin: 20px 0;
  font-size: min(4vw, 20px);
  padding: 0;
}

.news_contents h2, .news_contents p, .services_contents h2, .services_contents p, .recruit_contents p {
  font-size: min(2.8vw, 22px);
}

.services_contents a, .recruit_contents a {
  border-bottom: 1px solid #000000;
}

.privacy_contents {
  padding-top: 7px;
  margin-bottom: 60px;
}

.privacy_contents h2, .privacy_contents p {
  font-size: min(2vw, 18px);
}

.privacy_days {
  text-align: right;
}

.confirmation_contents p, .confirmation_contents a, .error_contents p, .error_contents a {
  font-size: min(2.5vw, 20px);
}

.confirmation_contents a, .error_contents a {
  border-bottom: 1px solid;
  padding-bottom: 5px;
}

.confirmation_contents a:hover, .error_contents a:hover {
  color: #C0C0C0;
}

.contact_contents label, .contact_contents input {
  display: block;
}

.contact_contents label {
  font-size: 20px;
  padding-bottom: 5px;
}

.contact_contents span {
  border: 1px solid #245E99;
  background-color: #245E99;
  border-radius: 4px;
  color: #fff;
  padding: 3px;
  font-size: 14px;
}

.contact_contents input {
  border: 1px solid #666;
  border-radius: 3px;
  width: min(50vw, 250px);
  height: 35px;
  font-size: 16px;
  padding: 14px
}

.contact_contents textarea {
  border: 1px solid #666;
  width: min(50vw, 500px);
  height: 300px;
  padding: 10px;
  font-size: 16px;
}

.checkbox-container {
  display: flex;
  padding: 20px 0 20px 0;
}

.checkbox-container input {
  border: 1px solid #000;
  width: 22px;
  margin-right: 12px;
}

.checkbox-container label {
  padding-top: 2px;
  padding-bottom: 0;
  font-size: 20px;
}

.checkbox-container a {
  border-bottom: 1px solid #000;
}

.contact_contents button {
  border: 1px solid #245E99;
  background-color: #245E99;
  border-radius: .2px;
  color: #fff;
  padding: 3px;
  font-size: 16px;
  width: 80px;
  margin-top: 10px;
}

main {
  position: relative;
  z-index: 1;
}

footer {
  bottom: 0;
  width: 100%;
  text-align: left;
  padding: 45px;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

footer div {
  margin-bottom: 20px;
}

.sub_link {
  margin-top: 40px;
  padding-left: 50px;
}

.sub_link a {
  text-decoration: none;
  color: #333;
  font-size: min(2vw, 16px);
  margin-bottom: 10px;
  margin-left: 30px;
  text-decoration: underline;
}

footer a:hover {
  color: #C0C0C0;
}

footer p {
  font-size: 10px;
  color: #666;
  margin-left: 30px;
}

@media screen and (min-height:600px) {
  footer {
    position: fixed;
    bottom: 0
  }
}

@media screen and (max-width:480px) {
  header {
    padding: 25px 0 5px 15px;
  }
  header img {
    max-height: 15vw
  }
  nav li {
    margin-left: 20px
  }
  nav a {
    margin-left: 15px;
    font-size: min(7vw, 24px)
  }

  .sub_link {
    padding-left: 15px;
  }

  .sub_link a {
    font-size: min(4vw, 13px)
  }
  h1 {
    margin-left: 10px;
    font-size: min(7vw, 24px)
  }
  .about_contents h2 {
    font-weight: bold
  }
  .mission_contents, .about_contents, .news_contents, .services_contents, .recruit_contents, .privacy_contents, .confirmation_contents, .error_contents, .contact_contents {
    margin: 0 30px 20px 30px
  }
  .mission_contents h2 {
    margin-bottom: 3px;
    font-size: min(5vw, 50px)
  }
  .mission_contents p {
    margin: 5px 0 0 5px
  }
  .mission_contents p, .news_contents h2, .news_contents p, .services_contents h2, .services_contents p, .recruit_contents p, .confirmation_contents p, .confirmation_contents a, .error_contents p, .error_contents a {
    font-size: min(4vw, 25px)
  }
  .privacy_contents h2, .privacy_contents p {
    font-size: min(3.5vw, 20px)
  }
  .contact_contents label {
    font-size: min(4.2vw, 20px);
    font-size: max(4.2vw, 15px)
  }
  .contact_contents textarea {
    width: min(78vw, 350px)
  }
  .checkbox-container input {
    width: min(4.2vw, 20px);
    margin-right: 8px
  }
  .checkbox-container label {
    padding-top: 5px
  }
  footer {
    padding: 30px 0
  }
  footer a {
    font-size: 5vw
  }
  footer p {
    font-size: 10px
  }

  main {
    padding-bottom: 100px;
  }
}

@media screen and (min-width:481px) and (max-width:1023px) and (min-height:970px) {
  header {
    padding: 30px 20px 15px 20px
  }
  header img {
    max-height: 135px
  }
  nav li {
    margin-left: 30px
  }
  nav a {
    margin-left: 55px;
    font-size: min(5.8vw, 50px)
  }
  h1 {
    margin-left: 85px;
    font-size: min(5.8vw, 50px)
  }
  .about_contents h2 {
    width: 160px
  }
  .about_contents {
    font-size: 3.8vw
  }
  .privacy_contents {
    margin: 0 40px 20px 120px
  }
  .mission_contents h2 {
    margin-bottom: 20px;
    font-size: min(4vw, 50px)
  }
  .mission_contents p {
    margin-top: 5px
  }
  .news_contents h2, .news_contents p {
    font-size: min(4vw, 35px)
  }
  .privacy_contents h2, .privacy_contents p {
    font-size: min(2.4vw, 25px)
  }
  .confirmation_contents p, .confirmation_contents a, .error_contents p, .error_contents a {
    font-size: min(4.2vw, 30px)
  }
  .contact_contents label {
    font-size: min(6vw, 30px)
  }
  .contact_contents textarea {
    width: min(80vw, 550px);
    font-size: min(5vw, 25px)
  }
  .contact_contents span {
    font-size: min(5vw, 23px)
  }
  .contact_contents button {
    font-size: min(5vw, 25px)
  }
  .checkbox-container input {
    width: min(5vw, 25px);
    margin-top: 7px
  }
  .checkbox-container label {
    padding-bottom: 5px
  }
  .confirmation_contents, .error_contents {
    margin-left: 105px
  }
  footer {
    padding: 30px
  }
  footer a {
    font-size: min(3.7vw, 30px)
  }
  footer p {
    font-size: min(3vw, 25px)
  }

}
