@charset "utf-8";

@import url(_variables.css);


/*////////////////// 공통 //////////////////*/
/* 화면 전환 애니메이션 */
.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease; /* 0.8초 동안 부드럽게 사라짐 */
    pointer-events: none; /* 클릭 중복 방지 */
}

/* (선택 사항) 처음에 나타날 때도 부드럽게 하고 싶다면 */
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#accessibility-quick,
#accessibility-gnb,
#accessibility-content,
#accessibility-mcontent,
#accessibility-remote {position:fixed;top:0;left:0;width:100%}
:root{
  /* 키오스크 타이포 스케일 (가독성 우선) */
  --fs-xs: clamp(20px, 1.4vw, 32px);  /* 보조 텍스트 */
  --fs-sm: clamp(24px, 2.0vw, 44px);  /* 일반 텍스트 */
  --fs-md: clamp(28px, 2.6vw, 52px);  /* 섹션 설명 */
  --fs-lg: clamp(32px, 3.0vw, 64px);  /* 섹션 타이틀 */
  --fs-xl: clamp(44px, 3.6vw, 88px);  /* 메인 타이틀 */
  --fs-xxl: clamp(52px, 4.2vw, 104px);  /* 메인 타이틀 */
}
.ir {
	overflow: hidden;
}

.ir:before {
	content:"";
	display:inline-block;
	vertical-align:top;
	width:100%;
	height:100%
}

html { font-size: 24px; }
body { font-size: 1rem; } /* = 24px */
body.kiosk.main{background:#333;}
body.kiosk.sub01{background:#333;}
body.kiosk.sub02{background:#4B443E url(/images/djmediaboard/common/bg2.svg) no-repeat 50% 100% / contain;}
body.kiosk.sub03{background:#32516E url(/images/djmediaboard/common/bg3.svg) no-repeat 50% 100% / contain;;}
body.kiosk.sub04{background:#99ACC3;}
body.kiosk.sub05{background:#858480;}
body.kiosk.sub06{background:#858480;}
body.kiosk.sub07{background:#99ACC3;}

body.kiosk{
  width:100vw; height:100vh;
  overflow:hidden;
  color: var(--white);
}
h1{color:#fff!important}

#header{z-index:999;position:absolute;top:0;left:0%; display:flex;
  align-items:center;
  justify-content:space-between;width:100vw; height: 8vh;padding:0 4vw; }
#logo{width:40%; height: 100%;margin:0; display:flex; align-items:center; }
#logo .ir-logo{
  height: 3.6vh;              /* topbar의 % */
  aspect-ratio: 250/26;     /* 로고 원본비 유지 */
  width: auto;
  background: url(/images/djmediaboard/common/logo.svg) no-repeat left center / contain;}


.weather{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 1.2vw;
  color:#fff;
  white-space:nowrap;
  font-weight:600;font-size:var(--fs-sm);
}
.weather #dt{ display:none; } /* 서브에서는 날짜/시간 안 보임 */
.weather .weather__label{
  opacity:.9;
}
.weather .wicon{
  display:flex;
  align-items:center;
  gap:.6vw;
  font-weight:900;
	width:2vh;height:2vh;
	background:url("/images/djmediaboard/common/weather/icon_wt01.svg") center/contain no-repeat;
}
.weather .wicon.ico1{background-image:url("/images/djmediaboard/common/weather/icon_wt01.svg")}
.weather .wicon.ico2{background-image:url("/images/djmediaboard/common/weather/icon_wt02.svg")}
.weather .wicon.ico3{background-image:url("/images/djmediaboard/common/weather/icon_wt03.svg")}
.weather .wicon.ico4{background-image:url("/images/djmediaboard/common/weather/icon_wt04.svg")}
.weather .wicon.ico5{background-image:url("/images/djmediaboard/common/weather/icon_wt05.svg")}
.weather .wicon.ico6{background-image:url("/images/djmediaboard/common/weather/icon_wt06.svg")}
.weather .wicon.ico7{background-image:url("/images/djmediaboard/common/weather/icon_wt07.svg")}
.weather .weatherRange{display:flex;align-items:center;gap:.6vh;font-size:var(--fs-sm)}
.weather .w_tmp{font-weight:700;font-size:var(--fs-md)}


/* 최고/최저 아이콘 */
.w_tmx,
.w_tmn{display:none;width:1.2vh;height:1.2vh;}
.w_num{display:none;}
.w_tmx{background:url("/images/djmediaboard/common/ico_tmx.svg") center/contain no-repeat;}
.w_tmn{background:url("/images/djmediaboard/common/ico_tmn.svg") center/contain no-repeat;}

/* ===============================
   메인 화면만 (is-main)
================================ */
.is-main .weather{
	position:absolute;left:50%;top:23vh;transform:translateX(-45%);
    display:flex; align-items:center; gap:1vw;
    font-size:var(--fs-md);
    opacity:.95;
    white-space:nowrap;
  }

.is-main #dt{
  display:inline-block;
  font-weight:900;
  margin-right:.8vw;font-size:var(--fs-xl)
}

.is-main .weather__label{display:none;}
.is-main .wicon{width:4vh;height:4vh;}
.is-main .weather .weatherRange{padding-top:1.4vh;font-size:var(--fs-xs);gap:0;}
.is-main .w_tmp{position:absolute;top:.6vh;font-size:var(--fs-sm);font-weight:700}
.is-main .w_tmx,
.is-main .w_tmn,
.is-main .w_num{display:block;}



#gnb{z-index:999;position:fixed;bottom:0;left:0;width:100%;}

/* bnav 상단 라인 */
.bnav{
  position: relative;
}
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border:0;
}
/* 상단 텍스트 줄(탭바 위) */

#tm > li#iconSet5,
#tm > li#iconSet6,
#tm > li#iconSet7{
  position: absolute;
  bottom: 12vh;
  height: 5vh;
  align-items:flex-end;
  }
#tm > li#iconSet7{         /* 시내버스노선도 */
  left: 2vw;  
  width:40%        
}
#tm > li#iconSet6{
  right: 2vw;
  justify-content:flex-end
}
#tm > li#iconSet5{
  right: 20vw;
  justify-content:flex-end
}
#tm > li#iconSet5 a,
#tm > li#iconSet6 a,
#tm > li#iconSet7 a{
  display:block;
  background-repeat:no-repeat;
  background-size: contain;
  font-size:0;
}

