/* ══════════════════════════════════════════════════════════════
   시루모락 홈페이지 — 공통 스타일

   색·서체는 브랜드 원본을 그대로 옮긴 것입니다.
     · D:\00.시루모락 AI\.ai\brand\카드뉴스-디자인-고객용.md
     · D:\00.시루모락 AI\.ai\brand\카드뉴스-디자인.md
   임의로 바꾸지 마시고, 바꿔야 하면 위 원본 문서를 먼저 고치세요.
   ══════════════════════════════════════════════════════════════ */

/* ── 서체 ──────────────────────────────────────────────────────
   본문: Pretendard  ·  헤드라인/라벨/버튼: 카페24 당당해

   카페24 당당해 폰트 파일은 assets/fonts/ 에 이미 넣어뒀습니다.
   그 파일이 없어도 아래 CDN에서 자동으로 불러옵니다.
   Cafe24 공식 배포 (상업적 사용 무료): https://fonts.cafe24.com/                 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

@font-face {
  font-family: 'Cafe24 Dangdanghae';
  src: url('/assets/fonts/Cafe24Dangdanghae.woff') format('woff'),
       url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.2/Cafe24Dangdanghae.woff') format('woff');
  font-weight: 400 900;
  font-display: swap;

  /* 카페24 당당해에 글리프가 없어 「빈칸」으로 나오는 10글자를 이 폰트에서 제외한다.
     제외하면 브라우저가 자동으로 Pretendard로 떨어뜨려 정상 표시된다.
     제외 글자: · – — × ° → ← ※ 「 」
     (확인 방법: 캔버스에 32px로 그려 잉크 픽셀이 0이면 빈 글리프다) */
  unicode-range: U+0-AF, U+B1-B6, U+B8-D6, U+D8-2012, U+2015-203A,
                 U+203C-218F, U+2191, U+2193-300B, U+300E-10FFFF;
}

:root {
  /* 색 — 카드뉴스-디자인-고객용.md 「색 — 사진 우선」 */
  --white:       #ffffff;   /* 기본 배경 */
  --pink:        #fee8dd;   /* 강조 배경 — 섹션·카드·알약 */
  --red:         #9b131a;   /* 포인트 — 버튼·라벨·밑줄바·키워드 한 어절 */
  --red-hover:   #7a0f15;   /* 링크 호버 */
  --brown:       #2b2320;   /* 텍스트 */
  --index:       #a89a8f;   /* 인덱스 번호 */
  --wordmark:    #93847c;   /* 워드마크·보조 텍스트 */
  --line:        #efe1d9;   /* 선 — 연핑크를 옅게 뺀 값 (원본에 없어 파생) */
  --pink-deep:   #fbd9c9;   /* 핑크 위에 얹는 선 */

  /* 서체 */
  --display: 'Cafe24 Dangdanghae', 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  --body:    'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  /* 모서리 — 원본의 알약 999px / 카드 28px(1080px 기준)을 웹 비율로 */
  --r-pill: 999px;
  --r-card: 18px;
  --r-input: 10px;

  --wrap: 1140px;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 앵커로 건너뛸 때 상단 고정 헤더(68px)가 제목을 가리지 않게 한다 */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--brown);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;              /* 원본 본문 행간 1.6 */
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.32;             /* 원본 헤드라인 행간 1.30~1.36 */
  letter-spacing: -0.01em;       /* 원본 자간 -0.01em */
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }    /* 원본 본문 최대폭 760~780px */

/* ── 알약 라벨 (원본 「시리즈 태그」) ─────────────────────────
   배경 연핑크 · 글자 레드 700 · 자간 0.02em · 모서리 999px      */
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
  background: var(--pink);
  padding: 7px 18px;
  border-radius: var(--r-pill);
  margin: 0 0 20px;
}
/* 핑크 배경 위에는 핑크 알약을 얹지 않는다 (원본 표지 규칙) */
.section.alt .eyebrow, .page-head .eyebrow { background: var(--white); }

/* ── 밑줄바 (원본 「밑줄바」 96 × 4px 레드) ────────────────── */
.rule { width: 96px; height: 4px; background: var(--red); border: 0; margin: 26px 0 0; }
.section-head .rule, .page-head .rule { margin-left: auto; margin-right: auto; }

/* ── 헤더 ─────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; position: relative; }

.logo { font-family: var(--display); font-size: 22px; font-weight: 900; color: var(--brown); }
.logo small {
  display: block;
  font-family: var(--body);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.28em;        /* 원본 워드마크 자간 0.28em */
  color: var(--wordmark);
  margin-top: 1px;
}

