/* Apple 系サイトに近いトーン（システムフォント・外部フォントなし） */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  color: #1d1d1f;
  background: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

.p-header {
  padding: 2.5rem 1.5rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.p-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.p-desc {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  font-size: 0.94rem;
  color: #86868b;
  font-weight: 400;
}

.p-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .p-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .p-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .p-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.p-card:hover {
  border-color: #c4c4c9;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.p-card-image-wrap {
  aspect-ratio: 16 / 10;
  background: #f5f5f7;
  position: relative;
  overflow: hidden;
}

.p-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-card-no-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8ed;
  font-size: 0.7rem;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.06em;
}

.p-card-body {
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid #f5f5f7;
}

.p-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.015em;
}

.p-card-folder {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #86868b;
}

.p-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #86868b;
  font-size: 0.94rem;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
}
