/*
  [생성일] 2026-11-20
  [경위] 주식회사 모아푸드(아이 간식 포장 납품) 아임웹 제안용 시안 공용 스타일. 컨셉 「오늘의 간식 꾸러미」: 연노랑 띠와 흰 띠, 알약형 버튼, 동그란 번호, 요일 줄 간식표
  [변경이력]
    - 2026-11-20: 최초 생성
  규칙: 아임웹 기본 위젯으로 되는 모양만 쓴다. 그라데이션, 그림자, 변형, 음수 여백, 표, 사진 둥근 모서리 없음. 둥근 모서리는 버튼 위젯에만
*/

/* 토큰: 색, 글자, 여백 */
:root {
  --paper: #FFFFFF;      /* 흰 띠 */
  --butter: #FFF6D6;     /* 연노랑 띠 */
  --butter-2: #FFEDB3;   /* 연노랑 띠 위의 진한 칸, 올렸을 때 */
  --yolk: #FFD23F;       /* 행동색 하나: 버튼, 번호 */
  --yolk-2: #F5C21B;     /* 버튼 올렸을 때 */
  --ink: #33261A;        /* 글 1: 짙은 갈색 */
  --ink-2: #5A4636;      /* 글 2 */
  --ink-3: #735D4A;      /* 글 3: 날짜, 보조 */
  --line: #E6D9B4;       /* 선 1px */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --s96: 96px; --s64: 64px; --s48: 48px; --s40: 40px; --s32: 32px; --s24: 24px; --s16: 16px; --s8: 8px;
}

/* 바탕 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip; font-variant-numeric: tabular-nums; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[id] { scroll-margin-top: var(--s24); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s24); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 제목과 글 */
h1 { font-size: 42px; line-height: 1.32; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 32px; line-height: 1.38; font-weight: 700; letter-spacing: -0.01em; max-width: 22em; }
h3 { font-size: 21px; line-height: 1.45; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.note { font-size: 14px; color: var(--ink-3); }
.sec-hd { margin-bottom: var(--s48); }
.sec-hd h2 + p { margin-top: var(--s16); }

/* 섹션 띠: 흰 띠와 연노랑 띠를 번갈아 */
.sec { padding: var(--s96) 0; }
.sec--butter { background: var(--butter); }
.sec--yolk { background: var(--yolk); }

/* 버튼 위젯: 알약형. 올리면 색만 바뀐다 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 2px solid var(--yolk); border-radius: 999px; background: var(--yolk); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.btn:hover { background: var(--yolk-2); border-color: var(--yolk-2); }
.btn--line { background: transparent; border-color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: #4A392A; border-color: #4A392A; }
.btn--s { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-block; font-weight: 700; text-underline-offset: 5px; }

/* 맨 위 시안 안내 띠와 제작 메모 (시안 전용, 아임웹에는 들어가지 않는다) */
.bar { background: var(--ink); color: #fff; font-size: 13px; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s16); min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.bar-t { flex: none; min-height: 28px; padding: 0 12px; border: 1px solid #fff; border-radius: 999px; background: transparent; color: #fff; font-size: 13px; white-space: nowrap; cursor: pointer; }
.bar-t:focus-visible { outline-color: #fff; }
.memo { background: #FBF8EE; border-bottom: 1px solid var(--line); padding: var(--s32) 0; font-size: 14px; color: var(--ink-2); }
.memo h2 { font-size: 18px; margin-bottom: var(--s16); color: var(--ink); }
.memo ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--s32); }
.memo b { display: inline-block; min-width: 7.5em; color: var(--ink); }
.memo .code { text-decoration: underline; }

/* 헤더 */
.hd { background: var(--paper); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: var(--s32); min-height: 72px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .nav-m a { font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hd-r { display: flex; align-items: center; gap: var(--s16); }
.hd-tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-t { display: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-size: 15px; font-weight: 700; cursor: pointer; }
.nav-m { display: none; }

/* 첫 화면: 연노랑 띠, 왼쪽 글과 버튼, 오른쪽 사진, 아래 4칸에 알약형 버튼 하나씩 */
.hero { background: var(--butter); padding: var(--s64) 0 var(--s48); }
.hero-g { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: center; }
.hero h1 + p { margin-top: var(--s24); }
.hero .btns { margin-top: var(--s32); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s16); margin-top: var(--s48); }
.chip { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out; }
.chip:hover { background: var(--butter-2); }

/* 하위 쪽 글 머리 */
.ph { background: var(--butter); padding: var(--s64) 0; }
.ph h1 { font-size: 40px; }
.ph p { margin-top: var(--s16); }

/* 칸 그리드 */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s32); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s32); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s32); }
.g2--mid { align-items: center; gap: var(--s64); }
.g2--top { align-items: start; }
.g2--next { margin-top: var(--s32); }
.cell { background: var(--butter); padding: var(--s32); }
.sec--butter .cell { background: var(--paper); }
.cell > * + * { margin-top: var(--s16); }
.cell--photo { padding: 0; background: transparent; }
.cell--photo > div { padding: var(--s24) 0 0; }
.cell--photo > div > * + * { margin-top: 12px; }
.txt > * + * { margin-top: var(--s24); }
.dots li { position: relative; padding-left: 18px; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.dots li + li { margin-top: 6px; }
.price { font-size: 20px; font-weight: 700; }
.price small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }

