/* ============================================================
   yoused-vintage — Main CSS
   Design: Figma (aFossdsQ4QCeKC2klgU3p0)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Josefin+Sans:wght@300;400&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg:          #FFFFFF;  /* メイン背景 */
  --color-white:       #FFFFFF;  /* カード・ボタン背景 */
  --color-beige:       #FAFAFA;  /* サブ背景・プレースホルダー */
  --color-beige-light: #F5F5F5;  /* 薄いサブ背景 */
  --color-black:       #000000;
  --color-gray:        #888888;  /* テキスト補助 */
  --color-gray-light:  #E0E0E0;  /* 濃いプレースホルダー・仕切り */
  --color-rust:        #AAAAAA;  /* アクセント（ダーク背景上のグレー） */
  --color-cyan:        #00C0E8;  /* CTA hover */
  --color-border:      #E8E8E8;  /* ボーダー */
  --color-tan:         #E0E0E0;  /* プレースホルダー */

  /* オーバーレイ（黒半透明） */
  --overlay-72:     rgba(10, 10, 10, 0.72);
  --overlay-50:     rgba(10, 10, 10, 0.50);
  --overlay-40:     rgba(10, 10, 10, 0.40);
  --overlay-28:     rgba(10, 10, 10, 0.28);
  --overlay-20:     rgba(10, 10, 10, 0.20);
  --overlay-08:     rgba(10, 10, 10, 0.08);
  --overlay-06:     rgba(10, 10, 10, 0.06);

  /* ドットナビ非アクティブ（白半透明） */
  --dot-inactive:   rgba(255, 255, 255, 0.40);

  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Josefin Sans', Arial, sans-serif;

  --max-width:      1440px;
  --side-padding:   80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* iOS Safari の bfcache 復元時にスクロールが固まる問題への対策 */
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: var(--color-bg);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* オフスクリーン画像のレイアウト・ペイント計算を遅延させ、
     特にモバイルでスクロール時の負荷を軽減する */
  content-visibility: auto;
}

/* ============================================================
   01 / ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background-color: var(--color-black);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.announcement-bar__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.announcement-bar__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.3em;
  color: var(--color-beige);
  padding-right: 80px;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   02 / HEADER
   ============================================================ */
.site-header {
  background-color: var(--color-bg);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--side-padding);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ハンバーガー（常時表示・左） */
.site-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  justify-self: start;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-black);
  transition: all 0.3s;
}

/* ロゴ（中央） */
.site-header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  gap: 3px;
}

.logo-wordmark {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.logo-you {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: #4a6fa5;
  letter-spacing: 0.08em;
}

.logo-sed {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: 0.08em;
}

.logo-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 8px;
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* ロゴ画像サイズ・位置は functions.php の yoused_logo_inline_css() で出力 */
.site-header__logo-img {
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* 右：SEARCH */
.site-header__actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  position: relative;        /* 検索ドロップダウンを top:100% で真下に配置するため */
}

.site-header__action {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--color-black);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.site-header__action:hover {
  opacity: 0.45;
}

/* ============================================================
   SITE SEARCH DROPDOWN
   ヘッダー右の SEARCH ボタン直下に展開（.site-header__actions が relative）
   ============================================================ */
.site-search-overlay {
  position: absolute;
  top: 100%;                                /* SEARCH ボタンを含む actions の真下 */
  right: 0;                                 /* SEARCH ボタンの右端に揃える */
  margin-top: 8px;                          /* ヘッダーボーダーと少し離す */
  width: 400px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--color-border);
  z-index: 110;                             /* ヘッダー(100)より上、ロゴ・ハンバーガーは隠れない */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.site-search-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-search {
  position: relative;
  padding: 0;
}

.site-search__form {
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.site-search__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--color-black);
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.site-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.site-search__input::placeholder {
  color: #000000;
  font-weight: 300;
}

.site-search__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #000000;
  transition: color 0.15s;
}

.site-search__close:hover { color: var(--color-black); }

.site-search__suggestions {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}

.site-search__suggestions.is-visible { display: block; }

.site-search__suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #f4f3f0;
  font-family: var(--font-sans);
  color: var(--color-black);
  text-decoration: none;
  transition: background 0.15s;
}

.site-search__suggestion:hover,
.site-search__suggestion:focus {
  background: #fafafa;
  outline: none;
}

.site-search__suggestion:last-child { border-bottom: none; }

.site-search__suggestion-label {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-search__suggestion-sub {
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #000000;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-search__empty {
  padding: 16px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: #000000;
}

@media (max-width: 640px) {
  /* モバイルではアクションコンテナの右端から最大幅まで広がる */
  .site-search-overlay {
    width: 320px;
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================
   DRAWER NAV
   ============================================================ */

/* オーバーレイ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ドロワー本体 */
.drawer-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.drawer-nav.is-open {
  transform: translateX(0);
}

/* ヘッダー（×ボタン） */
.drawer-nav__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 24px;
  border-bottom: 1px solid #EEEDEA;
}

.drawer-nav__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.drawer-nav__close:hover {
  opacity: 0.45;
}

/* メニュー本体 */
.drawer-nav__body {
  flex: 1;
  padding: 8px 0 24px;
}

/* トップレベルリンク */
.drawer-nav__link {
  display: block;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #000000;
  border-bottom: 1px solid #EEEDEA;
  transition: opacity 0.2s;
}

.drawer-nav__link:hover {
  opacity: 0.5;
}


/* サブメニュー付きグループ */
.drawer-nav__group {
  border-bottom: 1px solid #EEEDEA;
}

.drawer-nav__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s;
}

.drawer-nav__label:hover {
  opacity: 0.5;
}

.drawer-nav__plus {
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}

.drawer-nav__label[aria-expanded="true"] .drawer-nav__plus {
  transform: rotate(45deg);
}

/* サブメニュー */
.drawer-nav__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f8f6;
}

.drawer-nav__sub.is-open {
  max-height: 400px;
}

.drawer-nav__sub-item {
  display: block;
  padding: 12px 32px 12px 44px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #000000;
  transition: opacity 0.2s;
}

.drawer-nav__sub-item:hover {
  opacity: 0.6;
}

/* 中カテゴリ（depth 1）に子がある場合のネストアコーディオン */
.drawer-nav__sub-group {
  border-top: 1px solid #e8e7e4;
}

.drawer-nav__sub-group:first-child {
  border-top: none;
}

.drawer-nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 32px 11px 44px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s;
}

.drawer-nav__sub-toggle:hover {
  opacity: 0.6;
}

.drawer-nav__sub-toggle[aria-expanded="true"] .drawer-nav__plus {
  transform: rotate(45deg);
}

/* 小カテゴリ（depth 2） */
.drawer-nav__sub-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f2f1ef;
}

.drawer-nav__sub-sub.is-open {
  max-height: 400px;
}

.drawer-nav__sub-sub-item {
  display: block;
  padding: 10px 32px 10px 56px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #000000;
  transition: opacity 0.2s;
}

.drawer-nav__sub-sub-item:hover {
  opacity: 0.6;
}

/* フッター */
.drawer-nav__footer {
  padding: 24px 32px;
  border-top: 1px solid #EEEDEA;
}

.drawer-nav__instagram {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  transition: opacity 0.2s;
}

.drawer-nav__instagram:hover {
  opacity: 0.5;
}

/* ============================================================
   03 / HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 100vh; /* fallback */
  height: 100dvh;
  min-height: 600px;
  background-color: var(--color-black);
  overflow: hidden;
  /* 縦パンはブラウザに任せ、横スワイプは JS が拾う。
     iOS/Android 共通でジェスチャー競合を減らし、スワイプ反応を安定化。 */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* --- スライド --- */
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider__placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-beige);
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--overlay-72) 0%,
    var(--overlay-20) 100%
  );
}

/* --- コンテンツ --- */
.hero-slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-slider__content-inner {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-slider__headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 120px;
  line-height: 0.933;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: 56px;
}

.hero-slider__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 0 24px;
  height: 54px;
  width: 220px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.4em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.hero-slider__cta-btn:hover {
  background-color: var(--color-cyan);
  color: var(--color-white);
}

/* --- 黒グラデーション（下部50%・濃いめ） --- */
.hero-slider__bottom-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0)   100%
  );
  pointer-events: none;
  z-index: 5;            /* 既存スライド/オーバーレイより確実に上 */
}

/* --- コピーテキスト（左下） --- */
.hero-slider__copy {
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 3;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0.9;
  pointer-events: none;
}

.hero-slider__copy span {
  display: block;
}

@media (max-width: 640px) {
  .hero-slider__copy {
    left: 24px;
    bottom: 110px; /* スクロール誘導/ドットを避ける */
    font-size: clamp(24px, 7vw, 36px);
  }
}

/* --- スクロール誘導（下中央・クリック可） --- */
.hero-slider__scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 11;
  background: none;
  border: none;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
  opacity: 0.7;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s, transform 0.2s;
  animation: yousedHeroScrollHint 2s ease-in-out infinite;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);  /* 明るい画像でも視認しやすく */
}

