@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-DemiLight.woff2") format("woff2");
  font-weight: 350;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("../font/NotoSans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}

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

body {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
}

/* 기본 header 레이아웃 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* 로고 이미지 크기 조정 */
.header .logo img {
  vertical-align: middle;
  cursor: pointer;
  width: 160px;
}

/* 메뉴, 로그인 텍스트 스타일 기본값 (변경됨) */
.header a {
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* ✨ index.html 전용: 배경 투명 + 흰 글자 */
body.is-index .header {
  background: transparent;
  color: white;
}
body.is-index .header a {
  color: white;
}
body.is-index .menu-icon {
  color: white;
}

/* ✨ 서브페이지용: 배경 흰색 + 검정 글자 */
body.is-subpage .header {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
body.is-subpage .header a {
  color: #222;
}
body.is-subpage .menu-icon {
  color: #222;
}

/* 메뉴 아이콘 스타일 */
.menu-icon {
  font-size: 24px;
  cursor: pointer;
}

/* 로그인 텍스트 정렬 */
.login {
  display: flex;
  align-items: center;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}

.login a {
  text-decoration: none;
  color: #ffffff;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3e2b21;
  color: white;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ← 위에서 아래로 배치 */
  z-index: 999;
  padding: 40px 20px;
  overflow-y: auto; /* ← 세로 스크롤 허용 */
  -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
}

.menu-group {
  text-align: left;
}

.menu-group h3 {
  font-size: 20px;
  margin-bottom: 10px;
  background-color: #666;
  padding: 4px 8px;
}

.menu-group a {
  display: block;
  color: white;
  font-size: 16px;
  margin-bottom: 6px;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s;
}

.menu-group a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .menu-grid {
    flex-direction: column;
    align-items: center;
  }

  .menu-group {
    text-align: center;
  }
}

.menu-overlay ul {
  list-style: none;
}

.menu-overlay ul li {
  margin: 15px 0;
  font-size: 24px;
}

.menu-overlay ul li a {
  text-decoration: none;
  color: #000;
}

.section {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* 슬라이더 */
.slider-container {
  width: 100%;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 도트 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  height: 2px;
  width: 43px;
  margin: 0 1px;
  background-color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  padding: 30px 40px; /* 좌우 여백 증가 */
  background-color: #fff;
  color: #000;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  flex-direction: column;
  max-width: 48%;
}

.footer-right {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  padding-left: 60px;
}

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

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 20px; /* 모바일에서는 살짝 줄임 */
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .menu-overlay ul li {
    font-size: 20px;
  }

  .logo {
    font-size: 18px;
  }

  .section {
    padding: 20px;
  }
}

.journal-page {
  margin-top: 130px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.journal-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.journal-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  transition: transform 0.3s ease;
}

.journal-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.journal-card .card-caption {
  padding: 16px;
}

.journal-card .sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.journal-card .title {
  font-size: 16px;
  font-weight: 500;
}

.journal-card:hover {
  transform: translateY(-5px);
}

.about-page {
  padding: 150px 20px 60px;
  max-width: 900px;
  margin: auto;
  font-family: "Noto Sans KR", sans-serif;
}

.about-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-logo {
  width: 160px;
  margin-bottom: 30px;
}

.about-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}

.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.about-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.about-space-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .about-gallery {
    flex-direction: row;
  }
}

.about-ephemera {
  padding: 150px 20px 80px;
  max-width: 780px;
  margin: auto;
  font-family: "Noto Sans KR", sans-serif;
}

.ephemera-logo {
  width: 120px;
  display: block;
  margin: 0 auto 50px;
}

.ephemera-text p {
  font-size: 18px;
  line-height: 2.2;
  text-align: center;
  color: #222;
  margin-bottom: 40px;
}

.ephemera-images {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ephemera-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.journal-detail {
  padding: 150px 20px 80px;
  max-width: 780px;
  margin: auto;
  font-family: "Noto Sans KR", sans-serif;
}

.journal-header {
  text-align: center;
  margin-bottom: 60px;
}

.journal-header h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #111;
}

