/*
Theme Name: Stella Talent Partners Blog
Theme URI: https://stellatalentpartners.co.jp
Description: Stella Talent Partners コーポレートサイト用ブログテーマ
Author: Stella Talent Partners
Version: 1.0.0
Text Domain: stella-theme
*/

:root {
  --cyan: #00c3ff;
  --text-dim: #555555;
  --font-header: "Oswald", sans-serif;
  --font-mono: "Space Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Navigation */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
}

.menu-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-icon span {
  width: 30px;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

.menu-btn:hover .menu-icon span:first-child {
  width: 20px;
}

.menu-btn:hover .menu-icon span:last-child {
  width: 30px;
  margin-left: -10px;
}

.menu-icon.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Fullscreen Menu */
.fs-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-menu.active {
  transform: translateY(0);
}

.fs-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fs-link {
  font-family: var(--font-header);
  font-size: 4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px #ccc;
  position: relative;
  transition: 0.3s;
}

.fs-link::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
  color: #000;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.fs-link:hover {
  -webkit-text-stroke-color: #000;
}

.fs-link:hover::before {
  width: 100%;
}

.fs-link.active {
  -webkit-text-stroke-color: var(--cyan);
}

.fs-link.active::before {
  color: var(--cyan);
  width: 100%;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .fixed-nav {
    padding: 15px 20px;
  }

  .logo-img {
    height: 35px;
  }

  .menu-txt {
    display: none;
  }

  .fs-links {
    gap: 1rem;
  }
}

/* Main */
main {
  flex: 1;
  padding-top: 85px;
}

@media (max-width: 768px) {
  main {
    padding-top: 65px;
  }
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 4rem;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cyan);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-header);
  font-size: 3rem;
  line-height: 1;
  color: #000;
}

/* Category Tags */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid #ddd;
  color: var(--text-dim);
  transition: all 0.3s;
}

.category-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.category-tag.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  display: block;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--cyan);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.blog-card:hover .blog-card-image img {
  filter: grayscale(0%);
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.blog-card-category {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--cyan);
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: 1px solid #ddd;
  color: #666;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.pagination .current {
  background: #000;
  border-color: #000;
  color: #fff;
}

.pagination .dots {
  border: none;
  min-width: auto;
}

.pagination .prev,
.pagination .next {
  padding: 0 1rem;
}

/* Single Post */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #999;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span {
  color: #666;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .post-title {
    font-size: 2.5rem;
  }
}

.post-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 2rem;
}

.post-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  margin-bottom: 2.5rem;
}

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

/* Post Content */
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--cyan);
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border: 1px solid #f0f0f0;
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--cyan);
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.post-content th {
  background: #f5f5f5;
  font-weight: 700;
}

.post-content code {
  background: #f0f0f0;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.post-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Back Link */
.back-link {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
  transition: color 0.3s;
}

.back-link a:hover {
  color: var(--cyan);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  border: 1px solid #f0f0f0;
}

.empty-state-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: #666;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.f-copy {
  color: var(--text-dim);
}

.f-social a {
  color: var(--text-dim);
  transition: color 0.3s;
}

.f-social a:hover {
  color: var(--cyan);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 8rem 1rem;
}

.error-404-title {
  font-family: var(--font-header);
  font-size: 6rem;
  color: #000;
  margin-bottom: 1rem;
}

.error-404-text {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-404 .btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.75rem 2rem;
  border: 1px solid #000;
  color: #000;
  transition: all 0.3s;
}

.error-404 .btn:hover {
  background: #000;
  color: #fff;
}
