/*
 * Φ-DesignAgent 製品ページ・PoC 相談フォーム・ナビとトップの製品カード
 * 接頭辞 da- = DesignAgent。共通の部品は phi-designer.css（pd-*）をそのまま使い、ここでは色の差し替えと da- の部品だけを書く。
 * 文言は inc/phi-designagent-data.php、表示は inc/phi-designagent.php
 */

/* ---------- 色（Φ-Designer の青寄りの紺とティールに対し、暖色寄りの紺とオレンジ） ----------
 * 製品ページと相談フォームでは本文（.pd）と追従 CTA に、それ以外では .da-theme を付けた要素
 * （ナビの項目、トップの製品カード、比較表の列など）に効く */
.da-page .pd,
.da-page .pd-sticky,
.da-theme {
	--pd-navy: #302f40;
	--pd-navy-2: #242331;
	--pd-navy-3: #3c3a50;
	--pd-navy-rgb: 48, 47, 64;
	--pd-accent: #cc6b1e;
	--pd-accent-2: #a95614;
	--pd-accent-rgb: 204, 107, 30;
	--pd-accent-light: #f6b37a;
	--pd-tint: #f8f6f3;
	--pd-line: #ebe6e0;
	--pd-text: #2e2c36;
}

/* ---------- ヒーロー ---------- */
/* 製品名が Φ-Designer より長いので、文字を一回り小さくして 1 行に収める */
.da-hero .pd-hero__name {
	font-size: clamp(2.3rem, 5vw, 3.9rem);
}

