@charset "UTF-8";

/*!
Theme Name: Simplicity2 child
Template:   simplicity2
Version:    20161002
*/

/* ===== 基本フォント ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "ヒラギノ角ゴ Pro", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== リンク ===== */
a {
  transition: opacity 0.3s ease;
}

a:hover img {
  opacity: 0.8;
}

/* ===== グローバルナビセンタリング ===== */
@media screen and (min-width: 1024px) {
  #navi-in {
    display: flex;
    justify-content: center;
  }
}

/* ===== ヘッダー ===== */
#header .alignleft {
  text-align: center;
  max-width: none;
  width: calc(100% - 60px);
}

#h-top #site-title a {
  margin-right: 0 !important;
}

#site-description {
  margin-right: 0;
}

/* ===== サイドバー ===== */
#sidebar {
  font-size: 20px;
}

#sidebar h3 {
  color: #ffffff;
  background: linear-gradient(to right, #591014 0%, #e63946 100%);
  font-size: 18px;
  padding: 1rem 2rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  transform: skew(-10deg);
  font-weight: 600;
  letter-spacing: 0.5px;
}

#sidebar h3:hover {
  background: linear-gradient(to right, #4a0b13 0%, #d62828 100%);
  transition: background 0.3s ease;
}

/* ===== 記事の見出し ===== */
.article h1 {
  color: #f5f5f5;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #d17777;
  padding-bottom: 1rem;
}

.article h2 {
  color: #e8e8e8;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid #d17777;
  padding-left: 1rem;
}

.article h3 {
  color: #d0d0d0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article h4 {
  color: #c0c0c0;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.article h5 {
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== 段落テキスト ===== */
.article p {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article {
  color: #e0e0e0;
}

/* ===== リスト ===== */
.article ul,
.article ol {
  color: #e0e0e0;
}

.article li {
  color: #e0e0e0;
}

/* ===== テーブル ===== */
.article table {
  border-color: #666666;
}

.article th {
  background-color: #333333;
  color: #ffffff;
}

.article td {
  color: #e0e0e0;
  border-color: #666666;
}

/* ===== ブロッククォート ===== */
.article blockquote {
  color: #c0c0c0;
  border-left-color: #d17777;
  background-color: rgba(20, 20, 20, 0.5);
}

/* ===== コード ===== */
.article code {
  color: #ffcc00;
  background-color: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
}

.article pre {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #444444;
  padding: 1rem;
  border-radius: 4px;
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 768px) {
  #sidebar {
    font-size: 14px;
  }

  #sidebar h3 {
    font-size: 16px;
    padding: 0.75rem 1.5rem;
  }

  .article h1 {
    font-size: 1.3rem;
  }

  .article h2 {
    font-size: 1.2rem;
  }

  .article h3 {
    font-size: 1.05rem;
  }
}

/* ===== アクセシビリティ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== プリント対応 ===== */
@media print {
  a {
    text-decoration: underline;
  }

  .article h1,
  .article h2,
  .article h3 {
    page-break-after: avoid;
  }
}