/* =====================================================
   SELECT CLOSET - Global Stylesheet
   ===================================================== */

:root {
  --bg:      #FFFFFF;
  --surface: #F8F6F2;
  --ink:     #0F0E0C;
  --muted:   #8A8678;
  --border:  #E8E4DC;
  --accent:  #0F0E0C;
  --cta:     #FF0211;
  --gold:    #B8860B;
  --mercari: #FF0211;
  --rakuma:  #E8380D;
  --yahoo:   #FF0033;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
.font-display {
  font-family: 'Cormorant Garamond', serif;
}
.font-mono {
  font-family: 'DM Mono', monospace;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-mercari {
  background: var(--cta);
  color: #fff;
  font-weight: 700;
}
.btn-mercari:hover { background: #cc0010; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,2,17,.35); }

/* ── Navigation ── */
#app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cta); }
.nav-links a.active { color: var(--cta); border-bottom: 1px solid var(--cta); padding-bottom: 2px; }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s;
}
.nav-toggle:hover { background: #333; }
.nav-toggle.admin-mode { background: #1e3a5f; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Page wrapper ── */
#page-content { padding-top: 60px; min-height: 100vh; }

/* ── Floating CTA ── */
#floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
}
#floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,2,17,.4);
  transition: all .25s;
}
#floating-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,2,17,.5);
}

/* ── Hero Section ── */
.hero {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-images {
  position: relative;
  height: 560px;
}
.hero-img-main {
  position: absolute;
  right: 0; top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.hero-img-sub {
  position: absolute;
  left: 0; bottom: 40px;
  width: 45%;
  height: 55%;
  object-fit: cover;
  border-radius: 2px;
  border: 4px solid #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.hero-badge-img {
  position: absolute;
  top: 20px; left: 10px;
  background: var(--cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: .08em;
}

/* ── Ticker ── */
.ticker {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: marquee 20s linear infinite;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ticker-inner span { padding: 0 32px; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  cursor: pointer;
  transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-4px); }

.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  margin-bottom: 12px;
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }

.product-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,14,12,.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .3s ease;
  padding: 16px;
}
.product-card:hover .overlay { opacity: 1; }
.overlay a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 2px;
  transition: all .2s;
}
.overlay a.buy-mercari  { background: var(--mercari); color: #fff; }
.overlay a.buy-rakuma   { background: var(--rakuma);  color: #fff; }
.overlay a.buy-yahoo    { background: var(--yahoo);   color: #fff; }
.overlay a:hover { opacity: .85; transform: scale(1.03); }

.condition-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  letter-spacing: .06em;
}
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sold-badge {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  padding: 8px 20px;
  transform: rotate(-15deg);
}

.product-card .brand {
  display: block;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.product-card .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--cta);
  font-family: 'DM Mono', monospace;
}
.platform-dots { display: flex; gap: 4px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-m  { background: var(--mercari); }
.dot-r  { background: var(--rakuma); }
.dot-y  { background: var(--yahoo); }
.dot-off{ background: #ddd; }

/* ── Popular Ranking ── */
.ranking-list { display: flex; flex-direction: column; gap: 24px; }
.ranking-item {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow .3s;
}
.ranking-item:hover { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  text-align: center;
}
.ranking-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ranking-info .brand { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ranking-info .name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; margin: 4px 0 8px; }
.ranking-info .stats { font-size: 12px; color: var(--muted); display: flex; gap: 16px; }

/* ── Lookbook Grid ── */
.lookbook-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
}
.lookbook-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.lookbook-item.large { grid-row: span 2; }
.lookbook-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lookbook-item:hover img { transform: scale(1.04); }
.lookbook-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 32px 20px 20px;
  font-size: 14px;
}
.lookbook-caption strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; margin-bottom: 4px; }

/* ── Brand Quote ── */
.brand-quote {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.seller-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 16px; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ── Blog Cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.blog-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .3s;
  cursor: pointer;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--muted);
  padding: 3px 8px;
  margin-bottom: 10px;
  font-family: 'DM Mono', monospace;
}
.blog-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.blog-card p  { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.blog-read-more { font-size: 12px; color: var(--ink); letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ── Catalog Sidebar ── */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 40px; }
.catalog-sidebar { position: sticky; top: 80px; align-self: start; }
.filter-section { margin-bottom: 28px; }
.filter-title { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: 'DM Mono', monospace; }
.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-btn:hover { color: var(--cta); }
.filter-btn.active { color: var(--cta); font-weight: 500; border-bottom: 1px solid var(--cta); }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sort-bar select {
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.item-count { font-size: 13px; color: var(--muted); }

/* ── Story Page ── */
.story-hero {
  height: 60vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.story-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: .1em;
}
.mission-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink);
}
.commitment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 48px; }
.commitment-item {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
}
.commitment-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--border);
  display: block;
  margin-bottom: 12px;
}
.commitment-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.commitment-item p  { font-size: 13px; color: var(--muted); line-height: 1.7; }

.achievement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; text-align: center; }
.achievement-item .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.achievement-item .label { font-size: 13px; color: var(--muted); }

/* ── Blog Post ── */
.blog-post-layout { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.blog-post-header { margin-bottom: 40px; }
.blog-post-header .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cta); font-family: 'DM Mono', monospace; }
.blog-post-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 500; line-height: 1.3; margin: 12px 0 16px; }
.blog-post-header .meta { font-size: 12px; color: var(--muted); }
.blog-post-header img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: 24px; }

