/* ===== Skin colors : follow the site main color (admin can change --brand) ===== */
.bd-wrap,
.fm-wrap {
	--ink: #111111;
	--ink-soft: #666666;
	--line: #E1E5EB;
	--bg-soft: #F4F6F9;
	--brand: var(--color-main);
	--brand-ink: #FFFFFF;
	--font-title: inherit;
	font-size: 16px;
}

/* skin page container (board · form menus are printed straight into the content area) */
.bd-wrap,
.fm-wrap {
	width: 100%;
	max-width: calc(var(--inner-padding) + 4rem);
	margin: 0 auto;
	padding: 0 20px 100px;
}

.inner .bd-wrap,
.inner .fm-wrap {
	max-width: none;
	padding: 0;
}

@media (max-width: 768px) {
	.bd-wrap,
	.fm-wrap {
		padding-bottom: 64px;
	}
}

/* ===== Board: top (total · search) ===== */
.bd-top {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.bd-total b {
	color: var(--brand);
}

.bd-search {
	display: flex;
	gap: 8px;
}

.bd-search select,
.bd-search input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid #C9CED6;
	border-radius: 6px;
	background: #FFFFFF;
}

.bd-search input {
	width: 220px;
}

.bd-search input::placeholder {
	color: #B9BFC9;
}

.bd-search button {
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	line-height: normal;
	color: var(--brand-ink);
	background: var(--brand);
}

/* ===== Board: list table ===== */
.bd-table,
.bd-wrap table.bd-table {
	width: 100% !important;
	border-top: 2px solid var(--ink);
	table-layout: fixed;
	border-collapse: collapse;
}

.bd-table th,
.bd-table td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}

.bd-table th {
	font-weight: 700;
	background: var(--bg-soft);
}

.bd-table .is-num {
	width: 90px;
}

.bd-table .is-file {
	width: 90px;
}

.bd-table .is-date {
	width: 130px;
}

.bd-table .is-hit {
	width: 90px;
}

.bd-table td.is-tit {
	text-align: left;
}

.bd-table td.is-tit a {
	display: -webkit-inline-box;
	max-width: calc(100% - 24px);
	vertical-align: middle;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bd-table td.is-tit a:hover,
.bd-table td.is-tit a:focus-visible {
	color: var(--brand);
	text-decoration: underline;
}

.bd-table .is-notice td {
	background: #FAFBFC;
}

.bd-notice {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	line-height: normal;
	color: var(--brand-ink);
	background: var(--brand);
}

.bd-ico {
	display: inline-block;
	vertical-align: middle;
}

.bd-table td.is-empty {
	padding: 80px 12px;
	color: var(--ink-soft);
}

/* ===== Board: press list ===== */
.bd-press {
	border-top: 2px solid var(--ink);
}

.bd-press a {
	display: grid;
	grid-template-columns: 140px 1fr 120px;
	gap: 16px;
	align-items: center;
	padding: 20px 12px;
	border-bottom: 1px solid var(--line);
}

.bd-press .src {
	font-weight: 700;
	color: var(--brand);
}

.bd-press .date {
	text-align: right;
	color: #8B93A1;
}

.bd-press a:hover .tit,
.bd-press a:focus-visible .tit {
	text-decoration: underline;
}

/* ===== Board: paging ===== */
.bd-paging {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 40px;
}

.bd-paging a {
	min-width: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	line-height: 38px;
	text-align: center;
}

.bd-paging a.is-on {
	border-color: var(--brand);
	color: var(--brand-ink);
	background: var(--brand);
}

/* ===== Board: view ===== */
.bd-v-head {
	padding: 28px 12px;
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--line);
}

.bd-v-tit {
	font-size: 24px;
	line-height: 1.4;
}

.bd-v-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin-top: 12px;
	font-size: 15px;
	color: var(--ink-soft);
}

.bd-v-meta b {
	margin-right: 8px;
	color: var(--ink);
}

.bd-v-body {
	min-height: 240px;
	padding: 40px 12px;
	border-bottom: 1px solid var(--line);
}

.bd-v-file {
	display: grid;
	grid-template-columns: 110px 1fr;
	padding: 20px 12px;
	border-bottom: 1px solid var(--line);
}

.bd-v-file-tit {
	font-weight: 700;
}

.bd-v-file a {
	text-decoration: underline;
}

.bd-v-file a span {
	margin-left: 6px;
	color: #8B93A1;
}

.bd-v-nav > div {
	display: grid;
	grid-template-columns: 110px 1fr;
	padding: 16px 12px;
	border-bottom: 1px solid var(--line);
}

.bd-v-nav dt {
	font-weight: 700;
}

.bd-v-nav .is-none {
	color: #8B93A1;
}

.bd-btns {
	margin-top: 32px;
	text-align: center;
}

.bd-btn {
	display: inline-block;
	min-width: 120px;
	padding: 14px 28px;
	border-radius: 6px;
	line-height: normal;
	text-align: center;
	color: var(--brand-ink);
	background: var(--brand);
}

