/**
 * Corporate Contact Page Styles (企業情報 - お問い合わせ)
 *
 * Mobile-first: base styles for 400px, desktop overrides via media queries.
 *
 * Font: Noto Sans JP (Regular 400, Bold 700, Medium 500), Reddit Sans (SemiBold 600)
 * Text color: #333333
 * Corporate green: #6BB529
 * Background: #F3F8E7
 * Content width: 1100px (desktop centered)
 *
 * @package Okayama
 */

/* ========================================
   Page Base
   ======================================== */

.page-corporate-contact {
	background-color: #f3f8e7;
}

/* ========================================
   Contact Hero (Page Title)
   ======================================== */

.contact-hero {
	padding: 40px 20px 0;
	text-align: center;
}

.contact-hero__subtitle-en {
	font-family: 'Reddit Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #6bb529;
	line-height: 1.6;
	text-transform: uppercase;
	margin: 0 0 4px;
}

.contact-hero__title {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #333;
	line-height: 1.6;
	margin: 0;
}

/* ========================================
   Description
   ======================================== */

.contact-description {
	padding: 40px 20px 0;
	text-align: center;
}

.contact-description__text {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	margin: 0 0 8px;
}

.contact-description__required {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: red;
	line-height: 1.6;
	margin: 0;
}

.contact-required-mark {
	color: red;
}

/* ========================================
   Step Indicator
   ======================================== */

.contact-steps {
	padding: 40px 20px 0;
	display: flex;
	justify-content: center;
}

.contact-steps__inner {
	display: flex;
	align-items: center;
}

.contact-steps__item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-steps__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85px;
	height: 85px;
	border-radius: 50%;
	background-color: #d9d9d9;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #fff;
	line-height: 1.6;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-steps__circle--active {
	background-color: #6bb529;
	color: #fff;
}

.contact-steps__line {
	width: 80px;
	height: 1px;
	background-color: #6bb529;
}

/* ========================================
   Step Visibility
   ======================================== */

.contact-step[hidden] {
	display: none;
}

/* ========================================
   Contact Form Section (Step 1 - Input)
   ======================================== */

.contact-form-section {
	padding: 40px 20px 60px;
}

.contact-form-section__inner {
	background-color: #fff;
	border-radius: 18px;
	padding: 40px 20px;
}

/* CF7 form reset - remove CF7 default styling */
.contact-form__row > p {
	display: contents;
}

.contact-form__field p,
.contact-form__sub-field p {
	margin: 0;
}

.contact-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-form .wpcf7-not-valid-tip {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 12px;
	color: red;
	margin-top: 4px;
}

.contact-form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
}

/* Hide CF7 native submit (we use custom JS flow) */
.contact-form__cf7-submit {
	display: none;
}

.contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact-form__row--address {
	gap: 8px;
}

.contact-form__label {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
}

.contact-form__field {
	width: 100%;
}

.contact-form__field--address {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-form__sub-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.contact-form__sub-label {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
}


.contact-form__input,
.contact-form .wpcf7-form-control.wpcf7-text,
.contact-form .wpcf7-form-control.wpcf7-email,
.contact-form .wpcf7-form-control.wpcf7-tel {
	width: 100%;
	height: 46px;
	background-color: #f3f3f3;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	box-sizing: border-box;
}

.contact-form__input::placeholder,
.contact-form .wpcf7-form-control::placeholder {
	color: #999;
}

.contact-form__textarea,
.contact-form .wpcf7-form-control.wpcf7-textarea {
	width: 100%;
	height: 200px;
	background-color: #f3f3f3;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	box-sizing: border-box;
	resize: none;
	overflow-y: auto;
}

.contact-form__note {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	margin: 10px 0 0;
}

.contact-form__divider {
	border: none;
	border-top: 1px solid #d9d9d9;
	margin: 40px 0;
}

/* ========================================
   Submit Section (Step 1 - Privacy + Button)
   ======================================== */

.contact-submit {
	padding: 40px 0 0;
}

.contact-submit__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.contact-submit__privacy-text {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 2;
	text-align: center;
	margin: 0;
}

.contact-submit__privacy-link {
	color: #6bb529;
	font-weight: 700;
	text-decoration: underline;
}

.contact-submit__agreement {
	margin: 8px 0;
}

.contact-submit__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
}

.contact-submit__checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.contact-submit__checkbox-custom {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #d9d9d9;
	border-radius: 4px;
	flex-shrink: 0;
	margin-top: 3px;
	position: relative;
}

.contact-submit__checkbox:checked + .contact-submit__checkbox-custom {
	background-color: #6bb529;
	border-color: #6bb529;
}

.contact-submit__checkbox:checked + .contact-submit__checkbox-custom::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact-submit__checkbox-text {
	flex: 1;
}

.contact-submit__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-width: 240px;
	background-color: #6bb529;
	color: #fff;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	padding: 15px 16px 15px 64px;
	border: none;
	border-radius: 400px;
	cursor: pointer;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

.contact-submit__button:hover:not(:disabled) {
	opacity: 0.85;
}

.contact-submit__button:disabled {
	background-color: #707070;
	cursor: not-allowed;
}

.contact-submit__button-arrow {
	flex-shrink: 0;
	color: #6bb529;
}

.contact-submit__button:disabled .contact-submit__button-arrow {
	color: #707070;
}

/* ========================================
   Confirmation View (Step 2)
   ======================================== */

