/* 일본어 가게 화면(/ja)의 덮어쓰기. 한국판 styles.css · storefront.css · yeobaek.css 를 그대로 먼저 읽고, 여기서는 글꼴·줄바꿈·일본어 문구·準備中 표시만 바꾼다. */
:root {
  --yb-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --yb-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font: var(--yb-sans);
}
html[lang="ja"] body { font-family: var(--yb-sans); }
/* 한국어 어절 단위 줄바꿈(keep-all)은 일본어에서는 줄이 넘치므로 모두 푼다 */
html[lang="ja"] *, html[lang="ja"] *::before, html[lang="ja"] *::after { word-break: normal !important; line-break: strict; }
html[lang="ja"] .yb-display, html[lang="ja"] .yb-title, html[lang="ja"] .yb-poster-title, html[lang="ja"] .yb-mall-hook, html[lang="ja"] .yb-entry-story p { text-wrap: balance; }

/* CSS 속 한국어 문구 덮어쓰기(한국판 yeobaek.css 51·2064행) */
.yb-nav .is-free::after { content: "無料"; }
.yb-track li.is-now::before { content: "いま"; }

/* 머리: 한국어 글자 로고 그림 대신 엠블럼 + 일본어 글자 */
.yb-topbar .brand-lettering { display: none; }
.yb-topbar .ja-brand { display: grid; gap: 2px; text-align: left; }
.yb-topbar .ja-brand .brand-text { font-family: var(--yb-serif); font-weight: 800; font-size: 21px; letter-spacing: 0.04em; color: var(--yb-ink); }
.yb-topbar .ja-brand .brand-sub { font-family: var(--yb-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--yb-gold); }
.yb-topbar .auth-chip { white-space: nowrap; }
.yb-cattabs button { white-space: nowrap; }
.ja-loading { padding: 40px 20px; text-align: center; }

