/* SEIKATSUFIX — quiet luxury magazine · sx- */
:root {
  --sx-charcoal: #12100E;
  --sx-paper: #F4EFE8;
  --sx-paper-deep: #E8E0D4;
  --sx-gold: #C4A35A;
  --sx-gold-soft: #D4B872;
  --sx-wine: #6B2C3A;
  --sx-wine-soft: #8A3D4E;
  --sx-ink: #12100E;
  --sx-muted: rgba(18, 16, 14, 0.62);
  --sx-line: rgba(18, 16, 14, 0.12);
  --sx-line-gold: rgba(196, 163, 90, 0.55);
  --sx-on-dark: #F4EFE8;
  --sx-font-display: "DM Serif Display", "Zen Old Mincho", Georgia, serif;
  --sx-font-jp: "Zen Old Mincho", "Yu Mincho", serif;
  --sx-font-ui: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --sx-shell: min(1160px, calc(100% - 2.4rem));
  --sx-header: 4.4rem;
  --sx-ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sx-font-ui);
  font-weight: 400;
  color: var(--sx-ink);
  background: var(--sx-paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(107, 44, 58, 0.18); color: var(--sx-ink); }

.sx-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.55rem 1rem; background: var(--sx-wine); color: var(--sx-paper);
}
.sx-skip:focus { top: 1rem; }
.sx-shell { width: var(--sx-shell); margin-inline: auto; }

.sx-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--sx-wine);
}
.sx-kicker--on-dark { color: var(--sx-gold); }
.sx-rule {
  display: block; width: 3.2rem; height: 1px; margin: 1.1rem 0 1.25rem;
  background: var(--sx-gold);
}
.sx-lede { max-width: 34rem; color: var(--sx-muted); }
.sx-heading h2, h1, h2, h3 {
  font-family: var(--sx-font-jp);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); margin: 0; }
h3 { font-size: 1.05rem; margin: 0.35rem 0; }
.sx-heading { margin-bottom: 2.2rem; }
.sx-heading--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.sx-section { padding: clamp(3.4rem, 7vw, 6.2rem) 0; }
.sx-section--paper { background: #F8F3EC; }

.sx-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  background: var(--sx-wine); color: var(--sx-paper);
  border: 1px solid var(--sx-wine);
  letter-spacing: 0.12em; font-size: 0.78rem;
  transition: background 0.35s var(--sx-ease), color 0.35s var(--sx-ease);
}
.sx-btn:hover { background: var(--sx-charcoal); border-color: var(--sx-charcoal); }
.sx-btn--ghost {
  background: transparent; color: var(--sx-ink); border-color: var(--sx-line);
}
.sx-btn--ghost:hover { border-color: var(--sx-wine); color: var(--sx-wine); background: transparent; }
.sx-btn--gold { background: var(--sx-gold); border-color: var(--sx-gold); color: var(--sx-charcoal); }
.sx-btn--gold:hover { background: var(--sx-paper); color: var(--sx-charcoal); }
.sx-text-link {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--sx-gold); padding-bottom: 0.15rem;
}
.sx-text-link--light { color: var(--sx-paper); border-color: var(--sx-gold); }

.sx-frame { overflow: hidden; background: var(--sx-paper-deep); }
.sx-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--sx-ease);
}
.sx-frame:hover img { transform: scale(1.04); }

/* Reveal: visible until JS marks ready */
.sx-reveal { opacity: 1; transform: none; }
html.sx-ready .sx-reveal {
  opacity: 0; transform: translateY(1.15rem);
  transition: opacity 0.85s var(--sx-ease), transform 0.85s var(--sx-ease);
}
html.sx-ready .sx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.sx-ready .sx-reveal { opacity: 1; transform: none; transition: none; }
}

/* —— Magazine masthead —— */
.sx-mast {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(12px);
}
.sx-mast__bar {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--sx-header);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.4rem;
}
.sx-mast__rule {
  display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sx-line-gold) 12%, var(--sx-gold) 50%, var(--sx-line-gold) 88%, transparent);
}
.sx-scrolled .sx-mast { box-shadow: 0 10px 28px rgba(18, 16, 14, 0.06); }
.sx-scrolled .sx-mast__bar { min-height: 3.55rem; }

