@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #fff;
  --paper: #fff;
  --paper-2: #f5f5f3;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e0e0dc;
  --accent: #0a0a0a;
  --max: 1240px;
  --s1: 0.5rem;
  --s2: 0.9rem;
  --s3: 1.3rem;
  --s4: 2rem;
  --s5: 3.6rem;
  --s6: 6rem;
  --radius: 2px;
  --ease: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Space Grotesk", "Avenir Next", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 0.8rem;
  top: 0.8rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(248, 248, 246, 0.8);
  transition: background var(--ease), border-color var(--ease);
}

.site-header.is-scrolled {
  background: rgba(248, 248, 246, 0.96);
  border-color: var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s3) var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 34px;
  }
}

.nav-toggle {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 3px;
  width: 40px;
  height: 40px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--ease), color var(--ease);
}

.nav-toggle:hover {
  border-color: var(--ink);
}

.nav-links {
  position: absolute;
  right: var(--s3);
  top: 68px;
  min-width: 220px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: var(--s2);
  display: none;
  gap: 0.4rem;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.12);
}

.nav-links.is-open {
  display: grid;
}

.nav-links a {
  padding: 0.4rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.cart-pill {
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color var(--ease), color var(--ease);
  cursor: pointer;
}

.cart-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.page {
  min-height: 100vh;
}

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

.hero {
  padding: clamp(4.8rem, 9vw, 8rem) 0 clamp(2.2rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: var(--s4);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 9.5vw, 7rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 44ch;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.flow {
  display: grid;
  gap: var(--s3);
}

.collection-intro {
  max-width: 76ch;
}

.collection-manifesto {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  max-width: 62ch;
  color: var(--ink);
}

.collection-actions {
  margin-top: 0.3rem;
}

.collection-index {
  display: grid;
  gap: var(--s3);
}

.index-item {
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.index-item p {
  max-width: 58ch;
}

.card-link {
  display: block;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(10, 10, 10, 0.16);
  aspect-ratio: 5 / 6;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 16, 16, 0.3), transparent 60%);
}

.hero-art img,
.media img,
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.hero-note {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.btn,
.btn-ghost,
.btn-inline {
  border-radius: 3px;
  border: 1.5px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.88rem 1.5rem;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
  font-family: inherit;
  cursor: pointer;
}

.btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #f8f8f6;
}

.btn-ghost,
.btn-inline {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  opacity: 0.8;
}

.btn-ghost:hover,
.btn-inline:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.section {
  padding: clamp(3rem, 7vw, var(--s6)) 0;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.split {
  display: grid;
  gap: var(--s4);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--s4);
}

.manifesto-strip h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.manifesto-strip p:last-child {
  max-width: 62ch;
}

.category-panel {
  min-height: 220px;
  justify-content: end;
}

.social-panel {
  background:
    linear-gradient(145deg, rgba(16, 16, 16, 0.02), rgba(30, 74, 87, 0.08)),
    var(--paper);
}

.grid-3,
.grid-2,
.product-grid,
.lookbook-grid,
.archive-grid,
.relate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: opacity var(--ease);
}

.card:hover {
  opacity: 0.85;
}

.media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.lookbook-grid .media,
.archive-grid .media {
  aspect-ratio: 16 / 10;
}

.card:hover .media img {
  transform: scale(1.06);
}

.media img,
.product-hero img {
  transition: transform var(--ease);
}

.card-body {
  padding: var(--s3);
  display: grid;
  gap: 0.45rem;
}

.meta {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  color: var(--ink);
  font-size: 0.86rem;
}

.stock-low {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f2f2f;
}

.product-layout {
  display: grid;
  gap: var(--s4);
}

.product-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.product-subtitle {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.product-narrative {
  background: linear-gradient(145deg, rgba(16, 16, 16, 0.02), rgba(16, 16, 16, 0.04)), var(--paper);
}

.product-buybox {
  padding: var(--s3) 0;
}

.product-hero {
  overflow: hidden;
  background: var(--paper-2);
}

.product-hero img {
  aspect-ratio: 4 / 5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.size-row {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
}

.size-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.size-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.notice,
.checkout-status {
  font-size: 0.78rem;
}

/* ── Shop card: サイズ選択 + カート追加エリア ─────────────────────────────── */
.card-buy {
  padding: 0 var(--s2, 1rem) var(--s2, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-buy .size-row {
  gap: 0.3rem;
}

.card-buy .size-btn {
  min-width: 36px;
  height: 36px;
  font-size: 0.75rem;
}

.card-quick-add {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: var(--s5);
  border-top: none;
  padding: var(--s5) 0 var(--s4);
  background: var(--ink);
  color: rgba(248, 248, 246, 0.55);
}

.site-footer a {
  color: rgba(248, 248, 246, 0.75);
  transition: color var(--ease);
}

.site-footer a:hover {
  color: #f8f8f6;
}

.footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s3);
  display: grid;
  gap: var(--s2);
  font-size: 0.78rem;
}

@media (min-width: 780px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--s1);
    border: 0;
    background: transparent;
    min-width: auto;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1.04fr 1fr;
    align-items: end;
  }

  .grid-2,
  .lookbook-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .product-grid,
  .relate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 980px) {
  .split {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .collection-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s4);
  }

  .product-layout {
    grid-template-columns: 1fr 0.95fr;
    align-items: start;
  }
}

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

