/* 共通ベース（テーマに依存しない部分のみ） */

/* ==========================================
   ベースリセット & 正規化
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    background: #fafafa;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.02em;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style: none;
  }
  
  input, textarea, select {
    font-family: inherit;
    font-size: inherit;
  }
  
  /* ==========================================
     コンテナ & レイアウト
  ========================================== */
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }
  
  .container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* セクション */
  .section {
    padding: 80px 0;
  }
  
  .section-sm {
    padding: 60px 0;
  }
  
  .section-lg {
    padding: 120px 0;
  }
  
  /* ==========================================
     グリッドシステム
  ========================================== */
  
  .grid {
    display: grid;
    gap: 30px;
  }
  
  .grid-1 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  .grid-auto-fit-300 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .grid-auto-fit-250 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .grid-auto-fit-200 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  /* Flexbox */
  .flex {
    display: flex;
  }
  
  .flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .flex-col {
    display: flex;
    flex-direction: column;
  }
  
  /* ==========================================
     フォーム共通
  ========================================== */
  
  .form-group {
    margin-bottom: 24px;
  }
  
  .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
  }
  
  .form-checkbox label {
    font-size: 0.9em;
    line-height: 1.6;
  }
  
  /* エラースタイル */
  .form-input.error,
  .form-select.error,
  .form-textarea.error {
    border-color: #ef4444;
  }
  
  .field-error {
    color: #ef4444;
    font-size: 0.9em;
    margin-top: 4px;
  }
  
  /* ==========================================
     カード & ボックス
  ========================================== */
  
  .card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
  
  .card-sm {
    padding: 20px;
    border-radius: 12px;
  }
  
  .card-lg {
    padding: 40px;
    border-radius: 20px;
  }
  
  /* ==========================================
     ユーティリティクラス
  ========================================== */
  
  /* 表示・非表示 */
  .hidden { display: none; }
  .block { display: block; }
  .inline-block { display: inline-block; }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* テキスト配置 */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  
  /* マージン */
  .mt-0 { margin-top: 0; }
  .mt-1 { margin-top: 8px; }
  .mt-2 { margin-top: 16px; }
  .mt-3 { margin-top: 24px; }
  .mt-4 { margin-top: 32px; }
  .mt-5 { margin-top: 40px; }
  .mt-6 { margin-top: 48px; }
  
  .mb-0 { margin-bottom: 0; }
  .mb-1 { margin-bottom: 8px; }
  .mb-2 { margin-bottom: 16px; }
  .mb-3 { margin-bottom: 24px; }
  .mb-4 { margin-bottom: 32px; }
  .mb-5 { margin-bottom: 40px; }
  .mb-6 { margin-bottom: 48px; }
  
  .ml-auto { margin-left: auto; }
  .mr-auto { margin-right: auto; }
  .mx-auto { margin-left: auto; margin-right: auto; }
  
  /* パディング */
  .p-0 { padding: 0; }
  .p-1 { padding: 8px; }
  .p-2 { padding: 16px; }
  .p-3 { padding: 24px; }
  .p-4 { padding: 32px; }
  .p-5 { padding: 40px; }
  
  .pt-0 { padding-top: 0; }
  .pt-1 { padding-top: 8px; }
  .pt-2 { padding-top: 16px; }
  .pt-3 { padding-top: 24px; }
  .pt-4 { padding-top: 32px; }
  .pt-5 { padding-top: 40px; }
  
  .pb-0 { padding-bottom: 0; }
  .pb-1 { padding-bottom: 8px; }
  .pb-2 { padding-bottom: 16px; }
  .pb-3 { padding-bottom: 24px; }
  .pb-4 { padding-bottom: 32px; }
  .pb-5 { padding-bottom: 40px; }
  
  /* 幅・高さ */
  .w-full { width: 100%; }
  .w-auto { width: auto; }
  .h-full { height: 100%; }
  .h-auto { height: auto; }
  
  /* 位置 */
  .relative { position: relative; }
  .absolute { position: absolute; }
  .fixed { position: fixed; }
  
  /* オーバーフロー */
  .overflow-hidden { overflow: hidden; }
  .overflow-x-auto { overflow-x: auto; }
  
  /* ==========================================
     レスポンシブ共通
  ========================================== */
  
  @media (max-width: 1024px) {
    .container {
      padding: 0 16px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
      padding: 60px 0;
    }
    
    .section-lg {
      padding: 80px 0;
    }
  }
  
  @media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto-fit-300,
    .grid-auto-fit-250,
    .grid-auto-fit-200 {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .section {
      padding: 50px 0;
    }
    
    .section-sm {
      padding: 40px 0;
    }
    
    .section-lg {
      padding: 60px 0;
    }
    
    .card {
      padding: 20px;
    }
    
    .card-lg {
      padding: 24px;
    }
    
    .flex-between {
      flex-direction: column;
      gap: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 12px;
    }
    
    .section {
      padding: 40px 0;
    }
    
    .card {
      padding: 16px;
      border-radius: 12px;
    }
  }
  
  /* ==========================================
     アニメーション & トランジション
  ========================================== */
  
  .animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }
  
  .animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  .fade-in {
    animation: fadeIn 0.6s ease forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .slide-up {
    animation: slideUp 0.6s ease forwards;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  .section-title {
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

/* ==========================================
   フッター共通デザイン
========================================== */
.footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 20px 0 20px;
}
.footer-logo {
  font-size: 1.8em;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.footer-desc {
  font-size: 1.05em;
  color: #9ca3af;
  margin-bottom: 8px;
}
.footer-legal {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 4px;
}
.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s;
}
.footer-legal a:hover {
  color: white;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}

/* ヘッダー関連の装飾CSSはheader-company.jsに集約。該当セレクタは全削除 */

/* Skills Section Component Styles */
.skills-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.skills-tabs {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.tab-button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.tab-button:hover::before {
  left: 100%;
}

.tab-button.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transform: none;
}

.tab-button:hover:not(.active) {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  transform: none;
}

.tab-button:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

.tab-button.active:active {
  transform: scale(0.98);
  background: #1d4ed8;
}

.tab-content {
  display: none;
  animation: skillsFadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes skillsFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.skill-category h3 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: #f8fafc;
  color: #475569;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.skill-example {
  color: #94a3b8;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
  text-align: right;
  font-weight: 500;
  opacity: 0.8;
}

/* Skills Section Responsive Styles */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tab-buttons {
    flex-direction: row;
    gap: 4px;
    padding: 6px;
    max-width: 100%;
    justify-content: center;
  }
  
  .tab-button {
    padding: 12px 16px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
  }
  
  .tab-button::before {
    display: none; /* Disable hover effect on mobile */
  }
  
  .tab-button:hover::before {
    display: none;
  }
  
  .tab-button:hover:not(.active) {
    background: rgba(37, 99, 235, 0.08);
    transform: none;
  }
  
  .tab-button.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  }
  
  .tab-button:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
  
  .tab-button.active:active {
    transform: scale(0.98);
    background: #1d4ed8;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
  
  .skill-tags {
    gap: 0.6rem;
  }
  
  .skill-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}
