/* ===== Smooth Scroll ===== */
html { scroll-behavior: smooth; }

/* ===== 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: 58px;
}

/* ===== リセット & ベース ===== */
* { 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: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.header-logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* ヘッダーカートアイコン（認証済みユーザー常時表示） */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.header-cart:hover { color: #fff; }
.header-cart svg { width: 20px; height: 20px; }
.header-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--c-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ナビ内カートアイコン */
.nav-cart-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ナビゲーション — モバイルではドロワー */
.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;
}

/* CTA系ナビリンク — 新規登録（最重要コンバージョン） */
.nav-link.nav-cta-primary {
  color: #fff;
  background: var(--c-accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 8px;
  border-bottom: none;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.15s;
}
.nav-link.nav-cta-primary:hover {
  background: #a07d55;
  transform: translateY(-1px);
}

/* お問い合わせ（サブCTA） */
.nav-link.nav-cta-secondary {
  color: var(--c-accent-light);
  border-bottom-color: rgba(184,149,106,0.2);
  font-weight: 600;
}
.nav-link.nav-cta-secondary:hover {
  color: var(--c-accent);
}

/* チャットリンク */
.nav-link.nav-chat {
  color: var(--c-accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link.nav-chat:hover {
  color: var(--c-accent);
}
.nav-chat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ナビ内セパレーター */
.nav-separator {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0 4px;
}
.header-auth {
  font-size: 13px;
  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: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: var(--sp-md);
}
.hero-desc {
  font-size: 15px;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: var(--sp-lg);
}
.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--c-primary);
  padding: 12px 32px;
  font-size: 14px;
  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 14px;
  font-size: 13px;
  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: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-primary);
}
.season-name {
  font-size: 13px;
  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: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 2px;
  line-height: 1.4;
}
.catalog-target {
  font-size: 12px;
  color: var(--c-text-secondary);
  line-height: 1.5;
}
.catalog-external {
  font-size: 12px;
  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;
  display: flex;
  align-items: center;
}
.brand-selector-scroll {
  flex: 1;
  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;
  scroll-behavior: smooth;
}
.brand-selector-scroll::-webkit-scrollbar { display: none; }
.brand-scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 100%;
  min-height: 40px;
  background: var(--c-surface);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 20px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, opacity 0.2s;
  box-shadow: none;
  z-index: 1;
}
.brand-scroll-btn:hover { background: var(--c-hover); }
.brand-scroll-left { box-shadow: 2px 0 6px rgba(0,0,0,0.08); }
.brand-scroll-right { box-shadow: -2px 0 6px rgba(0,0,0,0.08); }
.brand-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: 13px;
  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: 13px;
  letter-spacing: 0.04em;
}
.brand-chip.active .brand-chip-prefix {
  color: var(--c-accent-light);
}
.brand-chip-name {
  font-size: 13px;
}
.brand-chip-external {
  font-size: 11px;
  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: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.catalog-page-target {
  font-size: 14px;
  color: var(--c-text-secondary);
  margin-top: var(--sp-xs);
}

.breadcrumb {
  font-size: 13px;
  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;
  order: -1;
}
.catalog-products-section,
.catalog-promo-section {
  order: 1;
}
.pdf-viewer-wrapper {
  display: none;
  position: relative;
}
.pdf-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 16px;
  color: var(--c-text-secondary);
  font-size: 14px;
}
.pdf-loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--c-border, #ddd);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
}
@keyframes pdf-spin { to { transform: rotate(360deg); } }
.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}
.pdf-actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
}
/* モバイル: PDFアクション上部（大きなCTAとして表示） */
.pdf-actions-top {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  padding: var(--sp-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: var(--sp-md);
}
.pdf-actions-top a {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.pdf-actions-top .btn-pdf-primary {
  background: var(--c-accent);
  color: #fff;
  border: none;
}
.pdf-actions-top .btn-pdf-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
/* PC: 上部アクションを非表示 */
@media (min-width: 900px) {
  .pdf-actions-top { display: none; }
}
/* モバイル: 下部アクションを非表示（上部は残す）、PDFキャンバスも非表示 */
@media (max-width: 899px) {
  .pdf-actions:not(.pdf-actions-top) { display: none; }
  .pdf-nav { display: none !important; }
  .catalog-pdf-section .pdf-viewer-wrapper { display: none !important; }
}
#pdf-canvas {
  width: 100%;
  display: block;
  background: #fff;
}
.pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-xs) 0;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--c-text-secondary);
}
.pdf-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
.draft-restore-banner {
  background: #fef8e7;
  border: 1px solid #e6c84a;
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  font-size: 13px;
  color: var(--c-text);
}
.draft-restore-banner button {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  cursor: pointer;
}
.draft-restore-banner .btn-restore {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.pdf-nav-sep {
  color: var(--c-border);
  margin: 0 2px;
}
.pdf-zoom-reset {
  font-size: 11px !important;
  padding: 4px 8px !important;
}
.pdf-viewer-wrapper {
  overflow: auto;
  position: relative;
}
/* PDFクリックナビ — 左右オーバーレイ */
.pdf-click-prev, .pdf-click-next {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
  pointer-events: auto;
}
.pdf-click-prev { left: 0; justify-content: flex-start; padding-left: 8px; }
.pdf-click-next { right: 0; justify-content: flex-end; padding-right: 8px; }
.pdf-click-prev:hover, .pdf-click-next:hover { opacity: 1; }
.pdf-click-arrow {
  font-size: 48px;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  line-height: 1;
  user-select: none;
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-click-prev.disabled, .pdf-click-next.disabled {
  pointer-events: none;
  opacity: 0 !important;
}
/* 他カタログ商品バッジ */
.other-catalog {
  border-left: 3px solid var(--c-accent, #c49a6c);
}
.other-catalog-badge {
  font-size: 10px;
  color: var(--c-accent, #c49a6c);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px 0;
  text-transform: uppercase;
}
/* シーズンタブ */
.season-tabs {
  display: inline-flex;
  gap: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}
.season-tab {
  padding: 6px 12px;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  transition: all 0.15s;
  white-space: nowrap;
}
.season-tab:hover { background: var(--c-border-light); color: var(--c-text); }
.season-tab.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.brand-chips-sep {
  width: 1px;
  height: 24px;
  background: var(--c-border);
  margin: 0 4px;
  flex-shrink: 0;
  align-self: 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-sm) var(--sp-md);
  border-bottom: 1px solid var(--c-border);
  z-index: 10;
}
.products-header h2 {
  font-family: var(--font-display);
  font-size: 16px;
  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: 15px;
}
#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: 16px;
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}
.howto-step p {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}
.howto-step small {
  color: var(--c-text-muted);
}
.howto-notes {
  margin-top: var(--sp-xs);
}
.about-note {
  color: var(--c-text-muted);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

/* 取引条件 */
.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: 16px;
  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: 14px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}
.terms-card strong {
  color: var(--c-text);
}
.terms-note {
  font-size: 13px;
  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: 14px;
}
.shipping-table th {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-sm);
  font-weight: 600;
  text-align: left;
  font-size: 13px;
}
.shipping-table td {
  padding: var(--sp-sm);
  border-bottom: 1px solid var(--c-border-light);
  font-size: 14px;
}
.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: 14px;
  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: 15px;
  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: 15px;
  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: 14px;
  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: 15px;
  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: 12px;
  font-weight: 400;
  opacity: 0.7;
}

