/* 헤더 높이 기준: 약 80px */
body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  background-color: #fdfaf6;
  color: #2e2e2e;
  overflow-x: hidden;
    padding-top: var(--header-height);
}



/* 헤더 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 고정 높이 지정 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background-color: #fdfaf6; /* 배경색 지정해서 겹침 방지 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 살짝 그림자 */
}

:root{
  --radius: 14px;
  --ring: rgba(0, 120, 255, .12);     /* 포커스/호버 링 */
  --shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* 그리드 */
.images{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* 카드 컨테이너에만 둥근모서리 + overflow */
.gallery-card{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* 전체가 클릭 영역 */
.card-link{
  display: block;
  position: relative;
  isolation: isolate;         /* 캡션 혼합 효과 안정화 */
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: transform;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* 이미지 래퍼: 스케일 효과는 img에만 */
.img-wrap{
  position: relative;

  overflow: hidden;           /* 안전 */
}

.img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}

/* 감각적인 캡션: 유리 느낌 */
.caption{
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 8px 11px;
  font-size: .95rem;
  line-height: 1.2;
  color: #122;
  background: rgba(255,255,255,.65);
  backdrop-filter: saturate(1.2) blur(8px);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

/* 호버/포커스 상태 */
.card-link:hover,
.card-link:focus-visible{
  box-shadow: var(--shadow), 0 0 0 6px var(--ring);
  transform: translateY(-2px);
}

.card-link:hover .img-wrap img,
.card-link:focus-visible .img-wrap img{
  transform: scale(1.05);     /* 살짝 확대 */
}

.card-link:hover .caption,
.card-link:focus-visible .caption{
  opacity: 1;
  transform: translateY(0);
}

/* 접근성: 키보드 포커스 표시 */
.card-link:focus-visible{
  outline: none;
  border-radius: var(--radius);
}



.team-link {
  text-decoration: none;
}


.team-name {
  font-size: 1.5rem;
  color: #3e2723;
  letter-spacing: 2px;
  opacity: 0.8;
  margin: 0;
}

/* 섹션 */
.section {
  height: 100vh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1, h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

p {
  max-width: 600px;
  font-size: 1.2rem;
}

/* 이미지 갤러리 */
.images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.images img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* 마우스트레일 캔버스 */
#cursorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* 오른쪽 커튼 토글 버튼 */
#curtainToggle {
  position: fixed;
  bottom: 450px;
  right: -25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11000;
  padding: 0;
  width: 150px;
  height: 150px;
}

#curtainToggle img {
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  animation: handIdle 2s infinite ease-in-out;
}

@keyframes handIdle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
.cute-button {
  margin-top: 60px;
  text-align: center;
}

.cute-button a img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cute-button a img:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
}



/* 커튼 메뉴 */
#curtainMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  z-index: 10999;
  overflow-y: auto;
  transform: translateX(0);
  will-change: transform;
  font-family: 'M PLUS Rounded 1C', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;      
  padding: 0;               
}


/* 메뉴 리스트 스타일 */
#curtainMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#curtainMenu li {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

#curtainMenu li:last-child {
  border-bottom: none;
}

#curtainMenu a {
  color: #2e2e2e;
  text-decoration: none;
  font-size: 1.5rem;
  display: block;
  padding: 15px 0;
  transition: color 0.3s ease;
}

#curtainMenu ul li a {
  color: #2e2e2e;
  text-decoration: none;
  font-size: 1.5rem;
  display: block;
  padding: 10px 0;
  transition: background-color 0.3s;
  
  /* 원하는 폰트 지정 예시 */
  font-family: 'M PLUS Rounded 1C', sans-serif;
}

#curtainMenu a:hover,
#curtainMenu a:focus {
  color: #7880ff;
  outline: none;
}

/* 오버레이 */
#overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 10998;
  transition: opacity 0.3s ease;
}

/* fade 애니메이션 기본 스타일 */
.fade {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 500px) {
  #curtainMenu {
    width: 240px;
  }
}

@media (max-width: 640px) {
  .card {
    width: 100%;
  }
}
:root{
  --bg:#fdfaf6;           /* 따뜻한 베이지 */
  --ink:#2e2e2e;          /* 본문색 */
  --line:#c9c1b5;         /* 테두리 */
  --blue:#3a7bd5;         /* 포인트 블루 */
  --shadow:#b5afa4;       /* 레트로 그림자 */
}

/* 섹션 안 중앙 배치 유지 */
.section {
  min-height: 100vh;
  height: auto;
  padding: 8vh 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  background: var(--bg);
  color: var(--ink);
}