/* 이용 절차: 동그란 번호(버튼 위젯 모서리 둥글기) + 제목 + 글 */
.num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--yolk); font-size: 20px; font-weight: 800; line-height: 1; }
.step > * + * { margin-top: var(--s16); }
.step p { color: var(--ink-2); font-size: 16px; }

/* 주간 간식표: 요일 한 줄 = 칸 섹션 한 줄 + 구분선 (표를 쓰지 않는다) */
.week { border-top: 2px solid var(--ink); }
.week-hd, .week-row { display: grid; gap: var(--s24); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.week--3 .week-hd, .week--3 .week-row { grid-template-columns: 88px 1.4fr 1fr; }
.week--4 .week-hd, .week--4 .week-row { grid-template-columns: 88px 1.4fr 1fr 1.2fr; }
.week-hd { font-size: 14px; font-weight: 700; color: var(--ink-3); padding: 12px 0; }
.day { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--yolk); font-size: 19px; font-weight: 800; line-height: 1; }
.week-row b { font-size: 18px; font-weight: 700; }
.week-row > span:not(.day) { color: var(--ink-2); font-size: 16px; }
.week-row i { display: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-right: 8px; }
.week-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s24); margin-top: var(--s32); }

/* 카드 목록: 납품 사례, 제품 목록 (갤러리 게시판 모양) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s40) var(--s32); }
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s32) var(--s24); }
.card h3 { font-size: 18px; margin-top: var(--s16); }
.card p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.card[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px var(--s24); margin-bottom: var(--s40); border-bottom: 1px solid var(--line); }
.tabs button { min-height: 48px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.sec-ft { margin-top: var(--s48); }

/* 이름값 줄 */
.kv { border-top: 2px solid var(--ink); }
.kv > div { display: grid; grid-template-columns: 220px 1fr; gap: var(--s24); padding: 20px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; }
.kv dd { color: var(--ink-2); }
/* 2칸 섹션의 칸 안에서는 이름 위, 값 아래로 세로로만 쌓는다 (칸 안에 다시 칸을 나누지 않는다) */
.kv--stack > div { grid-template-columns: 1fr; gap: 4px; }

/* 자주 묻는 질문: 게시판 아코디언 */
.faq { border-top: 2px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 4px; font-size: 18px; font-weight: 700; cursor: pointer; }
.faq details p { padding: 0 4px 24px 24px; color: var(--ink-2); max-width: 40em; }

/* 온라인 문의: 입력폼 위젯 1열 */
.form > * + * { margin-top: 20px; }
.form label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea { display: block; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #8A7660; border-radius: 0; background: var(--paper); font-size: 16px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; }
.form .agree input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.form .btn { width: 100%; }
.form-msg { font-size: 15px; font-weight: 700; min-height: 1.7em; }
.side > * + * { margin-top: var(--s32); }
.tel { font-size: 34px; font-weight: 800; line-height: 1.2; text-decoration: none; display: inline-block; }
.board { border-top: 2px solid var(--ink); }
.board li { display: flex; justify-content: space-between; gap: var(--s16); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.board time { color: var(--ink-3); font-size: 14px; white-space: nowrap; }

/* 지도 위젯 자리 (시안 전용 자리 표시) */
.map { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 320px; padding: var(--s32); background: var(--butter-2); text-align: center; }
.map b { font-size: 18px; }
.map span { font-size: 15px; color: var(--ink-2); }

/* 상담 띠 */
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s32); flex-wrap: wrap; }
.cta { padding: var(--s64) 0; }
.cta p { margin-top: 8px; }

