/* ============================================
   ARCO D'ORO - Pre-order Landing Page Styles
   Clean, minimal, wellness aesthetic
   ============================================ */

/* CSS Variables */
:root {
  --color-cream: #fdfbf7;
  --color-cream-dark: #f8f5ef;
  --color-warm-gray: #6b6560;
  --color-text: #3a3632;
  --color-text-light: #7a756f;
  --color-ruby: #b85a6d;
  --color-ruby-dark: #9a4a5a;
  --color-gold: #c9a962;
  --color-gold-light: #e8d5a3;
  --color-black: #2a2725;
  --color-offwhite: #f5f2eb;
  --color-border: #e8e4dc;
  
  --font-display: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-soft: 0 4px 20px rgba(58, 54, 50, 0.08);
  --shadow-card: 0 2px 12px rgba(58, 54, 50, 0.06);
  --shadow-hover: 0 8px 32px rgba(58, 54, 50, 0.12);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.04em;
}

p {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  text-align: center;
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  border-radius: 50%;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-left: var(--spacing-xs);
}

.btn-reserve-header {
  padding: 0.6rem 1.5rem;
  background: var(--color-text);
  color: var(--color-cream);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-reserve-header:hover {
  background: var(--color-ruby);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--spacing-xl) + 60px) var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Hero with background image */
.hero-with-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: auto;
  aspect-ratio: 2000 / 868;
  max-height: none;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* -------------------------------------------------
   FIX: Hero image tiling / layout drift
   - Prevent background repeating when the hero becomes
     taller than the intended image area.
   - Keep spacing consistent with the fixed header.
   - Make the hero copy scale more gracefully.
   ------------------------------------------------- */
.hero.hero-with-bg {
  /* account for fixed header height */
  padding-top: calc(var(--spacing-lg) + 60px);

  /* avoid odd aspect-ratio behaviour when content height grows */
  aspect-ratio: auto;
  min-height: clamp(420px, 45vw, 780px);
  height: auto;

  /* hard-stop any background tiling */
  background-repeat: no-repeat !important;
  background-position: center center;
  background-size: cover;
}

.hero-with-bg .hero-content {
  max-width: min(720px, 92vw);
}

.hero-with-bg .hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 4vw, var(--spacing-lg));
}

.hero-with-bg .hero-delivery {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
}

.hero-with-bg .hero-delivery-date {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
}

.hero-with-bg .hero-lineup {
  bottom: 1rem;
  right: 1rem;
  max-width: 90vw;
  text-align: right;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
}

@media (max-width: 768px) {
  .hero.hero-with-bg {
    padding-top: calc(var(--spacing-lg) + 56px);
    min-height: 360px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .hero-with-bg .hero-badge {
    font-size: 0.7rem;
    padding: 0.45rem 1.1rem;
  }
}

.hero-with-bg::before {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease 0.2s both;
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 200px;
  }
}