.hero-slider__scroll-indicator:hover,
.hero-slider__scroll-indicator:focus-visible {
  opacity: 1;
  outline: none;
}

@keyframes yousedHeroScrollHint {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 2px); }
}

@media (max-width: 640px) {
  .hero-slider__scroll-indicator { bottom: 70px; font-size: 34px; }
}

/* --- ドットナビゲーション --- */
.hero-slider__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dot-inactive);
  border: none;
  cursor: pointer;
  padding: 0;
  /* 明るいヒーロー画像で白ドットが飛ぶのを防ぐ微弱な影 */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-slider__dot.is-active {
  background-color: var(--color-bg);
  transform: scale(1.6);
}

/* ============================================================
   04 / ONE OF A KIND（横スクロール / 一覧性重視）
   ============================================================ */
.one-of-a-kind {
  background-color: #ffffff;
  padding: 96px 0 112px;
}

.one-of-a-kind__header {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.one-of-a-kind__header--with-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.one-of-a-kind__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.211;
  letter-spacing: -0.019em;
  color: var(--color-black);
  margin: 0;
}

.one-of-a-kind__view-all {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.one-of-a-kind__view-all:hover {
  color: var(--color-black);
}

.one-of-a-kind__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-bottom: 8px;
}
.one-of-a-kind__scroll::-webkit-scrollbar { display: none; height: 0; }
.one-of-a-kind__scroll.is-grabbing { cursor: grabbing; }

.one-of-a-kind__track {
  display: flex;
  gap: 40px;
  padding: 0 var(--side-padding) 0 var(--side-padding);
  /* 右端を見切れさせるため、右だけ少し抑えて次カードを覗かせる */
  padding-right: calc(var(--side-padding) * 0.4);
  width: max-content;
}

/* カード余白サイズ（カスタマイザー: ook_card_gap） */
.one-of-a-kind--gap-sm .one-of-a-kind__track { gap: 24px; }
.one-of-a-kind--gap-md .one-of-a-kind__track { gap: 40px; }
.one-of-a-kind--gap-lg .one-of-a-kind__track { gap: 64px; }

.ook-card {
  flex: 0 0 auto;
  width: clamp(240px, 22vw, 320px);
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-select: none;
}

.ook-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ook-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-beige);
  overflow: hidden;
  margin-bottom: 16px;
  transition: filter 0.4s ease;
}

.ook-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  -webkit-user-drag: none;
}

.ook-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-beige);
}

/* ---- カード内画像スライダー（複数画像時のみ） ---- */
.ook-card__media--slider {
  cursor: grab;
  /* 縦スワイプはネイティブスクロール、横は JS が制御 */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ook-card__media--slider.is-dragging {
  cursor: grabbing;
}

.ook-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ook-card__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* スライダー内 img はポインタイベントを受けない（ドラッグは media が受ける） */
.ook-card__media--slider img {
  pointer-events: none;
}

/* ドラッグ中はホバーの scale(1.04) を打ち消す */
.ook-card__media--slider.is-dragging img {
  transition: none;
  transform: none !important;
}

/* ドットインジケーター */
.ook-card__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* ドットがある場合は media と name の間隔を調整 */
.ook-card:has(.ook-card__dots) .ook-card__media {
  margin-bottom: 8px;
}

.ook-card__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.ook-card__dot.is-active {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.25);
}

/* ---- 矢印ナビ（前/次の画像） ---- */
.ook-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.25s ease, transform 0.2s ease;
  /* 親 [data-ook-slider] の touch-action: pan-y を上書きしてタップを安定化 */
  touch-action: manipulation;
}

.ook-card__nav--prev { left: 10px; }
.ook-card__nav--next { right: 10px; }

.ook-card__nav:hover {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.85);
}

.ook-card__nav:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
}

/* 端のスライドでは該当方向のボタンを非表示 */
.ook-card__nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
}

/* ドラッグ中は矢印を一時的に薄く（誤操作防止 / 視覚ノイズ低減） */
.ook-card__media--slider.is-dragging .ook-card__nav {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ook-card__nav {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .ook-card__nav--prev { left: 6px; }
  .ook-card__nav--next { right: 6px; }
}

.ook-card a:hover .ook-card__media,
.ook-card a:focus-visible .ook-card__media {
  filter: brightness(0.9);
}

.ook-card a:hover .ook-card__media img,
.ook-card a:focus-visible .ook-card__media img {
  transform: scale(1.04);
}

.ook-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-black);
  margin: 0 0 4px;
}

.ook-card__price {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

@media (max-width: 1024px) {
  .one-of-a-kind {
    padding: 72px 0 88px;
  }
  .one-of-a-kind--gap-sm .one-of-a-kind__track { gap: 16px; }
  .one-of-a-kind--gap-md .one-of-a-kind__track { gap: 24px; }
  .one-of-a-kind--gap-lg .one-of-a-kind__track { gap: 40px; }
  .ook-card {
    width: clamp(200px, 32vw, 280px);
  }
}

@media (max-width: 768px) {
  .one-of-a-kind {
    padding: 56px 0 72px;
  }
  .one-of-a-kind__header {
    margin-bottom: 28px;
  }
  .one-of-a-kind__title {
    font-size: 36px;
  }
  .one-of-a-kind__track {
    padding-right: calc(var(--side-padding) * 0.5);
  }
  .one-of-a-kind--gap-sm .one-of-a-kind__track { gap: 12px; }
  .one-of-a-kind--gap-md .one-of-a-kind__track { gap: 16px; }
  .one-of-a-kind--gap-lg .one-of-a-kind__track { gap: 28px; }
  .ook-card {
    width: 62vw;
    max-width: 280px;
  }
  .ook-card__name {
    font-size: 13px;
  }
  .ook-card__price {
    font-size: 10px;
  }
}

/* ============================================================
   04.5 / THE PROCESS（BEFORE / AFTER 比較スライダー）
   ============================================================ */
.the-process {
  background-color: #ffffff;
  padding: 96px 0 112px;
}

.the-process__header {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.the-process__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.211;
  letter-spacing: -0.019em;
  color: var(--color-black);
  margin: 0;
}

.the-process__grid {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

/* 特集カードあり: 5 カラムにして先頭(または特集マークの付いた)カードを 2 カラム占有させる */
.the-process__grid--has-featured {
  grid-template-columns: repeat(5, 1fr);
}

.process-card--large {
  grid-column: span 2;
}

.process-card {
  display: flex;
  flex-direction: column;
}

/* ---- 比較スライダー本体 ---- */
.process-card__compare {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-beige);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  /* タッチ: 縦パン許可。横ドラッグは JS で方向判定して preventDefault */
  touch-action: pan-y;
}

.process-card__compare--single {
  cursor: default;
}

.process-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* AFTER は下層（z-index:1）、BEFORE は上層 + clip-path で左半分のみ表示 */
.process-card__img--after  { z-index: 1; }
.process-card__img--before {
  z-index: 2;
  clip-path:         inset(0 calc(100% - var(--process-compare, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--process-compare, 50%)) 0 0);
}

.process-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-beige);
}

/* ---- ラベル（左右端） ---- */
.process-card__label {
  position: absolute;
  top: 12px;
  z-index: 4;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 9px;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.process-card__label--before { left: 10px; }
.process-card__label--after  { right: 10px; }

/* ---- 中央の縦ライン ---- */
.process-card__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--process-compare, 50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ---- ハンドル（円形） ---- */
.process-card__handle {
  position: absolute;
  top: 50%;
  left: var(--process-compare, 50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.7);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  /* ハンドル上ではブラウザのデフォルトジェスチャを完全停止 */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.process-card__handle:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.process-card__handle.is-dragging {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.process-card__handle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 3px;
}

.process-card__handle-icon {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  color: inherit;
}

/* ---- AFTER 側オーバーレイ（商品情報 + CTA） ----
   AFTER 画像の下半分にだけ表示（clip-path で BEFORE 側を切り落とす）
   テキストは右下寄せ */
.process-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px 18px 14px 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  text-align: right;
  /* AFTER 側（divider より右）のみ表示 */
  clip-path:         inset(0 0 0 var(--process-compare, 50%));
  -webkit-clip-path: inset(0 0 0 var(--process-compare, 50%));
}

.process-card__overlay-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.92);
}

.process-card__overlay-price {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.82);
}

.process-card__overlay-cta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  display: inline-block;
}

/* 特集カード（大）はオーバーレイの文字をやや大きく */
.process-card--large .process-card__overlay {
  padding: 18px 22px 20px;
}
.process-card--large .process-card__overlay-name  { font-size: 18px; }
.process-card--large .process-card__overlay-price { font-size: 13px; }
.process-card--large .process-card__overlay-cta   { font-size: 10px; }

/* AFTER 画像のホバーズーム用トランジション */
.process-card__img--after {
  transition: transform 0.4s ease;
}

/* ---- ホバー演出（PC のみ）---- */
@media (hover: hover) {
  .process-card__overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .process-card__compare:hover .process-card__overlay {
    opacity: 1;
  }
  .process-card__compare:hover .process-card__img--after {
    transform: scale(1.04);
  }
}

