body {
  font-family: sans-serif; /* 基本フォント */
  color: #333; /* 基本テキストカラー */
  background-color: #f8f9fa; /* 明るい背景色 */
}

.navbar {
  background-color: #fcfcfc;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-link {
  font-weight: 500;
  color: #495057; /* ナビゲーションリンクの色 */
  transition: color 0.15s ease-in-out;
}

.nav-link:hover {
  color: #3674b5; /* ホバー時のリンクの色 */
}

.nav-link.active {
  color: #3674b5 !important;
}

.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.125); /* カードのボーダー */
  border-radius: 0.25rem;
  box-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem !important;
}

.card-header {
  background-color: #e9ecef; /* カードヘッダーの背景色 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: bold;
  padding: 0.75rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.card-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.card-body p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-body ul {
  list-style: none;
  padding-left: 0;
}

.card-body ul li {
  margin-bottom: 0.5rem;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #495057;
  transition: color 0.15s ease-in-out;
}

.icon-link:hover {
  color: #3674b5;
}

.footer {
  background-color: #fcfcfc;
  color: #6c757d;
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
}

.footer a {
  color: #3674b5;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3674b5;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, #3674b5 0%, #578fca 100%);
  color: white;
  padding: 4rem 0 5rem 0;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  z-index: 0;
}

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

.hero-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  margin: 0 auto 1.5rem;
  background: white;
  padding: 0rem;
  object-fit: contain;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
  background: white;
  color: #3674b5;
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* ソーシャルリンク内アイコン */
.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* モダンなカードデザイン */
.modern-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  border: none;
}

.modern-card:hover {
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.modern-card-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3674b5;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #3674b5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-card-body p {
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1rem;
}

.modern-card-body a {
  color: #3674b5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.modern-card-body a:hover {
  color: #578fca;
  text-decoration: underline;
}

/* スキルバッジ */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3674b5 0%, #578fca 100%);
  color: white;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.skill-badge:hover {
  transform: scale(1.1);
}

/* 連絡先リンク */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: linear-gradient(135deg, #3674b5 0%, #578fca 100%);
  color: white;
  transform: translateX(5px);
}

.contact-item:hover a,
.contact-item:hover .icon-link {
  color: white !important;
}

.contact-item .icon-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #495057;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* 連絡先アイコン */
.contact-icon {
  width: 24px;
  height: 24px;
}

/* 好きなものセクション */
.favorites-section {
  background: linear-gradient(
    135deg,
    rgba(54, 116, 181, 0.08) 0%,
    rgba(161, 227, 249, 0.08) 100%
  );
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.favorites-title {
  font-weight: bold;
  color: #3674b5;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-avatar {
    width: 400px;
    height: 400px;
    padding: 0.75rem;
  }

  .modern-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-avatar {
    width: 300px;
    height: 300px;
    padding: 0.5rem;
  }
}
