:root {
  --ivory-bg: #FBF7F0;
  --tile: #FFFCF7;
  --sub: #F4EDE2;
  --coral: #F2795F;      /* 글자색으로 쓰지 않는다 (야외 가독성) */
  --coral-soft: #FFD9CF;
  --charcoal: #2B2F38;
  --gray: #6B7078;
  --green: #0E9F6E;
  --amber: #F2B134;
  --radius: 16px;
  --tabbar: 64px;
  --font: "Noto Sans JP", system-ui, sans-serif;
  --round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);   /* 가로 화면 노치·펀치홀 영역을 피한다(본문·상단바) */
  background: var(--ivory-bg); color: var(--charcoal);
  font: 16px/1.7 var(--font);
}
:lang(ko), .ko { font-family: "Noto Sans KR", var(--font); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--round); line-height: 1.35; margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 19px; margin: 28px 0 12px; }
h3 { font-size: 17px; }
p { margin: 0 0 8px; }

main {
  max-width: 1080px; margin: 0 auto; outline: none;
  padding: 16px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom));
}
/* 글이 중심인 화면은 PC에서도 읽기 좋은 폭으로, 목록·홈은 넓게 */
main[data-page="recipe"], main[data-page="store"], main[data-page="guide"], main[data-page="tokushu"], main[data-page="saved"] { max-width: 720px; }
main[data-page="home"] { padding-top: 0; }                       /* 히어로가 맨 위에서 시작한다 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading, .muted { color: var(--gray); }
.small { font-size: 13px; }

/* 하단 탭 */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--tile); border-top: 1px solid var(--sub);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; text-decoration: none; color: var(--gray); position: relative;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--charcoal); font-weight: 700; }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral);
}

/* 머리 */
.brand { font-family: var(--round); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.brand + p { color: var(--gray); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--gray); }

