:root {
  --ink: #10141a;
  --muted: #68717d;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --line: #dfe5ed;
  --red: #e31b2f;
  --dark: #0b1118;
  --shadow: 0 18px 44px rgba(18, 28, 42, 0.12);
  --page: 1280px;
  --pad: clamp(18px, 4vw, 46px);
  --header: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter,
    Arial,
    "Helvetica Neue",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--page);
  height: var(--header);
  display: grid;
  grid-template-columns: 190px minmax(430px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand img {
  width: 164px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 3vw, 54px);
}

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.catalog-search {
  position: relative;
  display: block;
}

.header-search input,
.catalog-search input {
  width: 300px;
  height: 42px;
  padding: 0 44px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.header-search b,
.catalog-search b {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 18px;
}

.language-menu {
  display: inline-flex;
  overflow: hidden;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.language-menu button {
  min-width: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.language-menu button[aria-pressed="true"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: var(--paper);
  background: var(--dark);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 14, 20, 0.96) 0%, rgba(9, 14, 20, 0.78) 34%, rgba(9, 14, 20, 0.18) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  min-height: 390px;
  display: grid;
  align-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 58px var(--pad) 64px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.02;
  font-weight: 950;
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 156px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: var(--paper);
  background: var(--red);
}

.secondary-action {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action::after,
.secondary-action::after,
.category-card a span,
.business-card a::after,
.panel-heading a::after,
.link-stack a::after,
.row-arrow {
  content: "›";
  font-size: 22px;
  line-height: 1;
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 3px;
}

.hero-progress span {
  background: rgba(255, 255, 255, 0.32);
}

.hero-progress .active {
  background: var(--red);
}

.category-section,
.info-panel,
.split-section,
.business-section,
.catalog-section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 26px var(--pad) 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 202px;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(150px, 42%);
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(18, 28, 42, 0.04);
}

.category-card > div {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px 0 26px 26px;
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  white-space: nowrap;
}

body[data-lang="es"] .category-card h3,
body[data-lang="jp"] .category-card h3 {
  white-space: normal;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-card a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: var(--red);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.info-panel {
  padding-top: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 23px;
}

.panel-heading a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.info-panel {
  border-radius: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(18, 28, 42, 0.04);
}

.info-grid article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.info-grid article:last-child {
  border-right: 0;
}

.info-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  font-weight: 950;
}

.info-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  padding-top: 26px;
}

.company-card,
.catalog-card {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 14px;
  border-radius: 10px;
  padding: 42px;
  box-shadow: 0 8px 22px rgba(18, 28, 42, 0.04);
}

.company-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 60%, rgba(227, 27, 47, 0.05), transparent 24%),
    var(--paper);
}

.catalog-card {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(9, 14, 20, 0.95), rgba(9, 14, 20, 0.72)),
    url("assets/generated/mitsufil-hero.png") center / cover no-repeat;
}

.company-card h2,
.catalog-card h2 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.02;
}

.company-card p:not(.eyebrow),
.catalog-card p:not(.eyebrow) {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-card .secondary-action {
  width: fit-content;
  margin-top: 8px;
  color: var(--paper);
  border-color: var(--red);
}

.link-stack {
  display: grid;
  max-width: 420px;
  margin-top: 8px;
}

.link-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.link-stack a::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 50%;
  color: var(--red);
  border: 2px solid var(--red);
  font-size: 10px;
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
}

.section-title span {
  width: 42px;
  height: 3px;
  background: var(--red);
}

.business-section {
  padding-top: 28px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(18, 28, 42, 0.04);
}

.business-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--dark);
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.business-body h3 {
  margin: 0;
  font-size: 20px;
}

.business-body p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.business-body a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-section {
  padding-top: 30px;
  padding-bottom: 54px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pills button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-weight: 850;
}

.filter-pills button[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--red);
  background: var(--red);
}

.filter-pills span {
  margin-left: 8px;
  opacity: 0.8;
}

.catalog-search input {
  width: 100%;
  height: 40px;
}

.reference-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.reference-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.reference-table th {
  height: 42px;
  color: #27303b;
  background: #f2f5f8;
  font-size: 12px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.reference-table th,
.reference-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.reference-table tr:last-child td {
  border-bottom: 0;
}

.reference-table td {
  color: #1c2430;
  font-size: 13px;
  line-height: 1.35;
}

.reference-table th:nth-child(2),
.reference-table td:nth-child(2),
.reference-table th:nth-child(3),
.reference-table td:nth-child(3) {
  white-space: nowrap;
}

.reference-table td:first-child,
.reference-table th:first-child {
  width: 70px;
}

.reference-table td:last-child,
.reference-table th:last-child {
  width: 42px;
  color: var(--red);
  text-align: center;
}

.reference-table td img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.reference-table strong {
  font-weight: 950;
}

.row-arrow {
  color: var(--red);
}

.empty-state {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  min-height: 44px;
  margin: 22px auto 0;
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  background: var(--paper);
  font-weight: 900;
}

.more-button::after {
  content: "›";
  font-size: 22px;
}

.more-button[hidden] {
  display: none;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.52fr);
  gap: 42px;
  padding: 38px max(var(--pad), calc((100vw - var(--page)) / 2 + var(--pad)));
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(9, 14, 20, 0.98), rgba(9, 14, 20, 0.95)),
    url("assets/generated/mitsufil-hero.png") center / cover no-repeat;
}

.contact-heading h2 {
  max-width: 330px;
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.04;
}

.contact-heading p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.18fr) minmax(240px, 1fr) minmax(330px, 1.42fr);
  gap: 24px;
}

.contact-grid article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-grid article > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
}

.contact-grid strong {
  display: block;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.25;
}

.contact-grid p,
.contact-grid small {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.sales-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 10px 22px;
}

.sales-list strong {
  white-space: nowrap;
}

.sales-list small {
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px max(var(--pad), calc((100vw - var(--page)) / 2 + var(--pad)));
  color: rgba(255, 255, 255, 0.72);
  background: #070c12;
}

.site-footer img {
  width: 116px;
  filter: none;
}

.site-footer div:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer span,
.site-footer small {
  font-size: 12px;
  line-height: 1.25;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--paper);
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .header-search input {
    width: 220px;
  }

  .category-grid,
  .business-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-grid article:last-child {
    border-bottom: 0;
  }

  .split-section,
  .contact-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header: auto;
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 138px;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 18px var(--pad);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-open .site-nav {
    display: grid;
    justify-content: stretch;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .header-search {
    display: none;
  }

  .language-menu button {
    min-width: 38px;
  }

  .hero,
  .hero-inner {
    min-height: 430px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .category-card,
  .catalog-toolbar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-card img {
    height: 160px;
  }

  .reference-table-wrap {
    overflow-x: auto;
  }

  .reference-table {
    min-width: 860px;
  }

  .site-footer div:first-child {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 31px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .company-card,
  .catalog-card {
    padding: 28px;
  }

  .filter-pills button {
    width: 100%;
  }

  .contact-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
