@charset "UTF-8";

/* 1000px以下 */
@media screen and (max-width: 1000px) {
  /* #header */
  #header,
  .head {
    height: 60px;
  }
  #header .logo a {
    margin-top: 0;
    top:4px;
  }

  /* #nav */
  #nav {
    font-size: 14px;
    font-weight: bold;
  }
  .menu-trigger {
    display: inline-block;
  }
  #nav ul.active {
    right: 0;
  }
  #nav ul {
    background: rgba(255, 255, 255, 0.9);
    width: 300px;
    height: calc(100% - 66px);
    transition: all 0.4s;
    position: fixed;
    top: 66px;
    bottom: 0;
    right: -300px;
    overflow: hidden;
    padding: 12px;
    z-index: -1;
    box-sizing: border-box;
    overflow-y: auto;
  }
  #nav ul li {
    display: block;
  }
  #nav li a {
    color: #4d4d4d;
    margin: 0;
    padding: 10px 20px 10px 10px;
    border-bottom: 1px dashed #ddd;
    width: 100%;
    box-sizing: border-box;
    height: auto;
  }
  #nav li .btn {
    box-shadow: none;
    top: auto;
    border-radius: 0;
    background: none;
    color: #e22727;
  }
  #nav li a.contract {
    margin-left: 0;
    border-bottom: 1px dashed #ddd;
  }
  #nav li a.contract:hover {
    border-bottom: 1px dashed #ddd;
    top: auto;
  }
  #nav li a.login {
    margin-left: 0;
    padding-left: 35px;
  }
  #nav li a.login {
    background: url(../img/icon_login_b.png);
    background-repeat: no-repeat;
    background-position: 10px center;
  }

  #nav li a.contract::before,
  #nav li a.contract::after {
    border-bottom: solid 1px #d13440;
    bottom: 0;
    content: "";
    display: block;
    position: absolute;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    width: 0;
  }
  #nav li a.contract::before {
    left: 50%;
  }
  #nav li a.contract::after {
    right: 50%;
  }
  #nav li a.contract:hover::before,
  #nav li a.contract:hover::after {
    width: 50%;
  }

  /* #footer */
  #footer .flex {
    display: block;
  }
  #footer .login {
    max-width: none;
  }
  #footer .tel_box,
  #footer .mal_box {
    float: none;
    margin: 0;
  }
  #footer .tel_box {
    margin-bottom: 40px;
  }
  .soudan .tel_box,
  .soudan .mail_box {
    float: none;
  }
  .soudan .mail a {
    width: 100%;
  }

  /* #contact */
  #contact .flex {
    display: block;
  }
  #contact dl {
    box-sizing: border-box;
  }
  #contact dl:nth-child(1) {
    padding: 20px;
  }
  #contact dl:nth-child(2),
  #contact dl:nth-child(3) {
    padding: 20px;
    padding-top: 60px;
  }
  #contact dl:nth-child(2)::before,
  #contact dl:nth-child(3)::before {
    border-left: 95px solid transparent;
    border-top: 40px solid #f4f6f7;
    left: 0;
    right: 0;
    margin: auto;
  }
  #contact dl:nth-child(3)::before {
    border-top: 40px solid #daeae9;
  }
}

/* 800px以下 */
@media screen and (max-width: 800px) {
  /* 共通 */
  .section h2 {
    font-size: 35px;
  }
  img {
    max-width: 100%;
  }
  /* #footer */
  #footer .sitemap_inner {
    flex-wrap: wrap;
  }
  #footer .sitemap dl {
    width: 50%;
    margin-bottom: 25px;
  }
  #footer .footer_contents_bottom {
    height: auto;
  }

  /* #contact */
  #contact a.btn {
    min-width: 100%;
    width: 100%;
  }
}

/* 500px以下 */
@media screen and (max-width: 500px) {
  /* 共通 */
  .pc {
    display: none;
  }
  .sp {
    display: inline;
  }

  .section h2.denki span::before,
  .section h2.fukidashi span::before,
  .section h2.akushu span::before {
    content: none;
  }
  .section h2 {
    font-size: 24px;
  }
  h2 + p {
    font-size: 16px;
  }
  .section h2 span {
    padding: 0 10px;
  }
 
  /* #contact */
  #contact h2 {
    font-size: 24px;
  }
  #contact a.btn {
    font-size: 24px;
  }

  /* #footer */
  #footer .sitemap_inner {
    display: block;
  }
  #footer .sitemap dl {
    width: 100%;
    margin-bottom: 40px;
  }
  .soudan .tel {
    font-size: 30px;
    background-position: left top;
    background-size: 30px auto;
  }
}
