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

:root {
  --violet: #6B2257;
  --violet-dark: #4A1535;
  --violet-light: #8B4A6E;
  --cream: #F8F3EE;
  --cream-dark: #EDE5DA;
  --green: #3D5A3E;
  --text: #2D1B2E;
  --text-light: #6B5A6E;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

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

/* ---- NAV ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a { color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--violet); }

.nav-logo img {
  height: 52px;
  display: block;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--violet-dark);
  padding: 120px 24px 80px;
}

.hero-inner { max-width: 600px; }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn-primary:hover { background: var(--white); color: var(--violet-dark); }

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SHOP ---- */
.shop { padding: 100px 0 80px; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 60px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

.product-card {
  background: var(--white);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(74,21,53,0.1); }

.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.03); }

.product-info { padding: 24px; }

.product-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--violet);
  margin-bottom: 16px;
}

.btn-order {
  background: none;
  border: 1px solid var(--violet);
  color: var(--violet);
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, color 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-order:hover { background: var(--violet); color: var(--white); }

/* ---- STORY ---- */
.story {
  padding: 100px 0;
  background: var(--cream-dark);
}

.story-inner {
  max-width: 640px;
  text-align: center;
}

.story-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.story-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 24px;
}

.story-text p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}

/* ---- CONTACT ---- */
.contact {
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}
.contact a { color: var(--violet); border-bottom: 1px solid var(--violet); }

/* ---- FOOTER ---- */
footer {
  background: var(--violet-dark);
  padding: 48px 0;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo { height: 52px; opacity: 0.85; }

.footer-copy { font-size: 11px; letter-spacing: 0.1em; }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--white); }

/* ---- OVERLAY / CONFIGURATOR ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 20, 44, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.active { display: flex; }

.configurator {
  background: var(--white);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px 40px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
}

/* Progress */
.progress-bar {
  margin-bottom: 36px;
}

.progress-steps {
  display: flex;
  gap: 6px;
}

.progress-step {
  height: 2px;
  flex: 1;
  background: var(--cream-dark);
  transition: background 0.3s;
}
.progress-step.active { background: var(--violet); }

/* Step */
.step { display: none; }
.step.active { display: block; }

.step-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 24px;
}

.step-title-sub {
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text-light);
}

/* Option cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.option-card {
  border: 1.5px solid var(--cream-dark);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
  font-size: 13px;
}

.option-card:hover { border-color: var(--violet-light); }
.option-card.selected { border-color: var(--violet); background: #FBF5F9; }

.option-card .option-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.option-card .option-img {
  margin-bottom: 8px;
}

.option-card .option-img img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  display: block;
}

.option-card .option-name {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.option-card .option-sub {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

/* Summary step */
.summary-box {
  background: var(--cream);
  padding: 24px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 13px;
  gap: 12px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-light); font-size: 11px; letter-spacing: 0.08em; }
.summary-row .value { font-weight: 400; text-align: right; }

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
}

.config-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.btn-back {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

.btn-next {
  margin-left: auto;
  background: var(--violet);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
}
.btn-next:hover { background: var(--violet-dark); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-checkout {
  width: 100%;
  background: var(--violet);
  color: var(--white);
  border: none;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
  margin-top: 4px;
}
.btn-checkout:hover { background: var(--violet-dark); }

.note-text {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