.nav { margin-left: auto; display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--brown); padding: 5px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red-hover); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  font-size: 22px; cursor: pointer; color: var(--brown);
  /* 손가락으로 누르는 곳은 44x44 아래로 내려가면 안 된다 */
  min-width: 44px; min-height: 44px; padding: 0; line-height: 1;
}

/* ── 버튼 (원본 「CTA 버튼」 레드 배경 · 화이트 700 · 알약) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-size: 16px; font-weight: 700;
  padding: 15px 34px;
  border: 2px solid var(--red);
  background: var(--red); color: var(--white);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn.ghost { background: transparent; color: var(--red); }
.btn.ghost:hover { background: var(--red); color: var(--white); }
.btn.line { background: transparent; color: var(--brown); border-color: var(--line); }
.btn.line:hover { border-color: var(--brown); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── 섹션 — 화이트와 핑크를 교차 (같은 색 3연속 금지) ─────── */
.section { padding: 92px 0; background: var(--white); }
.section.tight { padding: 62px 0; }
.section.alt { background: var(--pink); }
.section.paper { background: var(--white); }

.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--wordmark); margin: 18px auto 0; max-width: 620px; }

/* ── 페이지 머리 ──────────────────────────────────────────── */
.page-head { padding: 78px 0 56px; text-align: center; background: var(--pink); }
.page-head h1 { font-size: 38px; }
.page-head p { color: var(--brown); opacity: .78; margin: 20px auto 0; max-width: 640px; }

/* ── 홈 히어로 ────────────────────────────────────────────── */
.hero { padding: 96px 0 84px; text-align: center; background: var(--white); }
.hero .mark {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wordmark);
  margin: 0;
}
.hero h1 { font-size: 46px; margin: 24px 0 0; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--red); }   /* 키워드 한 어절만 레드 */
.hero .lead { color: var(--brown); opacity: .8; margin: 22px auto 0; max-width: 540px; }

/* ── 링크 허브 (인포크링크 역할) ──────────────────────────── */
.linkhub { max-width: 468px; margin: 44px auto 0; display: grid; gap: 10px; }
.linkhub a {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 24px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color .18s, background .18s, transform .18s;
}
.linkhub a:hover { border-color: var(--red); background: var(--pink); transform: translateY(-1px); }
.linkhub .ic { width: 22px; text-align: center; font-size: 17px; flex: none; }
.linkhub .tx { flex: 1; text-align: left; }
.linkhub .tx strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.linkhub .tx span { display: block; font-size: 13px; color: var(--wordmark); }
.linkhub .go { color: var(--index); font-size: 15px; }
/* 대표 CTA 하나만 레드로 채운다 */
.linkhub a.primary { background: var(--red); border-color: var(--red); color: var(--white); }
.linkhub a.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.linkhub a.primary .tx span, .linkhub a.primary .go { color: rgba(255,255,255,.75); }

/* ── 카드 그리드 ──────────────────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.section.alt .card { border-color: var(--pink-deep); }
.card .thumb {
  aspect-ratio: 4 / 5;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  color: var(--wordmark); font-size: 13px; font-weight: 500; letter-spacing: .08em;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card h3 { font-size: 19px; }
.card p { color: var(--brown); opacity: .74; font-size: 14.5px; margin: 10px 0 0; }
.card .price { margin-top: 16px; font-family: var(--display); font-size: 17px; color: var(--red); font-weight: 700; opacity: 1; }

/* ── 목록형 표 ────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { padding: 17px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.section.alt .tbl th, .section.alt .tbl td { border-bottom-color: var(--pink-deep); }
.tbl th { font-family: var(--display); font-weight: 700; color: var(--brown); white-space: nowrap; width: 190px; }
.tbl td { color: var(--brown); opacity: .84; }
.tbl .num {
  text-align: right; white-space: nowrap; width: 110px;
  font-family: var(--display); font-weight: 700; color: var(--red); opacity: 1;
  font-variant-numeric: tabular-nums;
}

/* ── 단계 (원본 「번호 원」 레드 테두리 · 숫자 레드 900) ───── */
.steps { counter-reset: s; margin: 0; padding: 0; }
.steps li { list-style: none; display: flex; gap: 22px; padding: 22px 0; align-items: flex-start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  flex: none;
  width: 44px; height: 44px;
  border: 2.5px solid var(--red); border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--red);
}
.steps h3 { font-size: 18px; padding-top: 8px; }
.steps p { margin: 7px 0 0; color: var(--brown); opacity: .76; font-size: 15px; }
/* 본문 안의 링크는 눌리는 것으로 보여야 한다 */
/* 본문 속 링크만. .btn 은 빨간 배경이라 글자까지 빨갛게 하면 안 보인다 */
.steps a:not(.btn), .note a:not(.btn), .hint a:not(.btn),
.wrap.narrow > p a:not(.btn), .wrap.narrow > ul a:not(.btn), .wrap.narrow > ol a:not(.btn),
.ptable a:not(.btn), .choice .d a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.steps a:not(.btn):hover, .note a:not(.btn):hover, .hint a:not(.btn):hover { color: var(--red-hover); }

