p, h1, h2, h3, h4, h5 { 
  color: #323232;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho";
}
p { 
  font-size: 1.1rem; 
  line-height: 1.7;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

header {
  text-align: center;
}

header a {
  color: #323232;
  outline: none;
  text-decoration: none;
}

footer {
  text-align: center;
}

footer a {
  color: #646464;
  outline: none;
  text-decoration: none;
}

footer p {
  color: #646464;
}

article {
  margin-left: 20%;
  width: 60%;
}

a {
  color: #323232;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho";
  outline: none;
  text-decoration: none;
}

a.taglink {
  color: #008B8B;
}

a.taglink:hover {
  color: darkblue;
}

img {
  width: 90%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 0.5rem;
}

.date {
  color: #646464;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0rem;
}

.box {
  margin-top: 0;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.button-s {
  display: flex;
  width: 5rem;
  height: 2.2rem;
  padding: 0.5rem;
  border: none;
  color: #323232;
  font-weight: 600;
  font-size: 1rem;
  background-color: white;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho";
}

.button-s span {
  width: 100%;
  height: 100%;
  line-height: 1.25rem;
}

.toc-s {
    margin-bottom: 2reem;
    padding: 1rem 1rem 1rem 2rem;
    border: 1px solid #999;
    background-color: #fafafa;
    color: #323232;
}

.toc-s div {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 5px 0;
}

.toc-s ol {
    list-style-type: None;
    margin: 0;
    padding: 0 1.2rem;
    overflow: hidden;
}

.toc-s ol ol {
    margin-top: 5px;
}

.toc-s li {
    padding: 5px 0;
}

.toc-s a {
    color: #323232;
}

.pagination-s {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 5rem;
  list-style-type: none;
  padding: 0;
}

.pagination-s a {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #323232;
  border-radius: 1px;
  color: #323232;
}

.code-container {
  position: relative;
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 0;
  padding-top: 13px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  overflow: auto;
  margin: 0.1rem;
}

.code-container pre {
  margin: 1rem;
  padding: 0 0 1 1rem;
  line-height: 1.3;
}

.code-container code {
  font-size: 0.9rem;
}

.copy-btn {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  background: white;
  color: #323232;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #3232fa;
  color: white;
}

@media (max-width: 768px) {
  p { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  article {
    margin-left: 3%;
    width: 94%;
  }
  img { width: 100% }
  .date { font-size: 0.8rem; }
  .button-group { gap: 0.3rem; }
  .pagination-s {
      gap: 0 2.5rem;
  }
}

