/* ==========================================================================
   Switch-it — 革小物ハンドメイド サイト共通スタイル
   ========================================================================== */

:root {
  /* --- カラートークン --- */
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAF9;
  --color-ink: #1A1A18;
  --color-ink-soft: #7A756D;
  --color-leather: #8B5A38;
  --color-leather-deep: #6B4326;
  --color-thread: #4B5D45;
  --color-line: #E8E6E1;
  --color-card: #FFFFFF;
  --shadow-card: 0 10px 24px rgba(26, 26, 24, 0.05);

  /* --- タイポグラフィ --- */
  --font-display: "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 0.6em;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 1.2em;
}

.eyebrow::before,
.eyebrow::after {
  display: none;
}



/* --- 手縫いステッチ・ディバイダー（サイトのシグネチャー要素） ---
   Switch-it の「総手縫い」を象徴する、革の縫い目のようなディバイダー。 */
.stitch-divider {
  height: 6px;
  margin: 0;
  border: none;
  background-image: repeating-linear-gradient(
    58deg,
    var(--color-leather) 0px,
    var(--color-leather) 2px,
    transparent 2px,
    transparent 9px
  );
  opacity: 0.55;
}

.stitch-divider.tight { margin: 48px 0; }

/* --- ヘッダー / ナビ --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

/* --- 価格改定などのお知らせ帯(普段は hidden 属性で非表示) --- */
.price-notice {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
  padding: 12px 24px;
}

.price-notice p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.logo span {
  color: var(--color-leather);
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.site-footer .logo-img {
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-leather);
}

.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
  color: var(--color-ink);
}

.nav-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-leather);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-cta:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- ヒーロー --- */
.hero {
  padding: 64px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  max-width: 30em;
}

.hero .eyebrow {
  justify-content: flex-start;
}

.hero .eyebrow::after { display: none; }

.hero-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.5;
}

.hero-copy p.lead {
  font-size: 1rem;
  max-width: 26em;
}

.hero-actions {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note span { white-space: nowrap; }

/* 写真クラスター（大1点＋小2点のずらし配置） */
.photo-cluster {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.photo-cluster figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-bg-alt);
}

.photo-cluster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-cluster figure:hover img { transform: scale(1.05); }

.cluster-main {
  grid-row: 1 / span 2;
}

.cluster-sub {
  aspect-ratio: 1 / 1;
}

.cluster-sub:first-of-type { margin-top: 34px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn-outline {
  border: 1px solid var(--color-line);
  color: var(--color-ink);
}

.btn-outline:hover {
  border-color: var(--color-leather);
  color: var(--color-leather-deep);
}

/* さりげないテキストリンク（下線がホバーですっと伸びる） */
.btn-text {
  padding: 13px 2px;
  border-radius: 0;
  position: relative;
  color: var(--color-ink);
}

.btn-text::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 8px;
  height: 1px;
  background: var(--color-ink);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-text:hover::after { transform: scaleX(1); }
.btn-text:hover { color: var(--color-leather-deep); }

.btn:active { transform: translateY(1px); }

/* --- 画像プレースホルダー ---
   実際の写真に差し替えるまでの仮表示。<img>タグに置き換えてください。 */
.placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow: hidden; /* 内側の写真がはみ出さないように */
}

/* .placeholder の中に <img> を入れた場合、枠いっぱいにトリミング表示する */
.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  transition: transform 0.5s ease;
}

/* --- セクション共通 --- */
section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 40em;
  margin-bottom: 52px;
}

.section-head h2 { line-height: 1.7; }

.section-head p {
  line-height: 2.1;
  max-width: 32em;
  margin-bottom: 0;
}

/* --- 革・糸の2カラム紹介 --- */
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.material-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 32px;
  min-width: 0;
}

.material-card .swatches {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}

/* --- 色見本（中央揃え・整然と） --- */
.color-section { text-align: center; }

.color-section .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.color-group {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}

.color-group:last-of-type { border-bottom: 1px solid var(--color-line); }

.color-group .color-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  display: block;
  margin-bottom: 8px;
}

