* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
}

.site-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 18px;
}

.site-title {
  display: inline-block;
  color: #111;
  text-decoration: none;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-subtitle {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 24px;
}

.profile-text {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 18px;
  color: #333;
}

.profile-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.profile-button {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.profile-button:hover {
  background: #f6f6f6;
}

.category-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e5e5e5;
  margin: 0 0 28px;
  padding-bottom: 13px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.category-tab.active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.category-tab.disabled {
  background: #f7f7f7;
  color: #888;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 16px;
}

.article-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #eee;
  margin-bottom: 12px;
}

.article-title {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  margin: 0 0 10px;
}

.article-meta {
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  margin: 0;
}

.article-card:hover .article-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile {
    position: static;
  }

  .profile-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 28px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 22px 16px 10px;
  }

  .site-title {
    font-size: 24px;
  }

  .layout {
    padding: 18px 16px 64px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* === note-style typography start === */
body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
  color: #08131a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-title,
.article-title,
.article-header h1,
.profile-button,
.category-tab {
  color: #08131a;
}

.category-tab.active {
  color: #fff;
}
/* === note-style typography end === */

/* === note-style weight tuning start === */
body {
  font-weight: 400;
}

.site-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-subtitle,
.profile-text,
.article-meta {
  font-weight: 400;
}

.article-title {
  font-weight: 700;
}

.article-header h1 {
  font-weight: 700;
}

.profile-button {
  font-weight: 600;
}

.category-tab {
  font-weight: 700;
}

.article-body {
  font-weight: 400;
}
/* === note-style weight tuning end === */

/* === small footer links start === */
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 28px;
  text-align: center;
  font-size: 11px;
  color: #aaa;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #777;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* === small footer links end === */