/* ── Locale Switcher ─────────────────────────────────────────── */
.locale-switcher {
  position: relative;
}

.locale-toggle {
  display: flex;
  align-items: center;
  gap: 0.2em;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0.38rem 0.85rem;
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.locale-toggle:hover,
.locale-toggle[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.locale-toggle-sep {
  opacity: 0.4;
}

.locale-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 200;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.locale-panel[hidden] {
  display: none;
}

.locale-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.locale-group-label {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.locale-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.locale-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  letter-spacing: 0.04em;
}

.locale-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.locale-btn.is-active,
.locale-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── RTL support ─────────────────────────────────────────────── */
[dir="rtl"] .nav-wrap {
  direction: rtl;
}

[dir="rtl"] .flow,
[dir="rtl"] .card-body,
[dir="rtl"] .panel {
  text-align: start;
}

[dir="rtl"] .hero-grid {
  direction: rtl;
}

[dir="rtl"] .footer-wrap {
  direction: rtl;
}

[dir="rtl"] .size-row,
[dir="rtl"] .action-row,
[dir="rtl"] .tag-row,
[dir="rtl"] .locale-btns {
  direction: rtl;
}

/* Arabic / RTL font stack */
:lang(ar) {
  font-family: "Segoe UI", "Noto Sans Arabic", "Amiri", "Cairo", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

/* CJK font stack */
:lang(zh),
:lang(ja) {
  font-family: "Hiragino Sans", "Noto Sans CJK SC", "PingFang SC", "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: 0.03em;
}

/* Size chart table */
.size-chart {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s3) 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.size-chart thead {
  background-color: var(--paper-2);
  border-bottom: 2px solid var(--line);
}

.size-chart th {
  padding: var(--s2) var(--s3);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.size-chart tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color var(--ease);
}

.size-chart tbody tr:hover {
  background-color: var(--paper-2);
}

.size-chart td {
  padding: var(--s2) var(--s3);
  color: var(--ink);
}

/* RTL support for size chart */
[dir="rtl"] .size-chart th,
[dir="rtl"] .size-chart td {
  text-align: right;
}

/* ────────────────────────────────────────────────────────────── */
/* LUXURY SHOP LAYOUT (Sidebar + Main Grid) */
/* ────────────────────────────────────────────────────────────── */

.luxury-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}

@media (max-width: 768px) {
  .luxury-shop-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar: Filters ────────────────────────────────────────── */
.shop-sidebar {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  height: fit-content;
  position: sticky;
  top: 120px;
}

@media (max-width: 768px) {
  .shop-sidebar {
    position: static;
    top: auto;
  }
}

.filter-group {
  margin-bottom: var(--s3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: var(--s3);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0.3rem 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.filter-toggle:hover {
  color: var(--muted);
}

.filter-icon {
  font-size: 1.2rem;
  transition: transform var(--ease);
}

.filter-toggle[aria-expanded="false"] .filter-icon {
  transform: rotate(90deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--ink);
}

.filter-checkbox span {
  color: var(--muted);
}

.filter-checkbox input:checked ~ span {
  color: var(--ink);
  font-weight: 500;
}

.filter-reset {
  width: 100%;
  margin-top: var(--s2);
  padding: 0.7rem 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}

.filter-reset:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── Main Content: Search + Grid ─────────────────────────────── */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.shop-controls {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--ease);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--ink);
}

.sort-select {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--ease);
}

.sort-select:hover,
.sort-select:focus {
  outline: none;
  border-color: var(--ink);
}

.luxury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s4);
  padding: 0;
}

