@charset "UTF-8";
/* パートナー申請フォーム — Figma未確定のため、共有された画面キャプチャと
   既存の下層ページ（page-contact.css / page-terms.css / sec-6.css）の実測値から
   最も近いものを採用している。数値は暫定値。 */

/* --- MV --- */

.apply-mv {
	padding-block: 70px;
}

.apply-mv__title {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	font-feature-settings: "palt" 1;
	font-family: var(--font-display);
}

.apply-mv__lead {
	margin-top: 22px;
	font-size: var(--fs-lead);
	line-height: 1.7;
	color: #fff;
	opacity: 0.6;
}

/* --- STEP 01–04 バー --- */

.apply-steps {
	background: #fff;
	border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
	margin-bottom: 70px;
}

.apply-steps__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.apply-steps__item {
	padding: 19px 26px;
	border-right: 1px solid var(--c-border);
}

.apply-steps__item:first-child,
.apply-steps__item:nth-child(2) {
	background: var(--c-bg-gray);
}

.apply-steps__item:last-child {
	border-right: none;
}

.apply-steps__label {
	font-family: var(--font-mono);
	font-size: var(--fs-tag);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--c-primary);
}

.apply-steps__title {
	margin-top: 8px;
	font-size: var(--fs-body);
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-heading);
}

/* --- セクション全体 / レイアウト --- */

.apply-section-wrap {
	padding-top: 60px;
	padding-bottom: 94px;
}

.apply-layout {
	display: grid;
	grid-template-columns: minmax(400px, 800px) minmax(225px, 1fr);
	gap: clamp(20px, 5vw, 70px);
	align-items: start;
}

.apply-form__error {
	margin: 0 0 32px;
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: #d7453a;
	background: #fdecea;
	border: 1px solid #f6c8c3;
	border-radius: 8px;
}

/* --- フィールドセット（01〜04） --- */

.apply-fieldset {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.apply-fieldset + .apply-fieldset {
	margin-top: 50px;
}

.apply-fieldset__heading {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--c-border);
	line-height: 1;
}

.apply-fieldset__no {
	font-family: var(--font-mono);
	font-size: var(--fs-body);
	font-weight: 700;
	color: var(--c-primary);
}

.apply-fieldset__title {
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.45;
	color: var(--c-heading);
	font-feature-settings: "palt" 1;
}

.apply-fieldset__note {
	margin-top: -8px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--c-muted);
}

/* --- フィールド --- */

.apply-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.apply-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.apply-field__label {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: normal;
	color: var(--c-heading);
}

.apply-field__badge {
	font-size: 12px;
	line-height: normal;
}

.apply-field__badge--required {
	font-weight: 700;
	color: #d7453a;
}

.apply-field__badge--optional {
	font-weight: 400;
	color: #a8b6c5;
}

.apply-field__input {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 15px 0 14px;
	font-family: var(--font-jp);
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	color: var(--c-heading);
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 5px;
	transition: border-color 0.2s ease;
}

.apply-field__input--select {
	appearance: none;
	padding-right: 40px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23132F4D' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
}

.apply-field__input--textarea {
	height: 140px;
	padding: 15px 15px 15px 14px;
	line-height: 1.6;
	resize: vertical;
}

.apply-field__input::placeholder {
	color: #a8b6c5;
}

.apply-field__input:focus {
	outline: none;
	border-color: var(--c-primary);
}

.apply-field.is-invalid .apply-field__input {
	border-color: #d7453a;
}

.apply-field__hint {
	font-size: 13px;
	line-height: 1.6;
	color: var(--c-muted);
}

.apply-field__hint a {
	color: var(--c-primary);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

.apply-field__error-text {
	font-size: 13px;
	color: #d7453a;
}

/* --- チップ型チェックボックス --- */

.apply-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.apply-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 11px 15px 11px 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-heading);
	white-space: nowrap;
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 5px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.apply-chip:hover {
	border-color: var(--c-heading);
}

.apply-chip input[type="checkbox"],
.apply-chip input[type="radio"],
.apply-agreement input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 2px;
	cursor: pointer;
}

.apply-chip input[type="radio"] {
	border-radius: 50%;
}

.apply-chip input[type="checkbox"]:checked,
.apply-chip input[type="radio"]:checked,
.apply-agreement input[type="checkbox"]:checked {
	background: var(--c-heading);
	border-color: var(--c-heading);
}

.apply-chip input[type="checkbox"]:checked::after,
.apply-chip input[type="radio"]:checked::after,
.apply-agreement input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.apply-agreement input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

