[hidden] { display: none !important; }
select:focus-visible { outline: 3px solid #1855a0; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .62; }
button:focus-visible, a:focus-visible { position: relative; z-index: 1; }
main section[id] { scroll-margin-top: 20px; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  transform: translateY(-150%);
  background: white;
  padding: 8px 14px;
  border: 1px solid var(--blue);
}
.skip-link:focus { transform: none; }
.headlink .count { min-width: 22px; width: auto; padding: 0 4px; }
.notice {
  border: 1px solid #d5e0ed;
  background: #f4f8fd;
  border-radius: 5px;
  margin: 18px 0;
  padding: 13px 16px;
}
.notice.error { border-color: #e4c6c4; background: #fff6f5; color: #8e2522; }
.section-note { margin: -8px 0 18px; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.search button:focus-visible { outline-offset: -3px; }

/* Home: a restrained catalogue, with one type and spacing rhythm. */
.home-page {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #243447;
}
.home-page .wrap { max-width: 1344px; }
.home-page .head { gap: 36px; }
.home-page .headlink { font-size: 13px; font-weight: 600; }
.home-page .search { max-width: 600px; background: #fafbfd; border-color: #d3dce5; }
.home-page .search button { background: #f1f5f9; color: #294b72; border-color: #d3dce5; }
.home-page .nav .wrap { gap: 36px; padding-top: 14px; padding-bottom: 14px; }
.home-page .nav a { font-size: 13px; color: #4d5c6b; }
.home-main { padding-top: 28px; }
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 300px;
  border-radius: 6px;
  background: #f1f6fb;
  color: #142e49;
}
.hero-copy { padding: 32px 0 34px clamp(28px, 4vw, 54px); }
.hero-kicker {
  margin: 0 0 16px;
  color: #4b6580;
  font: 500 12px/1.5 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .14em;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 3.3vw, 44px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.hero-copy h1 span { white-space: nowrap; }
.hero-description { margin: 14px 0 22px; color: #42586d; font-size: 14px; font-weight: 400; line-height: 1.9; }
.hero-description span { display: block; }
.shop-hero .hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 10px 24px;
  background: #203e5e;
  border: 1px solid #203e5e;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.shop-hero .hero-action:hover { background: #173450; border-color: #173450; text-decoration: none; }
.shop-hero .hero-action:focus-visible { outline: 3px solid #3267a4; outline-offset: 4px; }
.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 24px 26px 24px 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10px 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, #587c9b16 1px, transparent 1px),
    linear-gradient(#587c9b16 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse, #000 38%, transparent 85%);
}
.hero-visual img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px #15314d20); }
.home-page .section { margin-top: 48px; padding: 0; }
.home-page #configurations { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 24px; }
.home-page .section h2 { margin: 0 0 22px; padding: 0; border: 0; color: #1d3044; font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; }
.home-page #configurations h2 { margin: 0; }
.capacity-cards, .maker-links, .catalog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capacity-cards { gap: 0; border-top: 1px solid #dce3ea; border-bottom: 1px solid #dce3ea; }
.capacity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 44px 18px 26px;
  color: #20364c;
}
.capacity-card + .capacity-card::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 0; width: 1px; background: #dce3ea; }
.capacity-card:hover, .maker-tile:hover { background: #f4f7fa; text-decoration: none; }
.capacity-card strong { font: 500 34px/1.1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.035em; }
.capacity-card strong span { margin-left: 5px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.capacity-caption { color: #627080; font-size: 12px; margin-top: 8px; }
.capacity-arrow { position: absolute; top: 34px; right: 26px; color: #59738c; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr auto;
  align-items: end;
  gap: 20px;
  padding: 20px 24px;
  background: #f4f6f8;
  border-radius: 4px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.filter-field { min-width: 0; }
.filters label { display: block; margin-bottom: 8px; color: #506071; font-size: 12px; font-weight: 500; }
.filters select, .build-card select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c6d1dc;
  border-radius: 4px;
  background: #fff;
  color: #263b50;
  padding: 9px 12px;
}
.filter-actions { display: flex; gap: 18px; align-items: center; }
.filters .primary { width: auto; min-height: 44px; padding: 10px 26px; font-size: 13px; font-weight: 600; box-shadow: none; }
.filter-reset { display: inline-flex; align-items: center; min-height: 44px; color: #53697e; text-align: center; font-size: 12px; white-space: nowrap; }
.results-meta { margin: 0 0 20px; color: #647384; font-size: 12px; overflow-wrap: anywhere; }
.catalog-cards { gap: 16px; }
.home-page .catalog-cards { gap: 32px 28px; }
.item-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce4ed;
  border-radius: 5px;
  padding: 14px;
}
.item-card:hover, .item-card:focus-within { border-color: #8dafe6; }
.item-image {
  display: grid;
  place-items: center;
  background: #f6f8fb;
  border-radius: 4px;
  margin-bottom: 12px;
}
.item-image img { display: block; width: 100%; height: 115px; object-fit: contain; }
.item-card .maker { margin-bottom: 4px; }
.item-card h3 {
  margin: 0;
  color: var(--navy);
  font: 700 17px/1.35 Arial, sans-serif;
  overflow-wrap: anywhere;
}
.item-card h3 a { color: inherit; }
.item-spec { color: #586779; margin: 6px 0 12px; font-size: 12px; }
.item-card .secondary { margin-top: auto; }
/* These refinements apply only to the home; related-product cards stay unchanged. */
.home-page .item-card { border: 0; border-bottom: 1px solid #e0e6ed; border-radius: 0; padding: 0 0 24px; }
.home-page .item-image { background: #f4f6f8; border-radius: 4px; margin-bottom: 20px; padding: 6px 10px; }
.home-page .item-image img { height: clamp(96px, 12vw, 154px); }
.home-page .item-card .maker { color: #53687c; font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; }
.home-page .item-card h3 { font: 600 18px/1.45 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; color: #20364c; }
.home-page .item-spec { font-size: 13px; color: #586a7c; margin: 8px 0 18px; }
.home-page .item-card .secondary { min-height: 44px; border-color: #d0dae4; color: #315779; font-size: 13px; font-weight: 500; padding: 10px 12px; }
.home-page .secondary:hover { background: #f4f7fa; border-color: #94adc5; text-decoration: none; }
.build-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.build-card { display: grid; grid-template-columns: minmax(0, 1fr); padding: 24px; border: 1px solid #dce3ea; border-radius: 4px; }
.build-card h3 { margin: 0; color: #20364c; font-size: 22px; font-weight: 600; }
.build-visual { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 20px; background: #f4f6f8; border-radius: 4px; padding: 8px 14px; }
.build-visual img { display: block; flex: 1; width: 0; max-width: 46%; min-width: 0; height: 84px; object-fit: contain; }
.build-card label { margin-bottom: 8px; color: #586a7c; font-size: 12px; }
.build-card select { font-size: 13px; }
.build-card .secondary { margin: 14px 0 0; min-height: 44px; border-color: #d0dae4; font-weight: 500; }
.home-page .section-note { margin: -10px 0 24px; color: #627080; font-size: 13px; line-height: 1.8; }
.maker-links { gap: 16px; }
.maker-tile { padding: 24px 16px; background: #f4f6f8; border-radius: 4px; color: #304b65; text-align: center; font: 500 21px/1.5 "Helvetica Neue", Arial, sans-serif; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 24px 0; border-top: 1px solid #dce3ea; border-bottom: 1px solid #dce3ea; }
.guide-steps li { display: flex; align-items: baseline; gap: 16px; padding: 0 24px; }
.guide-steps li:first-child { padding-left: 0; }
.guide-steps li + li { border-left: 1px solid #dce3ea; }
.step-number { color: #59738c; font: 400 19px/1.4 "Helvetica Neue", Arial, sans-serif; }
.guide-steps h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.guide-steps p { font-size: 12px; color: #627080; line-height: 1.8; margin: 0; }
.home-page .footer { margin-top: 56px; background: #f4f6f8; }
.single-unit { font-size: 12px; font-weight: 400; }
.product-order-note { font-size: 13px; margin-top: 24px; }
.order > .delivery:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.shop-footer, .shop-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.shop-footer a { color: #314b65; }
.product-price-note { text-align: center; margin-bottom: 0; }
.photo img { transform: scale(calc(1.03 * var(--pcb-image-scale, 1))); }
.product-main .tabs { flex-wrap: wrap; }
#image-dialog img { display: block; width: 100%; height: auto; }
.toast a { color: white; text-decoration: underline; font-weight: 700; margin-left: 8px; }

.quote-page { background: #f6f8fb; }
.quote-wrap { min-height: 62vh; max-width: 1180px; padding-bottom: 22px; }
.checkout-head { min-height: 82px; }
.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 2px 0 24px;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  background: white;
  overflow: hidden;
}
.progress-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 4px;
  color: #5b6b7a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.progress-steps li + li { border-left: 1px solid #dce4ee; }
.progress-steps span { display: grid; place-items: center; background: #edf1f6; border-radius: 50%; width: 22px; height: 22px; }
.progress-steps [aria-current] { color: #174a99; background: #ebf3ff; }
.progress-steps [aria-current] span { color: white; background: var(--blue); }
.page-title { margin: 0 0 20px; }
.page-title h1 { color: var(--navy); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin: 0 0 5px; }
.page-title p { margin: 0; color: var(--muted); }
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(262px, 320px);
  gap: 20px;
  align-items: start;
}
.panel { background: white; border: 1px solid #dbe4ee; border-radius: 5px; padding: 22px; }
.panel h2 { margin: 0 0 13px; color: var(--navy); font-size: 18px; }
.line-panel > h2 { padding-bottom: 12px; border-bottom: 1px solid #e3eaf2; margin: 0; }
.quote-line {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 17px 0;
  align-items: center;
}
.quote-line + .quote-line { border-top: 1px solid #e3eaf2; }
.quote-line:last-child { padding-bottom: 0; }
.quote-line img { display: block; width: 100%; height: 76px; object-fit: contain; background: #f5f8fc; border-radius: 4px; }
.line-details { min-width: 0; }
.line-details h3 { margin: 0; font: 700 17px/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
.line-details .item-spec { margin: 5px 0 0; }
.line-controls { display: flex; flex-direction: column; align-items: end; gap: 4px; }
.line-controls .quantity { margin: 0; gap: 7px; font-size: 12px; }
.line-controls .stepper { height: 34px; }
.line-controls .stepper button { width: 28px; }
.line-controls .stepper input { width: 42px; }
.remove-line { border: 0; padding: 3px 0; background: white; color: #215c9e; font-size: 12px; }
.remove-line:hover { text-decoration: underline; }
.summary-panel { border-top: 4px solid var(--blue); }
.totals { margin: 8px 0 15px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e1e8ef; }
.totals dt { color: #5c6978; }
.totals dd { margin: 0; font-size: 18px; font-weight: 700; white-space: nowrap; }
.summary-note { margin: 9px 0 0; font-size: 12px; color: #5d6976; }
.back-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.cart-status { margin: 10px 0 0; color: #3e5873; }
.cart-status:empty { margin: 0; }
.empty-panel { text-align: center; padding: clamp(23px, 4vw, 45px); }
.empty-panel h1, .empty-panel h2 { margin: 0 0 8px; color: var(--navy); }
.empty-panel p { color: var(--muted); }
.empty-panel .primary { margin: 18px auto 0; max-width: 250px; }
.email-panel label { display: block; font-weight: 700; margin: 18px 0 6px; }
.required { display: inline-block; margin-left: 4px; border-radius: 3px; padding: 1px 5px; color: #1c4c95; background: #e9f2ff; font-size: 11px; }
.email-panel input {
  display: block;
  width: 100%;
  max-width: 460px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #aebed0;
  border-radius: 3px;
  font-size: 16px;
  color: var(--ink);
}
.email-panel .primary { margin-top: 21px; max-width: 300px; }
.checkout-items { list-style: none; margin: 0; padding: 0; }
.checkout-items li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #e1e8ef; }
.checkout-items a { display: block; font-weight: 700; overflow-wrap: anywhere; }
.checkout-items small { display: block; color: var(--muted); }
.checkout-items strong { white-space: nowrap; }
.receipt-mark { display: grid; place-items: center; margin: 0 auto 14px; width: 48px; height: 48px; border-radius: 50%; background: #e7f3ec; color: #126037; font-size: 24px; }
.receipt-id span { color: var(--navy); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.receipt-id p { overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .capacity-card { padding-left: 20px; padding-right: 20px; }
  .capacity-arrow { display: none; }
  .filters { gap: 14px; padding: 20px; }
  .filter-actions { gap: 10px; flex-direction: column; }
  .filters .primary { width: 100%; }
  .filter-reset { min-height: 24px; }
  .filters { align-items: start; }
  .filter-actions { padding-top: 26px; }
  .catalog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .catalog-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .home-page .item-card h3 { min-height: 2.9em; font-size: 16px; word-break: break-all; text-wrap: balance; }
  .guide-steps li { gap: 10px; padding: 0 16px; }
  .quote-line { grid-template-columns: 82px minmax(0, 1fr); gap: 10px 13px; }
  .line-controls { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 700px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-wrap { min-height: 65vh; }
}
@media (max-width: 650px) {
  .home-page .wrap { padding-left: 20px; padding-right: 20px; }
  .home-page .head { gap: 12px; }
  .home-page .headlink { font-size: 12px; }
  .home-page .search { height: 44px; }
  .home-page .search input { font-size: 16px; }
  .home-page .nav .wrap { gap: 18px; padding-top: 13px; padding-bottom: 13px; scrollbar-width: none; }
  .home-page .nav a { font-size: 12px; }
  .home-main { padding-top: 20px; }
  .shop-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 27px 22px 0; }
  .hero-kicker { font-size: 11px; margin-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(22px, 7.2vw, 32px); letter-spacing: -.04em; }
  .hero-description { margin: 13px 0 20px; font-size: 12px; }
  .shop-hero .hero-action { min-height: 44px; font-size: 12px; padding: 10px 20px; }
  .hero-visual { margin: 14px 12px 18px; }
  .home-page .section { margin-top: 36px; }
  .home-page #configurations { display: block; margin-top: 30px; }
  .home-page .section h2 { font-size: 19px; margin-bottom: 18px; }
  .home-page #configurations h2 { margin-bottom: 18px; }
  .capacity-card { padding: 18px 10px; }
  .capacity-card + .capacity-card::before { top: 18px; bottom: 18px; }
  .capacity-card strong { font-size: 29px; }
  .capacity-card strong span { font-size: 12px; margin-left: 3px; }
  .capacity-caption { font-size: 11px; margin-top: 7px; }
  .capacity-arrow { display: none; }
  .catalog-layout { gap: 20px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 16px; }
  .filters label { font-size: 11px; margin-bottom: 6px; }
  .filters select { font-size: 16px; padding: 8px; }
  .filter-actions { gap: 4px; padding-top: 24px; }
  .filters .primary { font-size: 12px; padding: 10px 8px; }
  .filter-reset { font-size: 11px; min-height: 28px; }
  .results-meta { margin-bottom: 16px; }
  .catalog-cards { gap: 8px; }
  .home-page .catalog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .home-page .item-card { padding: 0 0 20px; }
  .home-page .item-image { padding: 0 4px; margin-bottom: 14px; }
  .home-page .item-image img { height: 100px; }
  .home-page .item-card .maker { font-size: 11px; margin-bottom: 5px; }
  .home-page .item-card h3 { min-height: 2.9em; font-size: 14px; line-height: 1.45; word-break: break-all; text-wrap: balance; }
  .home-page .item-spec { font-size: 11px; margin: 8px 0 14px; }
  .home-page .item-card .secondary { font-size: 11px; padding: 12px 2px; }
  .related-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-card { padding: 9px; }
  .item-image { margin-bottom: 9px; }
  .item-image img { height: 78px; }
  .item-card h3 { font-size: 14px; }
  .item-card .secondary { padding: 7px 4px; font-size: 11px; }
  .item-spec { font-size: 11px; }
  .build-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .build-card { padding: 20px; }
  .build-card h3 { font-size: 21px; }
  .build-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; gap: 6px; margin: 16px 0; }
  .build-visual img { width: 100%; max-width: none; height: 64px; }
  .build-card select { font-size: 16px; }
  .build-card .secondary { font-size: 12px; }
  .home-page .section-note { font-size: 12px; margin: -8px 0 20px; }
  .maker-links { gap: 10px; }
  .maker-tile { padding: 18px 4px; font-size: 15px; }
  .guide-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 0; }
  .guide-steps li, .guide-steps li:first-child { border: 0; padding: 0; gap: 16px; }
  .guide-steps li + li { border-left: 0; }
  .guide-steps h3 { font-size: 14px; margin-bottom: 4px; }
  .home-page .footer { margin-top: 36px; }
  .product-main .tabs { gap: 10px 16px; }
  .checkout-head { min-height: 68px; }
  .progress-steps { margin-bottom: 17px; }
  .progress-steps li { gap: 4px; font-size: 11px; }
  .progress-steps span { width: 18px; height: 18px; }
  .panel { padding: 14px; }
  .shop-footer { flex-direction: column; }
  .quote-line { grid-template-columns: 69px minmax(0, 1fr); }
  .quote-line img { height: 63px; }
  .line-details h3 { font-size: 15px; }
  .empty-panel { padding: 24px 14px; }
  .receipt h1 { font-size: 22px; line-height: 1.5; text-wrap: balance; }
}
@media (max-width: 380px) {
  .line-controls { grid-column: 1 / -1; gap: 12px; white-space: nowrap; }
}