/* ---- モバイル（hover非対応）: オーバーレイ常時表示 ---- */
@media (hover: none) {
  .process-card__overlay {
    opacity: 1;
  }
}

/* AFTER 側にリンクが設定された比較カードはクリック可能であることを示すカーソル */
.process-card__compare[data-after-url] {
  cursor: pointer;
}
.process-card__compare[data-after-url]:active {
  cursor: ew-resize;
}

/* ---- 説明テキスト ---- */
.process-card__desc {
  margin: 20px 0 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

@media (max-width: 1024px) {
  .the-process {
    padding: 72px 0 88px;
  }
  .the-process__grid,
  .the-process__grid--has-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .process-card--large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .the-process {
    padding: 56px 0 72px;
  }
  .the-process__header {
    margin-bottom: 28px;
  }
  .the-process__title {
    font-size: 36px;
  }
  .the-process__grid,
  .the-process__grid--has-featured {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 480px;
  }
  .process-card--large {
    grid-column: span 1;
  }
  .process-card__handle {
    width: 36px;
    height: 36px;
  }
  .process-card__handle-icon {
    font-size: 16px;
  }
  .process-card__label {
    font-size: 8px;
    padding: 3px 7px;
    letter-spacing: 0.25em;
  }
  .process-card__desc {
    font-size: 12px;
    margin-top: 16px;
  }
  .process-card__overlay {
    padding: 12px 14px;
  }
  .process-card__overlay-name  { font-size: 13px; }
  .process-card__overlay-price { font-size: 11px; }
  .process-card__overlay-cta   { font-size: 9px; }
}

/* ============================================================
   04b / NEW REMAKE（旧グリッド共通スタイル — 他セクション流用のため残置）
   ============================================================ */
.new-remake {
  background-color: var(--color-bg);
  padding: 72px 0 80px;
}

.section-header {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.45em;
  color: #000000;
  margin-bottom: 12px;
  display: block;
}

/* タイトルを伴わない単独のアイブロウはやや大きめに */
.section-eyebrow--solo {
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--color-black);
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.211;
  letter-spacing: -0.019em;
  color: var(--color-black);
}

.section-title--sm {
  font-size: 48px;
}

.section-header--no-flex {
  display: block;
}

.section-view-all {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #000000;
  transition: color 0.2s;
}

.section-view-all:hover {
  color: var(--color-black);
}

.product-grid {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.product-card {
  cursor: pointer;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 296 / 379;
  background-color: var(--color-beige);
  overflow: hidden;
  margin-bottom: 16px;
  transition: filter 0.4s ease;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image-wrap,
.product-card:focus-visible .product-card__image-wrap {
  filter: brightness(0.9);
}

.product-card:hover .product-card__image-wrap img,
.product-card:focus-visible .product-card__image-wrap img {
  transform: scale(1.04);
}

.product-card:hover {
  z-index: 1;
  position: relative;
}

.product-card__shadow {
  position: absolute;
  inset: 0;
  background: var(--overlay-06);
  pointer-events: none;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--overlay-50);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  width: 36px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.467;
  color: var(--color-black);
  margin-bottom: 4px;
}

.product-card__material {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
  margin-bottom: 6px;
}

.product-card__price {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.038em;
  color: var(--color-black);
}

/* ============================================================
   05 / BEST SELLER（4カラムグリッド: 画像+カテゴリー名）
   ============================================================ */
.best-seller {
  background-color: var(--color-beige);
  padding: 72px 0 80px;
}

.best-seller__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  margin-top: 40px;
}

/* BEST SELLER 専用の旧ルールは廃止 → 共通 .section-title-luxury に統合（main.css 末尾） */

.best-seller__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.best-seller__cell {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.best-seller__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.best-seller__cell:hover .best-seller__img,
.best-seller__cell:focus-visible .best-seller__img {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.best-seller__cell:hover {
  z-index: 1;
}

.best-seller__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-tan);
}

.best-seller__cell-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 22px 12px 18px;
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.best-seller__cell:hover .best-seller__cell-label,
.best-seller__cell:focus-visible .best-seller__cell-label {
  opacity: 1;
  transform: translateY(0);
}

/* タッチデバイスは hover が無いため常時表示 */
@media (hover: none) {
  .best-seller__cell-label {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   07 / REMAKE STORY
   ============================================================ */
.remake-story {
  background-color: var(--color-bg);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 700px;
  min-height: 680px;
}

.remake-story__content {
  padding: 120px var(--side-padding) 80px;
}

.remake-story__accent {
  width: 44px;
  height: 2px;
  background-color: #000000;
  margin-bottom: 16px;
}

.remake-story__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.45em;
  color: #000000;
  margin-bottom: 24px;
  display: block;
}

.remake-story__headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 76px;
  line-height: 1.105;
  letter-spacing: -0.013em;
  color: var(--color-black);
  margin-bottom: 40px;
}

.remake-story__quote {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.846;
  letter-spacing: 0.023em;
  color: #000000;
  max-width: 560px;
  margin-bottom: 60px;
}

.remake-story__steps-border {
  width: 600px;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 24px;
}

.remake-story__steps {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 0;
}

.remake-story__step-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.278em;
  color: #000000;
  margin-bottom: 10px;
  display: block;
}

.remake-story__step-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.818;
  letter-spacing: 0.018em;
  color: #000000;
}

.remake-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.remake-story__image-wrap:hover .remake-story__image {
  transform: scale(1.08);
}

.remake-story__image-wrap {
  overflow: hidden;
  height: 100%;
}

.remake-story__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 680px;
  background-color: var(--color-tan);
}

/* ============================================================
   08 / LOOKBOOK
   ============================================================ */
.lookbook {
  background-color: var(--color-bg);
  padding: 72px 0 80px;
}

.lookbook__grid {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 40px auto 0;
  display: grid;
  /* メイン画像 + サブ2×2グリッド */
  grid-template-columns: 460px 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* セル（画像 + キャプション のラッパー） */
.lookbook__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* cell1: 左側メイン（2行span） */
.lookbook__cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* cell2〜5: 右側2×2に自動配置 */

.lookbook__item {
  position: relative;
  overflow: hidden;
  background-color: var(--color-beige);
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* メイン画像（cell1）: 縦長、サブ2行分の高さに合わせる */
.lookbook__cell:nth-child(1) .lookbook__item {
  flex: 1;
  aspect-ratio: unset;
  min-height: 300px;
}

.lookbook__item img,
.lookbook__item-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-beige);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.lookbook__item:hover img,
.lookbook__item:hover .lookbook__item-placeholder,
.lookbook__item:focus-visible img,
.lookbook__item:focus-visible .lookbook__item-placeholder {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.lookbook__cell:hover {
  z-index: 1;
  position: relative;
}

/* lookbook__overlay : 通常時は非表示、ホバー時に下からグラデで表示 */
.lookbook__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px;
  color: #ffffff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lookbook__item:hover .lookbook__overlay,
.lookbook__item:focus-visible .lookbook__overlay {
  opacity: 1;
}

.lookbook__overlay-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
  display: block;
}

.lookbook__overlay-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 6px;
  display: block;
}

.lookbook__overlay-location {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

@media (max-width: 768px) {
  .lookbook__overlay { padding: 16px 14px; opacity: 1; } /* タッチ端末は常時表示 */
  .lookbook__overlay-title { font-size: 18px; }
  .lookbook__overlay-eyebrow { font-size: 9px; letter-spacing: 0.3em; margin-bottom: 4px; }
  .lookbook__overlay-location { font-size: 10px; }
}

.lookbook__item-caption {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--color-mid);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.lookbook__caption {
  margin-top: 16px;
  padding-left: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.045em;
  color: #000000;
}

/* ============================================================
   09 / STORE
   ============================================================ */
.store-section {
  background-color: var(--color-beige);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* ---- 背景メディア（動画 or 画像 + 暗い overlay）---- */
.store-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.store-section__bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-section__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* 背景がある場合: テキスト/罫線を白系に切替、コンテンツは bg より前面に */
.store-section--has-bg .store-section__inner,
.store-section--has-bg .store-section__map {
  position: relative;
  z-index: 1;
}
.store-section--has-bg .store-section__eyebrow,
.store-section--has-bg .store-section__title,
.store-section--has-bg .store-section__info-label,
.store-section--has-bg .store-section__info-value,
.store-section--has-bg .store-section__qr-label {
  color: #ffffff;
}
.store-section--has-bg .store-section__info-value a {
  color: #ffffff;
}
.store-section--has-bg .store-section__divider {
  background: rgba(255, 255, 255, 0.35);
}

/* ---- Google Maps ---- */
.store-section__map {
  max-width: var(--max-width);
  margin: 56px auto 0;
  padding: 0 var(--side-padding);
  position: relative;
}
.store-section__map iframe {
  width: 100%;
  display: block;
  border: 0;
  /* iframe ロード完了後にフェードイン */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.store-section__map.is-map-loaded iframe {
  opacity: 1;
}
.store-section__map.is-map-loaded .store-map-facade {
  opacity: 0;
  pointer-events: none;
}

/* ファサード: 軽量プレースホルダー（即時描画 / iframe ロード待ち中の見た目） */
.store-map-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #f5f3ee 0%, #ede8df 100%);
  color: #2a2a2a;
  text-decoration: none;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  transition: opacity 0.4s ease-in-out;
  position: relative;
}
.store-map-facade::before {
  /* 控えめな地図グリッド風のテクスチャ */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.store-map-facade > * {
  position: relative;
  z-index: 1;
}
.store-map-facade__pin {
  color: #c8624a;
  display: inline-flex;
}
.store-map-facade__address {
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 480px;
}
.store-map-facade__cta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 10px 18px;
  margin-top: 4px;
}
.store-map-facade:hover .store-map-facade__cta {
  background: #2a2a2a;
  color: #fff;
}
@media (max-width: 640px) {
  .store-map-facade { height: 280px; gap: 10px; }
  .store-map-facade__address { font-size: 13px; }
  .store-map-facade__cta { font-size: 11px; padding: 9px 16px; }
}

.store-section__photo {
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding: 0 var(--side-padding);
}

.store-section__photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.store-section__inner {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 80px;
  align-items: start;
}

.store-section__left {}

.store-section__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.45em;
  color: #000000;
  display: block;
  margin-bottom: 12px;
}

.store-section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.211;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 40px;
}

