:root {
  --main-color: #ffffff;
  --text-color: #111111;
  --accent-color: #000000;
  --hover-color: #666666;
  --dark-color: var(--main-color); 
  --white: #ffffff;
}

/* 기본 폰트 크기 */
@media (max-width: 599px) {
  :root { font-size: 12px; }
}

@media (min-width: 600px) and (max-width: 799px) {
  :root { font-size: 14px; }
}

@media (min-width: 800px) {
  :root { font-size: 16px; }
}

body { font-size: 12px; }

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

body {
  font-family: '맑은 고딕','Apple SD Gothic Neo','sans-serif';
  background-color: var(--main-color);
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: 80px; /* 전체 페이지: 고정 헤더 아래 여백 */
}

/* 모바일 글씨 자동 확대 방지 (iOS Safari 등) */
html {
  -webkit-text-size-adjust: 100%; /* iOS */
  -ms-text-size-adjust: 100%;     /* IE Mobile */
}

/* ABOUT 페이지는 고정 헤더 여백 제거 */
.about-page body {
  padding-top: 0 !important;
}

/* 헤더 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
  padding: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
}

/* 모바일 메뉴 열렸을 때 배경색 */
@media (max-width: 767px) {
  .headB.active {
    background-color: #333; 
    color: #fff;            
  }

  .headB.active a {
    color: #fff;            
  }
}

.headC {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s;
}

/* 토글 메뉴가 열렸을 때 X 버튼 색상 */
.headC i.fa-times { color: var(--white); }

header nav { display: block; }

header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

header nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #81d8d0 !important;
}

/* HERO 섹션 (메인 페이지) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

main > .hero:first-child { margin-top: 0; }

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.overlay.dark { background: rgba(0, 0, 0, 0.1); }

.hero-text {
  position: absolute;
  z-index: 3;
  color: var(--accent-color);
  text-transform: uppercase;
  max-width: 800px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-text.white-text { color: var(--white); }

.hero-text.left { left: 10%; text-align: left; }
.hero-text.right { right: 10%; text-align: right; }

.hero-text.center-aligned {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.hero-text.center-aligned h2 {
  font-size: 5.5rem;
  margin-bottom: 25px;
  letter-spacing: 5px;
}

.hero-text.center-aligned p {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-transform: none;
  font-weight: 500;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 25px;
  text-transform: none;
}

/* 버튼 */
.hero-text.white-text .btn {
  border: 1px solid var(--white);
  color: var(--white);
}

.hero-text.white-text .btn:hover {
  background-color: var(--white);
  color: var(--accent-color);
}

.btn {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 25px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--main-color);
}

/* 푸터 */
footer {
  background-color: var(--dark-color);
  color: var(--text-color);
  padding: 60px 40px;
  border-top: 1px solid var(--hover-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sns a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: opacity 0.3s ease;
}

.sns a:hover { opacity: 0.7; }

.credit {
  flex: 0 0 100%;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: left;
}

.footer-right {
  display: flex;
  flex: 0 0 60%;
  gap: 40px;
  justify-content: flex-end;
  padding-top: 0;
}

.footer-right > div {
  flex: none;
  padding: 0 10px;
  text-align: left;
}

.footer-right h3 {
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-right ul { list-style: none; padding: 0; margin: 0; }

.footer-right a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.9rem;
  display: block;
  line-height: 1.8;
}

.footer-right a:hover { opacity: 1; }

/* 768px 이하 반응형 */
@media (max-width: 768px) {
  .header-container { padding: 20px 20px; }
  .headC { display: block; }

  /* 토글 메뉴 오른쪽 슬라이드 */
  .headB {
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;
    height: 100vh;
    background: var(--accent-color);
    z-index: 1000;
    padding: 80px 0 0;
    transition: transform 0.3s ease-out;
    transform: translateX(100%);
    overflow-y: auto;
  }

  .headB.active { transform: translateX(0); }

  .headB ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 40px;
  }

  .headB li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .headB li:last-child { border-bottom: none; }

  .headB a {
    padding: 15px 0;
    font-size: 1.5rem;
    color: var(--white);
    opacity: 1;
    display: block;
  }

  .headB a:hover {
    background-color: transparent;
    color: var(--hover-color);
  }

  .footer-left { order: 1; width: 100%; margin-top: 0; flex: auto; display: block; }
  .sns { margin-bottom: 15px; width: 100%; }
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    order: 2;
    text-align: left;
  }
  .footer-right > div { padding: 0; }
  .credit { order: 3; width: 100%; margin-top: 0; text-align: left; }
}

/* ABOUT 페이지 공통 CSS */
body.about-page {
  padding-top: 0 !important;
}

.about-wireframe {
  margin: 0;
  padding: 0;
}

/* 히어로 이미지 */
.about-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  max-height: 450px;
  overflow: hidden;
}

