@charset "utf-8";

/*-------------------- MV */
#mainvis {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}
#mainvis #bg {
position: fixed;
z-index: -1;
top: 0;
width: 100%;
height:100vh;
background: url("../img/top/mv-min.jpg") center bottom / cover no-repeat;
transform-origin:center;
}

@keyframes sactive {
  0% {
    right: 100%;
  }
  100% {
    right: 0
  }
}

#mainvis .logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
#mainvis .logo img {
  width: 288px;
}

/*-------------------- pankuzu */
#pankuzu {
  display: none;
}

/*-------------------- contents */
.sticky {
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
h2 {
  margin: 0 auto;
  font-size: 24px;
}

/*-------------------- mf1 */
#mf1 .wrapper {
  display: flex;
  justify-content: flex-start;
  width: 980px;
  padding: 100px 0;
}
#mf1 .cbox {
  width: 100%;
}
#mf1 .ttl {
  margin: 0 80px 0 0;
}
#mf1 h2 {
  width: 100%;
  padding: 0 0 1em 0;
}
#mf1 h2:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #156eb2;
}
#mf1 #idNews {
  margin: 0 2em 0 0;
  width: 820px;
  font-size: 14px;
}
#mf1 #idNews ul {
  max-height: 13em;
  overflow-x: scroll;
}
#mf1 #idNews ul::-webkit-scrollbar { 
  display: none;
}
#mf1 #idNews li .date {
  display: inline-block;
  width: 7em;
  font-family: amiri, sans-serif;
  font-weight: 700;
}
#mf1 #idNews li{
  display: block;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: .2em;
}

/*-------------------- mf2 */
#mf2 .mf-frame {
  padding: 100px 0;
}
#mf2 h2 {
  margin: 1em 0;
}
#mf2 .cbox {
  margin: 200px auto 0 0;
  position: relative;
}
#mf2 .cbox:first-of-type {
  margin: 150px auto 0 0;
}
#mf2 .cbox:nth-last-of-type(even) {
  margin: 200px 0 0 auto;
}
#mf2 .cbox .bgS {
  position: absolute;
  top: -50px;
  right: -70px;
}
#mf2 .cbox:nth-last-of-type(even) .bgS {
  right: auto;
  left: -70px;
}
#mf2 .cbox .cboxs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 528px;
  height: 428px;
  background: #fff;
  text-align: center;
  padding: 1em 2em;
  position: absolute;
  top: -30px;
  right: -20px;
}
#mf2 .cbox:nth-last-of-type(even) .cboxs {
  right: auto;
  left: -20px;
}
#mf2 .cboxs .ttl {
  font-family: amiri, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1764a7;
  margin: 0 auto 2em;
}
#mf2 .cboxs h3 {
  font-size: 36px;
  line-height: 1.3;
}
#mf2 .cboxs h3:after {
  content: "";
  display: block;
  width: 1px;
  height: .8em;
  background: #616161;
  margin: .5em auto;
}

/*-------------------- mf3 */
#mf3 {
  padding-top: 120px;
  margin-top: -120px;
}
#mf3 .mf-inner {
  position: relative;
}
#mf3 .wrapper {
  width: 980px;
}
#mf3 h2 {
  position: relative;
  margin: 0 0 1em;
}
#mf3 h2:before {
  content: "";
  display: block;
  width: 100px;
  height: 60px;
  background: url("../img/top/logo-min.png") center center / contain no-repeat;
  position: absolute;
  top: -40px;
  right: 40px;
}
#mf3 h2:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #14529b, #228bc3);
}
#mf3 .ttl {
  position: absolute;
  right: 0;
  bottom: 0;
}
#mf3 dt {
  width: 7em;
  text-align: right;
  float: left;
  clear: both;
  padding: 7px 0;
  margin-right: 1.5em;
}
#mf3 dd {
  padding: 7px 0;
}
#mf3 iframe {
  margin: 60px 0;
}


/*-------------------- mf4 */
#mf4 {
  padding-top: 80px;
  margin-top: -80px;
}
#mf4 .mf-inner {
  position: relative;
}
#mf4 h2 {
  margin: .8em 0 0;
}

#mf4 h2:after {
  content: "";
  display: block;
  width: 1px;
  height: 1em;
  background: #616161;
  margin: .5em 0 .5em 2em;
}
#mf4 figure {
  position: absolute;
  right: 0;
  top: 0;
}

/*-------------------- form */
#mf4 dl {
  margin: 60px auto;
}
#mf4 dt {
  width: 12em;
  text-align: right;
  float: left;
  clear: both;
  padding: 8px 0;
  margin-right: 1.5em;
}
#mf4 dd {
  padding: 7px 0;
}
#mf4 input[type=text] {
  width: 490px;
  padding: 3px .7em;
  border: 1px solid #8e8e8e;
  background: #f2f2f2;
}
#mf4  textarea {
  width: 490px;
  height: 120px;
  padding: 3px .7em;
  border: 1px solid #8e8e8e;
  background: #f2f2f2;
  resize: vertical;
}
#mf4 input[type=text]::placeholder,
#mf4 textarea::placeholder{
  color: #999;
}
#mf4 .consent_area {
  margin: 10px 0 0 13em;
}
#mf4 .consent_area a {
  color: #2187c1;
  text-decoration: underline;
}
#mf4 .consent_area input[type=checkbox] {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
#mf4 .consent_area input[type="checkbox"] {
    cursor: pointer;
    padding-left: 30px;/*label手前にチェックボックス用の余白を開ける*/
    vertical-align: middle;
    position: relative;
  }
#mf4 .consent_area input[type="checkbox"]::before,
#mf4 .consent_area input[type="checkbox"]::after {
    content: "";
    display: block; 
    position: absolute;
  }