/* 푸터 */
.ft { padding: var(--s64) 0 var(--s48); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.ft-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s32); }
.ft h2 { font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.ft .logo { display: inline-block; margin-bottom: 12px; color: var(--ink); }
.ft li + li { margin-top: 6px; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-info { margin-top: var(--s40); padding-top: var(--s24); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.ft-info p + p { margin-top: 6px; }

/* 휴대폰 하단 고정 줄 (코드 삽입 1곳) */
.mbar { display: none; }

/* 섹션 등장: 투명도만 */
.js .rv { opacity: 0; transition: opacity .5s ease-out; }
.js .rv.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transition: none; }
  .btn, .chip, .mbar { transition: none; }
}

/* 태블릿 이하: 메뉴를 버튼으로 접는다 */
@media (max-width: 1099px) {
  .nav, .hd-tel { display: none; }
  .hd-r { margin-left: auto; }
  .menu-t { display: inline-flex; align-items: center; }
  .nav-m.open { display: block; border-top: 1px solid var(--line); padding: 8px var(--s24) var(--s16); }
  .nav-m a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-g { gap: var(--s40); }
  .g4 { grid-template-columns: 1fr 1fr; }
  .cards--4 { grid-template-columns: repeat(3, 1fr); }
  .week--4 .week-hd, .week--4 .week-row { grid-template-columns: 64px 1.3fr 1fr 1.1fr; }
}

/* 좁은 태블릿: 첫 화면을 한 칸으로 쌓는다 (제목이 세 줄이 되지 않게) */
@media (max-width: 899px) {
  .hero-g { grid-template-columns: 1fr; gap: var(--s32); }
}

/* 휴대폰 */
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 30px; line-height: 1.32; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .lead { font-size: 16px; }
  .sec { padding: var(--s64) 0; }
  .sec-hd { margin-bottom: var(--s32); }
  .bar .wrap { min-height: 36px; }
  .memo ul { grid-template-columns: 1fr; }
  .hd .wrap { min-height: 60px; gap: var(--s16); }
  .logo { font-size: 21px; }
  .hd-r .btn { display: none; }
  .hero { padding: var(--s32) 0 var(--s40); }
  .hero-g { grid-template-columns: 1fr; gap: var(--s24); }
  .hero h1 + p { margin-top: var(--s16); }
  .hero .btns { margin-top: var(--s24); }
  .hero .btn { flex: 1 1 0; padding: 0 12px; min-height: 48px; font-size: 15px; }
  .chips { grid-template-columns: 1fr 1fr; margin-top: var(--s24); gap: 8px; }
  .chip { min-height: 44px; padding: 0 8px; font-size: 14px; }
  .ph { padding: var(--s40) 0; }
  .ph h1 { font-size: 28px; }
  .g2, .g3 { grid-template-columns: 1fr; gap: var(--s24); }
  .g2--mid { gap: var(--s32); }
  .g4 { grid-template-columns: 1fr; gap: var(--s32); }
  .cell { padding: var(--s24); }
  .cell--photo { padding: 0; }
  .cards, .cards--4 { grid-template-columns: 1fr 1fr; gap: var(--s24) var(--s16); }
  .card h3 { font-size: 15px; margin-top: 12px; }
  .card p { font-size: 13px; }
  .tabs { gap: 0 20px; margin-bottom: var(--s24); }
  .tabs button { font-size: 15px; min-height: 44px; }
  /* 간식표: 머리 줄을 숨기고 요일마다 세로로 쌓는다. 값 앞에 짧은 이름 */
  .week-hd { display: none; }
  .week--3 .week-row, .week--4 .week-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .week-row i { display: inline; }
  .day { width: 40px; height: 40px; font-size: 17px; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .faq summary { font-size: 16px; padding: 16px 2px; }
  .faq details p { padding: 0 2px 20px 18px; }
  .tel { font-size: 28px; }
  .cta { padding: var(--s48) 0; }
  .ft { padding: var(--s48) 0 var(--s32); }
  .ft-g { grid-template-columns: 1fr; gap: var(--s24); }
  /* 하단 고정 줄: 첫 화면을 지난 뒤 나타난다 */
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink); visibility: hidden; opacity: 0; transition: opacity .2s ease-out; }
  .mbar.on { visibility: visible; opacity: 1; }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .mbar a + a { border-left: 1px solid #6B5A4A; }
  .mbar a:last-child { background: var(--yolk); color: var(--ink); border-left: 0; }
  .mbar a:focus-visible { outline-color: #fff; outline-offset: -4px; }
}

/* 좁은 휴대폰 */
@media (max-width: 359px) {
  h1 { font-size: 26px; }
  .ph h1 { font-size: 25px; }
  .hero .btn { font-size: 14px; padding: 0 8px; }
  .chip { padding: 0 4px; font-size: 13px; }
  .mbar a { font-size: 14px; }
  .tabs { gap: 0 14px; }
}