@media (max-width: 768px) {
	.bd-search {
		width: 100%;
	}

	.bd-search input {
		flex: 1;
		width: auto;
		min-width: 0;
	}

	.bd-table thead,
	.bd-table .is-num,
	.bd-table .is-file,
	.bd-table .is-hit {
		display: none;
	}

	.bd-table tr {
		display: block;
		padding: 16px 4px;
		border-bottom: 1px solid var(--line);
	}

	.bd-table td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
		text-align: left;
	}

	.bd-table td.is-date {
		width: auto;
		margin-top: 6px;
		font-size: 14px;
		color: #8B93A1;
	}

	.bd-press a {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.bd-press .date {
		text-align: left;
	}

	.bd-v-file,
	.bd-v-nav > div {
		grid-template-columns: 80px 1fr;
	}
}



/* ===== Board: list name column (Q&A) · secret · status ===== */
.bd-table .is-name {
	width: 110px;
	text-align: center;
}

.bd-table td.is-tit .bd-lock {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	vertical-align: -2px;
}

.bd-state {
	display: inline-block;
	min-width: 64px;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 13px;
	text-align: center;
	color: var(--ink-soft);
}

.bd-state.is-done {
	border-color: var(--brand);
	color: var(--brand);
}

.bd-write {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
}

/* ===== Board: card list (gallery · video) ===== */
.bd-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	border-top: 2px solid var(--ink);
	padding-top: 32px;
}

.bd-cards a,
.bd-cards button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}

.bd-cards .thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--bg-soft);
}

.bd-cards.is-video .thumb {
	aspect-ratio: 16 / 9;
}

.bd-cards .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.bd-cards a:hover .thumb img,
.bd-cards button:hover .thumb img,
.bd-cards a:focus-visible .thumb img,
.bd-cards button:focus-visible .thumb img {
	transform: scale(1.06);
}

.bd-cards.is-video .thumb::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	background: rgba(15, 37, 64, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") 55% 50% / 24px no-repeat;
	transition: background-color .3s;
}

.bd-cards.is-video a:hover .thumb::after,
.bd-cards.is-video a:focus-visible .thumb::after {
	background-color: var(--brand);
}

.bd-cards .tit {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bd-cards .date {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: #8B93A1;
}

.bd-cards .is-empty {
	grid-column: 1 / -1;
	padding: 60px 0;
	text-align: center;
	color: var(--ink-soft);
}

/* ===== Board: gallery layer popup (no scroll lock) ===== */
.bd-layer {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 100px;
	background: rgba(10, 18, 30, .88);
	opacity: 0;
	visibility: hidden;
	overscroll-behavior: contain;
	transition: opacity .35s, visibility .35s;
}

.bd-layer.is-open {
	opacity: 1;
	visibility: visible;
}

.bd-layer figure {
	max-width: 1100px;
	margin: 0;
	text-align: center;
}

.bd-layer img {
	max-width: 100%;
	max-height: calc(100vh - 180px);
	border-radius: 8px;
}

.bd-layer figcaption {
	margin-top: 16px;
	font-size: 17px;
	color: #FFFFFF;
}

.bd-layer button {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
	background: rgba(255, 255, 255, .08);
	transition: background-color .3s;
}

.bd-layer button:hover,
.bd-layer button:focus-visible {
	background: var(--brand);
}

.bd-layer .is-close {
	top: 24px;
	right: 24px;
	width: 52px;
	height: 52px;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.bd-layer .is-prev,
.bd-layer .is-next {
	top: 50%;
	width: 64px;
	height: 64px;
	margin-top: -32px;
}

.bd-layer .is-prev {
	left: 24px;
}

.bd-layer .is-next {
	right: 24px;
}

/* ===== Board: video view ===== */
.bd-v-video {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: #000000;
}

.bd-v-video video,
.bd-v-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===== Board: FAQ (open / close) ===== */
.bd-faq {
	border-top: 2px solid var(--ink);
}

.bd-faq .item {
	border-bottom: 1px solid var(--line);
}

.bd-faq .q {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	width: 100%;
	padding: 26px 64px 26px 24px;
	border: 0;
	background: none;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
	color: var(--ink);
	cursor: pointer;
}

.bd-faq .q::before,
.bd-faq .a::before {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 800;
}

.bd-faq .q::before {
	content: "Q";
	color: #FFFFFF;
	background: var(--brand);
}

.bd-faq .q::after {
	content: "";
	position: absolute;
	right: 24px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -9px;
	border-right: 2px solid var(--ink-soft);
	border-bottom: 2px solid var(--ink-soft);
	transform: rotate(45deg);
	transition: transform .35s, margin-top .35s;
}

.bd-faq .q[aria-expanded="true"]::after {
	margin-top: -3px;
	transform: rotate(-135deg);
}

.bd-faq .q:hover,
.bd-faq .q[aria-expanded="true"] {
	color: var(--brand);
}

.bd-faq .a-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1);
}

