/* =========================================================
   MELENGE — 頒布会ポータル
   Design language: HIGASHIYA (online.ogata.com) inspired
   全面写真ヒーロー / 縦書き明朝 / 大きな余白 / モノクロ基調 / 極小UI
   ========================================================= */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --paper: #f6f4ef;   /* 生成りの和紙色 */
  --paper-2: #efece4;
  --line: #d8d3c8;
  --white: #ffffff;
  --accent: #7a1c1c;  /* 深い臙脂（えんじ）— 差し色に極少量だけ */

  --serif-jp: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --serif-lat: "Cormorant Garamond", "Times New Roman", serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-jp);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  z-index: 50;
  mix-blend-mode: difference; /* 写真の上でも読める */
  color: #fff;
}
.brand {
  font-family: var(--serif-lat);
  font-size: 22px;
  letter-spacing: 0.42em;
  font-weight: 500;
  padding-left: 0.42em;
}
.nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  font-size: 12px;
  letter-spacing: 0.28em;
}
.nav a { opacity: 0.85; transition: opacity .3s; }
.nav a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, #cfc9bd 0%, #a89f90 55%, #6f665a 100%);
}
.hero__figure {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* 骨格段階：写真差し替え時は --hero-img を index 側で指定 */
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 45%);
}
.hero__title {
  position: relative;
  z-index: 2;
  margin: 0 clamp(28px, 7vw, 120px) 0 0;
  writing-mode: vertical-rl;
  color: #fff;
  text-shadow: 0 1px 30px rgba(0,0,0,.28);
}
.hero__title .h {
  font-size: clamp(34px, 5.2vw, 60px);
  letter-spacing: 0.22em;
  font-weight: 500;
  line-height: 1.25;
}
.hero__title .sub {
  margin-top: 1.4em;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.34em;
  opacity: 0.92;
  font-weight: 400;
}
.hero__lat {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  z-index: 2;
  color: #fff;
  font-family: var(--serif-lat);
  font-size: 12px;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

/* ---------- section frame ---------- */
.section { padding: clamp(72px, 12vh, 148px) var(--gutter); }
.section--wrap { max-width: var(--maxw); margin-inline: auto; }

.sec-head { text-align: center; margin-bottom: clamp(40px, 7vh, 84px); }
.sec-head .lat {
  font-family: var(--serif-lat);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1.4em;
}
.sec-head .jp {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.2em;
  font-weight: 500;
}
.sec-head .lead {
  margin: 1.8em auto 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.2;
}

/* ---------- about (頒布会とは) ---------- */
.about { background: var(--paper-2); }
.about__grid {
  max-width: 900px; margin-inline: auto;
  display: grid; gap: clamp(28px, 5vw, 60px);
  grid-template-columns: 1fr;
}
.about__lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 2.4;
  text-align: center;
  color: var(--ink);
}
.about__note {
  font-size: 14px; color: var(--ink-soft); line-height: 2.1;
  max-width: 680px; margin-inline: auto; text-align: center;
}

/* ---------- filter ---------- */
.filter {
  display: flex; justify-content: center; gap: 6px;
  margin-bottom: clamp(36px, 6vh, 64px);
  flex-wrap: wrap;
}
.filter button {
  appearance: none; border: 1px solid var(--line); background: transparent;
  font-family: var(--serif-jp); color: var(--ink-soft);
  padding: 9px 22px; font-size: 13px; letter-spacing: 0.18em;
  cursor: pointer; transition: all .3s; border-radius: 999px;
}
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ---------- cards ---------- */
.cards {
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.3); }
.card__thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eae5db, #d7d0c2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card__thumb .mark {
  font-family: var(--serif-lat);
  font-size: 40px; letter-spacing: 0.1em; color: #b7ac99;
  opacity: 0.55;
}
.card__cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.22em; color: #fff;
  background: rgba(26,26,26,.72); padding: 5px 11px;
}
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__shop {
  font-size: 11px; letter-spacing: 0.24em; color: var(--ink-faint);
  margin-bottom: 8px;
}
.card__name {
  font-size: 19px; letter-spacing: 0.08em; margin: 0 0 4px;
  font-weight: 500;
}
.card__founded { font-size: 11px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 16px; }
.card__lead { font-size: 13.5px; color: var(--ink-soft); line-height: 2.0; flex: 1; }
.card__meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.card__price { font-size: 13px; letter-spacing: 0.08em; }
.card__cadence { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.16em; }
.card__cta {
  margin-top: 20px; font-family: var(--serif-lat);
  font-size: 12px; letter-spacing: 0.3em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.card__cta::after { content: "→"; transition: transform .3s; }
.card:hover .card__cta::after { transform: translateX(5px); }

/* ---------- waitlist ---------- */
.waitlist {
  background: var(--ink); color: var(--paper);
  text-align: center;
}
.waitlist .sec-head .lat, .waitlist .sec-head .jp { color: var(--paper); }
.waitlist .sec-head .lat { color: #b7ac99; }
.waitlist__lead { max-width: 560px; margin: 0 auto 2.6em; color: #cfc9bd; font-size: 15px; line-height: 2.2; }
.wform { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.wform input {
  flex: 1; background: transparent; border: 1px solid #565149;
  color: var(--paper); padding: 14px 18px; font-size: 14px;
  font-family: var(--serif-jp); letter-spacing: 0.06em;
}
.wform input::placeholder { color: #8a857b; }
.wform button {
  background: var(--paper); color: var(--ink); border: none;
  padding: 0 26px; font-family: var(--serif-jp); font-size: 14px;
  letter-spacing: 0.2em; cursor: pointer; transition: opacity .3s;
}
.wform button:hover { opacity: 0.82; }
.wform__done { color: #cfc9bd; font-size: 15px; letter-spacing: 0.1em; }
.waitlist__fine { margin-top: 1.8em; font-size: 11px; color: #8a857b; letter-spacing: 0.1em; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-2);
  padding: clamp(48px, 8vh, 80px) var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
}
.footer__brand { font-family: var(--serif-lat); font-size: 20px; letter-spacing: 0.4em; }
.footer__tag { font-size: 12px; color: var(--ink-faint); margin-top: 12px; letter-spacing: 0.14em; }
.footer__meta { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.12em; text-align: right; line-height: 2; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { justify-content: center; }
  .hero__title { margin-right: 0; }
  .wform { flex-direction: column; }
  .wform button { padding: 14px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}
