@charset "utf-8";

/* PC */
@media screen and (min-width:768px) {

  h1, h2, h3, h4, h5, dt {
    font-family: 'Sawarabi Mincho', "Yu Mincho", serif;
  }

  .wrapper {
    max-width: 1000px;
    margin: 0 auto;
  }

  /* key_v */
  .key_v {
    height: 288px;
    position: relative;
  }

  .key_v h1 {
    position: absolute;
    top: 85px;
    left: calc(50% - 380px);
  }

  /* safe-system_navi */
  .safe-system_navi {
    background: #ffffff;
    padding: 0 30px;
    margin-top: 30px;
  }

  .safe-system_navi h2 {
    color: #833e0c;
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
  }

  .safe-system_navi ul {
    border-left: 1px solid #d1d1d1;
  }

  .safe-system_navi li {
    border: 1px solid #d1d1d1;
    box-sizing: border-box;
    float: left;
    width: calc(12.5%);
    border-left: none;
    background: #fbfbfb;
  }

  .safe-system_navi a {
    padding: 10px 5px 10px;
    display: block;
    box-sizing: border-box;
    font-size: 16px;
    text-align: center;
    color: #833e0c;
    font-family: 'Sawarabi Mincho', "Yu Mincho", serif;
    position: relative;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #f2f2f2;
    border-right: 3px solid #f2f2f2;
    height: 100%;
  }

  .safe-system_navi a span {
    font-size: 10px;
    display: block;
    color: #b0b0b0;
    font-family: sans-serif;
  }

  .safe-system_navi li a:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    display: block;
    margin-bottom: 5px;
  }

  .safe-system_navi li:nth-of-type(1) a:before {
    background: url(../include/img/icon_01.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(2) a:before {
    background: url(../include/img/icon_02.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(3) a:before {
    background: url(../include/img/icon_03.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(4) a:before {
    background: url(../include/img/icon_04.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(5) a:before {
    background: url(../include/img/icon_05.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(6) a:before {
    background: url(../include/img/icon_06.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(7) a:before {
    background: url(../include/img/icon_07.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(8) a:before {
    background: url(../include/img/icon_08.png) no-repeat;
    background-size: contain;
  }

  #safe-system_index .safe-system_navi .safe-system_index a,
  #step .safe-system_navi .step a,
  #service .safe-system_navi .service a,
  #technique_face .safe-system_navi .technique a,
  #technique_body .safe-system_navi .technique a,
  #salon .safe-system_navi .salon a,
  #qa .safe-system_navi .qa a,
  #user-voice .safe-system_navi .user-voice a,
  #kaiin .safe-system_navi .kaiin a {
    background: #f1f1f1;
    border-top: 3px solid #f6f6f6;
    border-left: 3px solid #f6f6f6;
    border-bottom: 3px solid #ebebeb;
    border-right: 3px solid #ebebeb;
  }

  /* contents */
  .contents {
    width: 760px;
    margin: 50px auto;
    box-sizing: border-box;
  }

  /* 1366px以下 用 */
  @media screen and (min-width:768px) and (max-width:1366px) {
    .safe-system_navi ul {
      border-left: 1px solid #d1d1d1;
    }

    .safe-system_navi li {
      border: 1px solid #d1d1d1;
      box-sizing: border-box;
      float: left;
      width: 25% !important;
      border-left: none;
      background: #ededed;
    }

    .safe-system_navi li:nth-last-child(-n+4) {
      border-top: none;
    }

    .safe-system_navi a {
      padding: 5px 0 2px;
      display: block;
      box-sizing: border-box;
      font-size: 10px;
      text-align: center;
      color: #833e0c;
      position: relative;
      height: 100%;
    }

    .safe-system_navi a span {
      display: none !important;
    }
  }
}

/* SP */
@media screen and (max-width:767px) {

  h2 img,
  h3 img {
    width: inherit;
    width: inherit;
    transform: scale(0.75);
    transform-origin: left center;
  }

  .contents {
    overflow: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  dt {
    font-family: 'Sawarabi Mincho', "Yu Mincho", serif;
  }

  /* key_v */
  .key_v {
    height: 150px;
    position: relative;
    min-width: 320px;
    overflow: hidden;
  }

  .key_v h1 {
    position: absolute;
    top: 50%;
    transform: translate(0, -43%);
    margin-right: 20px;
  }

  /* safe-system_navi */
  .safe-system_navi {
    margin-top: 10px;
  }

  .safe-system_navi h2 {
    color: #833e0c;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: center;
  }

  .safe-system_navi ul {}

  .safe-system_navi li {
    border: 1px solid #d1d1d1;
    box-sizing: border-box;
    float: left;
    width: 25%;
    border-left: none;
    background: #fbfbfb;
  }

  .safe-system_navi li:nth-last-child(-n+4) {
    border-top: none;
  }

  .safe-system_navi li:nth-of-type(4),
  .safe-system_navi li:nth-of-type(8) {
    border-right: none;
  }

  .safe-system_navi a {
    padding: 5px 0 2px;
    display: block;
    box-sizing: border-box;
    font-size: 10px;
    text-align: center;
    color: #833e0c;
    position: relative;
    height: 100%;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #f2f2f2;
    border-right: 2px solid #f2f2f2;
    height: 100%;
  }

  .safe-system_navi li a:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 25px;
    height: 25px;
    display: block;
    margin-bottom: 2px;
  }

  .safe-system_navi li:nth-of-type(1) a:before {
    background: url(../include/img/icon_01.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(2) a:before {
    background: url(../include/img/icon_02.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(3) a:before {
    background: url(../include/img/icon_03.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(4) a:before {
    background: url(../include/img/icon_04.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(5) a:before {
    background: url(../include/img/icon_05.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(6) a:before {
    background: url(../include/img/icon_06.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(7) a:before {
    background: url(../include/img/icon_07.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi li:nth-of-type(8) a:before {
    background: url(../include/img/icon_08.png) no-repeat;
    background-size: contain;
  }

  .safe-system_navi a span {
    display: none;
  }

  #safe-system_index .safe-system_navi .safe-system_index a,
  #step .safe-system_navi .step a,
  #service .safe-system_navi .service a,
  #technique_face .safe-system_navi .technique a,
  #technique_body .safe-system_navi .technique a,
  #salon .safe-system_navi .salon a,
  #qa .safe-system_navi .qa a,
  #user-voice .safe-system_navi .user-voice a,
  #kaiin .safe-system_navi .kaiin a {
    background: #f1f1f1;
    border-top: 2px solid #f6f6f6;
    border-left: 2px solid #f6f6f6;
    border-bottom: 2px solid #ebebeb;
    border-right: 2px solid #ebebeb;
  }

  /* contents */
  .contents {
    margin: 20px auto;
    box-sizing: border-box;
  }
}