/* Reset & 기본 설정 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD	Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif
	-ms-text-size-adjust: 100%; /* IE 대응 */ 
    -webkit-text-size-adjust: 100%;	/* iOS Safari 대응 */ 
    height: 100%; 
    font-size: 16px;
}

.device {
	width: 96vw;
    max-width: 420px;
	margin: 24px auto;
	background: var(--panel);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 50px rgba(0, 0, 0, .35)
}


body {
	font-family: Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
	background-color: #fff;
	color: #333;
	line-height: 1.5;
	padding: 0;
	/* iOS Safari Safe Area 대응 */
	padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
	max-width: 800px;
    height: 100%;
    margin: 0 auto;
}

body:lang(ko), body:lang(en), body:lang(jp) {
	width: 100%;
	height: 100%;
}

body:lang(ko), body:lang(en) {
	letter-spacing: -1px;
}

body:lang(jp) {
	letter-spacing: 0;
}

.wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 본문 내용은 헤더 아래에서 시작되도록 패딩 */
main {
	/* 고정 헤더 아래로 콘텐츠가 밀려나도록 여백 추가 (헤더 높이와 맞춤) */
	padding-top: 4.5rem; /* 헤더 높이에 맞춰 조절 가능 */
	width: 100%;
	margin: 0 auto;
	flex: 1; /* main이 남은 공간을 채우도록 */
}

/* IE 지원을 위한 fallbacks */
header, main, footer {
	display: block;
}

.header {
	position: sticky;
	top: 0;
	background-color: #fff;
	padding: 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-between; /* 좌우 배치 */
	z-index: 100;
}

.header h1 {
	flex: 1;       
	font-size: 18px;
	font-weight: bold;
	margin-top: 8px;
	text-align: left; 
	white-space: nowrap;
    overflow: hidden;
	text-overflow: ellipsis;
}

.home-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px 4px 4px;
}

a {
	text-decoration: none;
}

img {
	border: 0;
}
/*
ul, li {
	list-style: none;
}
*/

input, select {
	background-color: #fff;
	border: 1px solid #D9DCE1;
	outline: none;
	border-radius: 4px;
	height: 46px;
	line-height: 46px;
	font-size: 16px;
	padding-left: 10px;
}

input:focus {
	border-color: #3182F6; /* 포커스(클릭) 시 테두리 색상 변경 */
	box-shadow: 0 0 4px rgba(49, 130, 246, 0.5); /* 강조 효과 (선택) */
}

input::placeholder, select {
	color: #A3A5A9;
	padding-left: 5px;
	font-size: 16px;
	line-height: 42px;
}

select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: url(../assets/arrow-b-d.png) no-repeat #fff;
	background-position: calc(100% - 10px) center;
	padding-left: 15px;
}

select::-ms-expand {
	display: none;
}

/* 공통 체크박스 스타일 */
input[type="checkbox"].circle {
	appearance: none; /* 브라우저 기본 체크박스 없애기 */
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	border: 2px solid #696C6F;
	border-radius: 50%; /* 동그랗게 */
	display: inline-block;
	position: relative;
	cursor: pointer;
}

/* 체크됐을 때 안쪽 점 표시 */
input[type="checkbox"].circle:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #007bff; /* 파란색 점 */
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

/* 상단 고정 헤더 */
.top-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	border-bottom: 1px solid #ddd;
	z-index: 1000;
}

/* 로고와 햄버거 메뉴 */
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
}

.lang-selector {
	font-size: 1rem;
	font-weight: 500;
}

.lang-selector a {
	color: #333;
	text-decoration: none;
	padding: 4px 6px;
}

.lang-selector a:hover {
	color: #007BFF;
}

.logo img {
	height: 32px;
}

button {
	border: none;
	background-color: transparent;
	cursor: pointer;
}

button img {
	width: 20px;
	height: 20px;
}

/* 햄버거 버튼 */
.menu-button {
	font-size: 24px;
	cursor: pointer;
}

/* 메뉴 영역 */
.menu-nav ul {
	display: flex;
	justify-content: space-around;
	font-size: 1.2rem;
	padding: 0.5rem 0;
	list-style: none;
	width: 80%;
	margin: 0 auto; /* 가운데 정렬 */
}

.menu-nav a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

.menu-nav a:hover {
	color: #007BFF;
}

.main-container {
	width: 100%;
	margin-top: 20px;
	padding: 20px 20px;
}