.store-section__divider {
  width: 100%;
  height: 1px;
  background: var(--color-tan);
  margin-bottom: 32px;
}

.store-section__info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 24px;
  align-items: baseline;
}

.store-section__info-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.278em;
  color: #000000;
}

.store-section__info-value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.025em;
  color: var(--color-black);
}

.store-section__qr {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.store-section__qr:hover {
  transform: translateY(-2px);
}

.store-section__qr-box {
  width: 140px;
  /* 高さは画像の縦横比に追従させる（固定 height・overflow なし） */
  background: var(--color-white);
  margin-bottom: 12px;
  padding: 0;
}

.store-section__qr-box img {
  width: 100%;
  height: auto;
  display: block;
}

.store-section__qr-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.222em;
  color: #000000;
  text-align: center;
}

/* ============================================================
   10 / FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg);
  padding: 72px 0 40px;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  padding: 0 var(--side-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr repeat(3, 200px);
  gap: 40px;
  padding-bottom: 60px;
}

.site-footer__brand {}

.site-footer__logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.182em;
  color: var(--color-black);
  margin-bottom: 16px;
  display: block;
}

.site-footer__tagline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.042em;
  color: #000000;
  margin-bottom: 8px;
  display: block;
}

.site-footer__slogan {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.071em;
  color: #000000;
}

.site-footer__col-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.333em;
  color: var(--color-black);
  margin-bottom: 20px;
  display: block;
}

.site-footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__col-list a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.045em;
  color: #000000;
  transition: color 0.2s;
}

.site-footer__col-list a:hover {
  color: var(--color-black);
}

.site-footer__border {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 24px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
}

.site-footer__lang {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #000000;
}

/* ============================================================
   PAGES — 固定ページ / 投稿
   ============================================================ */
.page-main__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.211;
  letter-spacing: -0.019em;
  color: var(--color-black);
  margin-bottom: 48px;
}

.page-main__content {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.857;
  letter-spacing: 0.02em;
  color: var(--color-black);
  max-width: 760px;
}

.page-main__content p + p {
  margin-top: 1.5em;
}

.page-main__content a {
  border-bottom: 1px solid currentColor;
}

/* ============================================================
   11 / PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
  padding: 0;
  background: var(--color-bg);
}

.product-detail__back-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--side-padding) 20px;
}

.product-detail__back {
  font-size: 32px;
  line-height: 1;
  color: #000000;
  transition: color 0.2s;
  display: inline-block;
}

.product-detail__back:hover {
  color: var(--color-black);
}

.product-detail__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  align-items: start;
}

/* --- ギャラリー --- */
.product-detail__gallery {}

.product-detail__main-wrap {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--color-beige);
}

.product-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.3s ease;
}

.product-detail__main-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-beige);
}

.product-detail__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.product-detail__thumb {
  height: 100px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.product-detail__thumb:hover img {
  opacity: 0.8;
}

.product-detail__thumb.is-active {
  border-color: var(--color-black);
}

/* --- 商品情報 --- */
.product-detail__info {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 148px); /* fallback */
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  scrollbar-width: none;
}
.product-detail__info::-webkit-scrollbar {
  display: none;
}

.product-detail__cat {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.45em;
  color: #000000;
  margin-bottom: 4px;
  display: block;
}

.product-detail__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-black);
  margin-bottom: 6px;
}

.product-detail__price {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--color-black);
  margin-bottom: 8px;
}

.product-detail__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 8px;
}

.product-detail__meta {
  display: grid;
  grid-template-columns: 88px 1fr;
  row-gap: 6px;
  align-items: baseline;
  margin-bottom: 8px;
}

.product-detail__meta dt {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #000000;
}

.product-detail__meta dd {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-black);
  line-height: 1.6;
}

/* --- 右パネル内ストーリー／ディテール --- */
.product-detail__section {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  margin-bottom: 8px;
}

.product-detail__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #000000;
  display: block;
  margin-bottom: 4px;
}

.product-detail__section-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--color-black);
}

.product-detail__section-body p {
  margin: 0;
}

.product-detail__section-body p + p {
  margin-top: 4px;
}

.product-detail__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #000000;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.product-detail__buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  width: 100%;
  height: 44px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 0;
  flex-shrink: 0;
}

.product-detail__buy-btn:hover {
  background: var(--color-gray);
}

/* --- ストーリー --- */
.product-story {
  border-top: 1px solid var(--color-border);
  padding: 0 0 88px;
}

.product-story__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.product-story__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #000000;
  display: block;
  margin-bottom: 36px;
}

.product-story__body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--color-black);
}

.product-story__body p + p {
  margin-top: 1.5em;
}

/* --- ディテール --- */
.product-detail-section {
  border-top: 1px solid var(--color-border);
  background: var(--color-beige);
  padding: 88px 0;
}

.product-detail-section__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.product-detail-section__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #000000;
  display: block;
  margin-bottom: 36px;
}

.product-detail-section__body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--color-black);
}

.product-detail-section__body p + p {
  margin-top: 1em;
}

/* ============================================================
   RESPONSIVE — Tablet (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --side-padding: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .best-seller__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .remake-story {
    grid-template-columns: 1fr;
  }

  .remake-story__image {
    height: 400px;
  }

  .lookbook__grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
  }

  .lookbook__cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  /* 商品詳細 */
  .product-detail__inner {
    gap: 32px;
  }

  .product-detail__name {
    font-size: 26px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --side-padding: 24px;
  }

  /* Header */
  .site-header__logo {
    font-size: 26px;
  }

  /* SEARCH ボタンはモバイルでも表示する（CART は撤去済み） */

  /* Hero Slider */
  .hero-slider {
    height: 100svh;
  }

  .hero-slider__headline {
    font-size: 64px;
    margin-bottom: 40px;
  }

  .hero-slider__dots {
    bottom: 32px;
  }

  /* Sections */
  .section-title {
    font-size: 36px;
  }

  .section-eyebrow,
  .remake-story__eyebrow,
  .store-section__eyebrow {
    font-size: 11px;
    letter-spacing: 0.4em;
  }

  .section-eyebrow--solo {
    font-size: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .remake-story__headline {
    font-size: 48px;
  }

  .remake-story__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .remake-story__steps-border {
    width: 100%;
  }

  .lookbook__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .lookbook__cell:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .lookbook__cell:nth-child(1) .lookbook__item {
    flex: none;
    min-height: unset;
    aspect-ratio: 4/3;
  }

  .store-section__inner {
    grid-template-columns: 1fr;
  }

  .store-section__info-grid {
    grid-template-columns: 120px 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .best-seller__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .best-seller__cell-label {
    font-size: 10px;
    letter-spacing: 0.36em;
    padding: 18px 10px 14px;
  }

  /* 商品詳細 */
  .product-detail {
    padding: 0 0 60px;
  }

  .product-detail__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail__main-wrap {
    aspect-ratio: 3 / 4;
    width: 100%;
  }

  .product-detail__thumb {
    height: 72px;
  }

  .product-detail__info {
    position: static;
  }

  .product-detail__name {
    font-size: 24px;
  }
}

/* ============================================================
   11-12 / CATEGORY PAGE
   Figma: node-id=33-263 / 1440px base
   ============================================================ */

/* ── Category Header ──────────────────────────────────────── */
.cat-header {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cat-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--side-padding) 24px;
}

.cat-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #000000;
  margin-bottom: 24px;
}

.cat-header__breadcrumb a {
  color: #000000;
  transition: color 0.2s;
}
.cat-header__breadcrumb a:hover { color: var(--color-black); }