.color-group .color-desc {
  font-size: 0.86rem;
  margin: 0 auto 28px;
  max-width: 30em;
  line-height: 1.9;
}

/* 色名を等間隔の格子に整列 */
.color-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.color-line li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-ink);
  min-width: 0;
}

.color-line .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.color-line .dot.light { border-color: var(--color-line); }

/* 糸は細い線で表す */
.color-line.threads .dot {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  border: none;
}

.color-line.threads .dot.light {
  border: 1px solid var(--color-line);
  height: 6px;
}

.color-note {
  max-width: 34em;
  margin: 34px auto 0;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .color-line { grid-template-columns: repeat(5, 1fr); gap: 18px 8px; }
  .color-line li { font-size: 0.72rem; }
  .color-line .dot { width: 22px; height: 22px; }
  .color-line.threads .dot { width: 24px; }
}

@media (max-width: 400px) {
  .color-line { grid-template-columns: repeat(4, 1fr); }
}

/* --- 作品グリッド --- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: start;
}

.item-card {
  display: block;
  min-width: 0; /* グリッド内で画像がはみ出さないようにする */
  transition: transform 0.25s ease;
}

.item-card:hover {
  transform: translateY(-3px);
}

.item-card .placeholder {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  margin-bottom: 14px;
  border-radius: 3px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.item-card h3 {
  font-size: 0.92rem;
  margin-bottom: 2px;
  font-weight: 500;
}

.item-card .item-note {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 4px 0 0;
}

.item-card:hover .placeholder {
  border-color: var(--color-line);
  box-shadow: var(--shadow-card);
}

.item-card:hover .placeholder img {
  transform: scale(1.07);
}

/* ふわっと登場するアニメーション（表示時に順番にずれて浮かび上がる） */
.item-grid .item-card {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUpIn 0.6s ease forwards;
}

.item-grid .item-card:nth-child(1) { animation-delay: 0.05s; }
.item-grid .item-card:nth-child(2) { animation-delay: 0.12s; }
.item-grid .item-card:nth-child(3) { animation-delay: 0.19s; }
.item-grid .item-card:nth-child(4) { animation-delay: 0.26s; }
.item-grid .item-card:nth-child(5) { animation-delay: 0.33s; }
.item-grid .item-card:nth-child(6) { animation-delay: 0.40s; }
.item-grid .item-card:nth-child(7) { animation-delay: 0.47s; }
.item-grid .item-card:nth-child(8) { animation-delay: 0.54s; }
.item-grid .item-card:nth-child(9) { animation-delay: 0.61s; }
.item-grid .item-card:nth-child(10) { animation-delay: 0.68s; }
.item-grid .item-card:nth-child(11) { animation-delay: 0.75s; }
.item-grid .item-card:nth-child(12) { animation-delay: 0.82s; }
.item-grid .item-card:nth-child(13) { animation-delay: 0.89s; }
.item-grid .item-card:nth-child(14) { animation-delay: 0.96s; }
.item-grid .item-card:nth-child(15) { animation-delay: 1.03s; }
.item-grid .item-card:nth-child(16) { animation-delay: 1.10s; }
.item-grid .item-card:nth-child(17) { animation-delay: 1.17s; }
.item-grid .item-card:nth-child(18) { animation-delay: 1.24s; }
.item-grid .item-card:nth-child(19) { animation-delay: 1.31s; }
.item-grid .item-card:nth-child(20) { animation-delay: 1.38s; }
.item-grid .item-card:nth-child(21) { animation-delay: 1.45s; }
.item-grid .item-card:nth-child(22) { animation-delay: 1.52s; }
.item-grid .item-card:nth-child(23) { animation-delay: 1.59s; }

@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

.section-foot {
  margin-top: 36px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

/* --- ショップリンク（Creema / minne / iichi） --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shop-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 30px 24px;
  text-align: center;
  min-width: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-card:hover {
  border-color: var(--color-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.shop-card .shop-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

.shop-card .shop-desc {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

/* --- お問い合わせ カード --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 30px 24px;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contact-card h3 { margin-bottom: 10px; }

.contact-card .btn { margin-top: 14px; }

/* --- 工房ページ用(未使用の予備クラス) --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-hero .placeholder { aspect-ratio: 4 / 3; }

.stat-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.stat {
  font-family: var(--font-display);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--color-leather-deep);
}

.stat span {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
}

/* ==========================================================================
   商品詳細ページ
   ========================================================================== */

/* --- 上部の余白と、パンくず --- */
.page-hero { padding: 56px 0 40px; }

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-ink-soft);
  margin-bottom: 44px;
}

