/*
Theme Name: Connecting Dots Office
Description: Notion構築・教育・自動化支援専用WordPressテーマ
Version: 1.0
Author: Connecting Dots Office
*/

/* Connecting Dots Office - Notion上級バッジ保有サイト */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;600;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* コンテナ */
.cd-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* セクション */
section {
  padding: 60px 0;
}

/* ヘッダー */
header {
  background: linear-gradient(135deg, #0b66ff 0%, #4880ff 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(11, 102, 255, 0.2);
}

header .cd-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #b3d7ff;
  transform: translateY(-1px);
}

/* モバイルメニュー */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0b66ff 0%, #4880ff 100%);
  box-shadow: 0 4px 12px rgba(11, 102, 255, 0.3);
  z-index: 1000;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  margin: 0;
  list-style: none;
  gap: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: white;
  transform: translateX(5px);
}

.mobile-menu .cd-btn {
  margin: 0.5rem 1.5rem;
  text-align: center;
  background: white;
  color: #0b66ff;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.mobile-menu .cd-btn:hover {
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Heroセクション */
.hero {
  background: linear-gradient(135deg, #0b66ff 0%, #4880ff 50%, #6b96ff 100%);
  color: white;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ボタンスタイル */
.cd-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #0b66ff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cd-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 102, 255, 0.3);
}

.cd-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cd-btn-outline:hover {
  background: white;
  color: #0b66ff;
}

/* カードUI */
.cd-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
}

.cd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* グリッドレイアウト */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* セクション見出し */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* サービスカード */
.service-card {
  text-align: center;
}

.service-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0b66ff, #4880ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* 実績セクション */
.achievements {
  background: white;
}

.achievement-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.achievement-item:last-child {
  border-bottom: none;
}

.achievement-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0b66ff, #4880ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.achievement-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.achievement-content p {
  color: #666;
  margin-bottom: 0.5rem;
}

.achievement-result {
  font-size: 0.9rem;
  color: #0b66ff;
  font-weight: 600;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, #0b66ff 0%, #4880ff 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* AI Web構築代行セクション */
.ai-intro-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.ai-feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ai-feature-item h4 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.ai-feature-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-intro-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-intro-card h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.ai-intro-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.ai-intro-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-intro-card li:last-child {
  border-bottom: none;
}

.ai-intro-card li:before {
  content: '✓';
  color: #4ade80;
  font-weight: bold;
  font-size: 1.1rem;
}

.ai-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.ai-cta-buttons .cd-btn {
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ai-cta-buttons .cd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* フッター */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4880ff;
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #4880ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cd-container {
    padding: 0 16px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  /* デスクトップナビを非表示 */
  nav ul {
    display: none;
  }
  
  /* モバイルメニューボタンを表示 */
  .mobile-menu-btn {
    display: flex;
  }
  
  header .cd-container {
    position: relative;
  }
  
  /* ヘッダーの高さを調整 */
  header {
    padding: 0.75rem 0;
  }
  
  .services-grid,
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .achievement-item {
    flex-direction: column;
    text-align: center;
  }
  
  .ai-intro-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .ai-feature-item {
    padding: 1rem;
  }
  
  .ai-intro-card {
    padding: 1.5rem;
  }
  
  .ai-cta-buttons {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cd-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}

/* フォームスタイル */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0b66ff;
  box-shadow: 0 0 0 3px rgba(11, 102, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* テーブルスタイル */
.clients-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.clients-table table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table th,
.clients-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.clients-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.clients-table tr:hover {
  background: #f8f9fa;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ブログページ共通スタイル */
.blog-page, .category-page, .archive-page, .single-post {
  background: #f8f9fa;
  min-height: 100vh;
}

/* ブレッドクラム */
.breadcrumb {
  margin: 1rem 0;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin-left: 0.5rem;
  color: #999;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #0b66ff;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 600;
}

/* ページネーション */
.pagination-nav {
  margin: 3rem 0;
  text-align: center;
}

.pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination li a:hover {
  background: #0b66ff;
  color: white;
  border-color: #0b66ff;
}

.pagination li.active span {
  background: #0b66ff;
  color: white;
  border-color: #0b66ff;
}

.pagination li.dots span {
  border: none;
  background: none;
}

/* 投稿カード */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-categories {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  background: rgba(11, 102, 255, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
}

.category-tag:hover {
  background: rgba(11, 102, 255, 1);
  color: white;
  text-decoration: none;
}

.category-tag.small {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-title a {
  color: #333;
  text-decoration: none;
}

.post-title a:hover {
  color: #0b66ff;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.read-more {
  color: #0b66ff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: #0951cc;
  text-decoration: none;
}

/* サイドバー */
.blog-sidebar,
.category-sidebar,
.archive-sidebar,
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.widget-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #0b66ff;
  padding-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .breadcrumb-list {
    justify-content: flex-start;
  }
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }