/* LIBERDEC v6 — content-first typography.
   Loaded after style.css. Change the tokens below to tune all body content.
   Small section labels, numbering and legal footnotes keep their own scale.
   No web-font dependency; original image files remain unmodified. */
:root {
  --copy-size: 18px;
  --copy-leading: 1.95;
  --intro-size: 20px;
  --section-size: 36px;
  --editorial-size: 32px;
  --item-size: 24px;
  --card-title-size: 23px;
  --small-heading-size: 21px;
  --link-size: 16px;
  --compact-size: 16px;
}
body { font-size: var(--copy-size); font-weight: 400; }

/* Paragraphs which communicate the actual service, process or case content. */
.home-hero .hero-inner > p,
.service-item > p:not(.service-number),
.service-directory .directory-row p:not(.service-number),
.message-teaser > div > p:not(.eyebrow):not(.signature),
.prose p:not(.fineprint):not(.eyebrow):not(.important-note),
.message-full .prose p:not(.fineprint),
.article-body > section > p:not(.fineprint):not(.eyebrow),
.case-description > p,
.case-tile p:not(.industry),
.steps p,
.work-list p,
.ses-hero-description,
.exhibition-hero .container > p:not(.eyebrow),
.faq-answer,
.faq-answer p,
.contact-aside > p:not(.email-label),
.company-list dd,
.policy p,
.plain-list li {
  font-size: var(--copy-size);
  line-height: var(--copy-leading);
  color: var(--body);
}
.page-intro,
.case-heading .page-intro {
  font-size: var(--intro-size);
  line-height: 1.95;
  color: var(--body);
}
.case-heading .page-intro { font-size: var(--copy-size); }
.service-item > p:not(.service-number) { max-width: none; margin: 20px 0 24px; }
.message-teaser > div > p:not(.eyebrow):not(.signature) { margin-top: 24px; }
.message-full .prose p { margin-bottom: 28px; }
.prose p { line-height: var(--copy-leading); }
.article-body p { line-height: var(--copy-leading); }

/* Heading sizes remain visibly above the new body size. */
h2 { font-size: var(--section-size); font-weight: 600; }
h3 { font-size: var(--small-heading-size); }
.service-item h3, .service-item h3.organization-title { font-size: var(--item-size); line-height: 1.65; }
.message-teaser h2, .message-full h2,
.editorial-grid h2, .ses-content h2,
.article-body h2 { font-size: var(--editorial-size); line-height: 1.65; }
.message-teaser h2, .message-full h2 { letter-spacing: .02em; }
.case-description h3 { font-size: var(--small-heading-size); line-height: 1.75; font-weight: 600; }
.case-tile h2 { font-size: var(--card-title-size); line-height: 1.75; letter-spacing: 0; }
.steps h3, .ses-support .steps h3, .work-list h3 { font-size: var(--small-heading-size); line-height: 1.7; }
.role-columns h3 { font-size: var(--item-size); }
.feature-link h3 { font-size: var(--item-size); }
.service-related h2 { font-size: var(--item-size); }
.policy h2 { font-size: var(--item-size); }
.result-band h2 { font-size: 28px; line-height: 1.85; }
.contact-band h2 { font-size: 28px; line-height: 1.7; }
.contact-aside h2 { font-size: 28px; }
.ses-hero h2 { font-size: var(--editorial-size); }

/* Supporting information is still readable, but not the same weight as headings. */
.case-client, .industry, .case-tile .industry,
.company-list dt, .important-note,
.feature-link p:not(.eyebrow),
.contact-band p, .tile-result,
.faq-list summary,
.form-field > label, .consent,
.form-note, .form-status, .input-hint {
  font-size: var(--compact-size);
  line-height: 1.9;
}
.case-tile .industry, .industry, .case-client, .tile-result { color: var(--body); }
.contact-band p { color: var(--body); }
.tile-result { margin-top: auto; }
.signature { font-size: 21px; }
.signature span { font-size: 13px; }
.representative-photo figcaption { font-size: 14px; }

/* Navigation links within content are sized separately from metadata labels. */
.text-link, .section-top > .text-link, .service-item .text-link,
.service-directory .directory-row .text-link {
  font-size: var(--link-size);
  min-height: 44px;
  line-height: 1.8;
  max-width: 100%;
}
.button, .exhibition-hero .button { font-size: var(--link-size); line-height: 1.7; }
.exhibition-link { font-size: 14px; line-height: 1.9; }
.tile-link { font-size: var(--link-size); }
.service-related nav { font-size: var(--link-size); }
.form-field input, .form-field textarea, .form-field select { font-size: var(--copy-size); }
.contact-form .text-link { font-size: var(--compact-size); }