/* 카드 */
.card {
  display: block; background: var(--tile); border: 1px solid var(--sub); border-radius: var(--radius);
  padding: 14px; text-decoration: none; margin-bottom: 12px;
}
a.card:active { background: var(--sub); }
.row { display: flex; gap: 12px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.thumb {
  flex: none; width: 76px; height: 76px; border-radius: 12px; background: var(--sub);
  display: grid; place-items: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.icon img { width: 88%; height: 88%; object-fit: contain; }
/* 공식 상품 사진: 레시피 대표 이미지는 4:3으로 합성돼 있어 잘라내지 않는다 */
.thumb.photo { width: 96px; height: 72px; }
.thumb.photo img, .hero img.photo { width: 100%; height: 100%; object-fit: cover; }
.thumb.sm { width: 56px; height: 56px; background: #fff; border: 1px solid var(--sub); }
.thumb.sm img { width: 100%; height: 100%; object-fit: contain; }
.rail .thumb.photo { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.hero {
  aspect-ratio: 4 / 3; background: var(--bg, var(--sub));
  display: grid; place-items: center; overflow: hidden; margin: 0 -16px 6px;     /* 모바일: 화면 폭 가득 */
}
@media (min-width: 600px) { .hero { margin: 0 0 6px; border-radius: var(--radius); } }
.hero img { width: 45%; }
.hero { position: relative; }
.hero img.photo { position: absolute; inset: 0; }   /* 세로 사진도 4:3 칸을 꽉 채우고(object-fit: cover) object-position 이 먹도록 */
.note { font-size: 12px; color: var(--gray); margin: 0 0 12px; }

/* 가로 스크롤 */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
.rail > * { flex: 0 0 42%; scroll-snap-align: start; margin: 0; padding: 10px; }
.rail h3 { font-size: 15px; }
.rail .thumb { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 8px; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--sub); background: var(--tile); color: var(--charcoal);
  font: 500 14px var(--font); text-decoration: none; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--tile); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--coral-soft); margin: 0 4px 4px 0; }
.tag.warn { background: #FCEBC3; }
/* 항목형 가이드 */
.gh { margin: 28px 0 8px; }
.tillu { max-width: 420px; margin: 8px 0 10px; }
/* 특집 일반화(문래창작촌 등): 표지·장소 카드·홈 「特集」 줄 */
.tcover { position: relative; max-width: none; margin: 4px 0 12px; }
.gillu.tcover img { aspect-ratio: 16 / 9; object-fit: cover; }
.tkrow .banner { margin-top: 12px; }
.tcover .pcredit, .place .pimg .pcredit { padding: 3px 9px; border-radius: 999px; background: rgba(20, 22, 28, .55); }   /* 밝은 그림·사진 위에서도 읽히게 */
.places { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 8px; }
.place { background: var(--tile); border: 1px solid var(--sub); border-radius: 16px; overflow: hidden; }
.place .pbody { padding: 12px 14px 12px; }
.place h3 { margin: 0 0 2px; font-size: 17px; }
.place .phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.place .phead .iconbtn { flex: none; margin: -6px -8px 0 0; }
.place .pimg { position: relative; margin: 0; }
.place .pimg img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place .pimg figcaption { padding: 4px 14px; background: var(--tile); }
.place .pwarn { margin: 6px 0; }
/* 지하철 노선 띠(특집 「行き方」): 노선색 #00A84D 는 서울 지하철 2호선을 나타내는 공공 표지 색이라 브랜드 팔레트와 별개로 노선 표시에만 쓴다 */
.sw { --line: #00A84D; margin: 12px 0 6px; }
.sw .lbadge { display: inline-block; background: var(--line); color: var(--charcoal); font-weight: 700; font-size: 13px; line-height: 1.5; padding: 1px 12px; border-radius: 999px; margin-bottom: 8px; }
.sw-row { display: flex; }
.sw-st { flex: 1 1 0; min-width: 0; position: relative; padding-top: 24px; text-align: center; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.sw-st::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 6px; background: var(--line); }
.sw-st:first-child::before { left: 50%; }
.sw-st:last-child::before { right: 50%; }
.sw-st i { position: absolute; top: 3px; left: 50%; width: 14px; height: 14px; margin-left: -7px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.sw-st b { display: block; font-weight: 700; word-break: keep-all; }                      /* 역 이름은 중간에서 끊지 않는다(読み仮名·한국어는 끊김 허용) */
@media (max-width: 360px) { .sw-st { font-size: 11px; } .sw-st.end b { font-size: 13px; } }
.sw-st .rd, .sw-st .kn { display: block; font-size: 11px; color: var(--gray); line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }   /* 읽는 법·한국어 역명은 단어 중간에서 끊지 않는다(넘칠 때만) */
.sw-st.end i { top: 0; width: 20px; height: 20px; margin-left: -10px; background: var(--line); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--line); }
.sw-st.end b { font-size: 14px; }
.sw.v .sw-row { flex-direction: column; }
.sw.v .sw-st { padding: 0 0 14px 34px; text-align: left; }
.sw.v .sw-st::before { top: 0; bottom: 0; left: 8px; right: auto; width: 6px; height: auto; }
.sw.v .sw-st:first-child::before { top: 10px; left: 8px; }
.sw.v .sw-st:last-child::before { bottom: auto; height: 10px; right: auto; }
.sw.v .sw-st i { top: 3px; left: 11px; }
.sw.v .sw-st.end i { top: 0; left: 11px; }
.sw.v .sw-st b, .sw.v .sw-st .rd, .sw.v .sw-st .kn { display: inline; margin-right: 6px; }
/* 특집 일정 항목의 작은 사진 줄(가로 스크롤) */
.pstrip { margin: 14px 0 6px; }
.pstrip h3 { margin: 0 0 8px; font-size: 17px; }
.pstrip-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
.pphoto { flex: 0 0 min(240px, 72%); margin: 0; scroll-snap-align: start; }
.pphoto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--sub); }
.pphoto figcaption { margin-top: 6px; }
.pphoto .pcr { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; text-decoration: none; }
@media (min-width: 700px) { .pphoto { flex-basis: 260px; } }
.place .pnote { margin: 6px 0; font-size: 15px; }
.place .chips { margin: 8px 0 4px; }
@media (min-width: 700px) { .places { grid-template-columns: 1fr 1fr; } }
.gillu.tillu img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
.gillu { margin: 10px 0 12px; border-radius: 16px; overflow: hidden; background: var(--sub); }
.gillu img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gillu figcaption { padding: 6px 12px; background: var(--tile); }
.gsrc { margin: -4px 0 8px; }
.tag.brandsub { background: var(--charcoal); color: #fff; font-weight: 700; letter-spacing: .04em; }

/* 버튼 */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  border-radius: 14px; border: 1px solid var(--charcoal); background: var(--tile); color: var(--charcoal);
  font: 700 16px var(--font); text-decoration: none; cursor: pointer; margin-bottom: 10px;
}
.btn.primary { background: var(--charcoal); color: var(--tile); }
.btn.accent { background: var(--coral); border-color: var(--coral); color: var(--charcoal); }
.btn[aria-pressed="true"]::before { content: "✓"; }
.btn:disabled { opacity: .4; cursor: default; }
.actions { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding: 18px 0 12px; background: linear-gradient(to top, var(--ivory-bg) 72%, rgba(251, 247, 240, 0)); }   /* 버튼 위치는 그대로(아래 12px 패딩), 뒤로 지나가는 본문만 가린다 */
.actions .btn { margin: 0; box-shadow: 0 4px 16px rgba(43, 47, 56, .12); }
.iconbtn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--sub); background: var(--tile);
  display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--charcoal);
}
.iconbtn[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); }

/* 목록 */
ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 12px 36px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral-soft); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
ul.plain { padding-left: 1.2em; margin: 0 0 8px; }
.ing { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sub); }
.ing:last-child { border-bottom: 0; }
.ing .grow { flex: 1; min-width: 0; }
.ing .ko { font-size: 15px; color: var(--gray); }
.point { background: var(--sub); border-radius: 12px; padding: 12px 14px; }
.sources { font-size: 13px; color: var(--gray); border-top: 1px solid var(--sub); margin-top: 24px; padding-top: 12px; }
.sources a { color: var(--charcoal); }
.warnbox { background: #FCEBC3; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0 12px; }

/* 가이드 */
.tip { background: var(--sub); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.tip::before { content: "ヒント　"; font-weight: 700; }
.phrase {
  display: block; width: 100%; text-align: left; background: var(--tile); border: 1px solid var(--sub);
  border-radius: 12px; padding: 12px 14px; margin: 8px 0; cursor: pointer; font: inherit; color: inherit;
}
.phrase .ko { font-size: 20px; font-weight: 700; display: block; }
.phrase .read { color: var(--gray); font-size: 14px; display: block; }

/* 특집 */
.video {
  width: 62%; max-width: 280px; aspect-ratio: 9 / 16; margin: 0 auto 6px; border-radius: var(--radius);
  background: var(--charcoal); color: var(--tile); display: grid; place-items: center; text-align: center; overflow: hidden;
}
.video video { width: 100%; height: 100%; object-fit: cover; }
table.flights { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--tile); border-radius: 12px; overflow: hidden; }
table.flights th, table.flights td { padding: 10px; text-align: left; border-bottom: 1px solid var(--sub); vertical-align: top; }
table.flights th { background: var(--sub); font-weight: 500; }
table.flights td:last-child { white-space: nowrap; }
.timeline { list-style: none; padding: 0 0 0 3px; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 0; width: 3px; border-radius: 2px; background: var(--coral-soft); }
.timeline li { position: relative; padding: 0 0 18px 18px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); }
.timeline .time { font-family: var(--round); font-weight: 700; }

