/* ==========================================================
   NOÉ atelier — アクセサリー EC（制作サンプル）
   ========================================================== */

/* ---------- 変数 ---------- */
:root {
  --bg: #ffffff;
  --surface: #f5f3ef;
  --ink: #1a1a1a;
  --ink-soft: rgba(26, 26, 26, 0.68);
  --brass: #a8843f;
  --rule: #e3ded5;

  --serif: "Bodoni Moda", "Noto Sans JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(96px, 12vw, 168px);
  --hh: 72px;
  --hero-h: clamp(520px, calc(100svh - 112px), 920px);
  --wrap-max: 1680px;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--pad); }
.nb { display: inline-block; }

/* ---------- 現れる動き（JS が動かなければ常に見える） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .product-grid .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
  .js .product-grid .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
  .js .product-grid .reveal:nth-child(4n+4) { transition-delay: 0.24s; }
}

/* ==========================================================
   お知らせ帯
   ========================================================== */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  padding: 10px var(--pad);
}

/* ==========================================================
   ヘッダー（EC型）
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-row {
  height: var(--hh);
  padding-inline: var(--pad);
  max-width: 1920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.primary-nav { height: 100%; }
.nav-list { display: flex; gap: clamp(20px, 2.6vw, 44px); height: 100%; }
.nav-list > li { display: flex; align-items: stretch; }
.nav-link {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-list > li:hover > .nav-link::after,
.nav-list > li:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-mobile { display: none !important; }

.logo {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
}
.logo span { font-style: italic; letter-spacing: 0.08em; font-size: 0.72em; margin-left: 0.2em; }

.utility { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 32px); }
.util-link { font-size: 12px; letter-spacing: 0.1em; padding: 6px 0; border-bottom: 1px solid transparent; }
.util-link:hover { border-bottom-color: var(--ink); }
.cart-count { font-family: var(--serif); letter-spacing: 0.04em; }

.menu-btn { display: none; }

/* ---------- メガメニュー ---------- */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.mega-inner {
  max-width: 1920px;
  margin-inline: auto;
  padding: 48px var(--pad) 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(300px, 1.3fr);
  gap: clamp(24px, 4vw, 72px);
}
.mega-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brass);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.mega-col li a { display: inline-block; font-size: 13px; line-height: 2.5; letter-spacing: 0.06em; }
.mega-col li a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mega-promo { display: flex; align-items: flex-end; gap: 24px; justify-self: end; }
.mega-promo img { width: clamp(150px, 13vw, 210px); height: auto; background: var(--surface); aspect-ratio: 5 / 6; object-fit: cover; }
.mega-promo-text { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.mega-promo-label { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft); }
.mega-promo-title { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.mega-promo-link { font-size: 12px; border-bottom: 1px solid var(--ink); align-self: flex-start; padding-bottom: 2px; margin-top: 8px; }

/* ==========================================================
   共通：節・見出し
   ========================================================== */
.section { padding-block: var(--sec); }

/* 細い罫線と小さな英字見出し */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.sec-ja {
  display: inline-block;
  margin-left: 1.2em;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.sec-all { font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.sec-all:hover { border-bottom-color: var(--ink); }

.line-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: letter-spacing 0.3s ease;
}
.line-link:hover { letter-spacing: 0.22em; }

/* ==========================================================
   Hero（2枚組・右が少し下がる）
   ========================================================== */
.hero {
  display: grid;
  grid-template-columns: 60fr 40fr;
  align-items: start;
  padding-bottom: 40px;
  max-width: 1920px;
  margin-inline: auto;
}
.hero-photo { height: var(--hero-h); overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.hero-panel {
  margin-top: 80px;
  min-height: calc(var(--hero-h) - 40px);
  background: var(--surface);
  padding: clamp(28px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
}
.hero-label {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hero-label .dash { color: var(--brass); margin-inline: 0.4em; }
.en-it { font-style: italic; }
.hero-thumb {
  width: clamp(150px, 15vw, 280px);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  align-self: flex-end;
}
.hero-copy { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 {
  font-size: clamp(32px, 3.6vw, 62px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.08em;
}
.hero-lead { font-size: 14px; line-height: 2; color: var(--ink-soft); max-width: 34em; }

/* ==========================================================
   カテゴリ（丸い写真の横並び）
   ========================================================== */
.section-cat { padding-bottom: calc(var(--sec) * 0.6); }
.cat-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(128px, 15vw, 230px);
  justify-content: space-between;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.cat-list > li { scroll-snap-align: start; }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.cat-img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; }
.cat-ja { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft); }

/* ==========================================================
   商品カード
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.filter {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 7px 18px;
  border: 1px solid var(--rule);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(36px, 4vw, 64px) clamp(14px, 1.8vw, 28px);
}

.card { min-width: 0; }
.card-media { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; margin-bottom: 16px; }
.card-photo { position: absolute; inset: 0; display: block; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 1.2s ease; }
.card-photo .img-b { opacity: 0; }
.card-media:hover .img-b,
.card-media:focus-within .img-b { opacity: 1; }
.card-media:hover .img-a { transform: scale(1.03); }

.tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 6px 9px 5px;
}

.add {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 14px 8px;
  text-align: center;
  transform: translateY(101%);
  transition: transform 0.4s ease;
}
.add-plus { display: none; }
.card-media:hover .add,
.card-media:focus-within .add { transform: none; }
.add:hover { background: var(--brass); }

.card-name { font-size: 14px; font-weight: 400; letter-spacing: 0.06em; line-height: 1.6; }
.card-name a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card-mat { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; line-height: 1.7; margin-top: 2px; }
.card-price { font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em; margin-top: 8px; }

/* ==========================================================
   Lookbook（面の色・非対称モザイク）
   ========================================================== */
.section-look { background: var(--surface); }
.section-look .sec-head { border-bottom-color: #d9d3c7; }
.look-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 8vw;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 64px);
}
.look-lead {
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-wrap: balance;
}
.look-text { max-width: 36em; color: var(--ink-soft); font-size: 14px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(110px, 15vw, 250px);
  gap: clamp(8px, 1.2vw, 16px);
}
.m { position: relative; overflow: hidden; background: var(--bg); }
.m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.m:hover img { transform: scale(1.04); }
.m1 { grid-column: 1 / 6;   grid-row: 1 / 5; }
.m2 { grid-column: 6 / 10;  grid-row: 1 / 3; }
.m3 { grid-column: 10 / 13; grid-row: 1 / 4; }
.m4 { grid-column: 6 / 10;  grid-row: 3 / 5; }
.m5 { grid-column: 10 / 13; grid-row: 4 / 5; }

.m-over::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.62), rgba(26, 26, 26, 0) 60%);
  pointer-events: none;
}
.m-over figcaption {
  position: absolute;
  left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 2vw, 26px); right: 16px;
  z-index: 1;
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.m-en { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.06em; line-height: 1.3; }
.m-ja { font-size: 12px; letter-spacing: 0.12em; }

/* ==========================================================
   Best Sellers（横に流れる列）
   ========================================================== */
.section-best { padding-inline: 0; overflow: hidden; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rail-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.js .rail-ctrl { display: flex; }
.rail-ctrl { display: none; }

.rail {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.rail-item { flex: 0 0 clamp(220px, 23vw, 340px); scroll-snap-align: start; }
.rank { margin-bottom: 10px; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.rank-no { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--brass); letter-spacing: 0.04em; }

/* ==========================================================
   素材とお手入れ
   ========================================================== */
.mat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); }
.mat { display: grid; grid-template-columns: clamp(110px, 12vw, 180px) 1fr; gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.mat-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.mat-en { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--brass); letter-spacing: 0.12em; margin-bottom: 6px; }
.mat-title { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.6; letter-spacing: 0.08em; margin-bottom: 14px; }
.mat-body p { font-size: 14px; max-width: 36em; color: var(--ink-soft); }
.care-list { margin-top: 18px; border-top: 1px solid var(--rule); }
.care-list li { font-size: 13px; line-height: 1.8; padding: 10px 0; border-bottom: 1px solid var(--rule); letter-spacing: 0.05em; }

/* ==========================================================
   Journal（横長の行）
   ========================================================== */
.journal-list > li { border-bottom: 1px solid var(--rule); }
.j-row {
  display: grid;
  grid-template-columns: clamp(96px, 10vw, 150px) 1fr clamp(150px, 16vw, 260px);
  gap: clamp(16px, 3vw, 56px);
  align-items: center;
  padding-block: clamp(20px, 2.4vw, 36px);
}
.j-date { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; align-self: start; padding-top: 4px; }
.j-cat { font-family: var(--serif); font-size: 11px; letter-spacing: 0.2em; color: var(--brass); margin-bottom: 4px; }
.j-title { font-size: clamp(16px, 1.6vw, 22px); font-weight: 400; line-height: 1.7; letter-spacing: 0.06em; margin-bottom: 6px; }
.j-row:hover .j-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.j-excerpt { font-size: 13px; color: var(--ink-soft); max-width: 38em; }
.j-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }

