/*
 * Noppo camera 1.10.0：ニューボーンのポーズ（template-parts/front/newborn-poses.php・assets/js/newborn.js）。
 * 色・フォントはテーマの :root の変数だけ。
 * 写真の列：高さをそろえ、幅は向きで（横 3:2／縦 4:5。aspect-ratio と object-fit: cover）。丸・かごは正方形。
 * 写真のない所：「写真準備中」の点線の枠（無地の面の色）。
 */

/* 1.13.0：NEWBORN のカードを開いた中（プラン・オプションの後ろ）に入れたので、左の線と字下げをやめ、上下の細い線の開閉の行に */
.nbpose { margin: 34px 0 0; border-top: 1px solid var(--line); }
.nbpose-summary {
	display: flex; align-items: center; min-height: 56px; padding: 12px 40px 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px; letter-spacing: .04em;
}
.nbpose-summary::after { content: "+"; content: "+" / ""; font: 26px/1 var(--latin); position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.nbpose[open] > .nbpose-summary::after { content: "−"; content: "−" / ""; }
.nbpose-summary-close { display: none; }
.nbpose[open] .nbpose-summary-open { display: none; }
.nbpose[open] .nbpose-summary-close { display: inline; }
.nbpose-body { padding: 4px 0 28px; }
.nbpose-lead { font-size: 14px; line-height: 2; margin-bottom: 14px; }
.nbpose-legend { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }

/* ポーズの丸（JS が動くときだけ。JS なしは全部のポーズが縦に並ぶ） */
.nb-poses { display: none; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 0 18px; }
.nb-poses::-webkit-scrollbar { display: none; }
.nbpose.is-live .nb-poses { display: flex; }
.nb-pose {
	flex: 0 0 auto; width: 84px; padding: 4px 2px 6px; border: 0; background: none; color: var(--ink);
	display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; cursor: pointer; font: inherit;
}
.nb-circle {
	position: relative; display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
	background: var(--wash); box-shadow: 0 0 0 1px var(--line);
}
.nb-circle img { width: 100%; height: 100%; object-fit: cover; object-position: var(--nb-focus, 50% 50%); }
.nb-pose.is-soon .nb-circle { box-shadow: none; border: 1px dashed var(--muted); display: flex; align-items: center; justify-content: center; }
.nb-pose[aria-pressed="true"] .nb-circle { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.nb-pose.is-soon[aria-pressed="true"] .nb-circle { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.nb-code {
	position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px;
	background: rgba(250, 248, 244, .92); color: var(--ink); font: 12px/20px var(--latin); text-align: center;
}
.nb-pose.is-picked .nb-code { background: var(--y-btn); color: var(--ink); box-shadow: inset 0 0 0 1px var(--y-line); } /* 1.14.0：黒から --y-btn に（CEO ボードQ79 A）。選んでいない記号（白っぽい地）と分かるように --y-line の細い線 */
.nb-en { font: 11px/1.4 var(--latin); letter-spacing: .04em; white-space: nowrap; }
.nb-ja { font-size: 11px; line-height: 1.4; color: var(--muted); }
.nb-mini { display: inline-block; padding: 0 6px; border: 1px solid var(--ink); font: 10px/1.6 var(--label); letter-spacing: .04em; white-space: nowrap; }
.nb-mini--no { border-color: var(--line); color: var(--muted); }
.nb-soon-text { font-size: 11px; line-height: 1.4; color: var(--muted); letter-spacing: .02em; }

/* ポーズごとの欄（JS が動くときは、選んだ1つだけ） */
.nb-panel { padding: 8px 0 18px; }
.nb-panel + .nb-panel { border-top: 1px solid var(--line); }
.nbpose.is-live .nb-panel { display: none; border-top: 0; }
.nbpose.is-live .nb-panel.is-current { display: block; }
.nb-title { font-size: 18px; margin: 0 0 8px; line-height: 1.6; }
.nb-title-en { font-family: var(--latin); letter-spacing: .06em; }
.nb-title-ja { font-size: 14px; color: var(--muted); }
.nb-title .nb-mini { vertical-align: .2em; margin-left: 4px; }
.nb-text { font-size: 14px; line-height: 1.9; margin: 0 0 10px; }
.nb-alert { font-size: 13px; line-height: 1.8; margin: 0 0 12px; padding: 8px 12px; background: var(--wash); border-left: 2px solid var(--accent); }
.nb-sub-title { font-size: 13px; color: var(--muted); margin: 6px 0 6px; }
.nb-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }

/* C：コーディネート */
.nb-coords { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 8px; }
.nb-coord {
	position: relative; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--white); color: var(--ink); font: 12px/1 var(--latin); letter-spacing: .06em; cursor: pointer;
}
.nb-coord[aria-pressed="true"] { background: var(--y-btn); border-color: var(--y-line); color: var(--ink); } /* 1.14.0：黒から --y-btn に（CEO ボードQ79 A） */
.nb-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; border: 1px dashed currentColor; vertical-align: middle; }
.nb-coord-text { font-size: 13px; line-height: 1.8; margin: 0 0 8px; color: var(--muted); }
.nb-coord-soon { display: block; }
.nbpose:not(.is-live) .nb-coord-text { display: block; }