/* 시내버스노선도 이미지 */
#tm > li#iconSet7 a{
  width: 38vw;          /* 대략 이미지 비율에 맞게 */
  height:clamp(39px, 3.8vh, 74px);
  background-image: url('/images/djmediaboard/common/bn_busmap.svg'); /* 너 이미지 경로 */
  background-position:0 100%;font-size:0;
}

/* 여행지도 이미지 */
#tm > li#iconSet6 a{
  width: 26vw;
  height:clamp(57px, 3.4vh,116px);
  background-image: url('/images/djmediaboard/common/bn_tourmap.svg');
  background-position:100% 100%;font-size:0;
}
/* 합덕역가이드 이미지 */
#tm > li#iconSet5 a{
  width: 26vw;
  height:clamp(57px, 3.4vh,116px);
  background-image: url('/images/djmediaboard/common/bn_guide_hd.svg');
  background-position:100% 100%;font-size:0;
}

#tm::before {content:'';display:block;position:absolute;left:0;bottom:0;
  width: 100%;
 height: clamp(120px, 11vh, 460px);
  background: rgba(0, 0, 0, 0.5);
  border-radius:
    clamp(24px, 2vh, 70px)
    clamp(24px, 2vh, 70px)
    clamp(36px, 4vh, 150px)
    clamp(36px, 4vh, 150px);
  aspect-ratio: 250 / 26;

  -webkit-mask:
    radial-gradient(circle at 50%  0.2vh,
      transparent 0 5.4vh,
      #000 5.5vh);
}
/* 메뉴 바 */
#tm{
 position: fixed;
  left: 4vw;
  right: 4vw;
  bottom: 1vh;

  height: 11vh;
  margin: 0;
  padding: 0 4vw;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ✅ 노치(가운데 파임) : 바 배경색과 동일한 원을 위에서 덮어씀 */
#tm .tabbar__homeWrap{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 22%;
  height: 100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;

  margin: 0;
  padding: 0 0 2vh;
  z-index: 5;
}

#tabbar__home{
  height: 9vh;
  aspect-ratio: 1 / 1;  /* ✅ 무조건 정원 */
  width: auto;
  border-radius: 50%;
  background: #b10c19;
  color:#fff;
  text-decoration:none;

  display:flex;
  align-items:center;
  justify-content:center;

  position: absolute;
  bottom: 6.8vh;
  box-shadow: 0 2vh 5vh rgba(0,0,0,0.30);
  border: .2vh solid rgba(255,255,255,0.15);
}

.current #tabbar__home::before{background-image:url(/images/djmediaboard/common/ico_home_fill.svg);}
#tabbar__home::before{content:"";
  width: 4.2vh;
  height: 4.2vh;
  display:block; background: url(/images/djmediaboard/common/ico_home.svg) no-repeat center / contain; }


#tm .homeTxt{
  color:#fff;
  font-weight: 700;
  font-size:var(--fs-md); 
  opacity: .95;
}

/* =========================
   메뉴 4개 (li.th1)
   ========================= */
#tm > li.th1{
  width: 18%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  z-index: 2;
}

/* 중앙 홈 공간 확보 (이미지처럼 좌2/우2 배치) */
#tm > li#iconSet1{ margin-right: 3%; }
#tm > li#iconSet2{ margin-right: 18%; }
#tm > li#iconSet3{ margin-left: 18%; }
#tm > li#iconSet4{ margin-left: 3%; }

/* =========================
   ✅ li.th1 > a : 이제 숨기지 않고 “보이게” 만든다
   ========================= */
