
h2{
  font-size: 30px;
}

/* ===========================================
                    header
============================================*/
header #description{
  padding: 5px 0;
  background-color: #DCDCDC;
}

header #description p{
  font-size: 12px;
}

header p{
  width: 1200px;
  margin: 0 auto;
  color: #969696;
}

header p.logo{
  width: 300px;
  float: left;
}

header p img{
  width: 80%;
  padding: 10px 0;
}

header .menu-content{
  width: 1200px;
  margin: 0 auto;
}

nav ul{
  width: 600px;
  float: right;
  padding: 40px 0 30px;
}

nav ul li{
  display: inline-block;
  color: #969696;
  padding: 0 20px;
}

.contact-mainvisual{
  height: 300px;
  background: url(../img/contact/contact_bg.jpg);
  background-size: cover;
  position: relative;
}

.contact-mainvisual #page-message{
  width: 100%;
  text-align: center;
  position: absolute;
  top: 40%;
  margin-left: auto;
  margin-right: auto;
}

.contact-mainvisual #page-message p{
  color: #fff;
  font-size: 18px;
}

.contact-mainvisual #page-message p:first-child{
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 5px;
}


/* ==========================================
                    main
============================================*/


.contact-content{
  width: 1200px;
  margin: 0 auto;
}

.contact-content div#c-md{
  font-size: 32px;
  text-align: center;
  margin: 70px 0;
}



#contact-box p{
  width: 800px;
  margin: 50px auto;
  text-align: center;
}

#contact-box p img{
  width: 70%;
}


/* contact form*/


input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea {
    padding: 10px;
    font-size: 14px;
    background-color: #dedede;
    border-radius: 5px;
    border: none;
}



.contact-select .wpcf7-radio .wpcf7-list-item {
    margin:5px 0;
    display: block;
}

.ask-form{
  width: 800px;
  margin: 0 auto;
}

.ask-form th{
  text-align: left;
}

.ask-form th,
.ask-form td{
  border: 0;
  padding: 10px 20px;
}
.ask-form table td{
  min-width: 500px;
}
#hform1 select{
  margin-left: 20px;
  width: 240px;
}
.ask-form table td input{
  margin-left: 30px;
  width: 30px;
}
.ask-form table td input#ipt04{
  width: 50px;
}
.ask-form table td input.school-name{
  width: 300px;
}
.ask-form table td select{
  margin-left: 30px;
  width: 310px;
}
.ask-form .requied,
.requied {
    font-size: 10px;
    text-align: center;
    line-height: 14px;
    font-weight: bold;
    vertical-align: middle;
    border-radius: 5px;
    color: red;
    width: 30px;
    display: inline-block;
}

.ask-form select{
  width: 70%;
}
.participation-num {
  position: relative;
}
.participation-num  .wpcf7-not-valid{
  margin: 6px 0 14px 30px;
}
.participation-num .wpcf7-not-valid-tip{
  position: absolute;
  bottom: -25px;
  width: 200px;
}
tr:nth-of-type(1) td span:nth-of-type(3) span.wpcf7-list-item-label::after{
  display: none !important;
}
.mb50 .contact-select .first{
  margin-bottom: 60px;
}
.mb250 .contact-select span:nth-child(2){
  margin-bottom: 250px;
}
#hform1{
  position: absolute;
  display: block;
  top: 45px;
}
#hform2 {
  position: absolute;
  display: block;
  top: 60px;
}
.ask-form table#hform2 th{
  width: 34%;
}
.katei-year .wpcf7-list-item{
  display: block;
  padding: 2px 0;
}
.wpcf7-not-valid-tip{
  display: block !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
    background: #fff!important;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
}
.wpcf7 input:-webkit-autofill,
.wpcf7 select:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px white inset;
}

input[type="submit"],input[type="button"],input[type="reset"] {
    width: 150px;
    padding: 10px;
    background: #999;
    font-size: 14px;
    line-height: 20px;
    border: none;
    color: #fff;
    font-weight: bold;
    transition: .4s;
  border-radius: 10px;
}

input[type="submit"] {
  background: #223a70;
}
input[type="submit"],input[type="button"]{
  margin-right: 30px;
}
input[type="reset"] {
  margin-left: 5px;
}
div.wpcf7 {
  margin: 0;
  padding: 0;
}

