/* placecells.bluishmedia.com */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg:      #ffffff;
  --text:    #111111;
  --muted:   #888888;
  --border:  #d8d8d8;
  --accent:  #111111;
  --accent2: #888888;
  --mono:    'IBM Plex Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

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

html { font-size: 14px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

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

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.site-title a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
}
.site-title-main {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.site-title-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.site-nav   { font-size: 11px; color: var(--muted); margin-left: auto; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-active { color: var(--accent); font-weight: 600; letter-spacing: 0.01em; }

/* HERO */
.hero {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero-text {
  text-align: center;
  padding: 28px 0 20px;
  letter-spacing: 0.04em;
}
.hero-text em {
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* MAP */
.map-section { margin-bottom: 48px; }
.map-wrap { position: relative; width: 100%; }
.site-map { width: 100%; display: block; }
.map-dots { position: absolute; inset: 0; }
.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-dot::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111111;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.map-dot:hover::after {
  transform: scale(1.6);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.22);
}
.dot-label {
  display: none;
  position: absolute;
  left: 13px;
  top: -5px;
  font-size: 10px;
  white-space: nowrap;
  background: var(--bg);
  color: var(--text);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  letter-spacing: 0.02em;
}
.map-dot:hover .dot-label { display: block; }

/* ENTRY LIST */
.entry-list { margin-bottom: 60px; }
.entry-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.entry-link:hover { background: rgba(59,107,78,0.04); margin: 0 -10px; padding: 11px 10px; }
.entry-link-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex-shrink: 0;
}
.entry-link-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
}
.entry-link-coord {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-family: var(--mono);
}
.entry-link-date  { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; font-family: var(--mono); }
.entry-link-title {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-align: right;
}
.entry-link-title-jp {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ENTRY PAGE */
.entry { margin-bottom: 60px; }
.entry-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent2);
}
.entry-coord-top {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  font-family: var(--mono);
}
.entry-coord-top a { color: var(--text); }
.entry-coord-top a:hover { color: var(--accent); opacity: 0.75; }
.entry-title-en  { font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 2px; font-family: var(--mono); letter-spacing: 0.03em; }
.entry-title-jp  { font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 0; font-family: var(--mono); }
.entry-coord     { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; }
.entry-coord a   { color: var(--accent2); }
.entry-coord a:hover { color: var(--accent); opacity: 0.75; }
.entry-date      { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 10px; }

/* BODY TEXT */
.entry-body {
  margin-bottom: 36px;
}
.body-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.body-tab {
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  transition: all 0.15s;
}
.body-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.body-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  max-width: 640px;
}
.body-text-jp {
  font-size: 14.5px;
  line-height: 2.0;
}
.body-text p { margin-bottom: 1.2em; }
.body-text p:last-child { margin-bottom: 0; }

/* MEDIA */
.entry-media { display: flex; flex-direction: column; gap: 28px; }
.media-figure { margin: 0; }
.media-figure img {
  width: 100%;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}
.media-figure img:hover { filter: grayscale(0%); }
.media-figure audio { width: 100%; display: block; }
.media-figure figcaption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.audio-figure {
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(74,133,180,0.06);
}

/* ABOUT */
.about-body {
  max-width: 520px;
  padding-bottom: 60px;
  font-size: 13px;
  line-height: 1.85;
}
.about-body p { margin-bottom: 1.2em; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

a:hover { opacity: 0.75; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); opacity: 0.75; }
.site-footer-copy {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-left: auto;
}


/* BACK TO TOP */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 28px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, color 0.15s, border-color 0.15s;
  font-family: var(--mono);
  border-radius: 3px;
  z-index: 200;
  text-decoration: none;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* GALLERY LINK BUTTON */
.gallery-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 36px;
}
.gallery-link {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 6px 16px;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.65;
  transition: color 0.14s, border-color 0.14s, opacity 0.14s;
}
.gallery-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* GALLERY PAGE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
  margin-bottom: 60px;
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--highlight);
  display: block;
  text-decoration: none;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.3s;
}
.gallery-cell:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.gallery-cell-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e2a48 0%, #192038 60%, #141a30 100%);
  color: rgba(255,255,255,0.28);
}
.gallery-cell-audio:hover {
  color: rgba(255,255,255,0.55);
}
.gallery-cell-audio svg {
  width: 38px;
  height: 38px;
}
.gallery-cell-empty {
  display: block;
  background: linear-gradient(145deg, #1e2a48 0%, #192038 60%, #141a30 100%);
}
.gallery-cell-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25,32,56,0.68);
  color: rgba(255,255,255,0.88);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  padding: 5px 8px;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-cell:hover .gallery-cell-caption {
  opacity: 1;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
@media (max-width: 600px) {
  body { padding: 0 14px; }
  .entry-title-en { font-size: 17px; }
}
