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

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

body {
  font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
  font-weight: 300;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.header-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #222;
  text-decoration: none;
}

.header-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-icon {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 4px;
}

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke: #222;
  fill: none;
  stroke-width: 1.5;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: #222;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PC Header Nav ── */
.header-nav {
  display: none;
}

/* ── Search Bar ── */
.search-bar {
  display: none;
  padding: 0 16px 12px;
}

.search-bar.active { display: block; }

.search-input-wrap {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-input-wrap button {
  background: #222;
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

/* ── Banner Slider ── */
.banner-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
}

.banner-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  text-align: center;
}

.banner-slide h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.banner-slide p {
  font-size: 13px;
  color: #666;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.banner-dot.active { background: rgba(0,0,0,0.6); }

/* ── Section ── */
.section {
  padding: 24px 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.section-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-image {
  aspect-ratio: 3 / 4;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg.placeholder-icon {
  width: 56px;
  height: 56px;
  stroke: #aaa;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #222;
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.product-badge.sale { background: #e74c3c; }

.product-info { padding: 8px 0; }

.product-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 14px;
  font-weight: 500;
}

.product-price .original {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 300;
  font-size: 12px;
  margin-left: 4px;
}

.product-price .discount {
  color: #e74c3c;
  margin-right: 4px;
}

/* ── Side Menu ── */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.menu-overlay.active { display: block; }

.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 300;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.side-menu.active { left: 0; }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.menu-header h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #222;
}

.menu-links { list-style: none; }

.menu-links li { border-bottom: 1px solid #f5f5f5; }

.menu-links a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.menu-links a:hover { background: #f9f9f9; }

.menu-section-title {
  padding: 14px 16px 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Footer ── */
.footer {
  background: #f9f9f9;
  padding: 24px 16px;
  margin-top: 16px;
  border-top: 1px solid #eee;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

.footer-info {
  font-size: 11px;
  color: #999;
  line-height: 1.8;
}

.footer-info p { margin-bottom: 2px; }

.footer-copyright {
  margin-top: 16px;
  font-size: 11px;
  color: #bbb;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 400;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
}

.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #222; }
.breadcrumb span { margin: 0 6px; }

/* ── Sort Bar ── */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px;
  font-size: 13px;
  color: #999;
}

.sort-dropdown {
  position: relative;
}

.sort-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #222;
  cursor: pointer;
}

.sort-toggle svg {
  width: 8px;
  height: 8px;
  fill: #222;
  transition: transform 0.3s ease;
}

.sort-dropdown.open .sort-toggle svg {
  transform: rotate(180deg);
}

.sort-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  z-index: 50;
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sort-dropdown.open .sort-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  font-weight: 300;
  color: #666;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.3px;
}

.sort-option:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.sort-option:hover {
  color: #222;
  background: #fafafa;
}

.sort-option.active {
  color: #222;
  font-weight: 400;
}

.sort-option.active::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* ── Product Detail ── */
.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-image {
  aspect-ratio: 3 / 4;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image svg.placeholder-icon {
  width: 96px;
  height: 96px;
  stroke: #aaa;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-info {
  padding: 20px 16px;
}

.detail-name {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.5;
}

.detail-price {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.detail-price .original {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 300;
  font-size: 14px;
  margin-left: 8px;
}

.detail-price .discount {
  color: #e74c3c;
  margin-right: 6px;
}

.detail-option {
  margin-bottom: 16px;
}

.detail-option-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-colors {
  display: flex;
  gap: 8px;
}

.color-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.color-chip.active { border-color: #222; }

.detail-sizes {
  display: flex;
  gap: 8px;
}

.size-chip {
  min-width: 48px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.size-chip.active {
  border-color: #222;
  background: #222;
  color: #fff;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.qty-value {
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

.btn-add-cart {
  display: block;
  width: 100%;
  padding: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}

.btn-add-cart:hover { background: #444; }

.detail-description {
  padding: 20px 16px;
  border-top: 1px solid #eee;
}

.detail-description h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.detail-description p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* ── Cart Page ── */
.cart-empty {
  text-align: center;
  padding: 60px 16px;
  color: #999;
}

.cart-empty p { margin-bottom: 16px; }

.cart-empty a {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #222;
  color: #222;
  font-size: 13px;
  letter-spacing: 1px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
  width: 80px;
  height: 100px;
  background: #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image svg.placeholder-icon {
  width: 32px;
  height: 32px;
  stroke: #aaa;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 11px;
  color: #999;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.cart-item-remove:hover { color: #e74c3c; }

.cart-summary {
  padding: 20px 16px;
  border-top: 2px solid #222;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.cart-summary-row.total {
  font-weight: 500;
  font-size: 16px;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 4px;
}

.btn-checkout {
  display: block;
  width: calc(100% - 32px);
  margin: 20px 16px;
  padding: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-checkout:hover { background: #444; }

/* ── Form (Login / Register) ── */
.form-page {
  padding: 32px 16px;
}

.form-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #222;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-submit:hover { background: #444; }

.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #999;
}

.form-footer a {
  color: #222;
  text-decoration: underline;
}

/* ── Guide Page ── */
.guide-page { padding: 24px 16px; }

.guide-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.guide-section {
  margin-bottom: 28px;
}

.guide-section h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.guide-section p,
.guide-section li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.guide-section ul {
  padding-left: 20px;
}

.guide-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.guide-section th,
.guide-section td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
}

.guide-section th {
  background: #f9f9f9;
  font-weight: 500;
}

/* ── Related Products ── */
.related-section {
  padding: 24px 16px;
  border-top: 1px solid #eee;
}

.related-section .section-title {
  margin-bottom: 16px;
}

.related-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.related-scroll::-webkit-scrollbar { display: none; }

.related-scroll .product-card {
  min-width: 140px;
  max-width: 140px;
}

/* ══════════════════════════════════
   Tablet (768px+)
   ══════════════════════════════════ */
@media (min-width: 768px) {

  /* Header */
  .header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
  }

  .header-logo { font-size: 26px; }

  #menuBtn { display: none; }

  .header-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid #f0f0f0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .header-nav a {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    letter-spacing: 1px;
    transition: color 0.2s;
    position: relative;
  }

  .header-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #222;
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }

  .header-nav a:hover {
    color: #222;
  }

  .header-nav a:hover::after {
    transform: scaleX(1);
  }

  .search-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 12px;
  }

  /* Banner */
  .banner-slider { aspect-ratio: 21 / 8; }

  .banner-slide h2 {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .banner-slide p { font-size: 15px; }

  /* Sections */
  .section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  .breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
  }

  /* Product Grid: 3 columns */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-name { font-size: 14px; }
  .product-price { font-size: 15px; }

  /* Product Detail: side-by-side */
  .detail-wrap {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
  }

  .detail-image {
    flex: 1;
    min-height: 500px;
  }

  .detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .detail-info { padding: 32px; }
  .detail-description { padding: 0 32px 32px; }

  .detail-name { font-size: 18px; }
  .detail-price { font-size: 22px; }

  .btn-add-cart { max-width: 360px; }

  /* Related */
  .related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  .related-scroll .product-card {
    min-width: 180px;
    max-width: 180px;
  }

  /* Cart */
  .cart-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px;
  }

  .cart-summary {
    max-width: 400px;
    margin-left: auto;
    padding: 24px;
  }

  .btn-checkout {
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
  }

  /* Form */
  .form-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 24px;
  }

  /* Guide */
  .guide-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  /* Footer */
  .footer { padding: 32px 24px; }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-links {
    gap: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .footer-links a { font-size: 13px; }

  .footer-copyright {
    text-align: right;
  }
}

/* ══════════════════════════════════
   Desktop (1024px+)
   ══════════════════════════════════ */
@media (min-width: 1024px) {

  .header-top { padding: 20px 24px; }

  .header-logo {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .header-icons { gap: 20px; }

  .header-icon svg { width: 24px; height: 24px; }

  .header-nav a {
    padding: 14px 24px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  /* Product Grid: 4 columns */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .banner-slide h2 {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .detail-image svg.placeholder-icon {
    width: 120px;
    height: 120px;
  }

  .related-scroll .product-card {
    min-width: 220px;
    max-width: 220px;
  }
}
