:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d7dde5;
  --paper: #f7f8fa;
  --white: #ffffff;
  --blue: #1558d6;
  --blue-dark: #0c347f;
  --green: #0f7b64;
  --amber: #a66500;
  --shadow: 0 18px 42px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(215, 221, 229, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
}

.brand-mark {
  --brand-logo-size: 42px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  overflow: hidden;
}

.brand .brand-mark img {
  display: block;
  width: auto;
  height: var(--brand-logo-size);
  max-width: 100%;
  object-fit: contain;
}

.brand-text {
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
  color: #344054;
  font-size: 0.95rem;
}

.top-nav a {
  padding: 8px 0;
}

.header-action,
.primary-button,
.secondary-button,
.form-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 700;
}

.header-action,
.primary-button,
.form-card button {
  color: var(--white);
  background: var(--blue);
  border: 0;
}

.secondary-button {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #101828;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 22, 48, 0.88) 0%, rgba(9, 22, 48, 0.62) 46%, rgba(9, 22, 48, 0.14) 100%),
    url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  align-self: center;
  margin-left: clamp(18px, 7vw, 92px);
  padding: 86px 0 128px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #2f6eea;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ec5ff;
}

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

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.trust-strip span:last-child {
  max-width: 520px;
}

.trust-strip div:last-child {
  border-right: 0;
}

.metric {
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

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

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.split-section > div > p,
.contact-band p {
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.04);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8dee8;
}

.product-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.product-collage img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7f9fc;
  border: 0;
}

.product-collage img:first-child {
  grid-row: 1 / span 2;
  border-right: 1px solid var(--line);
}

.product-collage img:nth-child(2) {
  border-bottom: 1px solid var(--line);
}

.product-body {
  padding: 22px;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag {
  margin-bottom: 12px;
  color: var(--blue-dark);
  background: #eaf1ff;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #475467;
}

.product-meta strong {
  color: var(--blue);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  background: linear-gradient(var(--green), var(--green)) 0 0.68em / 14px 3px no-repeat;
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-card label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cbd3dd;
  border-radius: 7px;
  font: inherit;
}

.form-card input,
.form-card select {
  height: 44px;
}

.form-card textarea {
  min-height: 118px;
  padding-top: 10px;
  resize: vertical;
}

.form-card button {
  cursor: pointer;
  font: inherit;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.flow-step {
  min-height: 212px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 900;
}

.flow-step p {
  color: var(--muted);
}

.portal {
  padding-top: 40px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #475467;
  background: #f1f4f8;
  font-size: 0.86rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status.preparing {
  color: #084b3e;
  background: #dff5ee;
}

.status.waiting {
  color: #704400;
  background: #fff0cf;
}

.status.done {
  color: #123d83;
  background: #e7efff;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(340px, 0.58fr);
  align-items: start;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 72px;
  padding: clamp(26px, 5vw, 48px);
  color: var(--white);
  background: #143a6e;
  border-radius: 8px;
}

.contact-band .eyebrow,
.contact-band p {
  color: #c9ddff;
}

.contact-band h2 {
  color: var(--white);
}

.contact-band .form-card {
  box-shadow: none;
}

.compact-inquiry-form {
  width: 100%;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #667085;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--blue-dark);
  font-weight: 700;
}

.product-link-card {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-link-card:hover {
  transform: translateY(-3px);
  border-color: #9db7ea;
  box-shadow: var(--shadow);
}

.detail-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 74px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.gallery-panel,
.purchase-panel,
.spec-panel,
.description-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.04);
}

.gallery-panel {
  padding: 14px;
}

.main-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f4f7fb;
  border-radius: 7px;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb-button {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
  border: 2px solid transparent;
  border-radius: 7px;
}

.thumb-button.active {
  border-color: var(--blue);
}

.thumb-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f9fc;
}

.purchase-panel {
  position: sticky;
  top: 96px;
  padding: clamp(22px, 3vw, 32px);
}

.purchase-panel h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.price-box {
  display: grid;
  gap: 7px;
  margin: 24px 0;
  padding: 20px;
  background: #f1f6ff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
}

.price-box span,
.price-box small {
  color: var(--muted);
}

.price-box strong {
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 24px;
  padding-top: 0;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.included-grid div {
  min-height: 146px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.included-grid p,
.description-panel p {
  color: var(--muted);
}

.description-panel,
.spec-panel {
  padding: 22px;
}

.spec-panel h2,
.description-panel h2 {
  margin: 0 0 16px;
  font-size: 1.28rem;
}

.spec-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.spec-panel dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.spec-panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-panel dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.spec-panel dd {
  margin: 0;
  font-weight: 700;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 22, 48, 0.82), rgba(9, 22, 48, 0.48)),
    url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.login-brand {
  position: fixed;
  top: 24px;
  left: 28px;
  color: var(--white);
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.login-card > p {
  color: var(--muted);
}

.login-form {
  margin-top: 24px;
  box-shadow: none;
}

.login-back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .header-action {
    margin-left: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 22, 48, 0.82) 0%, rgba(9, 22, 48, 0.74) 60%, rgba(9, 22, 48, 0.28) 100%),
      url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1200&q=85") center / cover;
  }

  .hero-content {
    align-self: start;
    margin: 0 auto;
    padding-top: 84px;
  }

  .trust-strip,
  .product-grid,
  .split-section,
  .flow-grid,
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .purchase-panel {
    position: static;
  }

  .trust-strip div {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    --brand-logo-size: 38px;
    width: 38px;
    height: 38px;
  }

  .header-action {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 690px;
  }

  .hero-actions a {
    width: 100%;
  }

  .product-body,
  .form-card,
  .flow-step,
  .purchase-panel,
  .description-panel,
  .spec-panel {
    padding: 18px;
  }

  .thumbnail-row,
  .included-grid {
    grid-template-columns: 1fr 1fr;
  }
}
