/*====================
{{PC基本設計}}
 - 〜479px：SP縦
 - 480px〜599px：SP横
 - 600px〜959px：タブレット
 - 960px〜1080px：小型PC
 - 1080px〜：通常PC & 大型PC
====================*/

/* 960px〜1280px：小型PC
------------------------------ */
@media screen and (max-width:1279px) {

}

/* 600px〜959px：タブレット
------------------------------ */
@media screen and (max-width:959px) {

    html {
        font-size: 80%;
    }

    .c-pconly {
        display: none;
    }

    .c-phoneonly {
        display: block;
    }

    header {
        margin-top: 54px;
    }

    #l-about {
        padding: 60px 0 60px;
    }

    #l-signtype {
        padding: 60px 0;
    }

    #l-gallery {
        padding: 60px 0;
    }

    #l-flow {
        padding: 60px 0;
    }

    #l-company {
        padding: 60px 0;
    }

    #l-contact {
        padding: 60px 0;
    }

    .p-toplogo {
        width: 30%;
    }

    .navToggle {
        display: block;
        position: fixed;    /* bodyに対しての絶対位置指定 */
        right: 10px;
        top: 5px;
        width: 35px;
        height: 44px;
        cursor: pointer;
        z-index: 300;
        background: transparent;
        text-align: center;
    }

    .navToggle span {
        display: block;
        position: absolute;    /* .navToggleに対して */
        width: 28px;
        border-bottom: solid 4px #333333;
        -webkit-transition: .35s ease-in-out;
        -moz-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
        left: 3px;
    }

    .navToggle span:nth-child(1) {
        top: 5px;
    }

    .navToggle span:nth-child(2) {
        top: 14px;
    }

    .navToggle span:nth-child(3) {
        top: 23px;
    }

    .navToggle span:nth-child(4) {
        border: none;
        color: #333333;
        font-size: 12px;
        font-weight: bold;
        top: 25px;
        left: 1px;
    }

    /* 最初のspanをマイナス45度に */
    .navToggle.active span:nth-child(1) {
        top: 14px;
        left: 3px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    /* 2番目と3番目のspanを45度に */
    .navToggle.active span:nth-child(2),
    .navToggle.active span:nth-child(3) {
        top: 14px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    nav.globalMenuSp {
        position: fixed;
        z-index: 200;
        top: 0;
        left: 0;
        background: #f6f6f6;
        color: #333333;
        text-align: center;
        transform: translateY(-100%);
        transition: all 0.3s;
        width: 100%;
    }

    nav.globalMenuSp ul {
        background: #f6f6f6;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    nav.globalMenuSp ul li {
        font-size: 14px;
        list-style-type: none;
        padding: 0;
        width: 100%;
        height: auto;
        border-bottom: 1px dotted #333;
    }

    /* 最後はラインを描かない */
    nav.globalMenuSp ul li:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    nav.globalMenuSp ul li a {
        display: block;
        width: 100%;
        height: 54px;
        color: #333333;
        text-decoration: none;
        line-height: 54px;
    }

    /* このクラスを、jQueryで付与・削除する */
    nav.globalMenuSp.active {
        transform: translateY(0%);
    }

    .p-topslider__slider1 {
        height: 500px;
    }

    .p-topslider__slider2 {
        height: 500px;
    }

    .p-topslider__slider2 img {
        width: 85%;
    }

    .p-topslider__slider3 {
        height: 500px;
    }

    .p-top__pagelink {
        padding: 50px 0 50px;
    }

    .p-top__pagelink ul li {
        width : -webkit-calc(32% - 10px) ;
        width: calc(32% - 10px);
        margin-right: 10px;
    }

    #p-about__title {
        margin-bottom: 45px;
    }

    .p-about__introduction {
        font-size: 1rem;
    }

    .p-about__ourbusinesstitle {
        margin-bottom: 40px;
    }

    .p-about__ourbusinessboxes>li:nth-child(-n+3) {
        margin-bottom: 30px;
    }

    .p-about__ourbusinessbox {
        width: 32%;
    }

    .p-about__ourbusinessname {
        font-size: 0.8rem;
        line-height: 3.75;
    }

    #p-signtype__title {
        margin-bottom: 40px;
    }

    .p-signtype__introduction {
        margin-bottom: 40px;
        font-size: 1rem;
    }

    .p-gallery__clientname {
        font-size: 0.8125rem;
    }

    .p-flow__flowdescription>dt {
        font-size: 1rem;
    }

    .p-company__stuffimage {
        height: 180px;
    }

    .p-company__stuffdescription>dt {
        width: 35%;
    }

    .p-contact__linksheader>img {
        width: 35%;
    }

    .p-footernav>ul>li {
        margin-right: 20px;
    }

}

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

    .p-company__stuffimage {
        height: 150px;
    }

}

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

    .p-topslider__slider1 {
        height: 420px;
    }

    .p-topslider__slider2 {
        height: 420px;
    }

    .p-topslider__slider2 img {
        padding-top: 40px;
    }

    .p-topslider__slider3 {
        height: 420px;
    }

    .p-topslider__slider3 img {
        padding-top: 40px;
    }

    .p-company__stuffimage {
        height: 140px;
    }


}