/* Prevent the old generic hover selector from hiding text on filled buttons. */
a.button:not(.button-light), a.nav-contact {
  color: #fff;
}
a.button.button-light,
a.button.button-light:is(:hover,:focus,:focus-visible,:active,:visited) { color: var(--accent-dark) !important; }
a.nav-contact:is(:hover,:focus,:focus-visible,:active,:visited) { color: #fff; }

/* Let grid columns shrink before text is clipped. */
.service-item, .case-description, .directory-row > div, .message-full,
.message-teaser > div, .editorial-grid > *, .steps > li,
.contact-layout > *, .service-related nav > * { min-width: 0; }
.service-columns { gap: 48px 72px; }
.service-directory .directory-row {
  grid-template-columns: minmax(335px,.9fr) minmax(0,1.3fr);
  gap: 72px;
}
.service-directory .directory-row h2.organization-title {
  font-size: 25px; max-width: none; letter-spacing: 0;
}
.service-directory .directory-row h3 { font-size: 34px; line-height: 1.65; }
.service-directory .directory-row > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.service-directory .directory-row .text-link { gap: 42px; }
.service-directory .directory-row .exhibition-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 15px;
  margin-top: 26px;
}
.service-related nav a { max-width: 100%; }
.hero-inner > p { max-width: 740px; }
.feature-link { gap: 24px; }
.feature-link > .arrow, .text-link .arrow, .button > span { flex-shrink: 0; }

