/* =========================================================
   RESET & BASE
========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "맑은 고딕", "Malgun Gothic", sans-serif;
  background-color: #E5DFD5;
  color: #22252a;
  overflow-x: hidden;
}

/* =========================================================
   HEADER (FULL WIDTH)
========================================================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  gap: 18px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.header-cs {
  background: #ffe4e6;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* =========================================================
   MAIN APP CONTAINER (PC 기준)
========================================================= */
.app {
  max-width: 1000px;            
  margin: 0 auto;
  padding: 48px 20px 64px;
  min-height: calc(100vh - 60px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  color: #252933;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #74777f;
}

/* =========================================================
   MAIN TOP BUTTONS
========================================================= */
.main-button-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.main-btn {
  width: 240px;
  height: 70px;
  border-radius: 40px;
  border: 2px solid #2d3a4e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.main-btn.active {
  background: #2d3a4e;
  color: #ffffff;
  font-size: 18px;
}

.main-btn:not(.active) {
  background: transparent;
  color: #2d3a4e;
}

.cremation-btn .btn-title {
  font-size: 17px;
}

.cremation-btn .btn-sub {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

.main-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   SERVICE SECTION
========================================================= */
.service-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #30343c;
  text-align: center;
}

.service-grid {
  max-width: 720px;          /* 🔥 핵심: 카드 전체 폭 제한 */
  margin: 0 auto;            /* 가운데 고정 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;                 /* 간격 축소 */
}


/* =========================================================
   SERVICE CARD
========================================================= */
.service-card {
  background-color: #FFF4DE; /* notice 페이지와 색상 통일 */
  border-radius: 20px;       /* 둔함 완화 */
  padding: 22px 14px 20px;   /* 🔥 박스 작아짐 */
  border: 1px solid #CFC4B4;
  box-shadow: 0 6px 14px rgba(100, 90, 70, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}


.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(100, 90, 70, 0.18);
}

.service-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
}

.emoji-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}


.service-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 12px;
  color: #7a7e86;
}


/* =========================================================
   ADMIN
========================================================= */
#logoutBtn {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  background: #b91c1c;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.admin-modal-box {
  background: #f9f2e3;
  padding: 20px 18px;
  border-radius: 18px;
  width: 300px;
}

.admin-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
}

.admin-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.admin-btn-primary {
  background: #2563eb;
  color: #fff;
}

/* =========================================================
   MOBILE (480px 이하)
========================================================= */
@media (max-width: 600px) {
  .app {
    max-width: 480px;
    padding: 24px 14px 40px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    padding: 20px 12px 18px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
  }

  .emoji-icon {
    width: 72px;
    height: 72px;
  }

  .hero-title {
    font-size: 23px;
  }

  .main-button-wrap {
    flex-direction: column;
    gap: 14px;
  }

  .main-btn {
    width: 100%;
    height: 64px;
  }
}
/* =========================
   하단 정보 섹션 (카드형)
========================= */
.footer-section {
  margin-top: 24px;
}

.footer-box {
  background: #fff6e2;
  border-radius: 22px;
  padding: 22px 18px 24px;
  border: 1px solid #d9d1c2;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  max-width: 100%;
}

/* 약관 링크 */
.footer-links {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links a {
  color: #2d3a4e;
  text-decoration: none;
}

.footer-links span {
  margin: 0 6px;
  color: #aaa;
}

/* 사업자 정보 */
.footer-info {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.footer-info p {
  margin: 2px 0;
}

/* 카피라이트 */
.footer-copy {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.notice-header {
  text-align: center;
  margin: 40px 0 30px;
}

.notice-logo {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.notice-sub {
  font-size: 14px;
  color: #555;
}

.home-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.notice-footnote {
  max-width: 900px;
  margin: 40px auto 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.hall-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hall-card {
  display: block;
  background: #fff7e6;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #111;
}

.hall-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hall-address {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===== notice 페이지 ===== */

.notice-home-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #2F6AE0;
  text-decoration: none;
}
body {
  margin: 0;
  background: #ECE6DB;
}

.notice-page {
  background: #ECE6DB;
  min-height: 100vh;
}

.notice-disclaimer {
  margin-top: 20px;
  padding: 0 6px;
}

.notice-disclaimer p {
  margin: 4px 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}
.notice-disclaimer {
  border-top: 1px solid #ddd4c6;
  padding-top: 12px;
}
.notice-disclaimer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #ddd4c6;

  text-align: center;   /* ✅ 가운데 정렬 핵심 */
}

.notice-disclaimer p {
  margin: 6px 0;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}

/* 카드 영역 */
.notice-select {
  padding: 20px 16px 10px;
}

.notice-grid {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.notice-card {
  background: #FFF4DE;
  border-radius: 20px;
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.notice-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.notice-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* 하단 안내 */
.notice-info {
  max-width: 420px;
  margin: 14px auto 30px;
  padding: 0 18px;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}
/* ===== 공통 포털 상단 ===== */
.portal-top {
  padding: 28px 16px 12px;
  background: #ECE6DB;
}

.portal-card {
  max-width: 420px;
  margin: 0 auto;
  background: #FFF4DE;
  border-radius: 24px;
  padding: 26px 20px 28px;
  text-align: center;
}

.portal-logo img {
  width: 48px;
  height: auto;
  margin-bottom: 10px;
}

.portal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}
/* =========================
   NOTICE2 (공지사항) - 카드 규격 완전 통일
========================= */

.notice2-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 타이틀 */
.notice2-section-title {
  margin: 44px 0 24px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #2d2f33;
}

/* 카드 그리드 */
.notice2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

/* 카드 본체 */
.notice2-card {
  width: 100%;
  max-width: 320px;        /* ← 필독 카드 폭 */
  height: 170px;           /* ⭐ 핵심: 높이 고정 */

  background: #FFF3DC;
  border-radius: 24px;
  padding: 22px 20px;

  border: 1px solid #CFC4B4;
  box-shadow: 0 8px 18px rgba(100, 90, 70, 0.12);

  display: flex;
  flex-direction: column;
  justify-content: center; /* 수직 중앙 */
  align-items: center;

  text-align: center;
}

/* 제목 */
.notice2-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* 설명 */
.notice2-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  max-width: 240px;
}

/* 모바일 */
@media (max-width: 600px) {
  .notice2-grid {
    grid-template-columns: 1fr;
  }

  .notice2-card {
    max-width: 100%;
  }
}


/* 모바일 */
@media (max-width: 600px) {
  .notice2-grid {
    grid-template-columns: 1fr;
  }
}