.sx-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.sx-wordmark strong {
  font-family: var(--sx-font-display);
  font-size: 1.15rem; font-weight: 400; letter-spacing: 0.22em;
}
.sx-wordmark small {
  font-size: 0.62rem; letter-spacing: 0.28em; color: var(--sx-muted);
}
.sx-wordmark[aria-current="page"] strong { color: var(--sx-wine); }

.sx-nav {
  display: flex; justify-content: center; gap: 1.55rem;
}
.sx-nav__link {
  position: relative;
  font-size: 0.74rem; letter-spacing: 0.16em; padding: 0.35rem 0;
}
.sx-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--sx-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--sx-ease);
}
.sx-nav__link:hover::after,
.sx-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.sx-mast__place {
  margin: 0; font-size: 0.66rem; letter-spacing: 0.28em; color: var(--sx-muted);
}

.sx-menu-btn {
  display: none; width: 2.4rem; height: 2.4rem;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.sx-menu-btn span {
  display: block; height: 1px; margin: 0.4rem 0.35rem; background: var(--sx-charcoal);
}

.sx-shade {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 16, 14, 0.42);
}
.sx-drawer {
  position: fixed; top: 0; right: 0; z-index: 100;
  width: min(22rem, 86vw); height: 100%;
  background: var(--sx-paper); padding: 1.4rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--sx-ease);
}
.sx-drawer-open .sx-drawer { transform: none; }
.sx-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.6rem; font-size: 0.78rem; letter-spacing: 0.12em;
}
.sx-drawer__head button { background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
.sx-drawer nav a {
  display: flex; justify-content: space-between;
  padding: 0.85rem 0; border-bottom: 1px solid var(--sx-line);
  letter-spacing: 0.12em;
}
.sx-drawer nav a[aria-current="page"] { color: var(--sx-wine); }
.sx-drawer__meta { margin-top: 1.6rem; font-size: 0.78rem; color: var(--sx-muted); }

/* —— Split / tile hero —— */
.sx-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(100svh - var(--sx-header));
  background:
    radial-gradient(ellipse 40% 50% at 8% 88%, rgba(107, 44, 58, 0.08), transparent 70%),
    linear-gradient(145deg, var(--sx-paper) 0%, #F7F2EA 55%, var(--sx-paper-deep) 100%);
}
.sx-hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1.4rem, 4.5vw, 4rem);
  max-width: 36rem;
}
.sx-hero__brand {
  margin: 0;
  font-family: var(--sx-font-display);
  letter-spacing: 0.32em; font-size: 0.95rem; color: var(--sx-wine);
}
.sx-hero__brand-jp {
  margin: 0.35rem 0 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.28em; color: var(--sx-muted);
}
.sx-hero__lead { margin: 1.2rem 0 0; color: var(--sx-muted); max-width: 28rem; }
.sx-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.sx-hero__mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem) 0;
  min-height: calc(100svh - var(--sx-header));
}
.sx-hero__tile {
  position: relative; overflow: hidden; margin: 0; background: var(--sx-charcoal);
}
.sx-hero__tile--lead { grid-row: 1 / 3; }
.sx-hero__tile img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: 100%;
}
.sx-hero__tile figcaption {
  position: absolute; left: 0.75rem; bottom: 0.65rem; z-index: 1;
  font-size: 0.68rem; letter-spacing: 0.16em; color: var(--sx-paper);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.sx-hero__tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 16, 14, 0.42) 100%);
  pointer-events: none;
}

/* Materials / products / lookbook */
.sx-materials,
.sx-products,
.sx-lookbook,
.sx-journal,
.sx-archive,
.sx-three {
  display: grid; gap: 1.35rem;
}
.sx-materials { grid-template-columns: repeat(3, 1fr); }
.sx-materials .sx-frame { aspect-ratio: 3 / 2; }
.sx-material h3 { font-family: var(--sx-font-jp); }
.sx-material p { margin: 0; color: var(--sx-muted); font-size: 0.9rem; }

.sx-products { grid-template-columns: repeat(3, 1fr); }
.sx-product { display: block; }
.sx-product .sx-frame { aspect-ratio: 4 / 5; }
.sx-product span {
  display: block; margin-top: 0.75rem;
  font-size: 0.66rem; letter-spacing: 0.18em; color: var(--sx-gold);
}
.sx-product small { color: var(--sx-wine); font-size: 0.7rem; letter-spacing: 0.14em; }
.sx-product p { margin: 0.2rem 0 0; color: var(--sx-muted); font-size: 0.88rem; }