/* 480px〜599px：SP横
------------------------------ */
@media screen and (max-width:599px) {

    html {
        font-size: 60%;
    }

    .p-topslider__slider1 {
        height: 340px;
    }

    .p-topslider__slider2 {
        height: 340px;
    }

    .p-topslider__slider3 {
        padding-top: 10px;
        height: 340px;
    }

    .p-about__ourbusinessbox {
        width: 49%;
    }

    .p-about__ourbusinessboxes>li:nth-child(-n+3) {
        margin-bottom: 20px;
    }

    .p-gallery__box:nth-child(3n) {
        margin-right: 3%;
    }

    .p-gallery__box {
        width: 48.5%;
        margin-right: 3%;
    }

    .p-gallery__box:nth-child(2n) {
        margin-right: 0;
    }

    .p-flow__flowboxes {
        width: calc(96% - 40px);
        width : -webkit-calc(96% - 40px);
        padding: 30px 20px;
    }

    .p-company__predidentimage {
        height: 270px;
    }

    .p-company__description>h3 {
        font-size: 1.375rem;
    }

    .p-company__functionlists>ul {
        width: 43%;
        margin-right: 2%;
    }

    .p-company__stuffimage {
        height: 120px;
    }

}


/* 〜479px：SP縦
------------------------------ */

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

    .c-smallphoneonly {
        display: none;
    }

    .c-smallphoneonlydisplay {
        display: block;
    }

    .p-topslider__slider1 img {
        width: 100%;
    }

    .p-topslider__slider2 img {
        width: 85%;
        padding-top: 20px;
    }

    .p-topslider__slider3 img {
        width: 75%;
        padding-top: 20px;
    }

    .p-topslider__slider1 {
        height: 270px;
    }

    .p-topslider__slider2 {
        height: 270px;
    }

    .p-topslider__slider3 {
        height: 270px;
    }

    .p-top__pagelink {
        padding: 40px 0 60px 0;
    }

    .p-top__pagelinkboxes {
        display: block;
    }

    .p-top__pagelink ul li {
        width : 70%;
        margin: 0 auto 15px;
    }

    .p-top__pagelink ul li:last-child {
        margin: 0 auto;
    }

    #p-about__title {
        margin-bottom: 30px;
    }

    .p-about__ourbusinessboxes {
        display: block;
    }

    .p-about__ourbusinessbox {
        width: 90%;
        margin: 0 auto 20px;
    }

    .p-about__ourbusinessboxes>li:nth-child(-n+3) {
        margin-bottom: 20px;
    }

    .p-about__ourbusinessboxes>:last-child {
        margin-bottom: 0;
    }

    .p-gallery__boxes {
        display: block;
    }

    .p-gallery__box {
        width: 90%;
        margin: 0 auto 30px;
    }

    .p-gallery__box:nth-child(3n) {
        margin-right: auto;
    }
    .p-gallery__box:nth-child(2n) {
        margin-right: auto;
    }

    .p-gallery__box:nth-last-child(-n+2) {
        margin-bottom: 30px;
    }

    .p-gallery__box:last-child {
        margin-bottom: 0;
    }

    .p-gallery__img {
        margin-bottom: 10px;
    }

    .p-flow__flowimages {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 0 auto 30px auto;
    }

    .p-flow__flowimage {
        width: 20%;
        margin-right: 1%;
        margin-bottom: 10px;
    }

    .p-flow__arrow {
        width: 3%;
        margin-right: 1%;
    }

    .p-flow__flowbox {
        padding: 10px 0;
    }

    .p-company__descriptionboxes {
        margin: 0 auto 40px;
    }

    .p-company__descriptionbox {
        display: block;
        padding: 40px 0;
    }

    .p-company__predidentimage {
        width: 100%;
        height: 290px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .p-company__descriptionimage>img {
        width: 100%;
    }

    .p-company__ourcompany {
        width: 100%;
        margin-bottom: 10px;
    }

    .p-company__ourcompany>img {
        width: 100%;
    }

    .p-company__description {
        width: 100%;
    }

    .p-company__signature {
        bottom: 10px;
        right: 0;
    }

    .p-company__signature>img {
        width: 160px;
    }

    .p-company__functionlists {
        display: block;
    }

    .p-company__functionlists>ul {
        width: 90%;
        margin-left: 6%;
    }

    .p-company__balloon {
        width: 60%;
    }

    .p-company__stufflists {
        display: block;
    }

    .p-company__stufflistbox {
        width: 70%;
        margin: 0 auto 20px;
    }

    .p-company__stufflistbox:last-child {
        margin-bottom: 0;
    }

    .p-company__stuffimage {
        height: 220px;
    }

    .p-contact__linksheader {
        margin-bottom: 20px;
    }

    .p-contact__linksheader>img {
        width: 75%;
    }

    .p-contact__links {
        display: block;
    }

    .p-contact__link {
        width: 70%;
        margin: 0 auto 10px;
    }

    .p-contact__link:last-child {
        margin-bottom: 0;
    }

    .p-contact__link>h4 {
        font-size: 1.25rem;
    }

    .p-footernav>ul {
        display: block;
    }

    .p-footernav>ul>li {
        margin-right: 0;
    }

    .p-footernav>ul>li>a {
        display: block;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        font-size: 1.375rem;
        line-height: 3;
    }

    .p-footerlogo>address {
        font-size: 1.125rem;
    }

    .p-footerlogo__tel {
        font-size: 1.3rem;
    }

    .p-copyright>small {
        font-size: 0.2rem;
    }

    #btn-guide {
        right: 5px;
    }

    .guide_contact {
        display: block;
        max-width: 60px;
        min-width: 60px;
    }

    .guide_contact img {
        max-width: 60px;
        min-width: 60px;
    }

    .guide_image2 {
        margin-top: -2.5px;
    }

}

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

    .p-topslider__slider1 img {
        width: 107%;
        margin-left: -3.5%;
    }

    .p-topslider__slider2 img {
        width: 95%;
        padding-top: 30px;
    }

    .p-topslider__slider3 img {
        width: 95%;
        padding-top: 20px;
    }

    .p-company__stuffimage {
        height: 180px;
    }

}

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

    .p-company__stuffimage {
        height: 150px;
    }

}