/* 점원카드 (전체 화면) */
.clerk {
  position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column;   /* 상단바(30)·시트(40) 위: 점원 앞에서 언어 전환이 눌리거나 큰 글자 윗부분이 가려지지 않게 */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.clerk .slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.clerk .slide {
  flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 24px;
}
.clerk .big { font: 700 clamp(44px, 14vw, 80px)/1.2 "Noto Sans KR", sans-serif; word-break: keep-all; }
.clerk .ask { font: 700 24px/1.4 "Noto Sans KR", sans-serif; margin-top: 28px; }
.clerk .ja { color: var(--gray); font-size: 15px; margin-top: 8px; }
.clerk footer { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--sub); }
.clerk footer .count { flex: 1; text-align: center; color: var(--gray); }
.clerk footer .btn { width: auto; padding: 0 20px; margin: 0; min-height: 48px; }

.empty { text-align: center; padding: 32px 16px; color: var(--gray); }
.empty img { width: 96px; margin: 0 auto 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--sub); border-radius: 12px; padding: 4px; margin: 12px 0; }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 500 14px var(--font); color: var(--charcoal); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--tile); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
main:focus-visible { outline: none; }   /* 화면 이동 뒤 main에 주는 포커스(낭독용)는 유지하되 선은 그리지 않는다. 키보드 포커스 표시는 다른 요소에 그대로 */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ===== 홈 리디자인: 히어로 · 퀵 카테고리 · 큰 카드 · 분위기 사진 · PC ===== */
.hero-slider { position: relative; margin: 0 -16px; }
.hslides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  height: clamp(440px, 68svh, 600px); outline-offset: -3px;
}
.hslides::-webkit-scrollbar { display: none; }
.hslide { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; color: #fff; background: var(--bg, var(--charcoal)); }
.hslide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hslide .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 28, .86) 0%, rgba(20, 22, 28, .5) 36%, rgba(20, 22, 28, 0) 68%),
              linear-gradient(to bottom, rgba(20, 22, 28, .5), rgba(20, 22, 28, 0) 24%);
}
.hslide .cap { position: absolute; left: 20px; right: 20px; bottom: 62px; z-index: 1; max-width: 560px; }
.hslide h2 { color: inherit; font-size: clamp(24px, 6.4vw, 38px); margin: 10px 0 8px; text-wrap: balance; }
.hslide p, .hslide li { color: inherit; opacity: .94; margin: 0 0 14px; }
.hslide .tag { background: rgba(255, 255, 255, .94); color: var(--charcoal); font-weight: 700; margin: 0; }
.hslide .btn { width: auto; display: inline-flex; padding: 0 24px; margin: 0; background: #fff; border-color: #fff; color: var(--charcoal); }
/* 新商品・いま話題: 선반 사진을 어둡게 깔고, 공식 상품 사진은 작은 흰 타일로만 */
.hslide .shade.deep { background: linear-gradient(to top, rgba(20, 22, 28, .92) 0%, rgba(20, 22, 28, .8) 55%, rgba(20, 22, 28, .62) 100%); }
.htiles { display: flex; gap: 8px; margin: 4px 0 6px; }
.htile { flex: 1 1 0; max-width: 112px; padding: 6px 6px 7px; border-radius: 12px; background: #fff; color: var(--charcoal); text-align: center; }
.htile img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.htile span { display: -webkit-box; margin-top: 4px; font-size: 11px; line-height: 1.35; font-weight: 700; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hslide .hnote { margin: 0 0 12px; font-size: 11px; opacity: .8; }
.hbrand { position: absolute; top: 16px; left: 20px; z-index: 2; margin: 0; color: inherit; font: 700 20px var(--round); letter-spacing: .02em; }
.hslide.photo .hbrand { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.pcredit::after { content: ""; position: absolute; inset: -13px -8px; }
.pcredit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, .88); text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.hdots { position: absolute; left: 8px; right: 8px; bottom: 6px; display: flex; z-index: 2; pointer-events: none; }   /* 점이 많거나 폭이 좁으면(344px) 버튼이 줄어든다: 최소 24px(WCAG 2.5.8), 최대 44px */
.hdots button { flex: 1 1 0; min-width: 24px; max-width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; pointer-events: auto; }
.hdots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(20, 22, 28, .45); }
.hdots button[aria-current="true"]::before { background: #fff; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
/* 자동 넘김 멈춤/다시 시작(WCAG 2.2.2). 손대면 멈추고 이 버튼도 「재생」 상태로 바뀐다 */
.hpause { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 22, 28, .45); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.hpause::before { content: "\275A\275A"; font-size: 13px; letter-spacing: -2px; line-height: 1; }
.hpause[aria-pressed="true"]::before { content: "\25B6\FE0E"; letter-spacing: 0; margin-left: 3px; }
@media (max-height: 500px) and (orientation: landscape) {
  .hslides { height: max(220px, calc(100svh - 150px)); }
  .hslide .cap { bottom: 54px; }
  .hslide h2 { font-size: 24px; margin: 6px 0 10px; }
  .hslide .cap p { display: none; }   /* 낮은 가로 화면: 보조 문구는 숨겨 제목·버튼이 잘리지 않게 */
}   /* 가로 화면: 최소 440px 이 화면보다 커서 제목·버튼이 탭 뒤로 잘리던 것 */

.qcats { display: flex; gap: 6px; overflow-x: auto; padding: 18px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.qcats::-webkit-scrollbar { display: none; }
.qcat { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; text-align: center; line-height: 1.3; }
.qicon { width: 64px; height: 64px; border-radius: 20px; background: var(--tile); border: 1px solid var(--sub); display: grid; place-items: center; }
.qicon img { width: 52px; height: 52px; object-fit: contain; }

.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.sechead h2 { margin: 0; font-size: 21px; }
.sechead p { margin: 2px 0 0; color: var(--gray); font-size: 14px; }
.more { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--charcoal); text-decoration: none; font-weight: 700; }

.nrail, .mrail { align-items: flex-start; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.nrail::-webkit-scrollbar, .mrail::-webkit-scrollbar { display: none; }
.ncard { flex: 0 0 68%; max-width: 260px; scroll-snap-align: start; background: var(--tile); border: 1px solid var(--sub); border-radius: 20px; overflow: hidden; }
.nimg { position: relative; aspect-ratio: 1; background: var(--bg, var(--sub)); }
.nimg img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(43, 47, 56, .18)); }   /* 세로로 긴 포장도 카드 크기를 바꾸지 않는다 */
.badge { position: absolute; top: 12px; left: 12px; background: var(--coral); color: var(--charcoal); font: 800 12px var(--font); letter-spacing: .06em; padding: 3px 11px; border-radius: 999px; }
.nbody { padding: 12px 14px 14px; }
.nbody p { margin: 0 0 3px; }
.nname { font: 700 16px/1.4 var(--round); text-wrap: balance; }
.nbody a { color: var(--charcoal); }

/* 레시피 카드: 2열(모바일) → 3열 → 4열(PC). 이미지가 카드 폭 100% */
.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.rcard { position: relative; background: var(--tile); border: 1px solid var(--sub); border-radius: 20px; overflow: hidden; }
.rlink { display: block; text-decoration: none; }
.rimg { aspect-ratio: 4 / 3; background: var(--bg, var(--sub)); display: grid; place-items: center; }
.rimg { position: relative; }
.rimg.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* 세로 사진도 4:3 칸을 꽉 채우고 카드를 늘이지 않게 */
.rimg.icon img { width: 44%; }
.rbody { padding: 10px 12px 14px; }
.rbody h3 { font-size: 15px; margin-bottom: 2px; }
.rbody p { margin: 0 0 6px; }
.mini { display: flex; flex-wrap: wrap; gap: 4px; }
.mini span { font-size: 11px; background: var(--sub); border-radius: 10px; padding: 2px 8px; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }
.rcard .iconbtn { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: rgba(255, 252, 247, .94); border-color: transparent; }

/* 매장 분위기 사진: 16:9 */
.mcard { position: relative; flex: 0 0 84%; max-width: 440px; margin: 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: var(--sub); }
.mcard img { width: 100%; height: 100%; object-fit: cover; }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 22, 28, .86), rgba(20, 22, 28, .5) 32%, rgba(20, 22, 28, 0) 68%), linear-gradient(to bottom, rgba(20, 22, 28, .4), rgba(20, 22, 28, 0) 28%); }
.mcard figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font: 700 15px var(--round); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.mcard .pcredit { z-index: 1; top: 10px; bottom: auto; }
.banner { position: relative; display: block; margin-top: 36px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 260px; text-decoration: none; color: #fff; background: var(--charcoal); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 22, 28, .8), rgba(20, 22, 28, .1) 70%); }
.banner .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.banner .cap p { margin: 6px 0 0; font: 700 clamp(17px, 4.6vw, 22px) var(--round); }
.banner .tag { background: #fff; color: var(--charcoal); margin: 0; }
.banner + .pcredit { position: relative; display: block; text-align: right; color: var(--gray); text-shadow: none; padding: 4px 4px 0; }

.cgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }

@media (min-width: 600px) {
  .hero-slider { margin: 0; border-radius: 24px; overflow: hidden; }
  .rgrid { grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrail { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .mcard { flex: 1 1 calc(33.3% - 8px); max-width: none; min-width: 200px; }
  .nrail { margin: 0 -16px; }
  .qcats { margin: 0; padding-inline: 0; justify-content: center; }
  .qcat { flex-basis: 88px; font-size: 13px; }
}
@media (min-width: 900px) {
  :root { --tabbar: 64px; }
  .tabbar {
    inset: 0 0 auto 0; bottom: auto; height: 64px; padding: 0 max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; gap: 6px;
    border-top: 0; border-bottom: 1px solid var(--sub); background: rgba(255, 252, 247, .94); backdrop-filter: blur(8px);
  }
  .tabbar .navbrand { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; margin-right: auto; text-decoration: none; color: var(--charcoal); }
.tabbar .navbrand { align-items: flex-start; text-align: left; padding: 0; }
.tabbar .navbrand img { height: 28px; }
  .tabbar a[data-tab] { flex-direction: row; gap: 8px; font-size: 15px; height: 44px; padding: 0 16px; border-radius: 999px; }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar a[aria-current="page"] { background: var(--sub); }
  main { padding: 88px 24px 56px; }
  main[data-page="home"] { padding-top: 80px; }
  .hslides { height: 500px; }
  .hslide .bg { object-position: 50% 12%; }   /* 가로로 잘리므로 간판이 있는 위쪽을 보여 준다 */
  .hslide .cap { left: 48px; bottom: 64px; max-width: 620px; }
  .hbrand { display: none; }
  .rgrid { grid-template-columns: repeat(4, 1fr); }
  .ncard { flex-basis: 240px; }
  .nrail { margin: 0; padding: 0 0 6px; }
  .actions { bottom: 16px; }
}
@media (max-width: 899px) { .tabbar .navbrand { display: none; } }

/* 일본어 제목은 문절 단위로 줄바꿈한다(「早朝4/時」처럼 끊기지 않게). 지원하지 않는 브라우저는 기존대로 */
.hslide h2, .nname, .rbody h3, .sechead h2 { word-break: auto-phrase; text-wrap: balance; }

.nrail { align-items: stretch; }   /* 신상품 카드는 설명 길이와 관계없이 같은 높이 */
.banner .cap .sub { margin: 2px 0 0; font: 400 14px var(--font); opacity: .94; }
.hslide p, .sechead p, .nbody p, .banner .cap p { word-break: auto-phrase; text-wrap: pretty; }
.sechead p { text-wrap: balance; }

/* QA: 카드 안의 단독 출처 링크도 누르기 쉽게 */
.nbody p > a, .cgrid .card p > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 9px; margin: 0 -9px; }

/* QA: 일본어 줄바꿈은 문절 단위로, 제목·본문 전부(「）」만 한 줄에 남거나 「ニ／ューウェーブ」로 쪼개지는 것을 막는다) */
h1, h2, h3, .card b { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2 { text-wrap: balance; }
h3, .card b { text-wrap: pretty; }
.grow { min-width: 0; }
p, li, .sources { word-break: auto-phrase; text-wrap: pretty; }
.sources { line-height: 2.1; }
.mini span { text-wrap: balance; }
@media (max-width: 400px) { .card.row h3 { font-size: 15px; } }   /* 좁은 폭에서 매장명이 「店」 한 글자만 남기고 줄바꿈되지 않게 */
@media (max-width: 400px) { .card.row .thumb:not(.photo) { width: 52px; height: 52px; } .card.row { gap: 10px; } }
@media (max-width: 360px) { .card.row .thumb:not(.photo) { width: 44px; height: 44px; } }   /* 긴 매장명의 닫는 괄호가 다음 줄로 넘어가지 않게 (360폭 기준) */

/* 언어 선택(日本語 / 한국어): 모바일은 상단 바, PC는 상단 내비 오른쪽 끝. 누르는 영역 44px */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: env(safe-area-inset-top) 12px 0 16px;
  background: rgba(251, 247, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sub);
}
.topbrand { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; text-decoration: none; color: var(--charcoal); }
.topbrand img, .navbrand img { display: block; height: 26px; width: auto; }
.brandsub { font: 500 11px/1.2 var(--round); letter-spacing: .03em; color: var(--gray); white-space: nowrap; }
.langsw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--sub); }
.langsw button {
  min-width: 68px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 700 14px var(--font); color: var(--gray);
}
.langsw button[lang="ko"] { font-family: "Noto Sans KR", var(--font); }
.langsw button[aria-pressed="true"] { background: var(--tile); color: var(--charcoal); box-shadow: 0 1px 3px rgba(43, 47, 56, .12); }
.tabbar .navlang { display: none; }
[id^="sec-"] { scroll-margin-top: 64px; }
@media (min-width: 900px) {
  .topbar { display: none; }
  .tabbar .navlang { display: inline-flex; margin-left: 8px; }
  [id^="sec-"] { scroll-margin-top: 80px; }
}
/* 한국어 보기: 글꼴 우선순위를 바꾸고(한글이 없는 Zen Maru Gothic로 제목이 빠지지 않게) 어절 단위로 줄바꿈한다 */
html[lang="ko"] { --font: "Noto Sans KR", "Noto Sans JP", system-ui, sans-serif; --round: "Noto Sans KR", "Zen Maru Gothic", sans-serif; }
html[lang="ko"] body { word-break: keep-all; }
html[lang="ko"] .hslide h2, html[lang="ko"] .nname, html[lang="ko"] .rbody h3, html[lang="ko"] .sechead h2,
html[lang="ko"] .hslide p, html[lang="ko"] .sechead p, html[lang="ko"] .nbody p, html[lang="ko"] .banner .cap p,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .card b, html[lang="ko"] p, html[lang="ko"] li, html[lang="ko"] .sources { word-break: keep-all; }
html[lang="ko"] [lang="ja"] { word-break: auto-phrase; overflow-wrap: anywhere; }   /* 한국어 필드가 아직 없어 일본어로 대체되는 글은 일본어 줄바꿈 규칙으로 */

