body {
  background: linear-gradient(-180deg, rgba(255, 252, 71, 1) 50%, rgba(255, 252, 71, 0) 100%);
}

#cover {
  display: block;
  width: 90%;
  max-width: 768px;
  min-height: 50vh;
  margin: 0 auto;
  object-fit: contain;
}

@media screen and (max-width: 512px) {
  #cover {
    width: 100%;
  }
}

#title {
  display: block;
  width: 33%;
  min-width: 300px;
  max-width: 512px;
  margin: 1.66em auto;
}

h3.timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  font-size: 1.66em;
  margin-top: 2em;
}

h3.timeline::after {
  display: inline-block;
  content: "";
  border-top: solid 1px black;
  flex-grow: 1;
}

h3.timeline~p:not(h2+p) {
  margin-left: 4em;
  margin-bottom: 2em;
}

img.profile {
  max-width: 256px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

iframe {
  border-radius: 1em;
}

a.inline {
  color: black;
}

a.inline:hover {
  color: black;
}

article {
  margin-top: 5em;
}

article h1 {
  margin-top: 0;
}

article h2 {
  margin-top: 3em;
}

p.kaigi-singularity-menu {
  display: block;
  width: auto;
  text-align: center;
  margin: 2em auto 1em auto;
  line-height: 1.66em;
  padding: 0;
  border-radius: 1em;
  letter-spacing: 3px;
}

p.kaigi-singularity-menu>a {
  display: inline-block;
  margin: 0.5em 1em;
  padding: 0;
  font-size: 1.5em;
  color: white;
  position: relative;
  z-index: 1;
  text-shadow:
    0.8px 0.8px 0.8px #000000,
    -0.8px 0.8px 0.8px #000000,
    0.8px -0.8px 0.8px #000000,
    -0.8px -0.8px 0.8px #000000,
    0.8px 0px 0.8px #000000,
    0px 0.8px 0.8px #000000,
    -0.8px 0px 0.8px #000000,
    0px -0.8px 0.8px #000000;
}

p.kaigi-singularity-menu>a:hover,
p.kaigi-singularity-menu>a.current {
  color: #FFFC47;
}

p.timeline {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-left: 4em;
}

p.timeline img {
  width: calc(50% - 0.5em);
  margin: 0;
}

@media screen and (max-width: 768px) {
  p.timeline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    margin-left: 4em;
  }

  p.timeline img {
    width: 100%;
  }
}

.profilesection {
  display: flex;
  flex-direction: row;
  gap: 2em;
  margin-top: 4em;
}

.profilesection h3 {
  font-size: 1.66em;
  margin-top: 0.5em;
  margin-bottom: 0;
}

.profilesection h3+h4 {
  margin-top: 0;
}

.profilesection img {
  width: 200px;
  margin: 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.gallery>* {
  width: calc(50% - 0.5em);
  margin: 0;
  object-fit: cover;
}

img.slide {
  display: block;
  background-color: white;
  padding: 1.66em;
  box-sizing: border-box;
}

footer {
  display: block;
  margin: 5em auto;
  padding-top: 4em;
  text-align: center;
  width: 100%;
  max-width: 768px;
}

footer div {
  margin: 1em;
}

footer a.inline {
  display: inline-block;
  margin-right: 1em;
  margin-bottom: 1em;
}

footer .poniponi a,
footer .poniponi a:visited {
  border: 2px rgba(255, 252, 71, 1) solid;
  background-color: white;
  border-radius: 3em;
  padding: 0.66em 1.33em;
  text-decoration: none;
  margin-right: 0.66em;
}

.ai {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  user-select: none;
  pointer-events: none;
}

.ai img {
  display: block;
  position: absolute;
  width: 20vw;
  max-width: 220px;
}

@keyframes moyamoya {
  0% {
    scale: 1.4;
    transform: rotate(0deg)translateX(-50%) translateY(-50%);
  }

  50% {
    scale: 1.6;
  }

  to {
    scale: 1.4;
    transform: rotate(360deg) translateX(-50%) translateY(-50%);
  }
}

body::after {
  content: "";
  display: block;
  position: fixed;
  background-image: url("../images/moyamoya.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  left: 50%;
  transform-origin: 0% 0%;
  width: 75vw;
  height: 100vw;
  z-index: -20;
  animation-name: moyamoya;
  animation-duration: 120s;
  animation-direction: reverse;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@media screen and (max-width: 768px) {
  body::after {
    top: 33%;
    height: 75vh;
    width: 130vw;
    max-height: 75vw;
  }
}