/* ===== リセット・基本設定 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

:root {
  --bg:          #0e0b08;
  --bg-card:     #18130e;
  --bg-card-alt: #1f1810;
  --gold:        #c9a84c;
  --gold-dim:    #8a6f32;
  --gold-light:  #e8c97a;
  --text:        #c4b49a;
  --text-dim:    #7a6a55;
  --text-bright: #e8dcc8;
  --border:      #3a2e1e;
  --red:         #8b3a3a;
}

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

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(14,11,8,0.87), rgba(14,11,8,0.87)),
    url('images/interior.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Noto Serif JP', 'Georgia', serif;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景テクスチャ ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(120, 80, 20, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(80, 50, 10, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== 四隅ビネット ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

.dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(200,168,76,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(200,168,76,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(200,168,76,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(200,168,76,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 85%, rgba(200,168,76,0.07) 0%, transparent 100%);
}

/* ===== ヘッダー ===== */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(14,11,8,0.95), rgba(14,11,8,0.80));
}

.header-logo {
  width: clamp(160px, 28vw, 280px);
  display: block;
  margin: 0 auto 0.25rem;
}

.header-ornament {
  color: var(--gold-dim);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  margin-bottom: 0.5rem;
}

.header-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201,168,76,0.3), 0 0 80px rgba(201,168,76,0.1);
  line-height: 1.1;
}

.header-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
}

nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(14,11,8,0.6), rgba(14,11,8,0.9));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(120,80,20,0.08) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.quote-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.quote-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  color: var(--text-dim);
  line-height: 1.8;
  letter-spacing: 0.03em;
  max-width: 560px;
}

.quote-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

/* ===== メインコンテンツ ===== */
main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.2em;
  color: var(--text-bright);
}

.ornament {
  color: var(--gold-dim);
  font-size: 1.2rem;
}

/* ===== 商品グリッド ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ===== 商品カード ===== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,168,76,0.1),
    inset 0 1px 0 rgba(201,168,76,0.05);
}

/* ===== 売り切れカード ===== */
.product-card--soldout {
  opacity: 0.6;
}

.soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.soldout-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
  padding: 0.35rem 1rem;
}

.price--soldout {
  color: var(--text-dim);
  text-decoration: line-through;
}

/* ===== 商品画像エリア ===== */
.product-image {
  position: relative;
  height: 260px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.15) brightness(0.9);
  transition: filter 0.4s, transform 0.5s;
}

.product-card:hover .product-img {
  filter: sepia(0.05) brightness(1);
  transform: scale(1.03);
}

.product-scientific {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.clock    { background: linear-gradient(135deg, #1a1208 0%, #0e0b08 100%); }
.lamp     { background: linear-gradient(135deg, #12100a 0%, #1a140a 100%); }
.map      { background: linear-gradient(135deg, #100e08 0%, #181408 100%); }
.porcelain{ background: linear-gradient(135deg, #0e1014 0%, #0a0e12 100%); }
.watch    { background: linear-gradient(135deg, #14100a 0%, #0e0c08 100%); }
.book     { background: linear-gradient(135deg, #100c08 0%, #181008 100%); }

.item-icon {
  font-size: 4.5rem;
  filter: sepia(0.6) brightness(0.7);
  transition: filter 0.4s, transform 0.4s;
  position: relative;
  z-index: 1;
}

.product-card:hover .item-icon {
  filter: sepia(0.3) brightness(0.85);
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  z-index: 2;
}

/* ===== 商品情報 ===== */
.product-info {
  padding: 1.5rem;
}

.product-era {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  gap: 1rem;
}

.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.price.sold {
  color: var(--text-dim);
  text-decoration: line-through;
}

.sold-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.2rem 0.6rem;
}

.btn-inquiry {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-dim);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn-inquiry:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ===== フッター ===== */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(10,8,5,0.9);
}

.footer-ornament {
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3em;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 80px;
  display: block;
  margin: 0 auto 1rem;
}

.footer-address,
.footer-hours {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 2;
}

.footer-links {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold-dim);
}

.footer-copy {
  font-size: 0.7rem;
  color: #3a3020;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ===== スクロールバー ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .products {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 0.5rem 1.5rem;
  }
}
