
.contact-form select,
.contact-form textarea,
.contact-form input[type="text"],
.contact-form input[type="password"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"] {
	display: inline-block;
	padding: 8px 10px;
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 20px;
	color: #555;
	vertical-align: middle;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.contact-form textarea,
.contact-form input[type="text"],
.contact-form input[type="password"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"] {
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-webkit-transition: border linear .2s, -webkit-box-shadow linear .2s;
	transition: border linear .2s, -webkit-box-shadow linear .2s;
	-o-transition: border linear .2s, box-shadow linear .2s;
	transition: border linear .2s, box-shadow linear .2s;
	transition: border linear .2s, box-shadow linear .2s, -webkit-box-shadow linear .2s;
}

.contact-form textarea {
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}


.contact-form input[type="text"] {
	margin-bottom: 5px;
	margin-top: 5px;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
	margin:0;
	margin-right: 5px;
}

.contact-form input,
.contact-form select {
	vertical-align: initial;
}



.form_btn {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

input.wpcf7c-elm-step1 {
	display: inline-block;
	cursor: pointer;
	line-height: 1;
	overflow: hidden;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	white-space: nowrap;
	background-color: #cd1616;
	border: none;
	border-radius: 6px;
	color: #fff;
	padding: .93478rem 2.33696rem;
	max-width: 100%;
	-webkit-transition: all .2s ease-out;
	-o-transition: all .2s ease-out;
	transition: all .2s ease-out;
}

.form-wrap input[type="button"].wpcf7-confirm,
.form-wrap input[type="button"].wpcf7-back,
.form-wrap input[type="submit"] {
	-webkit-appearance: none;
	background: #ee5656;
	height: 60px;
	font-size: 20px;
	letter-spacing: 0.1em;
	width: 250px;
	font-weight: bold;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 5px;
	outline: none;
	margin: 0.5em 1em;
}

@media screen and (max-width: 768px){
	.contact-form .input-xlarge {
		width: 100%;
	}
	.contact-form .input-xxlarge {
		width: 100%;
	}
	.contact-form	.wpcf7-select{
		width: 100%;
	}
}

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

	.contact-form textarea,
	.contact-form select,
	.contact-form input{
		font-size: 16px;
	}

	.form_btn.submit p {
		display: flex;
		flex-direction: column;
	}
}

input[type="submit"].wpcf7-confirm{
	-webkit-appearance: none;
	background: #ee5656;
	height: 60px;
	font-size: 20px;
	letter-spacing: 0.1em;
	width: 250px;
	font-weight: bold;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 5px;
	outline: none;
	margin: 0.5em 1em;
}

input[type="button"].wpcf7-back{
	-webkit-appearance: none;
	background: #eb8c35;
	height: 60px;
	font-size: 20px;
	letter-spacing: 0.1em;
	width: 250px;
	font-weight: bold;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 5px;
	outline: none;
	margin: 0.5em 1em;
}


input[type="submit"].wpcf7-submit {
	-webkit-appearance: none;
	background: #32a928;
	height: 60px;
	font-size: 20px;
	letter-spacing: 0.1em;
	width: 250px;
	font-weight: bold;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 5px;
	outline: none;
	margin: 0.5em 1em;
}

/* Contact Form 7 最新スタイル */
.contact-form-wrap.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.contact-form-wrap .form-group {
    margin-bottom: 32px;
    position: relative;
}

.contact-form-wrap label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
}

.contact-form-wrap .must {
    display: inline-block;
    background: #e74c3c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 8px;
    line-height: 1;
}

.contact-form-wrap .inline-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap; /* SPでも横並びを維持 */
}

.contact-form-wrap .input-area {
    flex: 1;
    min-width: 0; /* フレキシブルな幅調整 */
}