/* 가로 목록: 스냅 때 첫 카드가 화면 끝(x=0)에 붙지 않게 시작 여백만큼 스냅 기준을 안쪽으로 */
.rail, .nrail, .mrail { scroll-padding-inline: 16px; }
@media (min-width: 900px) { .nrail { scroll-padding-inline: 0; } }

/* コンビニ 탭: 목록 / 지도 */
.seg.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 400px) { .seg button { font-size: 13px; padding: 0 2px; } }   /* 4개(レシピ·商品·お店·場所)가 344px에서도 한 줄 */
.chips .chip[data-act="locate"] { margin-left: auto; }
.warnbox a { color: var(--charcoal); font-weight: 700; }
.mapwrap { position: relative; margin: 8px 0 16px; }
.map { height: clamp(320px, calc(100svh - 440px), 640px); border-radius: 16px; background: var(--sub); overflow: hidden; }   /* 제목·전환·칩 아래에서 한 화면에 들어오게 */
.mapcard {
  position: fixed; left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(var(--tabbar) + 8px + env(safe-area-inset-bottom)); z-index: 20; max-width: 704px; margin: 0 auto; padding: 14px 12px 12px; border-radius: 16px;   /* 하단 탭 바로 위에 뜬다 */
  background: var(--tile); box-shadow: 0 6px 24px rgba(43, 47, 56, .22);
}
.mapcard[hidden] { display: none; }

