/*
 * 모바일·태블릿 덧씌우기 — 원본(1200px 고정폭)에는 없던 화면.
 * 1200px 이상에서는 아무것도 적용되지 않는다(원본 CSS 그대로).
 * 순서: 1199 이하(공통) → 767 이하(태블릿 세로) → 480 이하(모바일)
 */

.todbi-burger,
.todbi-mnav {
	display: none;
}

/* PRODUCT 메뉴 제거(결정 D1) 뒤에도 오른쪽 아이콘 메뉴(SHOP·HK·CN·정품등록)가 원본 위치(1200px 기준)에 남게 오른쪽에 붙인다. */
#DB_navi38 > ul.icomenu {
	float: right;
	margin-right: 13px;
}

/* 스크린 리더 전용 텍스트(화면에는 보이지 않는다) — 비밀글 비밀번호 라벨 등 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1199px) {

	/* --- 고정폭 해제 --- */
	#wrap,
	.mdefault,
	.mfixed,
	footer,
	#s_visual,
	#container,
	.f1,
	.f2 {
		min-width: 0;
		width: 100%;
	}

	#container {
		display: block;
	}

	#container > #content {
		display: block;
		width: 100%;
	}

	img,
	iframe,
	video {
		max-width: 100%;
	}

	img {
		height: auto;
	}

	/* --- 헤더: 햄버거 --- */
	#menuw h1 {
		width: 170px;
		height: auto;
		margin: 14px 0 0 16px;
	}

	#menuw h1 img {
		width: 100%;
		height: auto;
	}

	#DB_navi38 {
		display: none;
	}

	.todbi-burger {
		display: block;
		position: absolute;
		top: 23px;
		right: 12px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
		z-index: 95;
	}

	.todbi-burger span {
		display: block;
		width: 24px;
		height: 2px;
		margin: 5px auto;
		background: #333;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.todbi-burger.is-open span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.todbi-burger.is-open span:nth-child(2) {
		opacity: 0;
	}

	.todbi-burger.is-open span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.todbi-burger:focus-visible,
	.todbi-mnav a:focus-visible {
		outline: 2px solid #62544e;
		outline-offset: 2px;
	}

	.todbi-mnav:not([hidden]) {
		display: block;
		position: fixed;
		top: 90px;
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid #ededed;
		z-index: 55;
		padding: 8px 16px 32px;
	}

	.todbi-mnav__group {
		border-bottom: 1px solid #ededed;
	}

	.todbi-mnav__top {
		display: block;
		padding: 14px 4px;
		min-height: 44px;
		color: #333;
		font-size: 16px;
		font-weight: 700;
	}

	.todbi-mnav ul {
		margin: 0;
		padding: 0 0 10px 12px;
		list-style: none;
	}

	.todbi-mnav li a {
		display: block;
		padding: 10px 4px;
		min-height: 44px;
		color: #666;
		font-size: 14px;
	}

	/* --- 메인 --- */
	/* 슬라이드 이미지는 2000x560 — 글자가 그림에 들어 있어 잘리지 않게 같은 비율로 줄인다. */
	#visual .cd-hero-slider,
	.cd-hero-slider {
		height: 28vw;
	}

	.cd-hero-slider li {
		background-size: 100% 100%;
	}

	.cd-hero-slider .cd-full-width {
		padding-top: 0;
	}

	.main1,
	.main2 {
		height: auto;
		margin-top: 32px;
		padding: 0 16px;
		box-sizing: border-box;
	}

	.main_ban {
		width: 100%;
		float: none;
		margin: 0 0 40px;
	}

	.ban02,
	.ban03,
	.ban04 {
		margin-left: 0;
	}

	.main_ban > a > img.image {
		display: block;
		margin: 0 auto;
		max-width: 120px;
	}

	.main_com {
		width: 100%;
		float: none;
		margin: 0 0 24px;
	}

	.com02,
	.com03 {
		margin-left: 0;
	}

	.main_com iframe {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	/* --- 서브 공통 --- */
	#s_visual {
		background-size: cover;
	}

	.smenu {
		width: 100%;
		height: auto;
		padding: 0 12px;
		box-sizing: border-box;
	}

	.smenu h3 {
		font-size: 28px;
		margin: 24px 0 12px;
		padding-bottom: 12px;
	}

	.smenu a {
		display: inline-block;
		padding: 12px 14px;
		min-height: 44px;
		box-sizing: border-box;
	}

	.smenu .on {
		padding: 12px 20px;
		margin: 0 4px;
	}

	#scontent {
		margin-bottom: 60px;
	}

	.scon {
		width: auto;
		margin: 0 16px;
		min-height: 0;
	}

	/* --- CEO인사말 (p11) --- */
	#scontent .p11 .left,
	#scontent .p11 .right {
		float: none;
		width: 100%;
		margin-top: 32px;
	}

	#scontent .p11 .left img {
		width: 100%;
	}

	/* --- 브랜드소개 (p13) --- */
	#scontent .p13 .tit {
		box-sizing: border-box;
		height: auto;
		padding: 60px 16px;
		background-size: cover;
	}

	#scontent .p13 .box {
		height: auto;
		padding: 40px 16px;
		box-sizing: border-box;
		overflow: hidden;
	}

	#scontent .p13 .box_detail {
		float: none;
		width: 100%;
		max-width: 320px;
		height: auto;
		margin: 24px auto 0;
		padding-bottom: 24px;
		box-sizing: border-box;
	}

	/* --- BI소개 (p14) --- */
	#scontent .p14 .txt_detail {
		margin-left: 0;
	}

	/* --- 사용자메뉴얼 (p22) --- */
	#scontent .p22 .box {
		height: auto;
		overflow: hidden;
	}

	#scontent .p22 .box_detail {
		float: none;
		width: 100%;
		height: auto;
		margin: 24px 0 0;
	}

	#scontent .p22 .box_detail img {
		max-width: 100%;
	}

	/* --- 온라인판매처 (p31) --- */
	#scontent .p31 .box {
		height: auto;
		padding: 32px 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	#scontent .p31 .box_detail {
		float: none;
		margin: 8px;
	}

	/* --- 푸터 --- */
	footer {
		height: auto;
		padding-bottom: 24px;
	}

	.f1,
	.f2 {
		height: auto;
		box-sizing: border-box;
		padding: 24px 16px 0;
	}

	.foot {
		float: none;
		width: 100%;
		margin-bottom: 16px;
	}

	.info01,
	.info02,
	.info03 {
		width: 100%;
	}

	.flink {
		width: 100%;
		height: auto;
		line-height: 2;
	}

	.flink a {
		display: inline-block;
		padding: 4px 2px;
		min-height: 24px;
	}

	.footcopy {
		word-break: keep-all;
	}

	/* --- 게시판 --- */
	.todbi-board-wrap {
		padding: 0 16px;
		box-sizing: border-box;
	}

	.todbi-board-wrap table {
		max-width: 100%;
	}
}

