/* ===== CSS Custom Properties ===== */
:root {
  --c-primary: #1a1a1a;
  --c-accent: #b8956a;
  --c-accent-light: #d4ba94;
  --c-bg: #fafaf8;
  --c-surface: #ffffff;
  --c-text: #2d2d2d;
  --c-text-secondary: #8c8c8c;
  --c-text-muted: #b0b0b0;
  --c-border: #e8e5e0;
  --c-border-light: #f0ede8;
  --c-hover: #f5f3f0;
  --c-success: #3a8a5c;
  --c-error: #c44d4d;
  --c-warning: #d4a94b;
  --c-warning-bg: #fdf8ef;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;

  --radius: 2px;
  --radius-sm: 1px;

  --max-width: 1200px;
  --max-width-narrow: 800px;

  --header-height: 50px;
}

/* ===== リセット & ベース ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ============================================================
   サイトヘッダー（モバイルファースト）
   ============================================================ */
#site-header {
  background: var(--c-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-md);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex-shrink: 0;
}
.header-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}
.header-logo-sub {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* ナビゲーション — モバイルではドロワー */
.header-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 260px;
  background: var(--c-primary);
  flex-direction: column;
  padding: var(--sp-lg) var(--sp-md);
  gap: 0;
  z-index: 200;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.header-nav.open {
  display: flex;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}
.header-auth {
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.04em;
  margin-right: var(--sp-sm);
}

/* ハンバーガーボタン */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ナビオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.nav-overlay.open {
  display: block;
}

/* ============================================================
   ヒーロー（トップページ）— モバイルファースト
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-md);
}
.hero-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-sm);
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: var(--sp-md);
}
.hero-desc {
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: var(--sp-lg);
}
.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--c-primary);
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.9; }

/* ページ内ナビ */
.page-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: var(--header-height);
  z-index: 89;
}
.page-nav-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}
.page-nav-scroll::-webkit-scrollbar { display: none; }
.page-nav-link {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text-secondary);
  white-space: nowrap;
  transition: color 0.2s;
}
.page-nav-link:hover { color: var(--c-text); }

/* ============================================================
   シーズンセクション & カタロググリッド — モバイルファースト
   ============================================================ */
.season-section {
  margin-top: var(--sp-xl);
}
.season-title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-border);
}
.season-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-primary);
}
.season-name {
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-secondary);
  letter-spacing: 0.06em;
}

/* モバイル: 2列グリッド */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}

.catalog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.catalog-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.catalog-card-cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-hover);
}
.catalog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.catalog-card:hover .catalog-card-cover img {
  transform: scale(1.03);
}
.catalog-card-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
}
.catalog-card-cover-empty span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.catalog-card-body {
  padding: var(--sp-sm) var(--sp-sm) var(--sp-md);
}
.catalog-brand {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 2px;
  line-height: 1.4;
}
.catalog-target {
  font-size: 10px;
  color: var(--c-text-secondary);
  line-height: 1.5;
}
.catalog-external {
  font-size: 10px;
  color: var(--c-text-muted);
  padding: 0 var(--sp-sm) var(--sp-sm);
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA セクション
   ============================================================ */
.cta-section {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}
.cta-inner {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
}
.cta-inner h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-sm);
}
.cta-inner p {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: var(--sp-md);
}
.cta-inner .btn-primary {
  background: #fff;
  color: var(--c-primary);
}
.cta-inner .btn-primary:hover {
  opacity: 0.9;
}

/* ============================================================
   ブランドセレクター — モバイルファースト
   ============================================================ */
.brand-selector-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}
.brand-selector-scroll {
  display: flex;
  gap: 6px;
  padding: 8px var(--sp-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand-selector-scroll::-webkit-scrollbar { display: none; }
.brand-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.brand-chip:hover {
  border-color: var(--c-accent);
  color: var(--c-text);
}
.brand-chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.brand-chip-prefix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.brand-chip.active .brand-chip-prefix {
  color: var(--c-accent-light);
}
.brand-chip-name {
  font-size: 12px;
}
.brand-chip-external {
  font-size: 10px;
  opacity: 0.6;
}

/* ============================================================
   カタログページ — モバイルファースト
   ============================================================ */
.catalog-page-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-md) 0;
}
.catalog-page-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.catalog-page-target {
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-top: var(--sp-xs);
}

