/* SANEI WORLD — Members Salon
   紙白 × 墨 × 万年筆インクブルー。写真が主役、装飾は最小限。 */

:root {
  --paper: #FBFAF7;
  --ink: #17191E;
  --ink-soft: #5A5D66;
  --royal: #1F3A78;
  --brass: #A5854E;
  --mist: #E9E7E0;
  --wine: #8A3140;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- header ---------- */
.site-head {
  text-align: center;
  padding: 44px 20px 8px;
}
.eyebrow {
  font-family: Marcellus, serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--brass);
}
.logo {
  font-family: Marcellus, serif;
  font-weight: 400;
  font-size: clamp(26px, 7vw, 40px);
  letter-spacing: 0.3em;
  margin: 10px 0 2px;
  text-indent: 0.3em; /* letter-spacing の右余白を相殺して視覚中央に */
}
.ink-stroke {
  width: 180px;
  height: 12px;
  color: var(--royal);
  display: block;
  margin: 2px auto 18px;
}
.ink-stroke path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.1s ease-out 0.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ink-stroke path { animation: none; stroke-dashoffset: 0; }
}
.lead {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-soft);
}
.count {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--brass);
}

/* ---------- filters ---------- */
.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--mist);
}
.search {
  width: 100%;
  border: 1px solid var(--mist);
  background: #fff;
  border-radius: 2px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.search::placeholder { color: #A9ACB3; }
.search:focus { outline: 2px solid var(--royal); outline-offset: 1px; border-color: transparent; }

.chips { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  border: 1px solid var(--mist);
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

.selects { display: flex; gap: 8px; margin-top: 10px; }
.selects select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--mist);
  background: #fff;
  border-radius: 2px;
  padding: 9px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
}
.selects select:focus-visible { outline: 2px solid var(--royal); outline-offset: 1px; }

/* ---------- grid ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
.result-line {
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  padding: 16px 2px 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 14px;
  padding-top: 8px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 34px 20px; } }

.card {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  display: block;
  width: 100%;
}
.card:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.card-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--mist);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* 白背景写真を紙に馴染ませる */
}
.card-brand {
  font-family: Marcellus, serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 2px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.compare {
  font-size: 11px;
  color: #A9ACB3;
  text-decoration: line-through;
  text-decoration-color: #C9CBD0;
}
.now { font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; }
.off {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--royal);
  letter-spacing: 0.06em;
}
.card-badges { margin-top: 5px; display: flex; gap: 5px; }
.badge {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border: 1px solid var(--mist);
  color: var(--ink-soft);
  background: #fff;
}
.badge.wake { color: var(--wine); border-color: color-mix(in srgb, var(--wine) 30%, #fff); }

.more-wrap { text-align: center; padding: 40px 0 0; }
.more {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 13px 46px;
  cursor: pointer;
  border-radius: 2px;
}
.more:hover { background: var(--ink); color: var(--paper); }
.more:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(23, 25, 30, 0.55); }
.modal-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 10px 10px 0 0;
}
@media (min-width: 640px) {
  .modal-card {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    max-height: 88dvh;
  }
}
.modal-x {
  position: sticky;
  top: 10px;
  margin-left: calc(100% - 46px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: #fff;
  font-size: 20px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.modal-x:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.modal-img {
  background: #fff;
  display: flex;
  justify-content: center;
  margin-top: -36px;
}
.modal-img img { width: 100%; max-height: 54dvh; object-fit: contain; }
.modal-body { padding: 20px 22px 30px; }
.m-brand {
  font-family: Marcellus, serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.m-name {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.6;
  margin: 4px 0 8px;
}
.m-attrs { font-size: 12.5px; color: var(--ink-soft); }
.m-badges { display: flex; gap: 6px; margin-top: 8px; }
.m-price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.m-compare { font-size: 13px; color: #A9ACB3; text-decoration: line-through; }
.m-now { font-size: 24px; font-weight: 700; }
.m-off { font-size: 12px; font-weight: 700; color: var(--royal); }
.m-note { font-size: 11.5px; color: var(--wine); margin-top: 8px; }
.buy {
  display: block;
  text-align: center;
  background: var(--royal);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 15px;
  border-radius: 2px;
  margin-top: 18px;
}
.buy:hover { background: #16295a; }
.buy:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.m-code { font-size: 10.5px; color: #A9ACB3; margin-top: 12px; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--mist);
  text-align: center;
  padding: 36px 20px 46px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 2;
}
.foot-note { margin-top: 10px; font-size: 10.5px; color: #A9ACB3; }
.foot-sign {
  margin-top: 16px;
  font-family: Marcellus, serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--brass);
}
