/* Minimal archive style (dark, plain, your own) */
:root{
  --bg: #000;
  --fg: rgba(255,255,255,.9);
  --muted: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.16);
  --line-soft: rgba(255,255,255,.08);
  --link: rgba(200,113,158,.92);
  --link-hover: rgba(255,255,255,.92);
  --focus: rgba(255,255,255,.26);
}

html{
  color-scheme: dark;
}

html, body{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

body{
  background: #000; /* 無地 真っ黒（模様なし） */
  color: var(--fg);
  margin: 0;
  min-height: 100vh;
  padding: 28px 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  letter-spacing: .01em;
}

.container{
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
}

.mast{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.title{
  letter-spacing: .08em;
  font-weight: 400;
  color: var(--fg);
}

.meta{
  color: var(--muted);
  white-space: nowrap;
}

a{
  color: var(--link);
  text-decoration: none;
}

a:hover{
  color: var(--link-hover);
  text-decoration: none;
}

a:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  align-items: start;
}

.col{
  border-top: 1px solid var(--line);
  padding-top: 10px;
  min-height: 120px;
}

.col h2{
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.list{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

/* Category links: slim bracketed pills (original touch) */
.list a{
  position: relative;
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  padding:2px 0;
  font-size:12px;
  letter-spacing:.06em;
}

.list a::before,
.list a::after{
  content:"";
  display:block;
  width:14px;
  height:1px;
  background: var(--line);
  transform-origin:left;
  transition: transform 180ms ease, background-color 180ms ease;
}

.list a::before{
  transform: scaleX(.7);
}

.list a::after{
  transform: scaleX(.4);
}

.list a:hover::before,
.list a:hover::after{
  transform: scaleX(1);
  background: var(--link-hover);
}

/* Table-like archive list */
.table{
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.table + .table{
  margin-top: 22px;
}

.row{
  display:grid;
  /* Title / Venue / Exhibition / Form / Year */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.5fr) 64px;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.row::before{
  content:"";
  position:absolute;
  left:-10px;
  top:9px;
  width:2px;
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.02);
  transform-origin: top;
  transform: scaleY(0.4);
  transition: background-color 160ms ease, transform 200ms ease;
}

.row.header{
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 1;
}

.table.works .row.header{
  position: static;
}

.row.section{
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 8px;
}

.row.section .cell{
  white-space: nowrap;
}

.row.section .cell:first-child{
  letter-spacing: .10em;
  text-transform: uppercase;
}

.row.exhibition-child{
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom-color: rgba(255,255,255,.06);
}

.row.exhibition-child .cell.title{
  padding-left: 14px;
}

.row.exhibition-child .cell,
.row.exhibition-child .cell.muted{
  color: rgba(255,255,255,.55);
}

.cell{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell.muted{
  color: var(--muted);
}

.cell.title a{
  white-space: normal;
}

.cell:last-child{
  text-align:right;
}

/* Title link: subtle "signal" underline (original touch) */
.cell.title a{
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  letter-spacing: .02em;
}

.sortable{
  cursor: pointer;
  user-select: none;
}

.sortable:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.cell.title a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:1px;
  background: currentColor;
  opacity: .0;
  transform: scaleX(.04);
  transform-origin: left;
  transition: opacity 140ms ease, transform 220ms ease;
}

.row:hover .cell.title a::after{
  opacity: .55;
  transform: scaleX(1);
}

.row:hover{
  border-bottom-color: rgba(255,255,255,.18);
  background: transparent;
}

.row:hover::before{
  background: rgba(255,255,255,.08);
  transform: scaleY(.8);
}

@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
  .row{
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .row.header{
    display: grid;
  }
  .cell{
    white-space: normal;
  }
  .cell:last-child{
    text-align: left;
  }
}

/* Design archive: flyers / publicity, single column */
.design-archive{
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 28px;
}

.design-item{
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 52px;
  text-align: center;
}

.design-item:first-child{
  border-top: none;
  padding-top: 16px;
}

.design-item figcaption,
.design-pair figcaption{
  margin: 24px 0 0 0;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.45;
  max-width: 52ch;
  margin-inline: auto;
}

.design-item figcaption i,
.design-pair figcaption i{
  letter-spacing: .02em;
  font-style: italic;
}

.design-item img{
  display: block;
  width: auto;
  max-width: min(380px, 86vw);
  height: auto;
  margin-inline: auto;
  box-sizing: border-box;
}

/* CD ジャケット四面など横長アートワーク */
.design-item--panorama img{
  max-width: min(800px, 90vw);
}

/* Pairs: optional shared caption, then a row of flyers */
.design-pair{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.design-pair__row{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px 44px;
  width: 100%;
}

.design-pair__flyer{
  margin: 0;
  flex: 0 1 auto;
  text-align: center;
  min-width: 0;
}

.design-pair__flyer img{
  display: block;
  width: auto;
  max-width: min(340px, calc(50vw - 40px));
  height: auto;
  margin-inline: auto;
  box-sizing: border-box;
}

/* d12（正方形）の表示高さに揃えて d13 を横並び（縦横比は維持） */
.design-pair--match-d12-height .design-pair__row{
  align-items: flex-end;
}

.design-pair--match-d12-height .design-pair__flyer img{
  max-width: min(380px, 86vw);
  max-height: min(380px, 86vw);
  width: auto;
  height: auto;
}

@media (max-width: 560px){
  .design-archive{
    gap: 72px;
  }

  .design-item{
    padding-top: 44px;
  }

  .design-item:first-child{
    padding-top: 12px;
  }

  .design-pair__row{
    flex-direction: column;
    align-items: center;
    gap: 52px;
  }

  .design-pair__flyer img{
    max-width: min(380px, 86vw);
  }

  .design-pair--match-d12-height .design-pair__flyer img{
    max-height: none;
  }
}

/* Design page: phone readability */
@media (max-width: 560px){
  body.page-design{
    font-size: 13px;
    padding: 22px 16px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
  }

  body.page-design .container{
    width: min(980px, calc(100vw - 32px));
  }

  body.page-design .mast{
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  body.page-design .mast .meta a{
    display: inline-block;
    padding: 6px 2px;
    min-height: 44px;
    line-height: 32px;
    box-sizing: border-box;
  }

  body.page-design .design-archive{
    gap: 56px;
    margin-top: 20px;
  }

  body.page-design .design-item{
    padding-top: 36px;
  }

  body.page-design .design-item figcaption,
  body.page-design .design-pair figcaption{
    font-size: 11px;
    letter-spacing: .02em;
    line-height: 1.45;
    max-width: 100%;
    padding: 0 6px;
    margin-top: 20px;
    color: rgba(255,255,255,.68);
  }

  body.page-design .design-item img{
    max-width: min(100%, 82vw);
  }

  body.page-design .design-item--panorama img{
    max-width: min(100%, 88vw);
  }

  body.page-design .design-pair__flyer img{
    max-width: min(100%, 82vw);
  }

  body.page-design .design-pair__row{
    gap: 36px;
  }

  body.page-design .design-pair--match-d12-height .design-pair__flyer img{
    max-width: min(100%, 82vw);
  }
}

