/* public/styles.css */

:root {
  /* background : lightgray */
  --bg-color: #fcfeff;

  /* text : darkgray */
  --text-color: #0037a4;

  /* others : ??? */
  --accent-color: #555555;
}

/* background and text */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  font-family:
    "Source Han Serif", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; /* fallback */
}

/* header, footer, main : --bg-color */
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-color);
}
main,
footer {
  background-color: var(--bg-color);
}

@media (max-width: 768px) {
  .tab-content {
    font-size: 100%;
  }
}

/* a-tag */
a {
  color: var(--text-color);
  text-decoration: none;
}

.site-title,
.tab-link {
  font-size: 1.5rem; /* about 30px */
}
.site-title {
  font-weight: bold;
}
.tab-link {
  font-weight: normal;
  padding: 0.25rem 0.5rem;
}
.tab-link.active {
  font-weight: bold;
  border-bottom: 2px solid currentColor;
}

.wrapper {
  /* max width */
  max-width: 800px;
  /* centered */
  margin: 0 auto;
  /* inner margin */
  padding: 0 1rem;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
}

.tab-link {
  /* text-lg */
  font-size: 1.125rem;
  font-weight: normal;
  cursor: pointer;
}

.tab-link.active {
  font-weight: bold;
}

a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--text-color);
}

/* exceptional */
.tab-header a,
.tabs-nav a {
  text-decoration: none;
}

/* logo : s-shaped ? */
.logo-outline {
  display: inline-flex;
  gap: 0;
  line-height: 1;
}
.logo-outline .ch {
  display: inline-block;
  position: relative;
  transform-origin: 50% 50%;
}

.logo-outline span:nth-of-type(7) {
  transform: scaleX(-1);
}

.logo-outline .ch:nth-child(7)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  transform: translateX(-50%);
  width: 0.15em; /* dot */
  height: 0.15em;
  border-radius: 50%;
  background-color: var(--text-color);
  pointer-events: none;
}

/* images */
.markdown-body img {
  max-width: 400px;
  height: auto;
  display: block; 
  margin-left: auto; 
  margin-right: auto;
}

.markdown-body { 
  line-height: 1.6; 
}