/**
 * untitled - ベーススタイル
 * デザイン仕様: 白背景・黒文字・16px倍数・角丸8px・Googleフォント
 */

/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;500;700&display=swap');

/* ============================================================
   CSS変数（余白は16pxの倍数）
   ============================================================ */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #444444;
  --color-link: #111111;
  --color-link-hover-opacity: 0.9;
  --radius: 8px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 64px;
  --font-body: 'Noto Serif JP', serif;
  --font-menu: 'Noto Sans JP', sans-serif;
  --font-latin: 'Crimson Text', serif;
  --container-max: 1280px;
  --header-height: 64px;
  /* ページ全体の背景画像（public_html/assets/bg.png） */
  --body-bg-image: url('/assets/img/bg.png');
}

/* ============================================================
   リセット・ベース
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* 英語UI（lang=\"en\"）時は Crimson Text を本文・見出しに適用 */
html[lang=\"en\"] body,
html[lang=\"en\"] h1,
html[lang=\"en\"] h2,
html[lang=\"en\"] h3,
html[lang=\"en\"] h4,
html[lang=\"en\"] h5,
html[lang=\"en\"] h6,
html[lang=\"en\"] .p-article-body,
html[lang=\"en\"] .p-item-body,
html[lang=\"en\"] .p-detail-artist-bio,
html[lang=\"en\"] .p-detail-order-notes {
  font-family: var(--font-latin);
  font-size: 1.1em;
}

/* 英語判定された要素用（JS から付与） */
.u-font-latin {
  font-family: var(--font-latin);
  font-size: 1.1em;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--body-bg-image);
  background-position: center center;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

p a {
  text-decoration: underline;
}
a.c-tag {
  text-decoration: none;
}

a:hover {
  opacity: var(--color-link-hover-opacity);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 段落（記事・商品本文など） */
.p-article-body p,
.p-item-body p,
.p-detail-artist-bio p,
.p-detail-order-notes p {
  line-height: 2;
  text-align: justify;
  font-size: 0.9375rem;
}

/* テーブル罫線（記事・商品本文および汎用） */
table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
}
table th,
table td {
  border: 1px solid rgba(17, 17, 17, 0.25);
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
}

table th {
  white-space: nowrap;
}

/* 定義リスト（記事・商品本文など） */
dl {
  margin: 0 0 var(--space-sm);
}
dt {
  font-weight: 600;
}
dd {
  margin: 0 0 var(--space-xs);
}
dd + dt {
  margin-top: var(--space-sm);
}

/* スキップリンク（キーボード操作時のみ表示） */
.p-skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius);
  font-family: var(--font-menu);
}
.p-skip-link:focus {
  left: var(--space-sm);
}

/* フォーカス表示（キーボード操作時） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* 画面左端固定：コピーライトロゴ（90度回転） */
.p-fixed-logo {
  position: fixed;
  left: 20px;
  bottom: 160px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: left center;
  z-index: 10;
  pointer-events: none;
}

.p-fixed-logo__img {
  display: none;
  height: 20px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .p-fixed-logo__img {
    display: block;
    height: 20px;
  }
}

/* ============================================================
   レイアウト（コンテンツエリア 1280px）
   ============================================================ */
.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

@media (min-width: 768px) {
  .l-container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ============================================================
   ヘッダー
   ============================================================ */
.p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: #222222;
  color: #ffffff;
  font-family: var(--font-menu);
}

.p-header a {
  color: #ffffff;
}

.p-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 992px) {
  .p-header__inner {
    padding: 0 var(--space-md);
  }
}

.p-header__logo {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.p-header__logo:hover {
  opacity: var(--color-link-hover-opacity);
}

.p-header__logo-img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.p-header :where(a, button):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ハンバーガーボタン（SP） */
.p-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
}

.p-header__menu-btn:hover {
  opacity: var(--color-link-hover-opacity);
  background: rgba(255, 255, 255, 0.12);
}

.p-header__menu-btn[aria-expanded="true"] .p-header__menu-btn-icon--open {
  display: none;
}

.p-header__menu-btn[aria-expanded="true"] .p-header__menu-btn-icon--close {
  display: block;
}

.p-header__menu-btn-icon--close {
  display: none;
}

@media (min-width: 992px) {
  .p-header__menu-btn {
    display: none;
  }
}

/* ナビゲーション */
.p-header__nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #222222;
  padding: var(--space-md);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.p-header__nav.is-open {
  transform: translateX(0);
}

@media (min-width: 992px) {
  .p-header__nav {
    position: static;
    transform: none;
    padding: 0;
    overflow-y: visible;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
}

.p-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .p-header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
}

.p-header__nav-item {
  margin: 0;
  padding: 0;
}

.p-header__nav-item + .p-header__nav-item {
  margin-top: var(--space-xs);
}

@media (min-width: 992px) {
  .p-header__nav-item + .p-header__nav-item {
    margin-top: 0;
  }
}

.p-header__nav-link {
  display: block;
  padding: var(--space-sm);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.p-header__nav-link:hover {
  opacity: var(--color-link-hover-opacity);
  background: rgba(255, 255, 255, 0.12);
}

.p-header__nav-link.is-current {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 992px) {
  .p-header__nav-link {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ドロップダウン（記事一覧・ギャラリーのサブメニュー） */
.p-header__nav-dropdown {
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
}

.p-header__nav-item--has-dropdown .p-header__nav-dropdown {
  padding-left: 0;
}

.p-header__nav-dropdown li {
  margin: 0;
}

.p-header__nav-dropdown .p-header__nav-link {
  padding: var(--space-xs) var(--space-sm);
}

@media (min-width: 992px) {
  .p-header__nav-item--has-dropdown {
    position: relative;
  }

  .p-header__nav-item--has-dropdown .p-header__nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding: var(--space-xs);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding-left: var(--space-sm);
  }

  .p-header__nav-item--has-dropdown:hover .p-header__nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .p-header__nav-item--has-dropdown .p-header__nav-dropdown .p-header__nav-link {
    white-space: nowrap;
  }
}

/* 言語切り替え（現在表示 + クリックでプルダウン） */
.p-header__lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background-color: #0a0a0a;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.p-header__lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: #141414;
}

.p-header__lang.is-open .p-header__lang-btn {
  border-color: rgba(255, 255, 255, 0.55);
  background-color: #141414;
}

.p-header__lang-btn-label {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.p-header__lang-btn-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
}

.p-header__lang-btn-chevron::before {
  content: '';
  display: block;
  width: 0.4em;
  height: 0.4em;
  margin-top: -0.2em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.p-header__lang.is-open .p-header__lang-btn-chevron::before {
  margin-top: 0.1em;
  transform: rotate(-135deg);
}

@media (min-width: 992px) {
  .p-header__lang-btn {
    width: auto;
    min-width: 3.5rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

@media (max-width: 991px) {
  .p-header__lang:not(.is-open) .p-header__lang-menu {
    display: none;
  }

  .p-header__lang.is-open .p-header__lang-menu {
    display: block;
    margin-top: var(--space-xs);
    padding-left: var(--space-sm);
  }
}

@media (min-width: 992px) {
  .p-header__lang {
    position: relative;
  }

  .p-header__lang .p-header__lang-menu {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: var(--space-xs);
    min-width: 11rem;
    padding: var(--space-xs);
    padding-left: var(--space-sm);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  .p-header__lang.is-open .p-header__lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .p-header__lang-menu .p-header__nav-link {
    white-space: nowrap;
  }
}

.p-header__lang-menu .p-header__nav-link.is-current {
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

/* オーバーレイ（SPメニュー開時） */
.p-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: -1;
  background: rgba(17, 17, 17, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.p-header__overlay.is-open {
  display: block;
  opacity: 1;
}

@media (min-width: 992px) {
  .p-header__overlay {
    display: none !important;
  }
}

/* ============================================================
   パンくずリスト（main 直前に表示・モバイルで折り返し）
   ============================================================ */
.p-breadcrumb {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  font-size: 0.875rem;
  font-family: var(--font-menu);
}

.p-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0;
}

.p-breadcrumb__item {
  display: inline-flex;
  align-items: baseline;
}

.p-breadcrumb__item:not(:last-child)::after {
  content: '\003E';
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.p-breadcrumb__link {
  color: var(--color-link);
}

.p-breadcrumb__link:hover {
  text-decoration: underline;
}

.p-breadcrumb__current {
  color: var(--color-text-muted);
}

/* サイトマップ（HTML） */
.p-sitemap-section {
  margin-bottom: var(--space-md);
}
.p-sitemap-section:last-of-type {
  margin-bottom: 0;
}
.p-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-sitemap-list li {
  margin-bottom: var(--space-xs);
}
.p-sitemap-list a {
  color: var(--color-link);
}
.p-sitemap-list a:hover {
  text-decoration: underline;
}

/* 静的ページ本文（プライバシーポリシー・特定商取引法・ガイド等） */
.p-legal-body p {
  margin: 0 0 var(--space-sm);
  line-height: 1.8;
}
.p-legal-body p:last-child {
  margin-bottom: 0;
}
.p-legal-body h3 {
  font-family: var(--font-menu);
  font-size: 1.125rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-xs);
  line-height: 1.4;
}
.p-legal-body h3:first-child {
  margin-top: 0;
}
.p-legal-body ol,
.p-legal-body ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.5em;
  line-height: 1.8;
}
.p-legal-body li {
  margin-bottom: 0.25em;
}
.p-legal-section {
  margin: 0 0 var(--space-lg);
}
.p-legal-section:last-child {
  margin-bottom: 0;
}
.p-legal-list {
  margin: 0;
  padding-left: 1.5em;
}
.p-legal-list li {
  margin-bottom: 0.35em;
}

.p-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-sm) 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.p-legal-table th,
.p-legal-table td {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(17, 17, 17, 0.2);
  text-align: left;
  vertical-align: top;
}

.p-legal-table th {
  background-color: rgba(17, 17, 17, 0.06);
  font-weight: 700;
  width: 10em;
}

.p-legal-table tbody tr:hover td {
  background-color: rgba(17, 17, 17, 0.02);
}

@media (min-width: 768px) {
  .p-legal-table th {
    width: 12em;
  }
}

/* ============================================================
   メインコンテンツ
   ============================================================ */
.p-main {
  flex: 1;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.175);
}

@media (min-width: 768px) {
  .p-main {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* 見出し（文字の大きさと太さで強調） */
.p-main h1,
.c-title--h1 {
  font-family: var(--font-menu);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  line-height: 1.3;
}

.c-title--h1::before {
  content: '■';
  margin-right: var(--space-xs);
}

.c-title--h1::after {
  content: '';
}


.p-main h2,
.c-title--h2 {
  font-family: var(--font-menu);
  font-size: 1rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
  line-height: 1.3;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .p-main h2,
  .c-title--h2 {
    font-size: 1rem;
  }
}

.p-main h3,
.c-title--h3 {
  font-family: var(--font-menu);
  font-size: 0.825rem;
  font-weight: 700;
  margin: var(--space-md) 0 var(--space-md);
  line-height: 1.3;
}

/* ============================================================
   フォーム（ログイン・アカウント作成等）
   ============================================================ */
.c-form label {
  display: block;
  margin-top: var(--space-sm);
}

.c-form label:first-of-type {
  margin-top: 0;
}

.c-form p {
  margin: 0 0 var(--space-sm);
}

.c-form p.u-mt-md {
  margin-top: var(--space-md);
}

.c-form button[type="submit"],
.c-form input[type="submit"] {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-menu);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  cursor: pointer;
}

.c-form button[type="submit"]:hover,
.c-form input[type="submit"]:hover {
  opacity: var(--color-link-hover-opacity);
}

/* ボタン見た目（管理画面 submit と同一・リンクにも適用） */
.c-button,
a.c-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-menu);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.c-button:hover,
a.c-button:hover {
  opacity: var(--color-link-hover-opacity);
}

.c-button--secondary {
  background: #e8e6e4 !important;
  border-color: rgba(17, 17, 17, 0.25);
}

/* ボタン・テキストリンク風（submit をリンクのように見せる） */
.c-button--link,
button.c-button--link {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--color-link);
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
}
.c-button--link:hover,
button.c-button--link:hover {
  opacity: var(--color-link-hover-opacity);
}

/* フォーム用 input / textarea / select（直書きスタイルのクラス化） */
.c-form-input {
  width: 100%;
  max-width: 320px;
  padding: var(--space-xs);
}

.c-form-input--w480 {
  max-width: 480px;
}

.c-form-input--w640 {
  max-width: 640px;
}

.c-form-input--w160 {
  max-width: 160px;
}

.c-form-input--lg {
  padding: 12px;
  margin-top: var(--space-xs);
}

.c-form-actions {
  margin-top: var(--space-md);
}

.c-form-actions__link {
  margin-left: var(--space-sm);
}

.c-form-error {
  color: #b00;
  margin-bottom: var(--space-sm);
}

.c-form-success {
  margin-bottom: var(--space-sm);
}

.c-form-checkbox-label {
  display: inline-block;
  margin-right: var(--space-sm);
}

.p-admin-form-inline {
  display: inline;
  margin-left: var(--space-xs);
}

.p-admin-settings-section {
  margin-bottom: var(--space-lg);
}

.p-admin-settings-section .c-form {
  margin-bottom: var(--space-md);
}

/* ユーティリティ（余白・テキスト・レイアウト） */
.u-mb-sm { margin-bottom: var(--space-sm); }
.u-mb-md { margin-bottom: var(--space-md); }
.u-mt-sm { margin-top: var(--space-sm); }
.u-mt-md { margin-top: var(--space-md); }
.u-mt-lg { margin-top: var(--space-lg); }
.u-ml-sm { margin-left: var(--space-sm); }
.u-text-muted { color: var(--color-text-muted); }
.u-text-sm { font-size: 0.875rem; }
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-text-left { text-align: left; }
.u-fw-bold { font-weight: 700; }
.u-thumb-admin { max-height: 48px; max-width: 80px; object-fit: contain; }
.u-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}
.u-inline-flex-center {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 汎用の非表示ユーティリティ */
.u-hidden {
  display: none !important;
}

/* 視覚的にのみ非表示（スクリーンリーダーには読み上げる） */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 画面サイズによる表示・非表示（md=768px以上, lg=992px以上。既存の @media と統一） */
.u-visible-md-up { display: none !important; }
@media (min-width: 768px) {
  .u-visible-md-up { display: revert !important; }
}
.u-visible-lg-up { display: none !important; }
@media (min-width: 992px) {
  .u-visible-lg-up { display: revert !important; }
}
.u-hidden-md-up { }
@media (min-width: 768px) {
  .u-hidden-md-up { display: none !important; }
}
.u-hidden-lg-up { }
@media (min-width: 992px) {
  .u-hidden-lg-up { display: none !important; }
}

/* ============================================================
   管理画面（テーブル・メッセージ・余白）
   ============================================================ */
.p-admin-subnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-admin-subnav__item {
  margin: 0;
}

.p-admin-subnav__link {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.p-admin-subnav__link:hover {
  background: rgba(17, 17, 17, 0.06);
}

.p-admin-subnav__link.is-current {
  font-weight: 700;
  background: rgba(17, 17, 17, 0.08);
}

.p-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.p-admin-table th,
.p-admin-table td {
  text-align: left;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(17, 17, 17, 0.25);
}

.p-admin-table thead tr {
  border-bottom: 1px solid var(--color-text);
}

.p-admin-table tbody tr {
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.p-admin-search {
  margin-bottom: var(--space-md);
}

.p-admin-message--success {
  color: #0a0;
  margin-bottom: var(--space-sm);
}

.p-admin-message--error {
  color: #b00;
  margin-bottom: var(--space-sm);
}

.p-admin-section {
  margin-bottom: var(--space-md);
}

.p-admin-section + .p-admin-section {
  margin-top: var(--space-md);
}

.p-admin-nav {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-family: var(--font-menu);
}

.p-admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.p-admin-nav a.is-current {
  font-weight: 700;
}

.p-additional-images-add {
  margin-bottom: var(--space-sm);
}

.p-additional-images-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  max-width: 480px;
}

.p-additional-images-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  cursor: grab;
}

.p-additional-images-item:active {
  cursor: grabbing;
}

.p-additional-images-item.p-additional-images-dragging {
  opacity: 0.6;
}

.p-additional-images-item.p-additional-images-drag-over {
  background: rgba(17, 17, 17, 0.06);
}

.p-additional-images-grip {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  user-select: none;
  flex-shrink: 0;
}

.p-additional-images-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.p-additional-images-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}

.p-additional-images-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: #fff;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.p-additional-images-remove:hover {
  background: #f5f5f5;
  border-color: rgba(17, 17, 17, 0.3);
}

/* ============================================================
   公開ページ（トップ・一覧・詳細・検索）
   ============================================================ */

/* トップページ：メインビジュアル（MV） */
.home-mv {
  margin: 0 0 var(--space-md);
  line-height: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.home-mv__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .home-mv {
    margin-bottom: var(--space-lg);
    aspect-ratio: auto;
    overflow: visible;
  }

  .home-mv__img {
    height: auto;
  }
}

/* トップページ：ロゴ（最大幅320px・中央表示） */
.home-logo {
  text-align: center;
  margin: 0 0 var(--space-md);
}

.home-logo img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .home-logo img {
    max-width: 240px;
  }
}

/* トップページ：イントロブロック（テキスト最大幅768px・控えめな背景） */
.home-intro {
  max-width: 768px;
  margin: var(--space-md) 0 var(--space-lg);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md) var(--space-sm);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  border: 3px solid #222222;
  padding: var(--space-lg);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .home-intro {
    padding: var(--space-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
}

.home-intro p {
  line-height: 2.5;
  margin: 0 0 var(--space-sm);
}

.home-intro p:last-child {
  margin-bottom: 0;
}

/* Aboutページ：冒頭リード（本文よりやや小さめ） */
.about-top {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
}

.about-top p {
  line-height: 2.5;
}

/* Aboutページ：イントロブロック（.home-intro と同様の見た目） */
.about-intro {
  max-width: 768px;
  margin: var(--space-md) 0 var(--space-lg);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg) var(--space-md);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  line-height: 1.9;
  border: 3px solid #222222;
}

@media (min-width: 768px) {
  .about-intro {
    padding: var(--space-xl) var(--space-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
}

.about-intro p {
  box-sizing: border-box;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto var(--space-sm);
  text-align: left;
}

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

.about-intro img {
  display: block;
  margin: 0 auto;
  max-width: 240px;
}
@media (min-width: 768px) {
  .about-intro img {
    max-width: 280px;
  }
}

.p-top-section {
  margin-top: var(--space-lg);
}

.p-top-section:first-of-type {
  margin-top: var(--space-lg);
}

.c-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.c-card a {
  display: block;
}

.c-card__img-wrap {
  position: relative;
  margin: 0 0 var(--space-xs);
}

.c-card__rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: #111;
  border-radius: 0 0 var(--radius) 0;
}

.c-card__rank--1 {
  background-color: #c9a227;
  color: #fff;
}

.c-card__rank--2 {
  background-color: #7d7d7d;
  color: #fff;
}

.c-card__rank--3 {
  background-color: #b87333;
  color: #fff;
}

.c-card__img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  /* box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15); */
  filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.5));
}

/* 記事カード一覧のみ：.p-detail-eyecatch img と同じくモノクロ（作品カードの drop-shadow は上書きで解除） */
.c-card-list--article .c-card__img-wrap img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

@media (max-width: 767px) {
  .c-card-list--article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }
}

.c-card__title {
  margin: 0;
  font-weight: 700;
}

.c-card__meta {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* 作品カード一覧（gallery/top検索）：タイトルとメタ行を中央寄せ */
.p-gallery .c-card__title {
  text-align: center;
}

.p-gallery .c-card__meta {
  text-align: center;
}

.c-tag-list {
  margin: 0;
}

.c-tag {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 4px 12px;
  background: rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.c-tag:hover {
  opacity: var(--color-link-hover-opacity);
}

.l-grid-1fr {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.p-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.p-article-list__link {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.p-article-list__thumb {
  display: inline-block;
  width: 120px;
  height: 80px;
  margin-right: var(--space-sm);
  vertical-align: top;
}

.p-article-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.p-search-form {
  margin-bottom: var(--space-md);
}

.p-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-result-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.p-result-list__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

.p-detail-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.p-item-price__tax {
  font-size: 0.75em;
}

.p-detail-eyecatch {
  margin: var(--space-md) 0;
}

.p-detail-eyecatch img {
  max-width: 240px;
  height: auto;
  border-radius: var(--radius);
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); /* Safari用 */
}
@media (min-width: 768px) {
   .p-detail-eyecatch img {
      max-width: 480px;
      display: block;
      margin: 0 auto
   }
}


.p-detail-gallery {
  margin: var(--space-md) 0;
}

/* メイン画像：article 幅をはみ出し、画面幅いっぱい〜最大1200pxで中央配置 */
.p-detail-gallery-main-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--space-sm);
}

.p-detail-gallery-main-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p-detail-gallery-main {
  margin: 0;
}

.p-detail-gallery-main img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.p-detail-gallery-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.p-detail-gallery-thumbs li {
  margin: 0;
}

.p-detail-gallery-thumb {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  overflow: hidden;
  width: 80px;
  aspect-ratio: 3 / 2;
}

.p-detail-gallery-thumb:hover {
  border-color: rgba(17, 17, 17, 0.2);
}

.p-detail-gallery-thumb.is-current {
  border-color: var(--color-text);
}

.p-detail-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.p-detail-gallery-reload {
  margin: var(--space-sm) 0 var(--space-md);
  text-align: center;
}

.p-detail-additional-images {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-md);
}

.p-detail-additional-images img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* 記事詳細・商品詳細：article の最大幅と中央寄せ */
.p-detail-content {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

/* 静的ページ・サイトマップ等の本文幅（商品詳細と同じ 768px） */
.p-page-content {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.p-detail-product-info {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.p-detail-product-info__table {
  margin: var(--space-md) 0;
  width: 100%;
  border-collapse: collapse;
}

.p-detail-product-info__table th,
.p-detail-product-info__table td {
  border: 1px solid rgba(17, 17, 17, 0.25);
  padding: var(--space-xs) var(--space-sm);
  vertical-align: top;
  text-align: left;
}

.p-detail-product-info__table th {
  font-weight: 700;
  width: 8em;
}

.p-article-body,
.p-item-body {
  margin-top: var(--space-md);
}

.p-detail-artist {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.p-detail-artist-name {
  margin: var(--space-sm) 0 0;
  font-weight: 700;
  font-size: 1.125rem;
}

.p-detail-artist-name-roma {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.p-detail-artist-bio {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-detail-artist-bio p:first-child {
  margin-top: 0;
}

.p-detail-order-notes {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.p-detail-order-notes__title {
  margin-top: 0;
}

.p-detail-order-notes p:first-of-type {
  margin-top: 0;
}

.p-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.p-detail-actions__form {
  display: inline-flex;
  margin: 0;
}

.p-detail-soldout {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-menu);
  font-size: 1rem;
  color: var(--color-text-muted);
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  cursor: not-allowed;
  box-sizing: border-box;
}

.u-mt-32 {
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .u-mt-32 {
    margin-top: 32px;
  }
}

/* ============================================================
   フッター
   ============================================================ */
.p-footer {
  margin-top: auto;
  padding: var(--space-md) var(--space-sm);
  font-family: var(--font-menu);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .p-footer {
    padding: var(--space-md) var(--space-md);
  }
}

.p-footer__nav {
  margin-bottom: var(--space-sm);
}

.p-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}

@media (min-width: 768px) {
  .p-footer__nav-list {
    justify-content: flex-end;
  }
}

.p-footer__nav-item {
  margin: 0;
}

.p-footer__nav-link {
  color: var(--color-text);
}

.p-footer__nav-link:hover {
  opacity: var(--color-link-hover-opacity);
  text-decoration: underline;
}

.p-footer__copyright {
  margin: 0;
}

/* ページの上へ戻るボタン（CSS のみ・固定表示） */
.p-pagetop {
  position: fixed;
  bottom: var(--space-sm);
  right: var(--space-sm);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-menu);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.p-pagetop:hover {
  opacity: var(--color-link-hover-opacity);
  text-decoration: underline;
}

.p-pagetop:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .p-pagetop {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* モーダルウィンドウ */
.p-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
}
.p-modal.is-open {
  display: flex;
}
.p-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.p-modal__box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  background: var(--color-bg, #fff);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: var(--space-lg);
}
.p-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.p-modal__title {
  margin: 0;
  flex: 1;
}
.p-modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 4px;
}
.p-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}
.p-modal__close:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}
.p-modal__body {
  margin-top: var(--space-md);
}

/* モーダル表示中は背景スクロールを無効化 */
body.is-modal-open {
  overflow: hidden;
  touch-action: none;
}

/* 商品詳細: TRS画像モーダル */
.p-trs-modal {
  padding: 0;
}

.p-trs-modal .p-modal__overlay {
  background: rgba(0, 0, 0, 0.2);
}

.p-trs-modal__box {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background-color: #000;
  background-image: url('/assets/img/bg.png'), url('/assets/img/bg.png');
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-trs-modal__box img {
filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.5));
}

.p-trs-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.p-trs-modal__close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.p-trs-modal__image {
  display: block;
  width: auto;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
}

@media (max-width: 767px) {
  .p-trs-modal__image {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: none;
  }
}

/* Gallery View */
.p-gallery-view-launch {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.p-gallery-view-launch__lead {
  margin-bottom: var(--space-sm);
}

.p-gallery-view-launch__note {
  color: var(--color-text-muted);
}

.p-gallery-view-launch--in-gallery {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-md) 0 var(--space-lg);
}

.p-gallery-view-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.p-gallery-view-page--embed {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.p-gallery-view-embed-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.p-gallery-view-empty {
  margin: 0;
  padding: var(--space-md);
  color: #fff;
  text-align: center;
}

.p-gallery-view-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  padding: 0;
}

.p-gallery-view-modal.is-open {
  display: block;
}

.p-gallery-view-modal[hidden] {
  display: none !important;
}

.p-gallery-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--body-bg-image), var(--body-bg-image);
  background-position: center center;
}

.p-gallery-view-modal__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  background-image: var(--body-bg-image), var(--body-bg-image);
  background-position: center center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.p-gallery-view-modal__close {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.p-gallery-view-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.p-gallery-view-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.p-gallery-view-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.p-gallery-view-page--embed .p-gallery-view__stage {
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  height: calc(100svh - 70px);
}

.p-gallery-view {
  color: #fff;
}

.p-gallery-view__stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 128px);
  height: calc(100svh - 128px);
  min-height: 320px;
  overflow: hidden;
}

.p-gallery-view__main-link {
  display: block;
  width: 100%;
  height: 100%;
}

.p-gallery-view__main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-gallery-view__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  color: #fff;
}

