body {
  margin: 2rem;
  font-family: "jjjgothic", sans-serif;
  font-size: 1.25rem;
  line-height: 1.7;
}

h1,
h2,
p,
ol {
  margin: 0;
  font-size: 1em;
}

a,
.like-link {
  text-underline-offset: 0.16em;
}

ol {
  padding: 0;
  font-size: 1rem;
  list-style: none;
}

header,
h1,
section {
  margin-bottom: 1lh;
}

.intro {
  --big: min(calc((100dvh - 4rem) / 7.2), calc((100vw - 4rem) / 11.5));
  font-size: var(--big);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-aspect-ratio: 3/4) {
  .intro {
    margin: 1.25rem;
    font-size: calc((100vw - 2.5rem) / 6.2);
  }
}

@media (min-aspect-ratio: 3/4) {
  .phone {
    display: none;
  }
}

.intro h1 {
  margin: 0;
  font-weight: normal;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  white-space: normal;
  word-break: keep-all;
}

a[href^="mailto:"] {
  font-size: 0.8em;
  overflow-wrap: anywhere;
}

.like-link {
  color: LinkText;
  text-decoration: underline;
}


.me main {
  font-size: 3.5vw;
  line-height: 1.2;
  word-break: break-all;
}

.more {
  cursor: pointer;
  min-height: 100dvh;
}

.me main h1 {
  display: inline;
  font-weight: normal;
}

.me main p {
  display: inline;
}

@media (max-aspect-ratio: 3/4) {
  .me main {
    font-size: 6vw;
  }
}

.me main img {
  height: 1.2em;
  width: auto;
  vertical-align: top;
}

.zoom {
  padding: 0;
  font: inherit;
  line-height: 1;
  border: 0;
  background: none;
  vertical-align: top;
  cursor: zoom-in;
}

#photo {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
}

#photo button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  cursor: zoom-out;
}

#photo img {
  height: 90dvh;
}

.work main {
  display: grid;
  justify-content: center;
}

.work h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.work table {
  max-width: 56rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.work th,
.work td {
  padding: 0.25rem 1rem;
  border-bottom: 1px solid;
  text-align: left;
  font-weight: normal;
  vertical-align: top;
}

.work tbody th {
  white-space: nowrap;
}

.work thead th {
  border-bottom-width: 2px;
}

.work table {
  word-break: keep-all;
}

@media (max-width: 40rem) {
  .work th,
  .work td {
    padding: 0.25rem 0.5rem;
  }

  .work th:first-child,
  .work td:first-child {
    display: none;
  }

  .work tbody th {
    white-space: normal;
  }
}

.photo header {
  display: flex;
  justify-content: space-between;
}

.photo header p {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.photo header button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.photo header button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.photo h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.photo li {
  cursor: pointer;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

[data-view="one"] main ol {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 4rem - 2lh);
}

[data-view="one"] main img {
  width: auto;
  margin-inline: auto;
  max-width: min(148mm, 100%);
  max-height: min(148mm, calc(100dvh - 4rem - 2lh));
}

[data-view="all"] main ol {
  columns: 12rem;
  column-gap: 1rem;
}

[data-view="all"] main li {
  margin-bottom: 1rem;
  break-inside: avoid;
}

[data-view="all"] main li.zoomed {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  background: Canvas;
  cursor: zoom-out;
}

[data-view="all"] main li.zoomed img {
  width: auto;
  max-width: calc(100vw - 4rem);
  max-height: calc(100dvh - 4rem);
}

[data-view="all"] main li {
  cursor: zoom-in;
}
