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

/*
  # Document & Sections
---------------------------------------------- */
:where(html) {
  block-size: 100%;
  -webkit-text-size-adjust: none;
}

:where(body) {
  min-block-size: 100%;
  text-rendering: optimizeLegibility;
  line-height: var(--lh-l);
  font-family: var(--font-ja);
  font-feature-settings: "palt";
  color: var(--c-black2);
  -webkit-font-smoothing: antialiased;
}

/*
  # Grouping content
---------------------------------------------- */
:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
  margin: 0;
}

:where(hr) {
  border: none;
  -webkit-border-before: 1px solid;
  border-block-start: 1px solid;
  color: inherit;
  block-size: 0;
  overflow: visible;
}

:where(ul, ol) {
  list-style-type: "";
}

/*
  # Text-level semantics
---------------------------------------------- */
:where(a:not([class])) {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
}

/*
  # Embedded content
---------------------------------------------- */
:where(img, svg, video, canvas, audio, iframe, embed, object) {
  display: block;
}

:where(img, picture, svg) {
  width: 100%;
  height: auto;
}

:where(svg:not([fill])) {
  fill: currentColor;
}

/*
  # Tabular data
---------------------------------------------- */
:where(table) {
  border-collapse: collapse;
}

/*
  # Forms
---------------------------------------------- */
:where(input, button, textarea, select, optgroup) {
  font: inherit;
  color: inherit;
}

:where(textarea) {
  resize: vertical;
  resize: block;
}

:where(button, label, select, summary, [role=button], [role=option]) {
  cursor: pointer;
}

:where(input[type=file])::-webkit-file-upload-button {
  cursor: pointer;
}

:where(input[type=file])::-webkit-file-upload-button,
:where(input[type=file])::file-selector-button {
  cursor: pointer;
}

:where(:disabled) {
  cursor: not-allowed;
}

:where(label:has(> input:disabled), label:has(+ input:disabled)) {
  cursor: not-allowed;
}

:where(button) {
  border-style: solid;
}

/*
  # Interactive & Misc
---------------------------------------------- */
:where(template, [hidden]:not([hidden=until-found])) {
  display: none;
}

:where(dialog, [popover]) {
  border: none;
  background: none;
  color: inherit;
  inset: unset;
  max-width: unset;
  max-height: unset;
}

:where(dialog:not([open], [popover]), [popover]:not(:popover-open)) {
  display: none;
}

/*
  # Accessibility
---------------------------------------------- */
:where([disabled], [aria-disabled=true]) {
  cursor: not-allowed;
}

:where([aria-busy=true]) {
  cursor: progress;
}

:where([aria-controls]) {
  cursor: pointer;
}

:where([aria-hidden=false][hidden]) {
  display: initial;
}

:where([aria-hidden=false][hidden]):not(:focus) {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

:where(:focus:not(:focus-visible), ::before:focus:not(:focus-visible), ::after:focus:not(:focus-visible)) {
  outline: none;
}

/*
  # aタグ
---------------------------------------------- */
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/**
 * Prettier ignore
 */
@media (prefers-reduced-motion: reduce) {
  ::-webkit-backdrop {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  *,
  *:before,
  *:after,
  ::backdrop {
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  overflow-x: hidden;
  font-family: sans-serif;
  background: url(../img/bg.jpg);
  background-repeat: round;
}

header {
  padding-block: clamp(12px, 2vw, 2rem) clamp(12px, 2.5vw, 1rem);
}


.l-container {
  max-width: 48rem;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

img {
  max-inline-size: 100%;
  height: auto;
}

.title {
  inline-size: 38rem;
  margin-inline: auto;
  max-width: clamp(240px, 40vw, 48vw);
}


.image-lists {
  margin-block-start: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
}

@media(min-width: 768px) {
  .image-lists {
    grid-template-columns: repeat(4, 1fr);
  }
}

.item {
  margin: 0;
  display: grid;
  gap: .5rem;
  text-align: center;
}

.item figcaption {
  text-align: center;
}

.item figcaption em {
  font-style: normal;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.item figcaption span {
  font-size: 0.875rem;
}

.comment-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 999;
}

.comment-popup.is-active {
  display: flex;
}

.comment-popup__inner {
  padding: 1.5rem;
  max-height: calc(100dvh - 3rem);
  background: #fff;
  padding: 2rem;
  max-width: 640px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  animation: fadeIn .25s ease;
  overflow-y: scroll;
}

.comment-popup__inner h2 {
  font-style: italic;
  color: #ab8d7b;
  font-family: 'Josefin+Sans', serif;
}

.comment-popup__inner p {
  color: #3f322a;
  font-size: .9rem;
  margin-block-start: .7rem;
  line-height: 1.65;
  font-weight: 500;
}

.comment-popup__inner small {
  margin-block-start: .6rem;
  display: block;
  text-align: right;
  color: #85776e;
  font-style: italic;
  font-family: 'Josefin+Sans', serif;
}

.comment-popup__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #3f322a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright {
  padding-block: 2rem;
  display: block;
  text-align: center;
}

html,
body {
  overflow-x: hidden;
}

.c-button {
  margin-top: 2rem;

  a {
    color: #ab8d7b;
    font-weight: bold;
    text-align: center;
    display: block;
    max-width: 14rem;
    margin-inline: auto;
    padding: 1rem;
    border: solid 2px #ab8d7b;
    letter-spacing: .3em;
    background-color: #fff;
    transition: .4s;
  }

  a:hover {
    background-color: #ab8d7b;
    color: #fff;
  }
}

.u-center {
  text-align: center;
}

.works-image {
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
}