@import "light.css";
/* @import 'dark.css'; */

html {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  max-width: var(--theme-max-width);
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka,
    "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

@supports (min-height: 100dvh) {
  html {
    min-height: 100dvh;
  }
}

@supports (not (min-height: 100dvh)) and (min-height: -webkit-fill-available) {
  html {
    min-height: -webkit-fill-available;
  }
}

body {
  background-color: var(--theme-nonarea-color);
  max-width: var(--theme-max-width);
  width: 100%;
  margin: 0;
  padding: 0;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

@supports (not (min-height: 100dvh)) and (min-height: -webkit-fill-available) {
  body {
    min-height: -webkit-fill-available;
  }
}

div.body-container {
  background-color: var(--theme-main-color);
  color: var(--theme-sub-color);
}

@supports (min-height: 100dvh) {
  div.body-container {
    min-height: 100dvh;
  }
}

@supports (not (min-height: 100dvh)) and (min-height: -webkit-fill-available) {
  div.body-container {
    min-height: -webkit-fill-available;
  }
}

/* header */
header {
  height: var(--header-height);
  background-color: var(--theme-sub-color);
  /* border-bottom: 1px solid gray; */
  padding: var(--header-padding-top) 0px 0px 5px;
}

div.logo img {
  display: inline-block;
}

nav.navbar {
  /* margin-left: 5px; */
  padding-left: 5px;
  position: absolute;
  display: inline-block;
  height: 25px;
}

nav.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  background-color: var(--theme-menuitem-color);
  border: 1px solid var(--theme-color);
}

nav ul li a {
  padding: 5px;
  color: var(--theme-sub-color);
  text-decoration: none;
  font-size: 15px;
}

/* main */
main {
  margin: 0;
  /* padding-left: 5px; */
  /* padding-right: 5px; */
  max-width: var(--theme-max-width);
}

@supports (min-height: 100dvh) {
  main {
    min-height: calc(
      100dvh -
        (
          var(--header-height) + var(--header-padding-top) +
            var(--footer-height)
        )
    );
  }
}

@supports (not (min-height: 100dvh)) and (min-height: -webkit-fill-available) {
  main {
    min-height: calc(
      100% -
        (
          var(--header-height) + var(--header-padding-top) +
            var(--footer-height)
        )
    );
  }
}

/* index */
div.index-title {
  padding: 0px 5px 0px 5px;
  font-weight: bold;
  font-size: 35px;
  /* text-align: center; */
}

pre.index-content {
  margin: 0;
  padding: 5px 5px 0px 5px;
}

a.download-link {
  color: var(--theme-sub-color);
  text-decoration: underline;
}

/* postList */
div.page-title {
  border-bottom: 1px solid var(--theme-sub-color);
  height: 40px;
  margin: 0px 5px 0px 5px;
}

div.page-title span {
  font-size: 25px;
  font-weight: bold;
}

table.post-list {
  padding: 5px 5px 0px 5px;
  width: 100%;
}

table.post-list tr.post-entity {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 13px;
}

table.post-list tr.post-entity td.post-title a {
  color: var(--theme-sub-color);
  text-decoration: underline;
}

table.post-list tr.post-entity td.post-title {
  width: calc(100% - 75px);
}

table.post-list tr.post-entity td.post-date {
  width: 75px;
  text-align: right;
}

/* postDetail */
/* div.post-container {} */

div.post-header {
  /* margin: 5px 0px 0px 0px; */
  padding: 5px 0px 5px 0px;
  margin: 0px 10px 0px 10px;
  border-bottom: dashed 1px var(--theme-sub-color);
}

div.post-header div.post-title {
  font-size: 20px;
  font-weight: bold;
}

div.post-header div.post-date {
  font-size: 15px;
}

div.post-body {
  padding: 5px 0px 0px 0px;
  margin: 0px 10px 0px 10px;
}

div.post-body pre.post-content {
  white-space: pre-wrap;
  padding: 0;
  margin: 0;
}

img.post-img {
  width: 100%;
  max-width: 720px;
  height: auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

pre code {
  color: silver;
  background-color: #000;
  border: 1px solid #999;
  display: block;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: scroll;
  white-space: pre;
}

a.youtube-link {
  color: var(--theme-sub-color);
  text-decoration: underline;
}

footer {
  /* border-top: 1px solid black; */
  height: var(--footer-height);
  padding-left: 5px;
  padding-right: 5px;
  font-size: 14px;
  background-color: var(--theme-sub-color);
  color: var(--theme-menuitem-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
