/* ============================================================
 * クロウズEC 顧客側（フロント）共通CSS
 * ============================================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2f36;
  background: #f6f7f9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a4b8c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e8ee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a4b8c;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.site-logo__mark { font-size: 22px; }
.site-logo:hover { text-decoration: none; opacity: 0.85; }

/* ---------- Hamburger Toggle (mobile only) ---------- */
.site-menu-toggle {
  display: none; /* hidden on desktop */
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin-right: 4px;
}
.site-menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #2a2f36;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

/* ---------- Drawer wrapper ---------- */
.site-drawer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.site-drawer-backdrop {
  display: none; /* hidden on desktop */
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #4a5260;
  font-weight: 500;
  font-size: 14px;
}
.site-nav a:hover {
  background: #eff3f8;
  text-decoration: none;
}
.site-nav a.is-active {
  background: #1a4b8c;
  color: #fff;
}

.site-user {
  text-align: right;
  line-height: 1.3;
  font-size: 12px;
}
.site-user__name { font-weight: 700; color: #2a2f36; font-size: 13px; }
.site-user__company { color: #6a7280; margin-top: 1px; }
.site-user__logout {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a95a5;
}
.site-user__logout:hover { color: #c62828; text-decoration: none; }

.site-main {
  min-height: calc(100vh - 64px - 120px);
}
.site-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.site-footer {
  background: #1a4b8c;
  color: #c5d2e2;
  padding: 28px 24px;
  margin-top: 48px;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
}
.site-footer__brand {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer__meta { opacity: 0.85; line-height: 1.8; }
.site-footer__copy { margin-top: 12px; opacity: 0.6; font-size: 12px; }

/* ---------- Flash messages ---------- */
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  border-left: 4px solid transparent;
}
.flash--success { background: #e8f5e9; color: #1b5e20; border-color: #2e7d32; }
.flash--error   { background: #ffebee; color: #b71c1c; border-color: #c62828; }
.flash--info    { background: #e3f2fd; color: #0d47a1; border-color: #1976d2; }
.flash--warning { background: #fff3e0; color: #e65100; border-color: #ef6c00; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: #1a2a44; line-height: 1.35; }
h1 { font-size: 24px; margin: 0 0 18px; }
h2 { font-size: 20px; margin: 24px 0 14px; }
h3 { font-size: 16px; margin: 18px 0 10px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26,75,140,0.06);
  padding: 32px;
  max-width: 440px;
  margin: 40px auto;
}
.form-card__title {
  text-align: center;
  margin: 0 0 6px;
  color: #1a4b8c;
  font-size: 22px;
}
.form-card__subtitle {
  text-align: center;
  color: #6a7280;
  margin-bottom: 24px;
  font-size: 13px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5260;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: #1a4b8c;
  box-shadow: 0 0 0 3px rgba(26,75,140,0.1);
}
.form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #8a95a5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  background: #fff;
  color: #2a2f36;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: #f2f5f9; text-decoration: none; }
.btn--primary {
  background: #1a4b8c;
  border-color: #1a4b8c;
  color: #fff;
}
.btn--primary:hover { background: #153e74; color: #fff; }
.btn--block { display: block; width: 100%; }
.btn--lg { padding: 12px 24px; font-size: 16px; }

/* ---------- Campaign & Product Cards ---------- */
.campaign {
  margin-bottom: 40px;
}
.campaign__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a4b8c;
}
.campaign__title {
  margin: 0;
  font-size: 20px;
  color: #1a4b8c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.campaign__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e3f2fd;
  color: #0d47a1;
}
.campaign__badge--global {
  background: #e8f5e9;
  color: #1b5e20;
}
.campaign__meta {
  font-size: 12px;
  color: #6a7280;
  text-align: right;
}
.campaign__note {
  background: #fffbe8;
  border-left: 3px solid #f9a825;
  padding: 8px 12px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b5500;
  border-radius: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,75,140,0.10);
  text-decoration: none;
  color: inherit;
}
.product-card__category {
  font-size: 11px;
  color: #6a7280;
  background: #eff3f8;
  padding: 1px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.product-card__img {
  aspect-ratio: 1 / 1;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b4bcc8;
  font-size: 12px;
  overflow: hidden;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__code {
  font-family: Menlo, Consolas, monospace;
  font-size: 11px;
  color: #8a95a5;
  margin-bottom: 2px;
}
.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: #2a2f36;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-card__priceblock {
  margin-top: auto;
}
.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #c62828;
}
.product-card__price-tax {
  font-size: 11px;
  color: #8a95a5;
  margin-left: 4px;
  font-weight: 400;
}
.product-card__priceold {
  font-size: 12px;
  color: #8a95a5;
  text-decoration: line-through;
  margin-top: 2px;
}
.product-card__flag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}
.product-card__flag--featured {
  background: #fff3e0; color: #e65100;
}
.product-card__flag--company {
  background: #e3f2fd; color: #1565c0;
}

/* ---------- Empty state ---------- */
.empty-state {
  background: #fff;
  border: 1px dashed #d0d7e0;
  border-radius: 10px;
  padding: 48px 24px;
  text-align: center;
  color: #8a95a5;
}
.empty-state__icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- Hero / welcome ---------- */
.welcome {
  background: linear-gradient(135deg, #1a4b8c 0%, #2e7d9c 100%);
  color: #fff;
  padding: 28px 28px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(26,75,140,0.15);
}
.welcome__title {
  color: #fff;
  margin: 0 0 6px;
  font-size: 22px;
}
.welcome__sub {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* ---------- Cart count badge in nav ---------- */
.site-nav__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  background: #c62828;
  color: #fff;
}
.site-nav a.is-active .site-nav__badge {
  background: #fff;
  color: #1a4b8c;
}

/* ---------- Page head / filter ---------- */
.page-head { margin-bottom: 16px; }
.page-head h1 { margin: 0 0 4px; }
.page-head__sub { margin: 0; font-size: 13px; color: #6a7280; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  margin-bottom: 16px;
}
.filter-bar .form-control { width: auto; min-width: 140px; }

.list-meta {
  font-size: 13px;
  color: #6a7280;
  margin-bottom: 14px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12.5px;
  color: #6a7280;
  margin-bottom: 18px;
}
.breadcrumb a { color: #1a4b8c; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  padding: 28px;
}
.product-detail__gallery { min-width: 0; }
.product-detail__info    { min-width: 0; }

.gallery-main {
  aspect-ratio: 1 / 1;
  background: #f2f5f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b4bcc8;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-main--empty { font-size: 14px; }

.gallery-thumbs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gallery-thumb {
  padding: 0;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 2px solid #e4e8ee;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: #9aa9be; }
.gallery-thumb.is-active { border-color: #1a4b8c; }

.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  background: #eff3f8;
  color: #1a4b8c;
  border-radius: 999px;
  margin-bottom: 10px;
  text-decoration: none;
}
.cat-badge:hover { background: #dce5f0; text-decoration: none; }

.product-detail__code {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  color: #8a95a5;
  margin-bottom: 4px;
}
.product-detail__name {
  margin: 0 0 16px;
  font-size: 22px;
  color: #1a2a44;
  line-height: 1.4;
}

.product-detail__priceblock {
  background: #fafbfd;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.product-detail__priceold {
  font-size: 12px;
  color: #8a95a5;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.product-detail__price {
  font-size: 28px;
  font-weight: 800;
  color: #c62828;
  line-height: 1.1;
}
.product-detail__tax {
  font-size: 12px;
  color: #8a95a5;
  font-weight: 400;
  margin-left: 4px;
}
.product-detail__pricewith {
  font-size: 13px;
  color: #6a7280;
  margin-top: 4px;
}
.product-detail__flag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}
.product-detail__flag small { font-weight: 400; opacity: 0.8; }
.product-detail__flag--featured { background: #fff3e0; color: #e65100; }
.product-detail__flag--company  { background: #e3f2fd; color: #1565c0; }

.product-detail__desc {
  font-size: 14px;
  line-height: 1.8;
  background: #fafbfd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #3a4252;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.product-detail__cart {
  padding-top: 14px;
  border-top: 1px solid #e4e8ee;
}

.qty-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.qty-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5260;
}
.qty-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  overflow: hidden;
}
.qty-input .form-control {
  border: 0;
  border-radius: 0;
  width: 64px;
  text-align: center;
  padding: 8px 4px;
}
.qty-input .form-control:focus {
  box-shadow: none;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f2f5f9;
  font-size: 16px;
  cursor: pointer;
  color: #4a5260;
  transition: background 0.15s;
}
.qty-btn:hover { background: #e4e8ee; }

.btn--cart {
  width: 100%;
  background: #c62828;
  border-color: #c62828;
  color: #fff;
  font-weight: 700;
}
.btn--cart:hover { background: #a71c1c; color: #fff; }

/* ---------- Cart Table ---------- */
.cart-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cart-table th,
.cart-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  text-align: left;
}
.cart-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #555;
  font-size: 13px;
  white-space: nowrap;
}
.cart-table tbody tr:last-child td { border-bottom: none; }

.cart-th-img  { width: 90px; }
.cart-th-price,
.cart-th-qty,
.cart-th-sub  { white-space: nowrap; text-align: right; width: 120px; }
.cart-th-act  { width: 60px; text-align: center; }

.cart-td-img img {
  width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #eee;
  display: block;
}
.cart-td-img .no-img {
  display: flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  background: #f4f4f4; color: #999; font-size: 11px; border-radius: 6px;
}
.cart-td-name__code { font-size: 11px; color: #888; margin-bottom: 2px; }
.cart-td-name__link { color: #2c5e2e; text-decoration: none; font-weight: 600; }
.cart-td-name__link:hover { text-decoration: underline; }
.cart-td-name__listprice { font-size: 11px; color: #999; text-decoration: line-through; margin-top: 4px; }

.cart-td-price,
.cart-td-sub { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-td-sub { font-weight: 600; color: #111; }
.cart-td-qty { text-align: center; }
.cart-qty-input {
  width: 72px; text-align: center;
  padding: 6px 8px; font-size: 14px;
}
.cart-td-act { text-align: center; }

.cart-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-flag--featured { background: #fff3cd; color: #8a6d1a; border: 1px solid #f5e2a6; }
.cart-flag--company  { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.btn--link-danger {
  background: transparent;
  border: none;
  color: #c62828;
  padding: 4px 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.btn--link-danger:hover { color: #a71c1c; }

.cart-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.btn--danger {
  background: #c62828; border-color: #c62828; color: #fff;
}
.btn--danger:hover { background: #a71c1c; color: #fff; }

/* ---------- Cart Summary ---------- */
.cart-summary {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  max-width: 480px;
  margin-left: auto;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
}
.cart-summary__row strong {
  font-variant-numeric: tabular-nums;
  color: #111;
  font-size: 15px;
}
.cart-summary__row--total {
  border-top: 1px solid #e5e7eb;
  margin-top: 6px;
  padding-top: 14px;
  font-size: 15px;
}
.cart-summary__row--total strong {
  font-size: 22px;
  color: #c62828;
}
.cart-summary__cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ---------- Checkout ---------- */
.checkout-form { display: block; }
.checkout-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
}
.checkout-section__title {
  margin: 0;
  padding: 12px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  color: #2c5e2e;
}
.checkout-section__body {
  padding: 18px 22px;
}
.form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.form-row label {
  width: 110px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}
.form-row .form-control {
  flex: 1;
  min-width: 200px;
}
.form-control--short { max-width: 220px; flex: 0 0 auto; }
.form-hint {
  color: #777;
  font-size: 12px;
  margin: 8px 0 0 124px;
}
.checkout-section__body textarea.form-control {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
}

.checkout-summary {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  max-width: 480px;
  margin-left: auto;
}
.checkout-cta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.checkout-cta .btn--primary { min-width: 240px; }

/* ---------- Order Complete ---------- */
.order-complete {
  max-width: 760px;
  margin: 0 auto;
}
.order-complete__icon {
  font-size: 56px;
  text-align: center;
  margin: 10px 0 6px;
}
.order-complete__title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 10px;
  color: #2c5e2e;
}
.order-complete__lead {
  text-align: center;
  color: #555;
  margin: 0 0 22px;
}
.order-complete__number {
  background: #fff;
  border: 2px solid #2c5e2e;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 420px;
}
.order-complete__label {
  font-size: 12px; color: #777; letter-spacing: 0.08em;
}
.order-complete__value {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 4px;
}
.order-complete__meta {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.order-complete__meta > div {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
}
.order-complete__meta > div:last-child { border-bottom: none; }
.order-complete__meta span {
  width: 110px; color: #777; flex-shrink: 0;
}
.order-complete__meta strong { color: #111; font-weight: 600; }

/* ---------- Orders List ---------- */
.orders-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.orders-table th,
.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
}
.orders-table thead th {
  background: #f9fafb;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover { background: #fafbff; }

.orders-th-items,
.orders-th-amount,
.orders-th-status { white-space: nowrap; }
.orders-th-amount { text-align: right; }
.orders-th-status { text-align: center; width: 110px; }
.orders-th-act    { width: 80px; text-align: right; }

.orders-td-num a {
  color: #2c5e2e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  text-decoration: none;
}
.orders-td-num a:hover { text-decoration: underline; }
.orders-td-items { white-space: nowrap; color: #555; }
.orders-td-items small { color: #888; font-size: 12px; margin-left: 2px; }
.orders-td-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.orders-td-status { text-align: center; }
.orders-td-act    { text-align: right; }

/* ---------- Status Badge ---------- */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status--pending   { background: #fff8e1; color: #8a6d1a; border-color: #f5e2a6; }
.status--producing { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.status--shipped   { background: #e0f2f1; color: #00796b; border-color: #b2dfdb; }
.status--delivered { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.status--cancelled { background: #fafafa; color: #777;    border-color: #e0e0e0; }

/* ---------- Small button ---------- */
.btn--sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 4px;
}

/* ---------- My Page Profile ---------- */
.profile-meta {
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  padding: 14px 20px;
}
.profile-meta > div {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #e8ebef;
  font-size: 14px;
}
.profile-meta > div:last-child { border-bottom: none; }
.profile-meta span {
  width: 130px;
  color: #777;
  flex-shrink: 0;
}
.profile-meta strong { color: #111; font-weight: 600; }

/* ---------- Password Form ---------- */
.password-form .form-row { margin-bottom: 14px; }
.password-form .form-row label { width: 220px; }
.password-form .form-control { max-width: 320px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header__inner {
    min-height: 56px;
    padding: 8px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* ハンバーガーボタンを表示 */
  .site-menu-toggle { display: inline-flex; }

  /* ロゴはセンター寄り / 折り返し無し */
  .site-logo { flex: 1; min-width: 0; font-size: 16px; }
  .site-logo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ドロワーは左からスライドイン（デフォルト非表示） */
  .site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 82vw);
    height: 100dvh;
    background: #fff;
    border-right: 1px solid #e4e8ee;
    box-shadow: 2px 0 12px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 14px 24px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 60;
    overflow-y: auto;
  }
  body.is-drawer-open .site-drawer { transform: translateX(0); }

  /* 半透明バックドロップ */
  .site-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.is-drawer-open .site-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.is-drawer-open { overflow: hidden; }

  /* ドロワー内のユーザープロフィール */
  .site-drawer .site-user {
    order: -1;
    text-align: left;
    margin: 0 0 12px 0;
    padding: 14px 10px 16px;
    border-bottom: 1px solid #e4e8ee;
    font-size: 13px;
  }
  .site-drawer .site-user__name { font-size: 15px; }
  .site-drawer .site-user__company { font-size: 12px; color: #6a7280; margin-top: 2px; }
  .site-drawer .site-user__logout {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #f6f7f9;
    border: 1px solid #e4e8ee;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5260;
  }

  /* ドロワー内のナビ: 縦並び */
  .site-drawer .site-nav {
    flex-direction: column;
    gap: 2px;
    margin: 0;
    overflow: visible;
  }
  .site-drawer .site-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    white-space: normal;
    border-radius: 8px;
  }

  /* ハンバーガーを「✕」に変形（開いているとき） */
  body.is-drawer-open .site-menu-toggle__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.is-drawer-open .site-menu-toggle__bar:nth-child(2) { opacity: 0; }
  body.is-drawer-open .site-menu-toggle__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .site-main__inner { padding: 20px 14px; }
  .campaign__header { flex-direction: column; align-items: flex-start; }
  .campaign__meta { text-align: left; }
  .form-card { margin: 20px auto; padding: 22px; }
  .welcome { padding: 20px; }
  .product-detail { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .filter-bar { padding: 10px; }
  .filter-bar .form-control { min-width: 120px; }

  .cart-table th, .cart-table td { padding: 10px 8px; font-size: 13px; }
  .cart-th-img, .cart-td-img img, .cart-td-img .no-img { width: 56px; height: 56px; }
  .cart-th-img { width: 70px; }
  .cart-qty-input { width: 60px; }

  .cart-summary { max-width: none; }
  .checkout-summary { max-width: none; }

  .form-row label { width: 100%; }
  .form-hint { margin-left: 0; }
  .form-row .form-control, .form-control--short { width: 100%; max-width: none; flex: 1 1 100%; }

  .checkout-cta { flex-direction: column-reverse; }
  .checkout-cta .btn, .checkout-cta .btn--primary { width: 100%; min-width: 0; }

  .order-complete__meta > div { flex-direction: column; }
  .order-complete__meta span { width: auto; font-size: 12px; }

  .orders-table th, .orders-table td { padding: 10px 8px; font-size: 12px; }
  .orders-th-items, .orders-th-status { display: none; }
  .orders-td-items, .orders-td-status { display: none; }

  .profile-meta > div { flex-direction: column; }
  .profile-meta span { width: auto; font-size: 12px; }

  .password-form .form-row label { width: 100%; }
  .password-form .form-control { max-width: none; }
}