.breadcrumb {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--c-accent);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--c-text); }
.bc-sep { margin: 0 var(--sp-xs); }

.catalog-main {
  padding-top: var(--sp-md);
  padding-bottom: var(--sp-2xl);
}

/* モバイル: 1カラム（PDFはボタンのみ、商品リストがメイン） */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

/* PDF ビューア — モバイルでは非表示 */
.catalog-pdf-section {
  min-height: auto;
}
.pdf-viewer-wrapper {
  display: none;
}
.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}
.pdf-actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
}

/* 商品サイドパネル */
.catalog-products-section {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.products-header {
  position: sticky;
  top: var(--header-height);
  background: var(--c-surface);
  padding: var(--sp-md);
  border-bottom: 1px solid var(--c-border);
  z-index: 10;
}
.products-header h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-sm);
}
.search-bar-mini input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  font-size: 14px;
  background: var(--c-bg);
  color: var(--c-text);
}
.search-bar-mini input::placeholder { color: var(--c-text-muted); }
.search-bar-mini input:focus { border-color: var(--c-accent); outline: none; }

/* カートフローティングバー */
.cart-float {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-primary);
  color: #fff;
  z-index: 90;
  padding: var(--sp-sm) var(--sp-md);
}
.cart-float-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  font-size: 13px;
}
#cart-float-total {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============================================================
   フッター
   ============================================================ */
/* ============================================================
   情報セクション共通（ご注文方法・取引条件・About・Q&A・お問い合わせ）
   ============================================================ */
.info-section {
  padding: var(--sp-2xl) 0;
}
.info-section-alt {
  background: var(--c-hover);
}
.section-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
  width: 100%;
}
.section-heading-light {
  border-bottom-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* ご注文方法 */
.howto-steps {
  display: grid;
  gap: var(--sp-md);
}
.howto-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
}
.howto-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}
.howto-step h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}
.howto-step p {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}
.howto-step small {
  color: var(--c-text-muted);
}

/* 取引条件 */
.terms-grid {
  display: grid;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.terms-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-lg) var(--sp-md);
}
.terms-card-wide {
  grid-column: 1 / -1;
}
.terms-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-primary);
}
.terms-card p {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}
.terms-card strong {
  color: var(--c-text);
}
.terms-note {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: var(--sp-sm);
  padding: var(--sp-sm);
  background: var(--c-hover);
  line-height: 1.6;
}
.shipping-table-wrap {
  overflow-x: auto;
}
.shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.shipping-table th {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-sm);
  font-weight: 600;
  text-align: left;
  font-size: 11px;
}
.shipping-table td {
  padding: var(--sp-sm);
  border-bottom: 1px solid var(--c-border-light);
  font-size: 12px;
}
.shipping-table tbody tr:hover {
  background: var(--c-hover);
}

/* ABOUT */
.about-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 700px;
  margin: 0 auto;
}
.about-table th {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: top;
  width: 100px;
}
.about-table td {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 13px;
  border-bottom: 1px solid var(--c-border-light);
  line-height: 1.6;
}
.about-table a {
  color: var(--c-accent);
}

/* Q&A */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  margin-bottom: var(--sp-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: var(--sp-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.faq-item summary::before {
  content: 'Q.';
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
}
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 var(--sp-md) var(--sp-md) var(--sp-md);
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--c-border-light);
  padding-top: var(--sp-md);
}

/* お問い合わせ */
.contact-section {
  background: var(--c-primary);
  color: #fff;
}
.contact-desc {
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: var(--sp-lg);
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 400px;
  margin: 0 auto;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-align: center;
  transition: background 0.2s;
  font-size: 14px;
  font-weight: 600;
}
.contact-btn:hover {
  background: rgba(255,255,255,0.1);
}
.contact-btn-primary {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.contact-btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--c-primary);
}
.contact-btn-icon {
  font-size: 20px;
  margin-bottom: 2px;
}
.contact-btn small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

