/* 銘柄から取引所を探す（mockups/mock-top.html・mock-xrp.html のデザイン。色はモックの赤・オレンジをサイトの #1e73be・#dd9933 に置き換え） */
.cnc {
	--cnc-accent: #1E73BE;
	--cnc-accent-hover: #155A96;
	--cnc-orange: #DD9933;
	--cnc-orange-ink: #2A1A00;
	--cnc-blue: #1E73BE;
	--cnc-ink: #222222;
	--cnc-sub: #666666;
	--cnc-line: #DDDDDD;
	--cnc-gray: #F5F5F5;
	--cnc-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
	display: flex;
	flex-direction: column;
	gap: 28px;
	color: var(--cnc-ink);
	padding: 24px;
}
.cnc *, .cnc *::before, .cnc *::after { box-sizing: border-box; }
.cnc [hidden] { display: none !important; }
.cnc p { margin: 0; }

.cnc-chip {
	align-self: flex-start;
	display: inline-block;
	background: var(--cnc-orange);
	color: var(--cnc-orange-ink);
	font-size: 12px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
	line-height: 1.6;
}
.cnc-chip--accent { background: var(--cnc-accent); color: #fff; }

.cnc-hero { display: flex; flex-direction: column; gap: 12px; }
.cnc-hero .cnc-chip { font-size: 13px; padding: 4px 14px; }
.cnc .cnc-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.5; }
.cnc-index .cnc-title { font-size: 30px; line-height: 1.45; }
.cnc-lead { font-size: 16px; line-height: 1.9; color: #444; }

.cnc .cnc-h2 {
	margin: 0;
	padding: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	border: 0;
	border-bottom: 2px solid var(--cnc-blue);
	background: none;
	color: var(--cnc-ink);
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.cnc .cnc-h2::before, .cnc .cnc-h2::after { content: none; }
.cnc-h2 span { font-size: 14px; font-weight: 400; color: var(--cnc-sub); }

/* 一覧：検索・ジャンル・銘柄 */
.cnc-search { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cnc-search label { font-size: 14px; font-weight: 700; }
.cnc-search > div { display: flex; gap: 8px; flex-wrap: wrap; }
.cnc-search input {
	flex: 1 1 260px;
	min-height: 48px;
	padding: 0 16px;
	font-size: 16px;
	border: 1px solid #BBB;
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
}
.cnc-search button {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 4px;
	background: var(--cnc-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}
.cnc-search__none { font-size: 14px; color: var(--cnc-sub); }

.cnc-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.cnc .cnc-genres a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid var(--cnc-line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--cnc-ink);
	font-size: 14px;
}
.cnc-genres a span { color: var(--cnc-sub); font-size: 12px; }

.cnc-genre, .cnc-related, .cnc-faq { display: flex; flex-direction: column; gap: 14px; }
.cnc-genre { scroll-margin-top: 80px; }
.cnc .cnc-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.cnc .cnc-tiles--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cnc .cnc-tiles li { margin: 0; padding: 0; list-style: none; }
.cnc .cnc-tiles li::before { content: none; }
.cnc .cnc-tile a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 16px;
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--cnc-shadow);
	text-decoration: none;
	color: var(--cnc-ink);
	font-size: 15px;
}
.cnc .cnc-tile a:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); color: var(--cnc-ink); }
.cnc-tile small { color: var(--cnc-sub); font-size: 12px; margin-left: 6px; }
.cnc-count {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	color: var(--cnc-orange-ink);
	background: var(--cnc-orange);
	border-radius: 999px;
	padding: 2px 10px;
}

/* 銘柄ページ */
.cnc-top { display: flex; flex-direction: column; gap: 6px; margin-bottom: -10px; }
.cnc-pr { font-size: 12px; color: var(--cnc-sub); }
.cnc-crumbs { font-size: 13px; color: var(--cnc-sub); display: flex; gap: 6px; flex-wrap: wrap; }

