/* Nichidore Profiles — SWELL のメインカラー（--color_main）に追従 */
.ndp,
.ndp-viewer {
	/* 背景が白でも黒でも見えるよう、テーマの文字色（currentColor）から作る。
	   拡大表示・会員限定の案内（.ndp-viewer）は body 直下に作られるため、ここでも定義する */
	--ndp-accent: var(--color_link, #d17373);
	--ndp-line: color-mix(in srgb, currentColor 20%, transparent);
	--ndp-soft: color-mix(in srgb, currentColor 7%, transparent);
}

/* 絞り込みフォーム */
.ndp-filter {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px 16px;
	padding: 16px;
	margin: 1em 0 1.5em;
	background: var(--ndp-soft);
	border-radius: 8px;
}
.ndp-filter__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; font-size: .85em; }
.ndp-filter__item > span { font-weight: 700; }
.ndp-filter__kw { grid-column: 1 / -1; }
.ndp-filter__range { display: flex; align-items: center; gap: 4px; }
.ndp-filter__range i { font-style: normal; opacity: .65; }
.ndp-filter select,
.ndp-filter input[type="search"] {
	width: 100%;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--ndp-line);
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
}
.ndp-filter__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ndp-reset { font-size: .85em; }

.ndp-btn {
	display: inline-block;
	padding: 10px 28px;
	border: 0;
	border-radius: 4px;
	background: var(--ndp-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.ndp-btn:hover { opacity: .85; }

.ndp-count { margin: 0 0 1em; font-size: .9em; }
.ndp-empty { padding: 2em 0; text-align: center; opacity: .7; }
.ndp-more { margin: 0 0 2em; text-align: center; }
.ndp-more .ndp-btn { color: #fff; text-decoration: none; }

/* カード一覧 */
.ndp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 20px 16px;
	padding: 0 !important;
	margin: 0 0 2em;
	list-style: none !important;
}
.ndp-card { margin: 0; padding: 0; }
.ndp-card::before { display: none; }
.ndp-card a { display: block; color: inherit; text-decoration: none; }
.ndp-card__thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ndp-soft); }
.ndp-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .3s; }
.ndp-card a:hover .ndp-card__thumb img { transform: scale(1.04); }
.ndp-noimg { display: block; width: 100%; height: 100%; }
.ndp-card__badges { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.ndp-badge { padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; line-height: 1.5; }
.ndp-badge--video { background: var(--ndp-accent); }
.ndp-card__body { display: flex; flex-direction: column; gap: 1px; padding: 8px 2px 0; line-height: 1.5; }
/* 氏名＋No */
.ndp-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; }
.ndp-no { font-size: .75em; font-weight: 400; opacity: .75; letter-spacing: .05em; white-space: nowrap; }
.ndp-card__name { font-size: 1em; }
.ndp-card__name .ndp-no { font-size: 12px; }

/* 更新マーク（最新の更新から1週間以内） */
.ndp-updated {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	padding: 2px 8px;
	border-radius: 3px;
	background: #ff7a00;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	animation: ndp-blink 1.2s ease-in-out infinite;
}
@keyframes ndp-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
	.ndp-updated { animation: none; }
}
.ndp-card__meta { font-size: .8em; font-variant-numeric: tabular-nums; }
.ndp-card__job { font-size: .8em; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 詳細 */
.ndp-back { margin: 0 0 1em; font-size: .9em; }
.ndp-single__head { margin-bottom: 1em; }
.ndp-single__name { margin: 0; font-size: 1.6em; line-height: 1.4; }
.ndp-single__name .ndp-no { font-size: .55em; }
.ndp-single__top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; margin-bottom: 2em; }
.ndp-single__main img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ndp-comment { margin: 12px 0 0; padding: 12px 16px; background: var(--ndp-soft); border-radius: 6px; line-height: 1.8; }
@media (max-width: 767px) {
	.ndp-single__top { grid-template-columns: 1fr; }
}

