.c-form-shortcode__content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.c-form-shortcode p + p,
.c-form-shortcode p + .c-form-row--two-columns,
.c-form-row--two-columns + p {
	margin-block-start: 1rem;
}

.c-form-shortcode .name {
	color: var(--main);
}

.c-form-shortcode input[type="text"],
.c-form-shortcode input[type="email"],
.c-form-shortcode input[type="tel"],
.c-form-shortcode input[type="url"],
.c-form-shortcode input[type="search"],
.c-form-shortcode input[type="password"],
.c-form-shortcode input[type="number"],
.c-form-shortcode input[type="date"],
.c-form-shortcode input[type="time"],
.c-form-shortcode input[type="datetime-local"],
.c-form-shortcode input[type="month"],
.c-form-shortcode input[type="week"],
.c-form-shortcode textarea,
.c-form-shortcode select {
	width: 100%;
	max-width: 100%;
    height: 50px;
	font-size: 1rem;
	line-height: 1.4;
	padding: 10px;
	margin-top: 5px;
	-webkit-appearance: none;
	border: solid 1px #ccc;
	border-radius: 3px;
	box-sizing: border-box;
}

.c-form-shortcode textarea {
	height: auto;
	min-height: 8rem;
	resize: vertical;
}

.c-form-shortcode input[type="file"] {
	max-width: 100%;
}

.c-form-shortcode .star:before {
    content: "必須";
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 5px;
    margin-left: 5px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 3px;
    background: #f33;
}

.c-form-shortcode .approval p {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    margin-top: 15px;
}

.c-form-shortcode .wpcf7-acceptance {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 260px;
    height: 75px;
    color: #fff;
    font-size: 1rem;
    padding: 1rem 0.3rem;
    border-radius: 3px;
    border-radius: var(--border-radius-m);
    background: var(--link);
    transition: 0.5s;
}

.c-form-shortcode input[type=submit] {
    display: block;
    width: 33%;
    min-width: 260px;
    height: 75px;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    padding: 1rem 1rem;
    border: none;
    border-radius: 3px;
    border-radius: var(--border-radius-m);
    background: var(--link);
    transition: 0.5s;
    -webkit-appearance: none;
}
.c-form-shortcode input[type=submit]:hover {
    color: #fff;
    background: var(--link-hover);
}

.c-form-shortcode .wpcf7-spinner {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    display: inline-block;
    background-color: #23282d;
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 24px;
}

.c-form-shortcode span.wpcf7-not-valid-tip {
    display: none;
}
.wpcf7-not-valid {
    background: #fef0f0;
}
.c-form-shortcode .wpcf7-response-output {
    margin: 25px auto 0 !important;
    padding: 12px 20px !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid #f33 !important;
    border-radius: 4px;
}
.c-form-shortcode .wpcf7-validation-errors {
    width: 100%;
    color: #B94A48;
    background-color: #F2DEDE;
    border: 1px solid #EED3D7;
    margin-bottom: 20px;
}
.c-form-shortcode .wpcf7-mail-sent-ok {
    width: 100%;
    color: #3A87AD;
    background-color: #D9EDF7;
    border: 1px solid #BCE8F1;
    margin-bottom: 20px;
}

.c-form-shortcode .wpcf7-checkbox .wpcf7-list-item > label,
.c-form-shortcode .wpcf7-radio .wpcf7-list-item > label {
	display: inline-grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.25rem;
    align-items: center;
	max-width: 100%;
    margin-block-end: 1rem;
}

.c-form-shortcode .wpcf7-checkbox .wpcf7-list-item input,
.c-form-shortcode .wpcf7-radio .wpcf7-list-item input {
	margin: 0.125em 0 0;
}

.c-form-shortcode .wpcf7-checkbox .wpcf7-list-item-label,
.c-form-shortcode .wpcf7-radio .wpcf7-list-item-label {
	min-width: 0;
}

.c-form-shortcode .c-form-row,
.c-form-shortcode .c-form-field {
	min-width: 0;
}

.c-form-shortcode .c-form-row--two-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.c-form-shortcode .c-form-row--two-columns > p {
	min-width: 0;
	margin: 0;
}

.c-form-shortcode .c-form-row--two-columns > .c-form-field--half,
.c-form-shortcode .c-form-row--two-columns > p > .c-form-field--half {
	display: block;
	min-width: 0;
}

.c-form-shortcode .approval {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    margin-top: 15px;
}

@media (max-width: 47.99rem) {
	.c-form-shortcode .approval,
	.c-form-shortcode .approval p {
		flex-direction: column;
		align-items: stretch;
        width: 260px;
        margin: 1rem auto 0;
	}

	.c-form-shortcode .wpcf7-acceptance {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 75px;
	}

	.c-form-shortcode input[type=submit] {
		width: 100%;
		min-width: 0;
	}
}

@media (min-width: 40rem) {
	.c-form-shortcode .c-form-row--two-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