.mapclose { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tile); box-shadow: 0 2px 10px rgba(43, 47, 56, .22); font: 400 26px/1 var(--font); color: var(--charcoal); cursor: pointer; }   /* 카드 위에 뜨는 닫기 버튼(제목 폭을 줄이지 않는다) */
.mapbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mapbtns .btn { margin: 0; min-height: 48px; font-size: 14px; text-align: center; padding: 0 8px; }
.nearby { margin: 4px 0 8px; }
.nearby p { margin-bottom: 0; }
@media (max-width: 380px) { .mapbtns { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .mapcard { position: absolute; left: 16px; right: auto; bottom: 16px; width: min(420px, calc(100% - 32px)); max-width: none; margin: 0; } }   /* PC: 지도 왼쪽 아래에 붙인다 */

/* 지도 핀: 코랄 핀 + 머리의 흰 원 안에 매장 아이콘(체인 색·로고 없음). 핀 지름 약 41px, 누르는 영역 44×56px */
.pin { position: relative; width: 44px; height: 56px; cursor: pointer; transform-origin: 50% 100%; transition: transform .15s; filter: drop-shadow(0 2px 3px rgba(43, 47, 56, .35)); }
.pin svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--coral); stroke: #fff; stroke-width: 2.5; }
.pin span { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pin img { width: 22px; height: 22px; object-fit: contain; }
.pin.sel { transform: scale(1.22); }
.pin.sel svg { stroke: var(--charcoal); }
.me { width: 16px; height: 16px; border-radius: 50%; background: var(--charcoal); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(43, 47, 56, .3); }

/* ひとこと韓国語: 카테고리 타일 · 상황 카드 · 말풍선 · 아래에서 올라오는 시트 */
.phead { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 4px 0 2px; text-decoration: none; color: var(--charcoal); }
.phead b { font: 700 17px var(--round); }
.phead span { font-size: 14px; font-weight: 700; }
.ptiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 16px; }
.ptile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; min-height: 120px;
  border-radius: 16px; background: var(--tile); border: 1px solid var(--sub); text-decoration: none; color: var(--charcoal);
}
.ptile:active { background: var(--sub); }
.pticon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sub); overflow: hidden; }
.pticon img { width: 44px; height: 44px; object-fit: contain; }
.ptile b { font: 700 15px/1.4 var(--round); }
.pprog { position: absolute; top: 10px; right: 10px; min-width: 40px; padding: 2px 8px; border-radius: 999px; background: var(--sub); font-size: 12px; font-weight: 700; text-align: center; }
.pcards { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; border-radius: 20px; background: var(--tile); border: 1px solid var(--sub); }
.pillu { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--bg, var(--sub)); display: grid; place-items: center; overflow: hidden; }
.pillu.icon { aspect-ratio: 16 / 7; }   /* 일러스트가 없을 때(아이콘 대체)는 낮게, 일러스트가 오면 4:3 */
.pillu.icon img { width: 96px; height: 96px; }
.pillu.photo img { width: 100%; height: 100%; object-fit: cover; }
.pq { font: 700 17px/1.5 var(--round); }
.plines { display: flex; flex-direction: column; gap: 10px; }
.pl { display: flex; flex-direction: column; gap: 2px; max-width: 88%; }
.pl-staff { align-self: flex-start; }
.pl-me { align-self: flex-end; align-items: flex-end; }
.who { font-size: 12px; font-weight: 700; color: var(--gray); }
.bubble { padding: 10px 14px 8px; border-radius: 16px; color: var(--charcoal); }
.pl-staff .bubble { background: var(--sub); border-top-left-radius: 4px; }
.pl-me .bubble { background: var(--coral-soft); border-top-right-radius: 4px; }
.bubble p { margin: 0; }
.pko { font: 700 18px/1.5 "Noto Sans KR", var(--font); word-break: keep-all; }
.pl.key .pko { font-size: 22px; }
.pread { font-size: 14px; color: var(--charcoal); }
.pja { font-size: 14px; color: #454A55; }
.speak { display: none; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; margin: 2px 0 0 -8px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: 700 13px var(--font); color: var(--charcoal); cursor: pointer; }
.has-ko-voice .speak, .speak.has-audio { display: inline-flex; }   /* 녹음이 있는 문장은 한국어 음성이 없는 기기에서도 보인다 */
.ptip { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sub); font-size: 14px; }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbtns .btn { margin: 0; min-height: 48px; font-size: 14px; padding: 0 8px; text-align: center; }
.sheet-back { position: fixed; inset: 0; z-index: 39; background: rgba(43, 47, 56, .45); }
.psheet {
  position: fixed; left: env(safe-area-inset-left); right: env(safe-area-inset-right); bottom: 0; z-index: 40; max-height: 84svh; overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--ivory-bg); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 32px rgba(43, 47, 56, .25); outline: none;
  animation: sheetup .22s ease-out;
}
.psheet header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin: 0 -16px; padding: 6px 8px 6px 16px; background: var(--ivory-bg); border-bottom: 1px solid var(--sub); }
.psheet header b { font: 700 16px var(--round); }
.sheetx { position: static; box-shadow: none; background: var(--sub); }
.psheet .pcards { margin-top: 14px; }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .psheet { animation: none; } }
@media (min-width: 600px) { .ptiles { grid-template-columns: repeat(4, 1fr); } .pcards { gap: 22px; } }
@media (min-width: 900px) { .psheet { left: max(16px, calc((100vw - 720px) / 2)); right: max(16px, calc((100vw - 720px) / 2)); border-radius: 22px 22px 0 0; } }
html[lang="ko"] .pko { word-break: keep-all; }