/* ── 핑크 카드 (원본 「체크리스트 카드」) ─────────────────── */
.note {
  background: var(--pink);
  border-radius: var(--r-card);
  padding: 26px 30px;
}
.section.alt .note { background: var(--white); }
.note h3 { font-size: 18px; margin-bottom: 10px; color: var(--red); }
.note p, .note li { font-size: 15px; color: var(--brown); margin: 7px 0; }
.note ul { margin: 10px 0 0; padding-left: 20px; }
.note ul li::marker { color: var(--red); }

.quote {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px; line-height: 1.42;
  color: var(--brown); text-align: center; margin: 0;
  text-wrap: balance;
}
.quote span { color: var(--red); }

/* 공식 슬로건 — 브랜드-철학-비전-기준.md의 두 줄을 그대로 쓴다 */
.slogan {
  font-family: var(--display); font-weight: 900;
  font-size: 40px; line-height: 1.34; letter-spacing: -0.01em;
  color: var(--brown); text-align: center; margin: 0; text-wrap: balance;
}
.slogan em { font-style: normal; color: var(--red); }
/* 핵심 브랜드 문장 */
.brandline {
  text-align: center; margin: 30px auto 0; max-width: 560px;
  font-size: 16.5px; line-height: 1.75; color: var(--brown); opacity: .82;
}
@media (max-width: 640px) { .slogan { font-size: 28px; } }

/* ── 폼 ───────────────────────────────────────────────────── */
.form { display: grid; gap: 26px; }
.field label { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.field label .req { color: var(--red); margin-left: 3px; }
.field .hint { font-size: 14px; color: var(--wordmark); margin: 8px 0 0; }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field input[type=date], .field input[type=time], .field input[type=number],
.field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-input);
  background: var(--white); color: var(--brown);
  font-family: var(--body); font-size: 15.5px; line-height: 1.6;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); }
.field .errmsg { display: none; font-size: 13px; color: var(--red); margin-top: 7px; }
.field.err .errmsg { display: block; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 20px; border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: var(--white); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--pink-deep); }
.choice:has(input:checked) { border-color: var(--red); background: var(--pink); }
.choice input { margin: 4px 0 0; accent-color: var(--red); flex: none; width: 17px; height: 17px; }
.choice .t { font-size: 15.5px; font-weight: 500; }
/* 제목은 카페24 당당해, 설명은 본문 글씨체(Pretendard). 당당해는 작은 글씨에서 읽기 어렵다 */
.choice .d {
  display: block; font-family: var(--body);
  font-size: 14.5px; font-weight: 400; line-height: 1.6;
  color: var(--wordmark); margin-top: 4px;
}

/* 사진으로 고르는 선택지 — 신청서의 케이크 디자인 */
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pickgrid .choice { display: block; padding: 0; overflow: hidden; text-align: left; }
.pickgrid .choice input { position: absolute; opacity: 0; pointer-events: none; }
.pickgrid figure { margin: 0; }
/* height:auto 가 없으면 <img height="1000"> 속성이 이겨서 세로로 길어진다 */
.pickgrid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--pink); }
.pickgrid figcaption {
  padding: 12px 14px 14px; font-family: var(--display); font-weight: 700;
  font-size: 15px; color: var(--brown);
}
.pickgrid figcaption em {
  display: block; font-style: normal; font-family: var(--body);
  font-weight: 400; font-size: 14.5px; line-height: 1.55;
  color: var(--wordmark); margin-top: 4px;
}
.pickgrid .choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); }
.pickgrid .choice:has(input:checked) figcaption { color: var(--red); }
.pickgrid .choice:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 640px) {
  .pickgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pickgrid figcaption { padding: 10px 11px 12px; font-size: 14px; }

  /* 맛 선택(.sm3)만 폰에서도 세 칸을 지킨다 — 백설기 한 줄, 쌀찜 한 줄.
     두 칸이면 사진이 커서 바로 위의 「케이크 크기」가 화면 밖으로 밀려났다.
     디자인 사진 묶음은 크게 봐야 고를 수 있으므로 두 칸 그대로 둔다. */
  .pickgrid.sm3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pickgrid.sm3 img { aspect-ratio: 1 / 1; }
  .pickgrid.sm3 figcaption { padding: 8px 8px 10px; font-size: 12.5px; line-height: 1.35; }
  .pickgrid.sm3 figcaption em { font-size: 11.5px; line-height: 1.4; margin-top: 3px; }
}

