@media screen and (max-width: 1128px) {
  .container {
    width: 96%;
    margin: 0 auto;
    padding: 0 2%;
  }
}

@media screen and (max-width: 960px) {
  .top_message {
    font-size: 75%;
    text-align: center;
  }

  .header .box {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
  
  .header .box .logo img {
    width: 135px;
    height: auto;
  }
  
  .header .box:last-child {
    width: 100%;
    text-align: center;
  }

  .header .gnavi {
    font-size: 80%;
  }

  .header .gnavi li {
    width: calc(100% / 3);
    margin: 0;
  }

  .header .gnavi li:last-child {
    margin: 18px 0 8px;
  }

  /**
   * common
   */
  article section {
    font-size: 90%;
    margin: 0 0 50px;
  }

  article section.title {
    height: 250px;
  }

  article section h2.ttl {
    font-size: 150%;
  }

  /**
   * home
   */
  .home article section.kv {
    height: 300px;
  }
  
  .home article section.kv h1 {
    font-size: 130%;
  }

  .home article section h2 {
    font-size: 140%;
    text-align: center;
    border-bottom: 1px solid rgba(240, 145, 153, 1);
    font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
    font-weight: normal;
    margin: 0 0 14px;
  }
  
  .home article section.menu .box {
    width: 100%;
  }
  
  .home article section.menu .box:last-child {
    margin: 50px 0 0;
  }
  
  .home article section.menu .box .image {
    height: 180px;
  }
  
  .home article section.introduction img {
    width: 32%;
  }

  /**
   * page-template-profile
   */
  .page-template-profile article section.info img {
    width: 32%;
  }

  .page-template-profile article section.entitlements .photos div {
    width: calc(100% / 3);
    text-align: center;
    padding: 20px;
  }

  /**
   * page-template-contact
   */
  .page-template-contact table tr th {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(240, 145, 153, 1);
    padding: 0px 2px 8px;
    font-weight: normal;
    text-align: left;
  }

  .page-template-contact table tr th .required {
    font-size: 65%;
    padding: 4px 6px;
    float: none;
  }
  
  .page-template-contact table tr td {
    width: 100%;
    display: block;
    border-bottom: none;
    padding: 20px 2px 40px;
  }
}

@media screen and (max-width: 520px) {
  /**
   * ヘッダー
   */
  .top_message {
    display: none;
  }
  
  .header {
    height: 80px;
    padding: 6px 0;
  }
  
  .header .box {
    width: 100%;
    padding: 6px 0;
  }
  
  .header .box:last-child {
    padding: 0;
  }
  
  .header .box .logo img {
    width: 120px;
  }
  
  .header .box:last-child .gnavi {
    display: none;
  }

  /**
   * フッター
   */
  .footer .navis li {
    width: 50%;
    text-align: left;
    margin: 0 0 8px;
  }
  
  /**
   * common
   */
  #sp_nav {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 110%;
    margin: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    overflow: hidden;
  }
  
  #sp_nav .background_display {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: block;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.6);
  }
  
  #sp_nav .sp_nav_inner {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0;
    z-index: 999999;
  }
  
  #sp_nav .icon {
    width: 80px;
    height: 80px;
    color: #2c1608;
    font-size: 40px;
    line-height: 45px;
    text-align: center;
    position: relative;
  }
  
  #sp_nav .icon span {
    left: 15px;
    width: 30px;
    display: block;
    position: absolute;
    outline: 1px solid transparent;
    border-bottom: solid 1px rgba(240, 145, 153, 1);
    transition: .35s ease-in-out;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
  }
  
  #sp_nav .icon span:nth-child(1) {
    top: 22px;
  }
  #sp_nav .icon span:nth-child(2) {
    top: 30px;
  }
  #sp_nav .icon span:nth-child(3) {
    top: 38px;
  }
  
  #sp_nav .icon p {
    color: rgba(240, 145, 153, 1);
    left: 14px;
    top: 44px;
    line-height: 1;
    position: absolute;
    font-size: 12px;
    display: block;
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    -o-transform: scale(0.7);
    transform: scale(0.7);
  }
  
  #sp_nav .menu {
    top: 80px;
    width: 100%;
    right: -104%;
    height: 100%;
    z-index: 10000;
    position: fixed;
    transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    font-size: 110%;
  }
  
  #sp_nav .scroll {
    top: 0;
    bottom: 0;
    width: 100%;
    padding: 0 0 30px;
    overflow-y: scroll;
    position: absolute;
    -webkit-overflow-scrolling: touch;
  }
  
  #sp_nav .menu ul {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
  }
  
  #sp_nav .menu li.parent {
    width: 100%;
    text-align: center;
  }
  
  #sp_nav .menu .parent {
    border-bottom: dotted 1px #fff;
  }
  
  #sp_nav .menu li.parent > a {
    display: block;
    padding: 40px 14px;
    font-size: 80%;
    position: relative;
  }
  
  #sp_nav .menu li.parent > a span {
    position: relative;
    z-index: 1;
  }
  
  #sp_nav .icon.menu_active {
    z-index: 99999;
  }
  
  #sp_nav .icon.menu_active span:nth-child(1) {
    top: 30px;
    transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }
  
  #sp_nav .icon.menu_active span:nth-child(2), #sp_nav .icon.menu_active span:nth-child(3) {
    top: 30px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  #sp_nav .menu_display {
    right: 0%;
  }
  
  #sp_nav .icon.menu_active span {
    border-bottom: solid 1px rgba(240, 145, 153, 1);
  }
  
  #sp_nav .icon.menu_active p {
    color: rgba(240, 145, 153, 1);
  }
  
  #sp_nav #menu li {
    text-align: left;
  }
  
  #sp_nav #menu li a {
    font-size: 85%;
    color: rgba(240, 145, 153, 1);
    width: 100%;
    display: block;
    border-top: solid 1px rgba(240, 145, 153, 1);
    background: rgba(240, 145, 153, .05);
    padding: 20px 14px;
  }
  
  #sp_nav #menu li:last-child a {
    border-bottom: solid 1px rgba(240, 145, 153, 1);
  }
  
  #sp_nav #menu li a span {
    font-size: 80%;
    float: right;
    margin: 2px 0 0;
  }

  article section.title {
    height: 200px;
  }

  article section.title h1 {
    font-size: 170%;
  }

  article section h2.ttl {
    font-size: 140%;
  }

  article section:first-child {
    margin: 0 0 40px;
  }

  /**
   * home
   */
  .home article section.kv {
    height: 230px;
  }

  .home article section.menu .box .image {
    height: 150px;
  }
  
  .home article section.introduction img {
    width: 38%;
  }

  /**
   * page-template-profile
   */
  .page-template-profile article section.info img {
    width: 38%;
  }

  .page-template-profile article section.entitlements .photos div {
    width: calc(100% / 2);
    padding: 12px 20px;
  }

  /**
   * page-template-contact
   */
  .page-template-contact table {
    margin: 0;
  }

  .page-template-contact .check {
    text-align: left;
  }

  .page-template-contact .check p {
    text-align: center;
  }


}
