/* ========================================
   일본 아가스티아 협회 - 한국 사이트
   공통 CSS 스타일
   색상: 골드(#C8973A), 딥네이비(#0f1624), 화이트
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ── CSS 변수 ── */
:root {
  --gold: #C8973A;
  --gold-light: #e0b86a;
  --gold-dark: #a07828;
  --navy: #0f1624;
  --navy-mid: #1a2035;
  --navy-light: #243050;
  --slate: #4a5568;
  --text-dark: #1a1a2e;
  --text-mid: #4a5275;
  --text-light: #8892a4;
  --bg-white: #ffffff;
  --bg-light: #f8f7f4;
  --bg-cream: #faf9f6;
  --border: #e8e4dc;
  --border-gold: rgba(200, 151, 58, 0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 2px;
  --transition: all 0.3s ease;
}

/* ── 리셋 & 기본 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 레이아웃 ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.container--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: 100px 0;
}
.section--sm {
  padding: 60px 0;
}

/* ── 섹션 레이블 스타일 (ABOUT US 같은) ── */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 24px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ── 구분선 ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}
.divider--left {
  margin: 20px 0 0;
}

/* ── 네비게이션 ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.navbar__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar__logo-main {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.navbar__logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.navbar__link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.navbar__link:hover::after,
.navbar__link.active::after { width: 100%; }
.navbar__link:hover { color: var(--gold); }
.navbar__link.active { color: var(--gold); }

.navbar__auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav-login {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: var(--transition);
}
.btn-nav-login:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-nav-signup {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bg-white);
  padding: 6px 16px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.btn-nav-signup:hover { background: var(--gold); }

/* 모바일 햄버거 */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.btn--gold {
  background: var(--gold);
  color: white;
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: white;
}
.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: white;
}
.btn--white {
  background: white;
  color: var(--navy);
  border: 1px solid white;
}
.btn--white:hover {
  background: transparent;
  color: white;
}
.btn--sm { padding: 8px 20px; font-size: 0.72rem; }
.btn--lg { padding: 16px 48px; font-size: 0.82rem; }
.btn--full { width: 100%; }

/* ── 카드 ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card__body { padding: 28px; }
.card__label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.card__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}
.card__text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── 폼 ── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-label span.required {
  color: var(--gold);
  margin-left: 2px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,58,0.1);
}
.form-input::placeholder { color: var(--text-light); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: 5px;
  display: none;
}
.form-error.show { display: block; }
.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ── 배지/태그 ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  font-weight: 500;
}
.badge--gold { background: rgba(200,151,58,0.12); color: var(--gold); }
.badge--green { background: rgba(56,161,105,0.12); color: #276749; }
.badge--red { background: rgba(229,62,62,0.12); color: #c53030; }
.badge--navy { background: rgba(15,22,36,0.08); color: var(--navy); }
.badge--gray { background: #f0f0f0; color: #666; }

/* ── 구분선 ── */
.hr-gold {
  border: none;
  border-top: 1px solid var(--border-gold);
  margin: 40px 0;
}

/* ── 토스트 알림 ── */
.toast-container {
  position: fixed;
  top: 88px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 280px;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
  border-left: 3px solid;
}
.toast--success { background: #f0fff4; border-color: #38a169; color: #276749; }
.toast--error { background: #fff5f5; border-color: #e53e3e; color: #c53030; }
.toast--info { background: #ebf8ff; border-color: #3182ce; color: #2c5282; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── 모달 ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,22,36,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal__header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 500;
}
.modal__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2rem;
  border-radius: 50%;
  transition: var(--transition);
}
.modal__close:hover { background: var(--bg-light); color: var(--text-dark); }
.modal__body { padding: 28px 32px; }
.modal__footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── 로딩 스피너 ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 페이지 헤더 ── */
.page-header {
  background: var(--navy);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,151,58,0.08) 0%, transparent 60%);
}
.page-header__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.page-header__title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.4;
  color: white;
}
.page-header__sub {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* ── 사이드 보더 블록 ── */
.block-bordered {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 32px;
}
.block-bordered__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}
.block-bordered__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.block-bordered__text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── 푸터 ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  margin-bottom: 40px;
}
.footer__logo-main {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  color: white;
  margin-bottom: 4px;
}
.footer__logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer__social-btn:hover { background: var(--gold); color: white; }
.footer__social-btn--daum { background: #3d9be9; color: white; font-size: 0.7rem; font-weight: 700; width: auto; min-width: 44px; padding: 0 10px; border-radius: 18px; letter-spacing: 0.02em; }
.footer__social-btn--yt { background: #ff0000; color: white; }
.footer__menu-title {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}
.footer__menu-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__menu-link:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__bottom-link {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer__bottom-link:hover { color: var(--gold); }

/* ── 그리드 ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── 유틸리티 ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-mid { color: var(--text-mid); }
.text-light { color: var(--text-light); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.serif { font-family: 'Noto Serif KR', serif; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .container, .container--wide { padding: 0 24px; }
  .navbar__inner { padding: 0 24px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .navbar__menu { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .navbar__auth { display: none; }
  .navbar__auth.open {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .modal { width: 95%; }
  .modal__body, .modal__header, .modal__footer { padding: 20px; }
}

@media (max-width: 480px) {
  .container, .container--wide { padding: 0 16px; }
  .btn--lg { padding: 13px 28px; }
}
