@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/mv1.jpg"), url("../img/top/mv2.jpg");
  background-repeat:no-repeat, no-repeat;
  background-position:center bottom,right top, 0% 0%;
  background-size: cover;
  transform-origin:center;
  animation: img_anime 15s ease infinite;
}

@keyframes img_anime {
  0% {
    background-image: url("../img/top/mv1.jpg");
  }
  20% {
    background-image: url("../img/top/mv1.jpg");
  }
  35% {
    background-image: url("../img/top/mv1.jpg");
  }
  50% {
    background-image: url("../img/top/mv2.jpg");
  }
  70% {
    background-image: url("../img/top/mv2.jpg");
  }
  85% {
    background-image: url("../img/top/mv2.jpg");
  }
}

/*-------------------- 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;
  border-right: 1px solid #5fc0c6;
}
#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: #5fc0c6;
}
#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 span {
  display: inline-block;
  width: 7em;
}
#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(odd) {
  margin: 200px 0 0 auto;
}
#mf2 .cbox .bgS {
  position: absolute;
  top: -50px;
  right: -70px;
}
#mf2 .cbox:nth-last-of-type(odd) .bgS {
  right: auto;
  left: -70px;
}
#mf2 .cbox .cboxs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 528px;
  height: 500px;
  background: #fff;
  text-align: center;
  padding: 4em;
  position: absolute;
  top: -30px;
  right: -20px;
}
#mf2 .cbox:nth-last-of-type(odd) .cboxs {
  right: auto;
  left: -20px;
}
#mf2 .cboxs .ttl {
  font-size: 18px;
  color: #00a199;
  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: 15%;
  height: 60px;
  background: url("../img/top/logo.png") center center / contain no-repeat;
  position: absolute;
  top: -10px;
  right: 20px;
}
#mf3 h2:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #00a199, #616161);
}
#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 dd a {
  text-decoration-line: underline;
}
#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 */
input[type="button"],input[type="text"],input[type="submit"],input[type="image"],textarea{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}
#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:cadetblue;
  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 .agree {
  width: 100%;
  padding: 0 0 0 14em;
  float: none;
  text-align: left;
}
#mf4 .agree a {
  text-decoration-line: underline;
}

input[type="checkbox"] {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
input[type="checkbox"] + label {
  display: inline-block;
  position: relative;
  padding-left: 2em;
  margin-right: 1.5em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input[type="checkbox"] + label:last-child { margin-bottom: 0; }

input[type="checkbox"] + label:before {
  content: '';
  display: block;
  width: 1.2em;
  height: 1.2em;
  border: 1px solid #3E9FD2;
  position: absolute;
  left: 0;
  top: .2em;
  opacity: .6;
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;
}

input[type="checkbox"]:checked + label:before {
  width: 10px;
  height: 18px;
  top: 0;
  left: 5px;
  border-radius: 0;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#mf4 input[type=submit] {
  display: block;
  width: fit-content;
  width: -moz-fit-content;
  margin: 60px auto 100px 30%;
  padding: .8em 2em;
  background: #5fc0c6;
  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.2vw;
  }
  #mainvis, #mainvis #bg {
    width: 100%;
    height: 80vh !important;
  }
  #mainvis #bg {
    background-size: cover;
    background-position-x: 50%;
  }
  h2 {
    font-size: 3vw;
  }
  #mf1 .ttl img {
    width: 6vw;
  }
  #mf1 #idNews {
    font-size: 2.2vw;
  }
  #mf2 .mf-frame {
    margin: 0;
  }
  #mf2 .ttl img {
    width: 35vw;
  }
  #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 5vw 0;
  }
  #mf2 .cboxs .ttl {
    font-size: 3vw;
  }
  #mf2 .cboxs h3 {
    font-size: 4vw;
  }
  #mf3 .mf-inner {
    margin: 10vw auto 5vw;
  }
  #mf3 h2:before {
    width: 18vw;
    height: 6vw;
  }
  #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 .agree {
    padding: 0;
  }
  input[type="checkbox"] + label {
    margin-bottom: 1em;
    padding-left: 1.8em;
  }
  input[type="checkbox"]:checked + label:before {
    width: 0.5em;
    height: 0.8em;
    top: .3em;
    left: .3em;
  }
  #mf4 input[type=submit] {
    margin: 5vw auto 10vw;
  }
}

@media screen and (max-width: 768px) {
  #mainvis, #mainvis #bg {
    height: 120vh !important;
  }
  #mainvis #bg {
    position: fixed;
    z-index: -1;
    top: 0;
    width: 100%;
    height:100vh;
    background: url("../img/top/mv1s.jpg"), url("../img/top/mv2s.jpg");
    background-repeat:no-repeat, no-repeat;
    background-position:left bottom,right top, 0% 0%;
    background-size: cover;
    transform-origin:center;
    animation: img_anime 15s ease infinite;
  }

  @keyframes img_anime {
    0% {
      background-image: url("../img/top/mv1s.jpg");
    }
    20% {
      background-image: url("../img/top/mv1s.jpg");
    }
    35% {
      background-image: url("../img/top/mv1s.jpg");
    }
    50% {
      background-image: url("../img/top/mv2s.jpg");
    }
    70% {
      background-image: url("../img/top/mv2s.jpg");
    }
    85% {
      background-image: url("../img/top/mv2s.jpg");
    }
  }
}

@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: 28vw;
    height: 7vw;
    top: 0;
    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);
  }
  #mf4 .agree {
    font-size: 0.95em;
  }
}
