/* =========================================================
   동안협동조합 홈페이지 스타일시트
   - 색상, 글자 크기, 여백 등 디자인은 대부분 이 파일에서 관리합니다.
   - 위쪽 :root 안의 색상 값만 바꿔도 전체 분위기를 쉽게 바꿀 수 있습니다.
========================================================= */

:root {
  /* 색상 */
  --color-bg: #faf8f3;          /* 기본 배경 (따뜻한 아이보리) */
  --color-bg-alt: #f1ede4;      /* 구간을 구분하는 배경 (연한 베이지) */
  --color-text: #2b2a26;        /* 기본 글자색 (짙은 먹색) */
  --color-text-soft: #6b6759;   /* 보조 설명 글자색 */
  --color-primary: #3f5c46;     /* 포인트 색 (짙은 녹색) */
  --color-primary-dark: #2e4634;
  --color-accent: #b97b4b;      /* 보조 포인트 색 (테라코타/흙빛) */
  --color-line: #e4ded0;        /* 구분선 색 */
  --color-placeholder-bg: #e6e1d6; /* 사진 자리 배경색 */
  --color-placeholder-text: #8a8371;
  --color-contact-side-bg: #edf1e6; /* 문의하기 페이지 좌우 여백 (연한 세이지) */

  /* 레이아웃 */
  --max-width: 1160px;
  --radius: 14px;

  /* 헤더 로고(좌측 상단 "동안협동조합") 글자 크기
     - 데스크톱/모바일 화면 너비에 맞춰 자동으로 부드럽게 커지고 작아집니다.
     - 더 키우고 싶으면 아래 세 숫자(최소값, 기준값, 최대값)를 조정하세요. */
  --logo-font-size: clamp(22px, 2.6vw, 28px);

  /* "동안협동조합이 하는 일" 카드 아이콘/제목 크기
     - 이 두 값만 바꾸면 6개 카드 전체에 한번에 적용됩니다. */
  --business-icon-size: clamp(52px, 6vw, 64px);
  --business-title-size: clamp(19px, 2.3vw, 22px);

  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p { margin: 0; }

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

img { max-width: 100%; display: block; }

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

.only-pc { display: inline; }

/* 화면 안쪽 여백을 맞추는 공통 컨테이너 */
.header-inner,
.section-head,
.business-grid,
.cycle,
.program-grid,
.product-grid,
.partner-grid,
.about-text,
.mvv-grid,
.contact-form,
.footer-inner,
.hero-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================================
   버튼 / 사진 자리 / 공통 부품
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
}

.img-placeholder {
  background: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: 0.02em;
  min-height: 180px;
}

/* 홈페이지 전체의 이미지 카드(체험 프로그램/천천제주 상품 사진)에
   공통으로 적용하는 테두리·그림자입니다. 새 이미지 영역을 추가할 때는
   이 선택자 목록에 클래스만 더해주면 같은 스타일이 적용됩니다.
   - 아주 옅은 테두리로 밝은 배경과 사진의 경계가 흐려지는 것을 보완
   - 오른쪽/아래쪽으로 살짝 치우친 은은한 그림자로 미세한 입체감만 부여 */