div.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

div.wpcf7-response-output {
  margin: 2em 0.5em 1em;
  padding: 0.2em 1em;
  border: 2px solid #ff0000;
}

div.wpcf7-mail-sent-ok {
  text-align: center;
  width: 50%;
  margin: 0 auto;
  color: orange;
  padding: 10px 0;
  border-color: orange;
}

div.wpcf7-mail-sent-ng,
div.wpcf7-aborted {
  border: 2px solid #ff0000;
}

div.wpcf7-spam-blocked {
  border: 2px solid #ffa500;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
  text-align: center;
  width: 50%;
  margin: 0 auto;
  color: red;
  padding: 10px 0;
}

.wpcf7-form-control-wrap {
  position: relative;
}

span.wpcf7-not-valid-tip {
  color: #f00;
  font-size: 1em;
  font-weight: normal;
  display: block;
}

.use-floating-validation-tip span.wpcf7-not-valid-tip {
  position: absolute;
  top: 20%;
  left: 20%;
  z-index: 100;
  border: 1px solid #ff0000;
  background: #fff;
  padding: .2em .8em;
}

span.wpcf7-list-item {
  display: inline-block;
  /* margin: 0 0 0 1em; 
  個人情報保護方針の同意チェックボックス修正にともないコメントアウトしています*/
}

span.wpcf7-list-item-label::before,
span.wpcf7-list-item-label::after {
  content: " ";
}

.wpcf7-display-none {
  display: none;
}

div.wpcf7 .ajax-loader {
  visibility: hidden;
  display: inline-block;
  background-image: url('../../images/ajax-loader.gif');
  width: 16px;
  height: 16px;
  border: none;
  padding: 0;
  margin: 0 0 0 4px;
  vertical-align: middle;
}

div.wpcf7 .ajax-loader.is-active {
  visibility: visible;
}

div.wpcf7 div.ajax-error {
  display: none;
}

div.wpcf7 .placeheld {
  color: #888;
}

div.wpcf7 .wpcf7-recaptcha iframe {
  margin-bottom: 0;
}

div.wpcf7 input[type="file"] {
  cursor: pointer;
}

div.wpcf7 input[type="file"]:disabled {
  cursor: default;
}

.wpcf7c-conf {
    background-color: #fff !important;
    color: black !important;
    border: 0 !important;
}
select.wpcf7c-conf{
  -webkit-appearance:none;
}


.your-pref,
.your-pref02,
.your-pref03 {
overflow: hidden;
width: 90%;
margin: 2em auto;
text-align: center;
}
.your-pref select,
.your-pref02 select,
.your-pref03 select  {
width: 70%;
padding-right: 1em;
cursor: pointer;
text-indent: 0.01px;
text-overflow: ellipsis;
border: none;
outline: none;
background: transparent;
background-image: none;
box-shadow: none;
-webkit-appearance: none;
appearance: none;
}
.your-pref select::-ms-expand ,
.your-pref02 select::-ms-expand ,
.your-pref03 select::-ms-expand {
display: none;
}
.your-pref select,
.your-pref02 select,
.your-pref03 select {
position: relative;
border-radius: 2px;
border: 2px solid orange;
border-radius: 50px;
background: #ffffff;
}

.ask-form::-webkit-placeholder {
  color: red;
  opacity: 1;
} 

.your-pref select::before,
.your-pref02 select::before,
.your-pref03 select::before {
position: absolute;
top: 0.8em;
right: 0.8em;
width: 0;
height: 0;
padding: 0;
content: '';
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid orange;
pointer-events: none;
}
.your-pref select,
.your-pref02 select,
.your-pref03 select {
padding: 8px 38px 8px 8px;
color: #666;
}



#contact-box .agreement{
  overflow:auto;
    width:800px; 
    height:200px;
    padding:10px;
    border:1px solid #000;
    line-height:1.5em;
    text-align: left;
}

#contact-box .agreement span{
  text-align: center;
  display: block;
}

/* 20250130個人情報保護方針の同意ボックス修正により追加 */
dd.kiyaku.attention {
  font-size: 0.75rem;
}