#mf4 .consent_area input[type="checkbox"]::before {
    background-color: #fff;
    border-radius: 0%;
    border: 1px solid #616161;
    width: 20px;/*チェックボックスの横幅*/
    height: 20px;/*チェックボックスの縦幅*/
    transform: translateY(-50%);
    top: 50%;
    left: 5px;
  }
#mf4 .consent_area input[type="checkbox"]::after {
    border-bottom: 3px solid #616161;/*チェックの太さ*/
    border-left: 3px solid #616161;/*チェックの太さ*/
    opacity: 0;/*チェック前は非表示*/
    height: 6px;/*チェックの高さ*/
    width: 11px;/*チェックの横幅*/
    transform: rotate(-45deg);
    top: -4px;/*チェック時の位置調整*/
    left: 10px;/*チェック時の位置調整*/
  }
#mf4 .consent_area input[type="checkbox"]:checked::after {
    opacity: 1;/*チェック後表示*/
  }
#mf4 input[type=submit] {
  display: block;
  width: fit-content;
  width: -moz-fit-content;
  margin: 60px auto 100px 30%;
  padding: .8em 2em;
  background: #2187c1;
  color: #fff;
  letter-spacing: .3em;
  border-radius: 10px;
  cursor: pointer;
}

@media screen and (max-width: 1400px) {
  #mf2 .cbox {
    width: 88vw;
  }
  #mf2 .bgL img {
    width: 85vw;
  }
  #mf2 .cbox .bgS {
    top: -5vw;
    right: -2vw;
  }
  #mf2 .cbox .cboxs {
    top: -3vw;
    right: 1vw;
  }
  #mf2 .cbox:nth-of-type(odd) .bgS {
    top: -5vw;
    right: auto;
    left: -5vw;
  }
  #mf2 .cbox:nth-of-type(odd) .cboxs {
    top: -3vw;
    right: auto;
    left: -2vw;
  }
  #mf3 iframe {
    width: 100%;
  }
  #mf4 input[type=text],
  #mf4 textarea {
    width: 35vw;
  }
}

@media screen and (max-width: 1200px) {
  #mf1 .wrapper {
    width: 75vw;
  }
  #mf1 #idNews {
    width: 100%;
  }
  #mf2 .cbox {
    margin-top: 12vw !important;
  }
  #mf2 .cbox:nth-last-of-type(odd) {
    margin-right: -4vw;
  }
  #mf3 .wrapper {
    width: 75vw;
  }
  #mf4 figure {
    right: -6vw;
  }
}

@media screen and (max-width: 1024px) {
  body {
    font-size: 2.8vw;
  }
  #mainvis, #mainvis #bg {
    width: 100%;
    height: 80vh !important;
  }
  #mainvis #bg {
    background-size: cover;
    background-position-x: 10%;
  }
  h2 {
    font-size: 4vw;
  }
  #mf1 .ttl img {
    width: 8vw;
  }
  #mf1 #idNews {
    font-size: 2.2vw;
  }
  #mf2 .mf-frame {
    margin: 0;
  }
  #mf2 .ttl img {
    width: 55vw;
  }
  #mf2 .cbox {
    width: 100%;
    margin: 10vw auto 0 !important;
  }
  #mf2 .bgL img {
    width: 100%;
  }
  #mf2 .cbox .cboxs {
    position: relative;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100%;
    height: auto;
    padding: 5vw 2em 0;
  }
  #mf2 .cboxs .ttl {
    font-size: 3vw;
  }
  #mf2 .cboxs h3 {
    font-size: 5vw;
  }
  #mf3 .mf-inner {
    margin: 10vw auto 5vw;
  }
  #mf3 h2:before {
    width: 15vw;
    height: 10vw;
  }
  #mf3 .wrapper {
    width: 80vw;
  }
  #mf3 dt {
    float: none;
    text-align: left;
    padding: 0;
  }
  #mf3 dd {
    padding: 0;
    margin-bottom: .7em;
  }
  #mf3 .ttl {
    right: -10vw;
  }
  #mf3 .ttl img {
    width: 10vw;
  }
  #mf4 .mf-inner {
    padding-top: 15vw;
  }
  #mf4 .ttl img {
    width: 45vw;
  }
  #mf4 dt {
    float: none;
    text-align: left;
    padding: 0;
  }
  #mf4 dd {
    padding: 0;
    margin-bottom: .7em;
  }
  #mf4 input[type=text], #mf4 textarea {
    width: 80vw;
  }
  #mf4 figure {
    z-index: -1;
  }
  #mf4 figure img {
    opacity: .5;
  }
  #mf4 .consent_area {
    margin: 2vw 0 0;
  }
  #mf4 input[type=submit] {
    margin: 5vw auto 10vw;
  }
}

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

}

@media screen and (max-width: 540px) {
  body {
    font-size: 3.4vw;
    line-height: 1.5;
  }
  #mainvis, #mainvis #bg {
    height: 100vh !important;
  }
  h2 {
    font-size: 5.5vw;
  }
  #mf1 .ttl {
    margin: 0 5vw 0 0;
  }
  #mf1 .wrapper {
    width: 85vw;
    padding: 10vw 0;
  }
  #mf1 #idNews {
    font-size: 3.2vw;
  }
  #mf2 .cboxs h3 {
    font-size: 6vw;
  }
  #mf3 h2:before {
    width: 20vw;
    height: 15vw;
    top: -8vw;
    right: 3vw;
  }
  #mf4 figure img {
    width: 40vw;
  }
  #mf4 .consent_area p {
    white-space: nowrap;
    margin-bottom: .5em;
  }
  #mf4 .consent_area input[type="checkbox"]::after {
    top: calc(50% - 4px);
  }
}
