/* ===== Burin Gallery (scoped under .burin-root) ===== */
.burin-root { all: revert; font-family: "Inter", sans-serif; color: var(--fg); background: var(--bg); }
.burin-root, .burin-root *, .burin-root *::before, .burin-root *::after { box-sizing: border-box; }
.burin-root .burin-video, .burin-root video { max-width: 100%; }

/* =========================================================
   BURIN — Gallery Prototype v2
   3階層: カテゴリタブ → 作品タイプ → 個別作品 → ライトボックス
   ========================================================= */

:root {
  --bg: #0e0e0f;
  --bg-alt: #17171a;
  --surface: #1f1f23;
  --fg: #eceae5;
  --fg-muted: #a09d95;
  --accent: #c8a96a;
  --accent-soft: #8a7345;
  --border: rgba(255,255,255,0.08);
  --max-w: 1360px;
  --font-serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,15,0.88);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
}
.brand-mark {
  font-size: 28px;
  color: var(--accent);
  font-weight: 500;
  margin-right: 2px;
}
.brand-text { font-size: 22px; font-weight: 400; }
.nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--fg); }

/* ========== Category Tabs (trunk of hierarchy) ========== */
.category-tabs {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.category-tabs-inner {
  display: flex;
  gap: 0;
}
.cat-tab {
  flex: 1;
  padding: 40px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .4s var(--ease);
  font-family: inherit;
  text-align: center;
  position: relative;
}
.cat-tab:last-child { border-right: none; }
.cat-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all .4s var(--ease);
  transform: translateX(-50%);
}
.cat-tab:hover { color: var(--fg); background: rgba(255,255,255,0.02); }
.cat-tab.active { color: var(--fg); background: rgba(255,255,255,0.03); }
.cat-tab.active::after { width: 60px; }
.cat-tab-en {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: uppercase;
}
.cat-tab-ja {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-top: 8px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .inner {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.brd-link {
  color: var(--fg-muted);
  transition: color .25s var(--ease);
}
.brd-link:hover { color: var(--accent); }
.brd-sep { margin: 0 12px; opacity: 0.4; }
.brd-current { color: var(--fg); }

/* ========== View container ========== */
.view { padding: 72px 0 100px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-title { margin: 0; font-family: var(--font-serif); font-weight: 400; color: var(--fg); }
.section-title-ja {
  font-family: "Noto Serif JP", serif;
  display: block;
  font-size: 32px;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.section-title-en {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 8px;
}
.section-meta {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ========== Type grid (category landing) ========== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px 32px;
}
.type-card {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.type-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 20px;
}
.type-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(0.9) brightness(0.85);
}
.type-card:hover .type-card-img img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.type-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  pointer-events: none;
}
.type-card-count {
  position: absolute;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.type-card-count span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-left: 6px;
  opacity: 0.85;
  vertical-align: middle;
}
.type-card-body { padding: 0 2px; }
.type-card-title-ja {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--fg);
}
.type-card-title-en {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ========== Filter bar ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter-btn {
  appearance: none;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: var(--font-sans);
}
.filter-btn:hover { color: var(--fg); border-color: rgba(255,255,255,0.2); }
.filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ========== Work grid ========== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px 24px;
}
.work-card {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.work-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  margin-bottom: 18px;
}
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(0.92);
}
.work-card:hover .work-card-img img {
  transform: scale(1.04);
  filter: saturate(1);
}
.work-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.work-card:hover .work-card-img::after { opacity: 1; }
.work-card-count {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 10px;
  border-radius: 2px;
}
.work-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  line-height: 1.5;
  color: var(--fg);
}
.work-card-style {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,9,0.98);
  z-index: 100;
  display: none;
  flex-direction: column;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lb-close, .lb-prev, .lb-next {
  position: absolute !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  color: var(--fg) !important;
  cursor: pointer !important;
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  transition: color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.lb-close {
  top: 36px !important;
  right: 56px !important;
  line-height: 1 !important;
  width: 64px !important;
  height: 64px !important;
}
.lb-close::before {
  content: "" !important;
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  position: absolute !important;
  background:
    linear-gradient(45deg, transparent calc(50% - 1.5px), currentColor calc(50% - 1.5px), currentColor calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(-45deg, transparent calc(50% - 1.5px), currentColor calc(50% - 1.5px), currentColor calc(50% + 1.5px), transparent calc(50% + 1.5px)) !important;
}
.lb-close { font-size: 0 !important; }  /* テキストの×を消し、::before のline×2 で表現 */
.lb-prev, .lb-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 56px !important;
  line-height: 1 !important;
  width: 80px !important;
  height: 80px !important;
  color: var(--fg-muted) !important;
}
.lb-prev { left: 28px !important; }
.lb-next { right: 28px !important; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.08) !important;
  color: var(--accent) !important;
}
.lb-close:hover { transform: rotate(90deg) !important; }
.lb-prev:hover  { transform: translateY(-50%) translateX(-3px) !important; }
.lb-next:hover  { transform: translateY(-50%) translateX(3px) !important; }
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible {
  outline: 1px solid var(--accent) !important;
  outline-offset: 4px !important;
}
.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 100px 20px;
  min-height: 0;
}
.lb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.lb-info { text-align: center; padding: 8px 40px 16px; }
.lb-title {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--fg);
}
.lb-counter {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-top: 6px;
}
.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 40px 24px;
  overflow-x: auto;
  justify-content: center;
}
.lb-thumb {
  flex: 0 0 auto;
  width: 72px; height: 54px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all .25s var(--ease);
  background: none;
  padding: 0;
}
.lb-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0.3em;
}

