/* midnightclue — 일본어 화면(/ja/)에만 붙는 CSS. site.css 뒤에 불려서 글꼴과 줄바꿈만 바꾼다 (모양은 한국어 화면과 같다) */

:root {
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --hand: 'Yomogi', 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
}

/* 한국어 화면은 낱말 단위로 줄을 바꾼다. 일본어는 띄어쓰기가 없어서 긴 글은 글자 단위로 채우고(금칙은 strict),
   제목·단추·이름표 같은 짧은 글은 문절 단위로 바꾼다 (크롬·엣지. 다른 브라우저는 글자 단위) */
body { word-break: normal; line-break: strict; }
h1, h2, h3, h4, th, dt, button, label, legend, summary, figcaption,
.hero__lead, .subhead__lead, .btn-play__label, .link-arrow, .kicker, .case__sub, .case__line, .case__warn, .index-card p,
.rsky-stage__title, .rsky-stage__card p, .rform__for, .rform__check span, .desk__text, .note__title { word-break: auto-phrase; }

/* 손글씨: 요모기는 나눔 펜보다 같은 크기에서 훨씬 크게 보인다 (나눔 펜은 글자가 작아 한국어 화면이 22~38px를 쓴다).
   자리마다 눈에 같은 크기로 보이게 줄인다 */
.hand { letter-spacing: .03em; line-height: 1.35; }
.kicker.hand { font-size: 19px; }
.subhead__note.hand { font-size: 19px; }
.sec-head__note.hand { font-size: 18px; }
.case__when.hand { font-size: 15px; }
.horizon__sign.hand { font-size: 19px; }
.rsky-box__empty.hand { font-size: 19px; }
.rsky-stage__title.hand { font-size: 26px; line-height: 1.4; }
.rsky-wrap__first.hand { font-size: 15px; }
.rsky-done .hand { font-size: 18px; }
.argnote__kicker.hand { font-size: 17px; }
.assure__title.hand { font-size: 18px; }
.board__title.hand { font-size: 14.5px; }
.chero__cap.hand, .scene__cap.hand, .strip__cap.hand, .ledger__next.hand { font-size: 15px; }
.folder__note.hand { font-size: 14px; }
.relic__cap.hand { font-size: 17px; }
.ledger-after__hand.hand { font-size: 19px; }
.letter__sign.hand { font-size: 21px; }
.post__sign.hand { font-size: 20px; }
.finale__line.hand { font-size: clamp(17px, 1.75vw, 22px); }

/* 첫 화면 제목: 가나와 한자가 섞여 한글보다 폭이 넓다 */
/* 둘째 줄 「手がかりを置いておきます」(열두 자)가 글 칸(화면의 42%, 많아야 560px) 한 줄에 들어가는 크기 */
.hero__title { font-size: clamp(30px, 3.05vw, 40px); line-height: 1.32; letter-spacing: .01em; }
.subhead__title { letter-spacing: .02em; }

/* 「일본어판에 대하여」 쪽지: 사건 카드 옆 칸 */
.case--note { align-self: start; padding: 26px 28px; border: 1px dashed rgba(201, 166, 91, .45); border-radius: 4px; }
.case--note .case__title { font-size: 21px; }
.case--note .case__line + .case__line { margin-top: 12px; }
.case--note a { color: var(--gold); text-underline-offset: 4px; }

/* 다른 언어 후기 줄 (한국어 화면의 것과 같은 자리) */
.foot__lang { margin-top: 14px; }

/* 후기 규칙 아래의 번역 안내 한 줄 */
.ja-note { margin-top: 28px; max-width: 46em; font-size: 14.5px; line-height: 1.9; color: var(--ink-night-2); }
.ja-note a { color: var(--gold); text-underline-offset: 4px; }

/* 휴대폰: 일본어 단추 글은 길다 → 줄을 바꿔 화면 안에 들어가게 */
@media (max-width: 760px) {
  .btn-play { max-width: 100%; }
  .btn-play__label { white-space: normal; font-size: 16px; }
  .btn-play--small .btn-play__label { font-size: 15px; }
  .masthead__play { padding: 0 10px; font-size: 13px; }
}

/* 사건 페이지 제목 아래의 원제(한글 붓글씨 로고를 작게) */
.chero__orig { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; letter-spacing: .16em; color: var(--ink-night-2); }
.chero__orig img { width: 128px; height: auto; opacity: .82; filter: none; }