.cat-header__sep {
  color: var(--color-border);
}

.cat-header__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.016em;
  line-height: 1.21;
  color: var(--color-black);
  margin-bottom: 20px;
}

.cat-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-header__count {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #000000;
}

.cat-header__sort {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  color: var(--color-black);
}

.cat-header__sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.cat-header__sort select {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-black);
  padding: 2px 20px 2px 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230a0a0a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 8px;
}

/* ── Category Content ──────────────────────────────────────── */
.cat-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* ── Product Grid ──────────────────────────────────────────── */
.cat-grid {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-content: start;
}

.cat-grid__empty {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #000000;
  padding: 80px 0;
  text-align: center;
}

/* ── Product Card ──────────────────────────────────────────── */
.cat-card {
  display: block;
  text-decoration: none;
  color: var(--color-black);
}

.cat-card.is-hidden {
  display: none;
}

.cat-card__img-wrap {
  position: relative;
  aspect-ratio: 238 / 298; /* Figma: 238×298px */
  background: var(--color-beige);
  overflow: hidden;
  margin-bottom: 12px;
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.cat-card:hover .cat-card__img {
  transform: scale(1.08);
}

.cat-card:hover {
  z-index: 1;
  position: relative;
}

.cat-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-beige);
}

.cat-card__sold-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.125em;
  padding: 5px 10px;
  pointer-events: none;
}

.cat-card__body {
  padding: 0;
}

.cat-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-black);
  margin-bottom: 4px;
}

.cat-card__material {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.033em;
  color: #000000;
  margin-bottom: 4px;
}

.cat-card__price {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.042em;
  color: var(--color-black);
}

/* ── BEST SELLER 一覧 ランクバッジ ───────────────────────── */
.bestseller-list-page .cat-header__title {
  letter-spacing: 0.04em;
}

.bestseller-card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.bestseller-card__rank--gold {
  background: #C9A84C;
  color: #fff;
}

.bestseller-card__rank--silver {
  background: #A8A8A8;
  color: #fff;
}

.bestseller-card__rank--bronze {
  background: #A0522D;
  color: #fff;
}

.bestseller-card__rank--default {
  background: #000000;
  color: #fff;
}

/* ── Sub-Category Card（中カテゴリー表示）─────────────────── */

/* カード全体：画像オーバーレイ準備 */
.cat-card--subcat {
  position: relative;
  overflow: hidden;
  display: block;
}

/* 画像アスペクト比を横長に変更 */
.cat-card--subcat .cat-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

/* ホバー時に画像を暗くするオーバーレイ */
.cat-card--subcat .cat-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  z-index: 1;
}

.cat-card--subcat:hover .cat-card__img-wrap::after {
  background: rgba(0, 0, 0, 0.45);
}

/* 画像ズームはそのまま維持 */
.cat-card--subcat .cat-card__img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-card--subcat:hover .cat-card__img {
  transform: scale(1.06);
}

/* カテゴリー名をホバー時に画像中央に浮かせる */
.cat-card--subcat .cat-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.cat-card--subcat:hover .cat-card__body {
  opacity: 1;
  transform: translateY(0);
}

/* ホバー時のカテゴリー名 */
.cat-card--subcat .cat-card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
}

/* ホバー時のピース数 */
.cat-card--subcat .cat-card__material {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  text-align: center;
}

/* カード下部のラインアニメーション */
.cat-card--subcat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 1px;
  background: #ffffff;
  transition: transform 0.4s ease 0.1s;
  z-index: 3;
}

.cat-card--subcat:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Pagination ────────────────────────────────────────────── */
.cat-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 48px 0 0;
}

.cat-pagination .nav-links {
  display: flex;
  gap: 4px;
}

.cat-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #000000;
  border: 1px solid var(--color-border);
  transition: background 0.15s, color 0.15s;
}

.cat-pagination .page-numbers.current,
.cat-pagination .page-numbers:hover {
  background: var(--color-black);
  color: #fff;
  border-color: var(--color-black);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  :root { --side-padding: 24px; }

  .cat-grid {
    padding-top: 24px;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  :root { --side-padding: 16px; }

  .cat-header__inner {
    padding: 24px 16px 20px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }

  .cat-card__name { font-size: 13px; }
  .cat-card__price { font-size: 11px; }
}

/* ============================================================
   イントロアニメーション（PC専用：ヒーロー画像ズーム + テキスト順次表示）
   ・モバイルは JS でスキップ
   ・JS でロード時に .site-intro--hero を body に挿入
   ・.is-active で 1.5s かけて画像が scale 1.05 → 1.0 にズーム
   ・テキストは .is-visible で下から 0.6s フェードイン
   ・dismiss() で .is-hidden が付き 0.8s フェードアウト
   ============================================================ */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.site-intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ヒーロー画像（最初から全画面表示、ゆっくりズームイン） */
.site-intro__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.5s ease-out;
  will-change: transform;
}

.site-intro.is-active .site-intro__hero-img {
  transform: scale(1.0);
}

/* テキストグループ（中央寄せ） */
.site-intro__texts {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

/* yoused ロゴテキスト */
.site-intro__logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Play vintage. キャッチコピー */
.site-intro__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.site-intro__logo.is-visible,
.site-intro__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STORE PAGE  (page-store.php)
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.sp-hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--color-black);
}

.sp-hero__media {
  position: absolute;
  inset: 0;
}

.sp-hero__media--placeholder {
  background: var(--color-tan);
}

.sp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--side-padding);
}

.sp-hero__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 16px;
}

.sp-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 16px;
}

.sp-hero__sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.65);
}

/* ── Info ────────────────────────────────────────────────── */
.sp-info {
  background: var(--color-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.sp-info__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.sp-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.sp-info__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-info__label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #000000;
  display: block;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.sp-info__value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

.sp-info__value-sub {
  display: block;
  color: #000000;
  font-size: 11px;
  margin-top: 4px;
}

.sp-info__tel-link {
  color: inherit;
  text-decoration: none;
}

.sp-info__tel-link:hover {
  text-decoration: underline;
}

/* ── Map ─────────────────────────────────────────────────── */
.sp-map {
  width: 100%;
  height: 480px;
  background: var(--color-beige);
}

.sp-map__frame {
  width: 100%;
  height: 100%;
}

.sp-map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sp-map__placeholder-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sp-map__pin {
  opacity: 0.4;
}

.sp-map__placeholder-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-black);
}

.sp-map__placeholder-note {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  color: #000000;
}

/* ── Instagram ───────────────────────────────────────────── */
.sp-instagram {
  background: var(--color-white);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sp-instagram__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.sp-instagram__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.55em;
  color: #000000;
  display: block;
}

.sp-instagram__handle {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-black);
  text-decoration: none;
  line-height: 1.2;
}

.sp-instagram__handle:hover {
  opacity: 0.65;
}

.sp-instagram__tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 11px;
  color: #000000;
  line-height: 1.4;
}

.sp-instagram__icon-link {
  display: inline-flex;
  color: var(--color-black);
  margin-top: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sp-instagram__icon-link:hover {
  opacity: 1;
}

/* ── Contact ─────────────────────────────────────────────── */
.sp-contact {
  background: var(--color-black);
  padding: 80px 0;
}

.sp-contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.sp-contact__eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: #000000;
  display: block;
}

.sp-contact__text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.sp-contact__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 48px;
  border: 1px solid rgba(255,255,255,0.4);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.sp-contact__btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

/* ── モバイル ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sp-hero {
    height: 380px;
  }

  .sp-info {
    padding: 56px 0;
  }

  .sp-info__inner {
    padding: 0 24px;
  }

  .sp-info__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .sp-map {
    height: 320px;
  }

  .sp-instagram {
    padding: 56px 0;
  }

  .sp-instagram__inner {
    padding: 0 24px;
  }

  .sp-contact {
    padding: 56px 0;
  }

  .sp-contact__inner {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .sp-info__grid {
    grid-template-columns: 1fr;
  }

  .sp-hero__overlay {
    padding: 0 24px;
  }
}

/* ============================================================
   Storeページ テンプレート — 自動出力タイトル抑制
   body に .page-template-page-store-php が付与される
   ============================================================ */
.page-template-page-store-php .entry-title,
.page-template-page-store-php .page-title,
.page-template-page-store-php .wp-block-post-title,
.page-template-page-store-php .page-header,
.page-template-page-store-php .breadcrumb,
.page-template-page-store-php .breadcrumbs {
  display: none !important;
}

/* ============================================================
   CATEGORY NAV SECTION（ホームページ ヒーロー直下）
   ============================================================ */
