/* =========================================
   BASE
========================================= */

html,
body {
  height: 100%;
  margin: 0;
}

/* 背景 */
body {
  min-height: 100vh;
  background: #ffffff;
  color: #000000;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.7;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* =========================================
   WRAPPER
========================================= */

.site-wrapper {
  width: min(1200px, 92%);
  margin: 0 auto;                 /* 横中央 */
  padding: 80px 0;                /* 上下余白で中央性を演出 */
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 半透明レイヤー（可読性向上） */
.site-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  z-index: -1;
}

/* =========================================
   MAIN
========================================= */

.site-main {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 56px 0 72px;
  position: relative;
  z-index: 1;
}

.site-wrapper .site-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  margin-top: var(--space-md);
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  padding: 60px 0;
  text-align: center;
}

.hero-container {
  max-width: 600px;
  margin: 0 auto;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* =========================================
   TEXT COLOR
========================================= */

body,
h1, h2, h3, p, a {
  color: #000000;
}

/* =========================================
   BUTTON STYLE（黒枠）
========================================= */

.btn-primary {
  position: relative;
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* hover時に背景は変えない */
.btn-primary:hover {
  background: transparent;
  color: #000000;
}

/* =========================================
   GOLD UNDERLINE ANIMATION
========================================= */

.btn-primary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    #c9a227,
    #e6c76a,
    #c9a227
  );

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

body {
  text-align: center;
}

/* 数字の視認性を上げるためのユーティリティ */
.numeric-readable {
  font-family: "Avenir Next", "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0.015em;
}

.page-header {
  margin-bottom: 28px;
  padding: 18px 0 8px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  letter-spacing: 0.14em;
  font-weight: 600;
}

.page-header-eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.58);
}

.page-header-lead {
  width: min(560px, 92%);
  margin: 12px auto 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.72);
}

.model-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.model-card.hidden {
  display: none;
}
/* =========================================
   MODEL GRID
========================================= */

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 52px 48px;
  margin: 34px auto 0;
  align-items: start;
  padding: 0 16px;
  box-sizing: border-box;
}

/* カードの横幅制御 */
.model-card {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.28s ease;
}

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

.model-card a {
  display: block;
  text-decoration: none;
}

/* 画像比率維持 */
.image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: #f4efe5;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.image-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.media-placeholder span {
  display: inline-block;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.image-wrapper.is-placeholder .media-placeholder,
.model-main-image.is-placeholder .media-placeholder,
.model-gallery-item.is-placeholder .media-placeholder {
  opacity: 1;
}

.image-wrapper.is-placeholder img,
.image-wrapper.is-placeholder video,
.model-gallery-item.is-placeholder img,
.model-gallery-item.is-placeholder video {
  display: none;
}

.model-card:hover .image-wrapper img,
.model-card:hover .image-wrapper video {
  transform: scale(1.02);
}

.model-info {
  margin-top: 12px;
  line-height: 1.35;
}

.model-info h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.model-info p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(17, 17, 17, 0.72);
}

.model-info p:last-child {
  overflow-wrap: anywhere;
}

.model-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 6px;
}

.model-card-tag {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #5d4a0e;
}
@media (max-width: 1200px) {
  .model-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 42px 34px;
  }
}

@media (max-width: 992px) {
  .model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 26px;
  }
}

@media (max-width: 768px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
    padding: 0 12px;
  }
}

/* =========================================
   FILTER STYLES
========================================= */