/* 직접 촬영 사진 갤러리(매장 상세): 큰 첫 장 + 가로 스크롤 썸네일 */
.gal { margin: 0 0 8px; }
.galbig { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sub); }
.galbig img { width: 100%; height: 100%; object-fit: cover; }
.galcap { margin: 8px 0 0; font-size: 14px; }
.gal .note { margin: 2px 0 8px; }
.galrail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: none; scroll-padding-inline: 2px; }
.galrail::-webkit-scrollbar { display: none; }
.galthumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--sub); cursor: pointer; scroll-snap-align: start; }
.galthumb[aria-pressed="true"] { border-color: var(--charcoal); }
.galthumb img { width: 100%; height: 100%; object-fit: cover; }
.place .pgal { padding: 8px 12px 0; }   /* 특집 장소 카드: 대표 사진 아래 작은 사진 줄 */
.place .pgal .galthumb { flex-basis: 56px; width: 56px; height: 56px; border-radius: 10px; }
/* 목록·지도 카드의 작은 그림: 사진이 있으면 정사각 */
.thumb.sphoto { width: 64px; height: 64px; }
.thumb.sphoto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 400px) { .card.row .thumb.sphoto { width: 56px; height: 56px; } }
@media (max-width: 360px) { .card.row .thumb.sphoto { width: 48px; height: 48px; } }
.mcard > a:not(.pcredit) { display: block; height: 100%; }
.mcard .pcredit.own { padding: 3px 9px; border-radius: 999px; background: rgba(20, 22, 28, .55); }   /* 밝은 사진 위에서도 읽히게 */
@media (max-width: 360px) { .htile span { word-break: auto-phrase; overflow-wrap: anywhere; } }   /* 11px 유지, 좁은 폭에서는 단어 단위로 줄바꿈 */

