/* Rana shared type roles. Keep this stylesheet last on every page. */
:root{
  --serif:"Yu Mincho","Hiragino Mincho ProN",YuMincho,serif;
  --sans:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  --latin:Georgia,"Times New Roman",serif;
  --font-heading:var(--serif);
  --font-body:var(--sans);
  --font-interface:var(--sans);
  --font-display:var(--latin);
}
body{font-family:var(--font-body);font-size:1.0625rem;font-weight:500;line-height:1.95;letter-spacing:.025em}
h1,h2,h3,.hero-intro{font-family:var(--font-heading)}
.article-body,.theme-prose,.welcome-copy>p:first-child{font-family:var(--font-body)}
.article-body,.theme-prose{font-size:1.125rem;font-weight:500;line-height:2;letter-spacing:.025em}
.article-body p,.theme-prose p{line-break:strict;text-wrap:pretty}
.article-body em{font-size:inherit}
.welcome-copy>p:first-child{font-size:1.0625rem;line-height:2;letter-spacing:.025em}
nav,button,input,select,textarea,summary,label,legend,.navigation>a{font-family:var(--font-interface)}
/* Decorative English headings and the Rana wordmark retain their character. */
.wordmark,.english-heading,.explore-caption h3,.handwritten,.portrait-signature,.about-name,.footer-motto,.policy-english,.article-end>p,.footer-mark{font-family:var(--font-display)}
/* Prefer natural Japanese phrases, with an emergency break for long tokens.
   wbr is optional, so resizing and text enlargement remain possible. */
.phrase-prose{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
@media(max-width:680px){
  .article-body,.policy-body{width:calc(100% - 40px)}
  .article-body,.theme-prose,.policy-text,
  .welcome-copy>p:first-child,.welcome-copy>p:not(:first-child),.about-copy>p:not(.eyebrow):not(.about-name),
  .hero-after .hero-description,.explore-caption>p:last-of-type,.explore-sessions>p:not(.eyebrow),
  .featured-copy>p:not(.eyebrow),.sessions-heading>p:not(.eyebrow):not(.external-note),
  .service-row div>p:last-child,.letter>p:not(.eyebrow):not(.letter-status),
  #dialog-body{
    font-size:1.15625rem;line-height:1.95;letter-spacing:.01em;
  }
  .article-body p,.theme-prose p,.policy-text p{margin-bottom:1.5em}
}

/* Shared Japanese kinsoku; preserve the current size, colour and line spacing. */
body{line-break:strict;word-break:normal}
.kinsoku-pair{white-space:nowrap;word-break:normal;overflow-wrap:normal}
.phrase-long{display:inline-block;max-width:100%;vertical-align:top;word-break:normal;overflow-wrap:anywhere;text-wrap:balance}
