/* =======================================
 資料ダウンロード申請モーダル（/panf/）
 ※ style.css の末尾にそのまま追記してください
   （既存の button / label / fieldset / placeholder の全体指定を
     モーダル内だけ上書きしています）
======================================= */
body.panf-modal-open {
	overflow: hidden;
}
.panf-modal {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000; /* .navigation-top(1000) / .man img(9999) より上 */
}
.panf-modal.is-open {
	display: block;
}
.panf-modal__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.6);
	animation: panfFade .25s ease;
}
.panf-modal__scroll {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 16px;
}
.panf-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: auto 0;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	text-align: left;
	outline: none;
	animation: panfUp .3s ease;
}
.panf-modal p {
	line-height: 1.8;
	text-align: left;
}

/* ヘッダー */
.panf-modal__head {
	position: relative;
	background: #e40580;
	color: #fff;
	padding: 18px 72px 16px 24px;
}
.panf-modal .panf-modal__en {
	font-family: 'Hind Guntur', sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	line-height: 1;
	margin: 0 0 6px;
	color: #fff;
}
.panf-modal .panf-modal__title {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	color: #fff;
}
.panf-modal .panf-modal__close {
	position: absolute !important; /* 既存 button{position:static!important} 対策 */
	top: 50%;
	right: 14px;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin-top: -22px;
	padding: 0;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: 0;
	transition: background .3s;
}
.panf-modal .panf-modal__close:before,
.panf-modal .panf-modal__close:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	margin: -1px 0 0 -9px;
	background: #fff;
	transition: background .3s;
}
.panf-modal .panf-modal__close:before {
	transform: rotate(45deg);
}
.panf-modal .panf-modal__close:after {
	transform: rotate(-45deg);
}
.panf-modal .panf-modal__close:hover,
.panf-modal .panf-modal__close:focus {
	background: #fff;
}
.panf-modal .panf-modal__close:hover:before,
.panf-modal .panf-modal__close:hover:after,
.panf-modal .panf-modal__close:focus:before,
.panf-modal .panf-modal__close:focus:after {
	background: #e40580;
}

/* フォーム */
.panf-form {
	margin: 0;
}
.panf-step[hidden] {
	display: none !important;
}
.panf-step--form {
	padding: 24px 24px 28px;
}
.panf-modal .panf-form__lead {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 20px;
}
.panf-modal .panf-field {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.panf-modal .panf-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	line-height: 1.5;
}
.panf-badge {
	display: inline-block;
	padding: 0 8px;
	border-radius: 3px;
	background: red; /* 既存フォームの span.hissu に合わせる */
	color: #fff;
	font-size: 0.7rem;
	font-weight: 400;
	line-height: 1.7;
}
.panf-badge.is-opt {
	background: #999;
}

/* 資料チェックボックス */
.panf-docs {
	display: grid;
	gap: 8px;
}
.panf-modal .panf-doc {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border: 2px solid #ddd;
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.panf-modal .panf-doc:hover {
	border-color: #f29ac9;
}
.panf-modal .panf-doc.is-single {
	cursor: default;
}
.panf-modal .panf-doc.is-checked {
	border-color: #e40580;
	background: #fdf7fa;
}
/* 既存CSSで checkbox が display:none になっているためモーダル内だけ表示 */
.panf-modal input[type="checkbox"] {
	display: inline-block !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	clip: auto !important;
}
.panf-modal .panf-doc input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #e40580;
	cursor: pointer;
}
.panf-modal .panf-doc img {
	flex: none;
	width: 72px;
	height: 48px;
	object-fit: cover;
	border: 1px solid #eee;
}
.panf-doc__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.panf-doc__title {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.5;
	color: #333;
}
.panf-doc__meta {
	font-size: 0.75rem;
	line-height: 1.5;
	color: #e40580;
}

