/* 기본적인 reset.css */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1,
.logo-content {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}
h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.75rem);
}
h3 {
  font-size: clamp(1.15rem, 2.8vw, 2rem);
}
h4 {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
}
h5 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

:root {
  --bg-main: #0b1b2a; /* 메인 배경 - 미드나잇 네이비 */
  --bg-sub: #2b2d42; /* 서브 배경 - 차콜 그레이 */
  --primary: #d72638; /* 포인트 컬러 - 크림슨 레드 */
  --secondary: #0077b6; /* 링크나 액션용 - 사파이어 블루 */
  --text-main: #f8f9fa; /* 본문 텍스트 - 고스트 화이트 */
  --text-sub: #adb5bd; /* 서브 텍스트 - 쿨 그레이 */
  --card-bg: #f9f9f9; /* 카드 등 컴포넌트 배경 */
}

h1,
h2,
.logo-content {
  color: var(--text-main);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h3,
h4,
h5,
h6,
p {
  color: var(--text-main);
}

.card h1,
.card h2,
.bright-bg h1,
.bright-bg h2 {
  color: #1e1e1e;
}

.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.bright-bg h3,
.bright-bg h4,
.bright-bg h5,
.bright-bg h6,
.bright-bg p {
  color: #2d2d2d;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  margin: 0;
  background: var(--bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  width: 100%;
  padding: 10px 20px;
  color: var(--text-main);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  z-index: 999;
  padding: 10px 20px;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

header h1 {
  width: 150px;
  margin: 0;
}

header h1 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-decoration: none;
  color: var(--text-main);
}

header h1 a .ko {
  width: 100%;
  height: 25px;
  line-height: 25px;
  border-radius: 3px 3px 0 0;
  font-size: 1.2rem;
  background-color: goldenrod;
  color: navy;
  text-align: center;
  box-shadow: 2px 0 3px black;
}

header h1 a .en {
  width: 100%;
  height: 25px;
  line-height: 25px;
  font-size: 1rem;
  background-color: navy;
  color: goldenrod;
  border-radius: 0 0 3px 3px;
  text-align: center;
  font-weight: normal;
  box-shadow: 2px 2px 3px black;
}

.logo {
  width: 150px;
  font-size: 2.2rem;
  margin: 0;
}

.logo .logo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-content .ko {
  width: 100%;
  height: 25px;
  line-height: 25px;
  border-radius: 3px 3px 0 0;
  font-size: 1.2rem;
  background-color: goldenrod;
  color: navy;
  text-align: center;
  box-shadow: 2px 0 3px black;
}

.logo-content .en {
  width: 100%;
  height: 25px;
  line-height: 25px;
  font-size: 1rem;
  background-color: navy;
  color: goldenrod;
  border-radius: 0 0 3px 3px;
  text-align: center;
  font-weight: normal;
  box-shadow: 2px 2px 3px black;
}

.menu-toggle {
  font-size: 2rem;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.nav-pc {
  display: none;
}

/* 배경 오버레이 */
.nav-mobile {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}

/* 슬라이드 메뉴 */
.nav-mobile ul {
  width: 60%; /* 고정 width */
  transform: translateX(100%);
  transition: transform 0.4s ease;
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.nav-mobile.open ul {
  transform: translateX(0);
}

.nav-mobile li {
  padding: 10px;
  overflow: hidden;
}

.nav-mobile li a,
.nav-mobile li button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.3rem;
}

h1.page-title {
  position: absolute;
  width: 100%;
  height: 6vh;
  line-height: 6vh;
  text-align: center;
  bottom: -6vh;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.2)
  );
}

address {
  width: 100%;
  margin-top: 20px;
  font-style: normal;
}

address > h6 {
  width: 100%;
  line-height: 1.5;
  color: #ccc;
  font-weight: normal;
  font-size: 1rem;
}

.sns-link {
  display: flex;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.sns-link img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  box-shadow: 2px 2px 5px grey;
}

.copyright {
  margin-top: 1rem;
  text-align: center;
  color: white;
}

.term-sheet {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.term-sheet button {
  flex: 1;
  text-align: center;
  color: #ccc;
  text-decoration: underline;
  font-size: 0.7rem;
  color: var(--blue-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #fff;
  color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
}

.modal-content > p {
  color: #222;
  margin-top: 10px;
}

.modal-content img {
  height: 100%;
  opacity: 0.8;
}

/* 닫기 버튼 */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #999;
  float: right;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content > h2 {
  color: var(--blue-color);
  margin-bottom: 20px;
}

.pc {
  display: none;
}

.mobile {
  display: flex;
}

.floating-buttons {
  position: fixed;
  right: 20px;
  top: 75%; /* 화면 높이의 약 2/3 지점 */
  transform: translateY(-50%); /* 중심 정렬 */
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  opacity: 0.85;
}

.float-btn {
  background-color: #4caf50;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
  font-size: 2.25rem;
  position: relative;
}

.map-btn {
  background-color: #faf3e0;
}

.float-btn i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 2px 2px 2px green;
}

.map-btn i {
  text-shadow: 2px 2px 2px gray;
}

.ch-btn {
  background-color: transparent;
}

.ch-btn i {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background: url("/assets/imgs/kakaoch.png") no-repeat center/cover;
}

.floating-banner {
  position: fixed;
  max-width: 400px;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%); /* 중심 정렬 */
  display: flex;
  flex-direction: column;
  z-index: 99;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.floating-banner.hide {
  opacity: 0;
  pointer-events: none;
}

.floating-banner h3 {
  background-color: #000;
  text-align: center;
}

.ani-up-before {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out 1.5s;
}

.ani-down-before {
  transform: scale(1.5);
  transition: all 1s ease-out 1.5s;
}

.ani-up-before {
  transition: all 1s ease-out;
}

.ani-up-before.slow1 {
  transition: all 1s ease-out 0.5s;
}

.ani-up-before.slow2 {
  transition: all 1s ease-out 1s;
}

.ani-up-before.slow3 {
  transition: all 1s ease-out 1.5s;
}

.ani-up-before.slow4 {
  transition: all 1s ease-out 2s;
}

.ani-up-before.slow5 {
  transition: all 1s ease-out 2.5s;
}

.ani-up-before.slow6 {
  transition: all 1s ease-out 3s;
}

.ani-up-before.slow7 {
  transition: all 1s ease-out 3.5s;
}

.ani-up-show {
  opacity: 1;
  transform: translateY(0);
}

.ani-down-show {
  transform: scale(1);
}

.background-layer {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/imgs/detective-tool.jpg") no-repeat center/cover;
}