/* ========== Responsive ========== */
@media (max-width: 720px) {
  .inner { padding: 0 20px; }
  .cat-tab { padding: 28px 12px; }
  .cat-tab-en { font-size: 20px; }
  .cat-tab-ja { font-size: 10px; }
  .view { padding: 48px 0 72px; }
  .type-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 12px; }
  .work-card-title { font-size: 14px; }
  .lb-stage { padding: 60px 16px 16px; }
  .lb-prev, .lb-next { font-size: 40px; width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-thumbs { padding: 12px 16px 20px; }
  .nav { gap: 16px; }
  .nav-link { font-size: 11px; }
  .site-footer .inner { flex-direction: column; gap: 16px; }
  .section-title-ja { font-size: 24px; }
}

.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: var(--border); }

/* =========================================================
   TOP PAGE 専用スタイル
   ========================================================= */

/* トップページでは header-sns, 透過ヘッダー変化 */
.header-sns {
  display: flex;
  gap: 14px;
}
.sns-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.7;
  transition: opacity .25s var(--ease);
  filter: brightness(0) invert(1);
}
.sns-icon:hover { opacity: 1; }
.sns-icon-line {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 2C6.5 2 2 5.7 2 10.2c0 4 3.6 7.4 8.5 8.1.3.1.8.2.9.5.1.3.1.7 0 1l-.2.8c0 .3-.2 1 .9.5s5.8-3.4 7.9-5.8c1.4-1.6 2-3.2 2-5.1C22 5.7 17.5 2 12 2z'/></svg>");
}
.sns-icon-ig {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='1' fill='white'/></svg>");
  filter: none;
}