.breadcrumb a:hover { color: var(--color-leather-deep); }

/* --- 写真と情報の2カラム --- */
.item-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: start;
}

.item-hero > * { min-width: 0; }

/* 情報側はスクロールに追従して読みやすく */
.item-info {
  position: sticky;
  top: 108px;
}

/* --- 写真 --- */
.photo-main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
  position: relative;
}

.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-main:hover img { transform: scale(1.03); }

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-main:hover .zoom-hint { opacity: 1; }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.35s ease;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover { opacity: 0.82; }

.thumb.is-active { opacity: 1; }

.thumb.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-ink);
}

/* --- 商品情報 --- */
.item-info .eyebrow { margin-bottom: 1.6em; }

.item-info h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.item-info h1 small {
  display: block;
  margin-top: 10px;
  font-size: 0.56em;
  letter-spacing: 0.14em;
  color: var(--color-ink-soft);
}

.item-info .price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  margin: 0 0 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line);
}

.item-info > p {
  line-height: 2.15;
  margin-bottom: 1.7em;
  max-width: 30em;
}

/* --- 仕様 --- */
.spec-list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.spec-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 24px;
  padding: 18px 0;
  font-size: 0.86rem;
  line-height: 1.85;
  border-bottom: 1px solid var(--color-line);
}

.spec-list .spec-label {
  width: auto;
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* --- 購入まわり --- */
.item-purchase { margin-top: 56px; }

.item-purchase h3 {
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.item-purchase > p {
  font-size: 0.84rem;
  line-height: 1.95;
  margin-bottom: 20px;
  max-width: 30em;
}

.item-purchase .shop-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

/* 未出品のストアがある作品用に、2列で表示 */
.item-purchase .shop-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 320px;
}

.item-purchase .shop-card {
  padding: 24px 16px;
  border-radius: 0;
}

.item-purchase .shop-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-ink);
}

.item-purchase .shop-name {
  font-size: 1rem;
  margin-bottom: 4px;
}

.item-purchase .shop-desc { font-size: 0.72rem; }

/* --- ページ下部 --- */
.item-foot {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

@media (max-width: 900px) {
  .page-hero { padding: 36px 0 24px; }
  .breadcrumb { margin-bottom: 28px; }
  .item-hero { grid-template-columns: 1fr; gap: 44px; }
  .item-info { position: static; }
  .item-purchase { margin-top: 40px; }
  .item-foot { margin-top: 64px; }
}

@media (max-width: 520px) {
  .thumb-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .spec-list li { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .item-purchase .shop-grid { grid-template-columns: 1fr; }
  .item-purchase .shop-grid.cols-2 { grid-template-columns: 1fr; max-width: none; }
}

/* --- サイズ・容量バリエーションの選択 --- */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}

.variant-card {
  border: 1px solid var(--color-line);
  border-radius: 0;
  padding: 22px 14px;
  text-align: center;
  min-width: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.variant-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-ink);
  background: var(--color-bg-alt);
}

