:root {
  --red: #c0272c;
  --red-deep: #7c272d;
  --blue: #2563b6;
  --ink: #161616;
  --paper: #fff;
  --line: #d5d5d5;
  --soft: #f5f5f3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  word-break: auto-phrase;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 96px;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 max(4.2vw, 30px);
  border-bottom: 1px solid rgba(0, 0, 0, .18);
  background: var(--red);
  color: #fff;
}

.brand {
  display: inline-flex;
  min-width: 195px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.05em;
}

nav { display: flex; align-items: stretch; }
nav a {
  display: grid;
  min-width: 130px;
  place-items: center;
  padding: 0 20px;
  border-left: 1px dotted rgba(255, 255, 255, .76);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
nav a:last-child { border-right: 1px dotted rgba(255, 255, 255, .76); }
nav a:hover { background: #fff000; color: var(--ink); }

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 76px 30px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.12)), url("./assets/food-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-panel {
  display: flex;
  width: min(550px, 100%);
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 42px;
  border: 1px solid var(--blue);
  background: rgba(255,255,255,.9);
  text-align: center;
}

html.js .hero-panel { animation: hero-panel-in .9s cubic-bezier(.16,.82,.2,1) .1s both; }

@keyframes hero-panel-in {
  from { opacity: 0; transform: translate3d(-68px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero-kicker, .section-title > p, .contact-title > p:first-child {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1 {
  margin-bottom: 17px;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1.2;
}

.hero-lead { margin-bottom: 28px; font-size: 16px; font-weight: 700; }

.button {
  display: inline-flex;
  min-width: 225px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button span { font-size: 24px; font-weight: 400; line-height: 1; }
.button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.section { padding: 116px max(5.6vw, 30px); }
.section-title { margin-bottom: 55px; text-align: center; }
.section-title > p { margin-bottom: 8px; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.07em; line-height: 1.25; }

.section-oem { background: #fff; }
.intro { max-width: 720px; margin: 0 auto 55px; text-align: center; }
.intro p { margin-bottom: 0; font-size: 16px; font-weight: 700; }

.oem-cards { display: grid; max-width: 1220px; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 auto; }
.oem-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.oem-card img { aspect-ratio: 1.38; object-fit: cover; }
.oem-card > div { min-height: 205px; padding: 28px 29px 31px; border-top: 6px solid var(--blue); }
.card-number { margin-bottom: 9px; color: var(--blue); font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
h3 { margin-bottom: 10px; font-size: 23px; letter-spacing: -.04em; }
.oem-card > div > p:last-child { margin-bottom: 0; font-size: 14px; }

.section-company { background: var(--soft); }
.company-layout { display: grid; max-width: 1220px; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); margin: 0 auto; }
.company-image { min-height: 100%; background: url("./assets/food-factory.png") center / cover no-repeat; }
.company-table { margin: 0; border: 1px solid var(--ink); border-bottom: 0; background: #fff; }
.company-table div { display: grid; grid-template-columns: 31% 69%; border-bottom: 1px solid var(--ink); }
.company-table dt, .company-table dd { margin: 0; padding: 27px 25px; }
.company-table dt { border-right: 1px solid var(--ink); background: #f8f7f3; font-size: 14px; font-weight: 700; }
.company-table dd { font-size: 15px; }

.section-contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 9vw; background: var(--red); color: #fff; }
.contact-title { align-self: start; }
.contact-title > p:first-child { color: #fff000; }
.contact-title h2 { margin-bottom: 24px; }
.contact-title > p:last-child { max-width: 460px; margin-bottom: 0; font-size: 15px; }

.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label span { font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #fff; border-radius: 0; padding: 14px 15px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
textarea { resize: vertical; }
.button-light { margin-top: 8px; border-color: #fff; background: #fff; color: var(--red); }
.button-light:hover { border-color: #fff000; background: #fff000; color: var(--ink); }
.form-note { min-height: 1.8em; margin: 0; color: #fff7b4; font-size: 12px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 95px; padding: 0 max(5.6vw, 30px); background: var(--red-deep); color: #fff; }
.site-footer .brand { min-width: auto; padding: 0; background: transparent; color: #fff; clip-path: none; }
.site-footer .brand-mark { width: 27px; height: 27px; background: #fff; color: var(--red-deep); font-size: 17px; }
.site-footer .brand-name { font-size: 21px; }
.site-footer p { margin: 0; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .05em; }

@media (max-width: 767px) {
  .site-header { height: 70px; padding: 0 18px; }
  .brand { min-width: auto; gap: 8px; padding: 0; background: transparent; color: #fff; clip-path: none; }
  .brand-mark { width: 27px; height: 27px; background: #fff; color: var(--red); font-size: 17px; }
  .brand-name { font-size: 21px; }
  nav a { display: none; }
  nav a:last-child { display: grid; min-width: 106px; padding: 0 12px; border-right: 1px dotted rgba(255,255,255,.76); font-size: 12px; }
  .hero { min-height: 470px; padding: 45px 22px; background-image: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.08)), url("./assets/food-hero.png"); }
  .hero-panel { min-height: 282px; padding: 35px 20px 31px; }
  .hero-kicker { font-size: 10px; }
  h1 { font-size: 45px; }
  .hero-lead { margin-bottom: 23px; font-size: 14px; }
  .button { width: 100%; min-width: 0; min-height: 54px; }
  .section { padding: 78px 22px; }
  .section-title { margin-bottom: 38px; }
  h2 { font-size: 37px; }
  .intro { margin-bottom: 36px; text-align: left; }
  .intro p { font-size: 14px; }
  .oem-cards { grid-template-columns: 1fr; gap: 19px; }
  .oem-card > div { min-height: auto; padding: 23px 22px 25px; }
  .company-layout, .section-contact { grid-template-columns: 1fr; gap: 0; }
  .company-image { min-height: 225px; }
  .company-table { border-top: 0; }
  .company-table div { grid-template-columns: 33% 67%; }
  .company-table dt, .company-table dd { padding: 19px 14px; }
  .company-table dt { font-size: 12px; }
  .company-table dd { font-size: 13px; }
  .section-contact { gap: 42px; }
  .contact-title > p:last-child { font-size: 14px; }
  .site-footer { min-height: 76px; padding: 0 22px; }
  .site-footer p { font-size: 10px; }
}

/* Food OEM detail and subpages */
nav a.is-current { background: #fff000; color: var(--ink); }

.oem-lead-layout {
  display: grid;
  max-width: 1220px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.oem-lead-image img { height: 100%; min-height: 390px; object-fit: cover; }
.oem-lead-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 74px); background: #f8f7f3; }
.oem-lead-copy p { margin-bottom: 23px; font-size: 15px; }
.oem-lead-copy p:last-child { margin-bottom: 0; }
.kicker-line { color: var(--blue); font-size: clamp(24px, 2.6vw, 36px) !important; font-weight: 700; letter-spacing: -.06em; line-height: 1.45; }

.detail-block { max-width: 1220px; margin: 110px auto 0; }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; padding-bottom: 19px; border-bottom: 1px solid var(--ink); }
.mini-label { margin-bottom: 9px; color: var(--blue); font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.detail-heading h3, .checks-copy h3, .contact-page-intro h2 { margin-bottom: 0; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.06em; line-height: 1.35; }

.consult-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.consult-grid article { min-height: 238px; padding: 32px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.consult-grid span { display: block; margin-bottom: 26px; color: var(--blue); font-family: Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.consult-grid h4 { margin: 0 0 11px; font-size: 22px; letter-spacing: -.04em; }
.consult-grid p { margin: 0; font-size: 14px; }

.detail-process { padding: 56px clamp(24px, 5vw, 64px) 60px; background: #f8f7f3; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.process-list li { min-height: 200px; padding: 0 24px; border-left: 1px solid var(--line); }
.process-list li:first-child { padding-left: 0; border-left: 0; }
.process-list li:last-child { padding-right: 0; }
.process-list span { display: block; margin-bottom: 19px; color: var(--blue); font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.process-list strong { display: block; margin-bottom: 11px; font-size: 18px; letter-spacing: -.04em; }
.process-list p { margin: 0; font-size: 13px; }

.detail-checks { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-bottom: 0; }
.checks-image img { height: 100%; min-height: 480px; object-fit: cover; }
.checks-copy { padding: clamp(34px, 5vw, 70px); background: var(--blue); color: #fff; }
.checks-copy .mini-label { color: #fff000; }
.checks-copy h3 { margin-bottom: 27px; }
.checks-copy ul { margin: 0 0 27px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.55); }
.checks-copy li { padding: 11px 0 11px 23px; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 14px; }
.checks-copy li::before { content: "—"; display: inline-block; width: 23px; margin-left: -23px; }
.checks-copy .small-copy { color: #fff; font-size: 13px; }

.oem-contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 76px max(5.6vw, 30px); background: var(--red); color: #fff; }
.oem-contact-cta > div > p { margin-bottom: 10px; color: #fff000; font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.oem-contact-cta h2 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); }

.footer-links { display: flex; gap: 22px; font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: #fff000; }

.subpage-hero { position: relative; display: grid; min-height: 330px; place-items: center; overflow: hidden; padding: 60px 30px; color: #fff; background-position: center; background-size: cover; }
.subpage-hero::after { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(6,13,18,.46), rgba(6,13,18,.12) 65%, rgba(6,13,18,.24)); content: ""; }
.subpage-title { position: relative; z-index: 1; width: min(1040px, 100%); padding: 6px 0 8px 34px; text-align: left; text-shadow: 0 2px 18px rgba(0,0,0,.38); }
.subpage-title::before { position: absolute; top: 3px; bottom: 4px; left: 0; width: 5px; background: #fff000; content: ""; }
.subpage-title p { margin: 0 0 11px; color: #fff000; font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.subpage-title h1 { margin: 0; font-size: clamp(46px, 5.2vw, 76px); letter-spacing: -.08em; line-height: 1.1; }
.subpage-company { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("./assets/food-factory.png"); }
.subpage-contact { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("./assets/food-hero.png"); }
.subpage-section { padding: 110px max(5.6vw, 30px); }
.company-page-content { background: var(--soft); }
.company-page-content .company-layout { margin: 0 auto; }

.contact-page-content { display: grid; max-width: 1080px; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(45px, 8vw, 110px); margin: 0 auto; }
.contact-page-intro .mini-label { margin-bottom: 14px; }
.contact-page-intro h2 { margin-bottom: 22px; }
.contact-page-intro > p:last-child { margin: 0; font-size: 15px; }
.contact-form-page { padding: 37px; border: 1px solid var(--line); background: #f8f7f3; }
.contact-form-page .form-note { color: var(--red-deep); }

@media (max-width: 767px) {
  nav a.is-current { display: none; }
  nav a:last-child.is-current { display: grid; }
  .oem-lead-layout, .detail-checks, .contact-page-content { grid-template-columns: 1fr; }
  .oem-lead-image img { min-height: 235px; }
  .oem-lead-copy { padding: 32px 24px; }
  .oem-lead-copy p { font-size: 14px; }
  .detail-block { margin-top: 74px; }
  .detail-heading { display: block; margin-bottom: 24px; }
  .detail-heading .mini-label { margin-bottom: 5px; }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-grid article { min-height: 0; padding: 25px 22px; }
  .consult-grid span { margin-bottom: 16px; }
  .detail-process { padding: 39px 23px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:first-child, .process-list li:last-child { min-height: 0; padding: 21px 0; border-top: 1px solid var(--line); border-left: 0; }
  .process-list li:last-child { border-bottom: 1px solid var(--line); }
  .process-list span { margin-bottom: 7px; }
  .process-list strong { margin-bottom: 7px; }
  .checks-image img { min-height: 275px; }
  .checks-copy { padding: 37px 24px; }
  .checks-copy li { font-size: 13px; }
  .oem-contact-cta { display: block; padding: 61px 22px; }
  .oem-contact-cta h2 { margin-bottom: 30px; }
  .footer-links { display: none; }
  .subpage-hero { min-height: 250px; padding: 45px 22px; }
  .subpage-title { width: 100%; padding-left: 21px; }
  .subpage-title h1 { font-size: clamp(42px, 12vw, 56px); }
  .subpage-section { padding: 75px 22px; }
  .contact-page-content { gap: 36px; }
  .contact-form-page { padding: 24px 18px; }
}

/* Image-led planning and reference cases */
.image-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.image-story figure { margin: 0; border: 1px solid var(--line); background: #fff; }
.story-image { overflow: hidden; aspect-ratio: 1 / 1; }
.story-image img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.65,.25,1); }
.image-story figure:hover .story-image img { transform: scale(1.055); }
.image-story figcaption { min-height: 167px; padding: 21px 21px 24px; }
.image-story figcaption span, .case-card p { display: block; margin: 0 0 10px; color: var(--blue); font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.image-story figcaption strong { display: block; margin-bottom: 8px; font-size: 18px; letter-spacing: -.04em; }
.image-story figcaption p { margin: 0; font-size: 13px; line-height: 1.7; }
#story-title { white-space: nowrap; font-size: min(38px, calc((100vw - 44px) / 12)); }

.case-studies { max-width: 1220px; }
.case-studies .section-title { margin-bottom: 42px; }
.case-studies .section-title span { display: block; margin-top: 12px; color: #444; font-size: 14px; font-weight: 500; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.case-image { overflow: hidden; aspect-ratio: 1 / .84; }
.case-image img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.65,.25,1), filter .35s ease; }
.case-card:hover .case-image img { transform: scale(1.06); filter: saturate(1.06); }
.case-card > div:last-child { min-height: 203px; padding: 23px 21px 27px; }
.case-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.45; }
.case-card > div:last-child > span { display: block; font-size: 13px; line-height: 1.75; }
.case-note { max-width: 750px; margin: 25px auto 0; color: #444; font-size: 13px; text-align: center; }

html.js .reveal { opacity: 0; filter: blur(4px); transform: translate3d(0, 42px, 0); transition: opacity .58s ease var(--delay, 0ms), filter .72s ease var(--delay, 0ms), transform .88s cubic-bezier(.16,.82,.2,1) var(--delay, 0ms); will-change: transform, opacity, filter; }
html.js .reveal[data-reveal="left"] { transform: translate3d(-72px, 0, 0); }
html.js .reveal[data-reveal="right"] { transform: translate3d(72px, 0, 0); }
html.js .reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }

@media (max-width: 767px) {
  #story-title { font-size: min(29px, calc((100vw - 44px) / 12)); }
  .image-story-grid, .case-grid { grid-template-columns: 1fr; }
  .image-story-grid { gap: 14px; }
  .story-image { aspect-ratio: 1.15 / 1; }
  .image-story figcaption { min-height: 0; padding: 20px 19px 23px; }
  .case-studies .section-title { margin-bottom: 31px; text-align: left; }
  .case-studies .section-title span { font-size: 13px; }
  .case-image { aspect-ratio: 1.35 / 1; }
  .case-card > div:last-child { min-height: 0; padding: 20px 19px 24px; }
  .case-card h3 { margin-bottom: 7px; font-size: 20px; }
  .case-note { margin-top: 20px; font-size: 12px; text-align: left; }
  html.js .hero-panel { animation-name: hero-panel-in-mobile; }
  html.js .reveal[data-reveal="left"], html.js .reveal[data-reveal="right"] { transform: translate3d(0, 28px, 0); }
}

@keyframes hero-panel-in-mobile {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