/* 新規お取引セクション */
.new-customer-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.new-customer-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-lg);
}
.btn-lg {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-lg:hover { opacity: 0.85; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 640px;
  margin: 0 auto var(--sp-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}
.form-group {
  margin-bottom: var(--sp-md);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: 6px;
}
.form-group .required {
  color: var(--c-error);
  font-size: 11px;
}
/* ダーク背景フォーム（お問い合わせ・新規登録） */
.contact-section .form-group label,
.apply-page .form-group label {
  color: rgba(255,255,255,0.85);
}
.contact-section .form-group input,
.contact-section .form-group select,
.contact-section .form-group textarea,
.apply-page .form-group input,
.apply-page .form-group select,
.apply-page .form-group textarea {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder,
.apply-page .form-group input::placeholder,
.apply-page .form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.contact-section .form-group input:focus,
.contact-section .form-group select:focus,
.contact-section .form-group textarea:focus,
.apply-page .form-group input:focus,
.apply-page .form-group select:focus,
.apply-page .form-group textarea:focus {
  border-color: var(--c-accent);
  background: rgba(255,255,255,0.12);
}
.contact-section .form-group select,
.apply-page .form-group select {
  appearance: auto;
}
.contact-section .form-group select option,
.apply-page .form-group select option {
  background: var(--c-primary);
  color: #fff;
}
/* ライト背景フォーム（共通ベース） */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-body);
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.form-group select {
  appearance: auto;
}
.form-actions {
  text-align: center;
  margin-top: var(--sp-lg);
}
.form-actions .btn-primary {
  background: #fff;
  color: var(--c-primary);
  min-width: 200px;
}
.form-actions .btn-primary:hover {
  opacity: 0.9;
}
.form-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-result {
  text-align: center;
  padding: var(--sp-md);
  margin-top: var(--sp-md);
  font-size: 14px;
}
.form-result-success {
  background: rgba(58,138,92,0.2);
  border: 1px solid rgba(58,138,92,0.4);
  color: #8fd4a8;
}
.form-result-error {
  background: rgba(196,77,77,0.2);
  border: 1px solid rgba(196,77,77,0.4);
  color: #f0a0a0;
}
.contact-tel {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
  margin-top: var(--sp-md);
}
.contact-tel a {
  color: #fff;
}

/* 新規取引先登録バナー */
.new-customer-banner {
  background: var(--c-accent);
  color: #fff;
}
.new-customer-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.new-customer-banner-link {
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.new-customer-banner-link:hover { opacity: 0.85; }
.new-customer-banner-badge {
  background: #fff;
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.new-customer-banner-arrow {
  font-size: 18px;
  flex-shrink: 0;
}

/* フッター */
.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: 13px;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-xs);
}
.footer-contact {
  font-size: 13px;
  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: 12px;
  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: 13px;
  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: 13px;
  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: 12px var(--sp-md);
  font-family: var(--font-display);
  font-size: 13px;
  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: 12px; opacity: 0.5; }
.category-header .count { font-size: 12px; 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);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.product-info { flex: 1; min-width: 0; }
.product-item-no {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--c-accent); letter-spacing: 0.06em;
}
.price-retail-inline {
  font-size: 12px; font-weight: 400; color: var(--c-text-muted); margin-left: 6px;
}
.product-name {
  font-size: 14px; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5;
}
.product-meta { font-size: 12px; color: var(--c-text-secondary); margin-top: 1px; letter-spacing: 0.02em; }
.product-detail { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; line-height: 1.4; }
.product-status { font-size: 12px; 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, .size-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); }
.cart-actions { flex-direction: row; align-items: stretch; }
.cart-actions .btn-secondary,
.cart-actions .btn-primary { flex: 1 1 0; min-width: 0; }