/* 入力欄 */
.panf-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
}
.panf-modal input.panf-input {
	display: block;
	width: 100%;
	padding: 0.7em;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fafafa;
	color: #222;
	font-family: inherit;
	font-size: 16px; /* iOS のズーム防止 */
	line-height: 1.5;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.panf-modal input.panf-input:focus {
	border-color: #e40580;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(228, 5, 128, 0.15);
}
.panf-modal input.panf-input.is-invalid {
	border-color: red;
	background: #fff6f6;
}
.panf-modal input.panf-input::placeholder {
	color: #aaa;
	font-family: inherit;
}
.panf-modal .panf-error {
	margin: 6px 0 0;
	color: red;
	font-size: 0.8rem;
	line-height: 1.5;
}
.panf-modal .panf-error:empty {
	display: none;
}
.panf-modal .panf-error--form {
	text-align: center;
}

/* スパム対策（ハニーポット） */
.panf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Cloudflare Turnstile */
.panf-turnstile {
	width: 100%;
	max-width: 300px;
	min-height: 65px;
	margin: 8px auto 4px;
}

/* 同意・送信 */
.panf-modal .panf-agree {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 0;
	font-size: 0.9rem;
	font-weight: 400;
	cursor: pointer;
}
.panf-modal .panf-agree input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #e40580;
}
.panf-modal .panf-agree a {
	color: #e40580;
	text-decoration: underline;
}
.panf-actions {
	margin-top: 20px;
}
.panf-modal .panf-submit,
.panf-modal .panf-back {
	position: relative !important;
	display: block;
	width: 100%;
	max-width: 420px;
	min-width: 0;
	min-height: 0;
	margin: 0 auto;
	padding: 14px 40px;
	border: 1px solid #e40580;
	border-radius: 0;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.5;
	transition: all .3s;
}
.panf-modal .panf-submit {
	background: #e40580;
	color: #fff;
}
.panf-modal .panf-submit:after,
.panf-modal .panf-back:after {
	content: "\f054";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	font-size: 0.85em;
}
.panf-modal .panf-submit:hover,
.panf-modal .panf-submit:focus {
	background: #fff;
	color: #e40580;
}
.panf-modal .panf-submit[disabled] {
	opacity: .6;
	cursor: wait;
}
.panf-modal .panf-back {
	background: #fff;
	color: #e40580;
}
.panf-modal .panf-back:after {
	content: "\f00d";
}
.panf-modal .panf-back:hover,
.panf-modal .panf-back:focus {
	background: #e40580;
	color: #fff;
}

/* 送信完了 */
.panf-step--done {
	padding: 36px 24px 32px;
	text-align: center;
}
.panf-done__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border: 2px solid #e40580;
	border-radius: 50%;
	background: #fdf7fa;
	color: #e40580;
	font-size: 26px;
}
.panf-modal .panf-done__title {
	margin: 0 0 8px;
	color: #e40580;
	font-size: 1.25rem;
	font-weight: 500;
	text-align: center;
}
.panf-modal .panf-done__text {
	font-size: 0.95rem;
	text-align: center;
}
.panf-done__email {
	font-weight: 500;
	word-break: break-all;
}
.panf-done__list {
	max-width: 420px;
	margin: 16px auto;
	padding: 12px 16px;
	background: #f7f7f7;
	list-style: none;
	text-align: left;
	font-size: 0.9rem;
}
.panf-done__list li:before {
	content: "・";
}
.panf-modal .panf-done__note {
	margin: 0 0 20px;
	color: #666;
	font-size: 0.8rem;
	line-height: 1.7;
	text-align: center;
}