/* フッター */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: var(--sp-xl) var(--sp-md);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  margin-bottom: var(--sp-sm);
}
.footer-info {
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-xs);
}
.footer-contact {
  font-size: 12px;
  margin-bottom: var(--sp-sm);
}
.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-contact a:hover { color: #fff; }
.footer-copy {
  font-size: 10px;
  opacity: 0.4;
}

/* ============================================================
   注文ページ用（order.html）— タブナビ以下は max-width: 800px
   ============================================================ */
#tab-nav {
  display: flex;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}
.tab-btn {
  flex: 1;
  padding: 12px var(--sp-xs);
  border: none;
  background: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  letter-spacing: 0.04em;
}
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab-btn:hover { color: var(--c-primary); }
.badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 28px);
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  letter-spacing: 0;
}

.tab-content {
  display: none;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 14px;
}
.tab-content.active { display: block; }

/* ============================================================
   共通コンポーネント — モバイルファースト
   ============================================================ */

/* 検索バー — モバイル: 縦積み */
.search-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.search-bar input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  font-size: 16px; /* iOS 16px以上でズーム防止 */
  background: var(--c-surface);
  transition: border-color 0.2s;
  color: var(--c-text);
}
.search-bar input::placeholder { color: var(--c-text-muted); }
.search-bar input:focus { border-color: var(--c-accent); outline: none; }
.search-bar select {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  font-size: 14px;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}
.search-bar select:focus { border-color: var(--c-accent); outline: none; }

.product-count {
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.04em;
  padding: 0 var(--sp-xs);
}

/* ローディング */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-secondary);
}
.spinner {
  width: 32px; height: 32px;
  margin: 0 auto var(--sp-md);
  border: 2px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 商品リスト */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-header {
  background: var(--c-primary);
  color: #fff;
  padding: 11px var(--sp-md);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: var(--sp-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-header:first-child { margin-top: 0; }
.category-header .toggle { font-size: 11px; opacity: 0.5; }
.category-header .count { font-size: 11px; opacity: 0.6; margin-left: var(--sp-sm); }
.category-header.regular-header { background: var(--c-accent); color: #fff; margin-top: 0; }
.category-group { display: flex; flex-direction: column; gap: 0; }
.category-group.collapsed { display: none; }

/* 商品カード — モバイルファースト */
.product-card {
  background: var(--c-surface);
  padding: 12px var(--sp-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--c-border-light);
  transition: background 0.15s;
}
.product-card:hover { background: var(--c-hover); }
.product-card.unavailable { opacity: 0.45; }

/* モバイル: サムネイル大きめ */
.product-thumb { flex-shrink: 0; width: 64px; height: 64px; }
.product-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--c-border-light); }
.thumb-placeholder {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--c-border-light); display: flex; align-items: center; justify-content: center;
}
.thumb-placeholder::after {
  content: ''; width: 24px; height: 24px;
  background: var(--c-border); border-radius: var(--radius-sm);
}

.product-info { flex: 1; min-width: 0; }
.product-item-no {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; color: var(--c-accent); letter-spacing: 0.06em;
}
.price-retail-inline {
  font-size: 10px; font-weight: 400; color: var(--c-text-muted); margin-left: 6px;
}
.product-name {
  font-size: 13px; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5;
}
.product-meta { font-size: 11px; color: var(--c-text-secondary); margin-top: 1px; letter-spacing: 0.02em; }
.product-detail { font-size: 10px; color: var(--c-text-muted); margin-top: 2px; line-height: 1.4; }
.product-status { font-size: 11px; color: var(--c-error); font-weight: 600; letter-spacing: 0.04em; }

.product-price { text-align: right; white-space: nowrap; }
.price-wholesale-main { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--c-text); }
.product-action { flex-shrink: 0; }

