/* =========================================================
   Y＆N LeatherWorks — 共通スタイル
   色やフォントは :root の変数を変えると全体に反映されます
   ========================================================= */
:root {
  --forest-900: #1d2213;
  --forest-800: #283019;
  --forest-700: #363f24;
  --forest-600: #49552d;
  --moss-500:   #707b50;
  --moss-300:   #bcc4a1;
  --leather:    #a8743f;
  --leather-dk: #7d5228;
  --brass:      #c9a86a;
  --cream:      #f4efe4;
  --paper:      #faf7f0;
  --ink:        #1d1f1b;
  --ink-soft:   #555a50;
  --line:       #ddd5c4;

  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans:  "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en:    "Cormorant Garamond", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.4; margin: 0 0 .6em; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.en { font-family: var(--font-en); font-style: italic; letter-spacing: .08em; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--forest-700); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--leather); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--cream);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.site-header.is-solid,
body:not([data-hero="dark"]) .site-header {
  background: rgba(250, 247, 240, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: grid; text-decoration: none; }
.logo__img { grid-area: 1 / 1; height: 34px; width: auto; transition: opacity .4s var(--ease); }
.logo__img--color { opacity: 0; }
.site-header.is-solid .logo__img--color,
body:not([data-hero="dark"]) .logo__img--color { opacity: 1; }
.site-header.is-solid .logo__img--white,
body:not([data-hero="dark"]) .logo__img--white { opacity: 0; }
@media (max-width: 600px) { .logo__img { height: 28px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .88rem; padding: 8px 12px; border-radius: 99px;
  transition: background .2s;
}
.nav a:hover { background: rgba(127, 127, 127, .14); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--leather); border-radius: 2px; margin-top: 2px;
}
.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; text-decoration: none;
}
.cart-btn:hover { background: rgba(127, 127, 127, .14); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--leather); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s, opacity .3s; }

@media (max-width: 1120px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest-800); color: var(--cream);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav a { font-size: 1.05rem; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--brass); }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px; border-radius: 99px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .08em;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--forest-600); color: var(--cream); }
.btn--primary:hover { background: var(--forest-700); }
.btn--leather { background: var(--leather); color: #fff; }
.btn--leather:hover { background: var(--leather-dk); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(127,127,127,.1); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { text-decoration: none; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--forest-800); color: var(--cream); }
.eyebrow { display: block; font-family: var(--font-en); font-style: italic; font-size: 1.05rem; color: var(--leather); letter-spacing: .14em; margin-bottom: .4em; }
.section--dark .eyebrow { color: var(--brass); }
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head .section-title { margin: 0; }
.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-soft); max-width: 40em; }
.section--dark .lead { color: var(--moss-300); }