#tm > li.th1 > a{
  position: static;        /* absolute/clip 제거 */
  width: 100%;
  height: 100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap: .6vh;

  text-decoration:none;
  color:#fff;
  font-weight: 700;
  font-size:var(--fs-sm);        /* 탭 텍스트 크기 */
  line-height: 1.1;
  text-align:center;
  white-space: nowrap;
}

/* =========================
   ✅ 아이콘 영역 (SVG 넣을 자리)
   - a::before로 아이콘 박스를 만들어 둠
   - 나중에 background-image 또는 mask, 또는 JS로 svg 삽입 가능
   ========================= */
#tm > li.th1 > a::before{
  content:"";
  width: 3.8vh;
  height: 3.8vh;
  display:block;

  /* 지금은 빈 박스. SVG 넣으면 제거/변경 */
 
  border: .2vh solid rgba(255,255,255,0.0);
}

/* SVG를 a 안에 직접 넣는 방식으로 바꿀 계획이면 이렇게 사용 */
#tm > li.th1 > a svg{
  width: 4.8vh;
  height: 4.8vh;
  display:block;
}

/* current 활성 표시 */
#tm > li.th1.current > a{
  color: #ffd54f;
}

/* 교통정보 빨간 점(필요한 것에만 class 추가해서 사용) */
#tm > li.th1.is-dot::after{
  content:"";
  position:absolute;
  top: 28%;
  right: 30%;
  width: 1.3vh;
  height: 1.3vh;
  border-radius: 50%;
  background:#c91d2c;
}


#iconSet1 > a::before{ background: url(/images/djmediaboard/common/ico_menu1.svg) no-repeat center / contain; }
#iconSet2 > a::before{ background: url(/images/djmediaboard/common/ico_menu2.svg) no-repeat center / contain; }
#iconSet3 > a::before{ background: url(/images/djmediaboard/common/ico_menu3.svg)  no-repeat center / contain; }
#iconSet4 > a::before{ background: url(/images/djmediaboard/common/ico_menu4.svg) no-repeat center / contain; }

#iconSet1.current > a::before{ background: url(/images/djmediaboard/common/ico_menu1_active.svg) no-repeat center / contain; }
#iconSet2.current > a::before{ background: url(/images/djmediaboard/common/ico_menu2_active.svg) no-repeat center / contain; }
#iconSet3.current > a::before{ background: url(/images/djmediaboard/common/ico_menu3_active.svg)  no-repeat center / contain; }
#iconSet4.current > a::before{ background: url(/images/djmediaboard/common/ico_menu4_active.svg) no-repeat center / contain; }


body.kiosk.sub01 #remote{
  display: none !important;
}


/* lnb */
#remote{position:absolute;z-index:10;width:100%;padding-right:60px;}
/* 탭 전체 바 */
#lnb {
  position: fixed;          /* ⭐ DOM 위치 무시 */
  left: 50%;
  bottom: 23vh;             /* 하단 탭바 위에 올라오게 */
  transform: translateX(-50%);


  margin: 0;
  list-style: none;

  display: flex;
  gap: 1.5%;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.22);
  border-radius: 999em;
  border: 1px solid rgba(255,255,255,.18);

  z-index: 50;              /* 하단 탭바보다 위 */

}

/* 탭 아이템 */
#lnb .th2 {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* 탭 공통 */
#lnb .th2 a {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  padding:2vh 3vh;

  border-radius: 999em;
  text-decoration: none;
  white-space: nowrap;

  font-weight: 800;
  color: #fff;
  font-size:var(--fs-lg);

  background: transparent;
}

/* ✅ 활성 탭 */
#lnb .th2 a.link_2th_ov {
  background: #fff;
  color: #555;
}

/* 비활성 탭 */
#lnb .th2 a.link_2th {
  background: transparent;
  color: #fff;
}

/* span은 구조용이므로 숨김 */
#lnb .th2 a span {
  display: none;
}
#location{z-index:999;position:absolute;left:50%;top:6vh;transform:translateX(-50%);}
.navi{display:none}
#location h1{
  font-size: var(--fs-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align:center;
  margin-top: 3vh;
  margin-bottom: 3vh;
}
.sub02 #remote,
.sub03 #remote{display:none;}
.sub02 #location,
.sub03 #location{top:10vh;}
.sub02 #navigate h1,
.sub03 #navigate h1{display:block;width:19.6vh;height:8.2vh;margin:0 auto;padding:0;font-size:0;background:url(/images/djmediaboard/common/copy3.svg) no-repeat center/contain;}

.sub02 #navigate h1{background-image:url(/images/djmediaboard/common/copy2.svg)}

.sub04 .title h1 {background-image:url(/images/djmediaboard/common/copy4.svg);height: 3vh;}
.sub05 .title h1 {background-image:url(/images/djmediaboard/common/copy5.svg); height:3vh;}
.sub06 .title h1 {background-image:url(/images/djmediaboard/common/copy6.svg); height:3vh; margin-bottom:1vh;}
.sub07 .title h1 {background-image:url(/images/djmediaboard/common/copy7.svg); height:3vh;}

.sub04 #location h1, .sub05 #location h1, .sub06 #location h1, .sub07 #location h1 {font-size:0;}