:root {
  color-scheme: light;
  --ink: #1d1f22;
  --muted: #626a73;
  --line: #d9dee3;
  --soft: #fff3df;
  --panel: #ffffff;
  --paper: #f7f8f8;
  --accent: #ff8a00;
  --accent-dark: #b45309;
  --accent-soft: #ffecd1;
  --tech: #0e8f8b;
  --navy: #1e2a36;
  --danger: #b8322a;
  --shadow: 0 18px 48px rgba(29, 35, 41, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,248,.94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9d1f, #f27600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 138, 0, .2);
}
.site-header nav { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.site-header nav a, .language {
  padding: 8px 10px;
  border-radius: 6px;
  color: #33373d;
  font-size: 14px;
  font-weight: 800;
}
.site-header nav a:hover, .language:hover { background: var(--soft); color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 56px 0 42px;
  position: relative;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: 0; }
h2 { margin: 0; font-size: 30px; line-height: 1.18; letter-spacing: 0; }
h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: 0; }
.hero-copy > p:not(.eyebrow), .page-title p, .section-head p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.btn.primary {
  border-color: #f27600;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 138, 0, .18);
}
.btn.secondary { background: var(--accent-soft); color: var(--accent-dark); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(80, 55, 22, .1); }
.btn:active { transform: translateY(1px); }

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel h2 { font-size: 22px; }
.model-list {
  display: grid;
  gap: 10px;
}
.model-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfc;
}
.model-list span, .hero-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.model-list strong, .hero-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.section, .page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}
.compact-section { padding-top: 20px; }
.band {
  border-block: 1px solid var(--line);
  background: #fff;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}
.category-grid, .product-grid, .kit-grid, .detail-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.path-grid a {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.path-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}
.path-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}
.path-grid p { margin-bottom: 0; color: var(--muted); }
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -20px auto 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.trust-bar span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  color: #2d3035;
  font-size: 13px;
  font-weight: 900;
}
.category-grid a, .product-card, .kit-card, .panel, .form-panel, .stat, .cta-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.category-grid a {
  min-height: 156px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.category-grid a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.category-grid a:hover {
  border-color: rgba(255, 138, 0, .54);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(69, 48, 22, .09);
}
.category-grid strong, .category-grid span { display: block; }
.category-grid span { margin-top: 10px; color: var(--muted); font-size: 14px; }

.product-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  border-color: rgba(255, 138, 0, .52);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(62, 44, 24, .1);
}
.product-card > div { padding: 18px; }
.product-image {
  display: block;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 138, 0, .10) 46% 47%, transparent 47%),
    repeating-linear-gradient(90deg, rgba(96, 112, 128, .05) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #fff, #f6f8f8);
}
.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.model, .price {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.spec-tags span {
  padding: 5px 8px;
  border: 1px solid #d9dee3;
  border-radius: 999px;
  background: #f7f8f8;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.spec-tags.large { margin: 18px 0 0; }
.spec-tags.large span { font-size: 13px; }
.product-card p, .kit-card p, .panel p, .cta-strip p { color: var(--muted); }
.kit-card {
  padding: 20px;
  background: #fff;
}
.kit-card ul { padding-left: 20px; color: #33373d; }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
}
.process div {
  min-height: 132px;
  padding: 20px;
  background: var(--navy);
  color: #fff;
}
.process b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.process strong { color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.trust-grid div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2d3035;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(64, 48, 28, .06);
}
.notice-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}
.notice-panel p { margin: 6px 0 0; color: var(--muted); }

.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: clamp(34px, 4.8vw, 58px); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-row a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33373d;
  font-size: 13px;
  font-weight: 900;
}
.filter-row a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.product-detail > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 138, 0, .10) 46% 47%, transparent 47%),
    repeating-linear-gradient(90deg, rgba(96, 112, 128, .05) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #fff, #f6f8f8);
}
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .form-panel, .cta-strip { padding: 22px; }
.side-panel ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.side-panel li {
  padding: 11px 0 11px 16px;
  border-top: 1px solid var(--line);
  color: #334155;
  font-weight: 850;
  position: relative;
}
.side-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.note-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.note-grid p { margin: 6px 0 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 34%; color: #33373d; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label { display: grid; gap: 7px; color: #2d3035; font-weight: 850; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d8d0c3;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
form { display: grid; gap: 14px; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 24px; color: var(--muted); font-weight: 800; }
.form-status.ok { color: var(--accent-dark); }
.form-status.error { color: var(--danger); }

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer p { margin: 6px 0 0; color: var(--muted); }

.admin-body { background: #f5f0e8; }
.admin-shell { width: min(1120px, calc(100% - 36px)); margin: 30px auto; }
.admin-login, .admin-app {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-login { max-width: 420px; margin: 80px auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33373d;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.admin-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33373d;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.mini-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.admin-form { margin-top: 12px; }
.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, .6fr);
  gap: 10px;
  align-items: center;
}
.copy-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
}
.copy-box small { color: var(--muted); font-weight: 800; }
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.check-row label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}
.check-row input { width: auto; }
.inline-admin-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.stat { padding: 18px; }
.stat strong { display: block; font-size: 34px; line-height: 1; }
.stat span { color: var(--muted); font-weight: 900; }
.admin-list { display: grid; gap: 10px; }
.admin-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-column: 1 / -1; justify-content: flex-start; }
  .hero, .product-detail, .contact-layout { grid-template-columns: 1fr; min-height: auto; }
  .site-header nav a, .language { font-size: 13px; padding: 7px 8px; }
  .category-grid, .product-grid, .kit-grid, .detail-grid, .admin-grid, .process, .footer, .form-grid, .inline-admin-form, .upload-row, .trust-grid, .path-grid, .trust-bar, .note-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  h1 { font-size: 38px; }
  .trust-bar { margin-top: 0; }
}
