/* ===========================================================================
   Services / Manufacturing — page basics: text helpers, hero text column,
   proof strip, reveal, reduced motion.
   Tokens (--navy, --blue, --muted…) come from home-prototype.css. Every class
   is mf- prefixed. Rule of the page: without JS (no html.js) everything is
   visible in its final state; the script only adds the master-detail switch.
   =========================================================================== */

/* text shades the site tokens lack at >= 4.5:1 on light tints (same values as the Cloud page) */
:root { --mf-blue-text: #165F9C; --mf-green-text: #2B745F; --mf-amber-text: #8A6300; }

.mf-p { margin: 0; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.95; color: var(--muted); }
.mf-lead { margin: 12px 0 0; max-width: 46em; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.95; color: var(--muted); }
.mf-note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.mf-hd { margin-bottom: var(--sp-tight); }

/* amber dot = "this can be pressed" (site rule): only on controls that change content in place,
   and only once the script has made them work */
.mf-hot { position: relative; display: none; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
html.js .mf-hot { display: inline-block; }

@keyframes mf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* hero h1 starts at .15, not 0: Chrome skips opacity:0 elements when it stamps LCP */
@keyframes mf-rise-hero { from { opacity: .15; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mf-pop { 0% { opacity: .2; transform: scale(.94); } 100% { opacity: 1; transform: none; } }

/* --- hero ---------------------------------------------------------------- */
.mf-hero { color: var(--white); background-color: var(--navy-deep); background-image: linear-gradient(rgba(143, 201, 245, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 201, 245, .06) 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; }
.mf-hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(36px, 4.4vw, 64px); padding-top: 36px; padding-bottom: 52px; }
.mf-hero__txt { flex: 10 1 420px; min-width: 0; }
.mf-hero .eyebrow { letter-spacing: .12em; }
.mf-hero__h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 50px); font-weight: 900; line-height: 1.3; letter-spacing: .01em; color: var(--white); text-wrap-style: balance; }
.mf-hero__h1 span { display: inline-block; }
.mf-hero__lead { margin: 0; max-width: 33em; font-family: 'Noto Sans JP', sans-serif; font-size: 17px; line-height: 1.75; color: var(--white); }
.mf-hero__pairs { width: 100%; max-width: 38em; margin: 12px 0 0; border-collapse: collapse; table-layout: fixed; }
.mf-hero__pairs th, .mf-hero__pairs td { padding: 9px 20px 9px 0; border-bottom: 1px solid rgba(143, 201, 245, .28); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.6; }
.mf-hero__pairs thead th { padding-top: 0; padding-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue-pale); }
.mf-hero__pairs td { font-weight: 400; color: var(--on-dark-muted); }
.mf-hero__pairs tbody th { font-weight: 700; color: var(--white); }
.mf-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 18px; }
.mf-hero__more { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
@media (hover: hover) { .mf-hero__more:hover { border-color: var(--white); } }
.mf-rise { animation: mf-rise .55s var(--ease-out) both; }
.mf-hero__h1.mf-rise { animation-name: mf-rise-hero; }
.mf-d1 { animation-delay: .08s; } .mf-d2 { animation-delay: .18s; } .mf-d3 { animation-delay: .28s; } .mf-d4 { animation-delay: .38s; }

/* The signature figure (four-terrace plant) lives in svc-manufacturing-model.css. */

/* --- proof strip: three sourced facts right under the hero ----------------- */
.mf-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.mf-proof li { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 6px; padding: 26px 28px 24px 0; }
.mf-proof li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.mf-proof b { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; line-height: 1.1; color: var(--navy); letter-spacing: .01em; }
.mf-proof b small { margin-left: 4px; font-size: .5em; font-weight: 700; }
.mf-proof span { font-size: 15px; line-height: 1.7; color: var(--ink); }
.mf-proof a { align-self: start; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -10px; font-size: 14px; font-weight: 700; color: var(--mf-blue-text); text-decoration: underline; text-underline-offset: 3px; }
.mf-proof em { align-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -10px; font-style: normal; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* --- reveal on scroll: home-motion.js sets html.js and toggles .is-in on [data-io] --- */
html.js .mf-io[data-io] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
html.js .mf-io[data-io].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .mf-proof { grid-template-columns: 1fr; }
  .mf-proof li, .mf-proof li + li { grid-row: auto; grid-template-rows: none; padding: 20px 0; border-left: 0; }
  .mf-proof li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .mf-hero__grid { padding-top: 40px; padding-bottom: 44px; }
  .mf-hero__pairs th, .mf-hero__pairs td { padding-right: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-hero *, .mf-x *, .mf-io { animation: none !important; transition: none !important; }
  html.js .mf-io[data-io] { opacity: 1; transform: none; }
}