/* --- ラジオ --- */

.apply-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.apply-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--c-heading);
	cursor: pointer;
}

.apply-radio input[type="radio"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 50%;
	cursor: pointer;
}

.apply-radio input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	background: var(--c-heading);
	border-radius: 50%;
}

/* --- 規約要約スクロールボックス --- */

.apply-terms-box {
	padding: 27px 25px 22px;
	background: var(--c-bg-gray);
	border: 1px solid var(--c-border);
	border-radius: 8px;
}

.apply-terms-box__heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--c-heading);
}

.apply-terms-box__lead {
	margin-top: 4px;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--c-muted);
}

.apply-terms-box__scroll {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-height: 360px;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
}

.apply-terms-box__article-no {
	font-size: 14px;
	font-weight: 700;
	color: var(--c-primary);
}

.apply-terms-box__article-text {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--c-text);
}

.apply-terms-box__full-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding-top: 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-heading);
	border-top: 1px solid var(--c-border);
}

.apply-terms-box__full-link:hover {
	color: var(--c-primary);
}

.apply-terms-box__scroll-note {
	margin-top: 12px;
	font-size: 12px;
	color: var(--c-muted);
	transition: opacity 0.2s ease;
}

.apply-terms-box__scroll-note.is-unlocked {
	color: #0a7a4a;
}

/* --- 同意チェックボックス --- */

.apply-agreements {
	margin-top: 5px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 13px;
}

.apply-agreement {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.6;
	color: var(--c-heading);
	cursor: pointer;
}

.apply-agreement input[type="checkbox"] {
	margin-top: 3px;
}

.apply-agreement a {
	color: var(--c-primary);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* --- 注意書き / 送信ボタン --- */

.apply-notice {
	margin-top: 36px;
	font-size: var(--fs-tag);
	line-height: 1.7;
	color: var(--c-text);
	text-align: left;
}

.apply-submit {
	position: relative;
	width: 100%;
	margin-top: 36px;
}

.apply-submit__button {
	width: 100%;
	min-height: 57px;
	border-radius: var(--radius-card);
}

.apply-submit__button:disabled {
	background-color: var(--c-muted);
	background-image: linear-gradient(var(--c-muted), var(--c-muted));
	cursor: not-allowed;
}

.apply-submit__spinner {
	position: absolute;
	top: 50%;
	right: 32px;
	display: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	transform: translateY(-50%);
	animation: apply-spin 0.7s linear infinite;
}

.apply-form.is-loading .apply-submit__spinner {
	display: block;
}

@keyframes apply-spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

.apply-submit__note {
	margin-top: 20px;
	font-size: var(--fs-tag);
	text-align: center;
	color: var(--c-text);
}

/* --- サンクス --- */

.apply-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 80px 20px;
	text-align: center;
}

.apply-thanks__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--c-heading);
}

.apply-thanks__text {
	max-width: 560px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--c-text);
}

.apply-thanks__back {
	margin-top: 10px;
}

/* --- サイドバー --- */

.apply-sidebar__panel {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 27px 27px 33px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	background-color: var(--c-navy-panel);
	color: #CDD9E8;
}

.apply-sidebar__heading {
	color: var(--c-bg);
	line-height: 1;
	font-weight: 700;
}

.apply-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 22px;
	margin-bottom: 22px;	
}

.apply-sidebar__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1;
}

.apply-sidebar__list img {
	flex: none;
	margin-top: -2px;
}

.apply-sidebar__note {
	padding-top: 22px;
	font-size: var(--fs-tag);
	line-height: 1.7;
	border-top: 1px solid var(--c-border);
}

.apply-sidebar__note a {
	color: var(--c-primary);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* --------------------------------------------------------------------------
   Contact Form 7 対応（フォーム本体は CF7 の保存内容）。
   既存クラス（.apply-chip / .apply-radio 等）はそのまま残し、CF7 が実際に生成する
   マークアップ（.wpcf7-form-control-wrap / .wpcf7-list-item など）に対して
   同じ見た目になるよう追加でスタイルする。CF7のチェックボックス/ラジオ/選択必須系
   タグは class: オプションを個々の <label> には付けられない（wpcf7-form-control-wrap
   にしか付かない）ため、.wpcf7-list-item を起点にセレクタを組む。
   -------------------------------------------------------------------------- */

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

.apply-card .wpcf7-response-output {
	margin: 0 0 32px;
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: #d7453a;
	background: #fdecea;
	border: 1px solid #f6c8c3;
	border-radius: 8px;
}

.apply-card .wpcf7-form.sent .wpcf7-response-output {
	color: #0a7a4a;
	background: #eafaf1;
	border-color: #b7ebd0;
}

.apply-field__input.wpcf7-not-valid {
	border-color: #d7453a;
}

.apply-card .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #d7453a;
}

