/* 基本スタイル */
:root {
    --primary-color: #00e676;
    --secondary-color: #00b0ff;
    --accent-color: #ff4081;
    --dark-color: #0a0e17;
    --darker-color: #070b12;
    --light-dark-color: #121824;
    --text-color: #e0e0e0;
    --card-bg: rgba(18, 24, 36, 0.8);
    --card-border: rgba(0, 230, 118, 0.2);
    --hover-color: #00c853;
    --code-keyword: #ff79c6;
    --code-variable: #bd93f9;
    --code-string: #f1fa8c;
    --code-property: #8be9fd;
    --code-element: #50fa7b;
    --code-comment: #6272a4;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    background-image: 
      linear-gradient(rgba(0, 230, 118, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 230, 118, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 70px; /* ナビゲーションバーの高さ分 */
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--hover-color);
  }
  
  /* ナビゲーションバー */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .logo-text {
    margin: 0 5px;
  }
  
  .code-tag {
    color: var(--code-element);
    opacity: 0.8;
  }
  
  .code-element {
    color: var(--primary-color);
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
  }
  
  .nav-menu li {
    margin-left: 20px;
  }
  
  .nav-link {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 230, 118, 0.1);
  }
  
  .nav-link i {
    margin-right: 5px;
  }
  
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
  }
  
  /* ヒーローセクション */
  .hero {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 M10,50 L90,50 M10,90 L90,90 M10,10 L10,90 M50,10 L50,90 M90,10 L90,90" stroke="%2300e676" stroke-width="0.5" fill="none" opacity="0.2"/></svg>');
    opacity: 0.1;
    z-index: -1;
  }
  
  .profile {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    position: relative;
  }
  
  .profile-image::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.2;
    }
    100% {
      transform: scale(1);
      opacity: 0.5;
    }
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  }
  
  .title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
  }
  
  .typing-text {
    height: 24px;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  }
  
  .typed-cursor {
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-dark-color);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 230, 118, 0.2);
  }
  
  .social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4);
  }
  
  /* スクロールダウンアニメーション */
  .scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    margin-bottom: 10px;
  }
  
  .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
  }
  
  @keyframes scroll {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(15px);
      opacity: 0;
    }
  }
  
  .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
    opacity: 0;
  }
  
  .arrow span:nth-child(1) {
    animation-delay: 0s;
  }
  
  .arrow span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .arrow span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes arrow {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  /* メインコンテンツ */
  main {
    padding: 20px 0;
  }
  
  section {
    margin-bottom: 80px;
    padding-top: 70px;
    margin-top: -70px;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
  }
  
  h2 i {
    margin-right: 15px;
    color: var(--primary-color);
  }
  
  h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
  }
  
  h3 i {
    margin-right: 10px;
  }
  
  .card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  .card-header {
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  /* ターミナル風デザイン */
  .terminal {
    background-color: var(--darker-color);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .terminal-header {
    background-color: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
  }
  
  .terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
  }
  
  .terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  
  .terminal-button.red {
    background-color: #ff5f56;
  }
  
  .terminal-button.yellow {
    background-color: #ffbd2e;
  }
  
  .terminal-button.green {
    background-color: #27c93f;
  }
  
  .terminal-title {
    color: #ddd;
    font-size: 0.9rem;
  }
  
  .terminal-body {
    padding: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
  }
  
  .code-line {
    margin-bottom: 5px;
  }
  
  .indent {
    padding-left: 20px;
  }
  
  .code-keyword {
    color: var(--code-keyword);
  }
  
  .code-variable {
    color: var(--code-variable);
  }
  
  .code-string {
    color: var(--code-string);
  }
  
  .code-property {
    color: var(--code-property);
  }
  
  .code-comment {
    color: var(--code-comment);
    font-style: italic;
  }
  
  /* スキル */
  .skills ul {
    list-style: none;
  }
  
  .skills li {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .skill-name {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
  }
  
  .skill-name i {
    margin-left: 8px;
    color: var(--primary-color);
  }
  
  .skill-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    display: block;
    position: relative;
  }
  
  .skill-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    position: relative;
    transition: width 1.5s ease-in-out;
  }
  
  .skill-bar span::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 5px 5px 0;
  }
  
  .skill-percent {
    margin-top: 5px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--secondary-color);
  }
  
  /* プロジェクト */
  .project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -25px -25px 20px;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 23, 0.7);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="20" font-family="monospace" font-size="10" fill="%2300e676" opacity="0.3">function() {</text><text x="15" y="35" font-family="monospace" font-size="10" fill="%2300e676" opacity="0.3">return {</text><text x="20" y="50" font-family="monospace" font-size="10" fill="%2300e676" opacity="0.3">data: []</text><text x="15" y="65" font-family="monospace" font-size="10" fill="%2300e676" opacity="0.3">};</text><text x="10" y="80" font-family="monospace" font-size="10" fill="%2300e676" opacity="0.3">}</text></svg>');
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }
  
  .project-card:hover .code-overlay {
    opacity: 0.2;
  }
  
  .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .tech-tag {
    background-color: rgba(0, 230, 118, 0.15);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .project-links {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 20px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }
  
  .btn i {
    margin-right: 8px;
  }
  
  .btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
  }
  
  /* 経歴 */
  .timeline {
    position: relative;
    padding-left: 40px;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  }
  
  .timeline-item {
    position: relative;
    margin-bottom: 30px;
  }
  
  .timeline-dot {
    position: absolute;
    left: -49px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  }
  
  .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  
  .timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
  }
  
  .timeline-date i {
    margin-right: 5px;
  }
  
  .timeline-body {
    background-color: rgba(18, 24, 36, 0.5);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
  }
  
  .achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
  }
  
  .achievement-tag {
    background-color: rgba(0, 176, 255, 0.15);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
  }
  
  .achievement-tag i {
    margin-right: 5px;
  }
  
  /* 経歴タブのスタイル追加 */
  .experience-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
  }
  
  .tab-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .tab-btn i {
    color: var(--primary-color);
  }
  
  .tab-btn:hover {
    background-color: rgba(0, 230, 118, 0.1);
    transform: translateY(-2px);
  }
  
  .tab-btn.active {
    background-color: rgba(0, 230, 118, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
  }
  
  .tab-content {
    position: relative;
  }
  
  .tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
  }
  
  .tab-pane.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* お問い合わせ */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .contact-info, .contact-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-info p {
    margin-bottom: 20px;
  }
  
  .email-btn {
    margin-top: 10px;
  }
  
  .social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
  }
  
  .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: var(--light-dark-color);
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 230, 118, 0.2);
  }
  
  .social-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
  }
  
  .social-btn i {
    margin-right: 8px;
  }
  
  /* フッター */
  footer {
    text-align: center;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
    background-color: var(--darker-color);
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
  }
  
  .footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: var(--primary-color);
  }
  
  #matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  /* レスポンシブデザイン */
  @media (max-width: 992px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
    
    .social-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      top: 70px;
      left: -100%;
      flex-direction: column;
      background-color: rgba(10, 14, 23, 0.95);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
      padding: 20px 0;
      backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
      left: 0;
    }
    
    .nav-menu li {
      margin: 10px 0;
    }
    
    .menu-toggle {
      display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
      opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .cards-container {
      grid-template-columns: 1fr;
    }
    
    h1 {
      font-size: 2.2rem;
    }
    
    h2 {
      font-size: 1.8rem;
    }
    
    .profile-image {
      width: 120px;
      height: 120px;
    }
    
    .timeline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
    }
    
    .social-grid {
      grid-template-columns: 1fr 1fr;
    }
    
    .experience-tabs {
      flex-direction: column;
      gap: 8px;
    }
    
    .tab-btn {
      width: 100%;
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .social-icons {
      flex-wrap: wrap;
    }
    
    .project-links {
      flex-direction: column;
    }
    
    .footer-links {
      flex-direction: column;
      gap: 10px;
    }
    
    .social-grid {
      grid-template-columns: 1fr;
    }
  }