/* シルエットがあるとき：PC は 写真｜プロフィール｜シルエット、タブレットは写真の下にプロフィールとシルエットを並べる、スマホは縦に */
.ndp-single__top.has-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 959px) {
	.ndp-single__top.has-body { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
	.ndp-single__top.has-body .ndp-single__main { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
	.ndp-single__top.has-body { grid-template-columns: 1fr; }
	.ndp-single__top.has-body .ndp-body { width: 100%; max-width: 320px; margin-inline: auto; }
}

/* シルエット（assets/ndp-body.js が SVG を描く。文字の大きさは図の座標＝cm 単位） */
.ndp-body { margin: 0; min-width: 0; }
.ndp-body__svg { display: block; width: 100%; height: auto; }
.ndp-body__fig path,
.ndp-body__fig ellipse { fill: var(--ndp-accent); }
.ndp-body__ruler line,
.ndp-body__floor { stroke: currentColor; stroke-width: .35; opacity: .45; }
.ndp-body__ruler text,
.ndp-body__cap { font-size: 5.4px; fill: currentColor; opacity: .65; }
.ndp-body__val { font-size: 6px; font-weight: 700; fill: currentColor; }
.ndp-body__mark { stroke: currentColor; stroke-width: .3; stroke-dasharray: 1.2 1; opacity: .5; }
.ndp-body__guide { stroke: currentColor; stroke-width: .3; stroke-dasharray: .6 .8; opacity: .35; }
.ndp-body__note { margin: 6px 0 0; font-size: .75em; text-align: center; opacity: .6; }

.ndp-profile { width: 100%; margin: 0; border-collapse: collapse; font-size: .95em; }
.ndp-profile th,
.ndp-profile td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--ndp-line); text-align: left; vertical-align: top; background: none; }
.ndp-profile th { width: 7em; white-space: nowrap; font-weight: 700; opacity: .7; }

.ndp-h2 { margin: 1.5em 0 .8em; font-size: 1.2em; }

