@media all and (max-width: 960px) {
  .w {
    width: 655px;
  }
  .header {
    overflow: hidden;
  }
  .header .logo {
    float: left;
  }
  .header .search_top {
    height: 25px;
    margin-top: 23px;
    margin-left: 50px;
    float: right;
  }
  .header .search_top input {
    width: 150px;
  }
  .menu .link {
    margin-left: 0;
  }
  .page_content .chat {
    display: none;
  }
  .page_content .center {
    margin-right: 0;
  }
  .page_home .left {
    display: none;
  }
  .page_home .center {
    float: none;
    margin: 30px auto 0 auto;
  }
  .page_home .right {
    display: none;
  }
  .content_profiles .left {
    display: none;
  }
  .content_profiles .center {
    width: 410px;
    margin-right: 25px;
    margin-left: 0;
  }
  .content_profiles .center .user .user_info .user_information {
    max-width: 225px;
  }
  .content_profiles .center .user .user_cafe .my_cafe a figure {
    width: 169px;
    height: 125px;
  }
  .content_profiles .center .user .user_cafe .my_cafe a span {
    width: 169px;
  }
  .content_profiles .right {
    width: 220px;
  }
  .content_profiles .right form input {
    width: 175px;
  }
}
@media all and (max-width: 740px) {
  .w {
    width: 480px;
  }
  #chat_link {
    display: block;
  }
  .header .logo {
    font-size: 26px;
  }
  .footer .copy,
  .footer .email {
    text-align: center;
    float: none;
    padding: 10px 0 0 0;
  }
  .footer .copy {
    padding-top: 20px;
  }
  .menu .link ul li {
    margin-right: 20px;
  }
  .page_cafe .cafe .cafe_photo img {
    width: 100%;
  }
  .page_cafe .cafe_action a {
    width: 140px;
  }
  .page_cafe .cafe_action a:nth-last-child(1) {
    margin-left: 0px;
  }
  .page_cafe .cafe_action p {
    width: auto;
    text-align: center;
    text-align: -webkit-center;
    display: block;
  }
  .page_cafe .cafe_action p:nth-last-child(1) {
    margin-left: 0;
  }
  .page_cafe .cafe_action #cafe_in_date {
    width: 140px;
    margin-top: 10px;
  }
  .page_content .left {
    width: 100%;
    margin-top: 20px;
  }
  .page_content .left .logo {
    display: none;
  }
  .page_content .center {
    width: 100%;
    position: relative;
    margin: 30px auto 0 auto;
  }
  .page_content .right {
    width: 100%;
    margin-top: 20px;
  }
  .page_content .right .list_friend {
    max-height: 269px;
    min-height: 269px;
  }
  .content_profiles .right form input {
    width: calc(100% - 45px);
  }
}
@media all and (max-width: 520px) {
  .w {
    width: 320px;
  }
  .mob_menu {
    float: left;
    display: block;
    color: #fff;
    font-size: 12px;
    margin-top: 14px;
    cursor: pointer;
  }
  .mob_menu:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 21px;
    height: 23px;
    background: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjI1NnB4IiB2aWV3Qm94PSIwIDAgNDU5IDQ1OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDU5IDQ1OTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnIGlkPSJtZW51Ij4KCQk8cGF0aCBkPSJNMCwzODIuNWg0NTl2LTUxSDBWMzgyLjV6IE0wLDI1NWg0NTl2LTUxSDBWMjU1eiBNMCw3Ni41djUxaDQ1OXYtNTFIMHoiIGZpbGw9IiNGRkZGRkYiLz4KCTwvZz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K) no-repeat center;
    background-size: cover;
  }
  .menu .link {
    float: none;
    clear: both;
    display: none;
    margin: 0;
    padding-top: 15px;
  }
  .menu .link ul {
    padding-top: 5px;
    width: 100%;
    border-top: 1px solid #757575;
  }
  .menu .link ul li {
    float: none;
    padding: 10px 0;
    margin-right: 0;
  }
  .header {
    height: auto;
    padding: 20px 0;
  }
  .header .logo {
    text-align: center;
    line-height: 1;
    width: 100%;
  }
  .header .search_top {
    width: 100%;
    margin: 0 0 0 0;
  }
  .header .search_top form {
    width: 197px;
    margin: 0 auto;
  }
  .cafe-list {
    display: none;
  }
  .page_content .center .user .user_info .user_photo {
    width: 100%;
    max-width: none;
  }
  .page_content .center .user .user_info .user_photo figure {
    display: inline-block;
    vertical-align: top;
    width: 92px !important;
    height: 88px !important;
  }
  .page_content .center .user .user_info .user_photo .add_photo {
    display: inline-block;
    padding: 7px 10px;
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 100%;
    width: calc(100% - 20px);
    margin-left: 0;
  }
  .page_content .center .user .user_info .user_information {
    padding-top: 10px;
    padding-left: 0;
  }
  .page_content .center .user .user_cafe .my_cafe a:nth-child(1) {
    margin-right: 15px;
  }
  .page_content .center .user .user_cafe .my_cafe a figure {
    width: 135px;
    height: 100px;
  }
  .page_content .center .user .user_cafe .my_cafe a span {
    width: 135px;
  }
  .page_msg .msg ul li .msg_info .msg_end p {
    max-width: 140px;
  }
  .page_cafe .cafe_list_user ul li a:nth-child(1) figure {
    width: 95px;
    height: 85px;
  }
  .page_cafe .cafe_list_user ul li a:nth-child(2) figure {
    margin-left: 10px;
    width: 190px;
    height: 85px;
  }
  .page_cafe {
    max-width: 320px;
  }
  .page_cafe .cafe .cafe_desc {
    word-break: break-all;
  }
  .page_home .cafe-carousel {
    max-height: 194px;
  }
  .owl-carousel .owl-item img {
    max-height: 194px;
  }
  .page_home .right {
    float: right;
    margin-right: 30px;
  }
  .page_home .left {
    margin-left: 30px;
  }
  .page_home .right,
  .page_home .left {
    display: block;
    max-width: 105px;
    min-width: 105px;
    margin-top: 30px;
  }
  .page_home .cafe-carousel .container-carousel {
    max-width: 290px;
  }
  .page_home .cafe-list a {
    margin-right: 43px !important;
  }
  .page_home .cafe-list a:nth-child(2) {
    margin-right: 0 !important;
  }
  .page_home .cafe-list a:nth-child(3) {
    display: none !important;
  }
}
