@charset 'utf-8';

/* ==========================================================================

	CONTACT

   ========================================================================== */


/*--------------------------------
	フォーム基本レイアウト
--------------------------------*/

.inner.contact {
    max-width: 700px;
    margin-bottom: 100px;
}

.contact .container {
	width: 700px;
    min-width: 0;
/*    text-align: center;*/
}

.contact .container form .required {
	margin: 0 0 40px 0;
    text-align: left;
	font-size:1.2rem;
	color:#999;
}

.contact .container form dl {
    width: 100%;
    text-align: left;
    margin-bottom: 60px;
}

.contact .container form dl:after {
    content: "";
    display: block;
    clear: both;
}

.contact .container form dl dt {
	width:12em;
	float:left;
	clear:both;
	margin:0 2em 2em 0;
	font-size: 1.4rem;
}

.contact .container form dl dt :last-of-type {
	margin-bottom:0;
}

.contact .container form dl dt  i {
	margin: 0 0 0 5px;
    font-style: normal;
}

.contact .container form dl dd {
	width:calc(100% - 14em);
	float:right;
    margin:0 0 2em 0;
	font-size: 1.6rem;
}

.contact .container form dl dd:last-of-type {
    margin-bottom:0;
}

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

    .inner.contact {
        max-width: none;
        margin-bottom: 100px;
    }

    .contact .container {
        width: 100%;
        margin: 0 auto;
    }

    .contact .container form .required {
        font-size:1.1rem;
        margin: 0 0 15px 0;
    }
    
    .contact .container form dl {
        margin-bottom: 30px;
    }

    .contact .container form dl dt  {
        width: 100%;
        float:none;
        margin:0 0 2px 0;
        font-size: 1.3rem;
    }

    .contact .container form dl dt  i {
        font-size: 1.3rem;
    }

    .contact .container form dl dd {
        width: 100%;
        float:none;
        margin:0 0 10px 0;
    }
}


/*--------------------------------
    フォーム要素スタイル
--------------------------------*/

.contact .container form input[type="text"],
.contact .container form input[type="email"],
.contact .container form input[type="tel"],
.contact .container form input[type="number"],
.contact .container form input[type="date"] {
    width:100%;
	display: inline-block;
	border: solid 1px #ccc;
	background-color: #fff;
    padding:6px 10px;
    outline: none;
}

/* 幅調整上書き */

.contact .container form input.zip,
.contact .container form input.num {
    width:6em;
}

.contact .container form input[type="file"] {
    outline: none;
    font-size: 1.3rem;
    line-height: 1;
}

.contact .container form input[type="file"]+img {
    margin-top: 15px;
}

/* safariハック */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .contact .container form input[type="file"] {
        border: none;
    }
}
*/

.contact .container form input[type="radio"],
.contact .container form input[type="checkbox"] {
    display: inline-block;
    border: solid 1px #ccc;
    vertical-align:middle;
    position:relative;
    top:-1px;
    margin-right: 5px;
    cursor: pointer;
}

.contact .container form input[type="submit"] {
    outline:0;
}

.contact .container form button {
    outline:0;
}

.contact .container form textarea {
    width:100%;
    height:200px;
    border: solid 1px #ccc;
    background-color: #fff;
    padding:6px 10px;
    outline: none;
    /* リサイズ禁止 */
    resize: none;
}

.contact .container form label {
	margin:0 20px 0 0;
	cursor: pointer;
}

.contact .container form label:last-of-type {
	margin-right:0;
}


/* セレクト */

.contact .container form .selectWrapper {
    width:50%;
    display: inline-block;
    border: 1px solid #ccc;
    margin: 0 auto;
    position: relative;
}

.contact .container form .selectWrapper::after {
    content: '';
    width: 6px;
    height: 6px;
    border-bottom: solid 2px #666;
    border-right: solid 2px #666;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -5px;
    z-index: 2;
    pointer-events: none;
}

.contact .container form .selectWrapper select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    position: relative;
    z-index: 1;
    border: none;
    outline: none;
    width: 100%;
    height: 2.5em;
    padding: 0 40px 0 10px;
    background-color: #fff;
    font-size: 1.4rem;
    color: #000;
}

.contact .container form .selectWrapper select::-ms-expand {
    display: none;
}

/* placeholder色変更 */