/* Top page body: 透過 → スクロール後に bg が付く */
.body-top .site-header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
}
.body-top.scrolled .site-header {
  background: rgba(14,14,15,0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ========== Hero (top page) ========== */
.hero-top {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-top-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.55em;
  color: var(--accent);
  margin: 0 0 32px;
  text-transform: uppercase;
}
.hero-top-title {
  margin: 0 0 32px;
  font-weight: 300;
  color: var(--fg); /* テーマの h1 色 (濃紺) を上書き */
}
.hero-line-ja {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: clamp(28px, 5.4vw, 64px);
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.hero-line-en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  margin-top: 20px;
}
.hero-top-lead {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin: 0 0 48px;
}
.hero-top-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: all .3s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: transparent;
  color: var(--fg);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-small { padding: 10px 20px; font-size: 11px; }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fg-muted);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  gap: 10px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--fg-muted), transparent);
  animation: scroll-indicate 2s ease-in-out infinite;
}
@keyframes scroll-indicate {
  0%, 100% { transform: translateY(-10px); opacity: 0.3; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ========== Generic section ========== */
.section { padding: 120px 0; }
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.section-eyebrow.center { text-align: center; }
.section-h2 {
  margin: 0 0 48px;
  font-weight: 400;
  color: var(--fg); /* テーマの h2 色を上書き */
}
.section-h2.center { text-align: center; }
.section-h2-ja {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.section-h2-en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  margin-top: 10px;
}
.section-head-center { text-align: center; margin-bottom: 72px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ========== About ========== */
.section-about { padding: 140px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 2.1;
  margin: 0 0 24px;
}
.about-p em { color: var(--accent); font-style: italic; }
.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

/* ========== Category big cards ========== */
.section-categories { background: var(--bg); }
.cat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.cat-big-card {
  display: block;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.cat-big-card-img {
  position: absolute; inset: 0;
}
.cat-big-card-img::after {
  /* 明るい作品画像でも下部テキストが読めるよう、常時グラデーションを敷く */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 45%, transparent 70%);
  pointer-events: none;
}
.cat-big-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: saturate(0.85) brightness(0.6);
}
.cat-big-card:hover .cat-big-card-img img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.7);
}
.cat-big-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: var(--fg);
}
.cat-big-card-en {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cat-big-card-ja {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-bottom: 20px;
}
.cat-big-card-desc {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 380px;
}
.cat-big-card-cta {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  width: fit-content;
  transition: color .3s var(--ease);
}
.cat-big-card:hover .cat-big-card-cta { color: var(--accent); }

/* ========== Featured Works ========== */
.section-featured { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.featured-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 16px;
}
.featured-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.featured-card:hover .featured-card-img img { transform: scale(1.06); }
.featured-card-type {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.featured-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  color: var(--fg);
}

/* ========== Order Flow ========== */
.section-order { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.flow-step {
  position: relative;
  padding-top: 72px;
  text-align: center;
  z-index: 1;
}
.flow-num {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.flow-title {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.flow-desc {
  margin: 0;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ========== Pickup (作品ピックアップ) ========== */
.section-pickup { background: var(--bg); }
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.pickup-cell {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface);
}
.pickup-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.pickup-cell:hover img { transform: scale(1.08); }
.pickup-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  padding: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.pickup-cell:hover .pickup-cell-overlay { opacity: 1; }

/* ========== Contact CTA ========== */
.section-contact { background: linear-gradient(180deg, var(--bg) 0%, #0a0a0b 100%); padding: 140px 0; }
.contact-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 60px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
}
.contact-lead {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 48px;
}
.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-buttons .btn {
  padding: 24px 32px;
  justify-content: center;
  letter-spacing: 0.18em;
  border-width: 1px;
  gap: 16px;
  text-transform: none;
}
.btn-line {
  background: #06c755;
  color: #fff;
  border-color: #06c755;
}
.btn-line:hover { background: transparent; color: #06c755; }
.btn-ig {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #fff;
  border-color: transparent;
}
.btn-ig:hover { opacity: 0.88; }
.btn-icon { font-size: 22px; display: inline-flex; align-items: center; }
.btn-icon svg { display: block; }
.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}
.btn-label-main {
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}
.btn-label-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.85;
  text-transform: none;
}

/* ========== Footer (rich) ========== */
.site-footer-rich { padding: 80px 0 32px; border-top: 1px solid var(--border); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer-rich .footer-brand {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
}
.footer-tagline {
  color: var(--fg-muted);
  font-style: italic;
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.15em;
}
.footer-h {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin: 0 0 20px;
}
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-list a {
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color .25s var(--ease);
}
.footer-list a:hover { color: var(--accent); }
.footer-shop-desc {
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 20px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--fg-muted); }
.footer-legal a:hover { color: var(--accent); }

/* ========== Top page responsive ========== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-cards { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .flow::before { display: none; }
  .pickup-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-buttons { grid-template-columns: 1fr; }
  .contact-card { padding: 48px 24px; }
}
@media (max-width: 540px) {
  .section { padding: 80px 0; }
  .header-sns { display: none; }
  .flow { grid-template-columns: 1fr; }
  .pickup-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .cat-big-card-body { padding: 32px 24px; }
  .hero-top { min-height: 90vh; }
}

/* ========== YouTube icon ========== */
.sns-icon-yt {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M23.5 6.5c-.3-1.1-1.1-1.9-2.2-2.2C19.4 4 12 4 12 4s-7.4 0-9.3.3C1.6 4.6.8 5.4.5 6.5.2 8.4.2 12 .2 12s0 3.6.3 5.5c.3 1.1 1.1 1.9 2.2 2.2C4.6 20 12 20 12 20s7.4 0 9.3-.3c1.1-.3 1.9-1.1 2.2-2.2.3-1.9.3-5.5.3-5.5s0-3.6-.3-5.5zM9.8 15.5v-7l6.1 3.5-6.1 3.5z'/></svg>");
}

/* ========== About extended sections ========== */
.about-lead-p {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  line-height: 2;
  color: var(--fg);
  font-weight: 300;
  margin: 0 0 32px;
  letter-spacing: 0.04em;
}
.about-continued {
  max-width: 820px;
  margin: 72px auto 0;
  text-align: left;
}
.about-continued .about-p {
  margin-bottom: 28px;
}

.about-blocks {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
.about-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-block-h {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.1em;
  margin: 0 0 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--fg);
}
.about-block-h small {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: uppercase;
}

.materials-list {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.materials-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mat-code {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.08em;
  min-width: 80px;
  font-weight: 500;
}
.mat-desc {
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.small-p {
  font-size: 13px;
  font-style: italic;
  color: var(--fg-muted);
  margin-top: 8px;
}

.about-cta {
  margin-top: 72px;
  text-align: center;
}

/* Responsive: about-blocks */
@media (max-width: 900px) {
  .about-blocks {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-continued { margin-top: 48px; }
  .materials-list li { flex-wrap: wrap; }
  .mat-code { min-width: 60px; font-size: 16px; }
}

/* ===== v1.0.1 追加 ===== */

/* Category タブ: ホバーで金色に光らせる */
.burin-root .cat-tab:hover .cat-tab-en {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(200, 169, 106, 0.55);
}
.burin-root .cat-tab:hover .cat-tab-ja {
  color: var(--fg);
  text-shadow: 0 0 12px rgba(236, 234, 229, 0.35);
}
.burin-root .cat-tab .cat-tab-en,
.burin-root .cat-tab .cat-tab-ja {
  transition: color .35s var(--ease), text-shadow .35s var(--ease);
}
.burin-root .cat-tab.active .cat-tab-en {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(200, 169, 106, 0.4);
}

/* Technique ブロックのサブ見出し (和彫り / 洋彫り) */
.burin-root .tech-subh {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.burin-root .tech-subh small {
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
}
.burin-root .tech-subh:first-of-type {
  /* 最初の和彫り見出し: intro段落からの区切り線は付けつつマージン調整 */
  margin-top: 28px;
}

/* ========== Lightbox iframe (YouTube 等) ========== */
.lb-iframe {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  background: #000;
}
.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== サムネに動画アイコン ========== */
.lb-thumb {
  position: relative;
}
.lb-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ========== Work-card hover video badges (v1.0.3) ========== */
.work-card-videos {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 3;
}
.work-card:hover .work-card-videos,
.work-card:focus-within .work-card-videos {
  opacity: 1;
  transform: translateY(0);
}
.work-card-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--font-sans);
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  text-decoration: none;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.work-card-video:hover {
  background: #ff0000;
  transform: translateY(-1px);
}
.work-card-video-yt svg {
  fill: currentColor;
  flex-shrink: 0;
}
.work-card-video span {
  font-weight: 500;
}

/* work-card は div になったので button 同等のスタイルを補完 */
.work-card { cursor: pointer; }
.work-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* =========================================================
   v1.0.12: WPテーマ統合 — ダーク統一
   burin の2ページ (home=5184 / gallery=5183) では Kadence の
   白背景ヘッダー・コンテンツ余白をダークに合わせる。
   ========================================================= */
body.page-id-5183,
body.page-id-5184 { background: var(--bg); }

/* コンテンツ領域の白/クリーム余白を消す */
body.page-id-5183 .content-area,
body.page-id-5184 .content-area,
body.page-id-5183 .entry.content-bg,
body.page-id-5184 .entry.content-bg,
body.page-id-5183 .site-main,
body.page-id-5184 .site-main {
  background: var(--bg) !important;
}

/* ヘッダーをダークに */
body.page-id-5183 .site-header,
body.page-id-5184 .site-header,
body.page-id-5183 .site-header .site-header-row-container-inner,
body.page-id-5184 .site-header .site-header-row-container-inner,
body.page-id-5183 .site-main-header-wrap,
body.page-id-5184 .site-main-header-wrap,
body.page-id-5183 .site-header-upper-wrap,
body.page-id-5184 .site-header-upper-wrap {
  background: var(--bg) !important;
}
/* ナビ自体の白背景と、最外殻 .site ラッパーの白も消す */
body.page-id-5183 #masthead .main-navigation,
body.page-id-5184 #masthead .main-navigation {
  background: transparent !important;
}
body.page-id-5183 .site.wp-site-blocks,
body.page-id-5184 .site.wp-site-blocks {
  background: var(--bg) !important;
}
body.page-id-5183 .site-header,
body.page-id-5184 .site-header {
  border-bottom: 1px solid var(--border);
}

/* ナビリンクの色 */
body.page-id-5183 #masthead a,
body.page-id-5184 #masthead a {
  color: var(--fg-muted) !important;
}
body.page-id-5183 #masthead a:hover,
body.page-id-5184 #masthead a:hover,
body.page-id-5183 #masthead a[aria-current="page"],
body.page-id-5184 #masthead a[aria-current="page"] {
  color: var(--accent) !important;
}
body.page-id-5183 #masthead button,
body.page-id-5184 #masthead button {
  color: var(--fg) !important;
  background: transparent !important;
}

/* 黒ロゴを白に反転 (透過PNG前提) */
body.page-id-5183 .site-header .custom-logo,
body.page-id-5184 .site-header .custom-logo {
  filter: invert(1);
}