@media (max-width: 767px) {

	.smenu h3 {
		font-size: 24px;
		letter-spacing: 3px;
	}

	.scon .title {
		font-size: 22px;
	}

	#scontent .p11 .txt_ti {
		font-size: 24px;
	}

	#scontent .p31 .box_detail {
		margin: 6px;
	}
}

@media (max-width: 480px) {

	#scontent .p31 .box_detail {
		width: calc(50% - 12px);
		max-width: 150px;
	}
}

/* 게시판 안의 제목 줄(h2)은 페이지 제목(p.title)과 겹쳐 숨긴다(글쓰기 버튼은 남긴다). */
.todbi-board-wrap .todbi-board .section-header .h2 {
	display: none;
}

.todbi-board-wrap {
	position: relative;
}

/* 글쓰기 버튼을 페이지 제목 줄 오른쪽 끝에 맞춘다. */
.todbi-board-wrap .todbi-board .section-header {
	position: absolute;
	top: 38px;
	right: 0;
	min-height: 0;
	height: auto;
	padding: 0;
	border: 0;
	z-index: 5;
}

/* 연혁 타임라인: 세로 모드(1000px 미만)에서 스크롤로 나타나는 효과 때문에 첫 화면에 카드가 안 보이는 것을 막는다. */
@media (max-width: 999px) {
	.timeline__item,
	.timeline__item.animated {
		opacity: 1 !important;
		animation: none !important;
		transform: none !important;
	}
}

/* --- 게시판 버튼·글쓰기 화면 (원본 고도몰 버튼 모양) --- */
/* 삭제 버튼(<button>)도 다른 버튼(<a>)과 같은 모양 */
.todbi-board button.skinbtn.default {
	border: 1px solid #a3a3a3;
	color: #666;
	height: 28px;
	line-height: 26px;
	padding: 0 5px;
}

/* 글쓰기·수정 화면: 페이지 제목과 겹치는 "글 쓰기" 제목을 숨기고, 버튼을 원본 고도몰 버튼 모양으로 */
.todbi-board-wrap .fluxboard-board-write__header {
	display: none;
}

.todbi-board-wrap .fluxboard-board-write {
	margin-top: 0;
	padding-top: 0;
}

.todbi-board-wrap .fluxboard-board-write .fluxboard-btn {
	display: inline-block;
	box-sizing: border-box;
	height: 40px;
	min-width: 80px;
	padding: 0 20px;
	border: 1px solid #a3a3a3;
	border-radius: 0;
	background: #fff;
	color: #666;
	font-size: 12px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
}

.todbi-board-wrap .fluxboard-board-write .fluxboard-btn--primary {
	border-color: #979797;
	background: #979797;
	color: #fff;
}

.todbi-board-wrap .fluxboard-board-write .fluxboard-btn--primary:hover {
	border-color: #626262;
	background: #626262;
}