.program-img,
.product-img {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.08);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* =========================================================
   1. 헤더
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: var(--logo-font-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a { color: var(--color-text); }
.nav a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

/* =========================================================
   2. Hero - 다중 슬라이드
   - .hero          : 슬라이더 전체 틀 (위치 기준, 가로 넘침 숨김)
   - .hero-track     : 슬라이드들을 가로로 나열하고 옆으로 밀어서 전환하는 트랙
   - .hero-slide      : 슬라이드 1장 (배경사진 + 어두운 막 + 문구/버튼)
   - .hero-bg        : 배경사진이 깔리는 자리 (슬라이드별 인라인 style로 사진 지정)
   - .hero-overlay    : 글자가 잘 보이도록 사진 위에 씌우는 어두운 막
   - .hero-text      : 사진 위에 올라오는 문구/버튼
   - .hero-arrow      : PC 좌우 화살표 버튼
   - .hero-dots       : 현재 슬라이드 위치를 보여주는 점(pagination)

   슬라이드 내용(사진/라벨/제목/설명/버튼)은 js/script.js 상단의
   heroSlides 배열에서만 관리합니다. 이 CSS에서는 사진 자리를 개별로
   지정하지 않습니다.
========================================================= */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  transition: transform 0.6s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background-color: var(--color-placeholder-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 18, 0.55) 0%, rgba(20, 24, 18, 0.35) 45%, rgba(20, 24, 18, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-text {
  max-width: 640px;
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 14px 0 24px;
  color: #fff;
}

.hero-text .eyebrow {
  color: #e7dcc4;
}

.hero-desc {
  font-size: 17px;
  color: #eae7dd;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-text);
}

/* PC 좌우 화살표: 미니멀하게, 너무 크거나 튀지 않도록 작은 원형 버튼으로 */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 24, 18, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-arrow:hover {
  background: rgba(20, 24, 18, 0.5);
}
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* 현재 슬라이드 위치 표시(점) */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.active {
  width: 20px;
  background: #fff;
}

/* 화면 전환(애니메이션)을 줄이고 싶어하는 사용자는 슬라이드 이동을 즉시 처리합니다 */
@media (prefers-reduced-motion: reduce) {
  .hero-track {
    transition: none;
  }
}

/* =========================================================
   공통 섹션
========================================================= */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head h2,
.section-head h1 {
  font-size: clamp(26px, 3.6vw, 34px);
}
.section-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--color-text-soft);
}

.section-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   3. 하는 일
========================================================= */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.business-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.business-icon {
  width: var(--business-icon-size);
  height: var(--business-icon-size);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.business-icon svg { width: 100%; height: 100%; }

.business-card h3 {
  font-size: var(--business-title-size);
  margin-bottom: 10px;
}
.business-card p {
  font-size: 14.5px;
  color: var(--color-text-soft);
}

/* =========================================================
   4. 선순환 구조
   - 카드마다 .cycle-bg 에 실제 사진이 배경으로 깔리고,
     그 위에 .cycle-overlay(어두운 반투명 막)와 .cycle-content(글자)가 올라갑니다.

   단계별 사진은 아래 .cycle-bg.step-01 ~ step-05 에서 관리합니다.
   - background-image : 각 단계 사진 파일
   - background-position : 피사체가 이상하게 잘리면 이 값만 단계별로
     조정하세요. (기본은 center, 예: center top / 30% 50% 등)
========================================================= */
.cycle {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.cycle-node {
  position: relative;
  flex: 1 1 180px;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-align: left;
}

.cycle-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background-color: var(--color-placeholder-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cycle-bg.step-01 { background-image: url("../images/structure-01-agriculture.jpg"); }
.cycle-bg.step-02 { background-image: url("../images/structure-02-education.jpg"); }
.cycle-bg.step-03 { background-image: url("../images/structure-03-work-experience.jpg"); }
.cycle-bg.step-04 { background-image: url("../images/structure-04-job.jpg"); }
.cycle-bg.step-05 { background-image: url("../images/structure-05-community.jpg"); }

.cycle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 18, 0.5) 0%, rgba(20, 24, 18, 0.65) 100%);
}

.cycle-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  color: #fff;
}

.cycle-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #e7dcc4;
  margin-bottom: 10px;
}

.cycle-node h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.cycle-node p {
  font-size: 13.5px;
  color: #e8e5db;
}

.cycle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-accent);
  flex: 0 0 auto;
}

/* =========================================================
   5. 체험 프로그램
========================================================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  display: block;
  transition: transform 0.15s ease;
}
.program-card:hover {
  transform: translateY(-4px);
}

.program-img {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-placeholder-bg);
}

.program-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 사진별로 중요한 부분이 잘리면 아래처럼 해당 번호의 object-position만
   재정의하세요. (기본은 center, 예: center top / 30% 50% 등)
   .program-photo-01 { object-position: center top; } */

