/* Layout */
html,
body {
	width: 100%;
	height: 100%;
}

/* 고정 헤더(fixed-top) 사용 시 해시(#id) 스크롤 보정 */
html {
	scroll-padding-top: var(--navbar-offset, 0px);
}
:target {
	scroll-margin-top: var(--navbar-offset, 0px);
}

#contents {
	min-height: calc(var(--vh, 1vh) * 100);
}

/* Sections */
section.section {
	position: relative;
}
section.section-vh {
	height: calc(var(--vh, 1vh) * 100);
}

/* 원페이지: 네이티브 세로 스냅(휠·트랙패드·터치). JS preventDefault와 겹치면 스냅이 깨짐 → onepage.js는 휠을 가로채지 않음 */
html.layout-onepage {
	scroll-snap-type: y mandatory;
	scroll-padding-top: var(--navbar-offset, 0px);
	scroll-behavior: smooth;
}
/* footer/하단 영역 진입 시 스냅 예외 처리 */
html.layout-onepage.onepage-no-snap {
	scroll-snap-type: none;
}
html.layout-onepage section.section-vh {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
section .section-head {
	height: calc(var(--vh, 1vh) * 25);
}
section .section-body {
	height: calc(var(--vh, 1vh) * 75) !important;
}

/* 검색 버튼 커스텀 */
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none; /* 기본 스타일 제거 */
	display: none; /* 완전히 숨김 */
}

/* Internet Explorer 및 Edge 브라우저에서 기본 'x' 표시 숨기기 */
input[type="search"]::-ms-clear {
	display: none; /* 완전히 숨김 */
	width: 0; /* 너비 0 */
	height: 0; /* 높이 0 */
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
	display: none;
}

input[type="search"] {
	padding-left: 2.5rem;
	height: auto;
}

input[type="search"] + label,
button.btnClear, span.clearSearch {
	padding: 0;
	position: absolute;
	top: 50%;
	width: 2.5rem;
	height: 2.5rem;
	cursor: pointer;
	transform: translate(0, -50%);
	align-content: center;
}

input[type="search"] + label {
	left: 0;
}

button.btnClear, span.clearSearch {
	right: 0;
	display: none;
}

/* sideNav */
.sideNav {
	position: fixed;
	top: 50%;
	right: 1.5rem;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
}
.nav-dot {
	width: 15px;
	height: 15px;
	background-color: gray;
	border-radius: 50%;
	margin: 10px 0;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s;
}
.nav-dot.active {
	background-color: var(--color-base);
}
.nav-dot:hover {
	background-color: var(--color-base);
}

header#hero {
  width: 100%;
  height: 50vh;
}

.bg-overlay {
	background-position: top right;
  background-repeat: no-repeat;
	height: 100%;
}

.bg-overlay::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
  background-image: linear-gradient(to right, rgba(var(--bs-secondary-bg-rgb),1), rgba(var(--bs-secondary-bg-rgb),1), rgba(255,0,0,0));
	/* z-index: 1; */
}

.box {
	display: block;
	width: 100%;
	position: relative;
	border-radius: 0.75rem;
	background-color: white;
	padding: 1rem;
}

.box h3.title {
	color: var(--color-base);
	border-top: 2px solid var(--color-base);
	text-align: right;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-weight: bold;
}

.callout {
	padding: 1.25rem;
	color: var(--bs-secondary, inherit);
	background-color: var(--bs-secondary-bg-subtle);
	border-left: 0.3rem solid var(--bs-secondary);
}

.callout .callout-header {
	display: flex;
	border-radius: var(--bs-border-radius-lg);
	align-items: stretch;
	justify-content: center;
	height: 100%;
	position: relative;
	margin-right: 3rem;
}

.callout .callout-header::after {
	content: "";
	position: absolute;
	width: 1.5rem;
	height: 1.5rem;
	border-top: 1.5rem solid transparent;
	border-left: 1.5rem solid rgba(var(--bs-secondary-rgb));
	border-right: 1.5rem solid transparent;
	border-bottom: 1.5rem solid transparent;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	margin-right: -3rem;
}
.callout .bg-danger.callout-header::after {
	border-left: 1.5rem solid rgba(var(--bs-danger-rgb)) !important;
}

.dropdown-toggle {
	outline: 0;
}

.btn-toggle {
	padding: 0.25rem 0.5rem;
	font-weight: 600;
	color: var(--bs-emphasis-color);
	background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
	color: rgba(var(--bs-emphasis-color-rgb), 0.85);
	background-color: var(--bs-tertiary-bg);
}
.btn-toggle::before {
	width: 1.25em;
	line-height: 0;
	content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
	transition: transform 0.35s ease;
	transform-origin: 0.5em 50%;
}
[data-bs-theme="dark"] .btn-toggle::before {
	content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}
.btn-toggle[aria-expanded="true"] {
	color: rgba(var(--bs-emphasis-color-rgb), 0.85);
}
.btn-toggle[aria-expanded="true"]::before {
	transform: rotate(90deg);
}
.btn-toggle-nav a {
	padding: 0.1875rem 0.5rem;
	margin-top: 0.125rem;
	margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
	background-color: var(--bs-tertiary-bg);
}

.scrollarea {
	overflow-y: auto;
}

nav .navbar-brand img {
	width: 80px;
	height: 36px;
}

.spec dt,
.spec dd {
	border-top: 1px solid var(--color-base);
}
.spec dt {
	background-color: var(--color-base);
	color: white;
	text-align: center;
	font-weight: normal;
}
.spec dd {
	padding-left: 3rem;
}

/* 버튼 기본 색상 디자인 */
ul.list-group li div.card:hover {
	border: 2px solid var(--color-hover) !important;
}
.btn-outline-base {
	color: var(--color-base);
	border-color: var(--color-base);
}
.btn-base,
.btn-outline-base:hover {
	color: #fff;
	background-color: var(--color-base);
	border-color: var(--color-base);
}
.btn-base:hover {
	color: #fff;
	background-color: var(--color-hover);
	border-color: var(--color-hover);
}
.text-base {
	color: var(--color-base);
}

.snsIcon {
	width: 16px;
}

/* Navigation Bar ( Navbar ) */
nav#navbar {
	background: dimgray;
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
nav#navbar .navbar-nav .nav-link.active {
	color: var(--color-base);
	font-weight: normal;
}

footer .navbar-brand {
  background: url("https://plotterhouse.godohosting.com/icon/logo/top-logo-land.svg") no-repeat;
  height: 2.5rem;
  background-position: left;
}

footer a.navbar-brand {
  max-height: 40px;
  filter: grayscale(100%) invert(50%);
}

@media only screen and (max-width: 480px) {
	.spec dd {
		padding-left: calc(var(--bs-gutter-x) * 0.5);
		text-align: center;
	}
}
