/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Murecho', sans-serif;
  line-height: 1.6;
  color: #333;
  font-size: 17px;
  background: linear-gradient(90deg, rgba(226, 242, 244, 1) 0%, rgba(179, 222, 231, 1) 30%, rgba(179, 222, 231, 1) 70%, rgba(226, 242, 244, 1) 100%);

}

aside.context-menu {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #CDC;
  background: linear-gradient(135deg, rgb(243, 247, 252) 0%, rgb(240, 249, 243) 100%);
}

aside.context-menu h2.card-title {
  border: 0px none;
  margin-top: 0.5rem;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(83, 140, 207, 0.95) 0%, rgba(97, 199, 125, 0.95) 100%);
  color: white;
}

.no-image-placeholder {
  background: linear-gradient(135deg, rgba(83, 140, 207, 0.7) 0%, rgba(97, 199, 125, 0.7) 100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #666;
  font-weight: 400;
  transition: color 0.3s;
}

nav a:hover {
  color: #333;
}

.search-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Common Elements */
.author-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.category-tag {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  transition: background 0.3s;
}

.category-tag:hover {
  background: #e0e0e0;
}

/* Footer */
footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #333;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Prose styling for article content */
.prose {
  max-width: 65ch;
  color: #374151;
  /* font-size: 1.125rem; */
  line-height: 1.75;
}

.prose-lg {
  /* font-size: 1.25rem; */
  line-height: 1.8;
}

.prose h1 {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 0.8888889rem;
  line-height: 1.1111111;
  font-weight: 800;
  color: #111827;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3333333;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #6AE;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.6em;
  margin-bottom: 0.6rem;
  line-height: 1.6;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #59D;
}

.prose h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #48C;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-left: 0.25rem solid #e5e7eb;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
  background: #f9fafb;
  padding: 1.6em 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose ul,
.prose ol {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}


.prose li {
}

.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose code {
  font-family: "Source Code Pro", "Noto Sans JP", monospace;
  color: #cf1189;
  font-size: 0.875em;
  background-color: #f1e5ed;
  border-radius: 0.375rem;
  padding: 0.125em 0.25em;
}

.prose pre {
  font-family: "Source Code Pro", "Noto Sans JP", monospace;
  color: #323d53;
  background-color: #e0e9f9;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

.prose pre code {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: 400;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.pagination-default {
  margin: 0 auto;
  display: block;
}

.page-item {
  display: inline-block;
  background: white;
  border-radius: 4px;
  text-align: center;
}
.page-item a {
  display: inline-block;
  width: 2rem;
  padding: 0.5rem 0;
}

.page-item.disabled {
  background: #DDD;
}
.page-item.disabled a {
  color: #999;
  cursor: default;
}
.page-item.active {
  background: #007bff;
  color: white;
}

table {
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.2rem;
  border-collapse: collapse;
  border: 1px solid #CCC;
}
th, td {
  border: 1px solid #CCC;
  padding: 0.125rem 0.5rem;
}
th {
  border-bottom: 3px double #CCC;
  background: #EEF2F8;
}

figcaption {
  margin-top: 0.5rem;
  text-align: center;
}
.caption-inner {
  display: inline;
  padding: 0 0.5rem;
  border-radius: 0.2rem;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, rgba(129, 218, 179, 0.6));
}

/* SNS embed */

.twitter-tweet,
.instagram-media {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .prose {
    font-size: 1rem;
  }
}