.program-card h3 {
  font-size: 16.5px;
  color: var(--color-text);
}

/* =========================================================
   6. 천천제주
========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-placeholder-bg);
}

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

/* =========================================================
   7. 협업 안내
========================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.partner-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.partner-card h3 {
  font-size: 20px;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.partner-card p {
  font-size: 14.5px;
  color: var(--color-text-soft);
}

/* =========================================================
   7-1. 활동사진 슬라이드 (index.html 하단, Footer 바로 위)
   - .activities-viewport : 화면에 보이는 자리 (다른 섹션과 같은 폭, 넘치는 사진은 숨김)
   - .activities-track    : 사진들을 가로로 나열하는 트랙(js가 사진을 채우고, 살짝씩 옆으로 흘러감)
   - .activity-item        : 사진 한 장 (높이는 고정, 가로/세로 비율만 번갈아 리듬감을 줌)

   실제 사진 목록은 이 CSS가 아니라 js/script.js 상단의 activityPhotos
   배열에서 관리합니다. 사진을 바꾸려면 그 배열만 수정하세요.
========================================================= */
.activities-viewport {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.activities-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  height: clamp(200px, 24vw, 300px);
  cursor: grab;
  touch-action: pan-y; /* 세로 스크롤은 그대로 두고, 가로 움직임만 이 슬라이드가 처리 */
  /* transform은 js가 매 프레임 직접 갱신하므로 별도 transition을 두지 않음
     (자동 흐름/드래그 모두 여기서 바로 부드럽게 계산됨) */
}
.activities-track.is-dragging {
  cursor: grabbing;
}

.activity-item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-placeholder-bg);
}
/* 사진이 전부 같은 비율이면 밋밋해 보여서, 짝수 번째 사진만 살짝 세로형으로 */
.activity-item:nth-child(even) {
  aspect-ratio: 4 / 5;
}

.activity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* PC(마우스가 있는 환경)에서만 아주 미세한 확대 효과, 모바일 탭에서는 적용하지 않음 */
@media (hover: hover) and (pointer: fine) {
  .activity-item:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .activities-track {
    transition: none;
  }
  .activity-item img {
    transition: none;
  }
}

/* =========================================================
   8. 회사소개 / Mission / Vision
========================================================= */
.about-text {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  color: var(--color-text-soft);
  margin-bottom: 64px;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mvv-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.mvv-card h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.mvv-card p {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.mvv-values ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mvv-values li {
  font-size: 15.5px;
  font-weight: 600;
  padding-left: 16px;
  position: relative;
}
.mvv-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* =========================================================
   9. 문의 영역
   - .contact-page   : 페이지 전체 배경 (연한 세이지, 좌우 여백처럼 보이는 영역)
   - .contact-page-inner : 중앙 컬럼 폭을 잡아주는 래퍼 (여기 max-width만
     바꾸면 중앙 컬럼 너비 전체가 조정됩니다)
   - .contact-card   : 문의하기 본문을 담는 흰색 카드 (제목 영역 + 폼 포함)
========================================================= */
.contact-page {
  background: var(--color-contact-side-bg);
}

.contact-page-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(63, 92, 70, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(43, 42, 38, 0.06);
  padding: 56px 48px;
}

/* 카드 안에서는 섹션 공통 max-width/여백 대신 카드 자체의 padding으로
   중앙 정렬을 맞추므로, 안쪽 요소의 바깥 여백만 걷어냅니다. */
.contact-card .section-head,
.contact-card .contact-form {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.contact-form {
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* 라벨 텍스트 바로 뒤에 붙는 필수 표시(*) - 줄바꿈 없이 한 줄에 붙도록
   라벨 텍스트와 함께 .field-label 안에서 같은 인라인 흐름으로 둡니다. */
.field-label {
  display: inline-flex;
  align-items: baseline;
}

.required {
  margin-left: 2px;
  font-size: 13px;
  color: #b3261e;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  resize: vertical;
}

/* 한 줄 입력칸(이름/소속/연락처 input, 문의 유형 select) 높이를 통일합니다.
   문의 내용 textarea는 여러 줄 입력 영역이라 이 규칙에서 제외하고
   기존처럼 큰 높이(rows=5)를 그대로 유지합니다. */
.contact-form input[type="text"],
.contact-form select {
  height: 48px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* 개인정보 수집·이용 동의 체크박스
   .contact-form label(위쪽 공통 규칙)이 flex-direction: column을 지정하고
   있어서, 이를 확실히 덮어쓰도록 .contact-form를 붙여 우선순위를 높였습니다.
   (체크박스가 문구 위/아래로 떨어지지 않고 한 줄 정렬을 유지하기 위함) */
.contact-form .form-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-text-soft);
}
.contact-form .form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--color-primary);
}
.form-consent a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.form-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--color-primary-dark);
  font-weight: 600;
}
.form-note.is-error {
  color: #b3261e;
}