.p-gallery-view__nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.0)
  );
  pointer-events: none;
}

.p-gallery-view__nav--prev::before {
  left: 0;
}

.p-gallery-view__nav--next::before {
  right: 0;
  transform: scaleX(-1);
}

.p-gallery-view__nav-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.p-gallery-view__nav--prev .p-gallery-view__nav-icon {
  left: 8px;
}

.p-gallery-view__nav--next .p-gallery-view__nav-icon {
  right: 8px;
}

.p-gallery-view__nav--prev {
  left: 0;
}

.p-gallery-view__nav--next {
  right: 0;
}

.p-gallery-view__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.p-gallery-view__thumb-wrap {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.86);
  padding: var(--space-xs) var(--space-sm);
  min-width: 0;
}

/* 商品詳細の .p-detail-gallery-thumbs / .p-detail-gallery-thumb を踏襲（横一列・はみ出し分は横スクロール） */
.p-gallery-view .p-detail-gallery-thumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  gap: var(--space-sm);
  padding-bottom: 2px;
}

.p-gallery-view .p-detail-gallery-thumbs > li,
.p-gallery-view .p-gallery-view__thumb-item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.p-gallery-view .p-detail-gallery-thumb {
  flex-shrink: 0;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.06);
}

.p-gallery-view .p-detail-gallery-thumb:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.p-gallery-view .p-detail-gallery-thumb.is-current {
  border-color: #fff;
}

.p-gallery-view .p-detail-gallery-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .p-gallery-view__stage {
    height: calc(100vh - 106px);
    height: calc(100svh - 106px);
  }
}

/* Exhibition */
.p-main--exhibition {
  background-color: #222222;
  color: #eeeeee;
}

.p-main--exhibition a {
  color: #a8c8ff;
}

.p-main--exhibition a:hover {
  color: #cfe0ff;
}

.p-exhibition-list__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.p-exhibition-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.p-exhibition-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
}

.p-exhibition-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #111;
}

.p-exhibition-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-exhibition-detail {
  padding-bottom: var(--space-xl);
}

.p-exhibition-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .p-exhibition-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .p-exhibition-gallery__figure--wide {
    grid-column: span 2;
  }
}

.p-exhibition-gallery__figure {
  margin: 0;
  background: #f4f4f4;
  border-radius: 2px;
  overflow: hidden;
}

.p-exhibition-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