/* 注文確認 */
#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); }
.radio-group .radio-label,
.radio-group .radio-label span { color: var(--c-text); }
#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: 32px;
  }
  .header-logo-sub {
    font-size: 10px;
  }

  /* PC: ハンバーガー非表示、ナビ横並び */
  .hamburger { display: none; }
  .nav-overlay { display: none !important; }
  .header-nav {
    display: flex !important;
    position: static;
    width: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 2px;
    box-shadow: none;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
    border-bottom: none;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
  }
  .nav-link:hover {
    background: rgba(255,255,255,0.08);
  }

  /* PC: セパレーターは縦線に */
  .nav-separator {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: rgba(255,255,255,0.15);
  }

  /* PC: CTA — 新規登録ボタン */
  .nav-link.nav-cta-primary {
    margin-top: 0;
    padding: 8px 20px;
    font-size: 12px;
    border-radius: 6px;
    margin-left: 4px;
    background: linear-gradient(135deg, #b8956a 0%, #a07d55 100%);
    box-shadow: 0 2px 8px rgba(184,149,106,0.3);
  }
  .nav-link.nav-cta-primary:hover {
    box-shadow: 0 4px 14px rgba(184,149,106,0.45);
    transform: translateY(-1px);
  }

  /* PC: お問い合わせ */
  .nav-link.nav-cta-secondary {
    color: var(--c-accent-light);
    font-weight: 600;
    border: 1px solid rgba(184,149,106,0.3);
    border-radius: 6px;
    padding: 7px 14px;
  }
  .nav-link.nav-cta-secondary:hover {
    color: #fff;
    border-color: rgba(184,149,106,0.6);
    background: rgba(184,149,106,0.1);
  }

  /* PC: チャットリンク */
  .nav-link.nav-chat {
    color: rgba(255,255,255,0.75);
    gap: 4px;
  }
  .nav-link.nav-chat:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
  }
  .nav-chat-icon {
    width: 14px;
    height: 14px;
  }

  .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; }
  .form-row { grid-template-columns: 1fr 1fr; }

  /* 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-sm) 0; }
  .catalog-page-title { font-size: 22px; }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
  .catalog-layout.has-products {
    grid-template-columns: 1fr 340px;
  }
  .catalog-pdf-section {
    min-height: auto;
    order: -1;
    position: sticky;
    top: calc(var(--header-height) + 4px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 8px);
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .catalog-pdf-section .pdf-viewer-wrapper {
    flex: 1;
    max-height: calc(100vh - var(--header-height) - 100px);
    overflow: auto;
  }
  .pdf-viewer-wrapper {
    display: block;
    width: 100%;
    background: var(--c-border-light);
    border: 1px solid var(--c-border);
  }
  .pdf-actions { justify-content: flex-start; }
  .catalog-products-section {
    overflow-y: visible;
  }
  .catalog-main { padding-top: var(--sp-sm); padding-bottom: var(--sp-2xl); }

  /* 注文タブ */
  .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: 10px var(--sp-sm); gap: 10px; }
  .product-card-grouped { padding: 10px var(--sp-sm); }
  .product-thumb { width: 36px; height: 36px; }
  .product-thumb img { width: 36px; height: 36px; }
  .thumb-placeholder { width: 36px; height: 36px; }
  .thumb-placeholder::after { width: 16px; height: 16px; }
  .color-row { padding-left: 48px; gap: 8px; }
  .color-name, .size-name { min-width: 40px; font-size: 11px; }
  .color-price { min-width: 55px; font-size: 12px; }

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

  /* フォーム */
  .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; }
}

