:root {
  --ink: #25221e;
  --muted: #6d675e;
  --paper: #f7f3ec;
  --paper-2: #ece3d6;
  --wood: #7b5338;
  --charcoal: #171614;
  --moss: #5d6d4d;
  --line: rgba(37, 34, 30, 0.18);
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    Meiryo, system-ui, sans-serif;
  line-height: 1.7;
  line-break: strict;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.72);
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255, 250, 242, 0.78);
  background: rgba(255, 250, 242, 0.12);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 10, 0.86), rgba(15, 13, 10, 0.44) 46%, rgba(15, 13, 10, 0.12)),
    linear-gradient(0deg, rgba(15, 13, 10, 0.68), rgba(15, 13, 10, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d7c49a;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.heading-line,
.copy-line,
.stat-line {
  display: block;
}

.copy-line {
  max-width: 100%;
}

.no-break {
  white-space: nowrap;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 250, 242, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 250, 242, 0.86);
  font-weight: 800;
}

.button.primary {
  color: var(--charcoal);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 250, 242, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  background: rgba(255, 250, 242, 0.24);
}

.hero-stats div {
  padding: 16px;
  background: rgba(19, 17, 14, 0.58);
}

.hero-stats dt {
  font-size: 11px;
  color: rgba(255, 250, 242, 0.68);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

.intro > p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.fixture-card {
  min-height: 344px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.fixture-image {
  display: block;
  width: 100%;
  height: 118px;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-2);
}

.fixture-number {
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
}

.fixture-card h3,
.case-grid h3,
.flow-list h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.fixture-card h3 {
  min-height: 54px;
}

.fixture-card p,
.case-grid p,
.flow-list p,
.value-list p {
  margin: 0;
  color: var(--muted);
}

.image-product-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.image-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.image-product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.image-product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.image-product-body h3 {
  min-height: 58px;
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.image-product-body p {
  margin: 0;
  color: var(--muted);
}

.use-cases {
  position: relative;
  background:
    linear-gradient(0deg, rgba(17, 15, 12, 0.78), rgba(17, 15, 12, 0.72)),
    url("./assets/best-fit-pallet-wall.png") center / cover;
  color: var(--white);
}

.use-cases .section-heading {
  max-width: 760px;
}

.use-cases .eyebrow {
  color: #c9ac78;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: rgba(255, 250, 242, 0.2);
}

.case-grid article {
  min-height: 220px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.14), rgba(255, 250, 242, 0.04)),
    rgba(17, 15, 12, 0.72);
  backdrop-filter: blur(2px);
}

.case-grid p {
  color: rgba(255, 250, 242, 0.72);
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.value-list {
  display: grid;
  gap: 22px;
}

.value-list div {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.value-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-top: 4px solid var(--wood);
  background: var(--paper-2);
}

.flow-list span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--wood);
  font-weight: 900;
}

.flow-list h3 {
  margin-top: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 15, 12, 0.9), rgba(17, 15, 12, 0.7) 48%, rgba(17, 15, 12, 0.82)),
    url("./assets/contact-pallet-stacks.jpg") center / cover;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.16;
}