/* footer */
footer{
  width: 100%;
  background: url(../img/contact_bg.jpg);
  padding: 30px 0;
}

.footer_menu{
  width: 850px;
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid #fff;
}

.footer_menu ul{
  width: 780px;
  margin: 0 auto;
}

.footer_menu ul li{
  width: 190px;
  display: inline-block;
  vertical-align: top;
  line-height: 2;
  color: #fff;
  font-size: 13px;
}

.footer_menu ul li:nth-child(2){
  width: 250px;
}

.footer_menu ul li:nth-child(4){
  width: 130px;
}

.footer_menu ul .md{
  font-size: 16px;
}

.copyright{
  width: 850px;
  margin: 0 auto;
  padding: 30px 0;
}

.copyright div{
  width: 45%;
  display: inline-block;
  vertical-align: top;
} 

.copyright div.social{
    width: 53%;
    margin-left: auto;
    margin-right: 0;
    display: inline-block;
    text-align: right;
    padding: 20px 0;
}

.copyright #f_logo img{
  width: 50%;
}

.copyright div p{
  width: 10%;
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
}

.copyright div p:nth-child(3){
  width: 25%;
  color: #fff;
}

.copyright div p img{
  width: 50%;
}


@media screen and (min-width:768px) and (max-width:800px){
  #contact-box .agreement{
  width: 85%;
}

#contact-box p{
  width: 95%;
}

.ask-form{
  width: 100%;
}

}

@media screen and (min-width:768px) and (max-width:1200px){
.contact-content{
  width: 100%;
}

}

@media screen and (max-width:767px){




header p{
  width: 95%;
}

header #description p{
  font-size: 10px;
}

header p.logo{
  width: 60%;
}

header p.logo img{
  width: 100%;
  padding: 5% 3%;
}

header .menu-content{
  width: 100%;
}

nav ul{
  width: 65%;
}


.contact-mainvisual{
  height: 200px;
  background-position: center;
}


.contact-content{
  width: 100%;
}

.v-content #c-md{
  font-size: 1.6rem;
  margin: 10% 0;
}

.wpcf7-mail-sent-ok{
  width: 90%!important;
}

#contact-box p{
  width: 85%;
  margin: 10% auto;
  font-size: 0.8rem;
}

input[type="submit"], 
input[type="button"]{
  margin-right: 5%;
-webkit-appearance: none;
border-radius: 0;
}

.ask-form{
  width: 95%;
}

.ask-form th, 
.ask-form td{
  width: 100%;
  display: block;
  padding: 2% 5%;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea{
  width: 83%;
}

.your-pref select{
  width: 90%;
}

.send-btn input{
  width: 45%;
  display: inline-block;
}

.contact-content{
  width: 100%;
}

footer{
  padding: 0;
}

.footer_menu{
  width: 95%;
  margin: 5% auto;
}

.footer_menu ul{
  width: 95%;
}

.footer_menu ul li{
  width: 20%;
  font-size: 9px;
}

.footer_menu ul li:nth-child(2){
  width: 25%;
  margin-right: 2.2%;
}

.footer_menu ul li:nth-child(4){
  width: 27%;
}

.footer_menu ul .md{
  font-size: 12px;
}



.copyright{
  width: 80%;
  padding: 5% 0 3%;
}


.copyright div{
  width: 80%;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.copyright div.social{
  width: 100%;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
  padding: 20px 0;
}

.copyright #f_logo img{
  width: 80%;
}

.copyright div p {
  width: 20%;
}

.copyright div p:nth-child(3){
  width: 35%;
}

div.wpcf7-validation-errors, 
div.wpcf7-acceptance-missing{
  width: 80%;
}

#contact-box .agreement{
  width: 80%;
  height: 150px;
}

}


@media screen and (max-width:375px){
.footer_menu{
  width: 100%;
  margin: 5% auto;
}

.footer_menu ul{
  width: 98%;
}

.footer_menu ul li{
  width: 21%;
  font-size: 10px;
}

.footer_menu ul li:nth-child(2){
  width: 26%;
  margin-right: 2.2%;
}

.footer_menu ul li:nth-child(4){
  width: 23%;
}
}

header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #ffffff !important;
}

.contact-mainvisual {
    margin-top: 135px !important;
}