/******* 全体 *******/
#outer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  opacity: 0;
  transition: opacity ease 0.5s;
  position: relative;
}
#outer.on { opacity: 1; }
/******* ローディング *******/
#loading {
  position: fixed;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  animation: spin 3s linear infinite;
}
#outer.on~#loading {
 animation: none;
 display: none;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(359deg); }
}
/******* フッター *******/
footer { background: #f0f8ff; }
footer .inner.contents { padding: 1.5rem; }
footer #f_address_area img {
  max-width: 360px;
  margin: 0 auto 1rem auto;
}
footer #f_address_area p {
  font-size: 1.4rem;
  text-align: center;
}
footer #f_menu_area { display: none; }
footer small {
  display: block;
  background: #004da2;
  color: #fff;
  padding: 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.1rem;
}
/******* ページトップへ戻る *******/
#gotoTop {
  position: fixed;
  bottom: -4rem;
  right: 4rem;
  width: 4rem;
  height: 4rem;
  background-color: #004da2;
  padding: .5rem;
  border-radius: .5rem;
  transition: bottom 0.25s 0s ease; 
  cursor: pointer;
}
#gotoTop.on {
  bottom: 4rem;
}

/******* TOPページ *******/
/*事業活動*/


/******* 会社案内 *******/
/*あいさつ*/
#about_greeting img {
  display: block;
  float: none;
  margin: 0 auto 1em auto;
  width: 100%;
  max-width: 300px;
}
#about_greeting p { margin-bottom: 1em; }
#about_greeting p.right { margin-top: 2.5em; }
/*概要*/
#about_outline .flex_cts1 {
  width: 100%;
  margin-bottom: 2rem;
}
#about_outline dl { margin-bottom: 1rem; }
#about_outline dt {
  width: 100%;
  letter-spacing: 0.25em;
}
#about_outline .flex_cts2 {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 2rem auto;
}
#about_outline #map_area {
  width: 100%;
  height: 300px;
  padding: 0 1rem;
}
#about_outline #map_area iframe {
  width: 100%;
  height: 100%;
}
/*沿革*/
#about_history dl.flex { margin-bottom: 1rem; }
#about_history dt, #about_history dd { width: 100%; }
#about_client ul { margin-bottom: 2em; }
#about_client ul li {
  display: inline;
  padding-right: 0.5em;
}
#about_client ul li::after {
  content: "/";
  padding-left: 0.5em;
}
#about_client ul li:nth-last-of-type(1)::after { content: none; }
/******* 事業案内 *******/
#business #business_wc .flex_cts1 > p:nth-of-type(1) { margin-bottom: 0; }
#business #business_wc dt { width: 10em; }
/******* お問い合せ *******/
#c_form .err {
  border-color: #bb0000;
  background: #ffe1e1;
}
#c_form .err + p {
  width: 100%;
  font-size: 0.9em;
}
#contact #contact_pp div {
  overflow: scroll;
  width: auto;
  height: 200px;
  padding: 1.5rem;
  margin: 0 1rem;
  border: solid 1px #999;
}
#contact #contact_pp p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
#contact #contact_pp li {
  font-size: 1.2rem;
  margin: 0 0 1rem 1.5em;
  text-indent: -1.25em;
}
#contact #contact_pp li::before {
  content: "●";
  padding-right: 0.5em;
}

@media screen and (min-width:480px) {
}

@media screen and (min-width:768px) {
  /******* フッター *******/
  footer .inner.contents {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }
  footer #f_address_area {
    width: 400px;
    padding-right: 3rem;
    border-right: 1px solid #999;
  }
  footer #f_address_area img { margin-left: 0; }
  footer #f_address_area p { text-align: left; }
  footer #f_menu_area {
    width: calc(100% - 400px);
    display: block;
    padding-left: 3rem;
  }
  footer #f_menu_area > ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    height: 7rem;
    max-width: 300px;
  }
  footer #f_menu_area a:link, footer #f_menu_area a:visited { color: #004da2; }
  footer #f_menu_area a { font-size: 1.4rem; }
  footer .f_menu_main > a {
    display: block;
    padding: 0.5rem;
    font-weight: bold;
  }
  footer .f_menu_sub { display: none; }

  /******* 会社案内 *******/
  /*あいさつ*/
  #about_greeting img {
    float: right;
    margin: 0 0 0 1em;
  }
  /*概要*/
  #about_outline .flex_cts1 {
    width: 70%;
    padding-right: 2rem;
  }
  #about_outline .flex_cts2 { width: 30%; }
  #about_outline dl.flex {
    align-items: stretch;
    margin-bottom: 3px;
  }
  #about_outline dt {
    padding: 0.5rem;
    width: 11rem;
    background: #ddd;
  }
  #about_outline dd {
    width: calc(100% - 11rem);
    padding: 0.5rem;
  }
  /*沿革*/
  #about_history dl.flex {
    margin: 1rem 0;
    padding: 0.5rem 0 1rem 0;
    border-bottom: dotted 1px #ccc;
  }
  #about_history dt {
    width: 11em;
    font-weight: normal;
  }
  #about_history dd { width: calc(100% - 11em); }
}

@media screen and (min-width:1024px) {
  /******* フッター *******/
  footer .inner.contents { padding: 2rem; }
  footer #f_menu_area > ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    max-width: none;
    height: auto;
  }
  footer .f_menu_main > a { margin-right: 0; }
  footer .f_menu_sub { 
    display: block;
    padding: 0 0.5rem 0.5rem;
  }
  footer .f_menu_sub a::before {
    content: "\f0da";
    font-family: "forkAwesome";
    padding-right: 0.5em;
  }

  /******* 事業案内 *******/
  #business #business_wc dd { width: calc(100% - 10em); }
}