/* 数量操作 */
.inline-qty {
  display: flex; align-items: center; gap: 3px;
  background: var(--c-primary); border-radius: 20px; padding: 2px;
}
.qty-btn-sm {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn-sm:hover { background: rgba(255,255,255,0.3); }
.qty-btn-sm:active { background: rgba(255,255,255,0.4); }

.qty-input-sm {
  width: 40px; height: 28px; text-align: center; border: none;
  background: rgba(255,255,255,0.25); color: #fff;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  border-radius: 2px; -moz-appearance: textfield; padding: 0;
}
.qty-input-sm::-webkit-inner-spin-button, .qty-input-sm::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input-sm:focus { outline: none; background: rgba(255,255,255,0.45); }

/* ボタン — タッチフレンドリー（最小44pxタップ領域） */
.btn-add {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--c-primary); background: var(--c-surface);
  color: var(--c-primary); font-size: 20px; font-weight: 400;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-add:hover { background: var(--c-primary); color: #fff; }
.btn-add:active { background: var(--c-primary); color: #fff; }
.btn-add-sm { width: 32px; height: 32px; font-size: 18px; }

.btn-primary {
  display: inline-block; padding: 14px 24px;
  background: var(--c-primary); color: #fff; border: none;
  border-radius: var(--radius); font-family: var(--font-display);
  font-size: 15px; font-weight: 600; cursor: pointer;
  letter-spacing: 0.04em; transition: opacity 0.15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block; padding: 14px 24px;
  background: var(--c-surface); color: var(--c-text-secondary);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  cursor: pointer; letter-spacing: 0.04em; transition: all 0.15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { border-color: var(--c-text-secondary); color: var(--c-text); }

.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--c-primary); color: #fff; border: none;
  border-radius: var(--radius); font-family: var(--font-display);
  font-size: 16px; font-weight: 600; cursor: pointer;
  letter-spacing: 0.06em; transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-submit:hover:not(:disabled) { opacity: 0.85; }
.btn-submit:disabled { background: var(--c-border); color: var(--c-text-muted); cursor: not-allowed; }

/* グループ化商品カード */
.product-card-grouped { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--sp-md); }
.product-card-header { display: flex; align-items: center; gap: 12px; }
.color-variants { margin-top: 10px; border-top: 1px solid var(--c-border-light); padding-top: var(--sp-sm); }
.color-row { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 76px; }
.color-name { flex: 1; font-size: 12px; color: var(--c-text-secondary); min-width: 48px; letter-spacing: 0.02em; }
.color-price { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--c-text); min-width: 60px; text-align: right; }
.color-action { flex-shrink: 0; }

/* カート */
.empty-state { text-align: center; padding: 60px 20px; color: var(--c-text-secondary); }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  background: var(--c-surface); padding: 14px var(--sp-md);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border-light);
}
.cart-item-info { flex: 1; min-width: 140px; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.cart-item-no { font-size: 11px; color: var(--c-accent); letter-spacing: 0.04em; }
.cart-item-price { font-size: 12px; color: var(--c-text-secondary); }

.qty-control { display: flex; align-items: center; gap: var(--sp-sm); margin-left: auto; }
.qty-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: 18px; color: var(--c-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { background: var(--c-hover); }

.qty-value-input {
  width: 48px; height: 36px; text-align: center;
  border: 1px solid var(--c-border); border-radius: 0;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  padding: 0; color: var(--c-text); -moz-appearance: textfield;
}
.qty-value-input::-webkit-inner-spin-button, .qty-value-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-value-input:focus { border-color: var(--c-accent); outline: none; }

.cart-item-subtotal { font-family: var(--font-display); font-size: 14px; font-weight: 700; text-align: right; min-width: 70px; }
.cart-item-remove {
  color: var(--c-text-muted); cursor: pointer; font-size: 18px;
  padding: 8px; border: none; background: none; transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cart-item-remove:hover { color: var(--c-error); }

/* お届け先 */
.delivery-section { background: var(--c-surface); padding: var(--sp-md); margin-top: var(--sp-lg); border: 1px solid var(--c-border); }
.delivery-section h3 {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--c-text-secondary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-sm);
}
.delivery-section select { width: 100%; padding: 12px; border: 1px solid var(--c-border); border-radius: 0; font-size: 14px; background: var(--c-surface); color: var(--c-text); }
.delivery-section select:focus { border-color: var(--c-accent); outline: none; }

.manual-address-form { margin-top: var(--sp-md); padding: var(--sp-md); background: var(--c-bg); }
.form-row { margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { display: block; font-size: 12px; font-weight: 600; color: var(--c-text-secondary); margin-bottom: var(--sp-xs); letter-spacing: 0.04em; }
.form-row .required { color: var(--c-error); }
.form-row input, .form-row select { width: 100%; padding: 12px 10px; border: 1px solid var(--c-border); border-radius: 0; font-size: 16px; color: var(--c-text); background: var(--c-surface); }
.form-row input::placeholder { color: var(--c-text-muted); }
.form-row input:focus, .form-row select:focus { border-color: var(--c-accent); outline: none; }

.save-address-row { margin-top: var(--sp-sm); }
.checkbox-label {
  display: flex; align-items: center; gap: var(--sp-sm);
  cursor: pointer; font-size: 13px; font-weight: 400; color: var(--c-text-secondary);
}
.checkbox-label input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; accent-color: var(--c-primary); }

/* 送料 */
.shipping-info { background: var(--c-surface); padding: var(--sp-md); margin-top: var(--sp-md); border: 1px solid var(--c-border); }
.shipping-info h3 { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--c-text-secondary); letter-spacing: 0.08em; margin-bottom: var(--sp-sm); }
.shipping-group { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--c-border-light); font-size: 13px; }
.shipping-group:last-child { border-bottom: none; }
.shipping-free { color: var(--c-success); font-weight: 600; font-size: 12px; }
.shipping-paid { color: var(--c-error); font-size: 12px; }
.shipping-shortage { font-size: 11px; color: var(--c-accent); padding-left: var(--sp-sm); }
.shipping-warnings { margin-top: var(--sp-sm); }
.shipping-warning { background: var(--c-warning-bg); border-left: 3px solid var(--c-warning); padding: 8px 12px; margin-top: 6px; font-size: 12px; color: #8a7340; line-height: 1.6; }

/* 合計 */
.cart-total, .confirm-total { background: var(--c-primary); color: #fff; padding: var(--sp-md); margin-top: var(--sp-md); }
.total-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; opacity: 0.8; }
.total-row.grand {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--sp-sm); margin-top: var(--sp-xs); opacity: 1; letter-spacing: 0.02em;
}
.cart-actions, .confirm-actions { display: flex; flex-direction: column; gap: var(--sp-sm); margin-top: var(--sp-lg); }