.contact-form-wrap .input-large,
.contact-form-wrap .input-xlarge,
.contact-form-wrap .input-xxlarge {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.contact-form-wrap .input-large:focus,
.contact-form-wrap .input-xlarge:focus,
.contact-form-wrap .input-xxlarge:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.contact-form-wrap .must_area {
    /*border-left: 4px solid #3498db;*/
}

.contact-form-wrap textarea.input-xxlarge {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-form-wrap select {
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 12px;
	padding-right: 50px;
	appearance: none; /* ブラウザのデフォルトスタイルを無効化 */
}

/* チェックボックススタイル修正 */
.contact-form-wrap .checkbox.inline {
    display: block;
}

.contact-form-wrap .wpcf7-form-control-wrap {
    display: block !important;
}

.contact-form-wrap .wpcf7-form-control.wpcf7-checkbox {
    display: flex !important;
    gap: 16px;
	gap:0px;
	flex-direction:column;
    flex-wrap: wrap; /* 折り返し許可 */
}

.contact-form-wrap .wpcf7-list-item {
    margin: 0 !important;
    position: relative;
}

/* 元のチェックボックスを非表示 */
.contact-form-wrap .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* チェックボックスラベル - シンプルに */
.contact-form-wrap .wpcf7-list-item-label {
    display: inline-block;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin: 0 !important;
    position: relative;
    padding-left: 35px;
}

/* カスタムチェックボックス */
.contact-form-wrap .wpcf7-list-item-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #ffffff;
}

/* チェックされた時のカスタムチェックボックス */
.contact-form-wrap .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
    background: #3498db;
    border-color: #3498db;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%223%22%3E%3Cpath%20d%3D%22M20%206L9%2017l-5-5%22/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ホバー効果 */
.contact-form-wrap .wpcf7-list-item-label:hover:before {
    border-color: #3498db;
}

.contact-form-wrap .caution {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-form-wrap .caution:before {
    content: '💡';
    font-size: 12px;
}

.contact-form-wrap .form_btn {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-form-wrap input[type="submit"],
.contact-form-wrap input[type="button"] {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 160px;
    background: #3498db;
    color: #ffffff;
	margin:0;
}

.contact-form-wrap input[type="submit"]:hover,
.contact-form-wrap input[type="button"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    background: #2980b9;
}

.contact-form-wrap input[type="back"] {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 160px;
    background: #95a5a6;
    color: #ffffff;
}

.contact-form-wrap input[type="back"]:hover {
    background: #7f8c8d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(149, 165, 166, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-form-wrap.contact-form {
        padding: 24px;
        margin: 0px;
        border-radius: 16px;
    }
    
    .contact-form-wrap .inline-wrap {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .contact-form-wrap .input-area {
        min-width: 0;
        flex: 1;
    }
    
    .contact-form-wrap .input-large,
    .contact-form-wrap .input-xlarge,
    .contact-form-wrap .input-xxlarge {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    /* チェックボックス - SP時は折り返し */
    .contact-form-wrap .wpcf7-form-control.wpcf7-checkbox {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-form-wrap .form_btn {
        flex-direction: column;
    }
    
    .contact-form-wrap input[type="submit"],
    .contact-form-wrap input[type="button"],
    .contact-form-wrap input[type="back"] {
        width: 100%;
    }
}

/* さらに小さい画面用の調整 */
@media (max-width: 480px) {
    .contact-form-wrap .inline-wrap {
        gap: 8px;
    }
    
    .contact-form-wrap .input-large,
    .contact-form-wrap .input-xlarge,
    .contact-form-wrap .input-xxlarge {
        padding: 12px 14px;
    }
    
    /* プレースホルダーの文字サイズ調整 */
    .contact-form-wrap .input-large::placeholder,
    .contact-form-wrap .input-xlarge::placeholder,
    .contact-form-wrap .input-xxlarge::placeholder {
        font-size: 14px;
    }
}

/* フォーカス表示の改善 */
.contact-form-wrap input:focus-visible,
.contact-form-wrap select:focus-visible,
.contact-form-wrap textarea:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* 読み込みアニメーション */
.contact-form-wrap .form-group {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form .must{display:none;}