@font-face {
  font-family: "Inter Alia";
  src: url("../shavian-info/InterAlia-Regular.woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Inter Alia";
  src: url("../shavian-info/InterAlia-Bold.woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Nasin Nanpa";
  src: url("./nasin-nanpa-4.0.2.otf");
}

html {
  --laso: #1d166b;
  --jelo: #f4ed1a;
  background: var(--laso);
  overflow-x: clip;
}

body {
  font-family: "Inter Alia", "メイリオ", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

header {
  color: var(--jelo);
  text-align: center;
}

#languageSelect {
  background: var(--jelo);
  margin: 0 -16px 8px;
  padding: 0 16px;
}

#languageSelect > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  color: black;
  margin: 0;
  padding: 8px;
  gap: 8px;
}

#languageSelect > ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#languageSelect > ul > li > a,
#languageSelect > ul > li > a:visited {
  display: inline-block;
  background: var(--laso);
  color: white;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1rem;
}

article {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid var(--jelo);
  background: white;
}

article + article {
  margin-block-start: 1rem;
}

details > summary {
  padding-bottom: 0.5rem;
}

details > div.details {
  margin: -0.5rem;
  margin-top: 0rem;
  padding: 0.5rem;
  max-height: calc(100svh - 12rem);
  overflow-y: auto;
}

h1,
h2,
h3 {
  line-height: 1em;
}

h3 {
  color: var(--laso);
  display: block;
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 8px 4px 4px;
  border: 2px dotted var(--laso);
  border-top: none;
  border-right: none;
  font-size: 1.5em;
}

h4 {
  color: var(--laso);
  display: block;
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 8px 4px 4px;
  border: 1px dotted var(--laso);
  border-top: none;
  border-right: none;
  font-size: 1.15em;
}

i {
  padding-right: 0.125em;
}

sup {
  vertical-align: top;
  font-size: 0.7em;
  line-height: 1;
}

p.footnote {
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--jelo);
  color: black;
  font-size: 0.8em;
}

p.footnote + p.footnote {
  margin-top: 0rem;
}

ul, ol {
  padding-left: 1.25rem;
}

blockquote {
  margin: 0;
  margin-left: 0.5rem;
  padding: 0;
  padding-inline-start: 0.5rem;
  border-left: 2px solid var(--laso);
}

blockquote.footnote {
  display: block;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 2px solid var(--laso);
  color: var(--laso);
  font-size: 0.8em;
}

blockquote.footnote > details > summary {
  font-size: 1rem;
}

blockquote.footnote > p:first-child {
  margin-top: 0;
}

blockquote.footnote > p:last-child {
  margin-bottom: 0;
}

blockquote.bsky {
  border: 1px solid #d4dbe2;
  background: white;
  border-left: 2px solid #1185fe;
}

blockquote.bsky + blockquote.bsky {
  margin-block-start: 0.5rem;
}

blockquote.bsky p:first-child {
  margin-block-start: 0.375rem;
}

blockquote.bsky a {
  color: #1185fe;
}

blockquote.bsky p:first-child > a:first-child {
  color: #253342;
}

blockquote.bsky p:first-child > a:first-child > b {
  color: #0b0414;
}

blockquote.bsky p:first-child > a:last-child {
  display: inline-block;
  font-size: 70%;
  line-height: 1.2;
}

blockquote.bsky p:last-child {
  margin-block-end: 0.375rem;
}

.sitelenpona {
  font-family: "Nasin Nanpa", sans-serif;
  font-size: 1.5rem;
  line-height: 150%;
}

.sitelenpona .foreign {
  display: inline-block;
  font-family: "Inter Alia", "メイリオ", sans-serif;
  opacity: 0.6;
}

.sitelenpona i.foreign {
  padding-right: 0.125em;
}

header .foreign {
  color: white;
}

.imgbox {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid black;
}

.imgbox > a {
  align-self: center;
  font-family: "Inter Alia", "メイリオ", sans-serif;
}

.imgbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 50svh;
  margin: 0 auto;
}

.imgbox > .imgcap {
  align-self: stretch;
  display: block;
  padding: 0.5rem;
}

.biglink {
  display: block;
  padding: 1rem;
  color: black;
  background: var(--jelo);
  margin: 1rem auto 1rem;
  width: max-content;
  border-radius: 1rem;
}


b.editor {
  color: rgb(192, 0, 0);
  text-decoration: 1px solid underline rgb(192, 0, 0);
  background-color: rgb(192, 0, 0, 0.1);
}

.youtube-video-container {
  width: 100%;
  height: 0;
  padding-bottom: 57.25%;
  position: relative;
}

.youtube-video-container > iframe {
  position: absolute;
  inset: 0px;
  width: 100%!important;
  height: 100%!important;
}

img.inlineSP {
  display: inline;
  height: 1em;
  width: auto;
}