.variant-card .variant-cap {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.variant-card .variant-price {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
}

@media (max-width: 520px) {
  .variant-grid { grid-template-columns: 1fr; }
}

/* --- フッター --- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.footer-shops {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- ページ共通ヒーロー（ギャラリー/工房/お問い合わせ） --- */
.page-hero {
  padding: 64px 0 40px;
}

.page-hero .lead {
  max-width: 34em;
  line-height: 2.1;
}

/* --- レスポンシブ --- */
@media (max-width: 860px) {
  .hero { padding: 40px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: none; }
  .about-hero { grid-template-columns: 1fr; }
  .item-hero { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px 24px 16px;
  }

  .site-header.open .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .site-header.open .nav-cta {
    display: inline-block;
    margin: 16px 24px 20px;
  }
}

@media (max-width: 520px) {
  .photo-cluster { gap: 10px; }
  .cluster-sub:first-of-type { margin-top: 18px; }
  .hero-note { gap: 12px; font-size: 0.72rem; }
  .logo-img { height: 26px; }
  .site-footer .logo-img { height: 30px; }
  .wrap { padding: 0 18px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-bar { gap: 24px; }
  .thumb-row { gap: 8px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 36px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .spec-list li { flex-direction: column; gap: 2px; }
  .spec-list .spec-label { width: auto; font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .item-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition: none !important;
    animation: none !important;
  }
  .item-grid .item-card { opacity: 1; transform: none; }
  .photo-set figure { opacity: 1; transform: none; }
  .photo-set:hover figure::after { opacity: 0; }
}

/* --- キーボードフォーカス --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-leather);
  outline-offset: 2px;
}
/* ==========================================================================
   トップページ：写真と文章が左右交互に流れる帯
   ========================================================================== */

/* --- 導入は文字だけ。中央に静かに置く --- */
/* --- 写真と文章が左右交互に並ぶ帯 --- */
.band {
  display: grid;
  color: inherit;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.band:last-of-type { border-bottom: 1px solid var(--color-line); }

.band-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.band:hover .band-photo img { transform: scale(1.04); }

.band-text {
  padding: 88px clamp(32px, 6vw, 96px);
}

.band-text h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.9rem);
  line-height: 1.7;
  margin-bottom: 18px;
  line-break: strict;
}

.band-text .band-meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-leather);
  margin-bottom: 18px;
  display: block;
}

.band-text p { max-width: 25em; line-height: 2.05; margin-bottom: 1.6em; line-break: strict; }

/* 偶数番目は写真と文章を入れ替える */
.band:nth-child(even) .band-photo { order: 2; }
.band:nth-child(even) .band-text { order: 1; }

/* --- 締めの一言 --- */
.closing {
  text-align: center;
  padding: 88px 0;
}

.closing h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 20em;
  margin: 0 auto 20px;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .intro { padding: 56px 0 44px; }
  .band { grid-template-columns: 1fr; }
  .band-photo { aspect-ratio: 16 / 10; }
  .band:nth-child(even) .band-photo { order: 0; }
  .band:nth-child(even) .band-text { order: 0; }
  .band-text { padding: 44px 24px 56px; }
  .closing { padding: 56px 0; }
}

/* --- 工房名を掲げる部分（トップの導入） --- */
.studio-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.16em;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.studio-name-en {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 26px;
}

/* --- 導入の下に置く写真の並び（現案のクラスターを流用） --- */
/* --- 導入：左に文章、右に大小3枚の写真 --- */
.intro {
  text-align: left;
  padding: 88px 0 132px;
}

.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro .intro-copy { max-width: 30em; }

.intro .studio-name,
.intro .studio-name-en,
.intro h1,
.intro .lead { text-align: left; }

/* --- 工房名を縦の細線で受ける --- */
.intro .studio-name {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
}

.intro .studio-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 1px;
  background: var(--color-leather);
  transform: scaleY(0);
  transform-origin: top;
  animation: lineDrop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes lineDrop { to { transform: scaleY(1); } }

.intro .studio-name-en {
  padding-left: 20px;
  margin-bottom: 34px;
}

/* --- 見出しを大きく、1行ずつ現れる --- */
.intro h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.intro h1 .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.intro h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: lineUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro h1 .line:nth-child(1) > span { animation-delay: 0.25s; }
.intro h1 .line:nth-child(2) > span { animation-delay: 0.40s; }

@keyframes lineUp { to { transform: translateY(0); } }

