/* Base layout & typography */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F5F0E8; /* warm paper */
  color: #111111; /* near-black */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #8F1D2C; /* deep red accent */
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.lead {
  font-size: 1rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

/* Language visibility rules (critical for bilingual behavior) */
html[data-lang="en"] [data-lang="ja"] {
  display: none;
}

html[data-lang="ja"] [data-lang="en"] {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(245, 240, 232, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #FFFFFF, #C9B39A);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-name {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #444;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.primary-nav a {
  color: #111;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #8F1D2C;
  transition: width 0.18s ease-out;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #444;
}

.lang-btn.is-active {
  color: #8F1D2C;
}

.lang-btn:focus-visible {
  outline: 2px solid #8F1D2C;
  outline-offset: 2px;
}

.lang-toggle .divider {
  color: #999;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 3rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-meta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-panel {
  background: #04060A; /* very dark blue/black */
  color: #F5F0E8;
  padding: 1.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pair {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.stat {
  flex: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #C9B39A;
}

.stat-value {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.panel-copy {
  font-size: 0.85rem;
  color: #E8E1D8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary {
  background: #8F1D2C;
  color: #F5F0E8;
  border-color: #8F1D2C;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #681623;
  border-color: #681623;
}

.btn-ghost {
  border-color: #8F1D2C;
  color: #8F1D2C;
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(143, 29, 44, 0.06);
}

.btn:focus-visible {
  outline: 2px solid #8F1D2C;
  outline-offset: 2px;
}

/* Sections */
.section {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-intro {
  color: #333;
}

/* Products */
.section-products {
  padding-bottom: 3.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.2rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-media {
  height: 120px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F0E8 50%, #C9B39A 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-body {
  display: flex;
  flex-direction: column;
}

.product-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #666;
}

.product-copy {
  font-size: 0.88rem;
  color: #222;
}

.product-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.4rem;
}

.price {
  font-size: 0.9rem;
  font-weight: 500;
}

.pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #000000;
  color: #F5F0E8;
}

.ghost-link {
  font-size: 0.75rem;
  border: none;
  padding: 0;
  background: none;
  color: #8F1D2C;
  cursor: pointer;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  text-decoration: underline;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 2.5rem;
}

.about-panel {
  background: #000000;
  color: #F5F0E8;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.about-panel dl {
  margin: 0 0 1.25rem;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.fact-row dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #C9B39A;
}

.fact-row dd {
  margin: 0;
}

/* Reviews */
.section-reviews {
  background: #F8F3EC;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 15%, #FFFFFF, #C9B39A);
}

.review-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.review-meta {
  font-size: 0.75rem;
  color: #666;
}

.review-body {
  margin: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 2.5rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

input,
textarea {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 0.55rem 0.9rem;
  font: inherit;
  background: #FFFFFF;
}

textarea {
  border-radius: 1rem;
  resize: vertical;
  min-height: 120px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8F1D2C;
  outline-offset: 2px;
}

.contact-panel {
  background: #000000;
  color: #F5F0E8;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.contact-panel .btn-ghost {
  margin-top: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #444;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #999;
  display: inline-block;
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .hero-inner,
  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel,
  .about-panel,
  .contact-panel {
    margin-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .product-grid,
  .reviews-grid {
    gap: 1.25rem;
  }

  .product-card,
  .review-card {
    border-radius: 1rem;
  }
}