.cat-nav-section {
  background: var(--color-white);
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.cat-nav-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* テキストタブ */
.cat-nav-section__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.cat-nav-section__tab {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cat-nav-section__tab:hover {
  opacity: 0.45;
}

.cat-nav-section__sep {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #000000;
  user-select: none;
}

/* 画像グリッド */
.cat-nav-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;                             /* 旧 16px の 1.3 倍 */
}

.cat-nav-section__cell {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;                    /* ラベル/グラデの基準 */
  transition: filter 0.4s ease;
}

/* ホバー: 画像を少し暗く */
.cat-nav-section__cell:hover,
.cat-nav-section__cell:focus-visible {
  filter: brightness(0.9);
}

/* 下からの黒グラデ（テキスト可読性確保） */
.cat-nav-section__cell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.cat-nav-section__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* ホバー時に画像のみズーム（ラベルは固定） */
.cat-nav-section__cell:hover .cat-nav-section__img,
.cat-nav-section__cell:focus-visible .cat-nav-section__img {
  transform: scale(1.04);
}

.cat-nav-section__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-beige);
  transition: transform 0.4s ease;
}

.cat-nav-section__cell:hover .cat-nav-section__placeholder,
.cat-nav-section__cell:focus-visible .cat-nav-section__placeholder {
  transform: scale(1.04);
}

/* ラベルは画像の左下に白テキストで重ねる */
.cat-nav-section__cell-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: #ffffff;
  text-align: left;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* モバイル */
@media (max-width: 768px) {
  .cat-nav-section {
    padding: 40px 0;
  }
  .cat-nav-section__inner {
    padding: 0 24px;
  }
  .cat-nav-section__tabs {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .cat-nav-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;                             /* 旧 12px の 1.3 倍 */
  }
  .cat-nav-section__cell-label {
    left: 12px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.35em;
  }
}

/* ============================================================
   LOOKBOOK PAGE
   ソース: Figma "18 / Lookbook Page" (aFossdsQ4QCeKC2klgU3p0)
   ============================================================ */

/* WordPress が出力するページタイトルを非表示 */
.page-template-page-lookbook-php .entry-title,
.page-template-page-lookbook-php .page-title,
.page-template-page-lookbook-php .wp-block-post-title {
  display: none;
}

/* ラッパー */
.lbp-wrap {
  background: #ffffff;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  padding-top: 80px; /* サイトヘッダー分 */
}

/* ページタイトル
   Figma: Cormorant Garamond Light / 14px / letter-spacing 10px / #0A0A0A */
.lbp-header {
  padding: 48px 20px 24px;
}

.lbp-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

/* 2カラムグリッド
   Figma: gap 4px / padding 4px */
.lbp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 4px 4px;
}

/* カード共通 */
.lbp-card {
  overflow: hidden;
}

.lbp-card__inner {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

/* 写真カード
   Figma: 画像プレースホルダー #E0E0E0 / 3:4比率 */
.lbp-card--photo .lbp-card__inner {
  cursor: pointer;
}

.lbp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lbp-card--photo:hover .lbp-card__img {
  transform: scale(1.03);
}

/* テキストオーバーレイ（下からグラデーション）
   Figma: 左下配置 / 白テキスト / グラデーション */
.lbp-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 28px 24px;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.18) 45%,
    transparent 100%
  );
  gap: 6px;
}

/* REMAKE DUCK / REMAKE LEATHER
   Figma: Josefin Sans Light / 9px / letter-spacing 5px */
.lbp-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

/* Work & Worn / Dark Matter
   Figma: Cormorant Garamond Light Italic / 40px */
.lbp-card__title-serif {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  font-style: italic;
  color: #ffffff;
  line-height: 1.21;
  letter-spacing: 0;
}

/* — Daikanyama, Tokyo
   Figma: Josefin Sans Light / 9px / letter-spacing 2px */
.lbp-card__location {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(199, 199, 199, 0.85);
  line-height: 1;
}

/* COMING SOON カード
   Figma: 背景 #F0F0F0 / テキスト #888888 / 9px / ls 5px / center */
.lbp-card__inner--soon {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lbp-card__soon-text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #000000;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .lbp-wrap {
    padding-top: 60px;
  }

  .lbp-header {
    padding: 32px 12px 16px;
  }

  .lbp-title {
    font-size: 12px;
    letter-spacing: 8px;
  }

  .lbp-card__overlay {
    padding: 20px 16px;
    gap: 4px;
  }

  .lbp-card__title-serif {
    font-size: clamp(24px, 6vw, 40px);
  }

  .lbp-card__eyebrow,
  .lbp-card__location {
    font-size: 8px;
  }
}

/* ============================================================
   LOOKBOOK CARD — VIEW ボタン（page-lookbook.php）
   ============================================================ */
.lbp-card--photo {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lbp-card__view-btn {
  display: block;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  transition: color 0.2s;
}

.lbp-card--photo:hover .lbp-card__view-btn {
  color: #ffffff;
}

/* ============================================================
   LOOKBOOK DETAIL PAGE  (single-lookbook.php)
   ============================================================ */

/* ---- Lookbook 専用ヘッダー ---- */
.lb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 40px;
  background: transparent;
}

.lb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.lb-header__logo {
  text-decoration: none;
  flex-shrink: 0;
}

.lb-header .logo-wordmark {
  display: flex;
  align-items: baseline;
}

.lb-header .logo-you,
.lb-header .logo-sed {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-black);
  transition: color 0.4s;
}

.lb-header .logo-tag { display: none; }

.lb-header__logo-img {
  height: 20px;
  width: auto;
  display: block;
  transition: filter 0.4s;
}

/* ブレッドクラム（中央絶対配置） */
.lb-header__breadcrumb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-black);
  white-space: nowrap;
  transition: color 0.4s;
}

/* 戻るリンク */
.lb-header__back {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-black);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s, color 0.4s;
  flex-shrink: 0;
}
.lb-header__back:hover { opacity: 1; }

/* 画像スライド上でヘッダーを白に */
.lb-header--on-image .logo-you,
.lb-header--on-image .logo-sed {
  color: #ffffff;
}
.lb-header--on-image .lb-header__logo-img {
  filter: brightness(0) invert(1);
}
.lb-header--on-image .lb-header__breadcrumb {
  color: rgba(255, 255, 255, 0.85);
}
.lb-header--on-image .lb-header__back {
  color: rgba(255, 255, 255, 0.65);
}

/* ページ全体 */
.single-lookbook {
  overflow: hidden;
  background: #ffffff;
}

/* メインコンテナ */
.lb-detail {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 0;
}

/* スライダーラッパー */
.lb-detail__slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

/* 各スライド */
.lb-detail__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-detail__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 背景画像（有画像スライド） */
.lb-detail__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* グラデーション（有画像スライド） */
.lb-detail__slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.10) 48%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}

/* テキストエリア（中央配置） */
.lb-detail__slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 120px;
  max-width: 860px;
  width: 100%;
  pointer-events: none;
}

/* メインコピー */
.lb-detail__slide-copy {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-black);
  margin: 0 0 20px;
}

/* サブコピー（ロケーション） */
.lb-detail__slide-sub {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.08em;
  color: rgba(10, 10, 10, 0.45);
  margin: 0;
}

/* 有画像スライドはテキストを白に */
.lb-detail__slide--has-image .lb-detail__slide-copy {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.lb-detail__slide--has-image .lb-detail__slide-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* ドットナビゲーション */
.lb-detail__dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-detail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.lb-detail__dot.is-active {
  background: var(--color-black);
  border-color: var(--color-black);
  transform: scale(1.15);
}

/* 画像スライド上のドットを白に */
.lb-detail--image-active .lb-detail__dot {
  border-color: rgba(255, 255, 255, 0.45);
}
.lb-detail--image-active .lb-detail__dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
}

/* 左右矢印ボタン */
.lb-detail__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 16px;
  color: var(--color-black);
  opacity: 0.4;
  transition: opacity 0.25s, color 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.lb-detail__arrow:hover { opacity: 1; }
.lb-detail__arrow:focus { outline: none; opacity: 1; }
.lb-detail__arrow--prev { left: 40px; }
.lb-detail__arrow--next { right: 40px; }

/* 画像スライド上では矢印を白に */
.lb-detail--image-active .lb-detail__arrow {
  color: #ffffff;
}

/* カウンター（右下） */
.lb-detail__counter {
  position: absolute;
  bottom: 44px;
  right: 56px;
  z-index: 10;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(10, 10, 10, 0.35);
  pointer-events: none;
  transition: color 0.4s;
}
.lb-detail__counter-sep {
  margin: 0 2px;
}

/* 画像スライド上のカウンターを白に */
.lb-detail--image-active .lb-detail__counter {
  color: rgba(255, 255, 255, 0.5);
}

/* スライドなし状態 */
.lb-detail__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(10, 10, 10, 0.45);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.lb-detail__empty a {
  color: rgba(10, 10, 10, 0.35);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-size: 10px;
  transition: color 0.2s;
}
.lb-detail__empty a:hover { color: var(--color-black); }

/* ── モバイル ──────────────────────────── */
@media (max-width: 768px) {
  .lb-header {
    padding: 0 20px;
    height: 56px;
  }
  .lb-header__back { display: none; }

  .lb-detail__slide-content {
    padding: 0 32px;
  }
  .lb-detail__slide-copy {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 14px;
  }
  .lb-detail__arrow--prev { left: 12px; }
  .lb-detail__arrow--next { right: 12px; }
  .lb-detail__arrow { padding: 16px 12px; }

  .lb-detail__dots {
    bottom: 32px;
  }
  .lb-detail__counter {
    bottom: 32px;
    right: 28px;
    font-size: 10px;
  }
}