/* 「手」の一字だけ革色にして視線を集める */
.intro h1 em {
  font-style: normal;
  color: var(--color-leather);
}

/* --- 説明文とボタンは少し遅れて --- */
.intro .lead,
.intro .hero-actions {
  opacity: 0;
  animation: copyIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro .lead {
  margin: 0 0 28px;
  max-width: 25em;
  animation-delay: 0.62s;
  line-break: strict;
  overflow-wrap: break-word;
}

.intro .hero-actions {
  justify-content: flex-start;
  margin-top: 0;
  animation-delay: 0.76s;
}

@keyframes copyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro h1 .line > span,
  .intro .studio-name::before { transform: none; animation: none; }
  .intro .lead,
  .intro .hero-actions { opacity: 1; animation: none; }
}

/* 4枚の写真をきっちり整列。動きで表情をつける */
.photo-set {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-set figure {
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
  position: relative;

  /* 順番にふわりと現れる */
  opacity: 0;
  transform: translateY(18px);
  animation: photoIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.photo-set figure:nth-child(1) { animation-delay: 0.10s; }
.photo-set figure:nth-child(2) { animation-delay: 0.22s; }
.photo-set figure:nth-child(3) { animation-delay: 0.34s; }
.photo-set figure:nth-child(4) { animation-delay: 0.46s; }

@keyframes photoIn {
  to { opacity: 1; transform: translateY(0); }
}

.photo-set img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1枚にカーソルを合わせると、その1枚だけが浮かび上がる */
.photo-set figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.photo-set:hover figure::after { opacity: 0.42; }
.photo-set figure:hover::after { opacity: 0; }
.photo-set figure:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .intro { padding: 48px 0 56px; }
  .intro .wrap { grid-template-columns: 1fr; gap: 40px; }
  .intro .intro-copy { max-width: none; }
  .photo-set { gap: 10px; }
}

@media (max-width: 520px) {
  .photo-set { gap: 8px; }
  .photo-caption { font-size: 0.66rem; }
}

/* --- フッターの工房名 --- */
.footer-studio {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  margin: 12px 0 6px;
}

/* --- スクロールで現れる動き --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 帯は写真と文章がわずかに時間差で現れる */
.band .band-text { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   写真に重ねる文字（作品名 / キャッチ）
   ========================================================================== */

.photo-set figure { position: relative; }

/* --- 各写真の作品名（ホバーで下から浮かぶ） --- */
.photo-tag {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  padding: 14px 16px 26px;
  background: linear-gradient(to bottom,
    rgba(26, 26, 24, 0.60) 0%,
    rgba(26, 26, 24, 0.20) 58%,
    rgba(26, 26, 24, 0) 100%);
  color: #FFFFFF;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.photo-set figure:hover .photo-tag {
  opacity: 1;
  transform: translateY(0);
}

/* 触れて操作する端末では常に表示 */
@media (hover: none) {
  .photo-tag { opacity: 1; transform: none; }
}

/* --- 写真に重ねるキャッチ --- */
.photo-set-wrap { position: relative; }

.overlay-catch {
  position: absolute;
  left: -104px;
  bottom: -52px;
  z-index: 3;
  pointer-events: none;
  margin: 0;
  background: rgba(238, 225, 199, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px 26px 20px 22px;
  border-left: 2px solid var(--color-leather);
  opacity: 0;
  animation: catchIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.overlay-catch .catch-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  white-space: nowrap;
}

.overlay-catch .catch-sub {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--color-ink-soft);
  text-transform: none;
  white-space: nowrap;
}

@keyframes catchIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .overlay-catch {
    left: -12px;
    bottom: -40px;
    padding: 16px 22px 16px 18px;
  }
}

@media (max-width: 520px) {
  .overlay-catch { left: -8px; bottom: -34px; padding: 13px 16px 13px 14px; }
  .overlay-catch .catch-main { font-size: 0.92rem; }
  .overlay-catch .catch-sub { font-size: 0.6rem; letter-spacing: 0.06em; }
  .photo-tag { font-size: 0.66rem; padding: 11px 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-catch { opacity: 1; animation: none; }
  .photo-tag { transition: none; }
}

/* ==========================================================================
   写真の拡大表示（ライトボックス）
   ========================================================================== */

.item-photos { min-width: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  animation: lbFade 0.3s ease;
}

.lightbox[hidden] { display: none; }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  margin: 0;
  max-width: min(940px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lb-img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  animation: lbZoom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lbZoom {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-caption {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
  text-align: center;
  max-width: 34em;
  line-height: 1.85;
}

.lb-close,
.lb-prev,
.lb-next {
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink);
  transition: border-color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  border-color: var(--color-ink);
  background: var(--color-bg-alt);
}

.lb-close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lb-prev,
.lb-next {
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  line-height: 1;
}

.lb-counter {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--color-ink-soft);
  margin: 0;
}

@media (max-width: 640px) {
  .lightbox { padding: 18px; gap: 6px; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 1.4rem; }
  .lb-img { max-height: 62vh; }
  .lb-close { top: 16px; right: 18px; width: 38px; height: 38px; }
}

/* ==========================================================================
   工房ページ
   ========================================================================== */

/* --- 冒頭の一文（大きく掲げる） --- */
.about-statement {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin: 8px 0 36px;
  padding-left: 24px;
  border-left: 2px solid var(--color-leather);
}

/* --- 冒頭(右上に写真、大小を組んだ構成) --- */
.about-intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-copy { min-width: 0; }

@media (max-width: 780px) {
  .about-intro .wrap { grid-template-columns: 1fr; gap: 28px; }
  .about-intro-photo { order: -1; }
}

/* --- 写真帯(上に横長1枚、下に2枚並べる) --- */
.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-stack figure {
  margin: 0;
  aspect-ratio: 12 / 13;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.photo-stack figure:nth-child(1) {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 1;
}

.photo-stack figure:nth-child(1) img {
  object-position: center bottom;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 番号つきの制作工程 --- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
}

.process-list > li {
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
  position: relative;
}

/* 最後の工程だけ横いっぱいに広げて締めくくる */
.process-list > li:nth-child(5) {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--color-line);
}

.process-list > li:nth-child(5) .process-body p { max-width: 62em; }

/* 番号を大きく、薄く置いて目印にする */
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-line);
  margin-bottom: 18px;
  transition: color 0.4s ease;
}

