:root {
  color-scheme: light;
  --paper: #edf6ff;
  --surface: #fcfeff;
  --ink: #152e48;
  --muted: #48627d;
  --accent: #326da8;
  --accent-dark: #214f7e;
  --line: #c9dced;
  --blank: #e0eefb;
  --focus: #276fb1;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --serif: Georgia, "Noto Serif JP", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.45 var(--sans);
}

button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.shell {
  width: min(1264px, 100% - 64px);
  margin-inline: auto;
}

.pair > span, h1 > span, .page-button > span, .action > span,
.order-total > span, .share-link > span { display: block; }

[lang="ja"] { font-family: var(--sans); }
.pair > [lang="ja"] { margin-top: 2px; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.wordmarks {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.3vw, 18px);
}

.craft, .partner, .brand-separator {
  color: var(--ink);
  font: 400 clamp(23px, 3vw, 37px)/1.05 var(--serif);
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-separator { flex: 0 0 auto; }

.wordmark-rule { width: 1px; height: 28px; background: var(--line); }

.order-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.order-trigger:hover, .page-button:hover, .pagination button:hover, .close-button:hover {
  border-color: var(--accent);
  background: #e9f4ff;
}

.order-trigger svg { width: 22px; height: 22px; color: var(--accent); }
.order-trigger [lang="ja"] { color: var(--muted); font-size: 10px; font-weight: 500; }
.order-count {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border-radius: 20px;
  background: #dcecff;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 0 18px;
}

.section-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 28px; }
.section-links a {
  display: block;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.section-links [lang="ja"] { color: var(--muted); font-size: 10px; font-weight: 450; }
.section-links a:hover { border-color: var(--accent); background: #e2f0ff; }
.demo-notice { margin: 0 0 16px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; background: #f6fbff; color: var(--muted); font-size: 12px; }
.demo-notice [lang="ja"] { font-size: 10px; }
.connection-badge { display: table; align-self: flex-start; max-width: 100%; margin: 8px 0 2px; padding: 6px 9px; border: 1px solid #bad4eb; border-radius: 5px; background: #eaf4fd; color: var(--accent-dark); font-size: 11px; line-height: 1.3; font-weight: 650; }
.connection-badge [lang="ja"] { font-size: 10px; font-weight: 450; }
.order-line .connection-badge { margin-top: 6px; padding: 4px 7px; font-size: 10px; }
.order-line .connection-badge [lang="ja"] { font-size: 9px; }
.catalog-section, .catalog-notes, .glass-section, #page-heading { scroll-margin-top: 115px; }
.catalog-section { margin-bottom: 34px; }
.section-title { margin-bottom: 17px; font: 400 29px/1.2 var(--serif); letter-spacing: -.025em; }
.section-title [lang="ja"] { margin-top: 5px; color: var(--muted); font: 400 12px/1.5 var(--sans); letter-spacing: 0; }
.catalog-notes { margin: 0 3px 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.catalog-notes > summary { position: relative; padding: 15px 20px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 650; }
.catalog-notes > summary::-webkit-details-marker { display: none; }
.catalog-notes > summary::after { content: "+"; position: absolute; right: 20px; top: 20px; font-size: 23px; color: var(--accent-dark); }
.catalog-notes[open] > summary::after { content: "−"; }
.catalog-notes > summary [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 450; }
.catalog-notes .notes { padding: 0 12px 16px; max-width: none; }
.glass-section { position: relative; margin: 8px 0 34px; padding: 30px; border: 1px solid #aecce7; border-top: 4px solid var(--accent); border-radius: 0 0 12px 12px; background: #e2f0fd; }
.glass-divider { position: absolute; top: -14px; left: 50%; display: flex; gap: 9px; padding: 0 13px; transform: translateX(-50%); color: var(--accent); background: var(--paper); font-size: 15px; }
.glass-hero { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); align-items: start; gap: 30px; }
.glass-product-card { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.glass-product-card .product-photo { background: white; }
.glass-product-card > p { padding: 10px 3px 3px; font-size: 13px; font-weight: 650; }
.glass-product-card [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 450; }
.glass-intro { padding-top: 3px; min-width: 0; }
.glass-intro .section-title { font-size: clamp(27px, 3.2vw, 38px); }
.glass-instructions { max-width: 560px; font-size: 15px; }
.glass-instructions [lang="ja"], .glass-policy [lang="ja"] { margin-top: 5px; font-size: 12px; color: var(--muted); }
.glass-policy { margin-top: 13px; font-size: 12px; }
.glass-summary { display: grid; gap: 8px; margin-top: 20px; max-width: 540px; padding: 15px 18px; background: #f8fcff; border: 1px solid #bdd5ea; border-radius: 8px; }
.glass-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.glass-summary [lang="ja"] { color: var(--muted); font-size: 10px; }
.glass-summary output { white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.glass-summary .glass-grand-total { margin-top: 2px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--accent-dark); font-weight: 700; }
.glass-grand-total output { font-size: 18px; }
.glass-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 25px 0 17px; }
.glass-options button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; text-align: left; border: 1px solid #b4cfe7; border-radius: 7px; background: #f8fcff; font-size: 13px; font-weight: 650; }
.glass-options [lang="ja"] { color: var(--muted); font-size: 10px; font-weight: 450; }
.glass-options button[aria-pressed="true"] { color: white; background: var(--accent-dark); border-color: var(--accent-dark); }
.glass-options button[aria-pressed="true"] [lang="ja"] { color: #e0eeff; }
.glass-options button.has-error { outline: 2px solid #a64c40; outline-offset: 1px; }
.variant-quantity { flex: 0 0 auto; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.glass-table { width: 100%; border-spacing: 0; border: 1px solid #b7cfe4; border-radius: 8px; overflow: hidden; background: var(--surface); table-layout: fixed; }
.glass-table caption { text-align: left; padding: 0 1px 12px; font-size: 18px; font-weight: 650; }
.glass-table caption [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 450; }
.glass-table th, .glass-table td { border-bottom: 1px solid var(--line); padding: 11px 15px; vertical-align: middle; text-align: left; }
.glass-table thead { background: #cfe3f6; }
.glass-table thead th { font-size: 12px; }
.glass-table thead [lang="ja"] { font-size: 10px; font-weight: 450; color: var(--muted); }
.glass-table thead th:first-child { width: 36%; }
.glass-table thead th:nth-child(2) { width: 14%; }
.glass-table thead th:nth-child(3) { width: 22%; }
.glass-table thead th:last-child { width: 28%; text-align: right; }
.glass-table tbody tr:last-child > * { border-bottom: 0; }
.glass-table tbody tr:nth-child(even) { background: #f1f7fd; }
.glass-color { font-size: 13px; font-weight: 650; }
.glass-color-code { display: inline-block; min-width: 22px; margin-right: 7px; color: var(--accent-dark); vertical-align: top; font-variant-numeric: tabular-nums; }
.glass-color-name { display: inline; white-space: nowrap; }
.glass-color-name > [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 450; }
.glass-unit-price, .glass-row-total { font-size: 13px; font-variant-numeric: tabular-nums; }
.glass-table td.glass-row-total { text-align: right; font-weight: 650; color: var(--accent-dark); }
.glass-amount { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.glass-amount > * { white-space: nowrap; }
.glass-discount-label { padding: 3px 5px; border-radius: 4px; background: #dceeff; font-size: 10px; font-weight: 600; text-align: left; }
.glass-discount-label [lang="ja"] { margin-top: 0; font-size: 9px; font-weight: 450; }
.glass-amount del { font-size: 11px; color: var(--muted); font-weight: 450; }
.glass-amount strong { font-size: 13px; }
.glass-detail-amount { margin-top: 5px; }
.mobile-cell-label { display: none; }
.glass-stepper { display: grid; grid-template-columns: 36px minmax(40px, 74px) 36px; gap: 5px; }
.glass-stepper button, .glass-stepper input { width: 100%; min-width: 0; height: 40px; border: 1px solid #abc9e3; border-radius: 5px; text-align: center; }
.glass-stepper input { background: white; font-size: 16px; }
.glass-stepper button { padding: 0; background: #dceeff; font-size: 20px; color: var(--accent-dark); }
.glass-stepper button:disabled { opacity: .5; }
.glass-stepper input[aria-invalid="true"] { border-color: #a64c40; }
.glass-error { max-width: 220px; }
.glass-bottom-total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0 8px; color: var(--accent-dark); }
.glass-bottom-total > .pair { font-size: 15px; font-weight: 650; }
.glass-bottom-total [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 450; }
.glass-bottom-total strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.back-top { display: inline-block; margin-top: 14px; font-size: 12px; text-underline-offset: 3px; }
.back-top [lang="ja"] { color: var(--muted); font-size: 10px; }
.glass-order-details { margin-top: 8px; font-size: 11px; }
.glass-order-details summary { cursor: pointer; color: var(--accent-dark); }
.glass-order-details ul { margin: 7px 0 0; padding-left: 15px; }
.glass-order-details li { margin-bottom: 9px; }
.glass-order-details li > span:last-child { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

@media (max-width: 850px) {
  .glass-section { padding: 23px 18px; }
  .glass-hero { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .glass-table th, .glass-table td { padding-inline: 10px; }
  .glass-options button { flex-direction: column; align-items: flex-start; }
  .glass-stepper { grid-template-columns: 31px minmax(34px, 66px) 31px; gap: 3px; }
  .glass-table, .glass-table tbody { display: block; }
  .glass-table caption { display: block; padding: 14px; background: #cfe3f6; }
  .glass-table thead { display: none; }
  .glass-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .glass-table tbody tr:last-child { border-bottom: 0; }
  .glass-table tbody th, .glass-table tbody td { display: block; padding: 0; border: 0; }
  .glass-table tbody .glass-color { grid-column: 1 / -1; }
  .glass-table tbody .glass-unit-price { text-align: left; }
  .glass-table tbody .glass-row-total { grid-column: 1 / -1; }
  .mobile-cell-label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 450; color: var(--muted); }
  .mobile-cell-label [lang="ja"] { font-size: 9px; }
  .glass-stepper { grid-template-columns: 30px minmax(32px, 60px) 30px; gap: 3px; }
  .glass-stepper input, .glass-stepper button { height: 44px; }
  .glass-row-total { align-self: end; padding-bottom: 9px !important; }
  .glass-error { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .glass-hero { grid-template-columns: 1fr; gap: 20px; }
  .glass-product-card { width: min(210px, 65%); margin-inline: auto; }
  .glass-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass-options button { min-height: 84px; }
  .section-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-links a { padding: 8px 10px; min-width: 0; }
}

.folio {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
}

h1 {
  font: 400 clamp(29px, 4vw, 42px)/1.13 var(--serif);
  letter-spacing: -.045em;
}

h1 [lang="ja"] {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .035em;
}

.pages { display: flex; gap: 6px; flex: 0 0 auto; }

.page-button {
  min-width: 83px;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
}

.page-button [lang="ja"], .pagination [lang="ja"] {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.page-button[aria-current] {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #f7fbff;
}

.page-button[aria-current] [lang="ja"] { color: #e0eeff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 13px;
  padding: 3px 3px 8px;
}

.product-card, .reserve-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.product-card { background: var(--surface); }

.product-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--blank);
  border: 1px solid #ccdfef;
  border-radius: 4px;
}

.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-open { display: block; padding: 0; cursor: zoom-in; }
.photo-open:hover { border-color: var(--accent); }
.bead-grid { margin-top: 25px; }
.bead-order-details { margin-top: 10px; color: var(--muted); font-size: 11px; }
.bead-order-details > p { font-weight: 650; color: var(--ink); }
.bead-order-details ul { list-style: none; margin: 7px 0 0; padding: 0; }
.bead-order-details li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.bead-order-details li > .pair { min-width: 0; overflow-wrap: anywhere; }
.bead-order-details li > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.bead-order-details [lang="ja"] { font-size: 10px; }

.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: white;
}
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: #081a2beb; }
.photo-viewer-panel { position: relative; display: grid; justify-items: center; gap: 8px; width: min(1100px, 100%); max-height: 100%; pointer-events: none; }
.photo-viewer img { display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 5px; background: white; pointer-events: auto; }
.photo-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 44px; height: 44px; z-index: 1; color: var(--ink); pointer-events: auto; }
#photo-caption { max-width: 680px; font-size: 14px; text-align: center; overflow-wrap: anywhere; pointer-events: auto; }
#photo-caption [lang="ja"] { color: #dcecff; font-size: 12px; }
#photo-help { max-width: 680px; font-size: 11px; text-align: center; color: #dcecff; pointer-events: auto; }
#photo-help [lang="ja"] { font-size: 10px; }
body:has(.photo-viewer[open]) { overflow: hidden; }

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px 2px 1px;
}

.product-name {
  min-height: 55px;
  font-size: 14px;
  line-height: 1.33;
  font-weight: 690;
}

.product-name [lang="ja"] {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
  font-weight: 480;
  overflow-wrap: anywhere;
}

.price {
  margin-top: auto;
  padding: 10px 0 7px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
}

.quantity {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.quantity-heading { display: flex; justify-content: space-between; gap: 8px; }
.quantity label, .quantity-unit { font-size: 11px; color: var(--muted); }
.quantity label { font-weight: 650; }
.quantity label [lang="ja"], .quantity-unit [lang="ja"] { font-size: 10px; font-weight: 450; }
.quantity-unit { text-align: right; }

.quantity-control { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.quantity-control.with-stepper { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.quantity input, .quantity-step {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.quantity input {
  background: #f1f8ff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.quantity-step {
  padding: 0;
  background: #dceeff;
  color: var(--accent-dark);
  font-size: 19px;
  line-height: 1;
}
.quantity-step:hover:not(:disabled) { border-color: var(--accent); background: #cde6fc; }
.quantity-step:disabled { opacity: .55; }
.quantity input[aria-invalid="true"] { border-color: #a64c40; }
.card-error { margin-top: 6px; color: #913c32; font-size: 10px; }

.reserve-card {
  border-style: dashed;
  border-color: #b8d1e8;
  background: #e8f3ff;
}
.reserve-space {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 137px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 19px 0 26px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.pagination button {
  min-width: 102px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
}
.pagination button:disabled { visibility: hidden; }
.pagination-number { color: var(--muted); font-variant-numeric: tabular-nums; }

.notes {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.note {
  display: grid;
  grid-template-columns: minmax(135px, .34fr) 1fr;
  gap: 22px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.note h2, .production h2 { font: 400 23px/1.15 var(--serif); }
.note h2 [lang="ja"], .production h2 [lang="ja"] {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.note-copy { display: grid; gap: 12px; }
.note-copy p [lang="ja"] { margin-top: 4px; color: var(--muted); font-size: 12px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 13px; }
.tiers th, .tiers td { padding: 8px 9px; border: 1px solid var(--line); text-align: left; }
.tiers th { background: #edf6ff; font-weight: 650; }
.tiers [lang="ja"] { color: var(--muted); font-size: 11px; }

.production { padding-top: 11px; }
.production-space {
  height: 132px;
  margin-top: 10px;
  border: 1px dashed #b8d1e8;
  border-radius: 8px;
  background: #e8f3ff;
}

.order-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(492px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -12px 0 50px #15385b29;
}

.order-dialog[open] { display: grid; grid-template-rows: auto 1fr auto; }
.order-dialog::backdrop { background: #12325361; }
.dialog-head, .dialog-foot { padding: 20px; }
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 { font: 400 29px/1.1 var(--serif); }
.dialog-head h2 [lang="ja"] { margin-top: 5px; color: var(--muted); font-size: 12px; }

.close-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 23px;
  line-height: 1;
}

.order-content { min-height: 0; overflow-y: auto; }
.order-items { padding: 0 20px; }
.order-fields { display: grid; gap: 16px; padding: 20px; }
.order-field, .beads-note-field { display: grid; gap: 7px; }
.order-field label, .beads-note-field label { color: var(--ink); font-size: 12px; font-weight: 650; }
.order-field label [lang="ja"], .beads-note-field label [lang="ja"] { color: var(--muted); font-size: 10px; font-weight: 450; }
.order-field input, .order-field textarea, .beads-note-field textarea { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 10px; background: #f1f8ff; color: var(--ink); font: 16px/1.4 var(--sans); }
.order-field textarea, .beads-note-field textarea { resize: vertical; min-height: 72px; }
.beads-note-field { margin-top: 12px; }
.beads-note-field textarea { font-size: 14px; }
.order-field input[aria-invalid="true"] { border-color: #a64c40; }
.field-help { color: var(--muted); font-size: 11px; }
.field-help [lang="ja"] { font-size: 10px; }
.product-order-note { margin-top: 7px; font-size: 11px; }
.product-order-note [lang="ja"] { font-size: 10px; color: var(--muted); }
.customer-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.empty-order { padding: 22px 0; color: var(--muted); }

.order-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-line .product-photo { align-self: start; }
.order-line h3 { font-size: 13px; font-weight: 650; }
.order-line h3 [lang="ja"], .order-line .line-quantity [lang="ja"] {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
}
.line-quantity { margin-top: 4px; color: var(--muted); font-size: 11px; }
.line-price { color: var(--accent-dark); font-size: 12px; text-align: right; }
.discount { display: block; color: var(--accent-dark); font-size: 10px; }
.dialog-foot { border-top: 1px solid var(--line); background: #f1f8ff; }
.order-total {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.order-total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.grand-total-row { border-top: 1px solid var(--line); padding-top: 9px; font-size: 14px; }
.shipping-value { text-align: right; font-size: 11px; font-weight: 450; color: var(--muted); }
.shipping-value [lang="ja"] { font-size: 9px; }
.order-total [lang="ja"] { color: var(--muted); font-size: 11px; font-weight: 500; }
.total-value { font-variant-numeric: tabular-nums; color: var(--accent-dark); }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.action {
  display: grid;
  align-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 49px;
  padding: 7px 9px;
  border: 1px solid var(--accent-dark);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.action [lang="ja"] { margin-top: 2px; font-size: 10px; font-weight: 500; }
.action.primary { background: var(--accent-dark); color: #f7fbff; }
.action.secondary { background: var(--surface); color: var(--accent-dark); }
.action:not(:disabled):not([aria-disabled="true"]):hover { filter: brightness(.92); }
.action:disabled, .action[aria-disabled="true"] { opacity: .46; pointer-events: none; }
.status { margin-top: 10px; color: var(--muted); font-size: 11px; }
.status [lang="ja"] { font-size: 10px; }
.share-link { display: inline-block; margin-top: 7px; font-weight: 700; }

@media (max-width: 1000px) {
  .wordmarks { flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
  .wordmark-rule { display: none; }
  .craft, .partner, .brand-separator { white-space: normal; text-align: center; }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 30px); }
  .catalog-heading { padding-top: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
  .masthead-inner { min-height: 76px; gap: 10px; padding-block: 10px; }
  .wordmarks { flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
  .wordmark-rule { display: none; }
  .craft, .partner, .brand-separator { font-size: clamp(18px, 5.7vw, 23px); white-space: normal; }
  .order-trigger { flex-shrink: 0; min-height: 44px; padding: 6px; gap: 5px; }
  .order-trigger svg { width: 17px; height: 17px; }
  .order-count { min-width: 18px; height: 18px; padding: 0 4px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 13px; padding-bottom: 12px; }
  .pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-button { min-width: 0; padding-inline: 5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quantity input, .quantity-step { height: 44px; }
  .note { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .dialog-head, .dialog-foot { padding: 15px; }
  .order-items { padding-inline: 15px; }
  .order-fields { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