/* ページ見出し（トップ以外） */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(112,123,80,.18), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: var(--ink-soft); margin: 0; }
.breadcrumb { font-size: .8rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- スクロール出現 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* =========================================================
   スクロール連動シーン（Appleサイト風）
   .scene の高さ分スクロールする間、中の .scene__sticky が画面に留まり、
   JSが進み具合 --p（0〜1）を書き込みます。CSS側はその値で変化させます。
   ========================================================= */
.scene { position: relative; height: calc(var(--len, 3) * 100vh); --p: 0; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* --- ① トップのヒーロー --- */
.hero { --len: 2.6; background: var(--forest-900); color: var(--cream); }
.hero .scene__sticky { display: grid; place-items: center; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(112,123,80,.35), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(168,116,63,.18), transparent 70%),
    var(--forest-900);
}
.hero__media {
  position: absolute; left: 50%; top: 50%;
  width: min(84vw, 900px, 120vh); aspect-ratio: 1364 / 662;
  transform: translate(-50%, -50%)
             translateY(calc((1 - clamp(0, var(--p), 1)) * 22vh - 4vh))
             scale(calc(.35 + clamp(0, var(--p), 1) * .5));
  opacity: calc((var(--p) - .12) * 2.6);
  will-change: transform, opacity;
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(201,168,106,.12));
  transform: perspective(1200px) rotateX(calc(18deg - clamp(0, var(--p), 1) * 18deg)) rotate(calc(-4deg + clamp(0, var(--p), 1) * 4deg));
}
/* 財布の背後にうっすら光の輪 */
.hero__media::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,168,106,.22), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.hero__copy, .hero__copy2 {
  position: relative; text-align: center; padding: 0 var(--gutter);
  grid-area: 1 / 1;
}
.hero__copy {
  opacity: calc(1 - var(--p) * 3);
  transform: translateY(calc(var(--p) * -140px)) scale(calc(1 - clamp(0, var(--p), 1) * .2));
}
.hero__logo { margin: 0 auto .9em; width: min(62vw, 340px); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.25)); }
.hero__copy p { font-family: var(--font-serif); font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .2em; color: var(--cream); margin: 0; }
.hero__copy h1 { font-size: clamp(2rem, 6.4vw, 4.6rem); margin: 0 0 .3em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero__copy p { font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--moss-300); }
.hero__copy2 {
  align-self: end; margin-bottom: 9vh;
  opacity: calc((var(--p) - .55) * 3.5);
  transform: translateY(calc((1 - var(--p)) * 60px));
}
.hero__copy2 .en { font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--brass); display: block; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .3em; opacity: calc(.8 - var(--p) * 6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px; background: currentColor;
  animation: hint 1.8s var(--ease) infinite; transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* --- ② 文字が灯っていく一文 --- */
.statement { --len: 2; background: var(--forest-800); color: var(--cream); }
.statement .scene__sticky { display: grid; place-items: center; }
.statement__text {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  line-height: 1.7; text-align: center; padding: 0 var(--gutter); max-width: 18em; margin: 0;
}
.statement__text .ch { opacity: .16; transition: opacity .35s, color .35s; }
.statement__text .ch.lit { opacity: 1; }
.statement__text .ch.accent.lit { color: var(--brass); }

/* --- ③ 制作工程：型紙 → 革 → 手縫い → 完成 --- */
.process { --len: 5.2; background: var(--cream); }
.process .scene__sticky { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4vw; padding: var(--header-h) var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.process__steps { position: relative; min-height: 320px; }
.process__step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.process__step.is-active { opacity: 1; transform: none; }
.process__num { font-family: var(--font-en); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; color: var(--leather); opacity: .9; }
.process__step h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin: .3em 0 .5em; }
.process__step p { color: var(--ink-soft); max-width: 26em; }
.process__bar { position: absolute; left: 0; bottom: -40px; width: 100%; max-width: 280px; height: 2px; background: var(--line); }
.process__bar::after { content: ""; position: absolute; inset: 0; background: var(--forest-600); transform-origin: left; transform: scaleX(var(--p)); }
.process__visual svg { width: 100%; height: auto; max-height: 72vh; overflow: visible; }
.pv-pattern { opacity: calc(1 - (var(--p) - .2) * 6); }
.pv-leather { opacity: calc((var(--p) - .17) * 6); }
.pv-knife { opacity: calc(min((var(--p) - .2) * 14, (.42 - var(--p)) * 14)); transform: translateX(calc(clamp(0, (var(--p) - .2) * 5, 1) * 470px)); }
.pv-hole-mask { transform: scaleX(clamp(0, (var(--p) - .4) * 5, 1)); transform-box: fill-box; transform-origin: left; }
.pv-awl { opacity: calc(min((var(--p) - .4) * 14, (.62 - var(--p)) * 14)); transform: translateX(calc(clamp(0, (var(--p) - .4) * 5, 1) * 452px)); }
.pv-stitch-mask { transform: scaleX(clamp(0, (var(--p) - .6) * 5, 1)); transform-box: fill-box; transform-origin: left; }
.pv-needle { opacity: calc(min((var(--p) - .6) * 14, (.82 - var(--p)) * 14)); transform: translateX(calc(clamp(0, (var(--p) - .6) * 5, 1) * 470px)); }
.pv-finish { opacity: calc((var(--p) - .8) * 6); }
@media (max-width: 820px) {
  .process .scene__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 8px; align-content: center; }
  .process__visual { order: -1; }
  .process__visual svg { max-height: 40vh; }
  .process__steps { min-height: 230px; }
  .process__bar { bottom: -14px; }
}

