/* Readable type: body 18px, supporting text at least 16px, shared figure sizes. */
:root {
  --sans: "Meiryo", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: var(--sans);
  --ink: #192f23;
  --muted: #192f23;
  --accent: #8d2d15;
  --body-size: 18px;
  --small-size: 16px;
  --note-size: 16px;
  --figure-size: clamp(32px, 2.8vw, 36px);
  --step-size: 24px;
}

body {
  font-size: var(--body-size);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
  font-variant-numeric: lining-nums tabular-nums;
}
h1, h2, h3, .partner-panel h3, .hero-seal strong {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .025em;
  text-wrap: balance;
  line-break: strict;
}
.hero--care h1 {
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.5;
  letter-spacing: 0;
}
h2, .insurance h2, .about h2, .contact-heading h2 {
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.65;
}
.hero--care .hero-subtitle, .hero--care .hero-response {
  font-size: 18px;
  line-height: 1.9;
}
.hero--care .hero-response { color: #8d2d15; }
p, dd, small, .faq-answer {
  line-break: strict;
  text-wrap: pretty;
}
.keep { white-space: nowrap; }
.hero-subtitle .copy-line { display: block; }
.hero-description + .hero-description { margin-top: -12px; }
.hero-description { text-wrap: balance; max-inline-size: 36em; }
.hero-description .phrase { display: inline-block; max-inline-size: 100%; }
.brand small .brand-line { display: inline; }
.brand small .brand-line::before { content: "・"; }
.brand img { object-fit: contain; }
.hero-description, .section-lead, .body-copy,
.support-item p, .renovation-item p, .flow-list p,
.partner-panel > p:not(.partner-label), .faq-answer,
.about-heading > p:not(.eyebrow), .calculator-description,
.insurance-important p, .contact-heading > p:not(.eyebrow),
.contact-email > p, .dialog-description, #privacy-dialog > p,
.company-table > div, .mobile-menu a {
  font-size: var(--body-size);
  line-height: 1.95;
  color: var(--muted);
  font-weight: 500;
}
.intro .support-item h3, .renovation-item h3,
.flow-list h3, .calculator h3 {
  font-size: 21px;
  line-height: 1.75;
  color: var(--ink);
}
.partner-panel h3 { font-size: 26px; }
.partner-label, .partner-panel:nth-child(2) .partner-label,
.faq-items summary > span { color: var(--green); }
.eyebrow, .hero .eyebrow, .partner-label {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .025em;
  font-weight: 700;
}
.hero-note, .qualifications > span, .qualifications p,
.insurance-numbers > div > span, .insurance-numbers small,
.insurance-important > span, .source-links a,
.field-label, .field-label span, .cost-input-wrap > span,
.hero-bottom, .hero-bottom a, .hero--care .hero-bottom a,
.text-link, .partner-panel .text-link, .guide-link,
.contact-phone > span, .contact-email > span, .contact-phone > p,
.direct-email, .contact-email > small, .map-link,
.footer-links, .footer-links button, .footer-bottom {
  font-size: var(--small-size);
  line-height: 1.85;
  font-weight: 600;
  color: var(--ink);
}
.hero-note, .qualifications > span, .insurance-numbers small,
.source-links a, .company-table dt, .map-link,
.footer-bottom, .support-number span { color: var(--muted); }
.fine-print, .calculator-caveat, .field-hint {
  font-size: var(--note-size);
  line-height: 1.9;
  color: var(--muted);
  font-weight: 600;
}
.hero--care .hero-qualities {
  font-size: var(--small-size);
  gap: 9px 18px;
  line-height: 1.8;
}
.hero-qualities svg { width: 18px; height: 18px; }
.hero-bottom { min-height: 84px; gap: 22px; padding-block: 16px; }
.hero--care .hero-bottom > span { max-width: none; }
.hero-bottom a { white-space: normal; }
.hero-seal { width: 164px; height: 164px; transform: none; }
.hero-seal span { font-size: 16px; line-height: 1.7; font-weight: 600; }
.hero--care .hero-seal strong { font-size: 18px; line-height: 1.65; }
.hero-visual figcaption {
  font-size: 16px;
  background: #203b2f;
  border-radius: 3px;
  padding: 2px 7px;
  text-shadow: none;
}
.qualifications { gap: 14px 24px; }
.support-item, .renovation-item { min-width: 0; }
.support-number, .item-number, .flow-list li > span:first-child {
  font-family: var(--sans);
  font-size: var(--step-size);
  font-weight: 700;
  line-height: 1.4;
  color: var(--green);
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.support-number span { font-size: 16px; font-weight: 600; }
.flow-tag { font-size: 16px; font-weight: 600; padding: 5px 12px; }
.flow-tag.tag-important { color: #692b18; }

/* All prominent amounts use the same size, weight, font and unit treatment. */
.insurance-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.eligibility-note {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 3px;
  background: #edf2e8;
  color: var(--ink);
}
.eligibility-note p { margin: 0; font-size: 18px; line-height: 1.85; text-wrap: balance; }
.eligibility-note p:first-child { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.eligibility-note strong { font-weight: 700; }
.insurance-numbers > div { min-width: 0; }
.insurance-numbers > div + div { padding-left: 0; border-left: 0; }
.insurance-numbers p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-block: 12px 7px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.insurance-numbers strong, .calculation-result strong, .cost-input-wrap input {
  font-family: var(--sans);
  font-size: var(--figure-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--green);
  font-variant-numeric: lining-nums tabular-nums;
}
.insurance-numbers strong { margin: 0; }
.insurance-numbers strong span { font: inherit; vertical-align: baseline; margin: 0; }
.calculation-result > p, .calculation-result > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
}
.calculation-result > div {
  border-top: 1px solid #cbd2c1;
  padding-top: 16px;
  margin-top: 16px;
}
.calculation-result strong { justify-self: end; white-space: nowrap; }
.calculation-result .amount-label { white-space: nowrap; }
.calculation-result strong span {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin-left: 6px;
}
.cost-input-wrap input { padding: 11px 14px; }
.ratio-options span { min-height: 48px; font-size: 16px; font-weight: 700; }
.insurance-important { gap: 18px; flex-wrap: wrap; }
.insurance-important strong { font-size: 16px; }
.source-links { flex-wrap: wrap; gap: 12px 20px; }
.faq-items summary { font-size: 18px; line-height: 1.9; text-wrap: pretty; }
.faq-items summary > span { font-family: var(--sans); font-size: 22px; font-weight: 700; }
.faq-items summary > .question-text { font: inherit; color: inherit; flex: 1; min-width: 0; }
.faq-answer { padding-left: 36px; }

.button, .button-light, #inquiry-form > .button, .mobile-contact > a {
  font-size: 18px;
  min-height: 54px;
}
.hero--care .hero-button {
  font-size: 18px;
  padding-inline: 18px;
  gap: 12px;
  max-width: 100%;
}
.button-small, .header-contact { font-size: 16px; }
.desktop-nav a { font-size: 16px; }
.brand small { font-size: 16px; letter-spacing: 0; }
.brand strong { font-size: 26px; }
.header-inner { gap: 20px; height: 108px; }
.desktop-nav { gap: 20px; }
.header-contact { gap: 8px; padding-inline: 16px; }
.text-link { gap: 12px; }
.company-table > div { padding-block: 21px; }
.company-table dd { color: var(--ink); }
.contact-phone > a:not(.direct-email) {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  gap: 10px;
  font-variant-numeric: lining-nums tabular-nums;
}
.contact-heading > p:not(.eyebrow), .contact-email > p,
.contact-phone > p, .contact-email > small { color: #edf4e8; }
.contact-phone > span, .contact-email > span,
.contact .direct-email, .contact .eyebrow { color: #fff; }
.contact-heading .eyebrow { font-size: 16px; }
.hero-note, .contact-phone > p, .contact-heading > p,
.section-lead, .support-item p, .renovation-item p,
.flow-list p, .partner-panel > p, .about-heading > p { text-wrap: balance; }
.direct-email { font-family: var(--sans); font-size: 16px; }
.contact-grid { grid-template-columns: 1.15fr 1fr; }
.footer-links { flex-wrap: wrap; gap: 14px 22px; }
.footer .brand small { font-size: 16px; }
.footer .brand strong { font-size: 24px; }
#inquiry-form select, #inquiry-form input, #inquiry-form textarea,
.mail-fallback, .mail-fallback .text-link, .manual-copy { font-size: 16px; }
dialog h2 { font-size: 23px; }
input::placeholder, textarea::placeholder { color: #344b3e; opacity: 1; font-weight: 500; }
#inquiry-form > .button { padding-inline: 12px; gap: 10px; }

@media (max-width: 1190px) {
  .brand small { font-size: 16px; }
  .desktop-nav { gap: 16px; }
  .header-contact { padding-inline: 13px; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .hero--care .hero-subtitle, .hero--care .hero-response { font-size: 18px; }
  .hero--care .hero-qualities { font-size: 16px; }
  .hero-description { font-size: 18px; }
  .hero-visual { height: 560px; }
  .hero-seal { width: 148px; height: 148px; left: -20px; }
  .hero--care .hero-seal > span { font-size: 16px; }
  .hero--care .hero-seal strong { font-size: 16px; }
  .hero-bottom { align-items: flex-start; }
  .hero-bottom > span, .hero-bottom a { max-width: 48%; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-email { padding: 26px 0 0; border-left: 0; border-top: 1px solid #61816b; }
  .button-light { max-width: 360px; }
  .footer-main { align-items: flex-start; }
}
@media (max-width: 700px) {
  .header-inner { height: 116px; gap: 8px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand span { min-width: 0; }
  .brand small { font-size: 16px; max-width: 220px; line-height: 1.45; }
  .brand small .brand-line { display: block; }
  .brand small .brand-line::before { content: ""; }
  .brand strong { font-size: 24px; }
  .hero--care h1 { font-size: clamp(24px, 6.9vw, 32px); line-height: 1.6; }
  .hero--care .hero-title-tail { display: inline; }
  .hero--care .hero-subtitle, .hero--care .hero-response { font-size: 18px; }
  .hero--care .hero-qualities { font-size: 16px; gap: 10px 14px; }
  .hero-description { font-size: 18px; line-height: 1.9; }
  .hero-note { font-size: 16px; }
  .hero .eyebrow { font-size: 16px; gap: 8px; }
  .hero .eyebrow-line { width: 16px; flex-shrink: 0; }
  .hero-seal { width: 140px; height: 140px; }
  .hero--care .hero-seal strong { font-size: 16px; }
  .hero--care .hero-seal > span { font-size: 16px; }
  .hero--care .hero-bottom { flex-direction: column; align-items: flex-start; gap: 13px; }
  .hero--care .hero-bottom > span { max-width: none; }
  .hero--care .hero-bottom .mobile-only { display: none; }
  .hero--care .hero-bottom a { font-size: 16px; }
  .intro .support-item h3, .renovation-item h3, .flow-list h3 { font-size: 20px; }
  .support-item, .support-item:first-child, .support-item:last-child { padding-left: 65px; }
  .feature-icon { width: 43px; height: 43px; }
  .renovation-grid { grid-template-columns: 1fr; }
  .renovation-item { min-height: 0; padding: 25px; }
  .renovation-item h3 { margin-top: 5px; }
  .renovation-item p { font-size: 18px; }
  .renovation-item p br { display: none; }
  .item-number { top: 24px; right: 25px; }
  .insurance-numbers { gap: 16px; }
  .insurance-numbers > div > span, .insurance-numbers small { font-size: 16px; }
  .insurance-important { display: block; }
  .insurance-important > span { display: block; margin-bottom: 8px; }
  .calculator { padding-inline: 22px; }
  .flow-list li { gap: 16px; }
  .flow-list li > span:first-child { width: 32px; font-size: 24px; }
  .flow-list li > div { min-width: 0; }
  .flow-tag { margin-left: 48px; }
  .partner-panel { padding-inline: 25px; }
  .partner-panel h3 { font-size: 25px; }
  .faq-items summary { font-size: 18px; gap: 13px; }
  .faq-answer { padding-left: 29px; padding-right: 2px; }
  .company-table > div { grid-template-columns: 76px minmax(0, 1fr); font-size: 18px; gap: 12px; }
  .contact-grid { display: block; }
  .contact-email { padding-left: 0; }
  .contact-phone > a:not(.direct-email) { font-size: 32px; gap: 8px; }
  .button-light { gap: 16px; }
  .footer-links { font-size: 16px; }
  .footer-bottom { flex-wrap: wrap; gap: 10px; }
  .footer .brand small { font-size: 16px; }
  .mobile-contact > a { font-size: 16px; min-height: 60px; }
  dialog { padding-inline: 20px; }
  dialog h2 { font-size: 21px; }
  #privacy-dialog > p { font-size: 18px; }
}
@media (max-width: 370px) {
  .header-inner { padding-inline: 16px; }
  .brand small { max-width: 176px; }
  .brand strong { font-size: 22px; }
  .hero .eyebrow { font-size: 16px; }
  .hero--care .hero-button { padding-inline: 14px; gap: 10px; }
  .calculator { padding-inline: 18px; }
  .contact-phone > a:not(.direct-email) { font-size: 30px; }
}

/* Give Japanese sentences room before reducing their size. */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; flex-shrink: 0; }
  .menu-toggle span { width: 23px; height: 2px; background: var(--green); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu { padding: 14px 28px 24px; border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; position: absolute; left: 0; right: 0; max-height: calc(100dvh - 116px); overflow-y: auto; box-shadow: 0 10px 18px #174e3c12; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-copy { width: 100%; max-width: 760px; }
  .hero-visual { height: 430px; width: min(100%, 640px); margin-inline: auto; }
  .section-heading { display: block; }
  .section-heading .section-lead { max-width: 40em; margin-top: 24px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-item, .support-item:first-child, .support-item:last-child { padding: 28px 0 30px 80px; }
  .support-item + .support-item { border-top: 1px solid var(--line); }
  .support-item + .support-item::before { display: none; }
  .support-number { position: absolute; left: 0; top: 28px; }
  .support-number span { display: none; }
  .feature-icon { position: absolute; left: 0; top: 78px; margin: 0; width: 45px; height: 45px; }
  .support-item h3 { text-wrap: balance; }
  .insurance, .faq-layout, .about { grid-template-columns: 1fr; gap: 36px; }
  .calculator { max-width: 680px; width: 100%; justify-self: center; margin-top: 0; }
  .partner-grid { grid-template-columns: 1fr; }
  .hero--care .hero-bottom > span, .hero-bottom a { max-width: none; }
}
@media (min-width: 1101px) { .mobile-menu { display: none; } }
@media (max-width: 700px) {
  .header-contact { display: none; }
  .mobile-menu { grid-template-columns: 1fr; }
  .hero-visual { width: calc(100% - 18px); height: 320px; margin-left: 18px; }
  .support-item, .support-item:first-child, .support-item:last-child { padding-left: 0; padding-top: 78px; }
  .support-number { top: 24px; }
  .feature-icon { width: 34px; height: 34px; top: 22px; left: 48px; }
  .company-table > div { grid-template-columns: 1fr; gap: 6px; }
  .company-table dt { font-weight: 700; }
  .brand img { flex-shrink: 0; }
  .flow-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px 16px;
  }
  .flow-list li > span:first-child { grid-column: 1; grid-row: 1; }
  .flow-list li > div { grid-column: 2; grid-row: 1; }
  .flow-list .flow-tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }
}

/* Keep the supplied Japanese/English wordmark and house in one proportion. */
.header .brand-complete,
.footer .brand-complete {
  display: block;
  width: 300px;
  max-width: 100%;
  flex: 0 1 300px;
  line-height: 1;
}
.brand-complete .brand-logo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1860 / 435;
  overflow: hidden;
}
.brand-complete .brand-logo img {
  position: absolute;
  display: block;
  left: -8.602151%;
  top: -29.885057%;
  width: 116.774194%;
  height: auto;
  max-width: none;
}
@media (max-width: 700px) {
  .header-inner { height: 96px; gap: 16px; }
  .header .brand-complete { width: 280px; flex-basis: 280px; }
  .footer .brand-complete { width: 280px; flex: none; }
  .mobile-menu { max-height: calc(100dvh - 96px); }
}
@media (max-width: 370px) {
  .header-inner { gap: 12px; }
}