/* ============ SEARED BONITO — 読みもの (/ja/journal/) ============ */
/* Long-form reading on the site's night ground: one column of about 36em, a wide photo
   at the top (the app page's own photography), the brand amber on the kicker and the
   step numbers only. The footer is the legal pages' (fire line + bonito lockup). */

.jr { padding: 120px 0 clamp(64px, 9vw, 120px); }
.jr-head, .jr-body, .jr-app, .jr-related, .jr-cards--list {
  max-width: 760px; margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left));
}
.jr-head--list, .jr-cards--list { max-width: 1080px; }

.jr-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13.5px; color: var(--muted-2); margin-bottom: 26px; }
.jr-crumbs a { color: var(--muted); text-decoration: none; }
.jr-crumbs a:hover { color: var(--ink); }
.jr-head .kicker { margin-bottom: 14px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.jr-title {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); line-height: 1.3; font-weight: 700;
  letter-spacing: 0; text-wrap: balance; font-feature-settings: "palt";
}
.jr-lede { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.9; color: rgba(244, 241, 234, .86); }
.jr-meta { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }

/* the photo: wide, the app page's own picture */
.jr-hero { max-width: 1100px; margin: clamp(32px, 5vw, 52px) auto 0; padding-inline: max(16px, env(safe-area-inset-left)); }
.jr-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.jr-hero figcaption, .jr-fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted-2); }

/* the text */
.jr-body { margin-top: clamp(36px, 5vw, 56px); }
.jr-body > p, .jr-body li { font-size: clamp(1rem, .96rem + .2vw, 1.08rem); line-height: 2; color: rgba(244, 241, 234, .84); }
.jr-body > p { margin-bottom: 1.15em; }
.jr-body h2 {
  margin: clamp(52px, 7vw, 72px) 0 18px; padding-top: 6px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.45; font-weight: 700; color: var(--ink);
  scroll-margin-top: 96px;
}
.jr-body h3 { margin: 34px 0 10px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; font-weight: 700; color: var(--flame-2); }
.jr-body strong { color: var(--ink); font-weight: 700; }
.jr-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 176, 58, .6); text-underline-offset: 3px; }
.jr-body a:hover { text-decoration-color: var(--flame-2); }
.jr-body ul, .jr-body ol { margin: 0 0 1.3em 1.3em; display: grid; gap: 6px; }
.jr-body ul { list-style: disc; }
.jr-body ul li::marker { color: var(--flame-2); }

/* steps: numbered, the number in the brand amber */
.jr-body ol.jr-steps { list-style: none; margin-left: 0; counter-reset: jr; gap: 14px; }
.jr-body ol.jr-steps > li { counter-increment: jr; position: relative; padding-left: 2.6em; }
.jr-body ol.jr-steps > li::before {
  content: counter(jr); position: absolute; left: 0; top: .2em;
  width: 1.75em; height: 1.75em; border-radius: 50%; display: grid; place-items: center;
  font-size: .9em; font-weight: 700; color: #02060d; background: var(--flame-2); line-height: 1;
}

/* figures inside the text */
.jr-fig { margin: 28px 0 32px; }
.jr-fig img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.jr-fig--phone { max-width: 300px; margin-inline: auto; text-align: center; }
.jr-fig--phone img { border-radius: 22px; }
.jr-fig--tablet { max-width: 480px; margin-inline: auto; text-align: center; }
.jr-fig--tablet img { border-radius: 18px; }
.jr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.jr-pair .jr-fig { margin: 0; }

/* a short aside in the text (free and Pro, what the app does not do) */
.jr-box {
  margin: 26px 0 30px; padding: 20px 22px; border-radius: 14px;
  background: rgba(244, 241, 234, .035); box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.jr-box > p:last-child, .jr-box > ul:last-child { margin-bottom: 0; }
.jr-box-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 1rem; }
.jr-box p, .jr-box li { font-size: .98rem; line-height: 1.9; color: rgba(244, 241, 234, .84); }
.jr-fine { font-size: .9rem !important; color: var(--muted) !important; }

/* the app: icon, one line, the store's own badge and the app page */
.jr-app {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: clamp(48px, 6vw, 64px); padding-block: 24px; border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong);
}
.jr-app-icon { flex: none; width: 64px; height: 64px; border-radius: 15px; }
.jr-app-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.jr-app-line { margin-top: 4px; font-size: .98rem; line-height: 1.8; color: var(--muted); }
.jr-app-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.jr-store { display: inline-flex; line-height: 0; border-radius: 8px; }
.jr-store img { height: 40px; width: auto; }
.jr-store:focus-visible, .jr-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.jr-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.jr-more span { color: var(--accent); }

.jr-related { margin-top: clamp(56px, 7vw, 80px); }
.jr-related-h { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.jr-related .jr-cards { margin-top: 0; }
.jr-cards--list { margin-top: clamp(36px, 5vw, 56px); }

.legal-footer { padding: 0 24px max(6svh, env(safe-area-inset-bottom)); text-align: center; }

@media (max-width: 560px) {
  .jr { padding-top: 104px; }
  .jr-app { flex-direction: column; }
  .jr-pair { grid-template-columns: 1fr; }
}

/* The list page's heading and lead are the only lines above the cards, and on a phone the
   fallback font and BIZ UDPGothic break them differently (412px: title 2 vs 3 lines; 360px:
   lead 4 vs 3). When the web font arrived the cards moved: CLS 0.18–0.24 (Lighthouse,
   2026-11-19). The taller of the two is reserved, so nothing moves. */
@media (max-width: 560px) { .jr-head--list .jr-title { min-height: 3.9em; } }  /* 3 lines × 1.3 */
@media (max-width: 380px) { .jr-head--list .jr-lede { min-height: 7.6em; } }   /* 4 lines × 1.9 */