/* 写真の列 */
.nb-panel { --nb-h: min(300px, calc((100vw - 74px) * 2 / 3)); }
.nb-row {
	list-style: none; display: flex; gap: 10px; margin: 0; padding: 4px 0 8px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.nb-ph { flex: 0 0 auto; height: var(--nb-h); scroll-snap-align: start; background: var(--wash); }
.nb-ph--l { aspect-ratio: 3 / 2; }
.nb-ph--p { aspect-ratio: 4 / 5; }
.nb-ph-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.nb-ph-btn img { width: 100%; height: 100%; object-fit: cover; object-position: var(--nb-focus, 50% 50%); }
.nb-soon {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	border: 1px dashed var(--muted); background: var(--wash);
}
.nb-soon--black { background: #3a3935; border-color: var(--line); }
.nb-soon--black .nb-soon-text, .nb-soon--black .nb-soon-bg { color: #f3f0ea; }
.nb-soon--white { background: var(--white); }
.nb-soon-bg { font-size: 11px; color: var(--muted); }
.nb-pos { margin: 0 0 6px; font: 12px/1.6 var(--latin); color: var(--muted); letter-spacing: .08em; }

/* B：かご */
.nb-baskets { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.nb-basket {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 100%; aspect-ratio: 1 / 1; min-height: 44px; padding: 0; overflow: hidden;
	border: 1px solid var(--line); background: var(--wash); color: var(--ink); font: inherit; cursor: pointer;
}
.nb-basket img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--nb-focus, 50% 50%); }
.nb-basket .nb-basket-name { position: relative; font-size: 11px; line-height: 1.4; }
button.nb-basket .nb-basket-name { position: absolute; left: 2px; bottom: 2px; padding: 0 4px; background: rgba(250, 248, 244, .92); }
.nb-basket[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.nb-basket--soon { border-style: dashed; border-color: var(--muted); cursor: default; }
.nb-basket--soon .nb-soon-text { font-size: 10px; }

/* 相談に入れる */
.nb-pick-wrap { margin: 16px 0 0; }
.nb-pick { width: 100%; max-width: 420px; font-family: inherit; }
.nb-pick:disabled { background: var(--wash); color: var(--muted); border-color: var(--line); cursor: default; }
.nb-pick[hidden] { display: none; }
.nb-status { min-height: 1.6em; margin: 6px 0 0; font-size: 13px; line-height: 1.6; }

.nb-tray { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); }
.nb-tray[hidden] { display: none; }
.nb-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nb-tray-title { margin: 0; font-size: 13px; }
.nb-tray-go { min-height: 44px; padding: 8px 16px; font-size: 14px; font-family: inherit; white-space: nowrap; }
.nb-tray-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 0; padding: 0; }
.nb-tray-list li { display: inline-flex; align-items: center; gap: 2px; padding-left: 10px; border: 1px solid var(--line); border-radius: 999px; font: 12px/1.3 var(--latin); }
.nb-tray-remove { min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: 12px/1 var(--sans); text-decoration: underline; cursor: pointer; }
.nb-over { margin: 8px 0 0; font-size: 13px; line-height: 1.8; }
.nb-over[hidden] { display: none; }
.nb-plan-guide { margin: 20px 0 0; padding: 14px 16px; background: var(--wash); font-size: 13px; line-height: 1.9; }
.nb-plan-guide p { margin: 0; }
.nb-plan-guide p + p { margin-top: 8px; }

/* 大きく見る */
.nb-lb {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
	padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
	background: rgba(48, 47, 42, .8);
}
.nb-lb[hidden] { display: none; }
.nb-lb-panel { position: relative; width: 100%; max-width: 980px; max-height: 100%; overflow-y: auto; padding: 52px 14px 12px; background: var(--paper); text-align: center; }
.nb-lb-x { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font: 26px/1 var(--latin); cursor: pointer; }
.nb-lb-fig { margin: 0; }
.nb-lb-img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); object-fit: contain; }
.nb-lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.nb-btn, .nb-lb-close {
	min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--white); color: var(--ink); font: 13px/1 var(--sans); cursor: pointer;
}
.nb-lb-close { width: 100%; border-radius: 0; }
.nb-lb-pos { font: 13px/1 var(--latin); color: var(--muted); letter-spacing: .08em; }

@media (min-width: 701px) {
	.nb-panel { --nb-h: 340px; }
	.nb-baskets { grid-template-columns: repeat(10, minmax(0, 1fr)); max-width: 760px; }
}
@media print {
	.nb-pick-wrap, .nb-tray, .nb-lb { display: none !important; }
}

/* 06 撮影の流れのニューボーンから、ポーズの欄へのリンク */
.flow-nbpose-link { margin: 16px 0 0; }
