/* ============================================================
   Aurora Project — detail.css
   作品詳細ページ専用スタイル
   ============================================================ */

/* ── Top layout ── */
.detail-top {
  display: grid; grid-template-columns: minmax(0, 320px) 1fr;
  gap: 48px; padding: 52px 52px 40px;
  max-width: 1060px; margin: 0 auto; width: 100%;
}

/* ── Main image (ポラロイド風) ── */
.main-img-wrap {
  background: #fff; padding: 12px 12px 40px; border-radius: 4px;
  box-shadow: 0 4px 0 0 var(--soft), 0 12px 40px rgba(180,80,100,0.12), 0 2px 8px rgba(180,80,100,0.08);
  position: relative; transform: rotate(-1deg); transition: transform 0.3s ease;
}
.main-img-wrap:hover { transform: rotate(0deg) scale(1.01); }
.main-img-wrap img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: 2px; }
.main-img-wrap::after {
  content: attr(data-id);
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center; font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.35em; color: var(--muted);
}

/* ── Info panel ── */
.detail-info { padding-top: 12px; }
.detail-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose-light); padding: 4px 14px; border-radius: 100px;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
}
.detail-eyebrow::before { content: '✦'; font-size: 7px; }
.detail-name {
  font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: 0.04em;
  color: var(--text); line-height: 1.1; margin-bottom: 4px;
}
.detail-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-style: italic; letter-spacing: 0.24em;
  color: var(--muted); margin-bottom: 28px;
}
.detail-stats {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 28px;
  background: #fff; border-radius: 16px; padding: 4px 20px;
  box-shadow: 0 2px 12px rgba(212,120,138,0.08); border: 1.5px solid var(--rose-light);
}
.detail-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--rose-light);
}
.detail-stat:last-child { border-bottom: none; }
.detail-stat-label { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); width: 72px; flex-shrink: 0; }
.detail-stat-value { font-size: 14px; color: var(--text); font-weight: 500; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 100px;
  background: linear-gradient(135deg, var(--rose), #e89aaa);
  font-size: 12px; letter-spacing: 0.12em; color: #fff; text-decoration: none;
  box-shadow: 0 4px 16px rgba(212,120,138,0.3);
  transition: all 0.22s; font-family: inherit; font-weight: 500;
}
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,120,138,0.38); }
.back-btn svg { width: 13px; height: 13px; }

/* ── Photo grid ── */
.grid-section { padding: 0 52px 80px; max-width: 1060px; margin: 0 auto; width: 100%; }
.grid-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 24px;
  font-family: 'Cormorant Garamond', serif;
}
.grid-label::before { content: '✦'; font-size: 8px; }
.grid-label::after { content: ''; flex: 1; height: 1px; background: var(--rose-light); }
.photo-grid { display: flex; gap: 14px; margin-bottom: 20px; }
.masonry-col { flex: 1; display: flex; flex-direction: column; gap: 14px; }

/* ── Section divider ── */
.section-divider {
  display: flex; align-items: center; gap: 20px; margin: 36px 0 32px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--rose-light);
}
.section-divider-inner {
  text-align: center; flex-shrink: 1; min-width: 0;
  max-width: 70%; word-break: break-word;
}
.section-divider-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--rose-mid); display: block; margin-bottom: 6px;
}
.section-divider-comment {
  font-size: 16px; color: var(--muted); letter-spacing: 0.06em; line-height: 1.7;
}

/* ── Photo items ── */
.photo-item {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--rose-light); border: 1px solid var(--rose-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(200,107,122,0.18); }
.photo-item img { width: 100%; height: auto; display: block; }

/* ── Work info section ── */
.work-info-section {
  padding: 52px 52px 80px; max-width: 1060px; margin: 0 auto; width: 100%;
}
.work-info-container {
  display: grid; grid-template-columns: 450px 1fr; gap: 48px;
  background: #fff; padding: 40px; border-radius: 12px;
  border: 1px solid var(--rose-light);
  box-shadow: 0 4px 12px rgba(212,120,138,0.08);
}
.work-info-image img {
  width: 100%; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(212,120,138,0.15);
}
.work-info-details {
  display: flex; flex-direction: column; justify-content: space-between;
}
.work-info-top { display: flex; flex-direction: column; gap: 16px; }
.work-info-label {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--rose); font-family: 'Cormorant Garamond', serif;
}
.work-info-title {
  font-size: 18px; font-weight: 600; color: var(--text);
  line-height: 1.5; letter-spacing: 0.02em;
}
.work-info-meta { display: flex; flex-direction: column; gap: 12px; }
.work-info-item {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px dashed var(--rose-light);
}
.work-info-item:last-child { border-bottom: none; }
.work-info-key { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); width: 80px; flex-shrink: 0; }
.work-info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.work-info-btn {
  display: block; width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--rose), #e89aaa);
  color: #fff; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: 100px; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212,120,138,0.25); margin-top: 20px;
}
.work-info-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,120,138,0.35); }

/* ── Viewer (lightbox) ── */
.viewer {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,5,10,0.96); align-items: center; justify-content: center;
}
.viewer.open { display: flex; }
.viewer-img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.viewer-close {
  position: fixed; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.18s;
}
.viewer-close:hover { background: rgba(255,255,255,0.2); }
.viewer-prev, .viewer-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.18s;
}
.viewer-prev { left: 20px; } .viewer-next { right: 20px; }
.viewer-prev:hover, .viewer-next:hover { background: rgba(255,255,255,0.18); }
.viewer-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.15em;
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .detail-top { grid-template-columns: 1fr; padding: 28px 20px 20px; gap: 28px; }
  .main-img-wrap { max-width: 280px; margin: 0 auto; }
  .grid-section { padding: 0 20px 60px; }
  .work-info-section { padding: 40px 20px 60px; }
  .work-info-container { grid-template-columns: 1fr; gap: 24px; }
  .work-info-btn { font-size: 14px; padding: 16px; }
  .section-divider-comment { font-size: 13px; }
  .section-divider-inner { max-width: 80%; }
}
@media (max-width: 600px) {
  .photo-grid { flex-direction: column; }
  .detail-name { font-size: clamp(24px, 8vw, 36px); }
  .section-divider { gap: 10px; margin: 24px 0 20px; }
  .section-divider-inner { max-width: 85%; }
}