.section.hero {
  position: relative;
  padding: 0; /* 기존 padding 제거 */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}


/* 인터뷰 카드 래퍼 */
.interview-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.interview-wrap main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px
}

/* 기본 카드: 레트로 창문 느낌(살짝 튀어나온 박스+점선) */
.card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--shadow);
  text-align: left;
  padding: 20px 22px;
  margin: 0 auto 40px;   /* 가운데 정렬을 위해 auto 추가 */
  max-width: 1000px;
  width: 100%;           /* 반응형 대응 */
  box-sizing: border-box;
}




/* 카드 상단 라벨(작은 탭) */
.card .label{
  display:inline-block;
  font-size:12px;
  letter-spacing:.08em;
  color:#59606b;
  background:#f3efe7;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 10px;
  margin-bottom:10px;
}

/* Q/A 스타일 */
.qa{
  display:grid; gap:10px;
}
.qa .q{
  font-weight:700;
  font-size:1.05rem;
}
.qa .q::before{
  content:"Q";
  display:inline-grid; place-items:center;
  width:22px; height:22px; margin-right:8px;
  border:1px solid var(--blue);
  color:var(--blue);
  border-radius:6px;
  font-size:.9rem;
}
.qa .a{
  line-height:1.85;
  color:#494949;
}
.qa .a::before{
  content:"A";
  display:inline-grid; place-items:center;
  width:22px; height:22px; margin-right:8px;
  border:1px solid #9aa6b2;
  color:#6b7280;
  border-radius:6px;
  font-size:.9rem;
}

/* 말풍선 변형(원하면 Q/A 중 A에 사용) */
.bubble{
  position:relative;
  background:#fefdfb;
  border:2px dotted var(--line);
  border-radius:16px;
  padding:16px 18px;
}
.bubble:after{
  content:"";
  position:absolute;
  left:24px; bottom:-10px;
  width:16px; height:16px; rotate:45deg;
  background:#fefdfb;
  border-right:2px dotted var(--line);
  border-bottom:2px dotted var(--line);
}

/* 살짝 상호작용(모바일도 안전) */
.card:hover{ transform: translateY(-2px); }
.card{ transition: transform .15s ease; }



/* 모바일 여백 조정 */
@media (max-width:640px){
  .section{ padding: 7vh 4vw; }
  .card{ padding:16px 18px; }
}

.team-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 700; /* 굵게 */
  font-family: 'M PLUS Rounded 1C', sans-serif; /* 감성 있는 서체 */
  color: #92630b;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.card-container {
position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  padding: 20px;

}

.id-card {
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}
.id-card:hover {
  transform: scale(1.05);
}
.id-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;

}

.modal-content {
  background: white;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  .id-card {
    width: 90%;
  }
}
/* 모달 내부 카드 레이아웃 */
.card-layout {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
}

/* 왼쪽 사진 영역 */
.card-left img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 오른쪽 소개 영역 */
.card-right {
  flex: 1;
  min-width: 240px;
}

.card-right h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: 'M PLUS Rounded 1C', sans-serif;
  color: var(--ink);
}

.card-right p {
  font-size: 1rem;
  margin: 6px 0;
  line-height: 1.6;
  color: #494949;
}

.card-right a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
@media (max-width: 640px) {
  .card-layout {
    flex-direction: column;
    text-align: center;
  }

  .card-left img {
    width: 160px;
  }

  .card-right h2 {
    font-size: 1.5rem;
  }

  .card-right p {
    font-size: 0.95rem;
  }
}

/* 인터뷰 섹션 */
.section#interview {
  padding-top: 100px; /* 헤더 높이 + 여유 공간 */
  padding-bottom: 60px;
  padding-left: 5vw;
  padding-right: 5vw;
  background-color: var(--bg);
  color: var(--ink);
  text-align: center;
}

/* 인터뷰 제목 */
.section#interview h2 {
  margin-top: 0;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.intro-section {
  display: flex;
  gap: 60px;
  padding: 10vh 20vw;
  background-color: #fdfaf6;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.intro-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

.intro-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.intro-box {
  background: #fff;
  border: 2px solid #c9c1b5;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 6px 6px 0 #b5afa4;
}

.intro-box h3 {
  font-family: 'M PLUS Rounded 1C', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.intro-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.intro-box p + p {
  border-top: 1px dashed #e0dcd4;
  padding-top: 10px;
}



.intro-box img{
  width: 100%;
}