@media (max-width: 1024px) {
  .luxury-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--s3);
  }
}

@media (max-width: 768px) {
  .luxury-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* ── Luxury Card (Shop + Collection) ──────────────────────────── */
.luxury-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: opacity var(--ease);
}

.luxury-card:hover {
  opacity: 0.85;
}

.luxury-card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-2);
  position: relative;
}

.luxury-card-media::after {
  content: none;
}

.luxury-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.luxury-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.luxury-card:hover .luxury-card-media img {
  transform: scale(1.08);
}

.luxury-card:hover .luxury-card-media::after {
  opacity: 1;
}

.luxury-card-info {
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.luxury-card .meta {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.luxury-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.luxury-card .price {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 500;
}

/* ── Collection: Index Cards (Large Layout) ──────────────────── */
.collection-luxury-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}

.index-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: center;
}

.index-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.index-card:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .index-card,
  .index-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--s3);
  }

  .index-card:nth-child(even) > * {
    direction: ltr;
  }
}

.index-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-2);
}

.index-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.index-content .meta {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.index-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 55ch;
}

.link-subtle {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
  width: fit-content;
}

.link-subtle:hover {
  border-bottom-color: var(--ink);
}

/* ── Luxury Collection Grid ──────────────────────────────────── */
.luxury-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s4);
}

@media (max-width: 1024px) {
  .luxury-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
  }
}

@media (max-width: 768px) {
  .luxury-collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .luxury-collection-grid {
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────────────────────────────────────── */
/* CV OPTIMIZATION: Trust Signals, Newsletter, Enhanced CTA */
/* ────────────────────────────────────────────────────────────── */

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  font-weight: 700;
  padding: 0.95rem 1.8rem;
  font-size: 0.78rem;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* Trust Signals Grid */
.trust-section {
  background: var(--paper-2);
  padding: clamp(2.5rem, 6vw, var(--s5)) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
}

.trust-item {
  text-align: center;
  padding: var(--s3);
}

.trust-icon {
  font-size: 2.4rem;
  margin-bottom: var(--s2);
  display: block;
}

.trust-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
  padding: clamp(3rem, 7vw, var(--s6)) 0;
}

.newsletter-box {
  background: var(--ink);
  color: white;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: center;
}

@media (max-width: 768px) {
  .newsletter-box {
    grid-template-columns: 1fr;
  }
}

.newsletter-content h2 {
  color: white;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: var(--s2);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-form .btn-primary {
  background: white;
  color: var(--ink);
  border-color: white;
  white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
  background: #f5f5f5;
}

/* Products Section */
.products-section {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ink);
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  z-index: 5;
}

.product-badge.limited {
  background: #d32f2f;
}

.product-badge.new {
  background: #1976d2;
}

/* Quick View Overlay */
.card {
  position: relative;
}

.card-quick-buy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: var(--s2);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease);
  border-radius: 0 0 6px 6px;
}

.card:hover .card-quick-buy {
  opacity: 1;
  transform: translateY(0);
}

.card-quick-buy button {
  flex: 1;
  padding: 0.6rem 0.8rem;
  background: white;
  color: black;
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--ease);
}

.card-quick-buy button:hover {
  background: #f0f0f0;
}

