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

:root {
  --black:  #0a0a0a;
  --gray:   #888;
  --mid:    #555;
  --light:  #f4f4f2;
  --white:  #ffffff;
  --border: #e8e8e8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gray); }

/* ── HERO (archive) ── */
.hero {
  padding: 140px 48px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gray);
  padding-bottom: 6px;
}

/* ── FILTER ── */
.filter-bar {
  padding: 20px 48px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── MODELS GRID ── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 140px 64px;
}

@media (max-width: 1200px) { .models-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .models-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px; } }

/* ── MODEL CARD ── */
.model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.model-card.visible { opacity: 1; transform: translateY(0); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 528 / 662;
  overflow: hidden;
  background: var(--light);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.model-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.model-card:hover .card-placeholder { transform: scale(1.05); }

.placeholder-initial {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: #ccc;
  letter-spacing: 0.05em;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s;
}
.model-card:hover .card-overlay { background: rgba(0,0,0,0.08); }

.card-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 4px 10px;
}

.card-info {
  padding: 16px 18px 20px;
  background: var(--white);
}

.card-name-jp {
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.card-name-en {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

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

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}
.back-link:hover { color: var(--black); }
.back-link::before { content: '←'; font-size: 14px; }

/* ── PROFILE SECTION — 左右フル活用・1画面 ── */
.profile-section {
  display: flex;
  align-items: stretch;
  height: calc(100vh - 98px);
  margin-top: 98px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.profile-photo {
  flex: 0 0 62%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 32px 56px;
  box-sizing: border-box;
}

.profile-photo-inner {
  aspect-ratio: 2 / 3;
  height: 100%;
  overflow: hidden;
  background: var(--light);
}

.profile-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-placeholder-initial {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: #d8d8d8;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px 36px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  box-sizing: border-box;
}

.model-category {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.model-name-jp {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.model-name-en {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

/* ── STATS TABLE ── */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.stats-table tr { border-bottom: 1px solid var(--border); }
.stats-table tr:first-child { border-top: 1px solid var(--border); }
.stats-table td {
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.4;
}
.stats-table td:first-child {
  width: 100px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── TAGS ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--mid);
}

/* ── COMPOSITE ── */
.composite-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 8px 16px;
  transition: background 0.2s, color 0.2s;
}
.composite-link:hover { background: var(--black); color: var(--white); }

/* ── SNS ── */
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.sns-link:hover { color: var(--gray); border-color: var(--gray); }

.section-divider {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.bio-text {
  font-size: 13px;
  line-height: 2;
  color: var(--mid);
  margin-bottom: 24px;
}

/* ── WORKS (profile内) ── */
.profile-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.works-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.works-list {
  list-style: none;
}
.works-list li {
  font-size: 12px;
  line-height: 2.2;
  color: var(--mid);
  letter-spacing: 0.05em;
}

/* ── GALLERY ── */
.gallery-section {
  padding: 64px 220px;
  border-top: 1px solid var(--border);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--light);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  letter-spacing: 0.1em;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 90vw; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 28px; right: 36px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── FOOTER ── */
footer {
  padding: 60px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.footer-copy {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ── PAGE ── */
.page-content {
  max-width: 800px;
  margin: 140px auto 80px;
  padding: 0 48px;
}
.page-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 32px;
}
.entry-content { font-size: 14px; line-height: 2; color: var(--mid); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .profile-section { flex-direction: column; height: auto; margin-top: 70px; overflow: visible; }
  .profile-photo { flex: none; width: 100%; padding: 24px 24px 0; justify-content: center; }
  .profile-photo-inner { height: auto; width: 68vw; max-width: 300px; }
  .profile-info { flex: none; width: 100%; padding: 28px 24px 40px; border-left: none; border-top: 1px solid var(--border); justify-content: flex-start; }
  .profile-works { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 20px 24px; }
  .nav-links { gap: 24px; }
  .back-link { margin: 96px 24px 0; }
  .hero { padding: 110px 24px 36px; }
  .filter-bar { padding: 16px 24px; }
  .gallery-section { padding: 48px 24px; }
  footer { padding: 40px 24px; }
}
