:root { --red:#C50018; --red-dark:#AE0013; --red-light:#BD2634; --grad:linear-gradient(90deg,#C50018,#E8471D); --ink:#141418; --muted:#5b6170; --bg-soft:#F4F7F9; --line:#e5e7eb; --white:#fff; --content-width:1200px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans JP", sans-serif; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2378c4; outline-offset: 5px; }
.container { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: 0; left: 20px; padding: 12px 20px; background: var(--white); z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 80px; gap: 12px; padding-block: 16px; }
.brand { flex: 0 1 180px; }
.brand img { width: 100%; }
.menu-toggle { border: 1px solid var(--line); background: transparent; padding: 10px; font-size: .75rem; }
.global-nav { width: 100%; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list > li > a, .services-menu > summary { display: block; padding: 14px 8px; font-weight: 500; text-decoration: none; }
.services-menu > summary { display: list-item; list-style-position: inside; }
.services-dropdown { padding: 0 12px 12px; }
.services-dropdown a { display: block; padding: 10px 8px; font-size: .875rem; text-decoration: none; }
.nav-list a:hover, .services-menu summary:hover { color: var(--red); }
.nav-list > li:last-child { padding-top: 16px; }
.section { padding-block: 64px; }
.eyebrow { color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .16em; margin-bottom: 8px; }
.section__title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.4; font-weight: 700; margin-bottom: 32px; }
.lead { font-size: 1.0625rem; line-height: 1.9; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
a.card { display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.card:hover { border-color: var(--ink); box-shadow: 0 8px 24px #1118270a; }
.card__image, .card__visual { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__visual { background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; padding: 24px; font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.card__visual--facility { background: var(--red-dark); }
.card__visual--school { background: var(--red-light); }
.card__body { padding: 24px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.card__label { font-size: .6875rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-size: 1.125rem; line-height: 1.6; margin-bottom: 24px; }
.card__link { width: 100%; display: flex; justify-content: space-between; margin-top: auto; font-size: .8125rem; }
.card__link > span { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; max-width: 100%; padding: 16px 28px; border: 1px solid var(--ink); font-weight: 500; text-decoration: none; line-height: 1.6; }
.btn--primary { color: var(--white); background: var(--red); border-color: var(--red); }
.btn--primary:hover, .nav-list .btn--primary:hover { color: var(--white); background: var(--red-dark); }
.updates { background: var(--bg-soft); }
.updates-grid { display: grid; }
.updates .section + .section { border-top: 1px solid var(--line); }
.empty-state { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.entry-list { margin-bottom: 32px; border-top: 1px solid var(--line); }
.entry-list > li { border-bottom: 1px solid var(--line); }
.entry-list__link { display: block; padding-block: 24px; text-decoration: none; }
.entry-list__link:hover .entry-list__title { color: var(--red); text-decoration: underline; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .8125rem; }
.entry-list__title { display: block; margin-top: 8px; font-weight: 700; }
.entry-list__summary { display: block; margin-top: 8px; font-size: .875rem; }
.entry-list__empty { padding-block: 28px; margin-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); }
.entry-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.entry-filters .btn { padding: 10px 16px; background: var(--white); font-size: .875rem; }
.entry-filters .btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.entry-body { margin-block: 32px; }
.entry-body > * + * { margin-top: 20px; }
.contact-section { background: var(--ink); color: var(--white); }
.contact-section .eyebrow { color: var(--white); }
.contact-section .section__title { margin-bottom: 16px; }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.site-footer { padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: inline-block; max-width: 200px; }
.footer-social { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: color .2s, background-color .2s; }
.footer-social svg { display: block; width: 22px; height: 22px; }
.footer-social a:hover { color: #fff; background-color: #202124; }
.footer-social a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.company-name { font-size: .9375rem; font-weight: 700; margin: 24px 0 8px; }
address { font-style: normal; font-size: .8125rem; color: var(--muted); }
.footer-title { font-size: .875rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; font-size: .8125rem; }
.footer-links a { display: inline-block; padding-block: 4px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom small { font-size: .75rem; }
.tbd { display: inline-block; background: #fff1b8; color: #614b00; font-size: .75rem; font-weight: 700; padding: 1px 6px; margin-inline-start: 4px; }
.table-info { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table-info th, .table-info td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.table-info th { width: 30%; background: var(--bg-soft); font-weight: 500; }
.company-map { display: block; width: 100%; max-width: 100%; height: 400px; margin-top: 24px; border: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8125rem; color: var(--muted); list-style: none; margin: 0; padding: 20px 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 16px; }
.contact-form { max-width: 760px; margin-top: 32px; }
.form-field { margin-bottom: 24px; }
.form-field > label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.form-field textarea { resize: vertical; }
.form-required, .form-optional { margin-left: 8px; font-size: .75rem; }
.form-required, .form-error { color: var(--red); }
.form-optional { color: var(--muted); }
.form-error { font-size: .875rem; }
.form-errors { max-width: 760px; margin-top: 24px; padding: 20px; border: 2px solid var(--red); }
.form-errors ul { list-style: disc; padding-left: 24px; }
.form-field .form-consent { display: flex; align-items: flex-start; gap: 12px; }
.form-consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 5px; }
.page-contact #main { background: #EDF4F8; }
.page-contact .contact-form { width: 100%; max-width: 800px; margin: 32px auto 0; padding: 40px 48px; border-radius: 20px; background: #fff; box-shadow: 0 8px 32px #1414180a; }
.page-contact #contact-title, .page-contact #main > section > .eyebrow, .page-contact #main > section > .lead { text-align: center; }
.page-contact .form-errors { max-width: 800px; margin-inline: auto; background: #fff; }
.page-contact .form-field { margin-bottom: 28px; min-width: 0; }
.page-contact .form-field > label { margin-bottom: 10px; font-weight: 600; }
.page-contact .form-field input:not([type="checkbox"]), .page-contact .form-field select, .page-contact .form-field textarea { min-height: 56px; padding: 12px 14px; border-radius: 12px; font-size: max(16px, 1rem); }
.page-contact .form-required { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #C50018; color: #fff; font-weight: 500; vertical-align: middle; }
.page-contact .form-consent input { accent-color: #C50018; }
.page-contact .form-field [aria-invalid="true"] { border-color: #C50018; }
.page-contact .contact-form__actions { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 32px; min-width: 0; }
.page-contact .contact-form__actions > .cf-turnstile { max-width: 100%; }
.page-contact .contact-form__actions > .btn { width: 320px; max-width: 100%; min-height: 60px; padding: 16px 24px; border-radius: 999px; justify-content: center; }
@media (max-width: 767px) {
  .page-contact .contact-form { padding: 24px 16px; }
  .page-contact .contact-form__actions { gap: 20px; }
}
@media (min-width: 768px) {
  .container { width: min(var(--content-width), calc(100% - 64px)); }
  .section { padding-block: 88px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .updates .section + .section { border-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .header-inner { flex-wrap: nowrap; min-height: 96px; }
  .menu-toggle { display: none; }
  .global-nav { width: auto; }
  .nav-list { display: flex; align-items: center; gap: 24px; font-size: .875rem; }
  .nav-list > li { border: 0; }
  .nav-list > li > a, .services-menu > summary { padding: 12px 0; }
  .nav-list > li:last-child { padding: 0; }
  .nav-list > li > .btn { padding: 14px 20px; }
  .services-nav { position: relative; }
  .services-dropdown { position: absolute; top: 100%; left: 0; width: min(280px, 80vw); padding: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 32px #11182712; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1.3fr 1.1fr 1fr 1.2fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* R1: shared design and home components */
html { --site-header-height: 81px; scroll-padding-top: calc(var(--site-header-height) + 8px); }
#main [id], #main { scroll-margin-top: 12px; }
.skip-link { position: fixed; z-index: 40; }
@media (max-width: 1023px) {
  .site-header .global-nav { position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100vh - var(--site-header-height)); max-height: calc(100dvh - var(--site-header-height)); overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  html { --site-header-height: 97px; }
  .services-dropdown { max-height: calc(100vh - var(--site-header-height) - 16px); max-height: calc(100dvh - var(--site-header-height) - 16px); overflow-y: auto; overscroll-behavior: contain; }
}
.section { padding-block: clamp(64px, 8vw, 112px); }
.section__title { font-weight: 900; letter-spacing: -.035em; }
.eyebrow, .card__label { font-family: "Montserrat", "Noto Sans JP", sans-serif; font-weight: 800; }
.btn { border-radius: 999px; font-weight: 700; padding: 18px 28px; transition: background .2s, box-shadow .2s; }
.btn:hover { box-shadow: 0 8px 24px #11182714; }
.btn--grad { color: white; background: var(--grad); border-color: transparent; }
.btn--grad:hover, .nav-list .btn--grad:hover { color: white; background: var(--red-dark); }
.btn--grad > span { margin-left: 12px; }
.card { border-radius: 16px; overflow: hidden; }
a.card:hover { border-color: var(--red); }
.card__body { padding: 28px; }
.card__body > p + p { margin-top: 16px; }
.card__body > .commissioned-events { display: grid; gap: 12px; margin-top: 20px; padding-left: 1.25em; list-style: disc; }
.nav-group { padding: 16px 8px 4px; color: var(--red); }
.nav-group h3 { font-size: .75rem; font-weight: 700; }
.footer-links .nav-group { padding: 8px 0 0; }
.menu-toggle { border-radius: 8px; }
.section-head { margin-bottom: 40px; }
.section-head__en { display: block; font-family: "Montserrat", sans-serif; font-size: clamp(2rem, 5.7vw, 4.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.section-head__ja { display: block; font-size: clamp(1rem, 2vw, 1.35rem); margin-top: 18px; font-weight: 700; }
.soft-section { background: var(--bg-soft); }
.hero, .soft-section { position: relative; isolation: isolate; overflow: hidden; }
.bg-word { position: absolute; left: 3%; bottom: -12px; font: italic 800 clamp(5rem, 12vw, 12rem)/1 "Montserrat", sans-serif; color: #11182706; white-space: nowrap; pointer-events: none; z-index: -1; }
.slash { position: absolute; right: 3%; top: 0; width: 110px; height: 120%; background: var(--grad); transform: skew(-22deg); z-index: -1; }
.hero { background: linear-gradient(120deg, #fff 45%, #f5f6f8); padding-block: 52px 80px; }
.hero__grid { display: grid; align-items: center; gap: 40px; }
.hero__content { min-width: 0; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.5rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.3; margin: 20px 0 28px; }
.gradient-text { color: var(--red); background: var(--grad); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero__copy { max-width: 460px; line-height: 2; font-weight: 500; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__actions .btn { font-size: .875rem; }
.hero__visual { min-width: 0; border-radius: 80px 16px 80px 16px; overflow: hidden; }
.hero__image { width: 100%; aspect-ratio: 1.12; object-fit: cover; object-position: center; }
.split { display: grid; gap: 40px; align-items: center; }
.about__statement { font-size: clamp(1.5rem, 2.7vw, 2.2rem); font-weight: 900; line-height: 1.6; margin-bottom: 24px; }
.about__copy { color: var(--muted); margin-top: 24px; }
.about__image { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 16px 80px 16px 16px; }
.pillar { display: flex; flex-direction: column; min-width: 0; padding: 32px 28px; border-radius: 20px; border: 1px solid var(--line); background: white; text-decoration: none; border-top: 4px solid var(--red); }
.pillar:hover, .product:hover { border-color: var(--red); box-shadow: 0 12px 32px #1118270a; }
.pillar__number { font: italic 800 4rem/1 "Montserrat", sans-serif; color: var(--red); margin-bottom: 32px; }
.pillar h3 { font-size: 1.65rem; font-weight: 900; margin-bottom: 16px; }
.pillar > p:not(.eyebrow) { font-size: .875rem; color: var(--muted); }
.pillar ul { margin-block: 24px 32px; font-size: .875rem; }
.pillar li { padding-block: 10px; border-bottom: 1px solid var(--line); }
.pillar .card__link { padding-top: 20px; font-weight: 700; }
.steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 20px; }
.steps li { position: relative; padding: 24px; border-radius: 12px; background: var(--bg-soft); border-bottom: 3px solid var(--red); }
.steps li > span { font: 800 1.5rem "Montserrat", sans-serif; color: var(--red); }
.steps h3 { margin-top: 12px; font-size: 1rem; }
.philosophy__row { display: grid; gap: 16px; padding-block: 32px; border-top: 1px solid var(--line); }
.philosophy__row p { font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 900; }
.values-title { margin-top: 32px; }
.values { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.values li { padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.values span { font-family: "Montserrat", sans-serif; color: var(--red); margin-right: 20px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 20px; }
.stats > div { display: flex; flex-direction: column; justify-content: space-between; padding-block: 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.stats dt { font-size: .75rem; color: var(--muted); }
.stats dd { margin: 16px 0 0; color: var(--red); }
.stats strong { font: 800 clamp(1.75rem, 3.8vw, 3.5rem)/1.2 "Montserrat", sans-serif; letter-spacing: -.05em; }
.stats dd span { display: inline-block; font-size: .75rem; margin-left: 4px; font-weight: 700; }
.stats-note { color: var(--muted); font-size: .75rem; margin-top: 20px; text-align: right; }
.products-grid { display: grid; gap: 24px; }
.product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: white; border-radius: 20px; padding: 32px; text-decoration: none; }
.product h3 { font: 900 clamp(2rem, 4vw, 3rem)/1.4 "Montserrat", "Noto Sans JP", sans-serif; margin: 20px 0; }
.product .card__link { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.updates-grid { gap: 48px; }
.updates .section-head__en { font-size: clamp(2rem, 4vw, 3.5rem); }
.home-contact { background: var(--bg-soft); color: var(--ink); border-top: 1px solid var(--line); }
.home-contact .eyebrow { color: var(--red); }
.home-contact .section__title { font-size: clamp(2rem, 5vw, 4rem); }
.image-note { font-size: .75rem; margin-top: 12px; }
.reveal { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .hero { padding-block: 80px 100px; }
  .hero__grid, .split { grid-template-columns: 1.1fr 1fr; }
  .steps, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy__row { grid-template-columns: 140px minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hero__grid, .split { gap: 64px; }
  .hero { min-height: 700px; display: grid; align-items: center; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li:not(:last-child)::after { content: "\2192"; position: absolute; right: -18px; top: 45%; color: var(--red); z-index: 1; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
}
/* R3: white surfaces, Japanese headings and progressive motion. */
body { font-weight: 500; }
h2, .section__title { font-weight: 800; letter-spacing: -.055em; }
h3, .pillar h3, .product h3 { font-weight: 700; }
.section__title, .section-head__ja { font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.65; }
h1.section__title { font-weight: 900; letter-spacing: -.05em; }
.section-head { position: relative; isolation: isolate; overflow: hidden; padding-block: 8px 20px; }
.section-head__en, .updates .section-head__en, .eyebrow { font: 700 .75rem/1.8 "Montserrat", "Noto Sans JP", sans-serif; letter-spacing: .12em; color: var(--red); }
.section-head__ja { margin-top: 12px; font-weight: 800; }
.bg-word { color: #E9EEF2; font: 900 clamp(5rem, 10vw, 7.5rem)/1 "Montserrat", sans-serif; letter-spacing: -.07em; left: 0; bottom: 0; }
.hero { background: white; }
.hero .slash { display: none; }
.hero h1 { font-size: clamp(2.875rem, 5vw, 4.5rem); line-height: 1.38; letter-spacing: -.05em; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__scroll { position: absolute; bottom: 20px; right: 5%; z-index: 1; min-width: 44px; min-height: 44px; padding: 6px; font: 700 .6875rem/1.8 "Montserrat", sans-serif; letter-spacing: .12em; text-align: center; }
.hero__scroll > span { display: block; font-size: 1.5rem; }
@media (max-width: 767px) {
  .page-home #main > .hero { padding-bottom: 112px; }
}
.about__statement, .philosophy__row p { font-weight: 700; }
.soft-section, .updates { background: white; }
.business, #message { background: var(--bg-soft); }
.products { background: linear-gradient(180deg, #F4F7F9, #EFF5F9); }
.contact-section, .home-contact { background: #15161A; color: white; }
.home-contact .eyebrow { color: white; }
.home-contact .section__title { font-size: clamp(1.5rem, 3.3vw, 2.5rem); }
.product h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.values-layout { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.values-meter { position: sticky; top: 40px; color: var(--red); }
.values-meter__number { font: 700 clamp(3rem, 8vw, 6rem)/1 "Montserrat", sans-serif; letter-spacing: -.07em; }
.values-meter__track { height: 3px; background: var(--line); margin-top: 20px; }
.values-meter__bar { display: block; height: 100%; background: var(--red); transform: scaleX(var(--values-progress, .2)); transform-origin: left; }
.values { display: block; margin: 0; }
.values li { padding-block: 28px; }
.values span { color: inherit; }
.values li.is-active { color: var(--red); }
.steps { position: relative; padding-left: 16px; --flow-progress: 1; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--line); }
.steps::after { background: var(--red); transform: scaleY(var(--flow-progress)); transform-origin: top; }
.steps li:not(:last-child)::after { content: none; }
.ceo-message .section__title { font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.4; letter-spacing: -.035em; }
.ceo-message .section-head { overflow: visible; padding: 0; }
@media (min-width: 768px) { .values-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 48px; } }
@media (min-width: 1024px) {
  .steps { padding: 20px 0 0; }
  .steps::before, .steps::after { width: 100%; height: 3px; }
  .steps::after { transform: scaleX(var(--flow-progress)); transform-origin: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal { transition: opacity .8s var(--delay, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--delay, 0s); }
  .motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); animation: reveal-failsafe 0s 3s forwards; }
  .motion-ready .hero__visual { animation: photo-enter 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .motion-ready .hero__line > span { animation: title-enter .9s cubic-bezier(.2,.7,.2,1) both; }
  .motion-ready .hero__line:nth-child(2) > span { animation-delay: .16s; }
  .motion-ready .hero__scroll > span { animation: scroll-bob 1.8s ease-in-out infinite; }
  .card, .pillar, .product, .btn { transition: transform .25s, box-shadow .25s, background .25s; }
  .card:hover, .pillar:hover, .product:hover, .btn:hover { transform: translateY(-5px); }
  .values li { transition: color .3s; }
  .values-meter__bar { transition: transform .4s; }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
@keyframes photo-enter { from { opacity: 0; transform: translateY(32px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes title-enter { from { transform: translateY(105%); } to { transform: none; } }
@keyframes scroll-bob { 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
/* 代表メッセージ（会社概要） */
.ceo-message { display: grid; gap: 40px; align-items: start; }
.ceo-message__photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 48px #11182724; }
.ceo-message__photo img { display: block; width: 100%; height: auto; }
.ceo-message__lead { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 900; line-height: 1.35; margin: 0 0 32px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ceo-message__body > p { line-height: 2; margin: 0 0 20px; }
.ceo-message__sign { margin-top: 32px; text-align: right; font-size: .9375rem; }
.ceo-message__sign strong { font-size: 1.25rem; margin-left: .5em; }
@media (min-width: 1024px) {
  .ceo-message { grid-template-columns: 5fr 7fr; gap: 64px; }
  .ceo-message__photo { position: sticky; top: calc(var(--site-header-height) + 24px); }
}

.pillar__image, .service__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.pillar__image { margin-bottom: 24px; }

/* Official service logos */
.service-logo { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; max-width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.service-logo img { display: block; width: auto; max-width: 100%; height: 44px; object-fit: contain; }
.service-logo img[src$="/logica.png"] { width: 215px; height: 44px; object-fit: cover; object-position: center; }
.service-logo img[src$="/lohaspark.png"] { width: 215px; height: 44px; object-fit: contain; }
.service-logo:has(img[src$="/guardbook.png"]) { min-height: 80px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.service-logo img[src$="/guardbook.png"] { width: 215px; height: auto; object-fit: contain; }
.service-logo--square img { height: 80px; }
.product-detail-grid .card { display: flex; }
.product-detail-grid .card__body { width: 100%; }
.product-detail-grid .service-logo { align-self: stretch; width: 100%; height: 112px; min-height: 112px; padding: 0; margin: 0 0 24px; border: 0; border-radius: 0; background: transparent; }
.product-detail-grid .service-logo img { max-height: 96px; object-fit: contain; }
.product-detail-grid .service-logo--square img { height: 96px; }
.product-detail-grid .card__body > p:last-child { margin-top: auto; padding-top: 24px; }
@media (min-width: 768px) {
  .product-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-grid .card h3 { min-height: 3.2em; }
}
/* R4: values, approach and INNOVAITER */
.philosophy { overflow: clip; }
.philosophy__row small, .about .section-head__ja small { font-size: .55em; }
.philosophy__row .philosophy__detail { margin-top: 16px; font-size: 1rem; font-weight: 500; color: var(--muted); }
.values-panel { position: relative; isolation: isolate; overflow: clip; background: var(--bg-soft); margin-top: 48px; padding: clamp(24px, 4vw, 56px); }
.values-outline { position: absolute; bottom: 0; left: 0; width: 100%; color: transparent; -webkit-text-stroke: 1px #dce4eb; font: 900 clamp(4rem, 17vw, 13rem)/.85 "Montserrat", sans-serif; letter-spacing: -.065em; white-space: nowrap; z-index: -1; pointer-events: none; }
.values-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 0; }
.values-intro h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.5; font-weight: 800; letter-spacing: -.04em; }
.values-meter { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; max-width: 240px; margin-top: 28px; }
.values-meter__number { font-size: 80px; letter-spacing: -.06em; }
.values-meter__total { color: var(--muted); font: 700 1rem "Montserrat", sans-serif; }
.values-meter__track { flex-basis: 100%; margin-top: 8px; height: 2px; }
.values-caption { margin-top: 24px; color: var(--muted); font-size: .8125rem; }
.values li { padding: 32px 0; color: var(--ink); }
.values li:first-child { padding-top: 0; }
.values-label { color: var(--muted); font: 700 .75rem/1.8 "Montserrat", sans-serif; letter-spacing: .12em; }
.values h4 { margin: 12px 0; font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 800; }
.values-description { color: var(--muted); font-size: .9375rem; font-weight: 500; line-height: 2; }
.values li.is-active { color: var(--ink); }
.values li.is-active h4, .values li.is-active .values-label { color: var(--red); }
.approach { background: linear-gradient(180deg, white, var(--bg-soft)); }
.approach-layout { display: grid; gap: 40px; }
.approach .section-head { margin: 0; }
.approach .bg-word { display: none; }
.approach .section-head__ja { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.steps { padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); }
.steps li { min-height: 108px; padding: 0 0 28px 60px; border: 0; border-radius: 0; background: transparent; }
.steps li:last-child { min-height: 40px; padding-bottom: 0; }
.steps li > span { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--red); border-radius: 50%; background: white; color: var(--red); font: 700 .75rem "Montserrat", sans-serif; }
.steps li:last-child > span { background: var(--grad); color: white; border-color: transparent; }
.steps h3 { margin: 0; padding-top: 3px; font-size: 1rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.steps::before, .steps::after { top: 20px; left: 19px; width: 2px; height: calc(100% - 40px); }
.steps::after { background: var(--grad); transform: scaleY(var(--flow-progress)); transform-origin: top; }
.motion-ready .steps li > span { border-color: #a9b2bd; color: var(--muted); }
.motion-ready .steps li.is-lit > span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 5px #c5001809; }
.motion-ready .steps li:last-child > span { color: white; border-color: transparent; }
.training-block { margin-block: 40px; }
.training h3 { margin-bottom: 20px; }
.training h4 { margin: 0 0 12px; font-size: 1.0625rem; }
.training-features { list-style: disc; padding-left: 1.3em; margin-block: 24px; }
.training-features li + li { margin-top: 8px; }
.training-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.training-tags li { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.training-learning { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0 0 20px; }
.training-learning li { padding: 24px; background: var(--bg-soft); border-top: 2px solid var(--red); }
.training-plan { display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); margin-bottom: 32px; background: var(--bg-soft); border-radius: 16px; }
.training-plan p + p { margin-top: 12px; }
.training-price { color: var(--red); }
.training-price strong { font: 800 clamp(2.5rem, 5vw, 3.5rem) "Montserrat", sans-serif; }
@media (min-width: 768px) {
  .values-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; }
  .values-intro { position: sticky; top: calc(var(--site-header-height) + 24px); }
  .values li { padding-block: 44px; }
  .training-learning { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .training-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .approach-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li, .steps li:last-child { padding: 60px 8px 0 0; min-height: 0; }
  .steps::before, .steps::after { top: 19px; left: 20px; width: 75%; height: 2px; }
  .steps::after { transform: scaleX(var(--flow-progress)); transform-origin: left; }
}
@media (prefers-reduced-motion: reduce) {
  .values-intro { position: static; }
  .steps::after { transform: none; }
}
.external-link-icon { display: inline-block; width: .85em; height: .85em; margin-inline-start: .3em; vertical-align: -.05em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Page-level section rhythm; nested cards, form sections and dark CTAs stay unchanged. */
.page-home #main > .numbers .stats { column-gap: clamp(20px, 3vw, 40px); }
.page-home #main > .numbers .stats > div { justify-content: flex-start; padding-block: 18px; }
.page-home #main > .numbers .stats dt { font-size: .8125rem; line-height: 1.6; }
.page-home #main > .numbers .stats dd { margin-top: 8px; color: var(--ink); }
.page-home #main > .numbers .stats strong { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.025em; }
.page-home #main > .numbers .stats dd span { font-weight: 500; color: var(--muted); }
.page-home #main > .about .about__cta { margin-top: clamp(24px, 3vw, 32px); }
.page-home #main > .about .about__cta > .btn { gap: 12px; padding-inline: clamp(20px, 3vw, 28px); max-width: 100%; text-align: center; }
.page-home #main > .about .about__cta > .btn > span { flex-shrink: 0; }
@media (max-width: 767px) {
  .page-home #main > .about .about__cta > .btn { width: 100%; }
}
.page-home #main > .local .card { display: flex; }
.page-home #main > .local .card__body { width: 100%; padding: 24px; }
.page-home #main > .local .local-logos { display: grid; grid-auto-rows: minmax(0, 1fr); align-items: stretch; justify-items: center; gap: 12px; width: 100%; height: 96px; margin: 8px 0 24px; }
.page-home #main > .local .local-logos .service-logo { display: flex; align-self: stretch; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
.page-home #main > .local .local-logos img { width: 100%; height: 100%; max-width: 180px; max-height: 80px; object-fit: contain; }
.page-home #main > .local .local-logos img[src$="/logica.png"] { width: 215px; max-width: 100%; height: 44px; object-fit: cover; }
.page-home #main > .local .local-logos img[src$="/lohaspark.png"] { width: 215px; max-width: 100%; height: 44px; object-fit: contain; }
.page-home #main > .local .card h3 { font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }
.page-home #main > .local .card__body > p:not(.card__label) { font-size: .875rem; line-height: 1.75; }
.page-home #main > .local .card__link { margin-top: auto; padding-top: 24px; }
.page-home #main > .products .product { padding: 24px; }
.page-home #main > .products .product .service-logo { display: flex; align-self: stretch; width: 100%; height: 112px; min-height: 0; margin: 8px 0 24px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.page-home #main > .products .product .service-logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.page-home #main > .products .product h3 { font-size: 1rem; line-height: 1.6; margin: 0 0 12px; }
.page-home #main > .products .product > p:not(.card__label) { font-size: .875rem; line-height: 1.75; margin-bottom: 20px; }
.page-home #main > .products .product .card__link { justify-content: flex-start; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; border-top: 0; }
@media (min-width: 768px) {
  .page-home #main > .local .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home #main > .local .local-logos { height: 112px; }
}
@media (min-width: 1200px) {
  .page-home #main > .local .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#main > section.section:not(.contact-section) { padding-block: clamp(72px, 8vw, 120px); }
#main > nav[aria-label="パンくず"] + section.section { padding-top: clamp(24px, 3vw, 40px); }
body:not(.page-home) #main > section.section:nth-of-type(even):not(.contact-section) { background-color: var(--bg-soft); }
/* Keep the existing content width while carrying section backgrounds to the viewport edges. */
#main > section.section.container { width: 100%; margin-inline: 0; padding-inline: max(20px, calc((100% - var(--content-width)) / 2)); }
#main > section.section:not(.contact-section) > .section-head > .section__title,
#main > section.section:not(.contact-section) > .container > .section-head > .section__title { margin-bottom: 0; }
@media (min-width: 768px) {
  #main > section.section.container { padding-inline: max(32px, calc((100% - var(--content-width)) / 2)); }
}

/* Reference palette: explicit top-level surfaces, with accents inside the top padding. */
#main > section[aria-labelledby="company-title"] .values-panel { background: #EDF4F8; }
.page-home #main > .about,
.page-home #main > .approach,
.page-home #main > .products,
.page-home #main > .updates { background: #EDF4F8; }
.page-home #main > .business,
.page-home #main > .numbers,
.page-home #main > .local { background: #fff; }
.page-home #main > .about,
.page-home #main > .business,
.page-home #main > .products { position: relative; }
.page-home #main > .about::before,
.page-home #main > .business::before,
.page-home #main > .products::before {
  content: "";
  position: absolute;
  top: 24px;
  right: max(20px, calc((100% - var(--content-width)) / 2));
  width: 120px;
  height: 24px;
  background: repeating-linear-gradient(120deg, transparent 0 14px, #fff 14px 20px, transparent 20px 28px);
  pointer-events: none;
}
.page-home #main > .business::before {
  background: repeating-linear-gradient(120deg, transparent 0 14px, #C50018 14px 20px, transparent 20px 28px);
}
@media (max-width: 767px) {
  .page-home #main > .about::before,
  .page-home #main > .business::before { top: 20px; width: 64px; height: 16px; }
  .page-home #main > .products::before { display: none; }
}

/* Facility photo galleries */
.facility-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block: 32px; }
.facility-gallery figure { min-width: 0; margin: 0; }
.facility-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.facility-gallery figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.6; }
@media (max-width: 767px) {
  .facility-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
/* Optional photographs for work entries */
/* Editorial photo blocks: fixed composition, varied sizes. */
.work-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(72px, 8vw, 110px); gap: 16px; margin-block: 28px 48px; }
.work-gallery figure { display: flex; flex-direction: column; grid-column: span 2; grid-row: span 4; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 14px; background: #edf4f8; }
.work-gallery figure:nth-child(8n + 1) { grid-column: span 4; }
.work-gallery figure:nth-child(8n + 3), .work-gallery figure:nth-child(8n + 4) { grid-row: span 4; }
.work-gallery figure:nth-child(8n + 4), .work-gallery figure:nth-child(8n + 7) { grid-column: span 4; }
.work-gallery figure:nth-child(8n + 5), .work-gallery figure:nth-child(8n + 6) { grid-column: span 3; grid-row: span 3; }
.work-gallery figure:nth-child(8n + 7), .work-gallery figure:nth-child(8n + 8) { grid-row: span 3; }
.work-gallery a { display: block; flex: 1; min-height: 0; overflow: hidden; }
.work-gallery a:focus-visible { outline: 3px solid var(--red); outline-offset: -4px; }
.work-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-gallery figcaption { padding: 10px 14px; font-size: .8125rem; line-height: 1.6; }
.work-gallery--notice figure:nth-child(1) { grid-column: span 2; }
.work-gallery--notice figure:nth-child(2) { grid-column: span 4; }
.work-gallery--notice figure:nth-child(3), .work-gallery--notice figure:nth-child(4) { grid-column: span 3; grid-row: span 3; }
.work-gallery--notice img { object-fit: contain; }
.work-gallery--single { display: block; max-width: 843px; }
.work-gallery--single img { height: auto; }
.work-gallery--archive img { object-fit: contain; }
@media (max-width: 767px) {
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 100px; gap: 10px; }
  .work-gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 3; }
  .work-gallery figure:nth-child(3n + 1), .work-gallery figure:last-child:nth-child(3n + 2), .work-gallery--notice figure:nth-child(2) { grid-column: span 2; }
  .work-gallery--notice figure:nth-child(3), .work-gallery--notice figure:nth-child(4) { grid-column: span 1; }
  .work-gallery figcaption { padding: 8px 10px; font-size: .75rem; }
}
.entry-list__link--photo { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 20px; align-items: start; }
.entry-list__thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.entry-list__text { min-width: 0; }
.work-detail-photo { display: block; width: auto; max-width: 100%; max-height: 560px; height: auto; border-radius: 12px; }
@media (max-width: 767px) {
  .entry-list__link--photo { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
}