.hero-with-bg .hero-badge {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-with-bg .hero-subtitle {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-with-bg .hero-delivery {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-lineup {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-with-bg {
    aspect-ratio: auto;
    min-height: 300px;
    padding: calc(var(--spacing-lg) + 60px) var(--spacing-md) var(--spacing-lg);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 90, 109, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-gold-light);
  color: var(--color-text);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border-radius: 20px;
  margin-bottom: var(--spacing-md);
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-delivery {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 2rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-delivery-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.hero-delivery-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-ruby);
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-delivery {
    padding: 0.8rem 1rem;
    max-width: 90%;
  }
  
  .hero-delivery-date {
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* Intro Section */
.intro {
  padding: var(--spacing-xl) var(--spacing-md);
  background: white;
}

/* Hemp Material Section */
.hemp-section { padding: var(--spacing-xl) 0; }
.hemp-title-wrap{ text-align:center; margin-bottom: var(--spacing-lg); }
.hemp-title{ 
  font-family: var(--font-display); 
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; 
  letter-spacing: .15em; 
  margin: 0; 
}
.hemp-title-line{ width: 28px; height: 2px; background: var(--color-gold); margin: .75rem auto 0; }
.hemp-grid{ display:flex; gap: var(--spacing-lg); align-items:flex-start; justify-content:center; }
.hemp-image{ flex: 0 0 38%; max-width: 360px; }
.hemp-image img{ width:100%; height:auto; display:block; border-radius: 6px; }
.hemp-content{ flex: 1; max-width: 480px; text-align: left; }
.hemp-lead{ text-align:center; font-size: .95rem; letter-spacing: .12em; line-height: 2; margin: 0 0 var(--spacing-lg); color: var(--color-text-light); }
.hemp-text{ font-size: 0.95rem; line-height: 2.1; margin: 0 0 var(--spacing-md); color: var(--color-text); }
.material-title-small{
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin: var(--spacing-md) 0;
  text-align: center;
}
.hemp-material-section{
  margin-top: var(--spacing-lg);
  text-align: center;
}
.hemp-material-text{
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
}

/* mobile */
@media (max-width: 860px){
  .hemp-grid{ flex-direction: column; }
  .hemp-image{ width: 100%; max-width: 400px; margin: 0 auto; }
  .hemp-content{ max-width: 100%; margin: 0 auto; }
}

.material-section {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.material-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: left;
}

.material-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.material-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.material-image:hover img {
  transform: scale(1.02);
}

.material-text {
  padding: var(--spacing-md) 0;
}

.material-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.material-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
}

.material-description {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.material-features {
  list-style: none;
  margin: var(--spacing-md) 0;
  padding-left: 0;
}

.material-features li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

.material-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-gold-light);
  border-radius: 50%;
}

.material-closing {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .material-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .material-image {
    order: -1;
  }

  .material-text {
    text-align: center;
    padding: 0;
  }

  .material-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .material-features {
    text-align: left;
    max-width: 320px;
    margin: var(--spacing-md) auto;
  }
}

.intro-content {
  text-align: center;
}

.intro-text {
  font-size: 1rem;
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.intro-text .highlight {
  background: linear-gradient(transparent 60%, var(--color-gold-light) 60%);
  padding: 0 0.25em;
}

.intro-quote {
  font-style: italic;
  padding: var(--spacing-md);
  border-left: 2px solid var(--color-gold);
  background: var(--color-cream);
  margin: var(--spacing-md) 0;
  text-align: left;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Changes Section */
.changes {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-cream-dark);
}

.changes-list {
  list-style: none;
  display: grid;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.changes-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.changes-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text);
}

.changes-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Products Section */
.products {
  padding: var(--spacing-xl) var(--spacing-md);
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.product-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-cream-dark);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity 0.15s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.05em;
}

.product-name-en {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-xs);
}

.product-price {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-sm);
}

.price-tax {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 0.25rem;
}

.product-colors {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Product list color label */
.product-card .product-color-label{
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  margin: 0.5rem 0;
  text-align: center;
}

.color-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  z-index: 10;
  display: inline-block;
}

.color-chip:hover,
.color-chip.active {
  border-color: var(--color-text);
  transform: scale(1.1);
}

.color-chip.offwhite {
  background: #f5f2eb;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-chip.black {
  background: #2a2725;
}

.color-chip.ruby {
  background: #b85a6d;
}

.color-chip.blue {
  background: #3b6ea8;
}

/* Detail Section Carousel Layout */
.detail-header-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .detail-header-carousel {
    grid-template-columns: 1fr;
  }
  
  .detail-carousel {
    flex-direction: column;
  }
  
  .detail-carousel-thumbs {
    flex-direction: row;
    width: 100%;
    order: 2;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
  }
  
  .detail-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
  
  .detail-carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    order: 1;
    overflow: hidden;
  }
}

.detail-carousel {
  display: flex;
  gap: var(--spacing-sm);
}

.detail-carousel-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
  flex-shrink: 0;
}

.detail-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  opacity: 0.5;
}

.detail-thumb:hover {
  opacity: 0.8;
}

.detail-thumb.active {
  border-color: var(--color-text);
  opacity: 1;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-carousel-main {
  position: relative;
  flex: 1;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream);
}

.detail-carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.detail-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.detail-carousel-nav:hover {
  background: white;
  box-shadow: var(--shadow-hover);
}

.detail-carousel-prev {
  left: 10px;
}

.detail-carousel-next {
  right: 10px;
}

