/* リセットとベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-secondary: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
}

/* ヘッダー */
.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
  animation: float 20s infinite linear;
}

@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-100px) rotate(360deg);
  }
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.site-description {
  font-size: 1.1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* ナビゲーション */
.site-nav {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  display: inline-block;
}

.site-nav a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* メインコンテンツ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* 記事一覧 */
.post-list {
  list-style: none;
}

.post-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  transform: scaleY(0);
  transition: var(--transition);
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.post-item:hover::before {
  transform: scaleY(1);
}

.post-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date::before {
  content: '📅';
}

.post-title-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.post-title-link:hover {
  color: var(--primary-color);
}

.post-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

/* 記事詳細 */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-color);
}

.post-meta {
  color: var(--text-light);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  color: var(--text-color);
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text-color);
}

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

.post-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition);
}

.post-content a:hover {
  color: var(--primary-dark);
}

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

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

.post-content code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #e11d48;
}

.post-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* フッター */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  margin-top: 4rem;
}


/* ヒーローセクション */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url('https://res.cloudinary.com/dniwxojgy/image/upload/w_1920,f_auto,q_auto/v1768531169/hero-bg_ssxx8s.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: #f3f4f6;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  border: 2px solid transparent;
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  filter: brightness(1.1);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ */

@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-title-link {
    font-size: 1.5rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .post-item {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-section {
    height: 400px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
}