@media (min-width:861px) {
  .service-item h3.organization-title,
  .directory-row h2.organization-title,
  .page-heading h1.organization-title { white-space: nowrap; }
  .service-item h3.organization-title wbr { display: none; }
}
@media (min-width:861px) and (max-width:1100px) {
  .service-directory .directory-row {
    grid-template-columns: minmax(286px,.85fr) minmax(0,1.2fr);
    gap: 40px;
  }
  .service-directory .directory-row h2.organization-title { font-size: 22px; }
  .service-directory .directory-row h3 { font-size: 29px; }
  .service-columns { gap: 42px 44px; }
  .service-item h3.organization-title { font-size: 23px; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
  .editorial-grid { gap: 46px; }
}
@media (max-width:860px) {
  :root {
    --copy-size: 16px;
    --intro-size: 18px;
    --section-size: 32px;
    --editorial-size: 28px;
    --item-size: 23px;
    --card-title-size: 22px;
    --small-heading-size: 20px;
    --link-size: 15px;
    --compact-size: 15px;
  }
  .service-directory .directory-row {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    padding: 38px 0 44px;
  }
  .service-directory .directory-row:first-child { padding-top: 28px; }
  .service-directory .directory-row h2.organization-title { font-size: 27px; white-space: normal; }
  .service-directory .directory-row h3 { font-size: 28px; }
  .representative-layout { grid-template-columns: 200px minmax(0,1fr); gap: 34px; }
  .service-columns { gap: 38px 32px; }
  .service-item h3.organization-title { font-size: 21px; }
  .contact-band-inner { gap: 24px; }
  .result-band h2 { font-size: 24px; }
  .contact-band h2 { font-size: 26px; }
  .ses-support .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  :root {
    --copy-size: 16px;
    --intro-size: 17px;
    --section-size: 28px;
    --editorial-size: 26px;
    --item-size: 22px;
    --card-title-size: 20px;
    --small-heading-size: 20px;
    --link-size: 15px;
    --compact-size: 15px;
  }
  .home-hero .hero-inner > p { font-size: var(--copy-size); max-width: 100%; }
  .home-hero .hero-inner > p br { display: none; }
  .home-hero { min-height: 490px; }
  .service-item { padding: 30px 0; }
  .service-item h3.organization-title { font-size: 22px; }
  .service-item > p:not(.service-number) { margin: 17px 0 22px; }
  .service-directory .directory-row h2.organization-title { font-size: 25px; }
  .service-directory .directory-row h3 { font-size: 24px; }
  .service-directory .directory-row h3 .wrap-phrase { white-space: nowrap; }
  .service-directory .directory-row .text-link { gap: 24px; }
  .service-directory .directory-row .exhibition-link { font-size: 14px; }
  .steps, .ses-support .steps { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .steps li { padding-top: 19px; }
  .plain-list li { line-height: 1.95; margin-bottom: 7px; }
  .case-row { padding-right: 24px; }
  .case-description h3 { font-size: 20px; }
  .case-tile .industry { font-size: 15px; }
  .case-heading h1 { line-height: 1.7; }
  .result-band h2 { font-size: 22px; }
  .contact-band h2 { font-size: 24px; }
  .case-title { letter-spacing: 0; }
  .case-tile .tile-top { gap: 12px; }
  .case-tile .category { max-width: calc(100% - 35px); }
  .service-related nav a { gap: 12px; }
  .service-related .arrow { flex-shrink: 0; }
  .message-teaser h2, .message-full h2 { letter-spacing: 0; }
  .representative-layout { display: flex; flex-direction: column; }
  .portrait-small { width: 165px; }
  .representative-photo { width: 200px; max-width: 100%; }
  .message-teaser .signature { margin: 26px 0 18px; }
  .message-full .prose p { margin-bottom: 25px; }
  .contact-band p { max-width: none; }
  .contact-form > .button { justify-content: space-between; gap: 12px; min-width: 0; }
  .text-link { gap: 22px; }
}
@media (max-width:360px) {
  .container { width: calc(100% - 36px); }
  .service-item h3.organization-title { font-size: 21px; }
  .case-description h3 { font-size: 19px; }
  .case-tile > a { padding-inline: 18px; }
  .case-tile > a::before { margin-inline: -18px; }
  .case-tile h2 { font-size: 19px; }
  .result-band h2 { font-size: 20px; }
  .service-directory .directory-row h3 { font-size: 23px; }
  .page-heading h1.organization-title { font-size: 25px; }
}
@media print {
  :root { --copy-size: 11pt; --intro-size: 12pt; --compact-size: 10pt; --link-size: 10pt; }
}
/* Questions and result summaries are content, not footnotes. */
.faq-list summary { font-size: var(--small-heading-size); font-weight: 600; }
.tile-result { font-size: var(--copy-size); }
/* Keep service links aligned within each desktop row after increasing type size. */
@media (min-width:601px) {
  .service-item > p:not(.service-number) { min-height: 3.9em; }
  .service-item .text-link { margin-top: 0; }
}
@media (min-width:601px) and (max-width:1100px) {
  .service-item > p:not(.service-number) { min-height: 5.85em; }
}
.text-term { display: inline-block; white-space: nowrap; vertical-align: baseline; }

/* v9 / Quiet, editorial corporate typography and navigation. */
:root {
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --ink: #18323b;
  --body: #202a2e;
  --accent: #0b6e7b;
  --accent-dark: #07545f;
  --line: #d9e1e3;
  --tint: #f5f7f7;
  --tint-blue: #edf4f4;
}
body {
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  letter-spacing: .025em;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: .035em; }

/* Header: a compact text-led navigation, with one composed contact CTA. */
.site-header {
  height: 88px;
  background: rgba(255,255,255,.985);
  border-bottom: 1px solid rgba(24,50,59,.12);
}
.header-inner { width: min(1320px, calc(100% - 96px)); gap: 42px; }
.brand-crop { width: 188px; height: 59px; }
.brand-crop img { width: 363px; left: -83px; top: -83px; }
.site-nav {
  gap: 29px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .035em;
  color: var(--ink);
}
.site-nav > a:not(.nav-contact) { padding: 10px 1px; white-space: nowrap; }
.site-nav > a:not(.nav-contact):after { bottom: 2px; height: 1px; background: currentColor; }
.nav-contact {
  min-height: 44px;
  gap: 18px;
  padding: 10px 16px 10px 18px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  transition: background-color .2s, border-color .2s, color .2s;
}
.nav-contact .arrow { font-size: 16px; font-weight: 400; }
@media (hover: hover) {
  .site-nav > a:not(.nav-contact):hover { color: var(--accent-dark); transform: none; }
  .nav-contact:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: none; transform: none; }
}

/* Reduce decoration on common controls so text, not effects, carries the page. */
.button { min-height: 52px; gap: 36px; padding: 12px 22px; font-weight: 500; letter-spacing: .06em; box-shadow: none; }
.text-link { font-weight: 400; letter-spacing: .03em; }
@media (hover: hover) {
  .button:hover { box-shadow: none; transform: none; }
  .text-link:hover { transform: none; }
}

@media (max-width: 1100px) {
  .header-inner { width: calc(100% - 56px); gap: 24px; }
  .site-nav { gap: 19px; font-size: 12px; }
  .nav-contact { gap: 12px; padding-inline: 14px; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  .site-header { height: 78px; }
  .header-inner { width: calc(100% - 40px); }
  .brand-crop { width: 164px; height: 51px; }
  .brand-crop img { width: 317px; left: -72px; top: -72px; }
  .nav-toggle { width: 42px; height: 42px; border-color: rgba(24,50,59,.25); }
  .site-nav {
    top: 77px;
    padding: 16px 20px 22px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .05em;
    box-shadow: 0 15px 24px rgba(24,50,59,.08);
  }
  .site-nav > a:not(.nav-contact) { padding: 16px 3px; }
  .site-nav .nav-contact { min-height: 50px; margin-top: 16px; padding-inline: 18px; }
}
@media (min-width: 861px) {
  .site-header { height: 104px; background: transparent; border-bottom: 0; }
  .header-inner {
    height: 78px;
    margin: 13px auto;
    padding: 0 25px;
    background: #fff;
    border: 1px solid rgba(24,50,59,.11);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24,50,59,.045);
  }
}

/* v11: longer service names should wrap naturally */
.organization-title{white-space:normal!important;}
.service-item h3{min-height:72px;}
@media(max-width:600px){.service-item h3{min-height:0;}}