@media (max-width: 500px) {
  .detail-carousel {
    flex-direction: column;
  }
  
  .detail-carousel-thumbs {
    flex-direction: row;
    width: 100%;
    order: 2;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 6px;
  }
  
  .detail-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  
  .detail-carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    order: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
  }
  
  .detail-carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .detail-carousel-nav {
    position: absolute;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .detail-carousel-prev {
    left: 8px;
  }
  
  .detail-carousel-next {
    right: 8px;
  }
  
  .detail-content {
    width: 100%;
  }
  
  .detail-content h3 {
    font-size: 1.1rem;
  }
  
  .detail-description {
    font-size: 0.9rem;
  }
  
  .detail-reviews {
    width: 100%;
  }
  
  .review-item {
    font-size: 0.85rem;
    padding-left: 1.5rem;
  }
  
  .review-item::before {
    left: 0.5rem;
  }
  
  .size-table-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .detail-material {
    width: 100%;
  }
  
  .detail-material p {
    font-size: 0.7rem;
  }
}

.btn-reserve {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--color-text);
  color: white;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-top: var(--spacing-sm);
}

.btn-reserve:hover {
  background: var(--color-ruby);
}

/* Product Details Section */
.product-details {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-cream-dark);
}

.detail-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

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

.detail-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.detail-image {
  aspect-ratio: 3/4;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.detail-image.full {
  grid-column: span 2;
  aspect-ratio: 4/3;
}

.detail-content h3 {
  margin-bottom: var(--spacing-xs);
}

.detail-code {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.detail-description {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: var(--spacing-md);
  word-break: break-word;
}

.detail-reviews {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.detail-reviews h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.review-item {
  padding: var(--spacing-sm);
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
  padding-left: 2rem;
}

.review-item::before {
  content: '"';
  position: absolute;
  left: 0.75rem;
  top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
}

/* Material Info */
.material-info {
  background: var(--color-cream);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
}

.material-info h4 {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.material-list {
  display: grid;
  gap: 0.5rem;
}

.material-row {
  display: flex;
  font-size: 0.85rem;
}

.material-label {
  min-width: 80px;
  color: var(--color-text-light);
}

.material-value {
  color: var(--color-text);
}

/* Reservation Form */
.reservation {
  padding: var(--spacing-xl) var(--spacing-md);
  background: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  margin-top: var(--spacing-lg);
  background: var(--color-cream);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-ruby);
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-input.error,
.form-select.error {
  border-color: var(--color-ruby);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-ruby);
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--color-cream);
}

.quantity-value {
  width: 60px;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--color-ruby);
  color: white;
  font-size: 1rem;
  letter-spacing: 0.15em;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-top: var(--spacing-md);
}

.btn-submit:hover {
  background: var(--color-ruby-dark);
}

.btn-submit:disabled {
  background: var(--color-text-light);
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 39, 37, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: var(--spacing-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--color-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 2rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.summary-block {
  background: var(--color-cream);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--color-text-light);
}

.summary-value {
  font-weight: 500;
}

.btn-close-modal {
  width: 100%;
  padding: 1rem;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--color-black);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--color-black);
  color: var(--color-cream);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.footer-logo img {
  height: 150px;
  display: inline-block;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(253, 251, 247, 0.6);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto var(--spacing-md);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.4);
  margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation enabled via JS */
.fade-in.animate {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: disable fade-in animation to prevent display issues */
@media (max-width: 768px) {
  .fade-in,
  .fade-in.animate,
  .fade-in.animate.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  .header-inner {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .btn-reserve-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--spacing-lg) + 60px) var(--spacing-sm) var(--spacing-lg);
  }
  
  .form-container {
    padding: var(--spacing-md);
  }
  
  .detail-block {
    padding: var(--spacing-md);
    overflow: visible;
  }
  
  .detail-content {
    overflow: visible;
    width: 100%;
  }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-soft);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-ruby);
  transform: translateY(-3px);
}


/* ============================================
   THEME: Product page (based on provided screenshots)
   - More white space
   - Thin borders instead of shadows
   - Muted blue/gray primary button
   ============================================ */

.theme-product {
  --color-cream: #ffffff;
  --color-cream-dark: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #6f6f6f;
  --color-border: #e6e6e6;

  /* Accent similar to screenshot buttons */
  --color-primary: #5f8ea1;      /* muted teal/blue */
  --color-primary-dark: #4f7f90;
  --color-secondary: #e6e6e6;
  --color-secondary-text: #2a2725;

  /* Reduce rounded + shadows */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --shadow-soft: none;
  --shadow-card: none;
  --shadow-hover: none;
}