.contact .container form input::placeholder				    { color: #ccc; }
.contact .container form input::-webkit-input-placeholder	{ color: #ccc; } /* webkit */
.contact .container form input:-ms-input-placeholder		{ color: #ccc; } /* IE */
.contact .container form input::-ms-input-placeholder		{ color: #ccc; } /* Egde */

.contact .container form textarea::placeholder				    { color: #ccc; }
.contact .container form textarea::-webkit-input-placeholder	{ color: #ccc; } /* webkit */
.contact .container form textarea:-ms-input-placeholder		    { color: #ccc; } /* IE */
.contact .container form textarea::-ms-input-placeholder		{ color: #ccc; } /* Egde */


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

    .contact .container form input[type="text"],
    .contact .container form input[type="email"],
    .contact .container form input[type="tel"],
    .contact .container form input[type="number"],
    .contact .container form input[type="date"] {
        width: 100%;
        padding: 4px 2%;
        /* iOSの拡大阻止 */
        font-size: 16px;
        /* デフォルトスタイルリセット */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0px;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
    }

    .contact .container form input.zip,
    .contact .container form input.num {
        width:5em;
    }
    
    .contact .container form textarea {
        width: 100%;
        padding: 4px 2%;
        /* iOSの拡大阻止 */
        font-size: 16px;
        /* デフォルトスタイルリセット */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0px;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
    }


    .contact .container form input[type="radio"],
    .contact .container form input[type="checkbox"] {
        top:-2px;
    }

    .contact .container form input[type="radio"]:checked,
    .contact .container form input[type="checkbox"]:checked {
        background-color: #666 !important; /* スマホのみ色変え エラー時に上書きされないように */
    }

    .contact .container form input[type="submit"] {
        /* デフォルトスタイルリセット */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
        border-radius: 0px;
    }

    /* セレクト */
    
    .contact .container form .selectWrapper {
        width: 100%;
    }

    .contact .container form .selectWrapper select {
        /* iOSの拡大阻止 */
        font-size: 16px;
        /* transform: scale(0.9); */
        /* transform-origin: top left; */
        /* width: 111%; */
    }

}


/*--------------------------------
    メッセージ
--------------------------------*/

.contact .container .message {
    margin: 0 0 3em;
    text-align: center;
}

@media only screen and (max-width: 812px) {
    .contact .container .message {
        margin: 0 0 20px;
        text-align: left;
    }
}


/*--------------------------------
	内容確認ボタン
--------------------------------*/

.contact .container form .confirmBtn {
	display: block;
    width: 50%;
    min-width:400px;
	height:60px;
	margin: 0 auto;
}

.contact .container form .confirmBtn input {
	display:block;
	width: 100%;
	height: 100%;
	font-size:1.6rem;
	text-align: center;
	border: none;
	background-color:#333;
	color:#fff;
	cursor: pointer;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.contact .container form .confirmBtn input:hover {
	background-color: #999;
}

@media only screen and (max-width: 812px) {
    
    .contact .container form .confirmBtn {
        width: 100%;
        min-width:0;
        height:50px;
    }

    .contact .container form .confirmBtn input:hover {
        background-color: #333;
    }

}


/*--------------------------------
    戻るボタン + 送信ボタン
--------------------------------*/

.contact .container form .contactBtnWapper {
    display: block;
    margin: 0 auto;
    text-align: center;
}


/*--------------------------------
	戻るボタン
--------------------------------*/

.contact .container form .backBtn {
	display:inline-block;
	vertical-align: top;
	width:150px;
	height:60px;
	line-height:60px;
	margin: 0 5px 0 0;
}

.contact .container form .backBtn a {
	display: block;
	width: 100%;
	height: 100%;
	font-size:1.4rem;
	text-align: center;
}

.contact .container form .backBtn a:link,
.contact .container form .backBtn a:visited { color:#fff; background-color: #333; }
.contact .container form .backBtn a:hover,
.contact .container form .backBtn a:active { color:#fff; background-color: #999; }	

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

    .contact .container form .backBtn {
        display:block;
        width:100%;
        height:auto;
        line-height:2;
        margin: 0 auto 10px;
        text-align: left;
    }
    .contact .container form .backBtn a {
        display: inline;
        width: auto;
        border:  none;
        -webkit-border-radius: 0;
        border-radius: 0;
    }
    
    .contact .container form .backBtn a:link,
    .contact .container form .backBtn a:visited { color:#333; background-color: transparent; }
    .contact .container form .backBtn a:hover,
    .contact .container form .backBtn a:active { color:#333; background-color: transparent; }

}


/*--------------------------------
	送信ボタン
--------------------------------*/

.contact .container form .submitBtn {
	display:inline-block;
	vertical-align: top;
    width: 50%;
    min-width:400px;
	height:60px;
	line-height:60px;
}

.contact .container form .submitBtn input {
	display:block;
	width: 100%;
	height: 100%;
	font-size:1.6rem;
	text-align: center;
	border: none;
	background-color:#333;
	color:#fff;
	cursor: pointer;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.contact .container form .submitBtn input:hover {
	background-color: #999;
}

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

    .contact .container form .submitBtn {
        width: 100%;
        min-width:0;
        height:50px;
        line-height:50px;
    }

    .contact .container form .submitBtn input:hover {
        background-color: #333;
    }

}


/*--------------------------------
	トップに戻るボタン
--------------------------------*/

.contact .container .topBtn {
    text-align: center;
}

.contact .container .topBtn a {

}

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

    .contact .container .topBtn {
        text-align: left;
    }

    .contact .container .topBtn a {
    }

}


/*--------------------------------
	エラー
--------------------------------*/

.contact .container form dl dd.error input,
.contact .container form dl dd.error textarea,
.contact .container form dl dd.error label,
.contact .container form dl dd.error select {
	background-color:#ffe8c8;
}

.contact .container form dl dd.error b {
	display: block;
    color:#ff9300;
	font-size:1.3rem;
	font-weight: normal;
	margin-top:0.3em;
}

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

    .contact .container form dl dd.error b {
        font-size:1.1rem;
        margin-top:0.2em;
    }

}