/* =========================================================
   11. 체험 프로그램 상세 (program-detail.html) - 재사용 템플릿
   - .exp- 로 시작하는 클래스는 이 템플릿 전용이라 다른 페이지에는
     영향을 주지 않습니다. .exp-page 는 body 태그에 붙어 있어,
     이 안에서만 .section-head 폭을 재정의합니다.
   - 콘텐츠 폭: 모든 섹션이 아래 첫 번째 규칙(980px)을 함께 써서
     좌우 정렬선이 섹션마다 정확히 맞도록 했습니다. 폭을 바꾸려면
     이 규칙 하나만 수정하면 됩니다.
   - placeholder 문구는 .exp-placeholder-text 로 표시하며,
     사이트 전체에서 쓰는 "사진 자리" 색상(--color-placeholder-text)을
     그대로 재사용해 실제 콘텐츠와 자연스럽게 구분되도록 했습니다.
   - 카드형 테두리/그림자는 꼭 필요한 곳(사진 자리)에만 남기고,
     텍스트 영역은 여백과 타이포그래피만으로 구분했습니다.
========================================================= */
.exp-page .section-head,
.exp-hero-grid,
.exp-about,
.exp-steps,
.exp-gallery,
.exp-recommend,
.exp-cta-inner {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.exp-placeholder-text {
  color: var(--color-placeholder-text);
  font-style: italic;
}

/* --- 1. Hero (세로형 영상 + 기본 소개, 카드 없이 두 덩어리만) --- */
.exp-hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

/* 지금은 img-placeholder(자리표시) div라서 텍스트가 flex로 가운데
   정렬됩니다. 나중에 이 클래스를 그대로 가진
   <video class="exp-video" ...></video> 로 교체하면(= img-placeholder
   클래스는 자연히 빠짐) 아래 크기·비율·object-fit·radius가
   그대로 적용됩니다. 그때 display: block; 한 줄만 추가해 주세요. */
.exp-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.6;
}

.exp-hero-info h1 {
  font-size: clamp(28px, 3.6vw, 36px);
  margin: 10px 0 18px;
}

.exp-intro-text {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.exp-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 32px;
}

.exp-info-row {
  display: flex;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-line);
}
.exp-info-row:first-child { padding-top: 0; }

.exp-info-row dt {
  flex: 0 0 68px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
}

.exp-info-row dd {
  margin: 0;
  font-size: 14.5px;
}

.exp-hero-btn {
  margin-top: 4px;
}

/* --- 2. 어떤 체험인가요? (카드 없이 여백 + 읽기 좋은 본문 너비) --- */
.exp-about p {
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.9;
}

/* --- 4. 이렇게 만들어요 (4단계 - 사진이 중심, 카드 테두리 없음) --- */
.exp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.exp-step-media {
  position: relative;
  margin-bottom: 16px;
}

.exp-step-num {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.exp-step-photo {
  aspect-ratio: 4 / 3;
}
.exp-step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.exp-step p {
  font-size: 14px;
  line-height: 1.7;
}

/* --- 5. 체험 모습 (사진이 주인공인 편집형 갤러리: 큰 사진 1 + 작은 사진 4) --- */
.exp-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}