.theme-product body {
  background: #ffffff;
}

/* Header: simple, flat */
.theme-product .header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  border-bottom: 1px solid var(--color-border);
}

.theme-product .header-inner {
  max-width: 1000px;
}

.theme-product .logo {
  letter-spacing: 0.08em;
}

.theme-product .btn-reserve-header {
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.theme-product .btn-reserve-header:hover {
  background: var(--color-primary-dark);
}

/* Hero: remove gradient/ornaments, make it compact like product pages */
.theme-product .hero {
  min-height: auto;
  padding: calc(var(--spacing-lg) + 60px) var(--spacing-md) var(--spacing-lg);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.theme-product .hero::before {
  display: none;
}

.theme-product .hero-badge {
  background: #f3f3f3;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* Section titles: left aligned with a thin bar */
.theme-product .section-title {
  text-align: left;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.theme-product .section-title::after {
  left: 0;
  transform: none;
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Containers: narrower like product pages */
.theme-product .container,
.theme-product .header-inner {
  max-width: 1000px;
}

/* Cards: border only */
.theme-product .product-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.theme-product .product-card:hover {
  transform: none;
}

.theme-product .product-image {
  background: #f7f7f7;
}

.theme-product .product-info {
  padding: 1.25rem;
}

.theme-product .btn-reserve {
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.theme-product .btn-reserve:hover {
  background: var(--color-primary-dark);
}

/* Detail blocks: flatter, table-like */
.theme-product .product-details {
  background: #ffffff;
}

.theme-product .detail-block {
  border: 1px solid var(--color-border);
  box-shadow: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.theme-product .detail-images .detail-image,
.theme-product .detail-image {
  border: 1px solid var(--color-border);
  background: #ffffff;
  border-radius: var(--radius-sm);
}

/* Reviews: remove quote bubble feeling, make it subtle */
.theme-product .review-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding-left: 1rem;
}

.theme-product .review-item::before {
  display: none;
}

/* Material info: make it look like the “スペック” table */
.theme-product .material-info {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.theme-product .material-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.theme-product .material-row:last-child {
  border-bottom: none;
}

.theme-product .material-label {
  min-width: 110px;
}

/* Form: flat inputs, button style */
.theme-product .reservation {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.theme-product .form-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.theme-product .form-input,
.theme-product .form-select,
.theme-product .form-textarea,
.theme-product .quantity-value,
.theme-product .quantity-btn {
  border-radius: var(--radius-sm);
}

.theme-product .btn-submit {
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}

.theme-product .btn-submit:hover {
  background: var(--color-primary-dark);
}

/* Modal: flatter */
.theme-product .modal-content {
  border-radius: var(--radius-md);
}

/* Footer: simple */
.theme-product .footer {
  background: #111;
}

/* Scroll top button */
.theme-product .scroll-top {
  background: #111;
}


/* ==========================
   Brand Philosophy (iki)
========================== */

.brand-philosophy {
  padding: 3rem 1rem 6rem 1rem;
  background: #ffffff;
}

.brand-logo {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem auto;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-ruby);
  margin-bottom: 3rem;
}

.brand-text {
  text-align: center;
  color: var(--color-text);
  line-height: 2.2;
}

.brand-text p {
  margin-bottom: 1.6rem;
}

.brand-closing {
  margin-top: 3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Size Table */
.size-table-wrapper {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  overflow-x: auto;
}

.size-table-wrapper h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: center;
  min-width: 300px;
}

.size-table th,
.size-table td {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--color-border);
}

.size-table th {
  background: var(--color-cream);
  font-weight: 500;
  color: var(--color-text);
}

.size-table th:first-child,
.size-table td:first-child {
  text-align: left;
  padding-left: 1rem;
  min-width: 100px;
}

.size-table .size-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.size-table tbody td {
  background: white;
}

@media (max-width: 500px) {
  .size-table {
    font-size: 0.8rem;
  }
  
  .size-table th,
  .size-table td {
    padding: 0.5rem 0.3rem;
  }
  
  .size-table th:first-child,
  .size-table td:first-child {
    min-width: 80px;
    padding-left: 0.5rem;
  }
}

/* Shopping Guide Section */
.shopping-guide {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-cream-dark);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

@media (max-width: 600px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.guide-item {
  padding: 0;
}

.guide-item-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
}

.guide-item-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.guide-item-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.guide-contact-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-xs);
}

.guide-email {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-email:hover {
  color: var(--color-ruby);
}

.guide-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.guide-link:hover {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

/* ============================================
   Multi-Product Selection Form Styles
   ============================================ */

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: -0.5rem;
  margin-bottom: var(--spacing-sm);
}

.product-select-block {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  transition: var(--transition-fast);
}

.product-select-block:hover {
  border-color: var(--color-ruby);
}

.product-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.product-select-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.product-select-price {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ruby);
  font-weight: 500;
}

.product-select-colors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-size-group {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.color-size-group:last-child {
  border-bottom: none;
}

.color-size-group .color-label {
  margin-bottom: 0.5rem;
}

.size-quantity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.size-quantity-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.size-label-small {
  font-size: 0.8rem;
  color: var(--color-text-light);
  min-width: 24px;
  text-align: center;
}

.size-quantity-item .quantity-select {
  width: 55px;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.color-quantity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.color-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-dot.offwhite {
  background: #f5f2eb;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-dot.black {
  background: #2a2725;
}

.color-dot.ruby {
  background: linear-gradient(135deg, #c77485 0%, #a85566 100%);
}

.color-dot.blue {
  background: #3b6ea8;
}

.quantity-select {
  width: 70px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.quantity-select:hover {
  border-color: var(--color-ruby);
}

.quantity-select:focus {
  outline: none;
  border-color: var(--color-ruby);
  box-shadow: 0 0 0 3px rgba(184, 90, 109, 0.1);
}

/* Summary for multiple products */
.summary-row-products {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.summary-products {
  width: 100%;
}

.summary-product-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

.summary-product-item:last-child {
  border-bottom: none;
}

.summary-product-name {
  color: var(--color-text);
}

.summary-product-qty {
  color: var(--color-ruby);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .product-select-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .product-select-block {
    padding: var(--spacing-sm);
  }
  
  .color-quantity-row {
    padding: 0.4rem 0;
  }
  
  .quantity-select {
    width: 60px;
    padding: 0.4rem 0.5rem;
  }
  
  .size-quantity-row {
    gap: 0.4rem;
  }
  
  .size-quantity-item .quantity-select {
    width: 50px;
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
  }
  
  .size-label-small {
    font-size: 0.75rem;
    min-width: 20px;
  }
}

/* Order Total Display */
.order-total {
  background: linear-gradient(135deg, #f8f5ef 0%, #fff 100%);
  border: 2px solid var(--color-ruby);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.order-total-amount {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-ruby);
  letter-spacing: 0.02em;
}

@media (max-width: 500px) {
  .order-total {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .order-total-amount {
    font-size: 1.5rem;
  }
}

/* Detail Material Info (small, subtle) */
.detail-material {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.detail-material p {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.detail-material p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Product Category Grid
   ======================================== */
.category-grid {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  background: #fff;
}

.category-row {
  display: flex;
  gap: 12px;
}

.category-row-2 {
  margin-bottom: 12px;
}

.category-item {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: block;
  text-decoration: none;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-item:hover img {
  transform: scale(1.05);
}

.category-item-large {
  aspect-ratio: 3 / 2;
}

.category-row-5 .category-item {
  aspect-ratio: 1 / 1;
}

.category-row-3 .category-item {
  aspect-ratio: 1 / 1;
  max-height: 250px;
}

.category-label {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.category-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.category-item:hover::after {
  background: rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .category-grid {
    padding: var(--spacing-md);
  }
  
  .category-row {
    gap: 8px;
  }
  
  .category-row-2 {
    flex-direction: column;
    margin-bottom: 8px;
  }
  
  .category-item-large {
    aspect-ratio: 16 / 9;
  }
  
  .category-row-5 {
    flex-wrap: wrap;
  }
  
  .category-row-5 .category-item {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  
  .category-row-5 .category-item:last-child {
    flex: 1 1 100%;
  }
  
  .category-row-3 {
    flex-wrap: wrap;
  }
  
  .category-row-3 .category-item {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  
  .category-row-3 .category-item:last-child {
    flex: 1 1 100%;
  }
  
  .category-label {
    font-size: 1.1rem;
  }
}
/* =================================================
   FIX: Hero image tiling / layout drift (2026-01-20)
   - Prevent background repeating when the hero becomes taller
   - Stabilize hero height across devices
   - Improve text scaling for subtitle / delivery / lineup
   ================================================= */

.hero.hero-with-bg {
  /* account for fixed header height */
  padding-top: calc(var(--spacing-lg) + 60px);

  /* avoid odd aspect-ratio behaviour when content height grows */
  aspect-ratio: auto;
  min-height: clamp(420px, 45vw, 780px);
  height: auto;

  /* hard-stop any background tiling */
  background-repeat: no-repeat !important;
  background-position: center center;
  background-size: cover;
}

.hero-with-bg .hero-content {
  max-width: min(720px, 92vw);
}

.hero-with-bg .hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 4vw, var(--spacing-lg));
}

.hero-with-bg .hero-delivery {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
}

.hero-with-bg .hero-delivery-date {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
}

.hero-with-bg .hero-lineup {
  bottom: 1rem;
  right: 1rem;
  max-width: 90vw;
  text-align: right;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
}

@media (max-width: 768px) {
  .hero.hero-with-bg {
    padding-top: calc(var(--spacing-lg) + 56px);
    min-height: 360px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .hero-with-bg .hero-badge {
    font-size: 0.7rem;
    padding: 0.45rem 1.1rem;
  }
}

/* ========================================
   Mobile Fix for Product Details (Overwrites)
   Organized under media query instead of !important
   ======================================== */
@media (max-width: 768px) {
  /* Unified Mobile Spacing */
  .container,
  .container-narrow,
  .intro,
  .changes,
  .products,
  .reservation,
  .guide,
  .brand-philosophy,
  .hemp-section,
  .material-section,
  .designer-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .intro .container-narrow,
  .changes .container-narrow,
  .products .container,
  .reservation .container-narrow,
  .guide .container-narrow,
  .brand-philosophy .container-narrow,
  .designer-section .container-narrow {
    padding-left: 0;
    padding-right: 0;
  }

  .intro-text, .intro-quote, .hemp-text, .hemp-lead, 
  .hemp-material-text, .brand-text, .brand-lead, .designer-bio {
    max-width: 100%;
  }

  .form-container {
    padding: 1.25rem;
  }
  
  .guide-item {
    padding: 1rem 0;
  }

  /* Detail Block Layout Overwrites */
  .detail-block {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .detail-header-carousel {
    display: block;
  }
  
  .detail-carousel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  
  .detail-carousel-main {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3/4;
    order: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
  }
  
  .detail-carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .detail-carousel-thumbs {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    order: 2;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
  }
  
  .detail-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  .detail-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .detail-carousel-prev {
    left: 10px;
  }
  
  .detail-carousel-next {
    right: 10px;
  }
  
  .detail-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .detail-content h3 {
    font-size: 1.1rem;
    word-break: break-word;
  }
  
  .detail-description {
    font-size: 0.9rem;
    word-break: break-word;
  }
  
  .detail-reviews {
    width: 100%;
    max-width: 100%;
  }
  
  .review-item {
    font-size: 0.85rem;
    word-break: break-word;
  }
  
  .size-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .detail-material {
    width: 100%;
    max-width: 100%;
  }
  
  .detail-material p {
    font-size: 0.75rem;
    word-break: break-word;
  }
}

/* ============================================
   Modal Mobile Fix (Email Display)
   モーダルの表示崩れ修正（スマホ用）
   ============================================ */
   @media (max-width: 600px) {
    /* 行を縦並びに変更 */
    .summary-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.3rem;
      border-bottom: 1px dashed var(--color-border); /* 境界線を少し控えめに */
    }
    
    /* ラベル（お名前、メールアドレス等） */
    .summary-label {
      font-size: 0.85rem;
      margin-bottom: 0;
    }
  
    /* 入力された値 */
    .summary-value {
      width: 100%;
      text-align: left; /* 左寄せにする */
      word-break: break-all; /* 長いメールアドレスを強制的に折り返す */
      padding-left: 0.5rem; /* 少しインデントを入れて見やすく */
    }
  }