*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.8;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------
   Header
---------------------------------------- */
.site-header {
  background: #1d3557;
  color: #fff;
  padding: 14px 0;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: block;
}

.site-header__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.site-header__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  text-align: right;
}

/* ----------------------------------------
   Navigation
---------------------------------------- */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-block;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #333;
  transition: background 0.15s, color 0.15s;
}

.site-nav__link:hover {
  background: #f5f5f5;
  color: #1d3557;
  opacity: 1;
}

/* ----------------------------------------
   Site container (2-column layout)
---------------------------------------- */
.site-container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ----------------------------------------
   Post Grid
---------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ----------------------------------------
   Post Card
---------------------------------------- */
.post-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.post-card__link {
  display: block;
  color: inherit;
}

.post-card__link:hover {
  opacity: 1;
}

.post-card__image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__meta {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.post-card__category {
  background: #1d3557;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.post-card__date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(26, 58, 92, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 3px;
}

.post-card__body {
  padding: 14px 16px 18px;
}

.post-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
}

/* ----------------------------------------
   Sidebar
---------------------------------------- */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-widget {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.sidebar-widget__title {
  background: #f0f0f0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-widget__content {
  padding: 16px;
}

.sidebar-profile__name {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.sidebar-profile__bio {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
}

.sidebar-profile__desc {
  font-size: 0.82rem;
  color: #777;
  margin-top: 8px;
  line-height: 1.6;
}

.sidebar-posts {
  list-style: none;
}

.sidebar-posts__item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}

.sidebar-posts__item:last-child {
  border-bottom: none;
}

.sidebar-posts__item a {
  color: #1d3557;
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
}

.sidebar-posts__item a:hover {
  text-decoration: underline;
  opacity: 1;
}

.sidebar-posts__item time {
  font-size: 0.75rem;
  color: #999;
}

/* ----------------------------------------
   Post article page
---------------------------------------- */
.post-wrapper {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.post-article {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 4px;
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.post-article h1 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.45;
  color: #111;
}

.post-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.post-article__date {
  background: #1a3a5c;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 3px;
}

.post-article__category {
  background: #1d3557;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
}

.post-article__content {
  font-size: 0.95rem;
  line-height: 1.9;
}

.post-article__content h2 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #1d3557;
  line-height: 1.4;
}

.post-article__content h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: #1d3557;
}

.post-article__content p {
  margin-bottom: 16px;
}

.post-article__content ul,
.post-article__content ol {
  margin: 0 0 16px 24px;
}

.post-article__content li {
  margin-bottom: 4px;
}

.post-article__content a {
  color: #1d3557;
  text-decoration: underline;
}

.post-article__content blockquote {
  border-left: 3px solid #ddd;
  padding: 4px 16px;
  color: #666;
  margin: 16px 0;
  background: #fafafa;
}

.post-article__content code {
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: monospace;
}

.post-article__content pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.post-article__content pre code {
  background: none;
  padding: 0;
}

.post-article__content img {
  border-radius: 4px;
  margin: 16px 0;
}

.post-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.post-article__content th,
.post-article__content td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.post-article__content th {
  background: #f0f0f0;
  font-weight: 700;
}

/* ----------------------------------------
   Page layout (About etc)
---------------------------------------- */
.page-wrapper {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.page-article {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 4px;
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-article h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1d3557;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.site-footer {
  background: #1d3557;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  margin-top: 48px;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
  .site-container,
  .post-wrapper,
  .page-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .site-header__tagline {
    display: none;
  }
  .post-article,
  .page-article {
    padding: 20px;
  }
  .site-header__title {
    font-size: 1.3rem;
  }
}

/*# sourceMappingURL=main.css.map */