body {
    background-color: #333;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
  }
  
  #portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .tab-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
  
  .tab-nav li {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
  }
  
  .tab-nav li.active {
    border-bottom: 2px solid #fff;
  }
  
  .tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tab-content.active {
    display: block;
    opacity: 1;
  }
  
  .profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
  }
  
  .profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .gallery-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .gallery-item p {
    margin: 10px 0;
    font-size: 16px;
  }

  /* リンクの通常の状態 */
.gallery-item a {
  color: #2563eb; /* 青色の例 */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ホバー時の状態 */
.gallery-item a:hover {
  color: #1e40af; /* より濃い青色 */
}

/* Work情報部分の文字色 */
.work-info h3,
.work-info p {
  color: #333; /* 作品タイトルと説明文の色 */
}

  .image-item embed,
  .image-item iframe {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: none;
  }

  /* モーダルウィンドウのスタイル */
.pdf-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.work-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.view-details,
.view-pdf {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.view-details {
  background-color: #007bff;
  color: white;
}

.view-pdf {
  background-color: #28a745;
  color: white;
}

.view-details:hover,
.view-pdf:hover {
  opacity: 0.9;
}

.work-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.work-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.work-container:hover .work-image {
  transform: scale(1.05);
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 動画コンテナのアスペクト比を維持 */
.image-container:nth-child(2) {
  aspect-ratio: 16 / 9;  /* または動画のアスペクト比に合わせて調整 */
}

/* 動画のホバーエフェクトを無効化（必要な場合） */
.image-container:hover .project-video {
  transform: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .project-video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.demo-container {
  position: relative;
  width: 100%;
  height: 400px; /* 高さは調整可能 */
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.space-demo {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .demo-container {
      height: 300px;
  }
}

/* オプション：ホバーエフェクト */
.demo-container:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

/* Hobby セクションのスタイル */
.hobby-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hobby-images {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hobby-img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px; /* 角を少し丸める（必要に応じて） */
}

.hobby-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Contact セクションのスタイル */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-image-container {
  width: 600px;
  height: 400px;
}

.contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* 角を少し丸める（必要に応じて） */
}

.contact-text {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}