.about-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  text-align: center;
  background: rgba(0,0,0,0.35);
  padding: 0 20px;
}

.about-hero .hero-overlay h1 {
  font-size: clamp(26px, 4vw, 48px);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-hero .hero-overlay p {
  font-size: clamp(14px, 1.6vw, 20px);
  opacity: 0.95;
}

header + .about-wireframe .about-hero,
.about-hero { margin-top: -8px; }

/* 히어로 아래 텍스트 */
.about-hero .hero-info {
  padding: 20px 0;
  text-align: left;
}

.about-hero .hero-info .author-name {
  font-weight: 700; 
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.about-hero .hero-info .author-description {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* ABOUT 타임라인 */
.about-timeline {
  position: relative;
  max-width: 1200px;
  margin: 80px auto 140px;
  padding: 0 20px;
}

/* 중앙 선 */
.about-timeline .timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #aaa;
  transform: translateX(-50%);
  z-index: 1;
}

/* 아이템 */
.about-timeline .timeline-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  padding: 30px 40px;
  margin-bottom: 80px;
}

/* 좌/우 정렬 */
.about-timeline .timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 80px;
}

.about-timeline .timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 80px;
}

/* 카드 스타일 */
.about-timeline .timeline-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(17,17,17,0.08);
}


.about-timeline .timeline-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* 점(dot) */
.about-timeline .timeline-item::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #81d8d0;
  border: 3px solid #999;
  z-index: 10;
}

/* 🟢 PC: 좌우 아이템에 따라 점을 중앙선에 붙이는 스타일 */
.about-timeline .timeline-item.left::after {
  right: -8px !important;
  left: auto !important;
}

.about-timeline .timeline-item.right::after {
  left: -8px !important; 
  right: auto !important;
}

/* 반응형 */
@media (max-width: 900px) {
  .about-timeline {
    max-width: 95%;
  }
  .about-timeline .timeline-card img {
    height: 230px;
  }
}

@media (max-width: 768px) {

  /* 한 줄 타임라인 */
  .about-timeline .timeline-line {
    left: 10px;
    transform: none;
  }

  .about-timeline .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 40px !important;
    margin-bottom: 50px;
    text-align: left !important;
  }

  /* 점(dot) 위치 조정 */
  .about-timeline .timeline-item::after {
    left: 20px !important;       /* 선 위치와 일치 */
    top: 0 !important;        /* 카드 상단 기준 */
    transform: translateX(-50%, 0) !important;
    right: auto !important;
  }

  /* 좌/우 PC용 점 무시 */
  .about-timeline .timeline-item.left::after,
  .about-timeline .timeline-item.right::after {
    left: -17px !important;       /* 중앙선 위치로 고정 */
    right: auto !important;
  }

  .about-timeline .timeline-card img {
    height: 200px;
  }
}

/* 타임라인 연도 스타일 */
.about-timeline .timeline-year {
  display: block;
  font-size: 1.2rem;        /* 연도 크기 */
  font-weight: 700;         /* 두껍게 */
  color: var(--accent-color, #66CBE5); /* 강조 색상 */
  margin-bottom: 10px;      /* 아래 여백 */
  letter-spacing: 1px;      /* 글자 간격 */
}

.about-timeline .timeline-card h2 {
    font-size: 1rem !important;
    font-weight: 700;       /* 굵게 */
    text-align: center;     /* 가운데 정렬 */
    margin: 10px 0;         /* 위/아래 여백 조정 */
    color: #0a0a0a;         /* 원하는 색상 */
}

.about-timeline .timeline-card p {
  font-size: 1rem;           /* 글씨 크기 */
  line-height: 1.6;          /* 줄 간격 */
  color: #333;               /* 글자 색상 */
  margin: 0;                 /* 불필요한 여백 제거 */
  padding: 0;
  text-align: center;          
}

/* ABOUT 타임라인 제목 스타일 */
.about-timeline .timeline-card h2 {
  font-size: 1.4rem;     /* 제목 크기 */
  font-weight: 700;      /* 굵기 */
  text-align: center;    /* 가운데 정렬 */
  margin-bottom: 12px;   /* 연도와 겹치지 않도록 여백 */
}


/* --- artwork + collabs 페이지 전용 수정 --- */
body.artwork .about-hero, body.collabs .about-hero {
  height: 60vh;        
  max-height: 400px;   
}

body.artwork .about-hero img, body.collabs .about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 40%; 
}

body.artwork .about-hero .hero-overlay h1,
body.collabs .about-hero .hero-overlay h1 {
  font-size: 2.5rem;   /* 글씨 크기 조정 */
}

body.artwork .listA h1, body.collabs .listA h1 {
  color: #333333;
  font-weight: 500;
  text-align: center;   
  margin-top: 25px;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.listA .container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  
    max-width: 1100px;
    margin: 30px auto;
    gap: 20px;                
}

