* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #23272f;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
  min-height: 100vh;
  overflow-x: hidden;
  background-attachment: fixed;
  overscroll-behavior: none;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 60px;
  padding-top: 40px;
  padding-right: 24px;
  padding-left: 24px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(30, 41, 59, 0.1);
}

.profile-hero {
  text-align: center;
  margin-bottom: 1%;
}

.profile-img {
  margin-top: 1%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #38bdf8;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.18);
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}

.profile-img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.25);
}

.profile-name {
  font-size: 2.7rem;
  font-weight: 800;
  color: #0ea5e9;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}

.profile-title {
  font-size: 1.15rem;
  color: #64748b;
  margin-bottom: 0.5%;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

.section {
  margin-bottom: 1rem;
}

.card {
  margin-right: 10%;
  margin-left: 10%;
  background: linear-gradient(120deg, #f1f5f9 60%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.1);
  border: 1.5px solid #bae6fd;
  transition: transform 0.22s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.22s cubic-bezier(0.4, 2, 0.6, 1);
}

.card:hover {
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.18);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.section-desc {
  color: #334155;
  line-height: 1.7;
  margin-bottom: 2%;
  font-size: 1.05rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

/* バッジの基本 */
.badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #bae6fd 0%, #f0f9ff 100%);
  color: #0ea5e9;
  padding: 0.5rem 1.1rem;
  border-radius: 22px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1.5px solid #7dd3fc;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.07);
  letter-spacing: 0.01em;
  gap: 0.4em;
  transition: all 0.22s cubic-bezier(0.4, 2, 0.6, 1);
  cursor: pointer;
  text-decoration: none;
}

/* バッジ色バリエーション */
.badge-blue {
  background: linear-gradient(90deg, #60a5fa 0%, #bae6fd 100%);
  color: #fff;
  border-color: #60a5fa;
}
.badge-yellow {
  background: linear-gradient(90deg, #fde68a 0%, #fef9c3 100%);
  color: #b45309;
  border-color: #fbbf24;
}
.badge-green {
  background: linear-gradient(90deg, #6ee7b7 0%, #d1fae5 100%);
  color: #047857;
  border-color: #34d399;
}
.badge-orange {
  background: linear-gradient(90deg, #fdba74 0%, #fef3c7 100%);
  color: #b45309;
  border-color: #fb923c;
}
.badge-purple {
  background: linear-gradient(90deg, #c4b5fd 0%, #f3e8ff 100%);
  color: #7c3aed;
  border-color: #a78bfa;
}
.badge-gray {
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
  color: #374151;
  border-color: #9ca3af;
}

/* SNSバッジ */
.badge-github {
  background: #23272f;
  color: #fff;
  border-color: #23272f;
}
.badge-github svg {
  stroke: #fff;
}
.badge-twitter {
  background: #1da1f2;
  color: #fff;
  border-color: #1da1f2;
}
.badge-twitter svg {
  stroke: #fff;
}
.badge-mail {
  background: #f87171;
  color: #fff;
  border-color: #f87171;
}
.badge-mail svg {
  stroke: #fff;
}

.badge:hover {
  filter: brightness(1.08) saturate(1.2);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.13);
}

/* タイムライン */
.timeline {
  list-style: none;
  padding-left: 0;
  margin: 1.2em 0 0 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 1.1em;
  font-size: 1.05rem;
  color: #334155;
}
.timeline-dot {
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 0.9em;
  height: 0.9em;
  background: linear-gradient(135deg, #38bdf8 60%, #818cf8 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.13);
  border: 2px solid #fff;
}
.timeline-date {
  font-weight: bold;
  color: #0ea5e9;
  margin-right: 0.5em;
}

/* フェードインアニメーション */
.animate-fadein {
  animation: fadein 1.1s cubic-bezier(0.4, 0.2, 0.6, 1);
}
.footer {
  text-align: center;
  margin-top: 10px;
  padding: 24px 0 8px 0;
  background: linear-gradient(90deg, #e0f2fe 0%, #f8fafc 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 -4px 24px rgba(56, 189, 248, 0.07);
  font-size: 1rem;
  color: #334155;
}

.footer a {
  color: #0ea5e9;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.footer a:hover {
  color: #38bdf8;
  text-decoration: none;
}

.footer p {
  margin: 0.5em 0;
  line-height: 1.7;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-bottom: 60px;
    padding-top: 40px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-bottom: 32px;
    padding-top: 24px;
    padding-right: 8px;
    padding-left: 8px;
  }
  .profile-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-width: 2.5px;
  }
  .profile-name {
    font-size: 1.4rem;
  }
  .profile-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .card {
    padding: 1rem;
    border-radius: 10px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .footer {
    text-align: center;
    font-size: 0.8rem;
  }
  .skills-container {
    gap: 0.3rem;
  }
  .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 14px;
  }
  .timeline li {
    font-size: 0.93rem;
  }
}

.text-center {
  text-align: center;
}
