@charset "UTF-8";

.hubspot-wrap {
	max-width: 100% !important;
	margin: 0 auto;
	padding: 0 20px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}
.hubspot-wrap * {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	font-weight: bold;
}
.hubspot-wrap li {
	list-style: none;
}
.hubspot-wrap a {
	color: #C12D1E;
}
.hubspot-wrap legend {
	line-height: 1.5;
	font-size: 13px;
	font-weight: normal !important;
	text-align: left;
	margin: -5px 0 10px;
}
.hubspot-wrap fieldset[class^=form-columns-] {
	width: 100%;
	max-width: none !important;
	padding-bottom: 10px !important;
}
.hubspot-wrap fieldset[class^=form-columns-] label {
	display: block;
	font-size: 16px;
	width: 100%;
	text-align: left;
	margin-bottom: 10px;
	letter-spacing: 0;
	line-height: 1.4;
}
.hubspot-wrap fieldset[class^=form-columns-] .input {
	margin-right: 0 !important;
	margin-bottom: 10px;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-input {
	width: 100% !important;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-input[type=radio] {
	width: auto !important;
	margin-right: 8px;
	margin-top: 0;
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-input.invalid, .hubspot-wrap fieldset[class^=form-columns-] .hs-input.error {
	border-color: #e51520;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-dateinput {
	width: 260px;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-required {
	position: relative;
	font-size: 0;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-required::after {
	content: "必須";
	font-size: 11px;
	background: #C12D1E !important;
	color: #fff !important;
	padding: 4px !important;
	border-radius: 3px !important;
	line-height: 1em !important;
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	display: inline-block;
	margin-left: 6px;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-fieldtype-checkbox {
	line-height: 1.5;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-radio label {
	cursor: pointer;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label,
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label {
	cursor: pointer;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label span,
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label span {
	position: relative;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label span::before,
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label span::before {
	line-height: 1;
	content: "";
	display: inline-block;
	width: 19px;
	height: 19px;
	border: 1px solid #000;
	background-color: #fff;
	vertical-align: middle;
	margin-right: 8px;
	border-radius: 3px;
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label input[type=checkbox],
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label input[type=checkbox] {
	display: none;
}
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label input[type=checkbox]:checked + span::after,
.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label input[type=checkbox]:checked + span::after {
	content: "";
	display: block;
	position: absolute;
	top: 8px;
	left: 4px;
	width: 5px;
	height: 14px;
	border-bottom: 3px solid #000;
	border-right: 3px solid #000;
	-webkit-transform: rotate(45deg) translate(-50%, -50%);
	    -ms-transform: rotate(45deg) translate(-50%, -50%);
	        transform: rotate(45deg) translate(-50%, -50%);
}
.hubspot-wrap fieldset[class^=form-columns-] input[type=text],
.hubspot-wrap fieldset[class^=form-columns-] input[type=email],
.hubspot-wrap fieldset[class^=form-columns-] input[type=tel],
.hubspot-wrap fieldset[class^=form-columns-] input[type=date],
.hubspot-wrap fieldset[class^=form-columns-] input[type=number],
.hubspot-wrap fieldset[class^=form-columns-] textarea {
	font-size: 16px;
	padding: 12px 12px 10px;
	height: auto;
	border: #000 solid 1px;
	color: #000;
	line-height: 1.5;
	font-family: "Avenir Next", "Segoe UI Variable Display", Arial, "Lato", "Montserrat", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴ ProN W6", "メイリオ", "Meiryo", "ＭＳ ゴシック", sans-serif;
}
.hubspot-wrap fieldset[class^=form-columns-] input[type=text]:focus,
.hubspot-wrap fieldset[class^=form-columns-] input[type=email]:focus,
.hubspot-wrap fieldset[class^=form-columns-] input[type=tel]:focus,
.hubspot-wrap fieldset[class^=form-columns-] input[type=date]:focus,
.hubspot-wrap fieldset[class^=form-columns-] input[type=number]:focus,
.hubspot-wrap fieldset[class^=form-columns-] textarea:focus {
	border-color: #3af;
}
.hubspot-wrap fieldset[class^=form-columns-] textarea {
	height: 150px;
}
.hubspot-wrap .hs-error-msg,
.hubspot-wrap .hs-error-msgs {
	margin-bottom: 10px;
	color: #e51520;
	font-size: 16px;
}
.hubspot-wrap fieldset.form-columns-0 p {
	font-size: 14px;
	color: #888;
	margin-bottom: 10px;
	line-height: 1.5;
}
.hubspot-wrap fieldset.form-columns-2 {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}
.hubspot-wrap fieldset.form-columns-2 > * {
	float: none !important;
	width: calc(50% - 10px) !important;
}
.hubspot-wrap .actions {
	text-align: center;
}
.hubspot-wrap .hs-submit input[type=submit] {
	background: #AF1C22;
	border: 2px solid #AF1C22;
	color: #fff;
	font-size: 16px;
	width: 320px;
	max-width: 100%;
	padding: 20px;
	margin-top: 10px;
	border-radius: 40px;
	cursor: pointer;
	-webkit-transition: 0.3s;
	transition: 0.3s;
}
.hubspot-wrap .hs-submit input[type=submit]:hover {
	background-color: #fff;
	color: #AF1C22;
}
.hubspot-wrap .fn-date-picker {
	border-radius: 3px;
}
.hubspot-wrap .fn-date-picker .pika-button {
	border-radius: 3px !important;
	height: 34px !important;
	border: 2px solid #fff !important;
	text-align: center !important;
}

/* カスタムフォーム用の追加スタイル */
.hubspot-wrap .custom-form .hs-error-msgs {
    padding-left: 0;
    margin-top: 5px;
}

.hubspot-wrap .custom-form .hs-error-msgs li {
    list-style: none;
    color: #e51520;
    font-size: 14px;
    margin-bottom: 5px;
}

.hubspot-wrap .custom-form .inputs-list {
    padding-left: 0;
    margin: 0;
}

/* バリデーション用のスタイル追加 */
.hubspot-wrap .hs-error-msgs {
    padding-left: 0;
    margin-top: 5px;
    display: none;
}

.hubspot-wrap .hs-error-msgs li {
    list-style: none;
}

.hubspot-wrap .hs-error-msg {
    color: #e51520;
    font-size: 14px;
    margin: 0;
    padding: 0;
    display: block;
}

.hubspot-wrap .hs-input.error,
.hubspot-wrap .hs-input.invalid {
    border-color: #e51520 !important;
}

.hubspot-wrap .form-error-summary {
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.hubspot-wrap .form-error-summary .hs-error-msgs {
    display: block;
    margin: 0;
    padding: 0;
}

.hubspot-wrap .form-error-summary .hs-error-msg {
    font-size: 16px;
    font-weight: bold;
    color: #e51520;
}

/* 確認モーダル用のスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* アニメーション用のスタイル */
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.confirm-inner {
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    /* アニメーション用のスタイル */
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.confirm-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.confirm-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.confirm-list {
    padding: 24px;
}

.confirm-row {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.confirm-label {
    width: 35%;
    font-weight: 600;
    color: #555;
    padding-right: 16px;
}

.confirm-value {
    width: 65%;
    color: #333;
    word-break: break-word;
}

.confirm-actions {
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.modal-confirm-button-back {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    font-family: inherit;
    line-height: normal;
    user-select: none;
    transition: background-color 0.2s ease;
}

.modal-confirm-button-submit {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: #AF1C22;
    color: white;
    border: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    font-family: inherit;
    line-height: normal;
    user-select: none;
    transition: background-color 0.3s ease;
}

.modal-confirm-button-back:hover {
    background-color: #e8e8e8;
}

.modal-confirm-button-submit:hover {
    background-color: #8a161b;
}

@media screen and (max-width: 767px) {
	.hubspot-wrap {
		padding-right: 0;
		padding-left: 0;
	}
	.hubspot-wrap legend {
		font-size: 3.2vw;
		margin: -4px 0 8px;
	}
	.hubspot-wrap fieldset[class^=form-columns-] {
		padding-bottom: 8px !important;
	}
	.hubspot-wrap fieldset[class^=form-columns-] label {
		font-size: 3.7333333333vw;
		margin-bottom: 8px;
	}
	.hubspot-wrap fieldset[class^=form-columns-] .input {
		margin-bottom: 8px;
	}
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-required::after {
		font-size: 2.933vw;
		-webkit-transform: translateY(-1px);
		    -ms-transform: translateY(-1px);
		        transform: translateY(-1px);
	}
	.hubspot-wrap fieldset[class^=form-columns-] input[type=text],
	.hubspot-wrap fieldset[class^=form-columns-] input[type=email],
	.hubspot-wrap fieldset[class^=form-columns-] input[type=tel],
	.hubspot-wrap fieldset[class^=form-columns-] input[type=date],
	.hubspot-wrap fieldset[class^=form-columns-] input[type=number],
	.hubspot-wrap fieldset[class^=form-columns-] textarea {
		font-size: 3.7333333333vw;
		padding: 10px 8px 8px;
	}
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label,
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label {
		cursor: pointer;
	}
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label span,
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label span {
		position: relative;
	}
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label span::before,
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label span::before {
		width: 17px;
		height: 17px;
		-webkit-transform: translateY(-1px);
		    -ms-transform: translateY(-1px);
		        transform: translateY(-1px);
	}
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-checkbox label input[type=checkbox]:checked + span::after,
	.hubspot-wrap fieldset[class^=form-columns-] .hs-form-booleancheckbox label input[type=checkbox]:checked + span::after {
		width: 4px;
		height: 12px;
		top: 7px;
	}
	.hubspot-wrap fieldset.form-columns-0 p {
		font-size: 3.2vw;
	}
	.hubspot-wrap fieldset.form-columns-2 > * {
		width: calc(50% - 5px) !important;
	}
	.hubspot-wrap .hs-submit input[type=submit] {
		font-size: 4vw;
	}
	.hubspot-wrap .hs-error-msg,
	.hubspot-wrap .hs-error-msgs {
		margin-bottom: 8px;
		font-size: 3.7333333333vw;
	}
    
    /* モバイル用バリデーションスタイル */
    .hubspot-wrap .hs-error-msg {
        font-size: 3.2vw;
    }
    
    .hubspot-wrap .form-error-summary .hs-error-msg {
        font-size: 3.7333333333vw;
    }
    
    /* モバイル用確認モーダルスタイル */
    .confirm-inner {
        max-width: 95%;
    }
    
    .confirm-header {
        padding: 15px;
    }
    
    .confirm-title {
        font-size: 4.5vw;
    }
    
    .confirm-list {
        padding: 15px;
    }
    
    .confirm-row {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .confirm-label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 5px;
        font-size: 3.7vw;
    }
    
    .confirm-value {
        width: 100%;
        font-size: 3.7vw;
    }
    
    .confirm-actions {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-confirm-button-back,
    .modal-confirm-button-submit {
        width: 100%;
        font-size: 4vw;
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .modal-confirm-button-back {
        order: 2;
        margin-bottom: 0;
    }
    
    .modal-confirm-button-submit {
        order: 1;
    }
}

/* サンクスメッセージ用のスタイル */
.submitted-message {
    margin: 30px 0;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
    .submitted-message {
        font-size: 3.7333333333vw;
        padding: 15px 0;
        margin: 20px 0;
    }
}