.blog-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.blog-content h3 { font-size: 17px; font-weight: 500; margin: 28px 0 12px; }
.blog-content p  { font-size: 15px; line-height: 1.9; color: var(--ink); margin-bottom: 20px; }
.blog-content ul { margin: 0 0 20px 20px; }
.blog-content li { font-size: 15px; line-height: 1.9; margin-bottom: 8px; }

/* Product CTA Card in Blog */
.product-cta-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  margin: 24px 0;
  background: var(--surface);
}
.product-cta-card img { width: 100px; aspect-ratio: 3/4; object-fit: cover; }
.product-cta-card .info .brand { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-cta-card .info h4 { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; margin: 4px 0; }
.product-cta-card .info .price { font-size: 15px; font-weight: 700; color: var(--cta); font-family: 'DM Mono', monospace; }

/* ── Mercari Redirect ── */
.mercari-redirect {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.mercari-redirect .logo { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; letter-spacing: .15em; margin-bottom: 16px; }
.mercari-redirect .counter { font-size: 48px; font-weight: 700; color: var(--cta); font-family: 'DM Mono', monospace; margin: 24px 0; }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 60px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; letter-spacing: .15em; display: block; margin-bottom: 12px; }
.footer-brand p  { font-size: 13px; line-height: 1.8; }
.footer-col h4   { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; font-family: 'DM Mono', monospace; }
.footer-col ul   { list-style: none; }
.footer-col li   { margin-bottom: 10px; }
.footer-col a    { font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 12px; }
.sns-links { display: flex; gap: 16px; }
.sns-links a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}
.sns-links a:hover { border-color: #fff; color: #fff; }

/* ── Admin UI ── */
.admin-wrapper {
  min-height: calc(100vh - 60px);
  background: #f4f5f7;
  padding: 24px;
}
.admin-header {
  background: #1e3a5f;
  color: #fff;
  padding: 20px 28px;
  margin-bottom: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 { font-size: 20px; font-weight: 600; }
.admin-tabs {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-tab {
  flex: 1;
  min-width: 100px;
  padding: 14px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.admin-tab:hover { background: #f9fafb; color: #374151; }
.admin-tab.active { color: #1e3a5f; border-bottom-color: #1e3a5f; background: #f0f4f8; }

.admin-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 24px;
}

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid #e5e7eb;
}
.kpi-card.green  { border-left-color: #16a34a; }
.kpi-card.yellow { border-left-color: #d97706; }
.kpi-card.red    { border-left-color: #dc2626; }
.kpi-card.blue   { border-left-color: #2563eb; }
.kpi-label { font-size: 12px; color: #6b7280; letter-spacing: .05em; margin-bottom: 8px; font-weight: 500; }
.kpi-value { font-size: 32px; font-weight: 700; color: #111827; font-family: 'DM Mono', monospace; }
.kpi-sub   { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.data-table tr:hover td { background: #fafafa; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.badge-active   { background: #dcfce7; color: #16a34a; }
.badge-sold     { background: #fee2e2; color: #dc2626; }
.badge-draft    { background: #fef9c3; color: #ca8a04; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-label { font-size: 12px; font-weight: 600; color: #374151; letter-spacing: .05em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: border-color .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #1e3a5f;
}
.form-textarea { resize: vertical; min-height: 100px; }

.profit-preview {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* Platform toggle */
.platform-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: .3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: #1e3a5f; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
}
.tag-item button { background: none; border: none; cursor: pointer; color: #3730a3; font-size: 14px; line-height: 1; padding: 0; }

/* Chart bars */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 12px; width: 140px; text-align: right; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: #f3f4f6; border-radius: 4px; height: 24px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 10px; font-size: 11px; font-weight: 600; color: #fff; transition: width .8s ease; }
.bar-val   { font-size: 12px; font-weight: 600; color: #374151; width: 70px; font-family: 'DM Mono', monospace; }

/* Dead stock warning */
.dead-stock-list { display: flex; flex-direction: column; gap: 8px; }
.dead-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 13px;
}
.dead-stock-item .days { color: #d97706; font-weight: 700; font-family: 'DM Mono', monospace; }

/* AI button */
.btn-ai {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.btn-ai:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
}
.search-input:focus { outline: none; border-color: #1e3a5f; }
.filter-select {
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

/* Checkbox */
.cb-row td:first-child { width: 40px; }
input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #1e3a5f; }

/* Inline action buttons */
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all .2s;
}
.btn-edit { background: #eff6ff; color: #1d4ed8; }
.btn-edit:hover { background: #dbeafe; }
.btn-delete { background: #fef2f2; color: #dc2626; }
.btn-delete:hover { background: #fee2e2; }

/* Loader */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* SNS Section */
.sns-section {
  background: var(--ink);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.sns-section h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; margin-bottom: 8px; }
.sns-section p  { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.sns-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.btn-tiktok    { background: #010101; color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .catalog-layout { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-toggle { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; min-height: auto; }
  .hero-images { height: 360px; }

  .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .lookbook-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lookbook-item.large { grid-row: span 1; }

  .ranking-item { grid-template-columns: 50px 80px 1fr; }
  .ranking-item .btn-mercari { display: none; }
  .rank-num { font-size: 36px; }

  .blog-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-wrapper { padding: 12px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { min-width: 80px; font-size: 12px; padding: 10px 10px; }

  .product-cta-card { grid-template-columns: 80px 1fr; }
  .product-cta-card .btn-mercari { display: none; }

  #floating-cta { bottom: 16px; right: 16px; }
  #floating-cta a { padding: 12px 16px; font-size: 12px; }
}