/* =======================================
 資料一覧ページ（/panf/ 本文）
======================================= */
.panf-page {
	max-width: 960px;
	margin: 0 auto;
}
.entry-content .panf-page p.panf-page__lead {
	margin: 0 0 40px;
	text-align: center;
	font-size: 1rem;
	line-height: 1.9;
	color: #555;
}
.panf-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
	padding: 40px 0;
	border-top: 1px solid #e5e5e5;
}
.panf-item:last-of-type {
	border-bottom: 1px solid #e5e5e5;
}
.panf-item__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.entry-content .panf-item p {
	margin: 0;
	text-align: left;
}
.entry-content .panf-item p.panf-item__cat {
	font-family: 'Hind Guntur', sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	line-height: 1;
	letter-spacing: .15em;
	color: #e40580;
}
.entry-content .panf-item h3.panf-item__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
	text-align: left;
}
.entry-content .panf-item h3.panf-item__title:before,
.entry-content .panf-item h3.panf-item__title:after {
	display: none;
}
.entry-content .panf-item p.panf-item__desc {
	font-size: 0.95rem;
	line-height: 1.8;
	color: #444;
}
.entry-content .panf-item ul.panf-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
}
.entry-content .panf-item ul.panf-item__meta li {
	margin: 0;
	padding: 3px 10px;
	border: 1px solid #f3b5d6;
	border-radius: 999px;
	background: #fdf7fa;
	color: #e40580;
	font-size: 0.75rem;
	line-height: 1.6;
	list-style: none;
}
.entry-content .panf-item ul.panf-item__meta li:before {
	display: none;
}
.entry-content .panf-item a.panf-item__btn {
	position: relative;
	display: block;
	width: 100%;
	max-width: 400px;
	margin-top: 6px;
	padding: 16px 48px 16px 24px;
	border: 0;
	border-radius: 999px;
	background: #e40580;
	box-shadow: 0 4px 0 #a8035e;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, background .2s;
}
.entry-content .panf-item a.panf-item__btn:after {
	content: "\f019";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	right: 22px;
	transform: translateY(-50%);
}
.entry-content .panf-item a.panf-item__btn:hover,
.entry-content .panf-item a.panf-item__btn:focus {
	background: #f0218d;
	color: #fff;
	transform: translateY(2px);
	box-shadow: 0 2px 0 #a8035e;
}
.entry-content .panf-item figure.panf-item__img {
	margin: 0;
}
.entry-content .panf-item figure.panf-item__img img {
	display: block;
	width: 100%;
	height: auto;
}
.entry-content .panf-page p.panf-page__all {
	margin: 32px 0 0;
	text-align: center;
}
.entry-content .panf-page p.panf-page__all a {
	color: #e40580;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* =======================================
 サンクスページ（/dl/llmo/thanks/・/dl/ai-video/thanks/）
======================================= */
/* サンクスページの見出し（body.dl-thanks-page は inc/dl-*-request.php で付与） */
html body.dl-thanks-page #page .mainview h1.entry-title {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
.dl-thanks {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 0 40px;
	text-align: center;
}
.dl-thanks__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 20px;
	border: 2px solid #e40580;
	border-radius: 50%;
	background: #fdf7fa;
	color: #e40580;
	font-size: 34px;
}
.entry-content .dl-thanks p {
	text-align: center;
}
.entry-content .dl-thanks p.dl-thanks__en {
	margin: 0 0 8px;
	font-family: 'Hind Guntur', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1;
	letter-spacing: .2em;
	color: #e40580;
}
.entry-content .dl-thanks p.dl-thanks__title {
	margin: 0 0 20px;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
	text-align: center;
}
.entry-content .dl-thanks p.dl-thanks__text {
	margin: 0 0 32px;
	font-size: 1rem;
	line-height: 1.9;
	color: #444;
}
.dl-thanks__note {
	margin: 0 0 40px;
	padding: 20px 24px;
	background: #f7f7f7;
	text-align: left;
}
.entry-content .dl-thanks p.dl-thanks__note-title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #333;
	text-align: left;
}
.entry-content .dl-thanks__note ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.entry-content .dl-thanks__note li {
	position: relative;
	margin: 0 0 4px;
	padding-left: 1.2em;
	font-size: 0.85rem;
	line-height: 1.8;
	color: #555;
	list-style: none;
}
.entry-content .dl-thanks__note li:before {
	content: "・";
	position: absolute;
	left: 0;
	top: 0;
}
.entry-content .dl-thanks a {
	color: #e40580;
	text-decoration: underline;
}
.dl-thanks__cta {
	padding-top: 32px;
	border-top: 1px solid #e5e5e5;
}
.entry-content .dl-thanks p.dl-thanks__cta-text {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.8;
	color: #444;
}
.dl-thanks__btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.entry-content .dl-thanks a.dl-thanks__btn {
	display: block;
	min-width: 240px;
	padding: 14px 32px;
	border: 1px solid #333;
	border-radius: 999px;
	background: #fff;
	color: #333;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.entry-content .dl-thanks a.dl-thanks__btn:hover,
.entry-content .dl-thanks a.dl-thanks__btn:focus {
	background: #333;
	color: #fff;
}
.entry-content .dl-thanks a.dl-thanks__btn.is-primary {
	border-color: #e40580;
	background: #e40580;
	box-shadow: 0 4px 0 #a8035e;
	color: #fff;
}
.entry-content .dl-thanks a.dl-thanks__btn.is-primary:hover,
.entry-content .dl-thanks a.dl-thanks__btn.is-primary:focus {
	background: #f0218d;
	color: #fff;
}

@keyframes panfFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes panfUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.panf-modal__overlay,
	.panf-modal__dialog {
		animation: none;
	}
}
/* max-width: 600px */
@media screen and (max-width: 600px) {
	.panf-modal__scroll {
		padding: 16px 10px;
	}
	.panf-modal__head {
		padding: 14px 64px 12px 16px;
	}
	.panf-modal .panf-modal__title {
		font-size: 1.1rem;
	}
	.panf-step--form {
		padding: 20px 16px 24px;
	}
	.panf-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.panf-modal .panf-doc img {
		width: 56px;
		height: 40px;
	}
	.panf-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 28px 0;
	}
	.panf-item__img {
		order: -1;
	}
	.entry-content .panf-item h3.panf-item__title {
		font-size: 1.25rem;
	}
	.entry-content .panf-item a.panf-item__btn {
		max-width: none;
	}
	.dl-thanks .pc {
		display: none;
	}
	.entry-content .dl-thanks p.dl-thanks__title {
		font-size: 1.3rem;
	}
	.dl-thanks__note {
		padding: 16px;
	}
	.entry-content .dl-thanks a.dl-thanks__btn {
		width: 100%;
		min-width: 0;
	}
}