/* 注文確認 */
#confirm-content h2 { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.06em; color: var(--c-text); margin-bottom: var(--sp-lg); }
.form-group { margin-bottom: var(--sp-lg); }
.form-group > label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 600; margin-bottom: var(--sp-sm); color: var(--c-text-secondary); letter-spacing: 0.06em; }
.form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--c-border); border-radius: 0; font-size: 16px; font-family: var(--font-body); color: var(--c-text); background: var(--c-surface); }
.form-group select:focus, .form-group textarea:focus { border-color: var(--c-accent); outline: none; }

.store-detail {
  background: var(--c-bg); padding: 10px 14px; margin-top: var(--sp-sm);
  font-size: 13px; color: var(--c-text-secondary); line-height: 1.8;
  display: none; border-left: 2px solid var(--c-accent);
}
.confirm-items { margin: var(--sp-md) 0; }
.confirm-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-border-light); font-size: 13px; gap: var(--sp-sm); }
.confirm-item:last-child { border-bottom: none; }

/* 注文完了 */
.complete-state { text-align: center; padding: var(--sp-2xl) 20px; }
.complete-icon { width: 64px; height: 64px; margin: 0 auto var(--sp-lg); background: var(--c-success); color: #fff; border-radius: 50%; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.complete-state h2 { font-family: var(--font-display); color: var(--c-text); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; margin-bottom: var(--sp-sm); }
.complete-state p { color: var(--c-text-secondary); margin-bottom: var(--sp-sm); font-size: 14px; }
.complete-state a { color: var(--c-accent); }

/* ラジオグループ */
.radio-group { display: flex; flex-direction: column; gap: var(--sp-sm); margin-top: var(--sp-xs); }
.radio-label {
  display: flex; align-items: flex-start; gap: var(--sp-sm); cursor: pointer;
  font-size: 13px; color: var(--c-text); padding: 14px;
  border: 1px solid var(--c-border); transition: border-color 0.15s, background 0.15s; background: var(--c-surface);
  -webkit-tap-highlight-color: transparent;
}
.radio-label:hover { border-color: var(--c-accent); }
.radio-label.selected { border-color: var(--c-primary); background: #faf9f7; }
.radio-label input[type="radio"] { margin-top: 2px; width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; accent-color: var(--c-primary); }
#delivery-date-picker input[type="date"] { padding: 12px 10px; border: 1px solid var(--c-border); border-radius: 0; font-size: 16px; width: 100%; color: var(--c-text); }
#delivery-date-picker input[type="date"]:focus { border-color: var(--c-accent); outline: none; }

/* 注文履歴 */
.history-list { display: flex; flex-direction: column; gap: var(--sp-md); }
.history-order { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.history-header { padding: var(--sp-md); cursor: pointer; transition: background 0.15s; -webkit-tap-highlight-color: transparent; }
.history-header:hover { background: var(--c-hover); }
.history-meta { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-xs); flex-wrap: wrap; }
.history-date { font-size: 13px; color: var(--c-text-secondary); }
.history-id { font-size: 12px; color: var(--c-text-muted); font-family: monospace; }
.history-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.status-accepted { background: #e8f5e9; color: #2e7d32; }
.status-complete { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #fff3e0; color: #e65100; }
.status-waiting { background: #fce4ec; color: #c62828; }
.status-default { background: #f5f5f5; color: #616161; }
.history-summary { display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: var(--sp-xs); }
.history-total { font-weight: 600; color: var(--c-text); }
.history-detail { padding: 0 var(--sp-md) var(--sp-md); border-top: 1px solid var(--c-border-light); }
.history-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: var(--sp-sm); }
.history-table th { background: var(--c-hover); padding: var(--sp-xs) var(--sp-sm); text-align: left; font-weight: 600; font-size: 11px; color: var(--c-text-secondary); }
.history-table td { padding: var(--sp-xs) var(--sp-sm); border-bottom: 1px solid var(--c-border-light); font-size: 11px; }
.history-memo { font-size: 12px; color: var(--c-text-secondary); margin-top: var(--sp-sm); }
.error-msg { color: var(--c-error); font-size: 14px; padding: var(--sp-md); }

/* ============================================================
   PC版（900px〜）— 拡張スタイル
   ============================================================ */
@media (min-width: 900px) {
  :root {
    --header-height: 56px;
  }

  .header-inner {
    padding: 0 var(--sp-lg);
  }
  .header-logo-img {
    height: 28px;
  }
  .header-logo-sub {
    font-size: 9px;
  }

  /* PC: ハンバーガー非表示、ナビ横並び */
  .hamburger { display: none; }
  .nav-overlay { display: none !important; }
  .header-nav {
    display: flex !important;
    position: static;
    width: auto;
    background: none;
    flex-direction: row;
    padding: 0;
    gap: var(--sp-sm);
    box-shadow: none;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .nav-link {
    font-size: 11px;
    padding: 4px 6px;
    border-bottom: none;
    white-space: nowrap;
  }

  .container { padding: 0 var(--sp-lg); }

  /* ヒーロー */
  .hero { min-height: 360px; }
  .hero-inner { padding: 60px var(--sp-lg); }
  .hero-logo { height: 48px; }
  .hero-subtitle { font-size: 13px; letter-spacing: 0.25em; }
  .hero-desc { font-size: 16px; }
  .hero-cta { padding: 12px 36px; font-size: 14px; }

  /* ページ内ナビ */
  .page-nav-scroll { justify-content: center; }
  .page-nav-link { padding: 12px 16px; font-size: 12px; }

  /* カタロググリッド: 4列 */
  .season-section { margin-top: var(--sp-2xl); }
  .season-title { gap: var(--sp-md); margin-bottom: var(--sp-lg); }
  .season-label { font-size: 20px; }
  .season-name { font-size: 13px; }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--sp-md);
  }
  .catalog-brand { font-size: 14px; }
  .catalog-target { font-size: 11px; }
  .catalog-card-cover-empty span { font-size: 24px; }

  /* 情報セクション PC */
  .info-section { padding: 60px 0; }
  .section-heading { font-size: 24px; margin-bottom: var(--sp-xl); }
  .howto-steps { grid-template-columns: repeat(3, 1fr); }
  .terms-grid { grid-template-columns: repeat(2, 1fr); }
  .about-table th { width: 140px; font-size: 13px; }
  .about-table td { font-size: 14px; }
  .contact-methods { flex-direction: row; max-width: 600px; }
  .contact-btn { flex: 1; }

  /* CTA */
  .cta-section { margin-top: var(--sp-2xl); margin-bottom: var(--sp-2xl); }
  .cta-inner { padding: var(--sp-xl) var(--sp-lg); }
  .cta-inner h3 { font-size: 16px; }
  .cta-inner p { font-size: 13px; margin-bottom: var(--sp-lg); }

  /* カタログページ: 2カラム（認証時）/ 1カラム全幅（未認証時） */
  .catalog-page-header { padding: var(--sp-lg) 0; }
  .catalog-page-title { font-size: 22px; }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .catalog-layout.has-products {
    grid-template-columns: 1fr 420px;
  }
  .catalog-pdf-section { min-height: 500px; }
  .pdf-viewer-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--c-border-light);
    border: 1px solid var(--c-border);
  }
  .pdf-actions { justify-content: flex-start; }
  .catalog-products-section {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .catalog-main { padding-top: var(--sp-lg); }

  /* 注文タブ */
  .tab-btn { font-size: 13px; padding: 14px var(--sp-sm); letter-spacing: 0.06em; }
  .tab-content { padding: 20px; }

  /* 検索バー: 横並び */
  .search-bar { flex-direction: row; flex-wrap: wrap; }
  .search-bar input { flex: 2; min-width: 200px; font-size: 14px; padding: 10px 14px; }
  .search-bar select { flex: 1; min-width: 140px; padding: 10px; font-size: 13px; }

  /* 商品カード */
  .product-card { padding: 14px var(--sp-md); gap: 14px; }
  .product-card-grouped { padding: 14px var(--sp-md); }
  .product-thumb { width: 48px; height: 48px; }
  .product-thumb img { width: 48px; height: 48px; }
  .thumb-placeholder { width: 48px; height: 48px; }
  .thumb-placeholder::after { width: 20px; height: 20px; }
  .color-row { padding-left: 62px; gap: 12px; }
  .color-name { min-width: 60px; }
  .color-price { min-width: 70px; }

  /* カート */
  .cart-item { flex-wrap: nowrap; gap: 14px; }
  .cart-actions, .confirm-actions { flex-direction: row; }
  .cart-actions .btn-primary, .cart-actions .btn-secondary { flex: 1; }

  /* フォーム */
  .form-row input, .form-row select { font-size: 14px; padding: 9px 10px; }
  .form-group select, .form-group textarea { font-size: 14px; padding: 10px; }
  #delivery-date-picker input[type="date"] { width: 200px; font-size: 14px; padding: 8px 10px; }

  /* 履歴テーブル */
  .history-table { font-size: 13px; }
  .history-table th { font-size: 12px; }
  .history-table td { font-size: 13px; }

  /* フッター */
  .site-footer { padding: var(--sp-xl) var(--sp-lg); }
}

/* ============================================================
   タブレット（600px〜899px）— 中間調整
   ============================================================ */
@media (min-width: 600px) and (max-width: 899px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
  }

  .product-thumb { width: 56px; height: 56px; }
  .product-thumb img { width: 56px; height: 56px; }
  .thumb-placeholder { width: 56px; height: 56px; }

  .search-bar { flex-direction: row; flex-wrap: wrap; }
  .search-bar input { flex: 2; min-width: 200px; }
  .search-bar select { flex: 1; min-width: 120px; }
}

/* ============================================================
   刺繍オーダーシート
   ============================================================ */
.emb-header {
  padding: var(--sp-md) var(--sp-md) 0;
}
.emb-header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: var(--sp-xs);
}
.emb-desc {
  font-size: 13px;
  color: var(--c-text-secondary);
}
.emb-group {
  margin: var(--sp-md) 0;
}
.emb-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-hover);
  border-left: 3px solid var(--c-accent);
}
.emb-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.emb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.emb-table thead th {
  background: var(--c-primary);
  color: #fff;
  padding: 10px var(--sp-sm);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.emb-table tbody tr {
  border-bottom: 1px solid var(--c-border-light);
  transition: background 0.1s;
}
.emb-table tbody tr:hover {
  background: var(--c-hover);
}
.emb-table tbody td {
  padding: 10px var(--sp-sm);
  vertical-align: middle;
}
.emb-th-hinban { width: 100px; }
.emb-th-color { width: 80px; }
.emb-th-design { min-width: 140px; }
.emb-th-design-color { width: 90px; }
.emb-th-qty { width: 80px; text-align: center; }
.emb-td-hinban { font-weight: 600; font-family: monospace; font-size: 12px; }
.emb-td-color { white-space: nowrap; }
.emb-td-design { color: var(--c-text-secondary); }
.emb-td-design-color { font-size: 12px; }
.emb-td-qty { text-align: center; }

.color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid rgba(0,0,0,0.12);
}