.exp-gallery-item {
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.exp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-gallery-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.exp-gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.exp-gallery-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.exp-gallery-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.exp-gallery-item:nth-child(5) { grid-column: 3; grid-row: 2; }

/* --- 3. 이런 분께 추천해요 (카드 대신 간결한 체크리스트) --- */
.exp-recommend {
  display: flex;
  flex-direction: column;
}

.exp-recommend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 15.5px;
  font-weight: 600;
}
.exp-recommend-item:first-child { padding-top: 0; }
.exp-recommend-item:last-child { border-bottom: none; }

.exp-recommend-mark {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
}

/* --- 6. 마지막 CTA (section-alt 배경만으로 다른 섹션과 구분) --- */
.exp-cta-section {
  text-align: center;
}

.exp-cta-inner h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.exp-cta-inner p {
  margin-bottom: 28px;
}

.exp-cta-inner .btn {
  min-width: 220px;
}

/* =========================================================
   10. Footer
========================================================= */
.footer {
  background: var(--color-primary-dark);
  color: #eee7d8;
  padding-top: 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: #cfc7ae;
  max-width: 320px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfc7ae;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.footer-social a:hover {
  color: #fff;
  opacity: 0.85;
}
.footer-social svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #a9a189;
}

/* =========================================================
   반응형: 태블릿 (1024px 이하)
========================================================= */
@media (max-width: 1024px) {
  .business-grid,
  .program-grid,
  .partner-grid,
  .mvv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .exp-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .exp-hero-media {
    display: flex;
    justify-content: center;
  }
  .exp-video {
    max-width: 320px;
  }
  .exp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   반응형: 모바일 (768px 이하)
========================================================= */
@media (max-width: 768px) {
  .only-pc { display: none; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* 32px 버튼은 터치하기엔 다소 작아 모바일에서만 탭 영역을 44px로 넓힙니다
     (막대 아이콘 자체 크기는 거의 그대로 유지, 가운데 정렬만 추가) */
  .menu-btn {
    display: flex;
    align-items: center;
    width: 44px;
    height: 44px;
  }
  .menu-btn span {
    width: 24px;
  }

  .section { padding: 64px 0; }

  .program-grid,
  .partner-grid,
  .mvv-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }
  .hero-slide {
    min-height: 520px;
  }
  .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* 활동사진 슬라이드: 모바일에서는 사진 1장 + 다음 사진 일부만 보이도록 낮고 좁게 */
  .activities-viewport {
    padding: 0 20px;
  }
  .activities-track {
    height: clamp(160px, 46vw, 220px);
    gap: 12px;
  }

  /* 모바일은 화살표 대신 좌우 스와이프로만 슬라이드를 넘깁니다 */
  .hero-arrow {
    display: none;
  }
  .hero-dots {
    bottom: 14px;
  }

  /* =========================================================
     "동안협동조합이 하는 일" / "선순환 구조" 모바일 전용 카드 슬라이더
     - 섹션 제목/설명(.section-head)은 일반 문서 흐름 그대로 두어 페이지가
       평소처럼 세로 스크롤됩니다(sticky/스페이서 없음).
     - 카드를 담는 트랙(.business-grid, .cycle)만 overflow-x: auto +
       scroll-snap-type으로 좌우 스와이프 슬라이더가 됩니다. JS 없이
       순수 CSS로만 동작하며, 세로 스와이프는 그대로 페이지 스크롤로,
       가로 스와이프만 카드 이동으로 브라우저가 자동으로 구분해 처리합니다
       (touch-action을 건드리지 않아 세로 스크롤을 막지 않습니다).
     - 카드 높이는 min-height 없이 내용에 맞춰 자연스럽게 정해집니다.
     - PC(769px 이상)에는 이 블록의 규칙이 전혀 적용되지 않아 기존
       3열 그리드 / 가로 5단계 배치가 그대로 유지됩니다.
  ========================================================= */
  .business-grid,
  .cycle {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .business-grid::-webkit-scrollbar,
  .cycle::-webkit-scrollbar {
    display: none;
  }

  .business-card {
    flex: 0 0 84vw;
    scroll-snap-align: start;
    --business-icon-size: 42px;
    --business-title-size: 18px;
  }

  .cycle-node {
    flex: 0 0 84vw;
    aspect-ratio: 3 / 4;
    min-height: 0;
    scroll-snap-align: start;
  }
  .cycle-arrow {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-page-inner {
    padding: 0 16px;
  }
  .contact-card {
    padding: 32px 22px;
  }

  .exp-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .exp-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    height: auto;
    gap: 10px;
  }
  .exp-gallery-item,
  .exp-gallery-item:nth-child(1),
  .exp-gallery-item:nth-child(2),
  .exp-gallery-item:nth-child(3),
  .exp-gallery-item:nth-child(4),
  .exp-gallery-item:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .exp-info-row dt {
    flex: 0 0 64px;
  }
  .exp-hero-btn {
    width: 100%;
  }
  .exp-cta-inner .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* =========================================================
   13. 찾아오시는 길 (location.html)
   - .location-page .section-head : 이 페이지의 제목 영역만 기존 680px
     대신 지도(.location-map)와 같은 max-width를 써서 왼쪽 시작선을 맞춤
   - .location-name   : "치유농원 동안" 장소명 (section-head 하단)
   - .location-map    : 지도 iframe을 담는 반응형 영역
   - 지도 아래 버튼 3개는 기존 .section-cta + .btn btn-outline 재사용
========================================================= */
.location-page .section-head {
  max-width: var(--max-width);
}

.location-name {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.location-map {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.location-map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-placeholder-bg);
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .location-map-frame {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   14. 천천제주 영역 CTA 버튼 - 모바일 배치/크기
   - "제품 납품 문의하기" / "스마트스토어 바로가기" 두 버튼을 모바일에서
     위아래 1열로 배치하고, 더 작고 단정한 크기로 조정합니다.
   - align-items: stretch + width: max-content 조합으로 두 버튼이
     (텍스트가 더 긴 쪽 기준) 같은 너비를 갖도록 하며, 화면 전체를
     채우는 100% 너비는 사용하지 않습니다. (다른 .section-cta는 영향 없음)
========================================================= */
@media (max-width: 768px) {
  #cheoncheon .section-cta {
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  #cheoncheon .section-cta .btn {
    padding: 12px 22px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* =========================================================
   15. 갤러리 (gallery.html)
   - .gallery-feed  : 사진/영상을 담는 editorial 피드형 그리드
     (PC 4열 / 모바일 2열). 일반 콘텐츠보다 넓은 전용 max-width(1560px)와
     좁은 좌우 padding을 사용해 화면을 더 넓게 씁니다.
   - .gallery-item  : 낱장 아이템 공통 스타일 (사진/영상 동일하게 적용)
   - 크기 변형 클래스: 기본(정사각형~4:5에 가까움),
     .gallery-tall(세로형, 2행 차지), .gallery-wide(가로형, 2열 차지)
     -> 어떤 아이템에 어떤 클래스를 줄지는 gallery.html 안의 주석 참고
   - .gallery-play  : 영상 아이템용 재생 아이콘 (사진에는 사용하지 않음)
========================================================= */
.gallery-feed {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 19vw, 320px);
  grid-auto-flow: row dense;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-placeholder-bg);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 42, 38, 0.32), rgba(43, 42, 38, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .gallery-item:hover img,
  .gallery-item:hover video {
    transform: scale(1.045);
  }
  .gallery-item:hover::after {
    opacity: 1;
  }
}

.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(43, 42, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-play svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 2px;
}

@media (max-width: 768px) {
  .gallery-feed {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(120px, 40vw, 190px);
    gap: 12px;
    padding: 0 20px;
  }
}