/* 카테고리 타일(홈 「カテゴリから探す」) · 카테고리 화면 · 상품 카드 */
.ctiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ctile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sub); color: #fff; text-decoration: none; }
.ctile img { width: 100%; height: 100%; object-fit: cover; }
.ctile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 22, 28, .82), rgba(20, 22, 28, .3) 48%, rgba(20, 22, 28, 0) 72%); }
.ctile span { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 1; font: 700 15px/1.35 var(--round); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); word-break: auto-phrase; }
@media (min-width: 700px) { .ctiles { grid-template-columns: repeat(3, 1fr); } }
.cathero { position: relative; margin: 0 0 12px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--sub); }
.cathero img { width: 100%; height: 100%; object-fit: cover; }
.cathero .pcredit { padding: 3px 9px; border-radius: 999px; background: rgba(20, 22, 28, .55); }
.prodlist { display: grid; gap: 12px; }
.prodcard { position: relative; display: flex; gap: 12px; padding: 12px; border: 1px solid var(--sub); border-radius: 16px; background: var(--tile); }
.prodcard .prodph { flex: 0 0 84px; height: 84px; border-radius: 12px; background: #fff; overflow: hidden; }
.prodcard .prodph img { display: block; width: 100%; height: 100%; object-fit: contain; }
.prodcard .prodph.own img { object-fit: cover; }   /* 운영자 사진(장면·손에 든 상품)은 칸을 채우고 위치는 credits object_position */
.prail .prodph.own { height: auto; aspect-ratio: 4 / 3; }
.promocond { margin: 0 0 4px; font-weight: 700; }
.prodcard .prodb { flex: 1; min-width: 0; }
.prodcard h3 { margin: 0 40px 2px 0; font-size: 16px; word-break: auto-phrase; }
.prodcard .prodb p { margin: 4px 0 0; }
.prodcard .iconbtn { position: absolute; top: 6px; right: 6px; }

/* 편의점 4사 소개(특집 chains): 대표색 띠 + 로고(체인 식별용, 색·모양 그대로) */
.chains { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 8px; }   /* minmax(0,1fr): 카드 안 칩이 열을 화면 밖으로 밀지 않게 */
.chain { padding: 20px 16px 12px; border: 1px solid var(--sub); border-radius: 16px; background: var(--tile); box-shadow: inset 0 6px 0 var(--cc); }   /* 대표색 띠: 테두리 대신 안쪽 그림자라 둥근 모서리를 따라간다 */
.chain h2 { margin: 0; font-size: 19px; }
.chead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.clogo { flex: none; width: 76px; height: 40px; object-fit: contain; object-position: left center; }
.cnum { margin: 4px 0 0; font-size: 15px; }
.cnum b { font: 700 24px var(--round); }
.cfeat { margin: 8px 0 4px; padding-left: 1.2em; }
.cfeat li { margin: 4px 0; }

/* 홈 가로 줄(日本人に人気の商品 · 今月の1+1・2+1): 상품 카드를 옆으로 넘긴다 */
.prail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.prail::-webkit-scrollbar { display: none; }
.prail .prodcard { flex: 0 0 min(70%, 280px); flex-direction: column; scroll-snap-align: start; }   /* 가로 줄 카드: 사진을 위로 올려 글자 폭을 확보 */
.prail .prodph { flex: none; width: 100%; height: 120px; }
.prail .prodcard h3 { margin-right: 0; }
.prodcard.promo { text-decoration: none; color: inherit; flex-basis: min(60%, 230px); }
.tag.promo { background: var(--coral-soft); color: var(--charcoal); font-weight: 700; margin: 0 0 4px; }
@media (min-width: 900px) { .prail { margin: 0; padding-inline: 0; } }
@media (min-width: 700px) { .cathero { aspect-ratio: 16 / 9; } }   /* 세로 사진이 많아 모바일은 4:3, 넓은 화면은 16:9 */
/* 「いま話題」: 글자만 있는 카드 줄 대신 맨 아래 작은 목록(사진이 있는 화제 상품은 히어로·新商品 줄에 있다) */
.trendlist { margin: 0; padding-left: 1.1em; font-size: 14px; }
.trendlist li { margin: 6px 0; }
.chain .cstores { margin: 16px 0 8px; font-size: 15px; }   /* 체인 카드 아래 「このチェーンの注目店」 */
.sfeat { margin: 6px 0 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }   /* 카드의 특징 한 줄은 2줄까지(전체 문장은 매장 상세) */
/* 「今月の1+1・2+1」: 운영자 핫바 사진은 제목 옆 작은 사진 1장, 본문은 공식 상품 사진 카드 */
.promothumb { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
#sec-promo .chips { margin: 0 0 10px; }
.prodlist + .btn { margin-top: 12px; }
.cathero.more { aspect-ratio: 16 / 9; }   /* 카테고리·가이드 화면의 두 번째 사진은 낮게(상품 목록이 아래로 밀리지 않게) */
/* 체인 로고 타일(사진이 없는 매장): 흰 타일 가운데에 로고. 가로로 아주 긴 emart24 도 높이 18px 이상이 되게 타일을 넓게 */
.thumb.logo, .card.row .thumb.logo { width: 100px; height: 60px; background: #fff; border: 1px solid var(--sub); }   /* .card.row 규칙은 좁은 화면의 52px 썸네일 줄이기(위)를 되돌린다: 로고가 18px 아래로 작아지지 않게 */
.thumb.logo { display: flex; align-items: center; justify-content: center; }
.thumb.logo img { width: auto; height: auto; max-width: calc(100% - 8px); max-height: calc(100% - 8px); object-fit: contain; }   /* 비율 그대로 타일 안에 맞춤(세로로 긴 세븐일레븐도 잘리지 않게) */
.hero.logo { background: #fff; border: 1px solid var(--sub); }   /* 사진이 없는 매장의 상세 큰 이미지: 체인 로고 타일 */
.hero.logo img { width: min(56%, 260px); height: auto; max-height: 38%; object-fit: contain; }
.gal .plink { color: inherit; }
/* 4사 특집 「日本人に役立つサービス」: 체인 로고(작게)·종류 배지·제목·한 줄·범위·출처 */
.jplist { display: grid; gap: 12px; margin-top: 10px; }
.jp { padding: 12px 14px; border: 1px solid var(--sub); border-radius: 16px; background: var(--tile); }
.jphead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jplogo { height: 20px; width: auto; max-width: 100px; object-fit: contain; }
.tag.jpkind { background: var(--coral-soft); color: var(--charcoal); font-weight: 700; margin: 0; }
.jp h3 { margin: 8px 0 2px; font-size: 16px; }
.jp p { margin: 4px 0 0; }
/* 신상품 카드: 보도자료 사진은 잘라 채우고(cover), 사진이 없는 카드는 NEW 배지만 */
.nimg.press img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.nhead { padding: 12px 14px 0; background: var(--sub); }
.ncard.nophoto { align-self: flex-start; }   /* 사진이 없는 카드는 옆 카드 높이까지 늘이지 않는다 */
.nhead .badge { position: static; display: inline-block; }
.nimg .badge { z-index: 1; }   /* 보도자료 사진처럼 카드를 꽉 채우는 사진 위에서도 NEW 배지가 보이게 */
/* 카테고리·가이드의 보조 사진: 작은 가로 줄(썸네일 + 한 줄 크레딧) */
.photorow { display: flex; gap: 10px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.photorow::-webkit-scrollbar { display: none; }
.photorow figure { flex: 0 0 min(44%, 180px); margin: 0; }
.photorow img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: var(--sub); }
.photorow figcaption { margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--gray); }