.filters {
  display: grid;
  gap: 16px;
  margin: 28px auto 18px;
  width: min(980px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filters-mobile-bar,
.filters-sheet-backdrop,
.filters-sheet-grip,
.filters-sheet-header,
.filters-sheet-actions {
  display: none;
}

.filters-sheet {
  position: static;
}

.filters-sheet-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.filters-sheet-close {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #111111;
  cursor: pointer;
}

.model-list-meta {
  margin-bottom: 16px;
  text-align: center;
}

#filterResultCount {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.7);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.filter-row-primary {
  flex-wrap: nowrap;
}

.filter-row-primary .filter-range-group + .filter-range-group {
  margin-left: 8px;
}

.filter-row-tags {
  margin-top: 8px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.filter-select-group {
  flex: 1 1 280px;
  align-items: flex-start;
  padding: 16px 14px 14px;
}

.filter-row-primary .filter-select-group,
.filter-row-primary .filter-range-group,
.filter-row-primary .filter-tag-group {
  flex: 1 1 0;
  min-width: 0;
}

.filter-row-primary .filter-group {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.filter-row-tags .filter-group {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.filter-select-group label,
.filter-select-group .filter-group-label {
  width: 100%;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.86);
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #111111;
  border-bottom: 1.5px solid #111111;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  border: 1px solid #111111;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 11px 38px 11px 14px;
  outline: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.select-wrap select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.16);
}

.filter-range-selects {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
}

.filter-range-selects span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.25em;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.filter-range-group {
  max-width: none;
}

.filter-tag-group {
  align-content: start;
  width: 100%;
}

.mobile-tag-selects {
  display: none;
}

.tag-options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-option {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: rgba(17, 17, 17, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 12px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-option:hover {
  transform: translateY(-1px);
  background: rgba(17, 17, 17, 0.1);
}

.tag-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
}

.tag-option.is-active {
  background: #111111;
  color: #ffffff;
}

/* =========================================
   MODEL DETAIL
========================================= */

.model-detail-main {
  width: min(1120px, 96%);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.model-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.model-detail-layout.no-media {
  grid-template-columns: 1fr;
}

.model-media-panel,
.model-info-panel,
.model-description {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.model-media-panel {
  position: static;
  display: grid;
  gap: 10px;
  padding: 14px;
  width: min(620px, 100%);
  margin: 0 auto;
}

.model-main-image {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  background: #f4efe5;
}

.model-main-image img,
.model-main-image video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  display: block;
}

.model-main-image.is-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.model-main-image.is-placeholder .media-placeholder {
  position: absolute;
}

.model-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.model-gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f4efe5;
}

.model-gallery-item img,
.model-gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  display: block;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.model-gallery-item video {
  pointer-events: none;
}

.model-gallery-item .media-placeholder span {
  font-size: clamp(0.52rem, 0.8vw, 0.68rem);
  letter-spacing: 0.18em;
}

.model-gallery-item:hover img,
.model-gallery-item:hover video {
  transform: translateY(-1px);
}

.model-gallery-item.active img,
.model-gallery-item.active video {
  border-color: #111111;
}

.model-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1000;
}

.model-lightbox.is-open {
  display: flex;
}

.model-lightbox img {
  width: min(92vw, 720px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 0;
}

.model-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.model-info-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.model-section-heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 17, 0.75);
}

.model-profile,
.model-tags-wrap,
.model-social-wrap {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.model-profile {
  margin: 0;
  text-align: left;
}

.model-profile-grid {
  margin: 0;
  display: grid;
  gap: 8px;
}

.model-profile-tags {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 17, 17, 0.22);
}

.model-profile-social {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 17, 17, 0.22);
}

.model-profile-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.22);
}

.model-profile-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.model-profile-item dt {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.72);
}

.model-profile-item dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #111111;
  overflow-wrap: anywhere;
}

.model-profile-tags-inline {
  display: block;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

.model-tag {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.model-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  border: 1px solid #111111;
  transition: transform 0.25s ease;
}

.social-link:hover {
  transform: translateY(-1px);
}

.social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.model-description {
  margin: 16px auto 0;
  padding: 14px;
  text-align: left;
  width: min(860px, 100%);
}

.model-description > :first-child {
  margin-top: 0;
}

.model-description > :last-child {
  margin-bottom: 0;
}

.model-back {
  margin: 20px auto 0;
  text-align: center;
  width: min(860px, 100%);
  box-sizing: border-box;
}

/* =========================================
   FILTER BUTTON
========================================= */

.filter-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #000000;
  border-radius: 6px;
  background: transparent;
  color: #000000;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
  white-space: nowrap;
}

/* 選択中 */
.filter-btn.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
}

/* ホバー時下線アニメーション */
.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #111111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.filter-btn:hover::after {
  transform: scaleX(1);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 28px 0 56px;
}

.pagination-btn {
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
}

