@charset utf-8;



/** ============================================================================


	フォームタグのカスタマイズCSS

	@version 1.1   2018.6.19
	@author        K.Sekioka of HEVIZ Co.,Ltd.

	@history 2021.4.16  https://heviz.jp/contact/ 実装


================================================================================ **/


/* input共通 --------------------------- */

.inputForm input {
	display: inline-block;
	vertical-align: middle;
	width: auto;
	height: auto;
	margin : 0;
	padding : 10px;
	box-sizing: border-box;

	color:inherit;
	font-family: inherit;
	font-weight: inherit;
	font-size: 16px;
	line-height: 1.5;
	
	box-shadow : 0px 0px 0px 0px;
	background-color : #ffffff;
	border : 1px solid #888888;
	border-radius : 0;
	outline : none;
	
    -webkit-appearance : none;
    appearance : none;

border-radius: 5px;
box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
}

/* placehholder */
.inputForm input::-webkit-input-placeholder { color:#ccc; }
.inputForm input:-ms-input-placeholder      { color:#ccc; }
.inputForm input::-moz-placeholder          { color:#ccc; }
.inputForm input::placeholder               { color:#ccc; }

/* focus */
.inputForm input:focus {
    border-color : #6CCBF9;
    background-color:#f3f8fc;
}

/* disabled */
.inputForm input[disabled] {
    color:#cccccc;
    background-color: transparent;
	border-color: transparent;
	outline: none;
    cursor:not-allowed;
}

/* readonly */
.inputForm input[readonly] {
	background-color:transparent;
	background-color:rgba(255,255,255,0.3);
	border-color:transparent;
}



/* autofill */
/*
.inputForm input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f0f0ff inset;
}
*/

/* input 個別 -------------------------------------------*/

.inputForm input[type="text"] {}
.inputForm input[type="email"] {}
.inputForm input[type="tel"] {}
.inputForm input[type="password"] {}
.inputForm input[type="url"] {}
.inputForm input[type="search"] {}
.inputForm input[type="file"] {}


/* input日付関係 ---------------------------------------- */

.inputForm input[type="date"] {}
.inputForm input[type="datetime-local"] {}
.inputForm input[type="time"] {}
.inputForm input[type="month"] {}
.inputForm input[type="week"] {}

/* カラー ----------------------------------------------- */

.inputForm input[type="color"] {
	width: 80px;
    height: 40px;
	padding: 1px 2px;
    cursor: pointer;
}


/* 数 -------------------------------------------------- */

.inputForm input[type="number"] {
	width: 5em;
}

/* input ボタン関係 ------------------------------------- */

.inputForm input[type="button"],
.inputForm input[type="submit"],
.inputForm input[type="reset"] {
	padding: 10px 20px;
	background-color:#444444;
	color:#ffffff;
	border: 0;
	outline : none;
	cursor: pointer;
}
.inputForm input[type="reset"] {
	background-color:#cccccc;
}

/* ボタンhover */
.inputForm input[type="button"]:hover,
.inputForm input[type="submit"]:hover,
.inputForm input[type="reset"]:hover {
	background-color:#cc0000;
	color:#ffffff;
	cursor: pointer;
}

/* button */
.inputForm button {
	display: inline-block;
	vertical-align: middle;
	width: auto;
	height: auto;
	margin : 5px;
	padding: 10px 20px;
	box-sizing: border-box;

	color:#ffffff;
	font-family: inherit;
	font-weight: inherit;
	font-size: 16px;
	line-height: 1.5;
	
	background-color:#444444;
	border: 1px solid #f0f0f0;
	outline : none;
	
    -webkit-appearance : none;
    appearance : none;
	
	cursor: pointer;
}

.inputForm button:hover {
	background-color:#cc0000;
	color:#ffffff;
	cursor: pointer;
}

/* イメージボタン */
.inputForm input[type="image"] {
	padding: 0;
}
.inputForm input[type="image"]:hover {
	padding: 0;
	border-color: #cc0000;
}


/* チェックボックス ----------------------------- */

.inputForm input[type="checkbox"] {
	position: relative;
	margin: 0 5px 0 0;
	padding: 15px;
	cursor: pointer;
}
.inputForm input[type="checkbox"]::after {
	content:"";
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 80%;
	height: 50%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	
	border-right:4px solid #444444;
	border-bottom:4px solid #444444;
	
	transform: translate(-50%, -70%) rotate(45deg);
	opacity: 0;
}

.inputForm input[type="checkbox"]:checked {
	background-color: #dddddd;
}
.inputForm input[type="checkbox"]:checked::after {
	opacity: 1;
}


/* ラジオボタン ------------------------------------- */

.inputForm input[type="radio"] {
	position: relative;
	margin: 0 5px 0 0;
	padding: 15px;
	border-radius: 50%;
	outline: none;
	border:1px solid #f0f0f0;
	cursor: pointer;
}
.inputForm input[type="radio"]::after {
	content:"";
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 60%;
	height: 60%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	
	background-color: #444444;
	border-radius: 50%;
	
	transform: translate(-50%, -50%);
	opacity: 0;
}

.inputForm input[type="radio"]:focus {
    border : 1px solid #6CCBF9;
}

.inputForm input[type="radio"]:checked {
	background-color: #dddddd;
}
.inputForm input[type="radio"]:checked::after {
	opacity: 1;
}

/* セレクト -------------------------------------------------- */

.inputForm select {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	width: auto;
	height: auto;
	margin : 0;
	padding : 10px 40px 10px 10px;
	box-sizing: border-box;
	
	color:inherit;
	font-family: inherit;
	font-weight: inherit;
	font-size: 16px;
	line-height: 1.5;
	
	box-shadow : 0px 0px 0px 0px;
	border : 1px solid #888888;
	border-radius : 0;
	outline : none;
	
    -webkit-appearance : none;
    appearance : none;
	
	cursor: pointer;
	
	background-color : #ffffff;
	background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E*%7Bfill%3A%23888888%3B%7D%3C%2Fstyle%3E%3Cpolygon%20points%3D%2210%2C15%201.9%2C8.1%203.9%2C5.9%2010%2C11%2016.1%2C5.9%2018.1%2C8.1%20%22%2F%3E%3C%2Fsvg%3E%0A');
    background-position: right 10px top 45%;
    background-repeat: no-repeat;
	background-size: 20px 20px;


border-radius: 5px;
box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
}
	
/* focus */
.inputForm select:focus {
    border-color : #6CCBF9;
    background-color:#f3f8fc;
}

/* disabled */
.inputForm select[disabled] {
    color: #cccccc;
    background-color: transparent;
	border-color: transparent;
	outline: none;
    cursor:not-allowed;
}

/* autofill */
/*
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f0f0ff inset;
}
*/

.inputForm optgroup {
    font-weight: 700;
    display: block;
}

.inputForm option {}


/* テキストエリア --------------------------------------------- */

.inputForm textarea {
	display: inline-block;
	vertical-align: middle;
	width: calc( 100% - 6px );
	height: auto;
	min-height: 10em;
	margin : 0px;
	padding : 10px;
	box-sizing: border-box;

	color:inherit;
	font-family: inherit;
	font-weight: inherit;
	font-size: 16px;
	line-height: 1.5;
	
	box-shadow : 0px 0px 0px 0px;
	background-color : #ffffff;
	border : 1px solid #888888;
	border-radius : 0;
	outline : none;
	
    -webkit-appearance : none;
    appearance : none;

    resize: auto;
    cursor: text;

border-radius: 5px;
box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
}

/* focus */
.inputForm textarea:focus {
    border-color : #6CCBF9;
    background-color:#f3f8fc;
}

/* disabled */
.inputForm textarea[disabled] {
    color: #cccccc;
    background-color: transparent;
	border-color: transparent;
	outline: none;
    cursor:not-allowed;
}



/* レンジ ---------------------------------------------------- */

.inputForm input[type="range"] {
	padding: 0;
	border-radius: 10px;
	outline: none;
	cursor: grab;
}




/** ============================================================================


    フォームページ基本


================================================================================ **/

.inputForm {
	display: block;
	position: relative;
    margin: 0;
	padding: 0;
}

.inputForm h3 {
	margin: 0 0 25px;
	padding: 0;
	font-size: 24px;
	font-weight: 700;
    text-align: center;
}

.inputForm .redTxt {
    color: #ff0000;
}

.inputForm .message {
    text-align: center;
}


/* error */
.inputForm h3.error {
    color: #ff0000;
}

.inputForm .message.error {
    color: #ff0000;
}


/* 必須入力 */
.inputForm .ness {
	margin: 0;
	text-align: right;
	font-size: smaller;
}

.inputForm .required {
	color:#ff0000;
	padding-right: 3px;
}




/** ---------------------------------------------------------------------------

	入力テーブル枠

------------------------------------------------------------------------------- **/

.inputForm table {
    width: 100%;
    margin: 20px 0 0;
	box-sizing: border-box;
}

.inputForm table caption {
	text-align: right;
}

.inputForm table th {
	width: 25%;
	padding: 5px;
	box-sizing: border-box;
}

.inputForm table td {
    width: 75%;
    padding: 5px;
    box-sizing: border-box;
}



/** ---------------------------------------------------------------------------

	入力フォーム共通

	<div class="inp-box [type] [inp-error]">
	<p class="error">エラー時のコメント<p>
	<input>

	</div>

------------------------------------------------------------------------------- **/


.inp-box {
    display: block;
	position: relative;
	margin: 0;
    padding: 5px;
    border:1px solid transparent;
    border-radius: 5px;
	box-sizing: border-box;
}

.inp-box.text {}

.inp-box.inp-error {
	border-color: #ff0000;
}


/* エラーコメントの表示 ------------------- */

.inp-box .errors {
	color:#ff0000;
}

.inp-box .errors ul,
.inp-box .errors li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}


/* 入力部分の表示 ----------------------- */

.inp-box .input {}

.inp-box .input ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	box-sizing: border-box;
}

.inp-box .input li {
	margin: 5px;
	padding: 0;
	list-style-type: none;
	box-sizing: border-box;
}

.inp-box .input dl {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.inp-box .input dt {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.inp-box .input dd {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.inp-box .input input {}

/* inline */
.inp-box.inline .input ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

.inp-box.inline .input li {
	padding: 0 15px 0 0;
}

.inp-box.inline .input li.else {
	width: 100%;
	padding: 0;
}


/* フォーム部分 ------------------------ */

.inp-box input[type="text"],
.inp-box input[type="email"],
.inp-box input[type="tel"],
.inp-box input[type="password"],
.inp-box select,
.inp-box textarea {
	width: 100%;
}

/* 住所 */
.inp-box.address .input input.postal { width:9em; }
.inp-box.address .input dt { width:9em; }
.inp-box.address .input dd { width:calc( 100% - 9em ); }

/* 名前2分割 */
.inp-box.namae2 .input ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}
.inp-box.namae2 .input li {
}

.inp-box.namae2 .input dt {
	width: 3em;
	text-align: center;
}
.inp-box.namae2 .input dd {
	width: 10em;
	max-width: 100%;
}

/* 電話番号3分割 */
.inp-box.tel3 .input ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}

.inp-box.tel3 .input li {
	width: 8em;
	max-width: 33.33%;
}

/* 郵便番号2分割 */
.inp-box.postal2 .input ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}

.inp-box.postal2 .input li {
	width: 8em;
	max-width: 33.33%;
}

/* メールアドレス2回入力 */
.inp-box.email2 .input dt {
	width: 3em;
	text-align: center;
}
.inp-box.email2 .input dd {
	width: calc( 100% - 3em );
}



/* 説明コメント部分 --------------------- */

.inp-box .desc {
	margin: 5px 0 0 0;
	padding: 0;
	font-size: smaller;
	list-style-type: none;
}

.inp-box .desc ul {
	margin: 0;
	padding: 0;
}

.inp-box .desc li {
	margin: 0 0 0 1.5em;
	padding: 0;
	list-style-type: none;
	text-indent: -1.5em;
}
.inp-box .desc li::before {
	content: "※ ";
}


/** ----------------------------------------------------

	入力グループ共通

-------------------------------------------------------- **/

/* 次前ボタン */

.inputForm .buttonBox {
    display: block;
    position: relative;
    
    width: 100%;
    max-width: 600px;
    margin: 50px auto 0;
    padding: 0;
}

.inputForm .buttonBox > ul {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.inputForm .buttonBox > ul > li {
/*    width: 31.33%; */
    width: auto;
    margin: 0 1%;
    padding: 0;
	list-style-type: none;
}

.inputForm .buttonBox a,
.inputForm .buttonBox input,
.inputForm .buttonBox button {
	display: block;
	position: relative;
    width: auto;
    height: auto;
	margin: 0;
	padding: 0;
    padding: 20px 50px;
    
    line-height: 1;
    font-weight: 700;
    text-align: center;
    
    background-color:#444444;
    color:#ffffff;
	text-decoration: none;
	
    border-radius: 5px;
	cursor: pointer;
}

.inputForm .buttonBox a.backbtn,
.inputForm .buttonBox input.backbtn,
.inputForm .buttonBox button.backbtn {
    background-color:#cccccc;
    color: #ffffff;
}


.inputForm .buttonBox a:hover,
.inputForm .buttonBox input:hover,
.inputForm .buttonBox button:hover {
    background-color: #444444;
    color: #ffffff;
}

.inputForm .buttonBox a:hover,
.inputForm .buttonBox input:hover,
.inputForm .buttonBox button:hover {
    background-color: #258fe9;
    color: #ffffff;
}



/** --------------------------------------------------------

	完了画面/エラー画面

------------------------------------------------------------ **/

.inputFormSubmit,
.inputFormError {
	padding: 25% 0;
}






/** Responsive for Smart Phone ---------------------------- **/

@media all and (max-width: 767px) {
    
    
    .inputForm {
        margin: 50px 0 0 0;
    }

    .inputForm table {
        display: block;
        width: auto;
        max-width: none;
    }

    .inputForm table caption {
        display: block;
        font-size:12px;
    }
    
    .inputForm table tbody,
    .inputForm table tr {
        display: block;
        margin: 0;
        padding: 0;
    }

    .inputForm table th {
        display: block;
        width: auto;
        padding: 15px 0 0;
        border-top:1px dotted #c0c0c0;
		font-weight: 700;
		font-size: 14px;
    }

    .inputForm table td {
        display: block;
        width: auto;
        padding: 15px 0;
        border-top:0;
    }


    /* 次前ボタン */
    .inputForm .buttonBox {
        width: auto;
        max-width: none;
    }

    .inputForm .buttonBox > ul {
        display: block;
    }

    .inputForm .buttonBox > ul > li {
        width: auto;
        margin: 10px 0 0 0;
    }

    .inputForm .buttonBox a,
    .inputForm .buttonBox input,
    .inputForm .buttonBox button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .inputForm .thanks {
        margin: 50px 10% 0;
        text-align: center;
    }
}
