@charset "utf-8";

/* --------------------------------

  nav

-------------------------------- */

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100000;
  }

  .main-nav {
    position: relative;
    will-change: margin;
    z-index: 1;
  }

  .main-nav > li {
    display: table;
    float: left;
    width: 50%;
  }

  .nav-link {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    width: 100%;
    height: 100px;
    color: #fe628d;
    font-size: 16px;
    line-height: 1.2;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 1px 0 rgba(0,0,0,.3);
  }

  .nav-link:hover {
    color: #9acbd9;
    text-decoration: none;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.3);
    z-index: 1;
  }

  .nav-link:active {
    top: 1px;
    box-shadow: 0 0 1px 0 rgba(0,0,0,.3);
  }

  .active .nav-link {
    color: #9acbd9;
  }

  .nav-name {
    display: block;
    position: relative;
    text-align: center;
  }

  /** アイコン **/

  .nav-name:before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 5px;
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% auto;
  }

  .nav-link:hover .nav-name:before {
    background-position: bottom;
  }

  .active .nav-name:before {
    background-position: bottom;
  }

  .nav-1 .nav-name:before {
    background-image: url(../img/menu/menu1.png);
  }
  .nav-2 .nav-name:before {
    background-image: url(../img/menu/menu2.png);
  }
  .nav-3 .nav-name:before {
    background-image: url(../img/menu/menu3.png);
  }
  .nav-4 .nav-name:before {
    background-image: url(../img/menu/menu4.png);
  }
  .nav-5 .nav-name:before {
    background-image: url(../img/menu/menu5.png);
  }
  .nav-6 .nav-name:before {
    background-image: url(../img/menu/menu6.png);
  }

  /** 英文字 **/

  .nav-name:after {
    content: "";
    display: block;
    color: #000;
    font-size: 10px;
  }

  .nav-link:hover .nav-name:after {
    color: #9acbd9;
  }

  .active .nav-name:after {
    color: #9acbd9;
  }

  .nav-1 .nav-name:after {
    content: "HOME";
  }
  .nav-2 .nav-name:after {
    content: "GREETING";
  }
  .nav-3 .nav-name:after {
    content: "INFORMATION";
  }
  .nav-4 .nav-name:after {
    content: "PEDIATRIC TREATMENT";
  }
  .nav-5 .nav-name:after {
    content: "PHOTO";
  }
  .nav-6 .nav-name:after {
    content: "ACCESS";
  }

@media screen and (max-width: 800px) {

  .main-nav {
    margin: -305px 0 0;
  }

  .open .main-nav {
    margin: 0;
    -webkit-transition: margin .4s;
            transition: margin .4s;
  }

}

@media screen and (min-width: 801px) {

  .nav {
    position: absolute;
    top: 180px;
  }

  .nav.is_stuck {
    box-shadow: 0 0 3px 0 rgba(0,0,0,.3);
  }

  .nav .inner {
    padding: 0 1rem;
  }

  .main-nav > li {
    width: 16%;
  }

  .main-nav > li.nav-4 {
    width: 20%;
  }

}

@media screen and (min-width: 1001px) {

  .nav .inner {
    padding: 0;
    background: url(../img/menu/line.png) no-repeat right;
  }

  .main-nav > li.nav-1 {
    width: 15%;
  }
  .main-nav > li.nav-2 {
    width: 17%;
  }
  .main-nav > li.nav-3 {
    width: 18%;
  }
  .main-nav > li.nav-4 {
    width: 20%;
  }
  .main-nav > li.nav-5 {
    width: 15%;
  }
  .main-nav > li.nav-6 {
    width: 15%;
  }

  .nav-link {
    height: 80px;
    text-align: center;
    background: url(../img/menu/line.png) no-repeat left;
    box-shadow: none;
  }

  .nav-link:hover {
    box-shadow: none;
  }

  .nav-link:active {
    top: 0;
  }

  .nav-name {
    display: inline-block;
    padding: 2px 0 0 40px;
    text-align: left;
  }

  .nav-name:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
  }

  .nav-link:active .nav-name {
    top: 1px;
  }

}

/* --------------------------------

  button

-------------------------------- */

  .nav-button {
    position: absolute;
    bottom: -60px;
    left: 0px;
    width: 60px;
    height: 60px;
    background: #fe5583;
    box-shadow: 0 0 3px 0 rgba(0,0,0,.3);
    border-radius: 0 0 10px 0;
    cursor: pointer;
    outline: none;
  }

  .open .nav-button {
    background: #9acbd9;
  }

  .nav-button:after {
    content: "ＭＥＮＵ";
    display: block;
    position: absolute;
    bottom: 3px;
    width: 100%;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
  }

  .open .nav-button:after {
    content: "ＣＬＯＳＥ";
    color: #fff;
    letter-spacing: -2px;
  }

  .nav-bar {
    display: block;
    position: absolute;
    top: -10px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    margin: auto;
    background: #fff;
  }

  .nav-bar1 {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }

  .nav-bar3 {
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }

  .open .nav-bar {
    background: #fff;
  }

  .open .nav-bar1 {
    -webkit-transform: rotate(45deg) translateY(0);
            transform: rotate(45deg) translateY(0);
  }

  .open .nav-bar2 {
    display: none;
  }

  .open .nav-bar3 {
    -webkit-transform: rotate(-45deg) translateY(0);
            transform: rotate(-45deg) translateY(0);
  }

@media screen and (min-width: 801px) {

  .nav-button {
    display: none;
  }

}