.bd-faq .a-wrap.is-open {
	grid-template-rows: 1fr;
}

.bd-faq .a-inner {
	overflow: hidden;
}

.bd-faq .a {
	display: flex;
	gap: 16px;
	margin: 0 24px 26px;
	padding: 24px;
	border-radius: 10px;
	background: var(--bg-soft);
	font-size: 16px;
	line-height: 1.8;
	color: #444444;
}

.bd-faq .a::before {
	content: "A";
	color: var(--brand);
	background: #FFFFFF;
	border: 1px solid var(--brand);
}

.bd-faq .a-txt p + p {
	margin-top: 10px;
}

/* ===== Board: Q&A view answer ===== */
.bd-answer {
	margin-top: 32px;
	padding: 28px 32px;
	border: 1px solid var(--brand);
	border-radius: 10px;
	background: #F7FAFE;
}

.bd-answer-tit {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--brand);
}

.bd-answer-tit span {
	font-size: 14px;
	font-weight: 400;
	color: #8B93A1;
}

.bd-answer-body {
	font-size: 16px;
	line-height: 1.8;
	color: #333333;
}

@media (max-width: 1024px) {
	.bd-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.bd-table .is-name {
		display: none;
	}

	.bd-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.bd-cards .tit {
		font-size: 16px;
	}

	.bd-layer {
		padding: 80px 16px;
	}

	.bd-layer .is-prev,
	.bd-layer .is-next {
		top: auto;
		bottom: 20px;
		margin-top: 0;
		width: 52px;
		height: 52px;
	}

	.bd-layer .is-prev {
		left: calc(50% - 64px);
	}

	.bd-layer .is-next {
		right: calc(50% - 64px);
	}

	.bd-faq .q {
		gap: 12px;
		padding: 20px 44px 20px 8px;
		font-size: 16px;
	}

	.bd-faq .q::after {
		right: 12px;
	}

	.bd-faq .q::before,
	.bd-faq .a::before {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}

	.bd-faq .a {
		gap: 12px;
		margin: 0 0 20px;
		padding: 18px 16px;
		font-size: 15px;
	}

	.bd-answer {
		padding: 22px 18px;
	}
}

.bd-table .is-file .bd-state {
	white-space: nowrap;
}

.bd-wrap + .bd-wrap {
	margin-top: 40px;
}

/* ===== My page : investment · dividend (CMS member skin) ===== */
.mi-wrap { padding-top: 0; }
.mi-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mi-hello { font-size: 20px; color: var(--ink); }
.mi-hello strong { color: var(--brand); }
.mi-date { font-size: 14px; color: #8B93A1; }
.mi-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mi-sum li { display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-radius: 14px; background: var(--bg-soft); }
.mi-sum .label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.mi-sum .val { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.mi-sum .val small { margin-left: 3px; font-size: 16px; font-weight: 600; }
.mi-sum .sub { font-size: 13px; color: #8B93A1; }
.mi-sum .is-point { background: var(--brand); }
.mi-sum .is-point .label, .mi-sum .is-point .val, .mi-sum .is-point .sub { color: #FFFFFF; }
.mi-sum .is-point .sub { opacity: .8; }
.mi-tit { margin: 48px 0 14px; font-size: 22px; font-weight: 700; color: var(--ink); }
.mi-table { table-layout: auto; }
.mi-table .is-money { text-align: right; font-variant-numeric: tabular-nums; }
.mi-table .is-net { font-weight: 700; color: var(--brand); }
.mi-table tfoot th, .mi-table tfoot td { padding: 16px 12px; border-bottom: 1px solid var(--ink); font-weight: 700; background: #FAFBFC; }
.mi-scroll { overflow-x: auto; }
.mi-scroll .mi-table { min-width: 860px; }
.mi-note { margin-top: 28px; padding: 22px 26px; border-radius: 10px; background: var(--bg-soft); }
.mi-note li { position: relative; padding-left: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.mi-note li::before { content: ""; position: absolute; left: 0; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: #9AA3B0; }
@media (max-width: 1024px) {
	.mi-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.mi-head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.mi-hello { font-size: 17px; }
	.mi-sum { gap: 10px; }
	.mi-sum li { padding: 18px; }
	.mi-sum .val { font-size: 22px; }
	.mi-table thead { display: table-header-group; }
	.mi-table tr { display: table-row; padding: 0; }
	.mi-table td, .mi-table th { display: table-cell; padding: 12px 8px; font-size: 14px; }
	.mi-wrap > .mi-table { min-width: 0; }
}

/* ===== Board: YouTube video board (list thumbnail + view embed) ===== */
.bd-cards.is-video .yt-badge {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #FFFFFF;
	background: #E62117;
}

.bd-v-yt {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 28px;
	border-radius: 12px;
	background: #000000;
}

.bd-v-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bd-v-yt-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--brand);
}
