/* 中デバイス（タブレット, 768px 以上）
============================================== */
@media (min-width: 768px) {
  .img-size {
    width: 160px;
    margin-bottom: .5rem;
  }
}

/* 大デバイス（デスクトップ, 992px 以上）
============================================== */
@media (min-width: 992px) {


  nav ul {
    display: flex;
  }

  nav ul li {
    -webkit-transform: skewX(150deg);
    -moz-transform: skewX(150deg);
    transform: skewX(150deg);
    border-left: 1px dotted gray;
  }

  ul .right {
    -webkit-transform: skewX(150deg);
    -moz-transform: skewX(150deg);
    transform: skewX(150deg);
    border-right: 1px dotted gray;
  }

  ul .border-after {
    border-left: 1px dotted white;
  }

  footer .right {
    border-right: 1px dotted white;
  }

  nav ul li a {
    display: block;
    transform: skewX(-150deg);
    padding: 0 10px;
  }
}

/* 中デバイス（タブレット, 992px 未満）
============================================== */
@media (max-width: 991.98px) {
  .logo {background-size: 5px; height: auto; background-position: 0 0;}
  .logo h1 {top: 20px; left: 50px; line-height: 0.9;}
  .top_h101 {font-size: 100%;}
  .top_h102 {font-size: 60%;}
  .top_h103 {font-size: 70%;}
  .top_nav {top: 25px; padding-left: 0; display: flex;justify-content: center;}
  .top_nav li { padding-right: 25px; line-height: 0.6; margin-bottom: 1.6rem;}
  .top_nav li a {font-size: 100%;}
  h2 {font-size: 130%;}

  /*.top_message {padding: 0px 0 25px 0; font-size: 90%; line-height: 1.8;}*/
  .top_profiles_img {width: 25%; text-align: center; margin: 0 auto;}
  #profile .ma_tp_3 {margin-top: 0;}
  .top_profile dd {font-size: 82%; padding-bottom: 2.0rem;}
  .totop {right: 15px;}
}

/* 極小デバイス（縦向きモバイル, 576px 未満）
============================================== */
@media (max-width: 575.98px) {
  .logo {background-size: 3px; height: auto; background-position: 0 0;}
  .logo h1 {top: 20px; left: 50px; line-height: 1.6;}
  .top_h101 {font-size: 125%;}
  .top_h102 {font-size: 70%;}
  .top_h103 {font-size: 70%;}
  .top_nav {
    margin-top: 1rem;
    padding-left: 0;
    height: auto;
    display: flex;
    justify-content: center;
  }
  .top_nav li { 
    padding-right: 8px; 
    line-height: 0.6; 
    margin-bottom: 0rem;
    border-left: none;
  }
  .top_nav li a {font-size: 70%;}
  h2 {font-size: 150%; padding-bottom: 1rem}

  .top_btn {text-align: center;}
  .top_message {
    padding: 0px 0 25px 0; 
    font-size: 80%; 
    line-height: 2.8; 
    }
  .top_menu {
    font-size: 80%;
    margin-top: 0;
  }
  .top_profile {
    margin-bottom: 1rem;
  }
  .top_profiles_img {width: 50%; text-align: center; margin: 0 auto;}
  #profile .ma_tp_3 {margin-top: 0;}
  .top_profile dt {text-align: center; font-size: 120%; padding-top: 0.5rem;}
  .top_profile dd {font-size: 80%; padding-bottom: 2.0rem;}
  .top_contact p {padding-top: 0rem; font-size: 70%;}
  .totop {right: 10px;}
  .ftr_link {
    font-size: 70%;
  }
  .img_width80 {
    width: 100%;
  }
  .pa_lr_3 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .pa_tb_0_5top_profiles_img {
    text-align: center;
  }
}
