@charset "utf-8";
/* ============================================================
   ログイン前のデモトレード (2026-10-30。 templates5/guest/demo_*.tpl)
   色・カード・ボタン・グラフは quorea-lp.css を使い、 ここは並べ方だけ
   ============================================================ */

/* ── 見出しと段 ── */
.dm-head {
	position: relative; overflow: hidden;
	padding: 60px 0 40px;
	border-bottom: 1px solid var(--border);
}
.dm-head::before {
	content: ""; position: absolute; right: -6%; top: -80%;
	width: 820px; height: 820px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(232,138,74,0.24), rgba(224,86,42,0.08) 55%, transparent 72%);
	pointer-events: none;
}
.dm-head .wrap { z-index: 1; }
.dm-head .eyebrow { margin-bottom: 12px; }
.dm-title { font-size: 36px; line-height: 1.35; letter-spacing: -0.6px; }
.dm-lead { margin-top: 12px; max-width: 640px; font-size: 15px; line-height: 1.9; color: var(--text); }
.dm-steps { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.dm-steps li { display: flex; align-items: center; gap: 8px; }
.dm-steps li span {
	display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	border: 1px solid var(--border); background: var(--white);
	font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums;
}
.dm-steps li[aria-current="step"] { color: var(--heading); font-weight: 500; }
.dm-steps li[aria-current="step"] span { border-color: var(--ember-cta); background: var(--ember-cta); color: var(--white); }
.dm-steps li.done span { border-color: var(--ember-light); color: var(--ember); }

.dm-sec { padding: 40px 0 104px; }
.dm-fine { margin-top: 16px; }
.dm-empty { margin: 24px 0; color: var(--body); }
.dm-h2 { margin: 48px 0 0; font-size: 22px; font-weight: 400; }

/* ── ロボを選ぶ ── */
.dm-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); }
.dm-tabs a { padding: 7px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--label); }
.dm-tabs a:hover { color: var(--ember); }
.dm-tabs a[aria-current="page"] { background: var(--heading); color: var(--white); }
.dm-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden; }
.dm-list > li { position: relative; }
.dm-list > li + li { border-top: 1px solid var(--border); }
.dm-robot {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
	padding: 16px 84px 16px 20px; cursor: pointer; transition: background-color .15s;
}
.dm-robot:hover { background: #fbfcfe; }
.dm-robot.is-checked { background: var(--ember-tint); }
.dm-robot input { position: absolute; opacity: 0; pointer-events: none; }
.dm-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c3cfdc; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.dm-robot.is-checked .dm-radio { border-color: var(--ember-cta); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--ember-cta); }
.dm-robot input:focus-visible + .dm-radio { outline: 2px solid var(--ember); outline-offset: 2px; }
.dm-robot-main { display: flex; flex-direction: column; min-width: 0; }
.dm-robot-name { font-size: 15px; font-weight: 500; color: var(--heading); overflow-wrap: anywhere; }
.dm-robot-sub { margin-top: 2px; font-size: 12.5px; color: var(--body); }
.dm-robot-stats { display: flex; gap: 24px; }
.dm-robot-stats span { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.dm-robot-stats small { font-size: 11px; color: var(--body); }
.dm-robot-stats b { font-size: 17px; font-weight: 400; color: var(--heading); font-variant-numeric: tabular-nums; }
.dm-robot-link { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 13px; }
/* 直近 3 か月の時価の動き (試算と同じ期間)。 上げなら朱、 下げなら灰色。 点線は始めの日の高さ (0%) */
.dm-spark { display: flex; flex-direction: column; min-width: 158px; margin-right: 8px; }
.dm-spark small { font-size: 11px; color: var(--body); }
.dm-spark-row { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.dm-spark svg { flex: none; width: 96px; height: 26px; overflow: visible; }
.dm-spark path { vector-effect: non-scaling-stroke; }
.dm-spark .z { fill: none; stroke: #d9cec7; stroke-width: 1; stroke-dasharray: 2 2; }
.dm-spark .a { fill: var(--ember); fill-opacity: 0.1; stroke: none; }
.dm-spark .l { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dm-spark .a.is-down { fill: #8a97a8; }
.dm-spark .l.is-down { stroke: #8a97a8; }
.dm-spark b { min-width: 52px; font-size: 14px; font-weight: 400; text-align: right; color: var(--heading); font-variant-numeric: tabular-nums; }
.dm-bar {
	position: sticky; bottom: 0; z-index: 5;
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	margin-top: 20px; padding: 16px 0;
	background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-top: 1px solid var(--border);
}
.dm-bar-note { font-size: 13px; color: var(--text); }
.dm-bar .btn { flex: none; }
.dm-bar .btn:disabled { color: #9a8676; background: #efe7e2; box-shadow: none; cursor: not-allowed; }
.dm-bar .btn:disabled::after { display: none; }

/* ── 結果 ── */
.dm-picked {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
	padding: 16px 20px; margin-bottom: 20px;
	border: 1px solid var(--border); border-radius: 10px; background: var(--tint);
}
.dm-picked small { display: block; font-size: 11.5px; color: var(--body); }
.dm-picked b { font-size: 15px; font-weight: 500; color: var(--heading); }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dm-progress { padding: 48px 0; text-align: center; color: var(--text); }
.dm-progress-bar { max-width: 420px; height: 6px; margin: 14px auto 0; border-radius: 999px; background: var(--border); overflow: hidden; }
.dm-progress-bar span { display: block; width: 0; height: 100%; background: var(--grad-ember); transition: width .2s ease; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-soft); }
.dm-stats div { padding: 18px 22px; }
.dm-stats div + div { border-left: 1px solid var(--border); }
.dm-stats small { display: block; font-size: 12px; color: var(--body); }
.dm-stats b { display: block; margin-top: 4px; font-size: 26px; font-weight: 300; letter-spacing: -0.4px; color: var(--heading); font-variant-numeric: tabular-nums; }
.dm-chart-card { margin-top: 20px; padding: 22px 24px 12px; }
.dm-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dm-legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--body); }
.dm-legend span { display: inline-block; width: 18px; height: 0; border-top: 2.4px solid #e0562a; margin-left: 8px; }
.dm-legend span.k1 { margin-left: 0; }
.dm-legend span.k2 { border-top: 1.4px dashed #9a8676; }
.dm-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-soft); }
.dm-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dm-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--label); background: var(--tint); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dm-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--heading); vertical-align: top; white-space: nowrap; }
.dm-table td.is-sell { color: var(--sell); }
.dm-table tr:last-child td { border-bottom: 0; }
.dm-table .num { text-align: right; }
.dm-when { display: block; }
.dm-price { display: block; font-size: 12.5px; color: var(--body); }
.dm-open { color: var(--ember); font-weight: 500; }
/* 疑似的なゼロカット (2026-11-11): ゼロカットで決済した行は淡い赤の地。 いちばん上のゼロカットの行の決済の欄に「ゼロカット」のボタン、 押すとその行の下に説明の行 (アコーディオン)。
   結果の数字の下にも一文。 スマホは表が横にスクロールするので、 説明の文は左に貼り付けて画面の幅で折り返す */
.dm-zc-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 8px 2px 6px; border: 1px solid #f3c7c3; border-radius: 10px; background: var(--white, #fff); color: var(--err, #c62828); font: inherit; font-size: 11px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.dm-zc-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.dm-zc-btn::after { content: ""; width: 5px; height: 5px; margin: 0 1px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); transition: transform .15s; }
.dm-zc-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.dm-zc-btn:hover { background: #fdf3f2; }
.dm-table tr.dm-zc-row td { padding: 0; background: var(--err-bg, #fdf3f2); white-space: normal; }
.dm-zc-in { position: sticky; left: 0; max-width: calc(100vw - 48px); padding: 10px 16px; color: var(--err, #c62828); font-size: 13px; line-height: 1.7; }
.dm-table tr.is-zc td { background: #fffbfa; }
.dm-zc { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--err-bg, #fdf3f2); color: var(--err, #c62828); font-size: 13px; line-height: 1.7; }
.dm-pl.up { color: var(--ember-deep); }
.dm-pl.down { color: var(--label); }
.dm-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.dm-cta .dm-actions { margin-top: 0; flex: none; }
.dm-cta-title { font-size: 22px; font-weight: 400; }
.dm-cta p { margin-top: 6px; font-size: 14px; color: var(--text); }

@media (max-width: 860px) {
	.dm-head { padding: 40px 0 28px; }
	.dm-head::before { width: 520px; height: 520px; right: -45%; top: -50%; }
	.dm-title { font-size: 28px; }
	.dm-sec { padding: 28px 0 72px; }
	.dm-tabs { display: flex; }
	.dm-tabs a { flex: 1; text-align: center; padding: 7px 0; }
	.dm-robot { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; }
	.dm-spark { grid-column: 2; min-width: 0; margin-right: 0; }
	.dm-spark:empty { display: none; }
	.dm-robot-stats { grid-column: 2; gap: 18px; }
	.dm-robot-stats span { align-items: flex-start; min-width: 0; }
	.dm-robot-link { top: 16px; right: 16px; transform: none; }
	.dm-robot-main { padding-right: 36px; }
	.dm-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; }
	.dm-actions .btn { flex: 1 1 100%; }
	.dm-stats { grid-template-columns: 1fr; }
	.dm-stats div + div { border-left: 0; border-top: 1px solid var(--border); }
	.dm-cta { flex-direction: column; align-items: stretch; }
}