@media (min-width: 769px) {
  .filters {
    width: min(980px, 100%);
    margin: 24px auto 16px;
    padding: 0;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .filter-row {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .filters .filter-row-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
  }

  .filter-group {
    height: auto;
    border-color: rgba(17, 17, 17, 0.16);
    background: #fcfcfc;
  }

  .filters .filter-row-primary .filter-group {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .filter-select-group {
    padding: 16px;
    gap: 10px;
  }

  .filter-select-group label,
  .filter-select-group .filter-group-label {
    margin-bottom: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .select-wrap select {
    min-height: 42px;
    font-size: 0.88rem;
    padding: 10px 38px 10px 14px;
    border-radius: 12px;
  }

  .filter-range-selects {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .filter-row-primary {
    justify-content: start;
  }

  .filters .filter-row-tags .filter-group {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .tag-options {
    gap: 8px;
  }

  .tag-option {
    font-size: 0.74rem;
    padding: 7px 11px;
  }

  .model-page .model-detail-layout {
    grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
    gap: 20px;
  }

  .model-page .model-detail-layout.no-media {
    grid-template-columns: 1fr;
  }

  .model-page .model-media-panel {
    position: sticky;
    top: 16px;
    width: 100%;
    margin: 0;
  }

  .model-page .model-info-panel {
    width: 100%;
    margin: 0;
  }

  .model-page .model-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
  }

  .model-page .model-gallery-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .model-page .site-wrapper {
    min-height: 100vh;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }

  .model-page .site-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.1vw, 2rem);
    line-height: 1.2;
  }

  .model-page .model-gallery {
    margin: 0;
    gap: 8px;
  }

  .model-page .model-main-image {
    margin: 0;
  }

  .model-page .model-main-image img,
  .model-page .model-main-image video {
    width: 100%;
    max-height: none;
  }

  .model-page .model-profile {
    margin: 0;
  }

  .model-page .model-tags {
    margin: 0;
  }

  .model-page .model-social {
    margin: 0;
  }

  .model-page .model-back {
    margin-top: 16px;
    width: min(860px, 100%);
  }
}

@media (max-width: 1024px) {
  .site-main {
    width: min(1080px, 94%);
    padding: 44px 0 64px;
  }

  .model-grid {
    gap: 34px 26px;
  }

  .model-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================
   RESPONSIVE ADJUSTMENT
========================================= */

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .site-wrapper {
    width: 94%;
    padding: 28px 0 34px;
  }

  .site-wrapper::before {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    border-radius: 10px;
  }

  .site-main {
    width: min(720px, 94%);
    padding: 18px 0 30px;
  }

  .page-header {
    margin-bottom: 12px;
    padding-top: 4px;
  }

  .page-header h1 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
    letter-spacing: 0.07em;
    line-height: 1.2;
  }

  .page-header-eyebrow {
    margin-bottom: 6px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .page-header-lead {
    width: min(92%, 420px);
    font-size: 0.88rem;
    margin-top: 10px;
  }

  .filters {
    margin: 22px auto 12px;
    gap: 12px;
    padding: 12px;
  }

  .filters-mobile-bar {
    display: flex;
    justify-content: center;
    margin: 6px 0 12px;
    position: sticky;
    top: 10px;
    z-index: 30;
    pointer-events: none;
  }

  .filters-mobile-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #111111;
    border-radius: 999px;
    min-width: min(100%, 220px);
    padding: 11px 18px;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
  }

  .filters-mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
  }

  .filters-sheet {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 1100;
    width: auto;
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 20px;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-x: contain;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.2s ease;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    font-size: 16px;
  }

  .filters-sheet.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .filters-sheet-grip {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.35);
    margin: 10px auto 6px;
  }

  .filters-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    z-index: 1;
  }

  .filters-sheet-header h2 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .filters-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    font-size: 1.2rem;
  }

  .filters-sheet .filters {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 12px 10px;
  }

  .filters-sheet .filters,
  .filters-sheet .filter-row,
  .filters-sheet .filter-group,
  .filters-sheet .filter-select-group,
  .filters-sheet .filter-range-selects,
  .filters-sheet .select-wrap,
  .filters-sheet .select-wrap select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .filters-sheet .filter-group {
    border-radius: 14px;
    border-color: rgba(17, 17, 17, 0.14);
    background: #f7f7f7;
    padding: 10px 11px;
  }

  .filters-sheet .filter-select-group label,
  .filters-sheet .filter-select-group .filter-group-label {
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .filters-sheet .select-wrap select {
    font-size: 18px !important;
    font-weight: 500;
    line-height: 1.4;
    min-height: 46px;
    padding: 10px 34px 10px 12px;
  }

  .filters-sheet .select-wrap select option {
    font-size: 18px;
  }

  .filters-sheet .filter-range-selects span {
    font-size: 16px !important;
  }

  .filters-sheet .filter-range-selects {
    gap: 8px;
  }

  .filters-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(17, 17, 17, 0.16);
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
  }

  .filters-sheet-actions .filter-btn {
    min-height: 46px;
    border-radius: 10px;
    font-size: 16px !important;
    font-weight: 600;
  }

  .filters-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .filters-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-open {
    overflow: hidden;
    overflow-x: hidden;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-row-primary {
    display: flex;
    flex-wrap: wrap;
  }

  .filter-row-primary .filter-range-group + .filter-range-group {
    margin-left: 0;
  }

  .filter-group {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .filter-row-primary .filter-group {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .filter-row-tags .filter-group {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .filter-select-group {
    padding: 10px;
  }

  .filter-select-group label,
  .filter-select-group .filter-group-label {
    margin-bottom: 2px;
  }

  .select-wrap select {
    font-size: 16px;
  }

  .tag-options {
    display: none;
  }

  .mobile-tag-selects {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-tag-select-group {
    display: grid;
    gap: 4px;
  }

  .mobile-tag-select-group label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(17, 17, 17, 0.72);
  }

  .filter-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .filter-range-group {
    width: 100%;
    max-width: none;
  }

  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    margin-top: 16px;
    gap: 22px 20px;
    overflow-x: visible;
    padding: 0 14px;
  }

  .model-card {
    width: calc(100% - 4px);
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .model-card:hover {
    transform: none;
  }

  .model-info {
    margin-top: 4px;
    line-height: 1.2;
  }

  .model-info h3 {
    font-size: 0.72rem;
  }

  .model-info p {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .model-card-tags {
    display: flex;
    gap: 3px 6px;
    margin-top: 5px;
  }

  .model-card-tag {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .model-detail-main {
    width: min(760px, 94%);
    padding: 16px 0 28px;
  }

  .model-detail-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .model-media-panel,
  .model-info-panel,
  .model-description {
    border-radius: 12px;
    padding: 12px;
  }

  .model-media-panel {
    position: static;
    gap: 8px;
  }

  .model-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
    padding-bottom: 0;
  }

  .model-page .model-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .model-gallery-item {
    min-width: 0;
    max-width: none;
  }

  .model-profile-item {
    grid-template-columns: minmax(72px, 28%) minmax(0, 1fr);
    gap: 6px;
    padding-bottom: 4px;
  }

  .model-profile-item dt {
    font-size: 0.68rem;
  }

  .model-profile-item dd {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .model-section-heading {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .model-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .model-info-panel {
    width: 100%;
    margin: 0;
    gap: 8px;
    padding: 10px;
  }

  .model-profile,
  .model-tags-wrap,
  .model-social-wrap {
    padding: 10px;
  }

  .model-profile-grid {
    gap: 6px;
  }

  .model-social {
    gap: 8px;
  }

  .model-back {
    width: 100%;
  }

  .model-page .site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
  }

  .model-page .site-main {
    flex: 1 0 auto;
  }

  .model-page .site-footer {
    margin-top: auto;
    padding-top: 10px;
  }

  .model-main-image {
    display: flex;
  }

  .model-main-image img,
  .model-main-image video {
    width: 100%;
  }

  .pagination {
    margin: 20px 0 36px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .pagination-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .pagination-info {
    min-width: 64px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .site-wrapper::before {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: none;
  }

  .site-main {
    width: 94%;
  }

  .model-page .site-footer {
    padding-top: 8px;
  }

  .filters {
    padding: 10px;
  }

  .filter-group {
    padding: 8px 10px;
  }

  .model-gallery {
    gap: 5px;
  }

  .model-media-panel,
  .model-info-panel,
  .model-description {
    padding: 10px;
    border-radius: 10px;
  }

  .model-gallery-item {
    min-width: 0;
    max-width: none;
  }

  .model-profile-item {
    grid-template-columns: minmax(64px, 27%) minmax(0, 1fr);
    gap: 5px;
  }

  .model-profile-item dt {
    font-size: 0.64rem;
  }

  .model-profile-item dd {
    font-size: 0.78rem;
  }

  .model-section-heading {
    font-size: 0.68rem;
  }

  .model-tag {
    font-size: 0.66rem;
    padding: 3px 7px;
  }

  .model-social {
    gap: 8px;
    margin: 0;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    padding: 0 12px;
  }

  .model-info h3 {
    font-size: 0.66rem;
  }

  .model-info p {
    font-size: 0.6rem;
  }
}
