/* ===================================================
   FIGURE ARCHIVE 2026 - High-End White Toy Gallery
   =================================================== */

:root {
  --bg-main: #f9f9fb;
  --bg-surface: #ffffff;
  --bg-subtle: #f0f1f5;
  
  --text-primary: #0d0f12;
  --text-secondary: #575e6d;
  --text-muted: #8b92a2;
  --text-light: #b5bac7;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);

  --accent-black: #000000;
  --accent-blue: #0066ff;
  --accent-orange: #ff5500;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===================================================
   Navigation (Minimal Top Bar)
   =================================================== */
.gallery-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

.text-chunk {
  display: inline-block;
}

.hero-break {
  display: block;
}

.nav-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.nav-btn-primary {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.nav-btn-primary:hover {
  background: #2b303a;
  color: #fff;
}

/* ===================================================
   Giant Headline Section (高級トイショップ風)
   =================================================== */
.hero-headline-section {
  padding: 60px 0 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--text-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* 巨大タイトル */
.main-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================================
   Giant Key Visual Banner (最高品質キービジュアル)
   =================================================== */
.hero-kv-container {
  width: 100%;
  margin: 0 0 32px;
}

.hero-kv-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-kv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.hero-kv-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.kv-floating-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-kv-container {
    margin: 8px 0 24px;
  }
  .hero-kv-card {
    border-radius: var(--radius-md);
  }
  .hero-kv-img {
    border-radius: var(--radius-md);
  }
  .kv-floating-tag {
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

.hero-meta-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  font-weight: 500;
}

.hero-lead .lead-line {
  display: block;
}

.hero-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c853;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.6);
}

.count-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.count-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ===================================================
   Filter & Search Bar
   =================================================== */
.filter-section {
  padding: 24px 0 20px;
}

.filter-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  min-width: 280px;
  transition: all 0.2s var(--ease-out);
}

.search-wrap:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-wrap svg {
  color: var(--text-muted);
  margin-right: 8px;
}

.search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  width: 100%;
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.9rem;
}

/* ===================================================
   Gallery Container & Square Grid
   =================================================== */
.gallery-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 32px 100px;
}

.grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px 28px;
}

/* 正方形フィギュアカード (Clean Square Card) */
.figure-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  group: card;
  text-decoration: none;
  color: inherit;
}

/* 1:1 正方形画像コンテナ */
.item-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.figure-item:hover .item-thumb-box {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.18);
}

.item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.figure-item:hover .item-thumb-box img {
  transform: scale(1.04);
}

.item-no-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.item-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 画像直下のテキスト情報 (名前・ID・肩書き) */
.item-meta-box {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out);
}

.figure-item:hover .item-name {
  color: var(--accent-blue);
}

.item-handle-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}

.item-handle-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.item-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}

.empty-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===================================================
   Modals (White Clean Luxury Style)
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--text-primary);
  color: #fff;
}

/* Detail Modal (Center Large Lightbox) */
.detail-modal-card {
  max-width: 460px;
  width: 92%;
  padding: 24px;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.detail-center-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.detail-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.detail-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.detail-image-link:hover .detail-image-wrap img {
  transform: scale(1.03);
}

.detail-no {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  z-index: 2;
}

.detail-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
}

.detail-img-tap-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 2;
}

.detail-image-link:hover .detail-img-tap-hint {
  opacity: 1;
  background: #000;
}

