body {
  background-color: #0d0f14;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
}

main {
  margin-top: 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

header {
  border-bottom: 1px solid #1f2937;
}

header h1 {
  font-size: 20px;
}

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

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
}

nav a:hover {
  opacity: 0.7;
}

section {
  margin-bottom: 20px;
}

.card {
  background-color: #151821;
  padding: 20px;
  border-radius: 10px;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: calc(33.333% - 14px);
}

.top-cards {
  display: flex;
  gap: 20px;
}

.top-cards section {
  flex: 1;
}

.posts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.post-card .date {
  font-size: 12px;
  color: #9ca3af;
}

.post-card .title {
  font-size: 18px;
  margin: 10px 0;
}

.post-card .tags {
  font-size: 12px;
  color: #6b7280;
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: calc(33.333% - 14px);
}
.section-title {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #7a6ff5;
}
.more-link {
  text-align: right;
  margin-top: 20px;
}

.more-link a {
  text-decoration: none;
  color: #7a6ff5;
  font-size: 14px;
  transition: 0.2s;
}

.more-link a:hover {
  opacity: 0.7;
}
.eyecatch-wrapper {
  margin-bottom: 20px;
}

.eyecatch {
  width: 100%;
  border-radius: 10px;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.site-footer {
  margin-top: 80px;
  padding: 30px 20px;
  border-top: 1px solid #1f2937;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: #6b7280;
}

/* ===== 記事ページだけに効くCSS ===== */

.article-page {
  max-width: 1000px;
  margin: 0 auto;
}

.article-page .layout {
  display: flex;
  gap: 40px;
}

.article-page .main-content {
  flex: 0 0 70%;
  min-width: 0;
}

.article-page .sidebar {
  flex: 0 0 260px;
}

/* 記事本文だけ */
.article-page .content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.article-page .eyecatch {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.toc ul {
  list-style: none;
  padding-left: 20px;
  display: block;
}

.toc ul ul {
  padding-left: 16px;
}

.toc li {
  margin-bottom: 15px;
}

.toc a {
  display: block;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.content pre {
  overflow-x: auto;
  padding: 16px;
  margin: 24px 0;
  background: #151821;
  border-radius: 10px;
}

.content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #7a6ff5;
}

.content h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid #7a6ff5;
}

.content {
  line-height: 1.8;
  font-size: 16px;
}

.content p {
  margin-bottom: 20px;
}

.content img {
  margin: 24px 0;
  border-radius: 8px;
}

.tags {
  margin-left: 12px;
}

.tag {
  font-size: 12px;
  color: #7a6ff5;
  background: rgba(122, 111, 245, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 6px;
}

.tag:hover {
  background: rgba(122, 111, 245, 0.2);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  gap: 20px;
}

.post-nav a {
  flex: 1;
  padding: 16px;
  background: #151821;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: 0.2s;
  border: 1px solid #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-nav a:hover {
  transform: translateY(-3px);
  background: #1f2330;
}

.post-nav .prev {
  text-align: left;
}

.post-nav .next {
  text-align: right;
}
a {
  color: #6fcff5;
}

/* Works */
.work-hero {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.work-eyecatch {
  width: 50%;
  border-radius: 10px;
}

.work-hero-text {
  flex: 1;
}

.work-hero-text h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.work-desc {
  color: #9ca3af;
  margin-bottom: 20px;
}

.work-links a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid #7a6ff5;
  border-radius: 6px;
  text-decoration: none;
  color: #7a6ff5;
}

.work-links a:hover {
  background: #7a6ff5;
  color: white;
}
.work-article-link {
  display: inline-block;
  margin-top: 20px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
}

.work-article-link:hover {
  color: #7a6ff5;
}


/* ===== About ===== */
.about-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

/* 左側 */

.profile-sidebar {
  position: relative;
}

.profile-card {
  position: sticky;
  top: 30px;

  background: #16181d;
  border: 1px solid #2a2d35;

  border-radius: 24px;
  padding: 35px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.3);
}

/* アイコン */

.profile-icon {
  width: 110px;
  height: 110px;

  border-radius: 50%;
  object-fit: cover;

  display: block;
  margin: 0 auto 20px;

  border: 3px solid #2f3340;
}

/* 名前 */

.profile-name {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;

  color: #f5f5f5;
}

.profile-desc {
  text-align: center;
  color: #b9c0cc;
  margin-bottom: 10px;
}

.profile-meta {
  text-align: center;
  color: #8b93a1;
  margin-bottom: 25px;
}

/* スキル */

.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  justify-content: center;

  margin-bottom: 25px;
}

.skill-tag {
  background: #23262d;
  border: 1px solid #31343d;

  color: #d7dce5;

  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* リンク */

.profile-links {
  text-align: center;
}

.profile-links a {
  color: #9b87f5;
  text-decoration: none;
  font-weight: bold;
}

.profile-links a:hover {
  opacity: 0.7;
}

/* 右本文 */

.about-content {
  background: #16181d;
  border: 1px solid #2a2d35;

  border-radius: 24px;

  padding: 45px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.3);

  line-height: 1.9;

  color: #e6eaf2;
}

/* 見出し */

.about-content h2 {
  margin-top: 50px;
  margin-bottom: 20px;

  border-left: 5px solid #8b5cf6;
  padding-left: 14px;

  color: #ffffff;
}

.about-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;

  color: #f3f4f6;
}

/* リスト */

.about-content ul {
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 10px;
}

/* strong */

.about-content strong {
  color: #ffffff;
}

/* リンク */

.about-content a {
  color: #9b87f5;
}

.about-content h2:first-child {
  margin-top: 0;
}

/* h3をカードタイトル化 */

.about-content h3 {
  margin-top: 40px;
  margin-bottom: 15px;

  padding: 12px 18px;

  background: #1d2128;
  border: 1px solid #2f3440;

  border-radius: 14px;

  font-size: 1.1rem;
}

/* ulをカード化 */

.about-content h3 + ul {
  margin-top: 15px;
  margin-bottom: 30px;

  padding: 20px;

  background: #1a1d24;
  border: 1px solid #2a2f3a;

  border-radius: 18px;

  list-style: none;
}

/* liを整える */

.about-content h3 + ul li {
  position: relative;

  padding-left: 24px;
  margin-bottom: 14px;

  color: #d9dee7;
}

/* 左の丸 */

.about-content h3 + ul li::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #8b5cf6;

  position: absolute;
  left: 0;
  top: 12px;
}
/* スマホ */

@media (max-width: 900px) {

  .about-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

}