/* 準備中(판매 스위치 꺼짐·일본 미제공) 표시: 눌리지 않는 단추는 흐리게, 한 줄 표지로 */
.yb-btn.is-soon, .yb-btn.is-soon:hover { background: var(--yb-paper-3); color: var(--yb-ink-3); border-color: transparent; cursor: not-allowed; opacity: 1; transform: none; }
.yb-sticky .yb-btn.is-soon { min-width: 96px; }
.yb-book.is-soon .yb-book-cover, .yb-mitem.is-soon, .yb-home-free button.is-soon { opacity: 0.62; cursor: default; }
.yb-book.is-soon .yb-book-cover img { filter: saturate(0.7); }
.yb-mitem.is-soon .yb-mitem-price, .yb-book.is-soon .yb-book-foot strong { color: var(--yb-ink-3); }
.yb-home-free button.is-soon small { color: var(--yb-seal); font-weight: 700; }
.yb-kakao.is-soon .yb-kakao-btn { opacity: 0.5; cursor: default; }
.yb-kakao.is-soon .yb-kakao-btn[aria-disabled] { pointer-events: none; }
.site-footer .footer-line { display: grid; justify-items: center; gap: 6px; margin: 0 auto 14px; }
.site-footer .footer-line-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #06C755; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.site-footer .footer-line-btn:hover { background: #05b34c; }
.site-footer .footer-line-btn:focus-visible { outline: 3px solid #1d6b3e; outline-offset: 2px; }
.site-footer .footer-line-note { margin: 0; font-size: 12px; line-height: 1.6; }
.site-footer .footer-line-qr { display: none; width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 8px; }
@media (min-width: 960px) { .site-footer .footer-line-qr { display: block; } }
.site-footer .footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin: 0 8px; font-size: 13px; }
.site-footer .footer-business { margin-top: 10px; font-size: 12px; line-height: 1.8; color: var(--yb-ink-3); }
.site-footer .footer-business a { color: inherit; }
.yb-legal-links a { color: var(--yb-ink-2); margin-right: 14px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* 상세: 첫 장 CTA 줄의 링크형 단추 */
.yb-entry-story .yb-btn { margin: 4px 8px 4px 0; text-decoration: none; }
.yb-entry-story small { display: block; margin-top: 10px; }
.yb-toc-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--yb-gold); }
.yb-vc-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 상세: 한국판 CSS 그대로 — 첫 화면(입력 창 자리) 뒤에 「詳しく見る」로 설명 창(.is-focus)을 연다. 설명 창에서 한국판이 보이는 칸(후기·표·FAQ)에 일본어판의 후기 요약·鑑定の流れ도 더한다. */
.yb-detail.is-mall.is-focus .yb-detail-body > :is(.yb-making, .yb-reviews) { display: block !important; }
.yb-detail.is-mall.is-focus .ja-focus-view { padding: 18px 18px 0; }
.yb-detail.is-mall.is-focus .ja-focus-view .yb-back { color: var(--yb-ink-3); }
.yb-detail.is-mall.is-focus .ja-focus-view .yb-block { margin: 22px 0 0; padding: 0; background: none; box-shadow: none; }
.yb-detail.is-mall.is-focus .ja-focus-apply { margin: 26px 0 8px; }
.yb-detail.is-mall.is-focus .yb-sticky-sub { display: none; }
.yb-entry-story .yb-btn.is-soon, .yb-entry-story .yb-btn.is-soon:hover { background: rgba(255, 255, 255, 0.14); color: #efe4cb; border: 1px dashed rgba(255, 247, 232, 0.5); }
.yb-detail.is-mall.is-focus .ja-focus-apply .yb-btn.is-soon { background: var(--yb-paper-3); color: var(--yb-ink-3); border: 1px dashed var(--yb-line); }
.yb-chat-card ul { margin: 8px 0 0; padding-left: 1.2em; }
.yb-chat-card p { margin: 6px 0 0; }
.yb-chat-card b { display: block; color: var(--yb-ink); }
body:has([data-view="detail"].is-active) .site-footer { color: #efe4cb; border-top-color: rgba(255, 247, 232, 0.3); }
body:has([data-view="detail"].is-active) .site-footer .footer-links a, body:has([data-view="detail"].is-active) .site-footer .footer-business, body:has([data-view="detail"].is-active) .site-footer .footer-business a, body:has([data-view="detail"].is-active) .site-footer .footer-kakao { color: #efe4cb; }

.yb-detail.is-mall:not(.is-focus) .yb-teaser .yb-btn.ink.is-soon, .yb-detail.is-mall:not(.is-focus) .yb-teaser .yb-btn.ink.is-soon:hover { background: rgba(255, 255, 255, 0.14); color: #efe4cb; border: 1px dashed rgba(255, 247, 232, 0.5); }

/* Japanese free topics: Korean illustration cards and layout retained. */
.fh-card{text-decoration:none}.fh-head .yb-link{white-space:nowrap}

.yb-line .yb-line-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.yb-line .yb-line-btn { background: #06C755; color: #fff; min-height: 48px; text-decoration: none; }
.yb-line .yb-line-btn:hover { background: #05b34c; filter: none; }
.yb-line .yb-line-btn:focus-visible { outline: 3px solid #1d6b3e; outline-offset: 2px; }
.yb-line .yb-line-qr { display: none; width: 112px; height: 112px; padding: 6px; border-radius: 8px; background: #fff; }
@media (min-width: 960px) { .yb-line .yb-line-qr { display: block; } }
@media (max-width: 640px) { .yb-line .yb-kakao-in { flex-direction: column; align-items: stretch; } .yb-line .yb-line-actions { justify-content: center; } .yb-line .yb-line-btn { width: 100%; } }

.yb-line .yb-line-benefit { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--yb-ink-2); }
.yb-line .yb-line-benefit a { color: #06803a; font-weight: 700; white-space: nowrap; }

/* ── .309 한국판 .301~.307 을 일본어 화면에 옮긴 것(2026-11-24) ── */
/* 홈 후기 줄(먹색 판, 한국판 .306 공유 CSS): 「韓国版のご感想を訳したもの」 고지가 어두운 바탕에서도 읽혀야 한다 */
.yb-home > .yb-voices.is-strip .yb-note { margin: 0 14px 12px 0; font-size: 12px; line-height: 1.65; color: rgba(255, 247, 232, .9); }
.yb-home > .yb-voices.is-strip .yb-kicker { display: none; }
.yb-home > .yb-voices.is-strip .yb-vc-sum span { color: rgba(255, 247, 232, .9); }
/* 감정서 혜택 띠(한국판 .304)의 이름표 글자: 공유 CSS에는 한국어가 들어 있다 */
html[lang="ja"] .yb-best-benefit > b::after { content: "いまの特典"; }
html[lang="ja"] .yb-best-benefit .yb-product-promo-offer, html[lang="ja"] .yb-best-benefit .yb-product-promo-group { font-size: 13.5px; line-break: strict; word-break: auto-phrase; text-wrap: pretty; }
/* 상품 첫 화면의 값·무료 안내(한국판 .301·.305). 단추가 여러 개라 줄 사이를 조금 좁힌다 */
html[lang="ja"] .yb-entry-story p.yb-entry-free { text-wrap: pretty; }
/* 고정 띠의 값: 휴대폰에서는 이름 아래 한 줄로(한국판 .301). 넓은 화면은 보조 줄(yb-sticky-sub)이 값을 함께 보여 준다 */
.yb-sticky .yb-sticky-price { display: none; }
@media (max-width: 899px) {
  .yb-detail.is-mall .yb-sticky:has(.yb-sticky-price) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "s b"; align-items: center; row-gap: 1px; }
  .yb-detail.is-mall .yb-sticky:has(.yb-sticky-price) .yb-sticky-name { grid-area: n; }
  .yb-detail.is-mall .yb-sticky .yb-sticky-price { grid-area: s; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.4 var(--yb-sans); color: var(--yb-ink-2); }
  .yb-detail.is-mall.is-focus .yb-sticky .yb-sticky-price { color: #ffe7a3; }
  .yb-detail.is-mall .yb-sticky:has(.yb-sticky-price) .yb-btn { grid-area: b; }
}
/* 키가 작은 휴대폰(앱 안 브라우저 등)에서도 상품 첫 화면의 첫 단추가 잘리지 않게(한국판 .305): 입력 전 첫 창에서만 그림 자리를 화면 키에 맞춘다 */
@media (max-width: 639px) {
  html[lang="ja"] .yb-detail.is-mall.is-name-first:not(.is-focus):has([data-yb-entry]:not([hidden])) { padding-top: clamp(120px, calc(100svh - 500px), 430px); }
}
/* 맛보기 결과의 값 한 줄 */
.jt-price { margin: 14px 0 0; text-align: center; }
.jt-price b { font-size: 1.25em; }

/* .310 분야 대표 카드(휴대폰 2열, 361~480px): 값 한 줄(.309)이 더해지고 일본어 물음 문구가 두 줄로 넘어가 글 판(223px)이 카드(218px)를 다 덮어 인물 그림이 가려졌다.
   글은 그대로 두고 카드를 세로로 늘려 위쪽에 그림 자리를 둔다(한국판 공유 CSS는 건드리지 않는다) */
@media (min-width: 361px) and (max-width: 480px) {
  html[lang="ja"] .yb-home .yb-home-products .yb-home-product { aspect-ratio: 4 / 6.6; }
}
