@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/ 実装


================================================================================ **/




/** --------------------------------------------------------

	label

------------------------------------------------------------ **/



.inputForm label {
    padding: 0 3px;
    box-sizing:border-box;
    font-weight: 400;
}



/** -------------------------------------------------------


    Input Common


----------------------------------------------------------- **/


.inputForm input,
.inputForm textarea,
.inputForm select {
    display : inline-block;
    vertical-align: middle;
    
    width : 100%;
    line-height : 40px;
    margin : 0;
    padding : 0 10px;
    box-sizing : border-box;

    color : #231815;
    font-family:'Noto Sans JP', 'Yu Gothic Medium', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
    font-size:16px;
	font-weight: 400;
    
    background-color : #f0f0f0;
    box-shadow : 0px 0px 0px 0px;
    border : 0;
    border-radius : 0;
    transition : all 0.2s;
    
    -webkit-appearance : none;
/*    -moz-appearance : textfield; */
    appearance : none;
}
.inputForm input::-ms-expand,
.inputForm textarea::-ms-expand,
.inputForm select::-ms-expand {
    display: none;
}


/* placehholder */
.inputForm input::-webkit-input-placeholder,
.inputForm textarea::-webkit-input-placeholder { color:#ccc; }
.inputForm input:-ms-input-placeholder,
.inputForm textarea:-ms-input-placeholder      { color:#ccc; }
.inputForm input::-moz-placeholder,
.inputForm textarea::-moz-placeholder          { color:#ccc; }
.inputForm input::placeholder,
.inputForm textarea::placeholder               { color:#ccc; }


/* forcus */
.inputForm input:focus,
.inputForm textarea:focus,
.inputForm select:focus {
    outline : none;
    background-color:#f3f8fc;
}


/* disabled */
.inputForm input[disabled],
.inputForm textarea[disabled],
.inputForm select[disabled] {
    color:#cccccc;
    background-color:transparent;
    cursor:not-allowed;
}

/* autofill */
.inputForm input:-webkit-autofill,
.inputForm textarea:-webkit-autofill,
.inputForm select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f3f8fc inset;
}



/** text ---------------------------------------------------- **/

.inputForm input[type="text"] {}

/** Search -------------------------------------------------- **/

.inputForm input[type="search"] {}

/** EMail --------------------------------------------------- **/

.inputForm input[type="email"] {}

/** TEL --------------------------------------------------- **/

.inputForm input[type="tel"] {}

/** PASSWORD ---------------------------------------------- **/

.inputForm input[type="password"] {}


/** NUMBER ------------------------------------------------ **/

.inputForm input[type="number"] {}

.inputForm input[type=number]::-webkit-inner-spin-button,
.inputForm input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/** File -------------------------------------------------- **/

.inputForm input[type="file"] {
    display:none;
}

.inputForm input[type="file"]+label {
    display : inline-block;
    height : 40px;
    line-height : 40px;
    margin : 0;
    padding : 0 20px;
    color : #ffffff;
    background-color : #222222;
    cursor:pointer;
}

.inputForm input[type="file"]+label:hover {
    background-color : #258fe9;
}

.inputForm input[type="file"][disabled]+label {
    color:#cccccc;
    background-color:#f0f0f0;
    border-color:#f0f0f0;
    cursor:not-allowed;
}


/** Submit, Button ---------------------------------------- **/

.inputForm input[type="submit"],
.inputForm input[type="button"] {
    padding:0 30px;
    color : #ffffff;
    background-color : #222222;
    cursor: pointer;
}

.inputForm input[type="submit"]::-webkit-search-decoration,
.inputForm input[type="button"]::-webkit-search-decoration {
	display: none;
}

.inputForm input[type="submit"]:hover,
.inputForm input[type="button"]:hover {
	outline : none;
	color : #ffffff;
	background-color:#258fe9;
}

.inputForm input[type="submit"]:focus,
.inputForm input[type="button"]:focus {
	outline : none;
	color : #231815;
	background-color:#f3f8fc;
}

/* disabled */
.inputForm input[type="submit"][disabled],
.inputForm input[type="button"][disabled] {
	color:#cccccc;
	background-color:#f0f0f0;
	cursor:not-allowed;
}


/** ボタンタグ ---------------------------------------------- **/

.inputForm button {
    display : inline-block;
    vertical-align: middle;
    
    width : 99%;
    line-height : 40px;
    margin : 0;
    padding : 0 10px;
    box-sizing : border-box;

    color : #231815;
    font-family:'Noto Sans JP', 'Yu Gothic Medium', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
    font-size:16px;
	font-weight: 400;
    
    background-color : #f0f0f0;
    box-shadow : 0px 0px 0px 0px;
    border : 0;
    border-radius : 0;
    transition : all 0.2s;
    
    -webkit-appearance : none;
/*    -moz-appearance : textfield; */
    appearance : none;
}

.inputForm button::-webkit-search-decoration {
	display: none;
}

.inputForm button:hover {
	outline : none;
	color : #ffffff;
	background-color:#258fe9;
}

.inputForm button:focus {
	outline : none;
	color : #231815;
	background-color:#f3f8fc;
}

/* disabled */
.inputForm button[disabled] {
	color:#cccccc;
	background-color:#f0f0f0;
	cursor:not-allowed;
}



/** textarea ---------------------------------------------- **/

.inputForm textarea {
	height:10em;
	line-height:1.5;
	padding:5px 10px;
}

/** -------------------------------------------------------

    Select Box

    <select id="select"></select><label for="select"></label>

----------------------------------------------------------- **/

.inputForm select {
	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;
}

.inputForm select[value=""] {
	background-color: #ff0000;
}

/* placeholderの代わり */
.inputForm select option:nth-of-type(1) {
    display: none;
    color:#ccc;
}

.inputForm select option {
    min-height: 30px;
    padding: 0px 2px;
}


/** ----------------------------------------------------------------------------

	Checkbox with Label

    <input type="checkbox" id="checkbox"><label for="checkbox"></label>

-------------------------------------------------------------------------------- **/

.inputForm input[type="checkbox"] {
    display: none;
}

.inputForm input[type="checkbox"] + label {
    display:inline-block;
    position:relative;
    margin: 5px;
    padding:0 1em 0 28px;
}

.inputForm input[type="checkbox"] + label:before {
    display: block;
    position: absolute;
    content: "";

    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin:-10px 0 0 0;

    border : 0;
    border-radius: 0;
    background-color:#f0f0f0;
    transition:all 0.3s;
}

.inputForm input[type="checkbox"] + label:after {
    display: block;
    position: absolute;
    content: "";

    left:5px;
    top:50%;
    width:10px;
    height:18px;
    margin:-15px 0 0 0;
    padding:0;

    border-right: 4px solid #333333;
    border-bottom: 4px solid #333333;
    transform: rotate(45deg);
    transition:opacity 0.2s;
    opacity:0;
}

/* checked */
.inputForm input[type="checkbox"]:checked + label:before {
}

.inputForm input[type="checkbox"]:checked + label:after {
    opacity:1;
}


/* disabled */
.inputForm input[type="checkbox"][disabled] + label {
    color:#aaaaaa;
}

.inputForm input[type="checkbox"][disabled] + label:before {
    box-shadow : 0px 0px 0px 0px;
    background-color:#f0f0f0;
    border-color : #f0f0f0;
    cursor:not-allowed;
}



/** ----------------------------------------------------------------------------

	Radio Button + Label

    <input type="checkbox" id="radio"><label for="radio"></label>

-------------------------------------------------------------------------------- **/

.inputForm input[type="radio"] {
    display: none;
}

.inputForm input[type="radio"] + label {
    display:inline-block;
    position:relative;
    margin: 5px;
    padding:0 1em 0 35px;
    line-height:40px;
}

.inputForm input[type="radio"] + label:before {
    display: block;
    position: absolute;
    content: "";

    left: 0;
    top: 50%;
    width: 24px;
    height: 24px;
    margin:0;

    border-radius:50%;
    background-color:#f0f0f0;
    transition:all 0.3s;
	transform: translateY(-50%);
}

.inputForm input[type="radio"] + label:after {
    display: block;
    position: absolute;
    content: "";
    left:0;
    top:50%;
    width:14px;
    height:14px;
    margin:0;
    padding:0;

    background-color:#333333;
    border-radius:50%;
    transition:opacity 0.2s;
    opacity:0;
	
	transform: translate(5px, -50%);
}

/* checked */
.inputForm input[type="radio"]:checked + label:before {
}

.inputForm input[type="radio"]:checked + label:after {
    opacity:1;
}


/* disabled */
.inputForm input[type="radio"][disabled] + label {
    color:#aaaaaa;
}

.inputForm input[type="radio"][disabled] + label:before {
    box-shadow : 0px 0px 0px 0px;
    background-color:#f0f0f0;
    border-color : #f0f0f0;
    cursor:not-allowed;
}



/* エラー ------------------------------------ */

.inputForm input[type="text"].error,
.inputForm input[type="email"].error,
.inputForm input[type="tel"].error,
.inputForm input[type="number"].error,
.inputForm input[type="password"].error,
.inputForm textarea.error,
.inputForm seelct.error {
	background-color:#ffdddd;
}

.inputForm input[type="file"].error + label,
.inputForm input[type="checkbox"].error + label,
.inputForm input[type="radio"].error + label {
	background-color:#ffdddd;
}


/** ===========================================================================


    入力フォーム用の体裁


=============================================================================== **/


/** ----------------------------------------------------

	入力グループ共通

-------------------------------------------------------- **/

.inp-box {
    display: block;
    padding: 3px;
    border:1px solid transparent;
    border-radius: 3px;
}


/* リセット ----------------------------------- */

.inp-box ul {
    margin: 0;
    padding: 0;
}

.inp-box li {
    margin: 3px 0;
    padding: 0;
	list-style-type: none;
    box-sizing: border-box;
}

.inp-box dl {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
	padding: 0;
}

.inp-box dt {
    width: 60px;
	margin: 3px 0;
    padding: 0;
	font-size: 14px;
	box-sizing: border-box;
}

.inp-box dd {
    width: calc(100% - 60px);
	margin: 3px 0;
    padding: 0;
	box-sizing: border-box;
}


/* エラー ------------------------------------- */

.inp-box.inp-error {
    border-color:#ff0000;
}

/* エラーコメント */
.inp-box .errors {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #ff0000;
    font-size:14px;
}


/* 説明コメント -------------------------------- */

.inp-box .desc {
	margin: 5px 0 0 5px;
}
.inp-box .desc > li {
	font-size:14px;
	list-style-type: disc;
	margin-left: 1em;
}

/* メールアドレス2回入力 ------------------------- */
/* パスワード2回入力 ---------------------------- */

.inp-box.dmail dl,
.inp-box.dpassword dl {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.inp-box.dmail dt,
.inp-box.dpassword dt {
    width: 40px;
	margin: 3px 0;
	font-size: 14px;
}

.inp-box.dmail dd,
.inp-box.dpassword dd {
    width: calc(100% - 40px);
	margin: 3px 0;
}


/* 名前（姓名分割） ------------------------------- */

.inp-box.namae label {
	display: inline-block;
	width: 40px;
	box-sizing: border-box;
	text-align: right;
	font-size: 14px;
}

.inp-box.namae input {
	width: calc( 50% - 40px );
}


/* 年月日入力(select) ---------------------------- */

.inp-box.dateyear select {
	width: calc(3em + 40px);
}
.inp-box.dateyear select:first-child {
	width: calc(5em + 40px);
}


.inp-box.dateyear input {
	width: calc(3em + 20px);
}
.inp-box.dateyear input:first-child {
	width: calc(5em + 20px);
}

.inp-box.dateyear label {
	line-height: 40px;
	padding: 0 5px;
}



/* 住所 ------------------------------------------- */

.inp-box.address dt {
	width: 120px;
}

.inp-box.address dd {
	width: calc(100% - 120px);
}

.inp-box.address .postal input {
	width: 7em;
}


/* 電話番号3分割 ------------------------------------ */

.inp-box.tel3 input {
    width: 5em;
}


/* チェックボックス --------------------------------- */
/* ラジオボタン ------------------------------------- */

.inp-box.checkboxes.inline ul,
.inp-box.radios.inline ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}




/** ---------------------------------------------------------------------------


    フォームページ基本


------------------------------------------------------------------------------- **/

.inputForm {	
	width: auto;
    max-width: 700px;
    margin: 50px auto 0;
	padding:0;
}


.inputForm h3 {
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: 700;
    font-size:16px;
}

.inputForm h3.error {
    color: #ff0000;
}

.inputForm .redTxt {
    color: #ff0000;
}

.inputForm .message {
    text-align: center;
}

.inputForm .message.error {
    color: #ff0000;
}

.inputForm .ness {
	text-align: right;
	font-size: 12px;
}

.inputForm .required {
	color:#ff0000;
	padding-right: 3px;
}

.inputForm table {
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    border: 0;

    width: 100%;
    margin: 20px 0 0;
	border:0;
}

.inputForm table caption {
    text-align: right;
}

.inputForm th {
    width: 15em;
	margin: 0;
    padding: 5px 5px 5px 0;
    box-sizing: border-box;
    
    text-align: left;
    font-weight: 400;
	border:1px solid #c0c0c0;
}

.inputForm td {
    width: calc( 100% - 15em );
	margin: 0;
    padding: 5px 0 5px 5px;
    box-sizing: border-box;
	border: 1px solid #c0c0c0;
}


/* 次前ボタン */

.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;
}

/* 完了・エラー画面 */
.inputFormThanks,
.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;
    }
}