/* 会員バー */
.ndp-member {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 10px 14px;
	margin: 0 0 1.2em;
	border: 1px solid var(--ndp-line);
	border-radius: 6px;
	font-size: .85em;
}
.ndp-member__state { margin-right: auto; }
.ndp-member__lv { display: inline-block; margin-left: .6em; padding: 1px 8px; border-radius: 3px; background: var(--ndp-soft); font-size: .9em; }
.ndp-member__lv--2 { background: #b8860b; color: #fff; }
.ndp-member__until { opacity: .7; }
.ndp-member .ndp-btn { color: #fff; text-decoration: none; }
.ndp-btn--sm { padding: 6px 16px; font-size: .95em; }
.ndp-btn--paid { background: #b8860b; }

/* 人気投票 */
.ndp-card__pop {
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 2px 7px;
	border-radius: 3px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 11px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.ndp-card__pop small { margin-left: 1px; font-size: 10px; }
.ndp-pop { margin-bottom: 2em; }
.ndp-pop__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 !important; margin: 0 0 .8em; list-style: none !important; }
.ndp-pop__list li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; margin: 0; border-radius: 6px; background: var(--ndp-soft); }
.ndp-pop__list li::before { display: none; }
.ndp-pop__label { font-size: .8em; opacity: .75; }
.ndp-pop__pt { font-size: 1.4em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ndp-pop__pt small { margin-left: 2px; font-size: .55em; font-weight: 400; }
.ndp-pop__rank { font-size: .75em; color: var(--ndp-accent); font-weight: 700; }
.ndp-pop__msg { margin: 0; font-size: .85em; }
@media (max-width: 480px) {
	.ndp-pop__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ndp-access { margin: 0 0 1em; padding: 10px 14px; border-radius: 6px; background: var(--ndp-soft); font-size: .85em; }

/* 写真・動画のサムネイル */
.ndp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
	margin-bottom: 2em;
}
.ndp-tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 4px;
	background: var(--ndp-soft);
	cursor: pointer;
}
.ndp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ndp-tile:hover img { transform: scale(1.04); }
.ndp-tile.is-locked img { filter: brightness(.75); }
/* 依頼作品（P）は有料会員以外ぼかす */
.ndp-tile.is-blur img,
.ndp-tile.is-blur:hover img { filter: blur(6px) brightness(.9); transform: scale(1.08); }
.ndp-tile__tag { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 3px; background: #b8860b; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; }
.ndp-tile__tag--free { background: rgba(0, 0, 0, .6); font-weight: 400; }
.ndp-tile__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
}
.ndp-tile__play::after { content: ""; position: absolute; top: 16px; left: 21px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
/* 鍵マーク */
.ndp-tile__lock { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .65); }
.ndp-tile__lock::before { content: ""; position: absolute; left: 8px; top: 12px; width: 10px; height: 8px; border-radius: 1px; background: #fff; }
.ndp-tile__lock::after { content: ""; position: absolute; left: 9px; top: 6px; width: 8px; height: 8px; border: 2px solid #fff; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }

/* ビューア（写真・動画・会員案内） */
/* 幅は 100%（100vw だとスクロールバーの下に右端が隠れ、次へボタンが見えなかった） */
.ndp-viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.ndp-viewer::backdrop { background: rgba(0, 0, 0, .6); }
.ndp-viewer img,
.ndp-viewer video { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 96px); max-height: calc(100% - 110px); object-fit: contain; }
.ndp-viewer video { width: calc(100% - 96px); background: #000; }
.ndp-viewer button { position: absolute; border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; padding: 12px; cursor: pointer; }
.ndp-viewer .ndp-viewer__close { top: 8px; right: 8px; }
.ndp-viewer .ndp-viewer__prev,
.ndp-viewer .ndp-viewer__next { top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background .15s; }
.ndp-viewer .ndp-viewer__prev:hover,
.ndp-viewer .ndp-viewer__next:hover { background: rgba(255, 255, 255, .3); }
.ndp-viewer .ndp-viewer__prev:focus-visible,
.ndp-viewer .ndp-viewer__next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ndp-viewer .ndp-viewer__prev { left: 16px; }
.ndp-viewer .ndp-viewer__next { right: 16px; }
.ndp-viewer--photo img { max-width: calc(100% - 176px); }
.ndp-viewer.is-single .ndp-viewer__prev,
.ndp-viewer.is-single .ndp-viewer__next { display: none; }
.ndp-viewer__bar { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13px; }
.ndp-viewer__dl { padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; color: #fff !important; text-decoration: none; }
.ndp-viewer__dl:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 600px) {
	.ndp-viewer img,
	.ndp-viewer video { max-width: 100%; width: 100%; }
	/* スマホは写真の上に重ねる */
	.ndp-viewer .ndp-viewer__prev,
	.ndp-viewer .ndp-viewer__next { width: 46px; height: 46px; background: rgba(0, 0, 0, .5); }
	.ndp-viewer .ndp-viewer__prev { left: 8px; }
	.ndp-viewer .ndp-viewer__next { right: 8px; }
}
.ndp-viewer--lock { background: rgba(0, 0, 0, .75); }
.ndp-lock {
	position: absolute;
	inset: 0;
	width: min(440px, calc(100% - 32px));
	height: fit-content;
	margin: auto;
	padding: 28px 24px 20px;
	border-radius: 8px;
	background: #fff;
	color: #333;
	text-align: center;
	line-height: 1.8;
}
.ndp-lock p { margin: 0 0 1em; }
.ndp-lock__title { font-size: 1.2em; font-weight: 700; }
.ndp-lock__actions { display: flex; flex-direction: column; gap: 10px; }
.ndp-lock__actions .ndp-btn { background: var(--ndp-accent, #d17373); color: #fff; text-decoration: none; }
.ndp-lock__actions .ndp-btn--paid { background: #b8860b; }
.ndp-lock__actions .ndp-btn--plain { border: 1px solid var(--ndp-accent); background: #fff; color: var(--ndp-accent); }
.ndp-lock__login { font-size: .9em; }
.ndp-viewer--lock .ndp-viewer__close { color: #fff; }

/* 準備中（公開日前）のカード */
.ndp-card.is-soon .ndp-card__link { display: block; cursor: default; }
.ndp-card.is-soon a.ndp-card__link { cursor: pointer; }
.ndp-card.is-soon .ndp-card__thumb img { filter: blur(7px) saturate(.9); transform: scale(1.1); }
.ndp-soon {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
	background: rgba(0, 0, 0, .22);
	color: #fff;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: .2em;
}
.ndp-soon__date { font-size: 1.5em; letter-spacing: .05em; line-height: 1.2; }
.ndp-soon__label { font-size: .85em; letter-spacing: .2em; }
.ndp-card__note { font-size: .75em; color: var(--ndp-accent); font-weight: 700; }

/* 新着 [nd_new] */
.ndp-new { margin: 0 0 2.5em; }
.ndp-new__title { margin: 0 0 .8em; }
.ndp-new__more { margin: 1em 0 0; text-align: right; font-size: .9em; }

/* 依頼作品（P1.jpg など）のタグ */
.ndp-tile__tag--req { background: #7b4bb7; }

/* 依頼＆応援フォーム（詳細ページ） */
.ndp-req {
	margin: 2em 0;
	padding: 20px;
	border: 1px solid var(--ndp-line);
	border-radius: 8px;
	background: var(--ndp-soft);
}
.ndp-req__lead { margin: 0 0 1em; line-height: 1.9; }
.ndp-req__kinds { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 .8em; padding: 0; border: 0; }
.ndp-req__kinds legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ndp-req__kinds label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; }
.ndp-req textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 16px;
	line-height: 1.7;
	resize: vertical;
}
.ndp-req__count { margin: 4px 0 0; text-align: right; font-size: .8em; opacity: .75; }
.ndp-req__privacy { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: .6em 0 0; padding: 0; border: 0; }
.ndp-req__privacy legend { width: 100%; margin: 0 0 4px; padding: 0; font-size: .9em; font-weight: 700; }
.ndp-req__privacy label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ndp-req__err { margin: .5em 0 0; color: #e04848; font-weight: 700; }
.ndp-req__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 1em 0 0; }
.ndp-req__actions .ndp-btn { min-width: 200px; color: #fff; }
.ndp-req__actions .ndp-btn--plain { border: 1px solid var(--ndp-accent); background: #fff; color: var(--ndp-accent); }
.ndp-req__go[disabled] { opacity: .45; cursor: not-allowed; }
.ndp-req__confirm { padding: 16px; border-radius: 6px; background: #fff; color: #222; }
.ndp-req__ctitle { margin: 0 0 .6em; font-weight: 700; font-size: 1.1em; }
.ndp-req__preview { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 10px; margin: 0 0 1em; }
.ndp-req__preview dt { font-weight: 700; }
.ndp-req__preview dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ndp-req__terms { margin: 0; padding: 10px 12px; border-left: 3px solid var(--ndp-accent); background: #f6f6f6; font-size: .9em; line-height: 1.8; }
.ndp-req__state { margin: 1em 0 0; text-align: center; font-size: .9em; }
.ndp-req__notice { margin: 0 0 1em; padding: 10px 12px; border-radius: 4px; font-weight: 700; }
.ndp-req__notice--ok { background: #e8f6ec; color: #1d6b35; }
.ndp-req__notice--ng { background: #fdecec; color: #b42323; }
.ndp-req__more { margin: 1em 0 0; text-align: right; font-size: .9em; }
@media (max-width: 599px) {
	.ndp-req { padding: 14px; }
	.ndp-req__actions .ndp-btn { flex: 1 1 100%; min-width: 0; }
}

/* やってほしいこと一覧 [nd_requests]（白地。無料会員は黒字、有料会員は赤の太字） */
.ndp-reqs { margin: 2.5em 0; }
.ndp-reqs__title { margin: 0 0 .8em; }
.ndp-reqs__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ndp-reqs__item { margin: 0; padding: 12px 16px; border-radius: 6px; background: #fff; color: #222; }
.ndp-reqs__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 4px; font-size: .85em; color: #666; }
.ndp-reqs__name { font-weight: 700; color: #222; }
.ndp-reqs__kind { padding: 0 8px; border-radius: 10px; background: #eee; color: #555; font-size: .9em; }
.ndp-reqs__msg { margin: 0; color: #222; line-height: 1.8; word-break: break-word; }
.ndp-reqs__item.is-paid .ndp-reqs__msg { color: #d00; font-weight: 700; }
.ndp-reqs__more,
.ndp-reqs__pager { display: flex; justify-content: flex-end; gap: 16px; margin: 1em 0 0; font-size: .9em; }
.ndp-reqs__pager { justify-content: center; }

/* マイページ [nd_mypage] */
.ndp-mp { max-width: 760px; }
.ndp-mp__box { margin: 0 0 1.5em; padding: 18px 20px; border: 1px solid var(--ndp-line); border-radius: 8px; background: var(--ndp-soft); }
.ndp-mp__box--danger { border-color: rgba(224, 72, 72, .5); }
.ndp-mp__h { margin: 0 0 .8em !important; font-size: 1.15em; }
.ndp-mp__table { width: 100%; border-collapse: collapse; }
.ndp-mp__table th, .ndp-mp__table td { padding: 8px 6px; border-bottom: 1px solid var(--ndp-line); text-align: left; vertical-align: top; }
.ndp-mp__table th { width: 9em; font-weight: 700; white-space: nowrap; }
.ndp-mp__table small { margin-left: 6px; opacity: .7; }
.ndp-mp__form p { margin: 0 0 .9em; }
.ndp-mp__form label { display: block; font-weight: 700; }
.ndp-mp__form input[type=text], .ndp-mp__form input[type=email], .ndp-mp__form input[type=password] {
	display: block; box-sizing: border-box; width: 100%; max-width: 420px; margin-top: 6px; padding: 10px;
	border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #222; font-size: 16px; font-weight: 400;
}
.ndp-mp__check label { font-weight: 400; }
.ndp-mp__submit .ndp-btn, .ndp-mp__actions .ndp-btn, .ndp-mp__up .ndp-btn { color: #fff; text-decoration: none; }
.ndp-mp__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ndp-mp__actions .ndp-btn--plain { border: 1px solid var(--ndp-accent); background: #fff; color: var(--ndp-accent); }
.ndp-btn--danger { background: #c0392b; }
.ndp-mp__note { font-size: .9em; opacity: .85; }
.ndp-mp__sub { margin: 1em 0 .4em; font-weight: 700; }
.ndp-mp__girls { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.ndp-mp__reqs { margin: 0; padding-left: 1.2em; font-size: .92em; line-height: 1.8; }
.ndp-mp__date { opacity: .7; }
.ndp-mp__notice { padding: 12px 14px; border-radius: 4px; font-weight: 700; }
.ndp-mp__notice--ok { background: #e8f6ec; color: #1d6b35; }
.ndp-mp__notice--ng { background: #fdecec; color: #b42323; }
.ndp-mp__logout { text-align: right; }

/* 依頼フォームの禁止事項 */
.ndp-req__rules { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid #e0a040; background: rgba(224, 160, 64, .08); font-size: .85em; line-height: 1.7; }
/* 最初は畳んでおき、右端の「注意事項」ボタンで開く */
.ndp-req__rules > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.ndp-req__rules > summary::-webkit-details-marker { display: none; }
.ndp-req__rules-lead { min-width: 0; opacity: .85; }
.ndp-req__rules-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #e0a040; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.ndp-req__rules-btn::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.ndp-req__rules[open] .ndp-req__rules-btn::after { transform: translateY(2px) rotate(-135deg); }
.ndp-req__rules > summary:hover .ndp-req__rules-btn { background: rgba(224, 160, 64, .18); }
.ndp-req__rules > summary:focus-visible { outline: 2px solid #e0a040; outline-offset: 2px; }
.ndp-req__rules-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(224, 160, 64, .35); }
.ndp-req__rules-title { margin: 0 0 4px; font-weight: 700; }
.ndp-req__rules ul { margin: 0 0 4px; padding-left: 1.2em; }
.ndp-req__rules-note { margin: 0; opacity: .85; }

/* ---------- 顔が似ている女性 ベスト3（プロフィールのページ） ---------- */
.ndp-sim { margin: 2.5em 0 1em; }
.ndp-sim__grid { counter-reset: none; }
.ndp-sim__card { position: relative; }
.ndp-sim__card::before { content: attr(data-rank); position: absolute; z-index: 3; left: -6px; top: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 16px; color: #fff; background: var(--ndp-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.ndp-sim__card[data-rank="1"]::before { background: linear-gradient(135deg, #f6d36b, #c99a2e); color: #2a1d00; }
.ndp-sim__card[data-rank="2"]::before { background: linear-gradient(135deg, #e6e9ee, #a9b0bb); color: #222; }
.ndp-sim__card[data-rank="3"]::before { background: linear-gradient(135deg, #e9b48a, #a8683d); color: #fff; }
.ndp-sim__card .ndp-card__note { font-weight: 700; color: var(--ndp-accent); }
.ndp-sim__card .ndp-updated { left: 34px; } /* 順位バッジと重ならないように */
.ndp-sim__note { margin-top: .8em; font-size: .82em; opacity: .7; }

/* ---------- 好みのタイプ診断 [nd_shindan] ---------- */
.ndp-shindan { max-width: 860px; margin: 0 auto; text-align: center; }
.ndp-shindan__start { padding: 34px 20px; border-radius: 16px; background: var(--ndp-soft); }
.ndp-shindan__lead { margin: 0 0 22px; line-height: 2; font-weight: 600; }
.ndp-shindan__go { padding: 14px 44px; font-size: 1.05em; font-weight: 700; }
.ndp-shindan__small { margin: 14px 0 0; font-size: .8em; opacity: .65; }
.ndp-shindan__q { padding: 26px 16px; border-radius: 16px; background: var(--ndp-soft); }
.ndp-shindan__step { margin: 0; font-size: .85em; font-weight: 700; letter-spacing: .2em; color: var(--ndp-accent); }
.ndp-shindan__title { margin: 6px 0 20px; font-size: 1.3em; font-weight: 800; }
.ndp-shindan__faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ndp-shindan__faces button { padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 4; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ndp-shindan__faces button:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.ndp-shindan__faces button.is-on { border-color: var(--ndp-accent); transform: scale(1.03); }
.ndp-shindan__faces img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ndp-shindan__skip { margin-top: 16px; padding: 8px 20px; border: 1px solid var(--ndp-line); border-radius: 999px; background: none; color: inherit; font-size: .85em; cursor: pointer; opacity: .8; }
.ndp-shindan__opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ndp-shindan__opts button { min-width: 140px; padding: 13px 20px; border: 1px solid var(--ndp-line); border-radius: 12px; background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; font-size: 1em; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.ndp-shindan__opts button:hover { border-color: var(--ndp-accent); background: color-mix(in srgb, var(--ndp-accent) 15%, transparent); }
.ndp-shindan__opts button.is-any { font-weight: 500; opacity: .75; }
.ndp-shindan__rt { margin: 0 0 18px; font-size: 1.3em; font-weight: 800; }
.ndp-shindan__top { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ndp-shindan__top li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ndp-shindan__top li::before, .ndp-shindan__top li::marker { content: none !important; display: none !important; }
.ndp-shindan__top a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: var(--ndp-soft); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ndp-shindan__top a:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.ndp-shindan__top li[data-rank="1"] a { box-shadow: 0 0 0 2px #e2b84a; }
.ndp-shindan__top img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.ndp-shindan__rank { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: 19px; color: #fff; background: var(--ndp-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.ndp-shindan__top li[data-rank="1"] .ndp-shindan__rank { background: linear-gradient(135deg, #f6d36b, #c99a2e); color: #2a1d00; }
.ndp-shindan__top li[data-rank="2"] .ndp-shindan__rank { background: linear-gradient(135deg, #e6e9ee, #a9b0bb); color: #222; }
.ndp-shindan__top li[data-rank="3"] .ndp-shindan__rank { background: linear-gradient(135deg, #e9b48a, #a8683d); }
.ndp-shindan__who { display: block; padding: 12px 12px 4px; }
.ndp-shindan__who b { display: block; font-size: 1.05em; }
.ndp-shindan__who small { display: block; margin-top: 2px; font-size: .78em; opacity: .7; }
.ndp-shindan__pct { display: block; padding: 0 12px; font-size: .85em; font-weight: 700; color: var(--ndp-accent); }
.ndp-shindan__pct b { margin: 0 2px 0 6px; font-size: 1.9em; }
.ndp-shindan__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 10px 14px; margin-top: auto; }
.ndp-shindan__tags span { padding: 2px 8px; border-radius: 999px; font-size: .72em; background: color-mix(in srgb, currentColor 8%, transparent); }
.ndp-shindan__tags span.is-hi { background: color-mix(in srgb, var(--ndp-accent) 22%, transparent); font-weight: 700; }
.ndp-shindan__tags span.is-lo { opacity: .55; }
.ndp-shindan__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
.ndp-shindan__x { display: inline-block; padding: 10px 24px; border-radius: 999px; background: #000; color: #fff !important; text-decoration: none !important; font-weight: 700; border: 1px solid rgba(255, 255, 255, .25); }
@media (max-width: 600px) {
	.ndp-shindan__faces { grid-template-columns: repeat(2, 1fr); }
	.ndp-shindan__top { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto !important; }
	.ndp-shindan__opts button { min-width: 0; flex: 1 1 40%; }
}
