:root {
  --green-950: #063d25;
  --green-900: #0a4e2f;
  --green-800: #0d643b;
  --green-700: #177d4a;
  --green-600: #26945d;
  --green-100: #e8f3ed;
  --green-050: #f3f8f5;
  --blue-logo: #1b5fae;
  --orange: #dc7b34;
  --ink: #15251d;
  --muted: #66746d;
  --line: #dce7e1;
  --white: #ffffff;
  --shadow-sm: 0 8px 28px rgba(8, 63, 38, 0.08);
  --shadow-md: 0 20px 50px rgba(5, 48, 29, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --shell: 1180px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 860px); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; background: var(--green-900); color: #fff; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(8,75,44,.09);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 190px; height: auto; }
.global-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: 14px; font-weight: 700; color: #34453c; }
.global-nav a { position: relative; padding-block: 8px; white-space: nowrap; transition: color .2s ease; }
.global-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--green-700); transition: left .2s ease, right .2s ease; }
.global-nav a:hover, .global-nav a:focus-visible, .global-nav .is-current { color: var(--green-800); }
.global-nav a:hover::after, .global-nav a:focus-visible::after, .global-nav .is-current::after { left: 0; right: 0; }
.global-nav .nav-cta { padding: 11px 20px; border-radius: 8px; color: #fff; background: var(--green-800); box-shadow: 0 8px 20px rgba(13,100,59,.18); transition: transform .2s ease, background .2s ease; }
.global-nav .nav-cta:hover, .global-nav .nav-cta:focus-visible { color: #fff; background: var(--green-900); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--green-900); transition: transform .25s, opacity .25s; }

.hero {
  position: relative;
  min-height: 440px;
  isolation: isolate;
  overflow: visible;
  color: #fff;
  background: var(--green-900);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(5,72,42,.98) 0%, rgba(5,72,42,.94) 37%, rgba(5,72,42,.28) 62%, rgba(5,72,42,.08) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -3;
  background: url("hero-factory-hd.jpg") center 49% / cover no-repeat;
  filter: saturate(.95) contrast(1.03);
}
.hero-geometry { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.shape { position: absolute; display: block; opacity: .92; }
.shape-a { width: 46%; height: 115%; left: -9%; top: -8%; background: linear-gradient(145deg, #096a3e, #064b2e); clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%); }
.shape-b { width: 34%; height: 73%; left: 20%; top: -30%; background: linear-gradient(145deg, rgba(42,155,95,.72), rgba(8,85,49,.18)); clip-path: polygon(0 0, 100% 0, 62% 100%); transform: rotate(-2deg); }
.shape-c { width: 31%; height: 48%; left: 38%; bottom: -28%; background: rgba(255,255,255,.08); clip-path: polygon(0 0, 100% 48%, 75% 100%, 0 100%); }
.hero-content { position: relative; padding-top: 76px; padding-bottom: 154px; }
.breadcrumb { margin: 0 0 28px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.breadcrumb span { margin-inline: 8px; opacity: .65; }
.hero h1 {
  width: min(680px, 64vw);
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.35;
  letter-spacing: .035em;
  text-shadow: 0 3px 18px rgba(0,0,0,.18);
}
.hero-lead { margin: 14px 0 0; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.93); }
.hero-points {
  position: absolute;
  left: 50%;
  bottom: -66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  z-index: 3;
}
.hero-point {
  min-height: 132px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--green-900);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(12,103,60,.12);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-weight: 800;
  letter-spacing: .03em;
}
.hero-point-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--green-700); background: var(--green-100); }
.hero-point-icon svg { width: 25px; height: 25px; }

.section { padding: 112px 0; }
.section-heading { text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--green-700); font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .22em; }
.section-heading h2, .contact-content h2 {
  margin: 0;
  color: var(--green-800);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.45;
  letter-spacing: .04em;
}
.heading-line { display: block; width: 42px; height: 3px; margin: 16px auto 18px; border-radius: 999px; background: var(--orange); }
.section-subtitle { margin: 0; color: #52635a; font-weight: 600; letter-spacing: .035em; }
.section-note { margin: 10px 0 0; color: #8a9790; font-size: 12px; }

.intro { padding-top: 144px; background: #fff; }
.intro-copy { margin-top: 46px; padding: 38px 48px; position: relative; background: linear-gradient(135deg, #f7faf8 0%, #fff 70%); border-left: 4px solid var(--green-700); box-shadow: var(--shadow-sm); }
.intro-copy::after { content: ""; position: absolute; right: 18px; top: 18px; width: 82px; height: 82px; border-radius: 50%; background: radial-gradient(circle, rgba(27,125,74,.11) 0 2px, transparent 3px); background-size: 12px 12px; opacity: .5; }
.intro-copy p { position: relative; z-index: 1; margin: 0; color: #4d5e55; text-align: center; }
.intro-copy p + p { margin-top: 16px; }
.intro-copy strong { color: var(--green-900); font-weight: 800; }

.products { position: relative; background: linear-gradient(180deg, #eff7f2 0%, #f7fbf8 54%, #edf6f0 100%); overflow: hidden; }
.products::before, .products::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.products::before { width: 420px; height: 420px; left: -250px; top: 120px; background: rgba(30,139,82,.07); }
.products::after { width: 360px; height: 360px; right: -210px; bottom: 70px; background: rgba(30,139,82,.06); }
.product-grid { position: relative; z-index: 1; margin-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; min-height: 460px; background: #fff; border: 1px solid rgba(8,78,45,.11); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(14,116,67,.22); }
.product-image-wrap { position: relative; height: 270px; display: grid; place-items: center; background: linear-gradient(180deg, #fff 0%, #fafcfb 100%); border-bottom: 1px solid #edf2ef; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.image-label { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 10px; border-radius: 5px; background: #707a74; color: #fff; font-size: 11px; line-height: 1; font-weight: 700; }
.product-body { padding: 26px 28px 30px; }
.product-body h3, .product-card-consult h3 { margin: 0 0 12px; color: #173323; font-size: 19px; line-height: 1.5; }
.product-body p, .product-card-consult p { margin: 0; color: #647169; font-size: 14px; line-height: 1.85; }
.product-card-consult { min-height: 460px; padding: 48px 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(145deg, #f5faf7, #e7f3eb); border: 1px solid rgba(12,105,61,.19); }
.product-card-consult::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(17,123,71,.12); border-radius: 50%; }
.product-card-consult { position: relative; }
.product-card-consult > * { position: relative; z-index: 1; }
.consult-icon { width: 62px; height: 62px; margin-bottom: 22px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green-700); box-shadow: 0 14px 28px rgba(15,120,69,.24); }
.consult-icon svg { width: 31px; height: 31px; }
.product-card-consult h3 { color: var(--green-800); }

.flow { background: #fff; }
.flow-list { list-style: none; padding: 0; margin: 58px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.flow-card { position: relative; min-height: 300px; padding: 44px 24px 30px; text-align: center; background: #fff; border: 1px solid rgba(8,93,52,.16); border-radius: var(--radius-md); box-shadow: 0 10px 25px rgba(7,76,43,.06); }
.flow-card:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -27px; z-index: 3; width: 36px; height: 2px; background: linear-gradient(90deg, var(--green-300, #8cc9a6), transparent); }
.flow-card:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 4px); right: -27px; z-index: 4; width: 8px; height: 8px; border-top: 2px solid var(--green-600); border-right: 2px solid var(--green-600); transform: rotate(45deg); }
.step-number { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--green-700); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 8px 18px rgba(11,101,58,.2); font-size: 14px; font-weight: 800; }
.step-icon { width: 66px; height: 66px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 18px; color: var(--green-700); background: var(--green-100); }
.step-icon svg { width: 34px; height: 34px; }
.flow-card h3 { margin: 0 0 12px; color: #1d3527; font-size: 17px; line-height: 1.5; }
.flow-card p { margin: 0; color: #6e7a73; font-size: 13px; line-height: 1.75; }

.contact-band { position: relative; isolation: isolate; min-height: 310px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--green-900); }
.contact-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,53,30,.94), rgba(9,91,52,.82), rgba(3,53,30,.91)); }
.contact-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.16), transparent 45%); }
.contact-band-photo { position: absolute; inset: 0; z-index: -2; background: url("cta-industrial.jpg") center 48% / cover no-repeat; filter: saturate(.6) contrast(1.1); }
.contact-content { padding: 62px 0; text-align: center; }
.eyebrow-light { color: rgba(255,255,255,.68); }
.contact-content h2 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.contact-content p { margin: 10px 0 28px; color: rgba(255,255,255,.86); font-weight: 600; letter-spacing: .03em; }
.contact-button { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 10px; background: #fff; color: var(--green-800); font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.18); transition: transform .2s ease, background .2s ease; }
.contact-button svg { width: 18px; height: 18px; }
.contact-button:hover, .contact-button:focus-visible { transform: translateY(-2px); background: #f0f8f3; }

.site-footer { background: #f5f8f6; border-top: 1px solid #e1ebe5; }
.footer-inner { padding: 58px 0 44px; display: grid; grid-template-columns: 1.25fr 2fr; gap: 80px; }
.footer-brand img { width: 210px; }
.footer-brand p { max-width: 360px; margin: 22px 0 0; color: #637168; font-size: 13px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.footer-nav h2 { margin: 0 0 18px; color: #20362a; font-size: 14px; }
.footer-nav a { display: block; width: fit-content; margin-top: 9px; color: #617067; font-size: 13px; transition: color .2s, transform .2s; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--green-700); transform: translateX(3px); }
.footer-bottom { padding: 18px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #dfe8e3; color: #849087; font-size: 11px; }
.footer-bottom a { color: var(--green-700); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 70px; }
  .global-nav { gap: 14px; font-size: 12px; }
  .global-nav .nav-cta { padding: 9px 13px; }
  .brand img { width: 168px; }
  .hero { min-height: 410px; }
  .hero-content { padding-top: 66px; }
  .product-image-wrap { height: 230px; }
  .product-card, .product-card-consult { min-height: 420px; }
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .flow-card:not(:last-child)::before, .flow-card:not(:last-child)::after { display: none; }
  .footer-inner { gap: 44px; }
}

@media (max-width: 820px) {
  .shell, .narrow { width: min(calc(100% - 32px), var(--shell)); }
  .nav-toggle { display: block; position: relative; z-index: 102; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 101;
    padding: 24px 24px 30px;
    display: grid;
    gap: 0;
    background: rgba(255,255,255,.99);
    border-top: 1px solid #e5ece8;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .global-nav a { padding: 13px 4px; border-bottom: 1px solid #edf1ef; font-size: 14px; }
  .global-nav a::after { display: none; }
  .global-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .hero { min-height: 470px; }
  .hero-photo { left: 18%; opacity: .72; }
  .hero::after { background: linear-gradient(90deg, rgba(5,72,42,.98) 0%, rgba(5,72,42,.88) 54%, rgba(5,72,42,.28) 100%); }
  .shape-a { width: 78%; }
  .shape-b { left: 38%; width: 52%; }
  .hero-content { padding-top: 56px; padding-bottom: 180px; }
  .hero h1 { width: 88%; }
  .hero-points { bottom: -168px; grid-template-columns: 1fr; gap: 10px; }
  .hero-point { min-height: auto; padding: 15px 18px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .hero-point-icon { flex: 0 0 auto; }
  .intro { padding-top: 235px; }
  .section { padding-block: 86px; }
  .intro-copy { padding: 30px 24px; }
  .intro-copy p { text-align: left; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 580px) {
  body { font-size: 15px; }
  .brand img { width: 152px; }
  .hero { min-height: 440px; }
  .hero-content { padding-top: 48px; }
  .breadcrumb { margin-bottom: 20px; }
  .hero h1 { width: 100%; font-size: 32px; }
  .hero-lead { max-width: 92%; line-height: 1.7; }
  .hero-points { bottom: -174px; }
  .section-heading h2, .contact-content h2 { font-size: 29px; }
  .section-subtitle { font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card, .product-card-consult { min-height: 0; }
  .product-image-wrap { height: 240px; }
  .flow-list { grid-template-columns: 1fr; gap: 34px; }
  .flow-card { min-height: 0; }
  .contact-band { min-height: 330px; }
  .contact-content p { font-size: 13px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-nav > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* Mobile spacing correction: the floating hero cards extend below the hero. */
@media (max-width: 820px) {
  .intro { padding-top: 250px; }
}
@media (max-width: 580px) {
  .intro { padding-top: 258px; }
}