.journal-header .sub {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

.journal-header img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.journal-body p {
  font-size: 17px;
  line-height: 2;
  margin-bottom: 32px;
  color: #333;
}

.journal-page {
  padding: 100px 20px 60px;
  max-width: 1080px;
  margin: auto;
  font-family: "Noto Sans KR", sans-serif;
}

.journal-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 500;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.journal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-6px);
}

.journal-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
}

.card-caption .sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.card-caption .title {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.media-detail {
  padding: 150px 20px 80px;
  max-width: 780px;
  margin: auto;
  font-family: "Noto Sans KR", sans-serif;
}

.media-detail h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  color: #111;
}

.media-detail .sub {
  font-size: 14px;
  color: #999;
  text-align: center;
  margin-bottom: 40px;
}

.media-detail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 40px;
}

.media-detail p {
  font-size: 17px;
  line-height: 2;
  color: #333;
  margin-bottom: 30px;
}

.info-section {
  background-color: #f1f1f1;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.info-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.info-subtitle {
  font-size: 16px;
  color: #999;
  margin-bottom: 40px;
}

.info-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  border-top: 2px solid #3e3e3e;
  border-bottom: 2px solid #3e3e3e;
  padding: 40px 0;
  padding-right: 100px;
}

.info-column {
  text-align: left;
}

.info-column ul {
  list-style: none;
}

.info-box {
  width: 280px;
  text-align: left;
}

.info-box h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.info-box p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.notice-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 150px;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
}

.notice-table th,
.notice-table td {
  border-bottom: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.notice-table th {
  background-color: #f8f8f8;
}

.write-button {
  text-align: right;
  margin-top: 20px;
}

.write-button a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a {
  margin: 0 5px;
  text-decoration: none;
  color: #555;
}

.pagination a.active {
  font-weight: bold;
  color: black;
}

.notice-write-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 150px;
}

.notice-form input[type="text"],
.notice-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  font-family: "Noto Sans KR";
}

.notice-form textarea {
  height: 200px;
  resize: vertical;
}

.notice-form button {
  background-color: black;
  color: white;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
}

.error-msg {
  color: red;
  margin-bottom: 20px;
}

.notice-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.notice-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.notice-content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  white-space: pre-wrap;
}

.notice-actions a {
  color: #333;
  text-decoration: underline;
}

/* 댓글 */
.comment-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #ccc;
  font-size: 14px;
}

.comment-form button {
  margin-top: 10px;
  padding: 8px 16px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
}

.comment-list {
  margin-top: 30px;
}

.comment-item {
  border-top: 1px solid #ddd;
  padding: 15px 0;
}

.comment-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 5px;
}

.comment-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.comment-actions {
  margin-top: 5px;
  font-size: 13px;
}
.comment-actions a {
  color: #007bff;
  text-decoration: none;
  margin-right: 4px;
}
.comment-actions a:hover {
  text-decoration: underline;
}

.insta-icon {
  width: 32px;
}

.info-logo img {
  width: 100px;
}

.login-container {
  background: #fff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 360px;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.login-container form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-container form button {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.login-container .links {
  text-align: center;
  margin-top: 15px;
}

.error-message {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.register-container {
  background: #fff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin: 150px 0 100px 0;
}

.register-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.register-container form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.register-container form button {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.register-container .links {
  text-align: center;
  margin-top: 15px;
}

.error {
  color: red;
  font-size: 0.9em;
}

.success {
  color: green;
  font-size: 0.9em;
}

.notice-view-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 150px;
}

.notice-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.notice-content {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 40px;
}

.comment-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

#comment-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  resize: vertical;
}

#comment-form button {
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.menu-intro-section {
  text-align: center;
  padding: 60px 20px 30px;
}

.menu-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.menu-description {
  font-size: 18px;
  color: #666;
}

.menu-grid-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.menu-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 50px 0;
}

.menu-item {
  width: 260px;
  text-align: center;
}

.menu-item .image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f3f3f3;
}

.menu-item .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-item h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: bold;
}

.menu-item p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.menu-philosophy {
  padding: 40px 20px;
  background-color: #f5f5f5;
  text-align: center;
  font-size: 16px;
}