/* --- チップ型（希望するパートナー区分 = radio／関心のある対象製品 = checkbox） --- */

.apply-chip-group .wpcf7-checkbox,
.apply-chip-group .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.apply-chip-group .wpcf7-list-item {
	margin: 0;
}

.apply-chip-group .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 11px 15px 11px 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-heading);
	white-space: nowrap;
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 5px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.apply-chip-group .wpcf7-list-item label:hover {
	border-color: var(--c-heading);
}

.apply-chip-group input[type="checkbox"],
.apply-chip-group input[type="radio"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 2px;
	cursor: pointer;
}

.apply-chip-group input[type="radio"] {
	border-radius: 50%;
}

.apply-chip-group input[type="checkbox"]:checked,
.apply-chip-group input[type="radio"]:checked {
	background: var(--c-heading);
	border-color: var(--c-heading);
}

.apply-chip-group input[type="checkbox"]:checked::after,
.apply-chip-group input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* --- サンプルSW提供予定（見た目はラジオボタンだが、CF7の [radio] タグは
   任意項目でも常に必須になる仕様のため、実体は [checkbox ... exclusive]
   （排他選択チェックボックス）を使っている） --- */

.apply-radio-group .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.apply-radio-group .wpcf7-list-item {
	margin: 0;
}

.apply-radio-group .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--c-heading);
	cursor: pointer;
}

.apply-radio-group input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 50%;
	cursor: pointer;
}

.apply-radio-group input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	background: var(--c-heading);
	border-radius: 50%;
}

/* --- 同意チェックボックス（[acceptance] タグ） --- */

.apply-agreements .wpcf7-list-item {
	margin: 0;
}

.apply-agreements .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.6;
	color: var(--c-heading);
	cursor: pointer;
}

.apply-agreements input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 2px;
	cursor: pointer;
}

.apply-agreements input[type="checkbox"]:checked {
	background: var(--c-heading);
	border-color: var(--c-heading);
}

.apply-agreements input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.apply-agreements input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.apply-agreements a {
	color: var(--c-primary);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* --- 送信ボタン（CF7標準のスピナーを既存の .apply-submit の位置に合わせる） --- */

.apply-submit .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 32px;
	margin: 0;
	transform: translateY(-50%);
}

@media (max-width: 767px) {
	.apply-chip-group .wpcf7-list-item {
		width: 100%;
	}

	.apply-chip-group .wpcf7-list-item label {
		width: 100%;
		white-space: normal;
	}

	.apply-radio-group .wpcf7-checkbox {
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.apply-mv {
		padding-block: 46px;
	}

	.apply-mv__title {
		font-size: 30px;
	}

	.apply-mv__lead {
		margin-top: 22px;
		font-size: 14px;
	}

	.apply-steps {
		margin-bottom: 50px;
	}

	.apply-steps__list {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 0;
		padding-block: 0;
	}

	.apply-steps__item {
		padding-inline: 26px;
		border-right: none;
	}

	.apply-steps__item:nth-child(odd) {
		border-right: 1px solid var(--c-border);
	}

	.apply-steps__item:first-child,
	.apply-steps__item:nth-child(2) {
		border-bottom: 1px solid var(--c-border);
	}

	.apply-steps__item:first-child {
		border-top-left-radius: var(--radius-card);
	}

	.apply-steps__item:nth-child(2) {
		border-top-right-radius: var(--radius-card);
	}

	.apply-section-wrap {
		padding-top: 40px;
		padding-bottom: 50px;
	}

	.apply-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.apply-card {
		padding: 0;
	}

	.apply-fieldset {
		gap: 20px;
	}

	.apply-fieldset + .apply-fieldset {
		margin-top: 40px;
	}

	.apply-field-row {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.apply-chip {
		width: 100%;
	}

	.apply-terms-box {
		padding: 16px;
	}

	.apply-terms-box__scroll {
		max-height: 280px;
		padding: 14px;
	}

	.apply-radio-group {
		flex-direction: column;
		gap: 12px;
	}

	.apply-notice {
		margin-top: 36px;
	}

	.apply-submit {
		margin-top: 20px;
	}

	.apply-submit__button {
		min-height: 52px;
	}

	.apply-sidebar__panel {
		position: static;
	}

	.apply-thanks {
		padding: 56px 16px;
	}
}