.contact-confirm {
	display: flex;
	flex-direction: column;
}

.contact-confirm__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact-confirm__label {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	margin: 0;
}

.contact-confirm__value {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 2;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ========================================
   Confirm Buttons (Step 2)
   ======================================== */

.contact-confirm-buttons {
	padding: 40px 0 0;
}

.contact-confirm-buttons__inner {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 20px;
}

.contact-confirm-buttons__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-width: 240px;
	height: 48px;
	background-color: #fff;
	border: 1px solid #333;
	border-radius: 400px;
	padding: 0 64px 0 16px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 1.6;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.contact-confirm-buttons__back:hover {
	opacity: 0.85;
}

.contact-confirm-buttons__back-arrow {
	flex-shrink: 0;
}

.contact-confirm-buttons__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-width: 240px;
	height: 48px;
	background-color: #6bb529;
	border: none;
	border-radius: 400px;
	padding: 0 16px 0 64px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	line-height: 1.6;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.contact-confirm-buttons__send:hover {
	opacity: 0.85;
}

.contact-confirm-buttons__send-arrow {
	flex-shrink: 0;
}

/* ========================================
   Complete View (Step 3 - Thank You)
   ======================================== */

.contact-complete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
}

.contact-complete__title {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #333;
	line-height: 1.6;
	margin: 0;
}

.contact-complete__text {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 2;
}

.contact-complete__text p {
	margin: 0;
}

.contact-complete__action {
	display: flex;
	justify-content: center;
}

.contact-complete__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-width: 240px;
	height: 48px;
	background-color: #6bb529;
	border: none;
	border-radius: 400px;
	padding: 0 16px 0 64px;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #fff;
	line-height: 1.6;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.contact-complete__button:hover {
	opacity: 0.85;
}

.contact-complete__button-arrow {
	flex-shrink: 0;
}

/* ========================================
   Desktop Overrides (min-width: 768px)
   ======================================== */

@media (min-width: 768px) {

	/* Hero */
	.contact-hero {
		padding: 80px var(--corp-pad-side) 0;
	}

	.contact-hero__title {
		font-size: 40px;
	}

	/* Description */
	.contact-description {
		padding: 40px var(--corp-pad-side) 0;
	}

	.contact-description__text {
		max-width: 940px;
		margin-left: auto;
		margin-right: auto;
	}

	/* Steps */
	.contact-steps {
		padding: 40px var(--corp-pad-side) 0;
	}

	.contact-steps__line {
		width: 130px;
	}

	/* Form Section */
	.contact-form-section {
		padding: 40px var(--corp-pad-side) 80px;
	}

	.contact-form-section__inner {
		width: 100%;
		max-width: 1100px;
		margin: 0 auto;
		border-radius: 24px;
		padding: 64px clamp(20px, 6vw, 80px);
	}

	.contact-form {
		max-width: 940px;
		margin: 0 auto;
	}

	.contact-form__row {
		flex-direction: row;
		align-items: flex-start;
		gap: 0;
	}

	.contact-form__row--address {
		align-items: flex-start;
	}

	.contact-form__label {
		width: 210px;
		flex-shrink: 0;
		font-size: 16px;
		font-weight: 700;
		padding-top: 10px;
	}

	.contact-form__field {
		flex: 1;
		min-width: 0;
		margin-left: 92px;
	}

	.contact-form__input,
	.contact-form .wpcf7-form-control.wpcf7-text,
	.contact-form .wpcf7-form-control.wpcf7-email,
	.contact-form .wpcf7-form-control.wpcf7-tel {
		font-size: 16px;
	}

	.contact-form__textarea,
	.contact-form .wpcf7-form-control.wpcf7-textarea {
		font-size: 16px;
	}

	.contact-form__sub-label {
		font-size: 16px;
	}

	/* Submit */
	.contact-submit {
		padding: 40px var(--corp-pad-side) 0;
	}

	.contact-submit__privacy-text {
		font-size: 16px;
	}

	.contact-submit__button {
		font-size: 16px;
		height: 56px;
	}

	/* Confirmation (Step 2) */
	.contact-confirm {
		max-width: 940px;
		margin: 0 auto;
	}

	.contact-confirm__row {
		flex-direction: row;
		align-items: flex-start;
		gap: 0;
	}

	.contact-confirm__label {
		width: 210px;
		flex-shrink: 0;
		font-size: 16px;
	}

	.contact-confirm__value {
		flex: 1;
		margin-left: 92px;
		font-size: 16px;
	}

	/* Confirm Buttons */
	.contact-confirm-buttons {
		padding: 40px 0 0;
	}

	.contact-confirm-buttons__inner {
		flex-direction: row;
		justify-content: center;
		gap: 40px;
	}

	.contact-confirm-buttons__back {
		height: 56px;
		font-size: 16px;
	}

	.contact-confirm-buttons__send {
		height: 56px;
		font-size: 16px;
	}

	/* Complete (Step 3) */
	.contact-complete__title {
		font-size: 24px;
	}

	.contact-complete__text {
		font-size: 16px;
	}

	.contact-complete__button {
		height: 56px;
		font-size: 16px;
		font-weight: 500;
	}
}


body {
	background-color: #f3f8e7;
}

@media (min-width: 768px) {
	footer {
		margin-top: 100px;
	}
}

@media (max-width: 767px) {
	footer {
		margin-top: 80px;
	}
}