.emb-qty-input {
  width: 64px;
  padding: 8px 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}
.emb-qty-input::-webkit-inner-spin-button,
.emb-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.emb-qty-input:focus {
  border-color: var(--c-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 149, 106, 0.15);
}
.emb-qty-input:not(:placeholder-shown):not([value="0"]) {
  border-color: var(--c-accent);
  background: var(--c-warning-bg);
}

/* カートサマリー（固定フッター） */
.emb-cart-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-sm) var(--sp-md);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.emb-cart-summary-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.emb-cart-summary .btn-primary {
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.emb-cart-summary .btn-primary:hover {
  background: var(--c-accent-light);
}

/* 確認画面の合計行 */
.emb-total-row {
  padding: var(--sp-md);
  text-align: right;
  font-size: 15px;
  color: var(--c-text);
  border-top: 2px solid var(--c-primary);
}

/* 注文履歴カード */
.history-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-md);
  margin-bottom: var(--sp-sm);
}
.history-card .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: var(--sp-xs);
}
.history-card .history-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* PC版での刺繍テーブル調整 */
@media (min-width: 900px) {
  .emb-header { padding: var(--sp-lg) 20px 0; }
  .emb-header h2 { font-size: 20px; }
  .emb-table { font-size: 14px; }
  .emb-table thead th { font-size: 12px; padding: 12px var(--sp-md); }
  .emb-table tbody td { padding: 12px var(--sp-md); }
  .emb-qty-input { width: 72px; }
  .emb-cart-summary { padding: var(--sp-md); }
}

/* 希望納期UI */
.delivery-date-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.delivery-date-options .radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
}
.delivery-date-options input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary, #1a1a1a);
}
.delivery-date-input {
  padding: 8px 12px;
  border: 1px solid var(--c-border, #ddd);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