/* ---------- Φ-DesignAgent とは（入力 → Φ-DesignAgent → 出力） ---------- */
.da-io {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 40px;
	align-items: stretch;
}
.da-io__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	text-align: center;
}
.da-io__item:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	right: -31px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 700;
	color: var(--pd-accent);
}
.da-io__item--agent {
	background: linear-gradient(160deg, var(--pd-navy-2), var(--pd-navy-3));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 18px 40px rgba(var(--pd-navy-rgb), 0.25);
}
.da-io__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--pd-accent);
	font-family: Lato, "Noto Sans JP", sans-serif;
}
.da-io__item--agent .da-io__label {
	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--pd-accent-light);
}
.da-io__item strong {
	font-size: 17px;
	line-height: 1.5;
}
.da-io__item--agent strong {
	color: #fff;
}
.da-io__desc {
	font-size: 13.5px;
	color: var(--pd-muted);
}
.da-io__item--agent .da-io__desc {
	color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 782px) {
	.da-io {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	.da-io__item:not(:last-child)::after {
		content: "\2193";
		right: auto;
		left: 50%;
		top: auto;
		bottom: -31px;
		transform: translateX(-50%);
	}
}

/* ---------- トップの製品カードの簡略版の流れ図（入力 → Φ-DesignAgent → 出力） ----------
 * 右の Φ-Designer のカードの数値の帯と同じくらいの高さに収め、リード文とボタンの間の空きを埋める。
 * 文言は data の home_io。半角スペース・括弧の前・<wbr> の位置で改行し（keep-all）、それでも入り切らない語だけ途中で折る */
.da-mini-io {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.da-mini-io__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 12px 8px;
	text-align: center;
	line-height: 1.4;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
}
.da-mini-io__item:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	right: -12px;
	top: 50%;
	transform: translate(50%, -50%);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--pd-accent-light);
}
.da-mini-io__item--agent {
	background: rgba(var(--pd-accent-rgb), 0.22);
	border-color: rgba(var(--pd-accent-rgb), 0.75);
}
/* 出力の枠は後ろに 2 枚重ねて「複数案」を表す */
.da-mini-io__item--out {
	box-shadow:
		5px -5px 0 -1px rgba(255, 255, 255, 0.13),
		10px -10px 0 -2px rgba(255, 255, 255, 0.07);
}
.da-mini-io__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.da-mini-io__label {
	font-family: Lato, "Noto Sans JP", sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--pd-accent-light);
}
.da-mini-io__item--agent .da-mini-io__label {
	font-size: 12.5px;
	letter-spacing: 0.03em;
	color: #fff;
}
.da-mini-io__title {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}
.da-mini-io__note {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.72);
}
.da-mini-io__item--agent .da-mini-io__note {
	color: var(--pd-accent-light);
}
.da-mini-io__loop {
	display: inline-block;
	vertical-align: -1px;
	margin-right: 3px;
}
/* スマートフォンでは縦に並べ、ラベルを左、内容を右に置く */
@media (max-width: 600px) {
	.da-mini-io {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.da-mini-io__item {
		display: grid;
		grid-template-columns: 7.2em minmax(0, 1fr);
		align-items: center;
		gap: 10px;
		padding: 10px 14px;
		text-align: left;
	}
	.da-mini-io__item:not(:last-child)::after {
		content: "\2193";
		right: auto;
		left: 50%;
		top: auto;
		bottom: -12px;
		transform: translate(-50%, 50%);
	}
	.da-mini-io__body {
		gap: 2px;
	}
}

/* ---------- よくある課題（説明文が無いので見出しの下を空ける） ---------- */
.da-problems .pd-h2 {
	margin-bottom: 40px;
}

/* ---------- 流用設計（新規設計との違いと、出典付きの数値） ---------- */
.da-reuse__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 28px;
	align-items: stretch;
}
.da-reuse__kinds {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.da-reuse__kind {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: 12px;
}
.da-reuse__kind strong {
	font-size: 17px;
	color: var(--pd-navy);
}
.da-reuse__kind span {
	font-size: 14px;
	color: var(--pd-muted);
}
.da-reuse__kind.is-focus {
	border-color: var(--pd-accent);
	box-shadow: 0 0 0 3px rgba(var(--pd-accent-rgb), 0.12);
}
.da-reuse__tag {
	align-self: flex-start;
	margin-top: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--pd-accent);
	color: #fff;
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
}
.da-reuse__numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.da-reuse__numbers li {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 26px 18px;
	border-radius: var(--pd-radius);
	background: linear-gradient(160deg, var(--pd-navy-2), var(--pd-navy-3));
	color: #fff;
	text-align: center;
}
.da-reuse__numbers strong {
	font-size: clamp(2rem, 3.4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	font-family: Lato, "Noto Sans JP", sans-serif;
}
.da-reuse__numbers span {
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}
.da-reuse__numbers sup {
	margin-left: 2px;
	font-size: 10px;
	color: var(--pd-accent-light);
}
.da-sources {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	font-size: 11.5px;
	line-height: 1.7;
	color: var(--pd-muted);
}
@media (max-width: 991px) {
	.da-reuse__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.da-reuse__numbers {
		grid-template-columns: 1fr;
	}
}

/* ---------- 流用設計への適用イメージ ---------- */
.da-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px;
	align-items: stretch;
}
.da-step {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 20px 18px 22px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	text-align: center;
}
.da-step img {
	display: block;
	width: 100%;
	max-width: 170px;
	height: auto;
	margin: 0 auto 6px;
}
.da-step strong {
	font-size: 16px;
	color: var(--pd-navy);
}
.da-step span {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--pd-muted);
}
.da-step:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	right: -27px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	font-weight: 700;
	color: var(--pd-accent);
}
.da-step--agent {
	background: linear-gradient(160deg, var(--pd-navy-2), var(--pd-navy-3));
	border-color: transparent;
	box-shadow: 0 18px 40px rgba(var(--pd-navy-rgb), 0.25);
}
.da-step--agent strong {
	font-size: 19px;
	color: #fff;
	font-family: Lato, "Noto Sans JP", sans-serif;
}
.da-step--agent span {
	color: rgba(255, 255, 255, 0.82);
}
.da-merits {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.da-merits li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px 16px 54px;
	background: var(--pd-tint);
	border-radius: 12px;
}
.da-merits li::before {
	content: "\2713";
	position: absolute;
	left: 18px;
	top: 18px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pd-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.da-merits strong {
	font-size: 15.5px;
}
.da-merits span {
	font-size: 13.5px;
	color: var(--pd-muted);
}
.da-note {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--pd-muted);
	text-align: center;
}
.da-note--box {
	max-width: 860px;
	margin: 28px auto 0;
	padding: 14px 18px;
	border-left: 4px solid var(--pd-accent);
	border-radius: 10px;
	background: #fff;   /* 薄い色の背景のセクションに置く */
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--pd-text);
	text-align: left;
}
@media (max-width: 991px) {
	.da-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.da-step:nth-child(2)::after {
		display: none;   /* 2 列で折り返す位置の矢印は出さない */
	}
	.da-merits {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.da-steps {
		grid-template-columns: 1fr;
	}
	.da-step:not(:last-child)::after,
	.da-step:nth-child(2)::after {
		display: block;
		content: "\2193";
		right: auto;
		left: 50%;
		top: auto;
		bottom: -29px;
		transform: translateX(-50%);
	}
}

/* ---------- 効果（5 つ目は横幅いっぱいのカード） ---------- */
.da-benefits .pd-feature:nth-child(5):last-child {
	grid-column: 1 / -1;
}

/* ---------- 計算事例 ---------- */
.da-case {
	padding: 32px 32px 26px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
}
.da-case + .da-case {
	margin-top: 28px;
}
.da-case__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: start;
	margin-bottom: 22px;
}
.da-case__no {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--pd-accent);
	font-family: Lato, "Noto Sans JP", sans-serif;
}
.da-case__title {
	font-size: 21px;
	margin: 0 0 10px;
}
.da-case__lead {
	margin: 0 0 14px;
	font-size: 14.5px;
}
.da-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
}
.da-chips li {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--pd-tint);
	font-size: 12.5px;
	color: var(--pd-text);
}
.da-case__big,
.da-case__metrics div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: 16px 24px;
	border-radius: 14px;
	background: linear-gradient(160deg, var(--pd-navy-2), var(--pd-navy-3));
	color: #fff;
	text-align: center;
}
.da-case__big {
	min-width: 190px;
}
.da-case__big span,
.da-case__metrics dt {
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
}
.da-case__big strong,
.da-case__metrics dd {
	margin: 0;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.15;
	font-family: Lato, "Noto Sans JP", sans-serif;
	font-variant-numeric: tabular-nums;
}
.da-case__big small {
	font-size: 12px;
	color: var(--pd-accent-light);
}
.da-case__metrics {
	display: flex;
	gap: 12px;
	margin: 0;
}
.da-case__metrics div {
	min-width: 130px;
}
.da-shapes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.da-shapes--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 640px;
	margin: 0 auto;
}
.da-shape {
	padding: 10px 12px 14px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: 12px;
	text-align: center;
}
.da-shape.is-original {
	border-style: dashed;
}
.da-shape img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 auto;
}
.da-shape__title {
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--pd-navy);
}
.da-shape__title span {
	color: var(--pd-accent);
}
.da-shape__dims {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--pd-muted);
}
.da-shape__dims .da-nobr {
	display: inline-block;   /* 「・」の位置でだけ改行する（1 文字だけ次の行に落ちないように） */
}
.da-shape__metrics {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px dashed var(--pd-line);
	font-size: 13px;
}
.da-shape__metrics div {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 1px 0;
}
.da-shape__metrics dt {
	font-weight: 400;
	color: var(--pd-muted);
}
.da-shape__metrics dd {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.da-shape__metrics .is-ok dd {
	color: #2c8763;   /* 要件を満たす（オレンジのアクセントと区別して緑系にする） */
}
.da-shape__metrics .is-ng dd {
	color: #c0392b;
}
.da-case__notes {
	list-style: none;
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--pd-tint);
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--pd-muted);
}
.da-case__notes li + li {
	margin-top: 4px;
}
@media (max-width: 991px) {
	.da-case__head {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.da-case__big {
		align-self: start;
	}
	.da-shapes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.da-case {
		padding: 22px 16px 18px;
	}
	.da-case__metrics div {
		min-width: 0;
		flex: 1 1 0;
	}
}

/* ---------- Φ-Designer との使い分け（列ごとに製品の色。.pd-theme / .da-theme） ---------- */
.da-compare__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid #e5e5ee;
	border-radius: var(--pd-radius);
}
.da-compare {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 14.5px;
}
.da-compare th,
.da-compare td {
	padding: 14px 18px;
	border-bottom: 1px solid #e5e5ee;
	text-align: left;
	vertical-align: top;
	line-height: 1.6;
	background: transparent;
}
.da-compare tbody tr:last-child th,
.da-compare tbody tr:last-child td {
	border-bottom: 0;
}
.da-compare thead td {
	width: 18%;
}
.da-compare thead th {
	width: 41%;
	color: #fff;
	background: linear-gradient(160deg, var(--pd-navy-2), var(--pd-navy-3));
	font-size: 19px;
	font-weight: 800;
	font-family: Lato, "Noto Sans JP", sans-serif;
	border-top: 4px solid transparent;
}
.da-compare thead th.is-current {
	border-top-color: var(--pd-accent);
}
.da-compare thead th small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--pd-accent-light);
	font-family: "Noto Sans JP", sans-serif;
}
.da-compare tbody th {
	white-space: nowrap;
	font-weight: 700;
	color: #3a3a48;
	background: #f6f6f9;
}
.da-compare tbody td {
	border-left: 1px solid #e5e5ee;
}
.da-compare tbody td::before {
	/* 列の色の目印 */
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--pd-accent);
	vertical-align: 1px;
}
.da-compare__note {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14.5px;
	font-weight: 700;
}
.da-compare__more {
	margin: 18px 0 0;
	text-align: center;
}
@media (max-width: 782px) {
	.da-compare th,
	.da-compare td {
		padding: 12px 14px;
		font-size: 13.5px;
	}
	.da-compare thead th {
		font-size: 16px;
	}
}

