:root {
  --bg: #0d0b09;
  --surface: #171310;
  --surface-2: #211a15;
  --paper: #fbf7ef;
  --paper-2: #f3eadc;
  --ink: #221a15;
  --muted: #806f61;
  --muted-dark: #c7b6a2;
  --line: rgba(255, 246, 232, 0.14);
  --line-light: rgba(70, 45, 29, 0.14);
  --gold: #c59a4b;
  --gold-soft: #efd49a;
  --red: #8d302a;
  --green: #365d4c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(141, 48, 42, 0.13), transparent 560px),
    var(--bg);
  font-family: var(--font-serif);
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(13, 11, 9, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 212, 154, 0.44);
  border-radius: 12px;
  color: var(--gold-soft);
  background: linear-gradient(145deg, #23170f, #0c0806);
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-dark);
  font-family: var(--font-latin);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.filter-button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-dark);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  background: rgba(255, 246, 232, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-dark);
  background: rgba(255, 246, 232, 0.06);
  font-size: 0.88rem;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
}

.search-box input::placeholder {
  color: rgba(199, 182, 162, 0.68);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #1b130d;
  background: var(--gold-soft);
  font-weight: 800;
}

.cart-link span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--red);
  font-size: 0.82rem;
}

main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 28px 0 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.88) 0%, rgba(10, 7, 5, 0.5) 44%, rgba(10, 7, 5, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.08), rgba(10, 7, 5, 0.86));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 8.8em;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  letter-spacing: 0.02em;
}

.hero-content p:not(.eyebrow),
.section-heading p,
.product-copy,
.gift-grid p,
.quality-list p,
.faq-answer p {
  line-height: 1.85;
}

.hero-content p:not(.eyebrow) {
  max-width: 37rem;
  margin: 22px 0 0;
  color: rgba(251, 247, 239, 0.78);
  font-size: 1.06rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.button:focus-visible,
.product-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #1d140d;
  background: var(--gold-soft);
}

.button.ghost {
  border-color: rgba(251, 247, 239, 0.28);
  color: var(--paper);
  background: rgba(251, 247, 239, 0.08);
}

.hero-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  width: min(320px, calc(100% - 56px));
  padding: 22px;
  border: 1px solid rgba(239, 212, 154, 0.28);
  border-radius: 18px;
  background: rgba(20, 13, 9, 0.72);
  backdrop-filter: blur(16px);
}

.hero-panel p,
.hero-panel span {
  margin: 0;
  color: var(--muted-dark);
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.hero-panel a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold-soft);
  font-weight: 850;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.trust-bar div {
  padding: 22px;
  background: var(--surface);
}

.trust-bar strong,
.trust-bar span {
  display: block;
}

.trust-bar strong {
  color: var(--paper);
  font-size: 1.06rem;
  letter-spacing: 0.03em;
}

.trust-bar span {
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 78px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.quality-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.02em;
}

.section-heading p {
  max-width: 42rem;
  margin: 12px 0 0;
  color: var(--muted-dark);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-button {
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted-dark);
  background: transparent;
}

.filter-button.active,
.filter-button:hover {
  color: #1d140d;
  border-color: transparent;
  background: var(--gold-soft);
}

.product-list,
.order-lines,
.faq-list {
  display: grid;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 170px;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.product-card.featured {
  border-color: rgba(197, 154, 75, 0.45);
}

.product-card:hover {
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.22);
}

.product-media {
  display: grid;
  align-items: end;
  min-height: 170px;
  padding: 12px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)),
    url("matsusaka-hero.png") center / cover;
}

.product-media span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.78rem;
  font-weight: 850;
}

.product-tag {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e4ece5;
  font-size: 0.78rem;
  font-weight: 850;
}

.product-card h3 {
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  letter-spacing: 0.01em;
}

.product-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.product-meta li {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: #675544;
  font-size: 0.82rem;
}

.product-buy {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 16px;
}

.product-price {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-buy label {
  display: grid;
  gap: 7px;
  width: 100%;
  color: var(--muted);
  font-size: 0.86rem;
}

.qty-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: #fff;
}

.cart-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(239, 212, 154, 0.24);
  border-radius: 20px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(197, 154, 75, 0.08), transparent),
    var(--surface);
  box-shadow: var(--shadow);
}

.cart-panel h2 {
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.order-lines {
  margin: 20px 0;
}

.order-lines > p {
  margin: 0;
  color: var(--muted-dark);
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-line strong,
.order-line span {
  display: block;
}

.order-line strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.order-line span,
.order-summary dt {
  color: var(--muted-dark);
  font-size: 0.86rem;
}

.order-summary {
  display: grid;
  gap: 13px;
  margin: 0;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-summary dt,
.order-summary dd {
  margin: 0;
}

.order-summary .total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 800;
}

.checkout-button {
  width: 100%;
  margin-top: 20px;
}

.gift-section,
.quality-section,
.faq-section {
  margin-bottom: 78px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gift-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.gift-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold-soft);
  font-family: var(--font-latin);
  font-weight: 900;
}

.gift-grid h3 {
  font-size: 1.25rem;
}

.gift-grid p {
  margin: 12px 0 0;
  color: var(--muted-dark);
}

.quality-section {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 36px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
}

.quality-section .eyebrow {
  color: var(--red);
}

.quality-list {
  display: grid;
  gap: 18px;
}

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

.quality-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  border: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 850;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--gold-soft);
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: var(--muted-dark);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding-bottom: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

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

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

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 46px;
  }

  .trust-bar,
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-layout,
  .quality-section {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 14px;
    gap: 14px;
  }

  .header-actions {
    flex-direction: column;
  }

  .cart-link {
    justify-content: center;
  }

  .hero {
    min-height: 700px;
    margin-top: 16px;
  }

  .hero-content {
    padding: 28px;
    padding-bottom: 230px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .trust-bar,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-buy {
    justify-items: stretch;
  }

  .product-media {
    min-height: 190px;
  }

  .quality-section {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