.listA article{
    flex: 1 1 300px;          
    max-width: 320px;         
    display: flex;
    flex-direction: column;
}

.listA a{
    flex: 1;
    display: block;
    border: solid 1px #ddd;
    border: solid 1px var(--gray-color);
    color: inherit;
    text-decoration: none;
    background: #fff;
    margin: 5px;
}

.listA a:hover {
    background-color: #f7f7f7;  
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.listA .photo{
    min-height: 250px;        
    background-position: center;
    background-size: cover;
}

.listA .text{
    margin: 0;
    padding: 10px 10px 0 10px;
    min-height: 40px;
    text-align: center;
}

.listA h2{
    font-size: 18px;
    margin-bottom: 10px 0;
    text-align: center;
}

/* 반응형 */
@media (max-width: 900px){
  .listA article{
    flex: 1 1 50%;
    max-width: none;         
  }
}

.listA a{
  margin: 5px;
}

@media (max-width: 600px){
  .listA article{
    flex: 1 1 100%;
    max-width: none;
  }
}

.listA a{
  margin: 10px;
}

/* --- 문의 페이지 공통 --- */
body.contact {
  padding: 120px 20px 20px 20px; /* 헤더 겹치지 않게 여유 확보 */
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #fdfdfd;
  color: var(--text-color, #111);
}

article.post .container {
    margin-left: auto;
    margin-right: auto;
    padding: 120px 10px 0 10px; 
}


/* 모바일/기본 스타일 */
.contact-wrap {
  display: block;
  margin: 20px auto;
  padding: 0 15px;
}

/* 제목 */
.contact-title {
  max-width: 1200px;
  margin: 0 auto 40px auto; /* 아래쪽 여백 추가 */
  padding: 0 20px;          /* 좌우 여백 */
  text-align: left;          /* 왼쪽 정렬 */
  font-size: 2rem;           /* 크기 조정 */
  font-weight: 600;
}

/* --- 문의 페이지 상단 텍스트 --- */

.post h1 {
  font-size: 1.8rem;       
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;   
  text-align: left;       
  padding-left: 20px;     
}

.post p {
  font-size: 1rem;        
  line-height: 1.6;       
  margin: 0 20px 30px 20px; 
  color: #333;
  text-align: left;       
}

.contact {
  margin-bottom: 20px;
  padding: 25px 20px;
  border: 1px solid var(--gray-color, #ddd);
  border-radius: 12px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.contact:hover {
  transform: translateY(-3px);
}

.contact span {
  display: inline-block;
  margin-bottom: 12px;
  width: 2.5em;
  height: 2.5em;
  line-height: 2.5em;
  font-size: 1.6rem;
  border-radius: 50%;
  background-color: var(--accent-color, #66CBE5);
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 1.2rem;
  margin: 10px 0 10px;
  font-weight: 500;
}

.contact a {
  font-size: 1rem;
  color: var(--accent-color, #66CBE5);
  text-decoration: none;
  display: block;
  margin-top: 10px;
}

/* 지도 섹션 */
.location {
  margin: 40px 0 0 0;
  text-align: center;
}

.location iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
}

.location h2 {
  margin: 0 0 0;
  padding: 12px 0;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--accent-color, #66CBE5);
  border-radius: 8px;
}

/* --- PC 스타일 --- */
@media (min-width: 768px) {
  article.post .container {
    padding-left: 100px;   /* 왼쪽 여백 */
    padding-right: 100px;  /* 오른쪽 여백 */
  }

  .post h1 {
    font-size: 1.8rem;    /* 글씨 크기 */
    margin-bottom: 8px;  /* 아래 여백 */
    text-align: center;
  }

  .post p {
    font-size: 1rem;      /* 글씨 크기 */
    margin-bottom: 40px;  /* 아래 여백 */
    text-align: center;
  }

  .contact-wrap {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 40px;
  }

  .contact {
    flex: 0 1 250px;
    max-width: 300px;
    padding: 25px;
  }

  .contact span {
    width: 3em;
    height: 3em;
    line-height: 3em;
    font-size: 1.8rem;
  }

  .contact h2 {
    font-size: 1.0rem;
  }

  .contact a {
    font-size: 0.9rem;
  }

  .location iframe {
    height: 500px;
  }

  .location h2 {
    margin: 0;
    font-size: 1.4rem;
    padding: 20px 0;
  }
}

/* pptx: 비디오 */
.pptx {
  background-color: #66CBE5;
  background-color: var(--main-color);
  color: #fff;
  color: var(--text-bright-color);
}

.pptx video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

body.pptx-page {
  padding-top: 70px !important; 
}

@media (min-width: 1024px) {
  .pptx .container {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 12px; 
  }
}

footer .sns a,
footer .sns a i {
  text-decoration: none !important;
}

.sns {
  line-height: 0;
}
.sns a {
  line-height: 0;
}