/* Stock info */
.stock-info {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stock-info.stock-low {
  color: #b91c1c;
  font-weight: 700;
}

/* Urgency indicators */
.stock-low {
  color: #b91c1c;
  font-weight: 700;
}

/* Price Highlight */
.was-price {
  text-decoration: line-through;
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.sale-badge {
  background: #d32f2f;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────── */
/* CART DRAWER */
/* ────────────────────────────────────────────────────────────── */

#cart-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

#cart-modal[hidden] {
  display: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(10, 10, 10, 0.15);
}

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.3rem;
  line-height: 1;
  transition: color var(--ease);
}

.cart-close-btn:hover {
  color: var(--ink);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.cart-empty {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: var(--s4) 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.cart-item-right {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.cart-remove-btn {
  background: none;
  border: none;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0;
  margin-top: 0.3rem;
  transition: color var(--ease);
}

.cart-remove-btn:hover {
  color: #b91c1c;
}

.cart-drawer-foot {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s2);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-secure-note {
  font-size: 0.68rem;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────────────────────── */
/* REVIEWS */
/* ────────────────────────────────────────────────────────────── */

.reviews-section {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}

.reviews-score {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.reviews-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
  color: var(--ink);
}

.reviews-count {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.review-list {
  display: grid;
  gap: var(--s3);
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--s3) var(--s3);
  display: grid;
  gap: 0.6rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.review-author {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-date {
  font-size: 0.7rem;
  color: var(--muted);
}

.review-stars {
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 1px;
}

.review-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.review-verified {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2d6a4f;
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────── */
/* MONOGRAM DECORATION (TCDA) */
/* ────────────────────────────────────────────────────────────── */

.monogram-decoration {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  font-size: 18vw;
  font-weight: 900;
  letter-spacing: 0.15em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.page-header-monogram {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--s4);
}

.page-header-monogram::before {
  content: 'T';
  position: absolute;
  font-size: 120px;
  font-weight: 900;
  opacity: 0.05;
  left: -20px;
}

.page-header-monogram::after {
  content: 'TCDA';
  position: absolute;
  font-size: 48px;
  font-weight: 700;
  opacity: 0.08;
  letter-spacing: 0.2em;
  right: -40px;
  transform: rotate(-15deg);
}

.footer-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: var(--s4) 0;
  opacity: 0.1;
  font-size: 3rem;
  font-weight: 900;
}

.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 120px;
  height: 120px;
  opacity: 0.02;
  font-size: 100px;
  font-weight: 900;
  pointer-events: none;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: 'TCDA';
  position: absolute;
  bottom: 10%;
  right: 5%;
  font-size: 12vw;
  font-weight: 900;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 0;
  color: #f8f8f6;
}

/* ────────────────────────────────────────────────────────────── */
/* VISUAL DEPTH REFINEMENTS */
/* ────────────────────────────────────────────────────────────── */

/* Manifesto strip → dark inverted */
.manifesto-strip {
  background: var(--ink);
  border-color: transparent;
  padding: clamp(3rem, 6vw, 5rem) clamp(var(--s4), 6vw, var(--s5));
}

.manifesto-strip .eyebrow {
  color: rgba(248, 248, 246, 0.4);
}

.manifesto-strip h2 {
  color: #f8f8f6;
}

.manifesto-strip p:last-child {
  color: rgba(248, 248, 246, 0.6);
}

/* Social panel → dark inverted */
.social-panel {
  background: var(--ink);
  border-color: transparent;
}

.social-panel .eyebrow,
.social-panel p {
  color: rgba(248, 248, 246, 0.5);
}

.social-panel h2 {
  color: #f8f8f6;
}

.social-panel .btn {
  background: transparent;
  border-color: rgba(248, 248, 246, 0.35);
  color: #f8f8f6;
}

.social-panel .btn:hover {
  background: #f8f8f6;
  border-color: #f8f8f6;
  color: var(--ink);
  box-shadow: none;
}

.social-panel .btn-ghost {
  background: transparent;
  border-color: rgba(248, 248, 246, 0.35);
  color: rgba(248, 248, 246, 0.75);
}

.social-panel .btn-ghost:hover {
  background: rgba(248, 248, 246, 0.08);
  border-color: rgba(248, 248, 246, 0.6);
  color: #f8f8f6;
}

/* Category panel → large decorative numbers */
.category-panel {
  min-height: 300px;
}

.category-panel .meta {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  color: var(--line);
  line-height: 1;
  font-weight: 700;
}

/* Badge colors → monochrome */
.product-badge.new {
  background: var(--ink);
}

.product-badge.limited {
  background: var(--muted);
}

/* ── Ticker / Marquee ──────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  background: var(--paper-2);
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  width: max-content;
}

.ticker-track span {
  flex-shrink: 0;
}

.ticker-sep {
  opacity: 0.3;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ── Hero: more generous vertical space ──────────────────────── */
.hero {
  padding: clamp(5.5rem, 11vw, 10rem) 0 clamp(3rem, 8vw, 7rem);
}

/* ── Section head: stronger visual anchor ────────────────────── */
.section-head {
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s5);
}

/* ══════════════════════════════════════════════════════════════
   多言語 · 多通貨 · 全端末最適化
   ══════════════════════════════════════════════════════════════ */

/* ── カートドロワー: モバイルは下から全画面スライド ───────────────────── */
@media (max-width: 540px) {
  #cart-modal {
    align-items: flex-end;   /* 下寄せ */
    justify-content: center;
  }

  .cart-drawer {
    max-width: 100%;
    width: 100%;
    height: 92dvh;           /* 動的ビューポート高さ（ノッチ対応） */
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(10, 10, 10, 0.18);
  }

  .cart-drawer-foot {
    /* Safe area insets（iOS ホームバー対応） */
    padding-bottom: max(var(--s3), env(safe-area-inset-bottom, 16px));
  }
}

/* ── ショップサイドバー: モバイルでは折りたたみ ─────────────────────── */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}

.mobile-filter-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 768px) {
  .mobile-filter-toggle {
    display: flex;
  }

  .shop-sidebar {
    display: none;       /* デフォルトは非表示 */
    margin-bottom: var(--s3);
    position: static;
    top: auto;
    max-height: 80dvh;
    overflow-y: auto;
  }

  .shop-sidebar.is-open {
    display: block;      /* トグル後に表示 */
  }
}

/* ── タッチフレンドリー: 最小タッチターゲット 44px ─────────────────── */
.size-btn {
  min-width:  44px;
  min-height: 44px;
  touch-action: manipulation;
}

.filter-toggle,
.filter-reset,
.cart-close-btn,
.cart-remove-btn {
  min-height: 44px;
  touch-action: manipulation;
}

/* ── カード購入ゾーン: レスポンシブ ──────────────────────────────────── */
@media (max-width: 480px) {
  .card-buy {
    padding: 0 var(--s2) var(--s2);
  }

  .card-buy .size-btn {
    min-width: 40px;
    min-height: 40px;
    font-size: 0.7rem;
  }

  .card-quick-add {
    font-size: 0.75rem;
    padding: 0.7rem 0.8rem;
  }
}

/* ── RTL（アラビア語）対応: カート内 ───────────────────────────────── */
[dir="rtl"] .cart-drawer {
  box-shadow: 12px 0 40px rgba(10, 10, 10, 0.15);
}

[dir="rtl"] #cart-modal {
  justify-content: flex-start;
}

[dir="rtl"] .cart-item-right {
  text-align: left;
}

[dir="rtl"] .cart-total-row {
  flex-direction: row-reverse;
}

/* ── 商品グリッド: 480px 以下は1列固定 ─────────────────────────────── */
@media (max-width: 480px) {
  .product-grid.luxury-grid {
    grid-template-columns: 1fr;
  }
}

/* ── ショップコントロール: スマホで縦並び ─────────────────────────────── */
@media (max-width: 480px) {
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 0;
  }

  .sort-select {
    width: 100%;
  }
}

/* ── ロケールパネル: スマホで全幅 ────────────────────────────────────── */
@media (max-width: 480px) {
  .locale-panel {
    right: 0;
    left: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* ── 価格表示: 通貨切替後のちらつき抑制 ─────────────────────────────── */
[data-price-display] {
  transition: opacity 150ms ease;
}

[data-price-display].price-updating {
  opacity: 0.4;
}

/* ── サイズ提案システム ─────────────────────────────────────────────── */
.size-rec-result {
  padding: var(--s3) 0;
  display: grid;
  gap: 4px;
}

.size-rec-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.size-rec-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.size-rec-note {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 2px;
}