.contact-copy p {
  max-width: 620px;
  color: rgba(255, 250, 242, 0.76);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(37, 34, 30, 0.22);
  border-radius: 0;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form button {
  min-height: 50px;
  border: 0;
  background: var(--wood);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-form button:hover {
  background: #68442d;
}

.product-header {
  color: var(--ink);
  background: rgba(247, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.product-header .brand-mark {
  border-color: rgba(37, 34, 30, 0.42);
}

.product-header .nav-cta {
  border-color: var(--line);
  background: var(--charcoal);
  color: var(--white);
}

.products-page {
  background:
    linear-gradient(180deg, rgba(236, 227, 214, 0.82), rgba(247, 243, 236, 0) 320px),
    var(--paper);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(24px, 5vw, 72px);
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 66px;
  border-bottom: 1px solid var(--line);
}

.product-hero h1 {
  color: var(--ink);
}

.product-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-hero-note {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 8px;
}

.product-hero-note span,
.product-hero-note small {
  color: rgba(255, 250, 242, 0.72);
}

.product-hero-note strong {
  font-size: 26px;
  line-height: 1.2;
}

.product-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.product-heading-row h2 {
  min-width: min(100%, 320px);
}

.product-section-lead {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.product-card {
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  overflow: hidden;
  min-height: 610px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.product-media {
  display: block;
  min-height: 210px;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--paper-2);
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  padding: 20px;
}

.product-meta,
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stock-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.stock-badge.available {
  color: #22331f;
  background: rgba(93, 109, 77, 0.18);
}

.stock-badge.soldout {
  color: var(--white);
  background: var(--charcoal);
}

.sku {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  min-height: 58px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-spec {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-spec div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.product-spec dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-spec dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.price {
  font-size: 26px;
  line-height: 1;
}

.product-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--white);
  background: var(--wood);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.product-button.disabled {
  background: #a59b8f;
  cursor: not-allowed;
}

.board-section {
  padding-top: 24px;
}

.board-table {
  display: grid;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.board-image {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
}

.board-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.board-image figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(170px, 1.1fr) minmax(130px, 0.9fr) 110px 116px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-head {
  color: var(--white);
  background: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
}

.board-row span,
.board-row strong {
  overflow-wrap: anywhere;
}

.product-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--charcoal);
}

.product-contact-strip h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
}

.product-contact-strip .eyebrow {
  color: #c9ac78;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    padding-top: 120px;
  }

  .intro,
  .value-section,
  .contact-section,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .fixture-grid,
  .case-grid,
  .flow-list,
  .product-grid,
  .image-product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-heading-row,
  .product-contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card {
    min-height: 560px;
  }

  .section-heading h2,
  .contact-copy h2,
  .product-contact-strip h2 {
    line-height: 1.28;
  }

  .board-table {
    overflow-x: auto;
  }

  .board-row {
    width: 820px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 11px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 30px;
  }

  h1 {
    font-size: clamp(29px, 9vw, 35px);
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .section-heading h2 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.28;
  }

  .fixture-card h3,
  .case-grid h3,
  .flow-list h3,
  .product-card h3,
  .image-product-body h3 {
    min-height: auto;
  }

  .fixture-card h3,
  .case-grid h3 {
    font-size: 19px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 13, 10, 0.84), rgba(15, 13, 10, 0.42)),
      linear-gradient(0deg, rgba(15, 13, 10, 0.78), rgba(15, 13, 10, 0.08) 48%);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-stats,
  .fixture-grid,
  .case-grid,
  .flow-list,
  .product-grid,
  .image-product-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats dd {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
  }

  .stat-line {
    display: inline;
  }

  .hero-stats div,
  .fixture-card,
  .case-grid article {
    min-height: auto;
  }

  .section {
    width: calc(100% - 28px);
    padding: 56px 0;
  }

  .contact-section {
    padding: 56px 14px;
    background-position: center bottom;
  }

  .contact-copy h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.24;
  }

  .contact-copy .no-break {
    white-space: normal;
  }

  .contact-copy p,
  .product-hero p,
  .product-section-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-form {
    padding: 18px;
  }

  .product-hero {
    width: calc(100% - 28px);
    padding: 112px 0 46px;
  }

  .product-hero-note {
    padding: 18px;
  }

  .product-hero h1 {
    font-size: clamp(39px, 12vw, 50px);
    line-height: 1.12;
  }

  .product-card {
    grid-template-rows: 190px minmax(0, 1fr);
    min-height: auto;
  }

  .product-media {
    height: 190px;
    min-height: 190px;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-button {
    width: 100%;
  }

  .product-contact-strip h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.28;
  }

  .board-table {
    gap: 10px;
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .board-image img {
    aspect-ratio: 4 / 3;
  }

  .board-head {
    display: none;
  }

  .board-row {
    width: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .board-row strong {
    font-size: 20px;
  }
}