/* ── 케이크 갤러리 (홈) ────────────────────────────────────
   떡케이크 가게 홈이니 케이크가 가장 먼저, 가장 많이 보여야 한다.
   카드 그리드는 모바일에서 한 줄이 되어 너무 길어지므로 따로 짠다.      */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  display: block; border-radius: var(--r-card); background: var(--pink);
}
.gallery figcaption {
  margin-top: 11px; font-family: var(--display); font-weight: 700;
  font-size: 15.5px; color: var(--brown);
}
.gallery figcaption em {
  display: block; font-style: normal; font-family: var(--body);
  font-weight: 400; font-size: 13.5px; color: var(--wordmark); margin-top: 3px;
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery figcaption { font-size: 14px; margin-top: 9px; }
  .gallery figcaption em { font-size: 12.5px; }
}

/* ── 갈래 고르기 (신청서 디자인 선택) ─────────────────────────
   사진을 보기 전에 「어떤 경우인지」부터 정하게 한다.
   한 화면에 주문 방식 네 가지가 섞이지 않게 하는 장치다.            */
.branch { display: grid; gap: 12px; margin-top: 14px; }
.branch button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); color: var(--brown);
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 18px 22px; font-family: inherit;
  transition: border-color .18s, background .18s;
}
.branch button:hover:not(:disabled) { border-color: var(--red); background: var(--pink); }
.branch button strong {
  display: block; font-family: var(--display); font-weight: 700; font-size: 16.5px;
}
.branch button span {
  display: block; margin-top: 5px; font-size: 14.5px; color: var(--wordmark); line-height: 1.55;
}
.branch button.quiet { border-style: dashed; }
.branch button:disabled { opacity: .5; cursor: not-allowed; }
.branch button:disabled strong { color: var(--wordmark); }

.branch-back { margin: 0 0 18px; }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--red);
}
.linkish:hover { color: var(--red-hover); }

/* ── 신청서 보낸 뒤 안내 ──────────────────────────────────── */
.form-msg { text-align: center; margin: 16px 0 0; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok    { color: var(--red); font-weight: 700; font-family: var(--display); }
.form-msg.error { color: var(--red); }
.form-done {
  background: var(--pink); border-radius: var(--r-card);
  padding: 36px 30px; text-align: center;
}
.form-done h3 { font-size: 22px; }
.form-done p { margin: 14px 0 0; color: var(--brown); opacity: .82; }
.form-done .act { margin-top: 26px; }

/* ── 예상 금액 상자 (신청서) ──────────────────────────────── */
.quote-box {
  background: var(--pink); border-radius: var(--r-card);
  padding: 24px 26px; margin: 34px 0 26px;
}
.quote-box h3 { font-size: 17px; margin-bottom: 16px; }
.quote-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: 15px; }
.quote-box dt { color: var(--brown); opacity: .66; white-space: nowrap; }
.quote-box dd { margin: 0; text-align: right; color: var(--brown); }
.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1.5px solid var(--pink-deep); margin: 18px 0 0; padding-top: 16px;
}
.quote-total span { font-family: var(--display); font-weight: 700; font-size: 15px; }
.quote-total b {
  font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.quote-note { margin: 12px 0 0; font-size: 13.5px; color: var(--brown); opacity: .72; }
.quote-note:empty { display: none; }

/* 고를 수 없는 선택지 — 그 디자인으로는 만들지 않는 시트 */
.choice.off, .pickgrid .choice.off { opacity: .34; pointer-events: none; }
.choice.off .t::after { content: " — 이 디자인에는 없습니다"; font-weight: 400; font-size: 13px; }

/* 날짜·시간 안내 */
.field .warn { margin: 8px 0 0; font-size: 13.5px; color: var(--red); font-weight: 500; }
.field .warn:empty { display: none; }

/* 색 견본 — 시그니처 디자인의 고를 수 있는 색 */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.swatches figure { margin: 0; text-align: center; }
.swatches img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; border-radius: 12px; background: var(--pink);
}
.swatches figcaption { margin-top: 8px; font-size: 13px; color: var(--brown); opacity: .8; }
/* 신청서에서는 골라지는 색 견본 */
.swatches label { display: block; cursor: pointer; }
.swatches label input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label:has(input:checked) img { box-shadow: 0 0 0 3px var(--red); }
.swatches label:has(input:checked) figcaption { color: var(--red); font-weight: 700; opacity: 1; }
.swatches label:has(input:focus-visible) img { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 640px) {
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .swatches figcaption { font-size: 12px; }
}

