:root {
  --content-width: 760px;
  --muted-text: #555;
  --soft-border: #d8d8d8;
}

body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.site-header {
  position: relative;
  text-align: center;
  margin-bottom: 2.75rem;
}

.geometry-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  box-shadow: none;
  border: none;
}

.geometry-desktop {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

.geometry-mobile {
  display: none;
}

.site-header h1.site-title {
  text-align: center;
  margin-bottom: 0.35rem;
  font-weight: normal;
  letter-spacing: 0;
}

.title-en {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.name-mark-corner {
  position: fixed;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 10;
  display: block;
  width: clamp(1.8rem, 4.5vw, 2.4rem);
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.subtitle {
  text-align: center;
  margin-top: 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-style: italic;
}

h2,
h3 {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

main section {
  margin-bottom: 2.25rem;
}

main p,
main li,
.contact-block p,
.site-footer p {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  line-height: 1.68;
}

.notes-list,
.fragment-list {
  padding-left: 1.4rem;
}

.plain-link {
  text-decoration: none !important;
}

.plain-link:hover,
.plain-link:focus {
  text-decoration: none !important;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 0;

  border: none;
  box-shadow: none;
  background: transparent;
}

.photo-card img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;

  margin: 0;
  padding: 0;

  border: none;
  box-shadow: none;
}

.photo-card figcaption {
  display: block;

  margin-top: 0.5rem;
  padding: 0;

  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  line-height: 1.3;
  color: var(--muted-text);

  position: static;
}

.photo-card figcaption::before {
  content: none !important;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-border);
  color: var(--muted-text);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  body {
    padding-top: 2rem;
  }

  .name-mark-corner {
    width: 1.65rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .geometry-desktop {
    display: none;
  }

  .geometry-mobile {
    display: block;
    width: 86px;
    height: 86px;
    margin: 2rem auto 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card {
    width: 100%;
    max-width: 100%;
  }

  .photo-card img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
  }
}