/* ---------- ご提供形態 ---------- */
.da-deploy__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.da-plan {
	display: flex;
	flex-direction: column;
	padding: 26px 24px 24px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
}
.da-plan.is-future {
	background: transparent;
	border-style: dashed;
}
.da-plan__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}
.da-plan__key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--pd-navy);
	color: #fff;
	font-weight: 800;
	font-family: Lato, "Noto Sans JP", sans-serif;
}
.da-plan__status {
	padding: 1px 10px;
	border: 1px solid rgba(var(--pd-accent-rgb), 0.5);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-accent);
}
.da-plan__title {
	margin: 0 0 14px;
	font-size: 19px;
}
.da-plan__title small {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--pd-muted);
}
.da-plan__where {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 16px;
}
.da-plan__box {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--pd-tint);
	text-align: center;
}
.da-plan__box.is-onprem {
	background: rgba(var(--pd-accent-rgb), 0.08);
}
.da-plan__box span {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--pd-muted);
}
.da-plan__box p {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--pd-navy);
}
.da-plan__box b {
	display: block;   /* 「AI」「シミュレーション」を 1 行ずつ（語の途中で折り返さない） */
	font-weight: 700;
	line-height: 1.6;
}
.da-plan__dl {
	margin: 0;
	font-size: 14px;
}
.da-plan__dl dt {
	margin-top: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--pd-accent);
}
.da-plan__dl dt:first-child {
	margin-top: 0;
}
.da-plan__dl dd {
	margin: 2px 0 0;
	color: var(--pd-text);
}
@media (max-width: 991px) {
	.da-deploy__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.da-plan {
		padding: 22px 18px 20px;
	}
	.da-plan__box {
		padding: 10px 6px;
	}
	.da-plan__box p {
		font-size: 13px;
	}
}