.cnc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
.cnc-summary > div {
	background: #fff;
	box-shadow: var(--cnc-shadow);
	border-radius: 4px;
	border-top: 4px solid var(--cnc-accent);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cnc-summary span { font-size: 13px; color: var(--cnc-sub); }
.cnc-summary strong { font-size: 22px; font-weight: 900; line-height: 1.3; }
.cnc-summary small { font-size: 12px; color: var(--cnc-sub); }

.cnc-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cnc-sort[hidden] { display: none; }
.cnc-sort span { font-size: 14px; font-weight: 700; }
.cnc-sort button {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid #BBB;
	background: #fff;
	color: var(--cnc-ink);
}
.cnc-sort button[aria-pressed="true"] { border-color: var(--cnc-accent); background: var(--cnc-accent); color: #fff; }

.cnc .cnc-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: none; }
.cnc .cnc-cards > li { margin: 0; list-style: none; }
.cnc .cnc-cards > li::before { content: none; }
.cnc-card {
	background: #fff;
	box-shadow: var(--cnc-shadow);
	border-radius: 4px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cnc-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cnc-rank {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--cnc-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cnc .cnc-card__name {
	margin: 0;
	padding: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
	border: 0;
	background: none;
	color: var(--cnc-ink);
}
.cnc .cnc-card__name::before, .cnc .cnc-card__name::after { content: none; }
.cnc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cnc-stats > div { background: var(--cnc-gray); border-radius: 4px; padding: 12px 14px; }
.cnc-stats dt { font-size: 12px; color: var(--cnc-sub); font-weight: 400; margin: 0; }
.cnc-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 900; line-height: 1.4; }
.cnc-stats dd small { display: block; font-size: 11px; font-weight: 400; color: var(--cnc-sub); }
.cnc-na { font-size: 14px; font-weight: 700; color: var(--cnc-sub); }
.cnc-card__notes { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.6; color: var(--cnc-sub); }
.cnc-card__notes li { margin: 0; padding: 0 0 0 1.2em; text-indent: -1.2em; }
.cnc-card__notes li::before { content: "※"; display: inline-block; width: 1.2em; text-indent: 0; }
.cnc-card__reg { font-size: 12px; color: var(--cnc-sub); }
.cnc-card__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cnc a.cnc-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #BBB;
	border-radius: 4px;
	text-decoration: none;
	color: var(--cnc-ink);
	font-size: 14px;
	font-weight: 700;
	background: #fff;
}
.cnc a.cnc-btn:hover { color: var(--cnc-ink); background: #FAFAFA; }
.cnc a.cnc-btn--accent, .cnc a.cnc-btn--accent:visited { border-color: var(--cnc-accent); background: var(--cnc-accent); color: #fff; padding: 0 22px; }
.cnc a.cnc-btn--accent:hover { color: #fff; background: var(--cnc-accent-hover); border-color: var(--cnc-accent-hover); }
.cnc .cnc-px { position: absolute; width: 1px; height: 1px; border: 0; } /* 計測用の1×1画像。ボタンの並びに隙間を作らない */

.cnc-note, .cnc-empty {
	background: var(--cnc-gray);
	border-radius: 4px;
	padding: 20px 22px;
	font-size: 13px;
	line-height: 1.9;
	color: #444;
}
.cnc-note strong { display: block; font-size: 14px; color: var(--cnc-ink); margin-bottom: 4px; }
.cnc-empty { font-size: 15px; }

.cnc-faq details { background: #fff; box-shadow: var(--cnc-shadow); border-radius: 4px; padding: 16px 20px; }
.cnc-faq summary { font-weight: 700; cursor: pointer; }
.cnc-faq details p { margin: 10px 0 0; line-height: 1.8; color: #444; }

.cnc-disclaimer {
	border-top: 1px solid var(--cnc-line);
	padding-top: 16px;
	font-size: 12px;
	line-height: 1.8;
	color: var(--cnc-sub);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* サイドバー */
.cnc-popular ol { margin: 0; padding: 0 0 0 1.4em; font-size: 15px; line-height: 1.6; }
.cnc-popular li a { display: inline-block; padding: 8px 0; }
.cnc-news ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cnc-news li { margin: 0; padding: 0; }
.cnc-news a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: #222; }
.cnc-news__img { flex: 0 0 88px; width: 88px; height: 60px; object-fit: cover; background: #E6E6E6; border-radius: 4px; }
.cnc-news__title { font-size: 14px; line-height: 1.6; }

@media (max-width: 767px) {
	.cnc { padding: 16px; gap: 24px; }
	.cnc .cnc-title, .cnc-index .cnc-title { font-size: 22px; }
	.cnc-lead { font-size: 15px; }
	.cnc-card { padding: 18px 16px; }
	.cnc-stats { grid-template-columns: repeat(2, 1fr); }
	.cnc-summary { grid-template-columns: repeat(2, 1fr); }
	.cnc-summary strong { font-size: 20px; }
}