/* ============================================================
   カタログダウンロードページ
   ============================================================ */
.downloads-main {
  padding-top: var(--sp-lg);
  padding-bottom: var(--sp-2xl);
}
.downloads-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-xs);
}
.downloads-desc {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-lg);
}
.downloads-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
  gap: var(--sp-md);
}
.downloads-select-all {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.dl-season-group {
  margin-bottom: var(--sp-xl);
}
.dl-season-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-md);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-md);
}
.dl-card {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  align-items: flex-start;
}
.dl-checkbox-label {
  flex-shrink: 0;
  padding-top: 4px;
}
.dl-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
  cursor: pointer;
}
.dl-card-cover {
  flex-shrink: 0;
  width: 64px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-border-light);
}
.dl-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-text-secondary);
  font-family: var(--font-display);
}
.dl-card-info {
  flex: 1;
  min-width: 0;
}
.dl-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.dl-target {
  font-size: 11px;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-xs);
}
.dl-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   刺繍オーダーシート
   ============================================================ */
.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;
}

/* ===== WEBORDERプロモーションパネル（未認証時） ===== */
.catalog-promo-section {
  display: none;
}
@media (min-width: 960px) {
  .catalog-layout.has-promo {
    grid-template-columns: 1fr 320px;
  }
  .catalog-layout.has-promo .catalog-promo-section {
    order: 1;
    position: sticky;
    top: calc(var(--header-height) + 4px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 8px);
    overflow-y: auto;
  }
  .catalog-layout.has-promo .catalog-pdf-section {
    order: -1;
    position: sticky;
    top: calc(var(--header-height) + 4px);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 8px);
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .catalog-layout.has-promo .catalog-pdf-section .pdf-viewer-wrapper {
    flex: 1;
    max-height: calc(100vh - var(--header-height) - 100px);
    overflow: auto;
  }
  .catalog-promo-section {
    display: none; /* JSで制御 */
  }
}
.weborder-promo-inner {
  padding: 24px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.weborder-promo-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin: 0;
}
.weborder-promo-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-primary);
  margin: 0;
}
.weborder-promo-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0;
}
.weborder-promo-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-size: 15px;
}
.weborder-promo-screenshot-wrap {
  margin-top: 4px;
  border: 1px solid var(--c-border-light);
  background: var(--c-bg);
}
.weborder-promo-screenshot {
  width: 100%;
  display: block;
}
.weborder-promo-note {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0;
  text-align: center;
}

/* ===== 小画面向けレスポンシブ改善 ===== */
@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .catalog-card-body {
    padding: 10px 12px 14px;
  }
  .catalog-brand {
    font-size: 15px;
  }
  .catalog-target {
    font-size: 13px;
  }
  .season-tab {
    font-size: 12px;
    padding: 4px 8px;
  }
  .brand-chip {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* ===== キーボードフォーカスリング（アクセシビリティ） ===== */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
