/* 1画面完結型のコンパクトなレイアウトに変更 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.4;
  overflow: hidden;
}

.single-page-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.logo {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* メインコンテンツ */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* プロフィールサイドバー */
.profile-sidebar {
  width: 280px;
  padding: 20px;
  background: #0a0a0a;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  gap: 16px;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.profile-sidebar h1 {
  font-size: 22px;
  margin: 0;
}

.subtitle {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.status-section {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}

.status-item:not(:last-child) {
  border-bottom: 1px solid #222;
}

.status-label {
  color: #666;
  font-weight: 500;
}

.status-value {
  color: #fff;
}

.quick-info {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
}

.quick-info h3 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.quick-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-info li {
  font-size: 11px;
  color: #aaa;
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
}

.quick-info li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #fff;
}

.contact-links {
  display: flex;
  gap: 12px;
}

/* コンテンツエリア */
.content-area {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-section {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
}

.content-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.content-section p {
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

/* スキルセクション */
.skills-compact {
  display: flex;
  gap: 20px;
}

.skill-group {
  flex: 1;
}

.skill-group h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #fff;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 11px;
  color: #aaa;
  transition: all 0.2s;
}

.tag:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* クリック可能な要素にカーソルを追加 */
.clickable {
  cursor: pointer;
}

/* プロジェクトセクション */
.projects-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.project-item {
  background: #111;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 12px;
  transition: all 0.2s;
}

.project-item:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.project-icon {
  font-size: 20px;
}

.project-item h3 {
  font-size: 14px;
  color: #fff;
}

.project-item p {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag-small {
  padding: 2px 6px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 10px;
  color: #888;
}

/* フッター */
footer {
  padding: 12px 24px;
  text-align: center;
  border-top: 1px solid #333;
  background: #0a0a0a;
  font-size: 11px;
  color: #666;
  flex-shrink: 0;
}

/* スクロールバー */
.content-area::-webkit-scrollbar {
  width: 8px;
}

.content-area::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.content-area::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* モーダルスタイルを追加 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #0a0a0a;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

#modal-body h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

#modal-body p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 12px;
}

#modal-body ul {
  list-style: none;
  padding-left: 0;
}

#modal-body li {
  font-size: 14px;
  color: #aaa;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

#modal-body li:before {
  content: "▸ ";
  color: #fff;
  font-weight: bold;
  margin-right: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* レスポンシブデザインを強化 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .profile-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #333;
    padding: 16px;
    gap: 12px;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .profile-sidebar h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 11px;
  }

  .status-section,
  .quick-info {
    max-width: 400px;
  }

  .contact-links a {
    font-size: 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .projects-compact {
    grid-template-columns: 1fr;
  }

  .skills-compact {
    flex-direction: column;
    gap: 12px;
  }

  .content-area {
    padding: 16px;
    gap: 16px;
  }

  .content-section {
    padding: 16px;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  #modal-body h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 16px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .content-section h2 {
    font-size: 16px;
  }

  .project-item h3 {
    font-size: 12px;
  }

  .project-item p {
    font-size: 10px;
  }
}

/* コンタクトリンクのスタイルを更新 */
.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.contact-links a {
    font-size: 2.5em; /* 2倍以上のサイズに */
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
}

.contact-links a:hover {
    color: #007bff;
    background: #2a2a2a;
    border-color: #007bff;
    transform: scale(1.1);
}

/* Font Awesomeアイコンの中央揃えを改善 */
.contact-links .fab,
.contact-links .fas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-links {
        gap: 15px;
    }
    
    .contact-links a {
        font-size: 2em;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .contact-links {
        gap: 12px;
    }
    
    .contact-links a {
        font-size: 1.8em;
        width: 45px;
        height: 45px;
    }
}