.form-msg { padding: 16px 20px; border-radius: var(--r-input); font-size: 15px; display: none; }
.form-msg.show { display: block; }
.form-msg.bad { background: #fbeaea; color: var(--red); border: 1.5px solid #eec9c9; }
.form-msg.ok  { background: var(--pink); color: var(--brown); border: 1.5px solid var(--pink-deep); }

.summary { background: var(--pink); border-radius: var(--r-card); padding: 24px 28px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 118px 1fr; gap: 10px 14px; font-size: 15px; }
.summary dt { color: var(--wordmark); }
.summary dd { margin: 0; }
.summary .total {
  border-top: 1.5px solid var(--pink-deep); margin-top: 18px; padding-top: 18px;
  display: flex; justify-content: space-between;
  font-family: var(--display); font-size: 19px; font-weight: 700;
}
.summary .total b { color: var(--red); font-variant-numeric: tabular-nums; }

/* ── 결과 화면 ────────────────────────────────────────────── */
.result { text-align: center; padding: 110px 0; }
.result .big { font-size: 46px; color: var(--red); font-family: var(--display); font-weight: 900; }
.result h1 { font-size: 32px; margin: 18px 0 0; }
.result p { color: var(--brown); opacity: .78; margin: 18px auto 0; max-width: 520px; }
.result .acts { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 푸터 ─────────────────────────────────────────────────── */
/* 아래 여백은 고정된 카톡 버튼이 마지막 줄을 가리지 않게 하려고 넉넉히 둔다 */
.site-foot { background: var(--pink); padding: 62px 0 96px; font-size: 14.5px; color: var(--brown); }
.foot-top { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 42px; }
.foot-top > div { min-width: 190px; }
.site-foot h4 {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  color: var(--red); margin-bottom: 13px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; opacity: .84; }
.site-foot a:hover { color: var(--red-hover); }
.foot-bottom {
  border-top: 1.5px solid var(--pink-deep); padding-top: 24px; font-size: 12.5px;
  color: var(--wordmark); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between;
}
/* 사업자 정보 — 전자상거래법상 표기 의무 */
.biz {
  border-top: 1.5px solid var(--pink-deep); margin: 24px 0 0; padding-top: 20px;
  font-size: 12.5px; line-height: 1.9; color: var(--wordmark);
}
/* 항목이 중간에서 끊기지 않게 묶는다. 다만 좁은 화면에서는 풀어야 가로 스크롤이 안 생긴다 */
@media (min-width: 641px) { .biz span { white-space: nowrap; } }
/* 폰에서는 다섯 줄로 끊어 읽는다 — 가운뎃점을 감추고 그 자리에서 줄을 바꾼다 */
.biz br.mo { display: none; }
@media (max-width: 640px) {
  .biz br.mo { display: inline; }
  .biz .sep { display: none; }
}

/* 워드마크 — 원본 SIRUMORAK 700 · 자간 0.28em */
.wordmark { font-family: var(--body); font-weight: 700; letter-spacing: 0.28em; color: var(--wordmark); }

/* ── 고정 상담 버튼 (전화 · 카톡) ─────────────────────────── */
.fabs {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
}
.fabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-family: var(--display); font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(43, 35, 32, .16);
}
.fabs a:hover { transform: translateY(-1px); }
/* 첫 화면에서는 숨긴다 (site.js 가 .on 을 붙였다 뗀다).
   자바스크립트가 안 돌면 .shy 가 안 붙어 늘 보인다 — 안 보이는 것보다 낫다. */
.fabs.shy { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.fabs.shy.on { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .fabs.shy { transition: none; } }
.kakao-fab { background: #fee500; color: #191600; }
.tel-fab   { background: var(--red); color: #fff; }
.tel-fab:hover { background: var(--red-hover); color: #fff; }
.fabs svg.fab-i { width: 17px; height: 17px; display: block; flex: none; }
/* 좁은 화면에서는 글자를 빼고 동그란 아이콘 버튼으로 줄인다.
   46px은 손가락으로 누를 수 있는 최소 크기(44px)보다 크다. */
@media (max-width: 640px) {
  .fabs { right: 14px; bottom: 14px; gap: 9px; }
  .fabs a {
    width: 46px; height: 46px; padding: 0; gap: 0;
    justify-content: center; border-radius: 50%;
  }
  .fabs svg.fab-i { width: 21px; height: 21px; }
  .fabs .fab-t { display: none; }
}

/* ── 접었다 펴는 묶음 ─────────────────────────────────────
   <details> 를 그대로 쓴다. 자바스크립트가 없어도 열리고, 키보드로도 열린다.
   맛 다섯 가지와 가격표 세 묶음을 다 펼쳐 두면 폰에서 케이크 페이지가 24화면이 된다. */
.folds { display: grid; gap: 12px; }
.fold {
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: var(--white); overflow: hidden;
}
.section.alt .fold { border-color: var(--pink-deep); }
.fold > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  font-family: var(--display); color: var(--brown);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+"; margin-left: 6px; flex: none;
  width: 26px; height: 26px; line-height: 24px; text-align: center;
  border-radius: 50%; background: var(--pink); color: var(--red);
  font-size: 17px; font-weight: 700;
}
.fold[open] > summary::after { content: "−"; }   /* 빼기 기호 */
.fold > summary:hover { background: rgba(155, 19, 26, .03); }
.fold > summary .t { font-size: 16px; font-weight: 700; display: block; }
.fold > summary .t em {
  display: block; margin-top: 3px;
  font-family: var(--body); font-style: normal; font-size: 13.5px;
  font-weight: 400; color: var(--wordmark);
}
.fold > summary .p {
  margin-left: auto; flex: none;
  font-size: 15px; font-weight: 700; color: var(--red);
}
.fold-body { padding: 2px 18px 20px; }
.fold-body > p { margin: 0; color: var(--brown); opacity: .8; font-size: 15px; }

/* 맛 — 닫혀 있을 땐 작은 사진, 열면 큰 사진 */
.fold.flavor > summary .chip {
  width: 54px; height: 54px; flex: none;
  border-radius: 10px; object-fit: cover; display: block;
}
.fold.flavor .fold-body img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; display: block; margin: 10px 0 14px;
}

/* 가격표 묶음 안의 표는 위 여백을 줄인다 */
.fold-body .tbl { margin-top: 8px !important; }

@media (max-width: 640px) {
  .fold > summary { padding: 13px 14px; gap: 11px; }
  .fold > summary .t { font-size: 15px; }
  .fold > summary .p { font-size: 14px; }
  .fold-body { padding: 2px 14px 16px; }
  .fold.flavor > summary .chip { width: 48px; height: 48px; }
  /* 큰 사진이 화면을 다 먹지 않게 */
  .fold.flavor .fold-body img { max-height: 52vh; max-height: 52svh; }
}

/* ── 긴급 주문 상자 ────────────────────────────────────────
   값이 하나뿐이고 「오늘 받을 수 있나」가 궁금한 것이라 표에 섞지 않고 따로 둔다. */
.urgent-box {
  margin-top: 28px; padding: 22px 24px;
  border: 2px solid var(--red); border-radius: var(--r-card); background: var(--white);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.urgent-box .u-t { flex: 1 1 260px; }
.urgent-box h3 { font-family: var(--display); font-size: 18px; color: var(--red); margin: 0; }
.urgent-box p { margin: 8px 0 0; font-size: 14.5px; color: var(--brown); opacity: .8; }
.urgent-box .u-p { display: flex; align-items: center; gap: 16px; flex: none; }
.urgent-box b { font-family: var(--display); font-size: 24px; color: var(--red); }
.urgent-box .btn { padding: 12px 22px; font-size: 15px; }
@media (max-width: 640px) {
  .urgent-box { padding: 18px; gap: 16px; }
  .urgent-box h3 { font-size: 16.5px; }
  .urgent-box .u-p { width: 100%; justify-content: space-between; }
  .urgent-box .btn { padding: 11px 18px; font-size: 14.5px; }
}

/* 기록 표에서 밖으로 나가는 링크임을 알려준다 */
.go-out { font-size: 12.5px; color: var(--wordmark); white-space: nowrap; }
.tbl td a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.tbl td a:hover { color: var(--red-hover); }

/* ── 미확인 항목 표시 ─────────────────────────────────────── */
.todo {
  background: #fff8e1; border-left: 4px solid #d9a300;
  border-radius: var(--r-input);
  padding: 15px 20px; font-size: 14.5px; color: #5c4600; margin: 14px 0;
}
.todo::before { content: "확인 필요 — "; font-weight: 700; }

/* ── 접근성 ───────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .linkhub a:hover, .kakao-fab:hover { transform: none; }
}

/* ── 모바일 ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-text { padding: 34px 0 52px; }
  .hero-text h1 { line-height: 1.28; }
  .hero-text .lead { margin-top: 14px; font-size: 15px; }
  .hero-text .act { margin-top: 22px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { margin-top: 12px; font-size: 15px; }
  /* 밑줄바는 장식이다. 폰에서는 자리를 덜 쓰게 줄인다 */
  .section-head h2::after, .page-head h1::after {
    width: 64px; height: 3px; margin-top: 14px;
  }
  .page-head p { margin-top: 14px; }
  .hero { padding: 62px 0 56px; }
  .hero h1 { font-size: 32px; }
  .page-head { padding: 40px 0 34px; }
  .page-head h1 { font-size: 29px; }
  .section-head h2 { font-size: 26px; }
  .quote { font-size: 23px; }
  /* 카드는 2열로 둔다. 1열이면 사진 한 장이 한 화면을 먹어
     케이크 페이지가 23화면, 홈이 13화면이 된다 (2026-09-02 측정). */
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid .card .body { padding: 14px 14px 18px; }
  .grid .card h3 { font-size: 15.5px; }
  .grid .card p { font-size: 13.5px; line-height: 1.6; }
  .row2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { display: block; padding: 5px 0; border: 0; width: auto; }
  .tbl .num { text-align: left; }
  .tbl tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .section.alt .tbl tr { border-bottom-color: var(--pink-deep); }
  .summary dl { grid-template-columns: 1fr; gap: 3px; }
  .summary dt { margin-top: 10px; font-size: 13px; }
  .steps li { gap: 16px; }
  .steps li::before { width: 38px; height: 38px; font-size: 16px; }
}

/* ── 헤드라인 밑줄바를 자동으로 (원본 「밑줄바」 규칙) ─────── */
.section-head h2::after, .page-head h1::after {
  content: ""; display: block;
  width: 96px; height: 4px; background: var(--red);
  margin: 24px auto 0;
}

/* ══ 홈 히어로 — 카드뉴스의 「사진 위 / 텍스트 아래」 분할을 그대로 ══ */
.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 2;   /* 위에서 내려다본 원형 케이크가 잘리지 않는 비율 */
  /* 첫 화면에 제목과 「주문하기」가 사진과 함께 보이도록 높이를 묶는다.
     svh 는 폰 주소창이 접혔다 펴져도 값이 흔들리지 않는다. vh 는 옛 브라우저용. */
  max-height: 64vh;
  max-height: 64svh;
  overflow: hidden;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  color: var(--wordmark); font-size: 15px; font-weight: 500; letter-spacing: .1em;
}
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ★ 사진이 첫 화면을 통째로 먹지 않게 높이를 화면 비율로 못 박는다.
   aspect-ratio 만으로는 안쪽 사진이 크면 그만큼 늘어난다 (2026-09-02에 겪음).
   PC 1440×900 에서 950px 이라 제목도 「주문하기」도 스크롤해야 보였다.
   svh 는 폰 주소창이 접혔다 펴져도 값이 흔들리지 않는다. vh 는 옛 브라우저용. */
.hero-photo { aspect-ratio: auto; height: 60vh; height: 60svh; }
@media (max-width: 640px) {
  /* 폰은 세로가 짧다. 더 줄여야 「주문하기」까지 첫 화면에 들어온다 */
  .hero-photo { height: 44vh; height: 44svh; }
}

.hero-text { background: var(--white); text-align: center; padding: 56px 0 72px; }
.hero-text h1 { font-size: 42px; line-height: 1.32; }
.hero-text h1 em { font-style: normal; color: var(--red); }
.hero-text .lead { color: var(--brown); opacity: .78; margin: 20px auto 0; max-width: 520px; }
.hero-text .act { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* 폰에서는 두 버튼을 세로로 쌓고 폭을 맞춘다. 나란히 두면 글자가 눌린다 */
@media (max-width: 640px) {
  .hero-text .act { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-text .act .btn { width: 100%; }
}
.hero-text .sub { margin-top: 16px; font-size: 14px; color: var(--wordmark); }

/* ══ 링크 페이지 (/link — 인스타 프로필에 거는 주소) ══════════ */
.link-page { padding: 56px 0 80px; text-align: center; background: var(--white); }
.link-page .brandmark { font-family: var(--display); font-size: 30px; font-weight: 900; }
.link-page .tagline { color: var(--wordmark); font-size: 14.5px; margin: 10px 0 0; }
.link-page .linkhub { margin-top: 36px; }

@media (max-width: 640px) {
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-text { padding: 40px 0 56px; }
  .hero-text h1 { font-size: 29px; }
}

/* ══ 신뢰 지표 띠 (누적 후기·평점) ══════════════════════════
   원본 규칙상 레드는 넓은 면에 깔지 않는다. 배경은 연핑크, 숫자만 레드. */
.stats { background: var(--pink); padding: 34px 0; }
.stats .wrap { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; text-align: center; }
.stats b {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: 36px; line-height: 1.1; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stats span { display: block; font-size: 13.5px; color: var(--brown); opacity: .72; margin-top: 4px; }
.stats-src { text-align: center; font-size: 12.5px; color: var(--wordmark); margin: 22px 0 0; }

/* 단계 라벨 (신청서의 선택 1~4) */
/* ── 후기 카드 ─────────────────────────────────────────────
   글이 길어 사진 카드처럼 3열로 두고, 폰에서는 한 열로 쌓는다. */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; padding: 26px 24px; background: var(--pink);
  border-radius: var(--r-card); display: flex; flex-direction: column; gap: 16px;
}
.review blockquote {
  margin: 0; font-size: 15px; line-height: 1.85; color: var(--brown);
  quotes: none;
}
/* 따옴표 글자(“)는 헤드라인 폰트에 글리프가 없어 201C 로 나온다. 짧은 선으로 대신한다 */
.review blockquote::before { content: ""; display: block; width: 34px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 16px; }
.review figcaption {
  margin-top: auto; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--red);
}
.review-src { margin: 20px 0 0; font-size: 13.5px; color: var(--wordmark); text-align: center; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; gap: 14px; } .review { padding: 22px 20px; } }

/* ── 신청서 4단계 접었다 펴기 ──────────────────────────────
   한 페이지에 다 있으면 폰에서 13,000px이라 끝이 안 보인다.
   한 번에 한 단계만 펴고, 다 고르면 다음 단계가 저절로 열린다.   */
.step { border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.step + .step { margin-top: -8px; }        /* .form 의 gap 26px 을 조금 좁힌다 */
.step.on { border-color: var(--pink-deep); box-shadow: 0 3px 14px rgba(43, 35, 32, .05); }
.step-head { margin: 0; font-size: inherit; }
.step-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); color: var(--brown);
}
.step-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); color: var(--wordmark);
  font-size: 14px; font-weight: 700; line-height: 28px; text-align: center;
}
.step.on .step-no  { background: var(--red); color: var(--white); }
.step.done .step-no { background: var(--red); color: var(--white); }
.step.done .step-no::before { content: "✓"; }
.step.done .step-no { font-size: 0; }       /* 번호 대신 체크 표시 */
.step.done .step-no::before { font-size: 15px; }
.step-title { font-size: 16.5px; font-weight: 700; flex: none; }
.step-sum {
  font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--wordmark);
  margin-left: auto; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.step-sum:empty { display: none; }