/* ==========================================================
   ニュースレター
   ========================================================== */
.section-news { background: var(--surface); padding-block: clamp(80px, 10vw, 140px); }
.news-inner { max-width: 640px; margin-inline: auto; padding-inline: var(--pad); text-align: center; }
.news-en { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 0.16em; color: var(--brass); margin-bottom: 12px; }
.news-title { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.7; letter-spacing: 0.08em; margin-bottom: 36px; }
.news-form { display: flex; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--ink); }
.news-input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 0; font-size: 15px; letter-spacing: 0.06em; }
.news-input::placeholder { color: var(--ink-soft); }
.news-input:focus { outline: none; }
.news-form:focus-within { border-bottom-width: 2px; }
.news-btn { font-size: 13px; letter-spacing: 0.18em; padding: 12px 0; white-space: nowrap; }
.news-btn:hover { color: var(--brass); }
.news-note { font-size: 12px; color: var(--ink-soft); margin-top: 18px; line-height: 1.9; }

/* ==========================================================
   フッター
   ========================================================== */
.site-footer { border-top: 1px solid var(--rule); padding-top: clamp(56px, 6vw, 96px); padding-bottom: 32px; }
.foot-top { display: grid; grid-template-columns: minmax(240px, 1fr) 2.6fr; gap: clamp(32px, 6vw, 96px); }
.foot-logo { font-family: var(--serif); font-size: 26px; letter-spacing: 0.22em; line-height: 1; margin-bottom: 20px; }
.foot-logo span { font-style: italic; font-size: 0.72em; letter-spacing: 0.08em; }
.foot-text { font-size: 12px; line-height: 2; color: var(--ink-soft); }
.foot-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.foot-head { font-size: 12px; font-weight: 400; letter-spacing: 0.12em; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); line-height: 1.6; text-wrap: balance; }
.foot-col li a { display: inline-block; font-size: 12px; line-height: 2.4; letter-spacing: 0.06em; color: var(--ink-soft); }
.foot-col li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.foot-bottom {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft);
}
.credit a { border-bottom: 1px solid var(--rule); }
.credit a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ==========================================================
   タブレット以下
   ========================================================== */
