:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #767676;
  --accent: #1a1a1a;
  --gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

a {
  color: inherit;
}

/* 表紙 */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.cover__title {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  margin: 0;
}

.cover__tagline {
  margin: 12px 0 48px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.cover__enter {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.cover__about {
  margin-top: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--muted);
}

/* About */
.about {
  max-width: 480px;
  margin: 0 auto;
  padding: 12vh 24px;
}

.about__title {
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 24px 0 24px;
}

.about__bio {
  line-height: 1.9;
  color: var(--fg);
  margin-bottom: 32px;
}

.about__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__links a {
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  width: fit-content;
}

/* 作品一覧: テーマの章立てリスト */
.theme-list {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  padding: 12vh 24px;
}

.theme-list__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.theme-list__cover {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}

.theme-list__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-list__name {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.theme-list__desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* テーマ別ページ: グリッド */
.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.gallery__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}

.gallery__title {
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 32px;
}

.gallery__empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.gallery__grid a {
  display: block;
  overflow: hidden;
}

.gallery__grid a.is-hidden {
  display: none;
}

.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* すべての作品ページ: フィルタ・ソートバー */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1px solid #ddd;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}

.filter-pill.is-active {
  border-color: var(--fg);
  color: var(--fg);
}

.filter-select {
  font-size: 0.8rem;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: var(--fg);
}

@media (max-width: 640px) {
  .theme-list {
    margin: 8vh auto;
  }
}

/* PhotoSwipe: 撮影情報キャプション */
.pswp__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  text-align: center;
}