.step-body { padding: 4px 20px 24px; display: grid; gap: 26px; }
/* display 를 준 뒤에는 hidden 속성이 무시된다. 다시 살려준다 */
.step-body[hidden] { display: none; }
.step-body > .field:first-child > label:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .step-toggle { padding: 16px 15px; gap: 10px; }
  .step-body { padding: 2px 15px 20px; }
  .step-title { font-size: 15.5px; }
  /* 좁은 화면에서는 요약을 제목 아래로 내린다. 한 줄에 다 넣으면 둘 다 잘린다 */
  .step-toggle { flex-wrap: wrap; }
  .step-sum { margin-left: 38px; width: 100%; text-align: left; white-space: normal; }
}

@media (max-width: 640px) {
  .stats .wrap { gap: 32px; }
  .stats b { font-size: 29px; }
}

/* ── 약관·개인정보처리방침 본문 ─────────────────────────── */
.ptable { width: 100%; border-collapse: collapse; margin: 18px 0 24px; }
.ptable th, .ptable td {
  padding: 13px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.65;
}
.ptable th {
  font-family: var(--display); font-weight: 700; white-space: nowrap;
  width: 34%; color: var(--brown);
}
@media (max-width: 560px) {
  .ptable th, .ptable td { display: block; border-bottom: none; padding: 4px 0; }
  .ptable th { width: auto; padding-top: 14px; }
  .ptable td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}
.wrap.narrow h2 { margin: 44px 0 14px; }
.wrap.narrow h2:first-child { margin-top: 0; }
.wrap.narrow h3 { margin: 28px 0 10px; }
.wrap.narrow > ul, .wrap.narrow > ol { margin: 0 0 18px; padding-left: 20px; line-height: 1.8; }
.wrap.narrow > ul li, .wrap.narrow > ol li { margin-bottom: 7px; }
.wrap.narrow > .hint { font-size: 14px; color: var(--wordmark); line-height: 1.7; }