.detail-info-center {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.detail-x-large-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.detail-x-large-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.detail-actions-center {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
}

.btn-detail-x-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-detail-x-primary:hover {
  background: #2b303a;
  transform: translateY(-2px);
  color: #fff;
}

.btn-detail-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-detail-share:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Guide Notice Box */
.guide-notice-box {
  display: flex;
  gap: 12px;
  background: #f0f7ff;
  border: 1px solid #cce5ff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.notice-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.notice-content {
  font-size: 0.88rem;
  color: #1a4f8a;
  line-height: 1.55;
}

.notice-content strong {
  color: #0b3366;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-detail-x {
  flex: 1.2;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-detail-x:hover {
  background: #2b303a;
}

.btn-detail-share {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-detail-share:hover {
  background: #e2e4eb;
}

/* Guide Modal (参加手順 & プロンプト) */
.guide-modal-card {
  max-width: 680px;
  padding: 36px;
}

.modal-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  margin-bottom: 6px;
  display: inline-block;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.modal-subtext {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.guide-step-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.step-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--accent-blue);
}

.guide-step-item h4 {
  font-size: 1rem;
  font-weight: 800;
}

.guide-step-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prompt-box {
  background: #0f1115;
  color: #f0f2f8;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.prompt-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #00f0ff;
}

.btn-copy-prompt {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-prompt:hover {
  background: #fff;
  color: #000;
}

.btn-copy-prompt.copied {
  background: #00c853;
  color: #fff;
}

.prompt-box pre {
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d1d5e6;
}

.btn-cta-x {
  display: block;
  background: var(--text-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-cta-x:hover {
  background: #2b303a;
}

/* ===================================================
   Footer (Minimal)
   =================================================== */
.gallery-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.footer-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Desktop break helper */
.desktop-only-break {
  display: inline;
}

/* Responsive (Tablet & Mobile) */
@media (max-width: 860px) {
  .nav-inner, .hero-inner, .filter-inner, .gallery-container, .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-title {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }
}

/* Smartphone Specific (iPhone & Android) */
@media (max-width: 600px) {
  .desktop-only-break {
    display: none !important;
  }

  /* Navigation */
  .gallery-nav {
    padding: 10px 0;
  }

  .nav-inner {
    padding: 0 14px;
  }

  .brand-tag {
    display: none;
  }

  .brand-title {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .desktop-text {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    white-space: nowrap !important;
  }

  /* Headline Section (スッキリ詰まり感解消) */
  .hero-headline-section {
    padding: 22px 0 18px;
  }

  .hero-inner {
    padding: 0 14px;
  }

  .hero-meta-top {
    gap: 6px;
    margin-bottom: 8px;
  }

  .meta-badge, .meta-label {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .main-title {
    font-size: 2.1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: clamp(0.72rem, 3.4vw, 0.85rem);
    line-height: 1.6;
    color: var(--text-secondary);
  }

  .hero-lead .lead-line {
    display: block;
    white-space: nowrap;
  }

  .hero-meta-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
  }

  .hero-count-pill {
    padding: 4px 10px;
  }

  .count-val {
    font-size: 0.95rem;
  }

  .count-text {
    font-size: 0.65rem;
  }

  /* Filters & Search */
  .filter-section {
    padding: 8px 0 10px;
  }

  .filter-inner {
    padding: 0 14px;
  }

  .search-wrap {
    width: 100%;
    min-width: 100%;
    padding: 6px 12px;
  }

  .search-wrap input {
    font-size: 0.85rem;
  }

  /* Grid Layout: スマホで縦に3列（3カラム） */
  .gallery-container {
    padding: 10px 10px 80px;
    width: 100%;
    box-sizing: border-box;
  }

  .grid-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 6px !important;
    width: 100% !important;
  }

  /* 1個の場合でも3列グリッドの左上に収める */
  .grid-wrap:has(.figure-item:only-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: flex-start !important;
  }

  .figure-item {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .item-thumb-box {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px;
  }

  .item-no-badge {
    top: 4px;
    left: 4px;
    padding: 2px 4px;
    font-size: 0.55rem;
    border-radius: 4px;
  }

  .item-cat-badge {
    top: 4px;
    right: 4px;
    padding: 2px 4px;
    font-size: 0.52rem;
    border-radius: 4px;
  }

  .item-meta-box {
    padding-top: 5px;
    gap: 1px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .item-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .item-name {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
  }

  .item-handle-link {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center;
    gap: 3px;
  }

  .item-handle-link svg {
    flex-shrink: 0;
  }

  .item-handle-link span {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    flex: 1 1 auto;
  }

  /* Modals on Mobile: 画面の真ん中に大きく表示 */
  .modal-backdrop {
    padding: 16px;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-card {
    max-height: 92vh;
    border-radius: 20px !important;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling: touch;
    margin: auto;
  }

  .detail-modal-card {
    max-width: 380px;
    width: 100%;
  }

  .detail-image-link {
    border-radius: 14px;
  }

  .detail-image-wrap {
    border-radius: 14px;
  }

  .detail-name {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }

  .detail-x-large-link {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .detail-actions-center {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn-detail-x-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.84rem;
  }

  .btn-detail-share {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  /* Guide Modal on Mobile */
  .guide-modal-card {
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .modal-heading {
    font-size: 1.3rem;
  }

  .guide-step-item {
    padding: 10px;
  }

  .prompt-box {
    padding: 12px;
  }

  .prompt-box pre {
    font-size: 0.72rem;
  }

  /* Footer */
  .gallery-footer {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    padding: 0 14px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