.process-list > li:hover .process-num { color: var(--color-leather); }

.process-body h3 {
  font-size: 1.14rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 14px;
}

/* 見出しの下に短い線を添える */
.process-body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--color-leather);
}

.process-body p {
  max-width: none;
  line-height: 2.2;
  margin-bottom: 0;
}

.process-body p + p { margin-top: 1.2em; }

/* 専門用語を目立たせる */
.process-term {
  color: var(--color-leather-deep);
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px dotted var(--color-line);
  padding-bottom: 1px;
}

/* --- 2枚組の解説 --- */
.about-materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.about-materials > div { min-width: 0; }

.material-photo {
  margin: 0 0 24px;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.material-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-materials h3 {
  font-size: 1.08rem;
  letter-spacing: 0.07em;
  line-height: 1.7;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--color-line);
  position: relative;
}

/* 見出し左端に短い革色の線を重ねる */
.about-materials h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--color-leather);
}

.about-materials p {
  line-height: 2.2;
  margin-bottom: 1.2em;
}

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

/* --- 引用のように見せる一言 --- */
.about-quote {
  max-width: 28em;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 2.15;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  position: relative;
  padding-top: 40px;
}

/* 一言の上に細い縦線を添える */
.about-quote::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 26px;
  background: var(--color-leather);
}

.about-quote-sub {
  display: block;
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--color-ink-soft);
}

@media (max-width: 780px) {
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-list > li { padding: 32px 0; }
  .process-list > li:nth-child(5) .process-body p { max-width: none; }
  .process-num { font-size: 1.6rem; margin-bottom: 12px; }
  .about-materials { grid-template-columns: 1fr; gap: 44px; }
  .about-statement { padding-left: 18px; }
}