/* --- ④ 横に流れるギャラリー --- */
.hscroll { --len: 3.2; background: var(--forest-900); color: var(--cream); }
.hscroll .scene__sticky { display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.hscroll__head { padding: 0 var(--gutter); max-width: 1280px; width: 100%; margin: 0 auto; }
.hscroll__head h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); margin: 0; }
.hscroll__track {
  display: flex; gap: clamp(16px, 2.5vw, 32px); padding: 0 var(--gutter);
  width: max-content;
  transform: translateX(calc(var(--p) * var(--dist, 0) * -1px));
  will-change: transform;
}
.hcard {
  width: clamp(240px, 30vw, 380px); flex: none; text-decoration: none;
  border-radius: 20px; overflow: hidden; background: var(--forest-800);
  transition: transform .4s var(--ease);
}
.hcard:hover { transform: translateY(-6px); }
.hcard img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.hcard__body { padding: 18px 20px 22px; }
.hcard__body h3 { font-size: 1.1rem; margin: 0 0 4px; }
.hcard__body p { margin: 0; color: var(--moss-300); font-size: .9rem; }
.hcard--text { display: grid; place-items: center; text-align: center; padding: 30px; background: transparent; border: 1px solid rgba(244,239,228,.3); }

/* --- ⑤ トピックページの大きなピックアップ --- */
.pickup { --len: 2.4; background: var(--forest-900); color: var(--cream); }
.pickup .scene__sticky { display: grid; place-items: center; }
.pickup__media {
  position: absolute; left: 50%; top: 50%;
  width: 100vw; height: 100vh;
  transform: translate(-50%, -50%);
  clip-path: inset(calc(clamp(0, var(--p) * 1.6, 1) * 16vh) calc(clamp(0, var(--p) * 1.6, 1) * 38vw) calc(clamp(0, var(--p) * 1.6, 1) * 16vh) calc(clamp(0, var(--p) * 1.6, 1) * 6vw) round calc(clamp(0, var(--p) * 1.6, 1) * 32px));
}
.pickup__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - clamp(0, var(--p), 1) * .1)); }
.pickup__shade { position: absolute; inset: 0; background: linear-gradient(rgba(18,22,11,.45), transparent 22%, transparent 45%, rgba(18,22,11,.75)); opacity: calc(1 - var(--p) * 2); }
.pickup__title {
  position: absolute; left: var(--gutter); bottom: 10vh; right: var(--gutter);
  opacity: calc(1 - var(--p) * 3);
}
.pickup__title h1 { font-size: clamp(2rem, 6vw, 4.4rem); margin: .2em 0 0; }
.pickup__detail {
  position: absolute; right: max(var(--gutter), calc((100vw - 1180px) / 2)); top: 50%;
  width: min(27vw, 340px);
  transform: translateY(calc(-50% + (1 - clamp(0, (var(--p) - .45) * 3, 1)) * 40px));
  opacity: calc((var(--p) - .45) * 3);
}
.pickup__detail h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.pickup__detail p { color: var(--moss-300); }
.pickup__label { display: inline-block; font-size: .75rem; letter-spacing: .2em; border: 1px solid currentColor; border-radius: 99px; padding: 2px 12px; }
@media (max-width: 820px) {
  .pickup__media { clip-path: inset(calc(clamp(0, var(--p) * 1.6, 1) * 10vh) calc(clamp(0, var(--p) * 1.6, 1) * 6vw) calc(clamp(0, var(--p) * 1.6, 1) * 48vh) calc(clamp(0, var(--p) * 1.6, 1) * 6vw) round calc(clamp(0, var(--p) * 1.6, 1) * 24px)); }
  .pickup__media img { object-fit: contain; object-position: 50% 14%; transform: none; }
  .pickup__shade { background: linear-gradient(transparent 55%, rgba(18,22,11,.8)); }
  .pickup__detail { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 8vh; transform: translateY(calc((1 - clamp(0, (var(--p) - .45) * 3, 1)) * 40px)); }
}

/* 動きを減らす設定の人には演出を止めて普通に表示 */
/* =========================================================
   演出なしの表示（html.no-fx）
   端末で「アニメーションを減らす」がオンのとき、または
   ブラウザが演出に対応していないときに、普通の縦並びのページとして表示します。
   ========================================================= */
