/*
-----------------
contact @PC
-----------------
*/
#contact{
    width: 90vw;
    max-width: 1080px;
    margin: 0 auto;
    padding: 144px 0 90px 0;
}
#contact > h1{
    text-align: center;
    font-family: 'Comfortaa', cursive;
    position: relative;
    padding: 82px 0 0 0;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.48em;
}
#contact > h1:before{
    content:"";
    width: 1px;
    height: 60px;
    background: #af3d3d;
    position: absolute;
    top: 0;
    left: 50%;
}
#contact > div{
    padding: 30px 0 0 0;
}
#contact > div > p{
    font-size: 14px;
    padding: 18px 0 0 0;
    line-height: 2.2em;
    font-weight: 200;
}
#contact table{
    width: 100%;
    margin: 10px 0 0 0;
}
#contact table tr{
    border-top: 1px dotted #dcdcdc;
    border-bottom: 1px dotted #dcdcdc;
}
#contact table tr th, #contact table tr td{
    padding: 20px 30px 20px 30px;
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}
#contact table tr th{
    width: 30%;
    font-weight: 500;
}
#contact table tr th span.requireItem{
    position: relative;
    display: inline-block;
    padding: 0 50px 0 0;
}
#contact table tr th span.requireItem:after{
    content: "※必須";
    color: #af3d3d;
    position: absolute;
    right: 0;
    top: 0;
}
#contact table tr td > input{
    width: calc(100% - 10px);
    padding: 12px 5px 12px 5px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    border-radius: 2px;
}
#contact table tr td > input:hover{
    border: 1px solid #af3d3d;
}
#contact table tr td{
    width: 70%;
}
#contact table tr td div.formItem{
    position: relative;
}
#contact table tr td div.formItem:before{
    content:"";
    width: 6px;
    height: 6px;
    margin: -4px 0 0 -7px;
    border-top: 2px solid #af3d3d;
    border-right: 2px solid #af3d3d;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    position: absolute;
    top: 50%;
    right: 20px;
}
#contact table tr td div.formItem select{
    outline:none;
    -moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
    background: none transparent;
    vertical-align: middle;
    font-size: inherit;
    color: inherit;
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 5px 12px 5px;
    border:1px solid #dcdcdc;
    width:100%;
    border-radius:3px;
    color:#999;
    background: #fff;
}
#contact table tr td div.formItem select option{
    color: #000;
}
#contact table tr td div.formItem select:hover{
    border:1px solid #af3d3d;
}
#contact table tr td div.formItem select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #af3d3d;
}
#contact table tr td textarea{
    width: calc(100% - 20px);
    height: 144px;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    padding: 10px;
}
#contact table tr td textarea:hover{
    border:1px solid #af3d3d;
}
#contact ul{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: wrap;
    justify-content: center;
}
#contact ul li{
    margin: 30px 15px 0 15px;
}
#contact ul li a.btnRewrite{
    background: #eee;
    color: #000;
    display: inline-block;
    padding: 23px 56px 23px 56px;
    font-size: 14px;
    line-height: 1em;
}
#contact ul li button{
    background: #af3d3d;
    color: #fff;
    display: block;
    padding: 23px 56px 23px 56px;
    font-size: 14px;
    border: none;
    line-height: 1em;
    transition: all 0.2s linear;
    -o-transition: all 0.2s linear; /* opera */
    -moz-transition: all 0.2s linear; /* firefox */
    -webkit-transition: all 0.2s linear; /* chrome, safari */
    -ms-transition: all 0.2s linear; /* ie */
}
#contact ul li button:hover{
    opacity: 0.6;
}
#thanks{
    text-align: center;
}
#thanks p{
    font-size: 14px;
    line-height: 1.6em;
    padding: 26px 0 0 0;
}
#thanks p.thanks a{
    border: 1px solid #af3d3d;
    color: #af3d3d;
    font-size: 14px;
    display: inline-block;
    padding: 22px 88px 22px 88px;
    margin: 40px 0 0 0;
}
#thanks p.thanks a:hover{
    border: 1px solid #af3d3d;
    color: #fff;
    background: #af3d3d;
}

/*
-----------------
contact @SP
-----------------
*/

@media screen and (max-width: 880px) {
    #contact{
    }

    #contact table{
        width: 100%;
        margin: 10px 0 0 0;
    }
    #contact table tr{
        border-top: 1px dotted #dcdcdc;
        border-bottom: 1px dotted #dcdcdc;
    }
    #contact table tr th{
        padding: 20px 0 10px 0;
        text-align: left;
        font-size: 13px;
        vertical-align: middle;
        width: 100%;
        display: block;
    }
    #contact table tr td{
        padding: 0 0 20px 0;
        text-align: left;
        font-size: 13px;
        vertical-align: middle;
        width: 100%;
        display: block;
    }
}
@media screen and (max-width: 480px) {
    #contact ul li{
        width: 100%;
        margin: 30px 0 0 0;
    }
    #contact ul li a.btnRewrite{
        display: block;
        width: 100%;
        background: #eee;
        color: #000;
        display: inline-block;
        padding: 23px 0 23px 0;
        font-size: 14px;
        line-height: 1em;
        text-align: center;
    }
    #contact ul li button{
        width: 90vw;
        background: #af3d3d;
        color: #fff;
        display: block;
        padding: 23px 0 23px 0;
        font-size: 14px;
        border: none;
        line-height: 1em;
        transition: all 0.2s linear;
        -o-transition: all 0.2s linear; /* opera */
        -moz-transition: all 0.2s linear; /* firefox */
        -webkit-transition: all 0.2s linear; /* chrome, safari */
        -ms-transition: all 0.2s linear; /* ie */
    }
}
@media screen and (max-width: 480px) {
    #thanks p{
        font-size: 14px;
        line-height: 1.6em;
        padding: 26px 0 0 0;
        text-align: justify;
    }
    #thanks p.thanks{
        text-align: center;
    }
    #thanks p br{
        display: none;
    }
}