.main-image-bg {
	position: relative;
	margin:0 20px;
	background-size: 100% auto; /* ✅ 너비 기준 비율 유지 */
	background-position: center center;
	background-repeat: no-repeat;
	padding-top: 24%; /* ✅ 세로 비율 조정 (이미지 비율에 맞게 조절) */
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding-bottom: 30px;
}

.main-image-bg::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.main-image-bg2 {
	position: relative;
	background-size: 100% auto; 
	background-position: center center;
	background-repeat: no-repeat;
	padding-top: 24%; /* ✅ 세로 비율 조정 (이미지 비율에 맞게 조절) */
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding-bottom: 30px;
}

.main-image-bg2::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.main-image-text {
	position: absolute;
	bottom: 15px;
	left: 10%;
	color: #fff;
	text-align: left;
}

.main-image-text h1 {
	font-size: clamp(18px, 2vw, 26px);
}

.main-image-text div {
	text-align: left;
	word-break: keep-all;
	font-size: clamp(10px, 2vw, 18px);
	font-weight: 700;
	color: #fff;
}

.main-image-text2 {
	position: absolute;
	bottom: 15px;
	left: 10%;
	color: #fff;
	text-align: left;
}

.main-image-text2 h1 {
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
}

.main-image-text2 div {
	text-align: left;
	word-break: keep-all;
	font-size: clamp(14px, 2vw, 20px);
	font-weight: 400;
	color: #fff;
}

/* 숨김 처리 */
.hidden {
	display: none;
}

#footer {
	border-top: 1px solid #D9DCE1;
	background-color: #fff;
	color: #696C6F;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	margin-top: 50px;
	padding-top: 20px;
}

.footer-inner {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.f-1 {
	display: flex;
	justify-content: flex-end;
	margin-right: 40px;
	margin-bottom: 20px;
}

.f-1 img {
	width: 200px;
	height: 47.62px;
}

.f-1-menu, .f-1-lang {
	display: flex;
	align-items: center;
	text-align: center;
	gap: 20px;
}

.f-1-menu a {
	color: #696C6F;
	font-size: 13px;
}

.f-1-menu div, .f-1-lang div {
	width: 1px;
	height: 16px;
	background-color: #cccccc;
}

.f-2 {
	align-items: left;
	padding: 0 20px;
	margin-bottom: 10px;
}

.f-2 div {
	color: #696C6F;
	font-size: 13px;
	line-height: 25px;
	word-break: keep-all;
	text-align: left;
}

.f-2 div span {
	color: #0E0E0E;
	font-size: 14px;
	font-weight: bold;
}

.f-copy {
	width: 100%;
	color: #696C6F;
	font-size: 12px;
	text-align: left;
	padding: 0 0 40px 20px;
}

.back-button {
	margin-left: 5px;
	background: none;
	border: none;
	padding: 8px 0 8px 8px;
	cursor: pointer;
	color: #0E0E0E;
}

.back-button:hover {
	color: #666;
}

.main-title {
	width: 100%;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	margin-top: 20px;
	color: #0E0E0E;
}

.main-title h2 div {
	font-size: 14px;
	color: #696C6F;
	text-align: center;
	margin-top: 15px;
	margin-bottom: 40px;
}

.middle-title {
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600; /* semiBold */
	color: #0E0E0E;
}

.txt-input input {
	width: 100%;
}

/* Search */
.search-bar {
	position: relative;
	padding: 20px 20px;
}

.search-input {
	width: 100%;
	margin: 0 auto;
	display: block;
	padding: 24px;
	border-radius: 6px;
	font-size: 14px;
	color: #8C9093;
	background: #F4F4F4;
}

.search-icon {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	color: #8C9093;
}

.search-input::placeholder {
	color: #8C9093;
	font-size: 14px;
}

.search-input:focus {
	border-color: #8C9093;
}

.field-name {
	margin-top: 5px;
	font-size: 14px;
	color: #0E0E0E;
}

.btn-blue {
	width: 100%;
	max-width: 320px;
	border-radius: 4px;
	flex-direction: column;
	background-color: #3182F6;
	margin-bottom: 50px;
	display: flex;
	justify-content: center;
	margin: 0 auto;
	margin-top: 20px;
	padding: 12px;
}

.btn-blue a {
	flex-basis: 50%;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	color: #fff;
}

.btn-black {
	width: 100%;
	max-width: 320px;
	border-radius: 4px;
	border: 1px solid #747775;
	flex-direction: column;
	background-color: #fff;
	margin-bottom: 50px;
	display: flex;
	margin: 0 auto;
	margin-top: 14px;
	padding: 12px;
	align-items: center;
}

.btn-black a {
	display: flex;
	font-size: 16px;
	font-weight: bold;
	color: #0E0E0E;
	gap: 8px;
}

.btn-black a img {
	display: block; /* 불필요한 inline 여백 제거 */
	width: 20px; /* 필요시 아이콘 크기 조정 */
	height: 20px;
	margin-top: 4px;
}

.btn-vertical-container {
	max-width: 320px;
	flex-direction: column;
	margin-bottom: 50px;
}

.btn-vertical-container a:nth-child(2) {
	color: #0149e7;
	background-color: #fff;
	border: 1px solid #0149e7;
}

.large-btn {
	width: 100%;
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 0 auto;
	margin-top: 50px;
}

.large-btn a {
	flex-basis: 50%;
	height: 42px;
	line-height: 42px;
	font-size: 1.0rem;
	font-weight: 700;
	text-align: center;
}

.large-btn a:first-child {
	color: #fff;
	background-color: #0149e7;
}

.large-btn a:last-child {
	border: 1px solid #0149e7;
	color: #0149e7;
	background-color: #fff;
}

h2 {
	font-size: 1.4rem;
	font-weight: 700;
	text-align: center;
	margin: 0 auto;
}

h2 span {
	font-size: 1.4rem;
	font-weight: 700;
}

.alert {
	position: fixed;
	top: -60px;
	font-size: 18px;
	font-weight: 600;
	width: 100%;
	max-width:800px; 
	background-color:#ff9800;
	color: #e65100;
	display: flex;
	justify-content: center; /* 수평 가운데 정렬 */
	transition: top 0.4s ease;
	z-index: 9900;
}

.alert.show {
	top: 0;
}

.modal-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 9999;
}