html.no-fx { scroll-behavior: auto; }
.no-fx .scene { height: auto !important; --p: 1 !important; }
.no-fx .scene__sticky {
  position: relative; top: auto; height: auto; min-height: 0; overflow: visible;
  padding: calc(var(--header-h) + 40px) var(--gutter) 64px;
}
.no-fx .reveal { opacity: 1; transform: none; transition: none; }
.no-fx .scroll-hint { display: none; }
/* ① ヒーロー：ロゴ → 写真 → ボタン の順に縦に並べる */
.no-fx .hero .scene__sticky { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.no-fx .hero__copy, .no-fx .hero__copy2 { position: relative; opacity: 1; transform: none; margin: 0; align-self: center; }
.no-fx .hero__copy { order: 1; }
.no-fx .hero__media { order: 2; position: relative; left: auto; top: auto; transform: none; opacity: 1; width: min(100%, 640px); }
.no-fx .hero__media img { transform: none; }
.no-fx .hero__copy2 { order: 3; }
/* ② 一文 */
.no-fx .statement .scene__sticky { padding-block: 80px; }
/* ③ 制作工程：手順を縦に並べ、完成の図を上に */
.no-fx .process .scene__sticky { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 760px; }
.no-fx .process__visual { order: -1; }
.no-fx .process__visual svg { max-height: 50vh; }
.no-fx .process__steps { min-height: 0; }
.no-fx .process__step { position: relative; opacity: 1; transform: none; margin-bottom: 32px; }
.no-fx .process__bar { display: none; }
/* ④ 作品ギャラリー：指で横にスワイプ */
.no-fx .hscroll .scene__sticky { padding-inline: 0; }
.no-fx .hscroll__track {
  transform: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 12px;
}
.no-fx .hcard { scroll-snap-align: start; width: min(78vw, 360px); }
/* ⑤ トピックのピックアップ：写真の下に説明 */
.no-fx .pickup .scene__sticky { display: block; }
.no-fx .pickup__media {
  position: relative; left: auto; top: auto; transform: none; clip-path: none;
  width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 70vh; border-radius: 20px; overflow: hidden;
}
.no-fx .pickup__media img { transform: none; }
.no-fx .pickup__shade, .no-fx .pickup__title { display: none; }
.no-fx .pickup__detail { position: relative; right: auto; left: auto; top: auto; bottom: auto; width: auto; max-width: 640px; transform: none; opacity: 1; margin-top: 28px; }

/* ---------- 作品カード ---------- */
.grid { display: grid; gap: clamp(18px, 3vw, 36px); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard { text-decoration: none; display: block; }
.pcard__img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { padding: 14px 4px 0; }
.pcard__name { font-family: var(--font-serif); font-size: 1.08rem; margin: 0; }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--ink-soft); font-size: .88rem; }
.price { font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.price small { font-weight: 400; font-size: .75em; color: var(--ink-soft); margin-left: 2px; }
.swatches { display: flex; gap: 5px; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 99px; background: var(--forest-600); color: var(--cream);
}
.badge--order { background: var(--leather); }
.badge--sold { background: #777; }
.badge--prep { background: rgba(29,34,19,.72); }
.badge + .badge { top: 42px; }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 18px;
  cursor: pointer; font-size: .88rem; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--forest-600); }
.chip[aria-pressed="true"] { background: var(--forest-600); border-color: var(--forest-600); color: var(--cream); }
.empty { color: var(--ink-soft); text-align: center; padding: 60px 0; }