/* ============================================================
   ONE OF A KIND アーカイブ（taxonomy-yoused_product_cat-one-of-a-kind）
   - 背景白・ミニマル・4カラムグリッド
   - Figma: yoused-homepage / 86-150
   ============================================================ */

.ook-wrap {
  background: #ffffff;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  padding-top: 80px; /* サイトヘッダー分 */
}

/* ページタイトル（左上・細字セリフ） */
.ook-header {
  padding: 56px 80px 72px;
}

.ook-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--color-black);
  margin: 0;
  line-height: 1.4;
}

/* 4カラムグリッド */
.ook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 32px;
  padding: 0 80px 120px;
}

.ook-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ook-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-gray-light);
  overflow: hidden;
}

.ook-card__img,
.ook-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ook-card:hover .ook-card__img {
  transform: scale(1.03);
}

.ook-card--sold-out .ook-card__img {
  opacity: 0.55;
}

.ook-card__sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.ook-card__body {
  padding: 16px 0 0;
}

.ook-card__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-black);
  margin: 0;
  line-height: 1.4;
}

.ook-card__price {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-black);
  margin: 6px 0 0;
}

.ook-empty {
  grid-column: 1 / -1;
  padding: 120px 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 300;
  color: #000000;
}

/* タブレット */
@media (max-width: 1024px) {
  .ook-header { padding: 48px 40px 56px; }
  .ook-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
    padding: 0 40px 80px;
  }
}

/* スマホ */
@media (max-width: 640px) {
  .ook-header { padding: 40px 20px 32px; }
  .ook-title { font-size: 16px; letter-spacing: 3px; }
  .ook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
    padding: 0 20px 60px;
  }
  .ook-card__name { font-size: 12px; }
  .ook-card__price { font-size: 10px; }
}

/* ============================================================
   ページ遷移オーバーレイ（白背景 + 中央配置 yoused ロゴ動画）
   ============================================================ */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* fallback */
  height: 100dvh;
  background: #ffffff !important;
  background-color: #ffffff !important;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  /* opacity は JS (RAF) で制御するため CSS transition なし */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition-video {
  /* 画面中央に控えめなサイズで表示（アスペクト比維持） */
  width: auto;
  height: auto;
  max-width: 60vmin;
  max-height: 60vmin;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

@media (max-width: 640px) {
  .page-transition-video {
    max-width: 75vmin;
    max-height: 75vmin;
  }
}

/* ============================================================
   FEEL THE MATERIAL（素材体験ホリゾンタルスクロール）
   ============================================================ */
.feel-material {
  padding: 72px 0 80px;
  background: var(--color-bg);
}

.feel-material__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  cursor: grab;
}
.feel-material__scroll::-webkit-scrollbar { display: none; height: 0; }
.feel-material__scroll.is-grabbing { cursor: grabbing; }

.feel-material__track {
  display: flex;
  gap: 40px;
  padding: 0 var(--side-padding);
  width: max-content;
}

.feel-material__card {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 380px);
  scroll-snap-align: start;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.feel-material__card.has-two:hover .feel-material__media,
.feel-material__card.has-two:focus-visible .feel-material__media {
  cursor: pointer;
}

.feel-material__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-beige);
}

.feel-material__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.feel-material__img.is-active { opacity: 1; }

/* ---- peel-card（シールを剥がす UI / clip-path 斜め） ---- */
.peel-card .peel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-beige);
  /* has-two のカードでは browser scroll を完全停止 → JS で peel を制御 */
  cursor: grab;
}

.peel-card.has-two .peel-inner { touch-action: none; }
.peel-card:not(.has-two) .peel-inner { touch-action: pan-y; }

.peel-card.is-touching .peel-inner { cursor: grabbing; }

.peel-card .image-detail,
.peel-card .image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.peel-card .image-detail { z-index: 1; }

/*
  cover は clip-path で右下角が三角形に剥がされた状態を表現
  - 初期: 右下角 10% が剥がれて detail が覗く
  - 完全剥がし: 左上に小さな三角だけ残る（90%剥がれ）
  - drop-shadow で紙のめくれた端の影を表現
*/
.peel-card .image-cover {
  z-index: 2;
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%);
  transition: clip-path 0.4s ease, -webkit-clip-path 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.32));
}

/* タップ/クリックで is-revealed が付与されている間 90% 剥がれた状態を維持 */
.peel-card.has-two.is-revealed .image-cover {
  /* 左上に 20%×20% の三角だけ残る */
  clip-path: polygon(0% 0%, 20% 0%, 20% 0%, 0% 20%, 0% 20%);
  -webkit-clip-path: polygon(0% 0%, 20% 0%, 20% 0%, 0% 20%, 0% 20%);
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4));
}

/* 2枚目未設定時はクリップなし（ピール無効） */
.peel-card:not(.has-two) .image-cover {
  clip-path: none;
  -webkit-clip-path: none;
  filter: none;
}
.peel-card:not(.has-two) .peel-inner { cursor: default; }

/* ドラッグ/タッチ操作中は CSS transition を無効化（JS が直接制御） */
.peel-card.is-touching .image-cover {
  transition: none;
}

/* めくれた紙の裏面（持ち手）— 三角形 + 紙の質感 + 折れ目の影 + 立体ドロップシャドウ
   この要素自体が「持ち手」として touch/mouse を受ける */
.peel-fold {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28%;
  height: 28%;
  pointer-events: auto;     /* 持ち手として操作対象 */
  touch-action: none;       /* この要素上では browser の scroll/pan を完全停止 */
  cursor: grab;
  z-index: 4;
  /* 三角形（右下が直角・折り目は左上の対角線） */
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  /* 紙の裏面: クリーム色グラデ + 折り目に沿った影 */
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.20) 5%,
      rgba(0, 0, 0, 0.05) 9%,
      #fbf5e4 14%,
      #f0e6c9 50%,
      #d8caa1 100%
    );
  /* 紙が浮いて見える外側のドロップシャドウ */
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.32))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  transition: opacity 0.35s ease, transform 0.35s ease;
  /* 立体感のための微小な傾き */
  transform: rotate(0.5deg);
  transform-origin: 100% 100%;
}

/* 剥がし完了 / ドラッグ中は紙裏を消す（cover も大きく剥がれ detail が見える） */
.peel-card.has-two.is-revealed .peel-fold,
.peel-card.is-touching .peel-fold {
  opacity: 0;
  transform: rotate(0.5deg) scale(1.15) translate(15%, 15%);
}

.peel-card.is-touching .peel-fold { cursor: grabbing; }
.peel-card:not(.has-two) .peel-fold { display: none; }

/* 画像下部の黒グラデ（テキスト可読性） */
.peel-card__gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 768px) {
  .feel-material__track { gap: 20px; }
  .feel-material__card { width: 70vw; max-width: 320px; }
}

/* ============================================================
   PAGE BACKGROUND（管理画面「背景編集」で設定）
   wp_body_open 直後に <div class="yoused-page-bg"> が挿入される
   ============================================================ */
.yoused-page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* fallback */
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.yoused-page-bg img,
.yoused-page-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yoused-page-bg--color {
  /* color/opacity はインライン style で適用 */
}

/* 背景レイヤーを z-index:-1 で見せるため、body と主要ページラッパーの地色を透過 */
body.has-yoused-page-bg {
  background-color: transparent !important;
}

/* 各テンプレートのトップラッパーは白背景を持つため、背景設定時のみ透過させる */
body.has-yoused-page-bg .product-detail,
body.has-yoused-page-bg .lbp-wrap,
body.has-yoused-page-bg .ook-wrap,
body.has-yoused-page-bg .cat-page {
  background: transparent !important;
  background-color: transparent !important;
}

/* ============================================================
   スクロールアニメーション
   .fade-up: ビューポートに入ったら下からフェードイン
   .stagger: 直下子要素を JS が .fade-up 化 + transition-delay で順次表示
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transition: none;
  }
}

/* カテゴリーグリッド（OUTERWEAR / TOPS / BOTTOMS / OTHERS）— 左から順次表示 */
.cat-nav-section__grid .cat-nav-section__cell.fade-up:nth-child(1) { transition-delay: 0s;    }
.cat-nav-section__grid .cat-nav-section__cell.fade-up:nth-child(2) { transition-delay: 0.15s; }
.cat-nav-section__grid .cat-nav-section__cell.fade-up:nth-child(3) { transition-delay: 0.3s;  }
.cat-nav-section__grid .cat-nav-section__cell.fade-up:nth-child(4) { transition-delay: 0.45s; }

/* OUR STORY のヘッドライン（"Deconstruct.\nRebuild.\nWear."）を
   span 行に分割するため block 化 */
.remake-story__headline > span {
  display: block;
}