.modal-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: #000;
	opacity: .5;
	z-index: 9999;
}

.modal-inner {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/*width: 50%;*/
	/*height: 90%;*/
	/* padding: 30px; 
   background: #F5F6FA; */
	height: 90%;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-y: auto;
}

.modal-inner::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.modal-inner::-webkit-scrollbar-thumb {
	background-color: #DADADA;
	border-radius: 10px;
	background-clip: padding-box;
	border: 2px solid transparent;
}

.modal-inner::-webkit-scrollbar-track {
	border-radius: 10px;
}

.modal-content {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 20px;
	margin-top: 0;
}

.modal-txt {
	padding: 30px 15px 0 10px;
}

.modal-txt li {
	font-size: 1.5rem;
	word-break: keep-all;
}

.modal-txt li label {
	width: 100px;
	font-size: 1.5rem;
	letter-spacing: 0px;
	font-weight: 550;
	color: #555;
}

.modal-txt li div {
	font-size: 1.5rem;
	font-weight: 550;
	color: #555;
	letter-spacing: 0px;
}

.modal-txt li span {
	font-size: 1.5rem;
	font-weight: 500;
	word-break: keep-all;
	color: #222;
	letter-spacing: 0px;
}

table {
	table-layout: fixed;
	border-collapse: collapse;
	width: 100%;
	max-width: 1200px;
	margin: 20px auto;
}

.table {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

table thead tr th {
	background-color: #303030;
	font-size: 1.0rem;
	color: #fff;
	text-align: center;
	border-right: 2px solid #fff;
}

table thead tr th:last-child {
	border-right: none;
}

table thead tr th, tbody tr {
	padding: 9px 0;
}

tbody tr:last-child {
	border-bottom: 2px solid #303030;
}

tbody tr td {
	font-size: 1.6rem;
	text-align: center;
	white-space: normal;
	word-break: break-all;
	padding: 9px 0;
}

.blue {
	color: #0149e7;
}

@media (min-width: 1200px) {
.main-image-bg2 {
  width: 100%;
  height: 250px; /* 원하는 컨테이너 높이 */
  /* 원본의 높이를 70%만 보이도록 → 높이를 (100 / 70 * 100)% = 142.857% 로 확대한 후 */
  background-size: 100% 142.857%;
  background-position: center;  
  padding: 0 !important;
  aspect-ratio: auto !important;  
}

.main-image-text2 {
	bottom: 35px;
}
}