.sx-lookbook { grid-template-columns: 1.2fr 0.9fr 0.9fr; align-items: end; }
.sx-look { margin: 0; }
.sx-look .sx-frame { aspect-ratio: 4 / 5; }
.sx-look:first-child .sx-frame { aspect-ratio: 3 / 4; }
.sx-look figcaption { margin-top: 0.6rem; font-size: 0.78rem; color: var(--sx-muted); }

.sx-journal { grid-template-columns: repeat(3, 1fr); }
.sx-journal-card .sx-frame { aspect-ratio: 3 / 2; }
.sx-journal-card small,
.sx-card small { display: block; margin: 0.75rem 0 0.3rem; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--sx-wine); }

/* Craft split */
.sx-craft {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 36rem;
  background: var(--sx-charcoal); color: var(--sx-paper);
}
.sx-craft__media { min-height: 22rem; }
.sx-craft__media img { width: 100%; height: 100%; object-fit: cover; }
.sx-craft__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.2rem, 5vw, 4.2rem);
}
.sx-craft .sx-kicker { color: var(--sx-gold); }
.sx-craft p { color: rgba(244, 239, 232, 0.78); }
.sx-steps { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.sx-steps li { padding: 0.55rem 0; border-top: 1px solid rgba(244, 239, 232, 0.12); font-size: 0.92rem; }
.sx-craft .sx-text-link { color: var(--sx-paper); }

/* FAQ / visit */
.sx-faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.sx-q {
  border-bottom: 1px solid var(--sx-line);
  padding: 0.2rem 0;
}
.sx-q summary {
  cursor: pointer; list-style: none;
  padding: 1rem 0; font-family: var(--sx-font-jp);
}
.sx-q summary::-webkit-details-marker { display: none; }
.sx-q p { margin: 0 0 1rem; color: var(--sx-muted); }

.sx-visit { position: relative; min-height: 28rem; display: grid; place-items: center; color: var(--sx-paper); }
.sx-visit__media { position: absolute; inset: 0; }
.sx-visit__media img { width: 100%; height: 100%; object-fit: cover; }
.sx-visit__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 14, 0.35), rgba(18, 16, 14, 0.72)); }
.sx-visit__copy { position: relative; z-index: 1; text-align: center; padding: 4rem 1.4rem; }
.sx-visit__copy .sx-hero__actions { justify-content: center; }
.sx-visit__addr { letter-spacing: 0.04em; }

/* Inner pages */
.sx-page-hero {
  position: relative; min-height: 22rem;
  display: grid; place-items: end start; color: var(--sx-paper);
}
.sx-page-hero__media { position: absolute; inset: 0; }
.sx-page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.sx-page-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 14, 0.15), rgba(18, 16, 14, 0.7)); }
.sx-page-hero__copy { position: relative; z-index: 1; padding: 5.5rem 8vw 2.6rem; }
.sx-page-hero__copy p:last-child { color: rgba(244, 239, 232, 0.82); }

.sx-filter {
  display: flex; justify-content: center; gap: 1.6rem;
  padding: 1.1rem; border-bottom: 1px solid var(--sx-line);
  font-size: 0.74rem; letter-spacing: 0.16em;
}
.sx-filter a:hover { color: var(--sx-wine); }

.sx-collection {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem;
  align-items: center; padding: 2.4rem 0;
  border-bottom: 1px solid var(--sx-line);
}
.sx-collection:nth-child(even) { direction: rtl; }
.sx-collection:nth-child(even) > * { direction: ltr; }
.sx-collection__media .sx-frame { aspect-ratio: 4 / 5; }

.sx-about {
  display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 70vh;
}
.sx-about__media img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }
.sx-about__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.sx-manifesto {
  font-family: var(--sx-font-jp);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.7; margin: 0.6rem 0 0;
}
.sx-manifesto em { font-style: normal; color: var(--sx-wine); }
.sx-three { grid-template-columns: repeat(3, 1fr); }
.sx-three article { padding-top: 1rem; border-top: 1px solid var(--sx-gold); }
.sx-three span { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--sx-wine); }