/* ============================================================
   ナビゲーションリンク ホバー下線アニメーション
   - ドロワーナビ（メインナビ）と フッター列リンク に適用
   ============================================================ */
.drawer-nav__link,
.site-footer__col-list a {
  position: relative;
}

.drawer-nav__link::after,
.site-footer__col-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.drawer-nav__link:hover::after,
.drawer-nav__link:focus-visible::after,
.site-footer__col-list a:hover::after,
.site-footer__col-list a:focus-visible::after {
  width: 100%;
}

/* ============================================================
   セクションタイトル共通スタイル（高級感ある細罫線フレーム）
   .section-title-luxury を h2/span に追加すると下記スタイルで表示
   既存の .section-title / .one-of-a-kind__title / .the-process__title /
   .remake-story__eyebrow より後で定義することで上書き優先
   ============================================================ */
.section-title-luxury {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.4;
  color: var(--color-black);
  text-align: center;
  text-transform: uppercase;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 12px 0;
  margin: 60px 0 40px;
  /* 旧サイズの transform 等をリセット */
  text-shadow: none;
  background: none;
}

@media (max-width: 768px) {
  .section-title-luxury {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin: 44px 0 28px;
    padding: 10px 0;
  }
}

/* ============================================================
   CATEGORY ARCHIVE — Luxury Title Band
   taxonomy-yoused_product_cat.php 専用
   タイトル（"OUTERWEAR" 等）を BESTSELLER と同系統の
   センター配置・上下細ラインのバンドスタイルに変更
   ============================================================ */
.cat-page--taxonomy .cat-header {
  border-top: none;
  border-bottom: none;
}

.cat-page--taxonomy .cat-header__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.cat-page--taxonomy .cat-header__title {
  font-family: var(--font-sans);
  font-weight: normal;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 12px 0;
  margin: 60px auto 40px;
}

/* メタ情報（"X categories" / "X pieces" + SORT BY）も中央寄せに */
.cat-page--taxonomy .cat-header__meta {
  justify-content: center;
  gap: 24px;
}

/* 子カテゴリー数表示（"7 categories"）は控えめに */
.cat-page--taxonomy .cat-header__count {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}

/* 子カテゴリーモード（カウントのみで SORT がない）では完全に非表示 */
.cat-page--taxonomy .cat-header__meta:not(:has(.cat-header__sort)) {
  display: none;
}

@media (max-width: 768px) {
  .cat-page--taxonomy .cat-header__title {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin: 44px auto 28px;
    padding: 10px 0;
  }
}

/* ============================================================
   CATEGORY ARCHIVE — Card Image Fix
   画像が途切れる問題への対処：
   - すべてのカードでアスペクト比を 3/4（縦長）に統一
   - object-position: center top で頭側基準にトリミング
   ============================================================ */
.cat-page--taxonomy .cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.cat-page--taxonomy .cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cat-page--taxonomy .cat-card__img-placeholder {
  width: 100%;
  height: 100%;
  /* 親 .cat-card__img-wrap の aspect-ratio が伝わらない環境への保険として
     placeholder 自体にもアスペクト比を直接指定。これにより grid-column: span 2 で
     カードが横に伸びた際、placeholder が正しく拡大する */
  aspect-ratio: 3 / 4;
  display: block;
}

/* ============================================================
   CATEGORY ARCHIVE — Hero Section
   タイトル上部の全幅ヒーロー画像（カテゴリーごとに設定可能）
   ============================================================ */
.cat-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  overflow: hidden;
  background: #000;
}

.cat-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.cat-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--side-padding);
  text-align: center;
}

.cat-hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ヒーローがあるときは直下のヘッダー上マージンを少し詰める */
.cat-page--has-hero .cat-header__title {
  margin-top: 48px;
}

@media (max-width: 768px) {
  .cat-hero {
    height: 48vh;
    min-height: 280px;
  }
  .cat-hero__title {
    font-size: clamp(32px, 9vw, 56px);
    letter-spacing: 0.06em;
  }
  .cat-page--has-hero .cat-header__title {
    margin-top: 36px;
  }
}

/* ============================================================
   CATEGORY ARCHIVE — Rhythmic Product Grid
   除外対象（リズムグリッド適用しない）：
     - .cat-grid--subcat   サブカテゴリー（中カテゴリー一覧）
     - .bestseller-grid    BEST SELLER 一覧（ランク順を視覚的に保つため）
     - .cat-grid--search   検索結果（並び順を維持するため）
   既存ルール（L2902 / L3194 / L3209 等）を確実に上書きするため !important を使用。
   ============================================================ */
.cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) > .cat-card:nth-child(6n + 1),
.cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) > .cat-card:nth-child(6n + 5) {
  grid-column: span 2 !important;
}

.cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-flow: dense !important;
  gap: 2px !important;
}

@media (max-width: 768px) {
  .cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) > .cat-card:nth-child(6n + 1),
  .cat-grid:not(.cat-grid--subcat):not(.bestseller-grid):not(.cat-grid--search) > .cat-card:nth-child(6n + 5) {
    grid-column: span 1 !important;
  }
}

/* ============================================================
   PRODUCT CARD — Hover Wobble
   商品カードにマウスホバーした際の小さな揺れ演出
   ============================================================ */
@keyframes wobble {
  0%   { transform: rotate(0deg) scale(1.02); }
  25%  { transform: rotate(-1.5deg) scale(1.02); }
  75%  { transform: rotate(1.5deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1.02); }
}

.cat-card {
  transform-origin: center center;
}

.cat-card:hover {
  animation: wobble 0.4s ease !important;
}

/* ── ヒーロー文字（3行コピー）の各行ホバー時 ──
   .hero-slider__copy span は display: block 済み（L743）のため
   transform が問題なく効く */
.hero-slider__copy span:hover {
  animation: wobble 0.4s ease;
}

/* ── メイン画面 CATEGORY NAV：テキストタブのホバー時 ──
   親 .cat-nav-section__tabs は flex（L3700）なので tab は flex item として transform 可能。
   既存の opacity: 0.45 ホバー（L3718）と共存させる */
.cat-nav-section__tab:hover {
  animation: wobble 0.4s ease;
}

/* ── メイン画面 CATEGORY NAV：画像グリッドのラベル ──
   セルを hover したときラベルが揺れる。
   ラベルは position: absolute（L3790）なので transform 可能 */
.cat-nav-section__cell:hover .cat-nav-section__cell-label {
  animation: wobble 0.4s ease;
}

/* ============================================================
   PAGE BACKGROUND — Very Soft White
   全ページの背景を #fbfaf8（純白から RGB -4/-5/-7）に統一。
   `body.has-yoused-page-bg` の transparent !important（L4772 / L4781）
   と各ラッパーの白背景（L2307 / L3842 / L4380）を全て上書きするため
   !important を使用。
   ============================================================ */
body,
body.has-yoused-page-bg,
.cat-page,
body.has-yoused-page-bg .cat-page,
.product-detail,
body.has-yoused-page-bg .product-detail,
.lbp-wrap,
body.has-yoused-page-bg .lbp-wrap,
.ook-wrap,
body.has-yoused-page-bg .ook-wrap {
  background-color: #fbfaf8 !important;
}

/* ============================================================
   PRODUCT CARD IMAGE — Size Lock
   小カテゴリーページなどで商品画像が大きく見える問題への対処。
   .cat-card__img-wrap に 3:4 のアスペクト比を強制し、
   .cat-card__img を必ずコンテナにフィットさせる。
   既存の base ルール（L2934 の 238/298）と
   .cat-card--subcat の 4/3 を含めて全て上書きするため !important を使用。
   ============================================================ */
.cat-card__img-wrap {
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.cat-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* ============================================================
   MOBILE TAP TARGETS — 最小44px原則（Apple HIG / WCAG 2.5.5）
   見た目を変えず、不可視の擬似要素で hitbox だけ拡張する。
   タッチデバイスだけでなくマウスでも誤クリック防止になる。
   ============================================================ */

/* ヒーロースライダーのドット: 視覚は6pxのまま、タップは44px確保 */
.hero-slider__dot {
  position: relative;
}
.hero-slider__dot::before {
  content: '';
  position: absolute;
  inset: -19px; /* 6px + 19*2 = 44px */
}

/* 商品詳細「戻る」矢印: テキスト矢印を44px hitbox で囲う */
.product-detail__back {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ハンバーガーボタン: モバイルで padding を広げて 44x44 確保 */
.site-header__hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ドロワーの閉じるボタン: 同上 */
.drawer-nav__close {
  min-width: 44px;
  min-height: 44px;
}

/* SEARCH ボタン等のヘッダーアクション: 高さ確保 */
.site-header__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* スクロール誘導インジケーター: 矢印自体を大きく */
.hero-slider__scroll-indicator {
  min-width: 44px;
  min-height: 44px;
}

/* サムネイルボタン: 既に72px以上だが念のためタップ余白 */
.product-detail__thumb {
  min-width: 44px;
}

/* iOS Safari: input フォーカス時の自動ズームを抑制（フォントサイズ16px以上必須） */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  font-size: max(16px, 1em);
}