/* ---------- 作品詳細 ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { border-radius: 20px; overflow: hidden; background: #e7e3da; aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; cursor: pointer; background: var(--cream); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--forest-600); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .1em; }
.product__en { color: var(--ink-soft); margin-bottom: 1em; }
.product__price { font-size: 1.7rem; font-weight: 700; margin: .4em 0 .2em; }
.product__price small { font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.product__stock { font-size: .88rem; color: var(--forest-600); font-weight: 700; margin-bottom: 1.4em; }
.product__stock.is-order { color: var(--leather-dk); }
.product__stock.is-sold { color: #888; }
.product__stock.is-prep { color: var(--ink-soft); font-weight: 400; }
.price--tbd { font-size: .85em; font-weight: 700; color: var(--leather-dk); letter-spacing: .08em; }
.option-label { font-size: .85rem; font-weight: 700; margin: 1.4em 0 .6em; display: block; }
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: .88rem;
}
.color-opt span.dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.color-opt[aria-pressed="true"] { border-color: var(--forest-600); box-shadow: 0 0 0 1px var(--forest-600); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.qty button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; border-radius: 50%; }
.qty input { width: 48px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: grid; gap: 10px; margin: 26px 0 12px; }
.note { font-size: .82rem; color: var(--ink-soft); }
.spec { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 7em; color: var(--ink-soft); font-weight: 400; }
.details { border-top: 1px solid var(--line); }
.details summary { cursor: pointer; padding: 16px 4px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.details[open] summary::after { transform: rotate(45deg); }
.details > div { padding: 0 4px 18px; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

/* ---------- トースト ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--forest-800); color: var(--cream); padding: 14px 22px; border-radius: 14px;
  display: flex; gap: 16px; align-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  transition: transform .45s var(--ease), opacity .45s; font-size: .92rem; width: max-content; max-width: calc(100vw - 32px);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--brass); font-weight: 700; white-space: nowrap; }

/* ---------- カート・購入 ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--cream); }
.cart-item h3 { font-size: 1rem; margin: 0; }
.cart-item .meta { font-size: .82rem; color: var(--ink-soft); }
.cart-item .qty button { width: 34px; height: 34px; }
.cart-item .qty input { width: 36px; }
.cart-item__side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.remove { background: none; border: 0; color: var(--ink-soft); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.summary { background: var(--cream); border-radius: 20px; padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: 1.3rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item__side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

/* ---------- フォーム ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.req { font-size: .7rem; background: var(--leather); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(73,85,45,.15); }
.field textarea { min-height: 160px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; margin-bottom: 8px; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--forest-600); box-shadow: 0 0 0 1px var(--forest-600); }
.radio-card input { margin-top: 6px; accent-color: var(--forest-600); }
.radio-card small { display: block; color: var(--ink-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 6px; accent-color: var(--forest-600); }
.form-msg { padding: 16px 18px; border-radius: 12px; font-size: .92rem; }
.form-msg.ok { background: #e3eee3; color: var(--forest-700); }
.form-msg.ng { background: #f6e2dc; color: #8a2f1c; }
.hp { position: absolute; left: -5000px; }

/* ---------- トピック・ブログ ---------- */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 8em 7em 1fr; gap: 16px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.news-list a:hover { background: var(--cream); padding-left: 14px; }
.news-list time { color: var(--ink-soft); font-size: .88rem; font-family: var(--font-en); font-size: 1.05rem; }
.news-list h3 { font-size: 1.02rem; margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; padding: 2px 10px; border-radius: 99px; background: var(--cream); color: var(--forest-600); border: 1px solid var(--moss-300); text-align: center; }
.tag--new { background: var(--forest-600); color: var(--cream); border-color: var(--forest-600); }
.tag--event { background: var(--leather); color: #fff; border-color: var(--leather); }
@media (max-width: 640px) {
  .news-list a { grid-template-columns: auto 1fr; }
  .news-list h3 { grid-column: 1 / -1; }
}
.post-card { text-decoration: none; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29,34,19,.1); }
.post-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--forest-600), var(--forest-900)); overflow: hidden; display: grid; place-items: center; color: var(--brass); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img .en { font-size: 1.6rem; }
.post-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card__body h3 { font-size: 1.12rem; margin: 0; }
.post-card__body p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.post-card__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--ink-soft); }