.sx-editorial {
  text-align: center; padding: clamp(4rem, 8vw, 6.5rem) 1.4rem 2.5rem;
}
.sx-editorial .sx-rule { margin-inline: auto; }
.sx-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: 28rem;
}
.sx-feature__media img { width: 100%; height: 100%; object-fit: cover; min-height: 20rem; }
.sx-feature__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 3.6rem);
}
.sx-archive { grid-template-columns: repeat(3, 1fr); }
.sx-card .sx-frame { aspect-ratio: 3 / 2; }
.sx-card p { margin: 0.35rem 0 0; color: var(--sx-muted); font-size: 0.88rem; }

.sx-contact {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem;
}
.sx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.sx-form label { display: grid; gap: 0.35rem; font-size: 0.78rem; letter-spacing: 0.08em; }
.sx-form input, .sx-form select, .sx-form textarea {
  width: 100%; border: 1px solid var(--sx-line); background: #fff;
  padding: 0.7rem 0.75rem;
}
.sx-form input:focus, .sx-form select:focus, .sx-form textarea:focus {
  outline: 1px solid var(--sx-gold); border-color: var(--sx-gold);
}
.sx-wide { grid-column: 1 / -1; }
.sx-success {
  padding: 1.4rem; border: 1px solid var(--sx-gold); background: #fff;
}

.sx-not-found {
  min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.4rem;
}
.sx-not-found b {
  font-family: var(--sx-font-display); font-size: 4rem; color: var(--sx-wine); font-weight: 400;
}

/* Footer */
.sx-footer {
  background: var(--sx-charcoal); color: var(--sx-paper);
  padding: 3.4rem 0 1.4rem;
}
.sx-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(244, 239, 232, 0.12);
}
.sx-footer__logo {
  font-family: var(--sx-font-display); letter-spacing: 0.22em; font-size: 1.1rem;
}
.sx-footer p, .sx-footer a { color: rgba(244, 239, 232, 0.78); }
.sx-footer__jp { font-size: 0.78rem; letter-spacing: 0.08em; }
.sx-footer nav { display: grid; gap: 0.45rem; }
.sx-footer nav a:hover { color: var(--sx-gold); }
.sx-footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 1.1rem; font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(244, 239, 232, 0.55);
}

@media (max-width: 980px) {
  .sx-nav, .sx-mast__place { display: none; }
  .sx-menu-btn { display: block; }
  .sx-mast__bar { grid-template-columns: 1fr auto; }
  .sx-hero,
  .sx-craft,
  .sx-about,
  .sx-feature,
  .sx-faq,
  .sx-contact,
  .sx-collection,
  .sx-footer__grid { grid-template-columns: 1fr; }
  .sx-collection:nth-child(even) { direction: ltr; }
  .sx-hero__mosaic { min-height: 28rem; padding: 0 1rem 1.4rem; }
  .sx-heading--row { flex-direction: column; align-items: flex-start; }
  .sx-materials, .sx-products, .sx-lookbook, .sx-journal, .sx-archive, .sx-three {
    grid-template-columns: 1fr 1fr;
  }
}

.sx-stats { padding: 2.6rem 0 1.1rem; }
.sx-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.sx-stat { text-align: center; }
.sx-stat__value {
  margin: 0;
  font-family: "DM Serif Display", "Zen Old Mincho", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--sx-wine, #6B2C3A);
  line-height: 1;
}
.sx-stat__label { margin: 0.4rem 0 0; font-size: 0.74rem; letter-spacing: 0.12em; color: rgba(18, 16, 14, 0.55); }
.sx-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(18, 16, 14, 0.12);
  padding: 0.9rem 0;
  background: #12100E;
  color: #F4EFE8;
}
.sx-marquee__track {
  display: flex; gap: 1.15rem; width: max-content;
  animation: sx-marquee 28s linear infinite;
  font-size: 0.78rem; letter-spacing: 0.14em; white-space: nowrap;
}
.sx-marquee i { color: #C4A35A; font-style: normal; }
@keyframes sx-marquee { to { transform: translateX(-50%); } }

html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 720px) {
  .sx-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sx-materials, .sx-products, .sx-lookbook, .sx-journal, .sx-archive, .sx-three, .sx-form {
    grid-template-columns: 1fr;
  }
  .sx-hero__mosaic { grid-template-columns: 1fr 1fr; min-height: 22rem; }
  .sx-footer__bottom { flex-direction: column; }
  .sx-hero__actions { flex-wrap: wrap; }
  .sx-btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-marquee__track { animation: none; }
}