@media (max-width: 1100px) {
  .mega-inner { grid-template-columns: repeat(3, 1fr); }
  .mega-promo { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --hh: 60px; }

  /* ヘッダー：左メニュー・中央ロゴ・右かご */
  .header-row { grid-template-columns: 1fr auto 1fr; }
  .logo { grid-column: 2; grid-row: 1; }
  .menu-btn {
    grid-column: 1; grid-row: 1;
    display: inline-flex; align-items: center; gap: 10px;
    justify-self: start; align-self: center;
    font-size: 12px; letter-spacing: 0.1em;
    padding: 10px 0;
  }
  .menu-btn-bars { width: 20px; height: 8px; position: relative; display: block; }
  .menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform 0.3s ease, top 0.3s ease; }
  .menu-btn-bars::before { top: 0; }
  .menu-btn-bars::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-btn-bars::before { top: 3px; transform: rotate(25deg); }
  .menu-btn[aria-expanded="true"] .menu-btn-bars::after { top: 3px; transform: rotate(-25deg); }
  .menu-btn-label { display: none; }
  .utility { grid-column: 3; grid-row: 1; }
  .util-search, .util-fav { display: none; }

  /* ナビ：JS なしなら下に並べる、JS ありならドロワー */
  .primary-nav { grid-column: 1 / -1; grid-row: 2; height: auto; padding-bottom: 12px; }
  .nav-list { flex-direction: column; gap: 0; height: auto; }
  .nav-list > li { display: block; }
  .nav-mobile { display: block !important; }
  .nav-link { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-link::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; border: 0; transition: none; }
  .mega-inner { grid-template-columns: 1fr 1fr; padding: 16px 0 8px; gap: 8px 24px; }
  .mega-col:nth-child(3) { grid-column: 1 / -1; }
  .mega-col li a { line-height: 2.3; }

  .js .header-row { grid-template-rows: var(--hh); }
  .js .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    height: calc(100svh - var(--hh));
    overflow-y: auto;
    padding: 12px var(--pad) 96px;
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .js .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .no-menu-btn { display: none; }
  html:not(.js) .menu-btn { display: none; }

  /* ヒーロー：縦に積む */
  .hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-photo { height: auto; aspect-ratio: 4 / 4.6; }
  .hero-panel { margin-top: 0; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 28px var(--pad) 48px; }
  .hero-label { width: 100%; }
  .hero-thumb { width: 34%; align-self: flex-start; order: 2; }
  .hero-copy { flex: 1 1 52%; margin-top: 0; order: 1; min-width: 220px; }

  .look-intro { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; gap: 56px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card-name { font-size: 13px; }
  .card-mat { font-size: 11px; }
  .card-price { font-size: 14px; }
  .rail-item { flex-basis: 62vw; }
  .rank-no { font-size: 24px; }

  /* タッチでは「かごに入れる」を常に小さな＋に */
  .add {
    left: auto; right: 8px; bottom: 8px;
    width: 34px; height: 34px;
    padding: 0;
    display: grid; place-items: center;
    transform: none;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--rule);
    font-size: 16px;
  }
  .add-label { display: none; }
  .add-plus { display: block; line-height: 1; }

  /* モザイク：2列 */
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 8px; }
  .m1, .m2, .m3, .m4, .m5 { grid-column: auto; grid-row: auto; }
  .m1 { grid-column: 1 / -1; aspect-ratio: 4 / 4.6; }
  .m2, .m3 { aspect-ratio: 3 / 4; }
  .m4 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .m5 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  .j-row { grid-template-columns: 1fr 96px; grid-template-areas: "date img" "body img"; gap: 6px 16px; align-items: start; }
  .j-date { grid-area: date; font-size: 13px; }
  .j-body { grid-area: body; }
  .j-img { grid-area: img; grid-row: 1 / 3; aspect-ratio: 1; }
  .j-excerpt { display: none; }

  .mat { grid-template-columns: 96px 1fr; }
  .hero-panel { padding-bottom: 40px; }
  .sec-ja { display: block; margin-left: 0; margin-top: 4px; }
}

@media (max-width: 520px) {
  .mega-inner { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .news-form { flex-direction: row; }
  .cat-list { justify-content: start; }
}

/* ホバーできない端末では「かごに入れる」を小さな＋で常時表示 */
@media (hover: none) {
  .add {
    left: auto; right: 8px; bottom: 8px;
    width: 34px; height: 34px;
    padding: 0;
    display: grid; place-items: center;
    transform: none;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--rule);
    font-size: 16px;
  }
  .add-label { display: none; }
  .add-plus { display: block; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