/* 記事本文 */
.article { max-width: 760px; margin: 0 auto; }
.article__cover { border-radius: 20px; overflow: hidden; margin: 0 0 40px; aspect-ratio: 16/9; background: var(--cream); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.04rem; line-height: 2.05; }
.article__body h2 { font-size: 1.4rem; margin: 2.2em 0 .8em; padding-left: 14px; border-left: 3px solid var(--leather); }
.article__body img { border-radius: 14px; margin: 1.6em 0; }
.article__body a { color: var(--forest-600); }
.article__body ul { padding-left: 1.3em; }
.article__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- 工房紹介・ガイド ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split img { border-radius: 20px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.value { padding: 28px; border-radius: 18px; background: var(--forest-700); }
.value .en { color: var(--brass); font-size: 2rem; display: block; line-height: 1; margin-bottom: 10px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--moss-300); font-size: .92rem; margin: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin: 2.4em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { width: 11em; background: var(--cream); font-weight: 700; }
@media (max-width: 600px) { .prose th, .prose td { display: block; width: auto; } .prose th { border-bottom: 0; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }

/* CTA帯 */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
.cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--forest-900); color: var(--moss-300); padding: 72px 0 28px; font-size: .88rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-grid h4 { color: var(--cream); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .2em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo img { width: 132px; height: auto; }
.footer-brand p { margin-top: 14px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 革のステッチ風の区切り線 */
.stitch-line { height: 0; border: 0; border-top: 2px dashed var(--leather); opacity: .45; margin: 0; }

/* ---------- SNSリンク ---------- */
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sns__link {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 10px 20px 10px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.sns__link:hover { border-color: var(--forest-600); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,34,19,.08); }
.sns__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest-600); flex: none; }
.sns__icon svg { width: 18px; height: 18px; }
.sns__link--instagram .sns__icon { background: linear-gradient(45deg, #f2a03d, #d6336c 55%, #7b4fd0); }
.sns__link--facebook .sns__icon { background: #1877f2; }
.sns__link--x .sns__icon { background: #111; }
.sns__text { display: grid; line-height: 1.3; }
.sns__label { font-weight: 700; font-size: .92rem; }
.sns__sub { font-size: .78rem; color: var(--ink-soft); }
.sns--inline { margin-top: 0; }
.sns--inline .sns__link { padding: 4px 14px 4px 4px; gap: 8px; }
.sns--inline .sns__icon { width: 28px; height: 28px; }

/* ---------- お知らせ枠 ---------- */
.notice { background: var(--cream); border-left: 3px solid var(--leather); border-radius: 0 14px 14px 0; padding: 20px 24px; margin-bottom: 40px; font-size: .94rem; }
.notice p:last-child { margin-bottom: 0; }
.notice a, .prose a { color: var(--forest-600); }
.notice-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.notice-list li { position: relative; padding: 16px 18px 16px 46px; background: var(--cream); border-radius: 14px; color: var(--ink-soft); }
.notice-list li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--leather); }
.notice-list strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- 販売準備中の案内 ---------- */
.prep-banner { background: var(--forest-700); color: var(--cream); text-align: center; font-size: .85rem; padding: 10px var(--gutter); }
.prep-banner a { color: var(--brass); }
.prep-box { text-align: center; max-width: 640px; margin: 0 auto; padding: 48px 28px; background: var(--cream); border-radius: 20px; }
.prep-box h2 { font-size: 1.4rem; }
.prep-box p { color: var(--ink-soft); }
.prep-box .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

[hidden] { display: none !important; }

/* ---------- 使用素材 ---------- */
.used-mats { margin: 4px 0 24px; }
.used-mats__list { display: flex; flex-wrap: wrap; gap: 8px; }
.used-mats .chip { text-decoration: none; font-size: .82rem; padding: 5px 14px; }

/* ---------- 制作実績 ---------- */
.work-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; font: inherit; color: inherit; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29,34,19,.1); }
.work-card__img { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; }
.work-card__body { padding: 16px 20px 22px; display: grid; gap: 4px; }
.work-card__body h3 { font-size: 1.1rem; margin: 0; }
.work-card__body p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.work-modal { border: 0; padding: 0; border-radius: 20px; width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--paper); color: var(--ink); }
.work-modal::backdrop { background: rgba(18,22,11,.7); }
.work-modal__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.work-modal__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 28px; }
.work-modal__text h2 { font-size: 1.5rem; margin: .3em 0 .6em; }
@media (max-width: 760px) { .work-modal__inner { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- 素材について ---------- */
.mat-group { padding-top: 24px; margin-bottom: 72px; scroll-margin-top: calc(var(--header-h) + 16px); }
.mat { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.mat--rev .mat__img { order: 2; }
.mat__img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.mat__img img { width: 100%; height: 100%; object-fit: cover; }
.mat__text h3 { font-size: 1.35rem; margin-bottom: .2em; }
.mat__lead { font-family: var(--font-serif); color: var(--leather-dk); font-size: 1.05rem; }
.mat__points { padding-left: 1.2em; color: var(--ink-soft); font-size: .92rem; margin: 0 0 1em; }
.mat__points li { margin-bottom: 4px; }
@media (max-width: 760px) { .mat { grid-template-columns: 1fr; } .mat--rev .mat__img { order: 0; } }
@media (max-width: 820px) { .pickup .scroll-hint { display: none; } }

/* フッターの屋号（別表記） */
.footer-alt { font-size: .75rem; opacity: .6; line-height: 1.7; margin-top: .6em; }

/* Instagram の最新投稿 */
.insta-feed__body { min-height: 120px; }
.insta-feed__more { text-align: center; margin-top: 28px; }
.insta-feed { margin-top: clamp(40px, 6vw, 64px); }
