html {
  font-family: serif;
  font-feature-settings: "palt";
  font-size: 1rem;
  scroll-padding-top: 200px;
  text-align: justify;
}

#nav {
  align-items: center;
  background-color: #f4f4f4;
  color: black;
  display: flex;
  height: 70px;
  padding: 0 max(30px, 50% - 300px);
  position: fixed;
  top: -70px;  /* controlled by js */
  transition: top 200ms ease-out;
  width: 100%;
  z-index: 1;
}
#nav a:hover {
  opacity: 0.5;
}
#nav a.top {
  aspect-ratio: 1 / 1;
  height: 100%;
}
#nav a.prev,
#nav a.next {
  color: inherit;
  padding: 20px 8px;
  text-decoration: none;
}
#nav a.prev::before {
  content: "〈 ";
}
#nav a.next::after {
  content: " 〉";
}

#unofficial {
  background-color: #f4f4f4;
  color: black;
  padding: 9px max(30px, 50% - 300px) 11px;
}
#unofficial a {
  color: inherit;
}

h1 {
  background-color: white;
  background-image: url("/ironowa/hero.avif");
  background-position: 50% 30%;
  background-size: cover;
  color: black;
  font-size: 2rem;
  line-height: 1;
  padding: 410px 30px 40px;
  text-align: center;
  width: 100%;
}
h1 small {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  translate: -20px -5px;
}

#synopsis {
  background-color: #f4f4f4;
  color: black;
  padding: 24px max(30px, 50% - 300px) 24px;
}
#synopsis > * {
  margin-bottom: 1rem;
}
#synopsis iframe {
  background-color: white;
  border: 0;
  display: block;
  margin-inline: clamp(-30px, 50% - 300px, 0px);
  width: min(600px, 100vw);
}
#synopsis ruby {
  display: inline-flex;
}
#synopsis ruby rt {
  font-size: 1rem;
  font-variant: normal;
  line-height: inherit;
}
#synopsis ruby rt::before {
  content: "（";
}
#synopsis ruby rt::after {
  content: "）";
}
#synopsis a {
  color: inherit;
}

#album {
  background-color: white;
  color: black;
  padding: 24px max(30px, 50% - 300px) 24px;
}
#album > * {
  margin-bottom: 1rem;
}
#album h2 {
  font-size: 1.7rem;
}
#album .tiles {
  display: grid;
  gap: 2px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}
#album .tile1x2 {
  grid-column: span 1;
  grid-row: span 2;
}
#album .tile2x1 {
  grid-column: span 2;
  grid-row: span 1;
}
#album .tile2x2 {
  grid-column: span 2;
  grid-row: span 2;
}
#album .tile3x2 {
  grid-column: span 3;
  grid-row: span 2;
}
#album .tiles img {
  background-color: #f4f4f4;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
#album .tiles a:hover {
  opacity: 0.7;
}
#album .youtube {
  position: relative;
}
#album .youtube::before {
  background-image: url("data:image/svg+xml;utf8,<svg version='1.1' viewBox='0 0 68 48' xmlns='http://www.w3.org/2000/svg'><path d='M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z' fill='%23f03'/><path d='M 45,24 27,14 27,34' fill='%23fff'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  bottom: 8px;
  content: "";
  height: 24px;  /* Keep aspect ratio to 68:48 */
  position: absolute;
  right: 8px;
  width: 34px;
}

#lyrics {
  background-color: #f4f4f4;
  color: black;
  padding: 24px max(30px, 50% - 300px) 24px;
}
#lyrics > * {
  margin-bottom: 1rem;
}
#lyrics h2 {
  font-size: 1.7rem;
}
#lyrics ruby {
  display: inline-flex;
}
#lyrics ruby rt {
  font-size: 1rem;
  font-variant: normal;
  line-height: inherit;
}
#lyrics ruby rt::before {
  content: "（";
}
#lyrics ruby rt::after {
  content: "）";
}
