/* KAHORI
   Design tokens measured from faruta.com (2026-08-05): serif headings at
   weight 400, a near-monochrome warm palette, one navy accent, square corners.
   Colour lives in the photographs, never in the interface. */

:root {
  --bg:     #ffffff;
  --bg-alt: #f4f4f4;
  --dark:   #353333;
  --text:   #423934;
  --muted:  #b9b7ab;
  --accent: #0e364e;
  --rule:   #e4e2dc;

  /* Libre Baskerville is the reference. These are the closest faces already
     installed on the visitor's machine — no external font request, which keeps
     the privacy policy on this site true. */
  --serif: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino,
           Georgia, "Times New Roman", serif;
  --sans: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
          Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

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

/* Keyboard focus — visible on every interactive element. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero :focus-visible,
.site-head :focus-visible,
.site-foot :focus-visible { outline-color: #fff; }

/* Skip link — clipped out of view until focused, then pinned to the top-left. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 0.85rem 1.4rem;
  overflow: visible;
  clip-path: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.15rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.45rem); margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-top: 2rem; }

p { margin: 0 0 1.15rem; }

/* Small uppercase label. Used for every kicker, nav item and button. */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.kicker.center { text-align: center; }

.lead { color: #6d635c; font-size: 1.05rem; margin: 0; }
.center { text-align: center; }

.link-underline {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  padding: 1.6rem var(--pad);
  transition: background-color .35s ease, padding .35s ease,
              box-shadow .35s ease, backdrop-filter .35s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav a { color: var(--muted); text-decoration: none; padding-bottom: 3px; }
.site-nav a:hover { color: #fff; }
.site-nav a.current { color: #fff; border-bottom: 1px solid var(--muted); }
.site-nav .lang { color: #fff; opacity: 0.65; }

/* ---------- bands ---------- */

.band { padding: var(--band) var(--pad); background: var(--bg); }
.band.alt { background: var(--bg-alt); }

.prose { max-width: 40rem; margin-inline: auto; }
.prose.narrow { max-width: 36rem; }
.center-prose { max-width: 38rem; margin: 0 auto; text-align: center; }
.prose ul { margin: 0 0 1.15rem; padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

.page-head { max-width: 40rem; margin: 0 auto 3rem; }
.page-head .lead { margin-top: 0.4rem; }

.page-prose { padding: 0 var(--pad) var(--band); max-width: calc(40rem + 2 * var(--pad)); margin-inline: auto; }

/* ---------- hero ---------- */

/* スクロールで背景がつくヘッダー。ヒーローの上では透過 */
.site-head.is-scrolled {
  background: rgba(28, 24, 22, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
/* ヒーローのないページは最初から背景あり */
body:not(.has-hero) .site-head { background: rgba(28, 24, 22, 0.94); }

/* ヒーロー画像が明るい柄のため、スクロール前でもナビが読めるよう
   ヘッダー背後に薄いスクリムを敷く */
body.has-hero .site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28,24,22,0.6), rgba(28,24,22,0));
  pointer-events: none;
  transition: opacity .35s ease;
}
body.has-hero .site-head.is-scrolled::before { opacity: 0; }

body.has-hero main { padding-top: 0; }
body:not(.has-hero) main { padding-top: 5.2rem; }
@media (prefers-reduced-motion: reduce) { .site-head { transition: none; } }

.hero {
  position: relative;
  min-height: min(88vh, 48rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--pad);
  background: var(--dark) url("/images/hero.jpg?v=2") center / cover no-repeat;
  text-align: center;
}

/* 横長のhero.jpgは縦長スマホ画面だとcoverで縦を全部映してしまい、
   帯状の柄だけが見えて「寝ている」ように見える。縦構図の別カットに差し替える */
@media (max-width: 640px) {
  .hero {
    background-image: url("/images/hero-mobile.jpg?v=2");
    background-position: top center;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,24,22,0.58), rgba(28,24,22,0.52) 45%, rgba(28,24,22,0.82));
}

.hero-inner {
  position: relative;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: #fff;
  margin-bottom: 1rem;
}

.hero-line {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin: 0 0 2.5rem;
  color: #fff;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.btn:hover { opacity: 0.82; }

.btn .dot { opacity: 0.5; margin: 0 0.3em; }

.btn.ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn.ghost-light:hover { background: #fff; color: var(--dark); opacity: 1; }

.btn.disabled {
  background: transparent;
  border-color: var(--rule);
  color: var(--muted);
  cursor: default;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ---------- product grid ---------- */

/* auto-fit (not auto-fill) collapses the empty tracks, so a row of two pieces
   sits centred instead of stranded against the left edge. The 19rem cap stops a
   lone card stretching across a wide screen. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 19rem));
  justify-content: center;
  gap: clamp(1.75rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
  max-width: 78rem;
  margin: 0 auto;
}

.grid + .center { margin-top: 3.5rem; }

.card { text-decoration: none; display: block; }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

/* The photographs are flat-lays of a whole garment, not model shots. `contain`
   keeps the silhouette intact; `cover` would cut the hem and the sleeves off.
   Switch to `cover` once worn shots exist. */
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
}

/* 写真がまだ届いていないピース。灰色の穴に見えないよう、和紙色の面に
   細い枠と一行を置いて「撮影中」であることを見せる。 */
.card-media .noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, #f3f1ea 0%, #e9e5db 55%, #e3ded2 100%);
}

.card-media .noimg::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(28, 24, 22, 0.10);
}

.card-media .noimg span {
  position: relative;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9c9284;
  text-align: center;
  padding: 0 1.5rem;
}

.card:hover .card-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
}

.badge.sold { background: var(--dark); color: #fff; }

.card-body { display: block; padding-top: 1rem; }

.card-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-sub {
  display: block;
  font-size: 12px;
  color: #8a8178;
  margin-top: 0.2rem;
}

.price { display: block; margin-top: 0.45rem; font-size: 13px; letter-spacing: 0.02em; }
.price.soon { color: var(--muted); font-style: italic; }

/* ---------- brand story ---------- */

.story {
  border-left: 2px solid var(--dark);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 40rem;
  margin-inline: auto;
}

.story p:last-child { margin-bottom: 0; }

/* ---------- product page ---------- */

.back { padding: 1.75rem var(--pad) 0; }

.back a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.back a:hover { color: var(--text); }

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 1.5rem var(--pad) var(--band);
}

@media (min-width: 58rem) {
  .product { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .product-info { position: sticky; top: 2rem; }
}

.product-media figure { margin: 0 0 0.75rem; }
.product-media .noimg { aspect-ratio: 3 / 4; background: #ebe9e3; }

.product-info h1 { margin-bottom: 0.35rem; }
.price.big { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 1.75rem; }

.actions { margin-bottom: 2.25rem; }

.unique {
  background: var(--bg-alt);
  padding: 1.5rem 1.6rem;
  margin-bottom: 2.25rem;
}

.unique p:last-child { margin-bottom: 0; font-size: 13.5px; line-height: 1.65; }

/* accordions — plain <details>, no JavaScript */

.acc { border-top: 1px solid var(--rule); }
.acc:last-of-type { border-bottom: 1px solid var(--rule); }

.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 15px; color: var(--muted); }
.acc[open] summary::after { content: "–"; }

.acc-body { padding-bottom: 1.4rem; }
.acc-body > :last-child { margin-bottom: 0; }

.specs { margin: 0; }

.spec {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
}

.spec + .spec { border-top: 1px solid var(--rule); }
.spec dt { font-size: 12px; color: #8a8178; }
.spec dd { margin: 0; font-size: 14px; }

@media (max-width: 34rem) {
  .spec { grid-template-columns: 1fr; gap: 0.1rem; }
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.meta a { color: var(--muted); }
.meta a:hover { color: var(--text); }

/* ---------- form ---------- */

.form { padding: 0 var(--pad); max-width: calc(34rem + 2 * var(--pad)); margin-inline: auto; }

/* `display: block` below would otherwise beat the UA rule for [hidden]. */
.form label[hidden] { display: none; }

.form label {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8178;
}

.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea { resize: vertical; }

.fine {
  font-size: 12px;
  color: #8a8178;
  line-height: 1.6;
}

.fine.narrow { padding: 1.5rem var(--pad) var(--band); max-width: calc(34rem + 2 * var(--pad)); margin-inline: auto; }

/* ---------- editorial imagery (non-product) ---------- */
/* Stock photographs used only for atmosphere, never for a piece. Colour still
   lives in the photograph; the caption stays in the quiet serif voice. */

/* Full-bleed band: one photograph with a short line laid over its foot.
   Sits between the prose bands on the home page. */
.editorial {
  position: relative;
  min-height: min(56vh, 32rem);
  margin: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--band) var(--pad);
  background: var(--dark) center / cover no-repeat;
}

.editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,24,22,0.02) 40%, rgba(28,24,22,0.58));
}

.editorial figcaption {
  position: relative;
  max-width: 32rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  line-height: 1.45;
}

/* Inset figure dropped into a prose column. */
.editorial-figure { margin: 2.75rem auto 0; max-width: 40rem; }
.editorial-figure img { width: 100%; height: auto; }

.editorial-figure figcaption,
.page-figure figcaption {
  margin-top: 0.7rem;
  font-size: 12px;
  line-height: 1.6;
  color: #8a8178;
  font-style: italic;
}

/* Lead image under the header of a simple page. */
.page-figure { margin: 0 auto 3rem; max-width: 62rem; }
.page-figure img { width: 100%; height: auto; }

/* ---------- footer ---------- */

.site-foot { background: var(--dark); color: var(--muted); padding: var(--band) var(--pad) 2.5rem; }

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-col.right { text-align: right; margin-left: auto; }

.site-foot .kicker { color: var(--muted); }

.foot-mail { display: block; font-size: 13px; color: #fff; text-decoration: none; margin-bottom: 1rem; }
.foot-mail:hover { opacity: 0.75; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: flex-end; }

.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.foot-nav a:hover { color: #fff; }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
  margin: 3rem 0 1.5rem;
}

.site-foot .fine { text-align: center; color: rgba(255, 255, 255, 0.4); margin: 0; }

@media (max-width: 40rem) {
  .foot-col.right { text-align: left; margin-left: 0; }
  .foot-nav { justify-content: flex-start; }
}
